/* PeThoria Match dashboard: the profile header, in the PeThoria World
   dashboard's design (dashboard.html on pethoriaworld.com). */
.profile-header{background:#fff;border-radius:12px;margin-bottom:22px;box-shadow:0 4px 12px rgba(0,0,0,.1);position:relative;overflow:hidden}
.animal-cover-container{position:relative;height:300px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;text-decoration:none}
.animal-cover-photo{width:100%;height:100%;object-fit:cover;display:block}
.animal-cover-overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease;color:#fff;font-size:18px;font-weight:600}
.animal-cover-container:hover .animal-cover-overlay{opacity:1}
.animal-cover-placeholder{color:rgba(255,255,255,.9);text-align:center;font-size:18px;font-weight:600}
.profile-info-section{position:relative;padding:20px 30px 30px;background:#fff}
.profile-main-content{display:flex;gap:30px;margin-top:-80px;position:relative;z-index:2}
.profile-left{flex:1;min-width:0}
.profile-right{width:350px;flex-shrink:0;padding-top:90px}
.md-pic-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.user-profile-picture{width:170px;height:170px;border-radius:50%;border:5px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.15);background:#f0f0f0;display:flex;align-items:center;justify-content:center;font-size:60px;color:#999;margin-bottom:15px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden;text-decoration:none;flex-shrink:0}
.user-profile-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.user-profile-picture:hover{transform:scale(1.02)}
.profile-picture-overlay{position:absolute;inset:0;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease;color:#fff;font-size:20px;z-index:2}
.user-profile-picture:hover .profile-picture-overlay{opacity:1}
.md-settings-pill{display:inline-flex;align-items:center;gap:8px;margin-bottom:28px;padding:10px 18px;border-radius:999px;background:linear-gradient(135deg,#3b5998,#2d4a8e);color:#fff;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 4px 12px rgba(45,74,142,.35)}
.profile-name{font-size:2.5rem;font-weight:bold;margin-bottom:5px;color:#1c1e21;word-wrap:break-word;line-height:1.2;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-name .md-check{color:#1877f2;font-size:1.2rem}
.profile-name .md-prem{font-size:12px;font-weight:800;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;border-radius:999px;padding:3px 10px}
.profile-bio{font-size:1rem;color:#65676b;line-height:1.4;margin-bottom:14px;max-width:600px}
.md-social{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.md-social a{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:12px;font-size:14px;font-weight:600;text-decoration:none;position:relative}
.md-social a.set{color:#fff}
.md-social a.set.instagram{background:linear-gradient(45deg,#f09433,#dc2743,#bc1888)}.md-social a.set.facebook{background:#1877f2}.md-social a.set.twitter{background:#111}
.md-social a.add{color:#9ca3af;border:1.5px dashed #d1d5db;background:#fafafa}
.md-social a.add::after{content:'+';position:absolute;top:-7px;right:-7px;width:17px;height:17px;border-radius:50%;background:#6366f1;color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;line-height:1}
.md-details{margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;gap:6px;color:#374151;font-size:14px}
.md-details:empty{display:none}
.md-details i{width:18px;text-align:center}
.md-details .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.md-details .chips span{background:#eef2ff;color:#4338ca;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
.md-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.md-acc{background:#fff;border-radius:16px;border:1px solid #e5e7eb;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.md-acc2{background:#f9fafb}
.dash-section-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:transparent;border:none;cursor:pointer;font-size:14px;font-weight:700;color:#1f2937;-webkit-tap-highlight-color:transparent}
.md-acc-h{display:flex;align-items:center;gap:10px}
.md-acc-ic{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#8b5cf6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;box-shadow:0 3px 8px rgba(99,102,241,.35)}
.md-acc-ic.sm{width:28px;height:28px;border-radius:8px;font-size:12px}
.md-chev{color:#9ca3af;font-size:13px;transition:transform .25s}
.md-acc.open .md-chev{transform:rotate(180deg)}
.md-panel{display:none;gap:8px;padding:12px;border-top:1px solid #f3f4f6}
.md-acc.open .md-panel{display:grid}
.md-grid3{grid-template-columns:repeat(3,1fr)}.md-grid4{grid-template-columns:repeat(4,1fr);gap:7px}
.dash-settings-item{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 6px;border-radius:12px;text-decoration:none;font-size:11px;font-weight:700;color:#fff;min-height:70px;justify-content:center;transition:transform .15s,box-shadow .15s;text-align:center}
.dash-settings-item:active{transform:scale(.92)}
.dash-settings-icon{width:36px;height:36px;background:rgba(255,255,255,.22);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:15px}
.dash-nav-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:13px 4px;border-radius:14px;text-decoration:none;min-height:76px;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.07);transition:transform .15s}
.dash-nav-card:active{transform:scale(.93)}
.dash-nav-icon{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px}
.dash-nav-label{font-size:11px;font-weight:700;color:#374151;text-align:center;line-height:1.2;width:100%}
.md-badge{position:absolute;top:5px;right:5px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;border-radius:999px;padding:1px 6px}
.stats-card{background:#f8f9fa;border-radius:12px;padding:20px;margin-bottom:16px;border:1px solid #e4e6ea}
.profile-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
.stat{text-align:center;padding:10px}
.stat-number{font-size:1.8rem;font-weight:bold;color:#4267b2;display:block}
.stat-label{font-size:.8rem;color:#65676b;text-transform:uppercase;letter-spacing:.5px;margin-top:5px}
.md-pets-card{background:#fff;border:1px solid #e4e6ea;border-radius:12px;padding:14px}
.md-pets-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.md-pets-h b{font-size:15px;color:#1f2937}.md-pets-h b i{color:#ec4899}.md-pets-h a{font-size:13px;font-weight:700;color:#db2777;text-decoration:none}
.md-pets{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.md-pets::-webkit-scrollbar{display:none}
.md-pet{flex-shrink:0;width:76px;text-align:center;text-decoration:none;color:#374151}
.md-pet .ph{width:68px;height:68px;margin:0 auto 5px;border-radius:50%;background:linear-gradient(135deg,#fdf2f8,#ede9fe);display:flex;align-items:center;justify-content:center;font-size:30px;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.md-pet .ph img{width:100%;height:100%;object-fit:cover}
.md-pet b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.md-pet small{display:block;font-size:10px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-pet.add .ph{background:#f3f4f6;color:#9ca3af;font-size:22px;border:2px dashed #d1d5db;box-shadow:none}
.md-vw{display:flex;align-items:center;gap:12px;margin:0 0 22px;padding:14px 16px;border-radius:18px;text-decoration:none;color:#fff;background:linear-gradient(135deg,#4c1d95,#7c3aed 45%,#db2777);box-shadow:0 8px 22px rgba(124,58,237,.3)}
.md-vw-ic{font-size:34px;line-height:1}.md-vw-tx{flex:1;min-width:0}.md-vw-tx b{display:block;font-size:16px;font-weight:900}.md-vw-tx span{display:block;font-size:12.5px;opacity:.92;line-height:1.3}
.md-vw-go{background:#fff;color:#7c3aed;font-weight:900;font-size:13px;border-radius:999px;padding:8px 14px;white-space:nowrap}
@media (max-width:1024px){.profile-main-content{flex-direction:column}.profile-right{width:100%;padding-top:0}.profile-stats{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){
  .animal-cover-container{height:200px}
  .profile-main-content{margin-top:-60px;padding:0 4px}
  .user-profile-picture{width:120px;height:120px;font-size:40px}
  .md-settings-pill{margin-bottom:18px;font-size:14px;padding:9px 15px}
  .profile-name{font-size:1.8rem}
  .profile-stats{grid-template-columns:repeat(3,1fr);gap:6px}
  .stat{padding:6px 2px}.stat-number{font-size:1.4rem}.stat-label{font-size:.66rem}
  .profile-info-section{padding:15px 16px 20px}
}
@media (max-width:380px){.md-grid4{grid-template-columns:repeat(3,1fr)}}
[data-theme="dark"] .profile-header,[data-theme="dark"] .profile-info-section,[data-theme="dark"] .md-acc,[data-theme="dark"] .md-pets-card{background:#1f2937;border-color:#374151}
[data-theme="dark"] .profile-name,[data-theme="dark"] .dash-section-toggle,[data-theme="dark"] .md-pets-h b{color:#f9fafb}
[data-theme="dark"] .profile-bio,[data-theme="dark"] .md-details{color:#d1d5db}
[data-theme="dark"] .stats-card,[data-theme="dark"] .md-acc2{background:#111827;border-color:#374151}
