/* =========================================================
   کلاب فن داریوش اقبالی — استایل اصلی
   حالت پیش‌فرض: شب (طلایی روی تیره) + حالت روز
   ========================================================= */

:root{
  --gold:#d4a94e; --gold-2:#b8862f; --gold-soft:rgba(212,169,78,.14);
  --danger:#e0665a; --ok:#5fbf77; --info:#6aa9e0;
  --radius:16px; --radius-sm:10px;
  --fs:16px;
  --topbar-h:66px;
  --max-w:1220px;
}
body[data-theme="dark"]{
  --bg:#121009; --bg-2:#181510; --bg-3:#201b13;
  --card:#1d1912; --card-2:#241f16;
  --line:#332c1e; --line-2:#42392a;
  --text:#ece5d3; --text-2:#c9bfa8; --muted:#8f8672;
  --shadow:0 14px 40px rgba(0,0,0,.45);
  --pattern-op:.05;
}
body[data-theme="light"]{
  --bg:#faf7ef; --bg-2:#f3eddd; --bg-3:#ece4cf;
  --card:#fffdf7; --card-2:#faf6ea;
  --line:#e4dcc6; --line-2:#d5cbab;
  --text:#241f14; --text-2:#4c4535; --muted:#7d745f;
  --gold:#a5761f; --gold-2:#8a611a; --gold-soft:rgba(165,118,31,.12);
  --shadow:0 12px 32px rgba(90,70,20,.14);
  --pattern-op:.06;
}
body[data-fsize="s"]{--fs:14px}
body[data-fsize="m"]{--fs:16px}
body[data-fsize="l"]{--fs:18px}
body[data-fsize="xl"]{--fs:21px}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:Vazirmatn,Tahoma,'Segoe UI',sans-serif;
  font-size:var(--fs); line-height:1.9; color:var(--text);
  background:var(--bg);
  background-image:
    radial-gradient(1200px 500px at 80% -10%, var(--gold-soft), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 6l6.5 15.5L50 28l-15.5 6.5L28 50l-6.5-15.5L6 28l15.5-6.5z' fill='none' stroke='%23d4a94e' stroke-width='.6' opacity='.55'/%3E%3C/svg%3E");
  min-height:100vh; display:flex; flex-direction:column;
}
a{color:var(--gold);text-decoration:none;transition:color .15s}
a:hover{color:var(--gold-2)}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
input,textarea,select{font-family:inherit;font-size:.95rem}
::selection{background:var(--gold);color:#14110d}

.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:26px 20px;flex:1}
.main-full{flex:1;display:flex;flex-direction:column}

/* ---------- دکمه‌ها ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 22px;border-radius:12px;font-weight:700;font-size:.95rem;border:1px solid transparent;transition:all .15s;line-height:1.6}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#14110d}
.btn-gold:hover{filter:brightness(1.1);color:#14110d;box-shadow:0 6px 18px var(--gold-soft)}
.btn-ghost{border-color:var(--line-2);color:var(--text-2);background:transparent}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold)}
.btn-danger{background:linear-gradient(135deg,#e0665a,#b84237);color:#fff}
.btn-ok{background:linear-gradient(135deg,#5fbf77,#3d9455);color:#fff}
.btn-sm{padding:6px 14px;font-size:.85rem;border-radius:9px}
.btn-lg{padding:14px 34px;font-size:1.05rem}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ---------- هدر ---------- */
.topbar{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--bg) 88%, transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
body[data-theme="light"] .topbar{background:rgba(250,247,239,.9)}
.topbar-inner{max-width:var(--max-w);margin:0 auto;display:flex;align-items:center;gap:18px;padding:10px 20px;min-height:var(--topbar-h)}
.brand{display:flex;align-items:center;gap:10px;color:var(--text)}
.brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#14110d;font-size:1.4rem;box-shadow:0 4px 14px var(--gold-soft)}
.brand-text{display:flex;flex-direction:column;line-height:1.3;font-weight:900;font-size:1.05rem}
.brand-text small{font-size:.7rem;color:var(--muted);font-weight:500}
.mainnav{display:flex;gap:4px;margin-inline-start:14px;flex-wrap:wrap}
.mainnav a{padding:8px 15px;border-radius:11px;color:var(--text-2);font-weight:600;font-size:.95rem}
.mainnav a:hover{color:var(--text);background:var(--bg-3)}
.mainnav a.active{color:var(--gold);background:var(--gold-soft)}
.userbox{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.authbtns{display:flex;gap:8px}
.authbtns .btn{padding:8px 18px}

.icon-btn{position:relative;width:40px;height:40px;border-radius:11px;border:1px solid var(--line);background:var(--card);color:var(--text-2);font-size:1.05rem;display:grid;place-items:center;transition:all .15s}
.icon-btn:hover{border-color:var(--gold);color:var(--gold)}
.icon-btn .dot{position:absolute;top:-6px;inset-inline-start:-6px;min-width:19px;height:19px;padding:0 4px;border-radius:99px;background:var(--danger);color:#fff;font-size:.68rem;font-weight:700;display:none;place-items:center;line-height:1}
.icon-btn.has-dot .dot{display:grid}
.dm-icon{font-size:.95rem}

/* پاپ‌اورها */
.pop{position:absolute;top:calc(100% + 10px);inset-inline-end:0;background:var(--card);border:1px solid var(--line-2);border-radius:var(--radius);box-shadow:var(--shadow);z-index:120;min-width:230px;overflow:hidden}
.fsize-wrap,.notif-wrap,.avatar-wrap{position:relative}
.fsize-pop{padding:12px}
.fsize-title{font-size:.8rem;color:var(--muted);display:block;margin-bottom:8px}
.fs-btn{width:100%;padding:8px;border:1px solid var(--line);background:transparent;color:var(--text-2);border-radius:9px;margin-bottom:6px;font-size:.9rem}
.fs-btn:hover{border-color:var(--gold);color:var(--gold)}
.notif-pop{width:330px;max-width:88vw}
.notif-head{padding:12px 16px;font-weight:800;border-bottom:1px solid var(--line);font-size:.95rem}
.notif-list{max-height:340px;overflow-y:auto}
.notif-item{display:block;padding:11px 16px;border-bottom:1px solid var(--line);font-size:.87rem;color:var(--text-2);line-height:1.7}
.notif-item:hover{background:var(--bg-3)}
.notif-item b{color:var(--text)}
.notif-item time{display:block;font-size:.72rem;color:var(--muted)}
.notif-item.unread{background:var(--gold-soft)}
.avatar-pop a{display:block;padding:10px 16px;color:var(--text-2);font-size:.9rem;border-bottom:1px solid var(--line)}
.avatar-pop a:hover{background:var(--bg-3);color:var(--gold)}
.avatar-pop a.danger{color:var(--danger)}
.avatar-pop a.admin-link{color:var(--gold);font-weight:700}
.avatar-pop-head{display:flex;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.avatar-pop-head img{width:44px;height:44px;border-radius:12px;object-fit:cover}
.avatar-pop-head b{display:block;font-size:.95rem}
.avatar-pop-head span{font-size:.78rem;color:var(--muted);direction:ltr}
.avatar-btn img{width:40px;height:40px;border-radius:11px;object-fit:cover;border:2px solid var(--line-2)}
.avatar-btn{border:none;background:none;padding:0;border-radius:12px}
.avatar-btn:hover img{border-color:var(--gold)}

.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:8px}
.nav-toggle span{width:24px;height:2.6px;background:var(--text);border-radius:3px;transition:.2s}

/* ---------- فلش ---------- */
.flash-area{position:fixed;top:76px;inset-inline-start:50%;transform:translateX(50%);z-index:300;display:flex;flex-direction:column;gap:8px;width:min(94vw,460px)}
.flash{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 18px;border-radius:12px;font-size:.92rem;animation:slideDown .3s ease;box-shadow:var(--shadow)}
@keyframes slideDown{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
.flash-ok{background:#1f3324;border:1px solid #3b6a49;color:#a9e0b3}
.flash-err{background:#3a1f1c;border:1px solid #7a3b34;color:#f0b5ab}
.flash-x{background:none;border:none;color:inherit;font-size:1.2rem;opacity:.7}

/* ---------- هیرو (خانه) ---------- */
.hero{position:relative;border-radius:26px;overflow:hidden;border:1px solid var(--line-2);background:linear-gradient(160deg,#241c0f 0%,#171208 55%,#0f0c06 100%);padding:70px 50px;text-align:center;margin-bottom:34px}
body[data-theme="light"] .hero{background:linear-gradient(160deg,#f7efd8 0%,#f1e6c8 55%,#ece0bd 100%)}
.hero::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M60 12l13 35 35 13-35 13-13 35-13-35-35-13 35-13z' fill='none' stroke='%23d4a94e' stroke-width='1' opacity='.25'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%23d4a94e' opacity='.3'/%3E%3C/svg%3E");opacity:.5;pointer-events:none}
.hero>*{position:relative}
.hero-kicker{display:inline-block;padding:6px 18px;border-radius:99px;border:1px solid var(--gold);color:var(--gold);font-size:.82rem;font-weight:700;letter-spacing:.5px;margin-bottom:22px}
.hero h1{font-size:clamp(1.7rem,4.5vw,3.2rem);font-weight:900;line-height:1.5;margin-bottom:14px;color:var(--text)}
.hero h1 .gold{background:linear-gradient(120deg,var(--gold),#f1d489,var(--gold));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{max-width:640px;margin:0 auto 30px;color:var(--text-2);font-size:1.05rem}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-quote{margin-top:34px;padding-top:26px;border-top:1px dashed var(--line-2);color:var(--muted);font-size:.9rem;font-style:italic;max-width:560px;margin-inline:auto}

/* آمار */
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:40px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;text-align:center;transition:transform .15s}
.stat:hover{transform:translateY(-3px)}
.stat b{display:block;font-size:1.7rem;font-weight:900;color:var(--gold)}
.stat span{color:var(--muted);font-size:.85rem}

/* ---------- بخش‌های خانه ---------- */
.home-section{margin-bottom:46px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.section-head h2{font-size:1.35rem;font-weight:900;position:relative;padding-inline-start:16px}
.section-head h2::before{content:"";position:absolute;inset-inline-start:0;top:6px;bottom:6px;width:5px;border-radius:4px;background:linear-gradient(180deg,var(--gold),var(--gold-2))}
.section-head a{font-size:.9rem;font-weight:700;white-space:nowrap}

/* ---------- کارت آهنگ ---------- */
.songs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}
.song-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:all .18s;position:relative;display:flex;flex-direction:column}
.song-card:hover{transform:translateY(-4px);border-color:var(--line-2);box-shadow:var(--shadow)}
.song-cover{position:relative;aspect-ratio:1/1;background:linear-gradient(135deg,var(--bg-3),var(--card-2));display:grid;place-items:center;overflow:hidden}
.song-cover img{width:100%;height:100%;object-fit:cover}
.song-cover .note{font-size:3.4rem;color:var(--gold);opacity:.35}
.song-cover .play-badge{position:absolute;inset:0;display:grid;place-items:center;background:rgba(10,8,4,.35);opacity:0;transition:.15s}
.song-card:hover .play-badge{opacity:1}
.play-badge span{width:54px;height:54px;border-radius:50%;background:var(--gold);color:#14110d;display:grid;place-items:center;font-size:1.3rem;padding-inline-start:3px;box-shadow:0 8px 22px rgba(0,0,0,.4)}
.song-info{padding:13px 15px 15px;flex:1;display:flex;flex-direction:column;gap:6px}
.song-title{font-weight:800;font-size:.98rem;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:1.9em}
.song-meta{display:flex;justify-content:space-between;align-items:center;font-size:.78rem;color:var(--muted)}
.rating-stars{color:var(--line-2);font-size:.8rem;letter-spacing:1px;white-space:nowrap}
.rating-stars .star.on{color:var(--gold)}
.rating-score{font-weight:800;color:var(--gold);font-size:.82rem}

/* ---------- صفحه آهنگ ---------- */
.song-page{display:grid;grid-template-columns:340px 1fr;gap:30px;align-items:start}
.song-page-cover{position:sticky;top:calc(var(--topbar-h) + 20px)}
.song-page-cover .cover{border-radius:22px;overflow:hidden;border:1px solid var(--line-2);aspect-ratio:1/1;background:var(--card-2);display:grid;place-items:center}
.song-page-cover .cover img{width:100%;height:100%;object-fit:cover}
.song-page-cover .cover .note{font-size:5rem;color:var(--gold);opacity:.3}
.song-head h1{font-size:1.75rem;font-weight:900;margin-bottom:6px}
.song-display-text{color:var(--text-2);margin-bottom:14px}
.song-facts{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.fact{padding:5px 14px;border-radius:99px;background:var(--card);border:1px solid var(--line);font-size:.8rem;color:var(--text-2)}
.fact b{color:var(--gold)}

/* پلیر */
.player{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px 20px;margin-bottom:22px}
.player-top{display:flex;align-items:center;gap:14px}
.player-play{width:52px;height:52px;flex:none;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#14110d;border:none;font-size:1.2rem;box-shadow:0 6px 16px var(--gold-soft)}
.player-play:hover{filter:brightness(1.1)}
.player-info{flex:1;min-width:0}
.player-title{font-weight:800;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seek-bar{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:var(--line-2);outline:none;margin-top:8px;cursor:pointer}
.seek-bar::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;border-radius:50%;background:var(--gold);border:3px solid var(--bg);box-shadow:0 2px 8px rgba(0,0,0,.4);cursor:pointer}
.seek-bar::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--gold);border:3px solid var(--bg);cursor:pointer}
.player-time{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted);direction:ltr;margin-top:4px}
.player-actions{display:flex;gap:8px}
.player video{width:100%;border-radius:14px;margin-top:16px;background:#000}

/* امتیازدهی */
.rate-box{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 22px;margin-bottom:22px}
.rate-box h3{font-size:1rem;font-weight:800;margin-bottom:4px}
.rate-sub{color:var(--muted);font-size:.82rem;margin-bottom:14px}
.rate-slider-row{display:flex;align-items:center;gap:16px}
.rate-slider{-webkit-appearance:none;appearance:none;flex:1;height:8px;border-radius:99px;background:linear-gradient(90deg,var(--gold-2),var(--gold));outline:none;cursor:pointer;direction:ltr}
.rate-slider::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:var(--gold);border:4px solid var(--bg);box-shadow:0 3px 10px rgba(0,0,0,.4);cursor:grab}
.rate-slider::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--gold);border:4px solid var(--bg);cursor:grab}
.rate-value{min-width:64px;text-align:center;font-weight:900;font-size:1.5rem;color:var(--gold)}
.rate-avg{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-top:10px}

/* متن آهنگ */
.lyrics-box{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:24px 28px;margin-bottom:22px;position:relative;overflow:hidden}
.lyrics-box::before{content:"❝";position:absolute;top:6px;inset-inline-end:18px;font-size:4rem;color:var(--gold);opacity:.14}
.lyrics-box h3{font-weight:900;margin-bottom:14px;font-size:1.05rem}
.lyrics{white-space:pre-wrap;color:var(--text-2);line-height:2.3;font-size:1rem}

/* کامنت‌ها */
.comments-box{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px}
.comments-box h3{font-weight:900;margin-bottom:16px;font-size:1.05rem}
.comment-form{display:flex;gap:10px;margin-bottom:20px}
.comment-form textarea{flex:1;min-height:52px;resize:vertical}
.comment{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.comment:last-child{border-bottom:none}
.comment img.c-av{width:42px;height:42px;border-radius:12px;object-fit:cover;flex:none}
.c-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.c-name{font-weight:800;font-size:.9rem}
.c-time{font-size:.72rem;color:var(--muted)}
.c-body{font-size:.92rem;color:var(--text-2);margin-top:2px;white-space:pre-wrap;word-break:break-word}
.c-actions{display:flex;gap:12px;margin-top:6px}
.c-actions button{background:none;border:none;color:var(--muted);font-size:.76rem;padding:0}
.c-actions button:hover{color:var(--danger)}

/* ---------- فرم‌ها ---------- */
.form-card{max-width:560px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:34px}
.form-wide{max-width:760px}
.form-card h1{font-size:1.5rem;font-weight:900;margin-bottom:6px}
.form-sub{color:var(--muted);font-size:.9rem;margin-bottom:24px}
.field{margin-bottom:16px}
.field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:7px;color:var(--text-2)}
.field input,.field textarea,.field select{width:100%;padding:12px 16px;border-radius:12px;border:1px solid var(--line-2);background:var(--bg-2);color:var(--text);transition:border .15s}
body[data-theme="dark"] .field input,body[data-theme="dark"] .field textarea{background:#211d15}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.field textarea{min-height:110px;resize:vertical;line-height:1.9}
.field .hint{font-size:.75rem;color:var(--muted);margin-top:5px}
.field .err-msg{font-size:.78rem;color:var(--danger);margin-top:5px;display:none}
.field.has-error input,.field.has-error textarea{border-color:var(--danger)}
.field.has-error .err-msg{display:block}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-actions{display:flex;gap:10px;margin-top:8px;flex-wrap:wrap}
.form-foot{margin-top:18px;text-align:center;font-size:.9rem;color:var(--muted)}
.form-foot a{font-weight:700}
.check-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.check-row input{width:19px;height:19px;accent-color:var(--gold)}
.check-row label{font-size:.9rem;color:var(--text-2);cursor:pointer}
.required::after{content:" *";color:var(--danger)}

/* آپلودر */
.upload-box{border:2px dashed var(--line-2);border-radius:14px;padding:26px;text-align:center;color:var(--muted);cursor:pointer;transition:.15s;position:relative}
.upload-box:hover,.upload-box.dragover{border-color:var(--gold);color:var(--gold);background:var(--gold-soft)}
.upload-box input{position:absolute;inset:0;opacity:0;cursor:pointer;inset-inline-start:0}
.upload-box .ub-icon{font-size:1.8rem;display:block;margin-bottom:6px}
.upload-box .ub-name{display:block;color:var(--gold);font-weight:700;word-break:break-all}

/* ---------- بهترین‌ها ---------- */
.best-list{display:flex;flex-direction:column;gap:14px}
.best-item{display:flex;gap:18px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;transition:.15s;position:relative;overflow:hidden}
.best-item:hover{border-color:var(--gold);transform:translateX(-4px)}
.best-rank{flex:none;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-weight:900;font-size:1.25rem;background:var(--bg-3);color:var(--text-2)}
.best-item.top-1 .best-rank{background:linear-gradient(135deg,#f5d67d,#c9992d);color:#14110d;box-shadow:0 4px 16px rgba(212,169,78,.35)}
.best-item.top-2 .best-rank{background:linear-gradient(135deg,#d9d9d9,#9e9e9e);color:#14110d}
.best-item.top-3 .best-rank{background:linear-gradient(135deg,#d99a6c,#a96a3c);color:#14110d}
.best-cover{width:66px;height:66px;border-radius:12px;object-fit:cover;flex:none;background:var(--bg-3)}
.best-cover-ph{width:66px;height:66px;border-radius:12px;flex:none;background:var(--bg-3);display:grid;place-items:center;color:var(--gold);opacity:.5;font-size:1.4rem}
.best-mid{flex:1;min-width:0}
.best-mid a{font-weight:800;font-size:1rem;color:var(--text)}
.best-mid a:hover{color:var(--gold)}
.best-meta{font-size:.78rem;color:var(--muted);margin-top:3px;display:flex;gap:14px;flex-wrap:wrap}
.best-score{flex:none;text-align:center;min-width:76px}
.best-score b{display:block;font-size:1.6rem;font-weight:900;color:var(--gold)}
.best-score span{font-size:.72rem;color:var(--muted)}
.best-bar{height:7px;border-radius:99px;background:var(--bg-3);overflow:hidden;margin-top:8px}
.best-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--gold-2),var(--gold))}

/* ---------- چت کلاب ---------- */
.chat-app{flex:1;display:flex;height:calc(100dvh - var(--topbar-h));overflow:hidden;direction:rtl}
.chat-side{width:290px;flex:none;order:1;border-inline-end:1px solid var(--line);background:var(--card);overflow-y:auto;padding:16px}
.chat-main{flex:1;order:2;display:flex;flex-direction:column;min-width:0}
.chat-head{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--card)}
.chat-head .ch-icon{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,var(--gold),var(--gold-2));display:grid;place-items:center;color:#14110d;font-size:1.2rem}
.chat-head b{display:block;font-size:1rem}
.chat-head span{font-size:.75rem;color:var(--ok)}
.chat-online-count{margin-inline-start:auto;font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.online-dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 8px var(--ok)}
.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:4px;scroll-behavior:smooth}
.chat-day-sep{align-self:center;padding:4px 18px;border-radius:99px;background:var(--bg-3);color:var(--muted);font-size:.75rem;margin:14px 0 10px}
.msg{display:flex;gap:10px;max-width:82%;padding:4px 8px;border-radius:12px;position:relative}
.msg:hover{background:var(--gold-soft)}
.msg img.m-av{width:38px;height:38px;border-radius:11px;object-fit:cover;flex:none;margin-top:3px;cursor:pointer}
.msg-body{min-width:0}
.msg-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.msg-name{font-size:.8rem;font-weight:800;cursor:pointer}
.msg-name:hover{text-decoration:underline}
.msg-time{font-size:.66rem;color:var(--muted)}
.msg-text{background:var(--card);border:1px solid var(--line);padding:8px 14px;border-radius:14px 4px 14px 14px;font-size:.93rem;white-space:pre-wrap;word-break:break-word;margin-top:2px;line-height:1.8}
.msg-body a{word-break:break-all}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.msg.me .msg-text{background:linear-gradient(135deg,rgba(212,169,78,.22),rgba(184,134,47,.16));border-color:var(--gold-2);border-radius:4px 14px 14px 14px}
.msg.me .msg-head{justify-content:flex-end}
.msg-img{max-width:290px;border-radius:12px;display:block;cursor:zoom-in}
.msg-video{max-width:290px;border-radius:12px;display:block}
.msg-gif{max-width:230px;border-radius:12px;display:block;cursor:pointer}
.msg-reply{border-inline-start:3px solid var(--gold);padding:4px 10px;background:var(--bg-3);border-radius:8px;margin-bottom:5px;font-size:.78rem;color:var(--muted);cursor:pointer;max-height:70px;overflow:hidden}
.msg-reply b{color:var(--gold);display:block;font-size:.75rem}
.msg-deleted{color:var(--muted);font-style:italic;font-size:.85rem}
.msg-actions{position:absolute;top:-12px;inset-inline-end:8px;display:none;gap:2px;background:var(--card);border:1px solid var(--line-2);border-radius:9px;padding:2px;box-shadow:var(--shadow);z-index:5}
.msg:hover .msg-actions{display:flex}
.m-act{width:26px;height:26px;border:none;background:none;border-radius:6px;font-size:.8rem;color:var(--text-2);display:grid;place-items:center}
.m-act:hover{background:var(--bg-3);color:var(--gold)}
.m-act.danger:hover{color:var(--danger)}
.msg.pending{opacity:.55}

/* فرم ارسال چت */
.chat-composer{padding:12px 16px;border-top:1px solid var(--line);background:var(--card)}
.reply-preview{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--bg-3);border-inline-start:3px solid var(--gold);padding:7px 12px;border-radius:9px;margin-bottom:9px;font-size:.8rem;color:var(--muted)}
.reply-preview button{background:none;border:none;color:var(--danger);font-size:1rem}
.composer-row{display:flex;gap:8px;align-items:flex-end}
.composer-input{flex:1;display:flex;align-items:center;gap:6px;background:var(--bg-2);border:1px solid var(--line-2);border-radius:14px;padding:6px 10px}
body[data-theme="dark"] .composer-input{background:#211d15}
.composer-input:focus-within{border-color:var(--gold)}
.composer-input textarea{flex:1;background:none;border:none;outline:none;color:var(--text);resize:none;max-height:130px;min-height:38px;line-height:1.7;padding:6px 4px;font-size:.93rem}
.composer-tools{display:flex}
.c-tool{width:38px;height:38px;border:none;background:none;border-radius:9px;color:var(--muted);font-size:1.15rem}
.c-tool:hover{background:var(--bg-3);color:var(--gold)}
.send-btn{width:46px;height:46px;flex:none;border-radius:13px;border:none;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#14110d;font-size:1.15rem;box-shadow:0 5px 14px var(--gold-soft)}
.send-btn:disabled{opacity:.5}

/* سایدبار چت */
.chat-side h4{font-size:.85rem;color:var(--muted);margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}
.side-user{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:11px;transition:.12s;position:relative}
.side-user:hover{background:var(--bg-3)}
.side-user .av-wrap{position:relative;flex:none}
.side-user img{width:40px;height:40px;border-radius:11px;object-fit:cover}
.side-user .on-dot{position:absolute;bottom:-2px;inset-inline-end:-2px;width:11px;height:11px;border-radius:50%;background:var(--ok);border:2.5px solid var(--card)}
.side-user .su-name{font-size:.86rem;font-weight:700}
.side-user .su-sub{font-size:.7rem;color:var(--muted)}
.side-user .su-admin{font-size:.62rem;color:var(--gold)}
.chat-rules{margin-top:18px;padding:14px;background:var(--bg-3);border-radius:12px;font-size:.76rem;color:var(--muted);line-height:2}
.chat-rules b{color:var(--gold)}

/* پنل انتخاب گیف/ایموجی */
.emoji-pop,.gif-pop{position:absolute;bottom:calc(100% + 10px);inset-inline-start:0;background:var(--card);border:1px solid var(--line-2);border-radius:16px;box-shadow:var(--shadow);z-index:60;overflow:hidden}
.emoji-pop{width:310px;padding:12px;display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.emoji-pop button{background:none;border:none;font-size:1.35rem;padding:4px;border-radius:8px}
.emoji-pop button:hover{background:var(--bg-3)}
.gif-pop{width:340px;max-width:90vw}
.gif-pop .gif-head{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line);font-size:.85rem;font-weight:800}
.gif-pop .gif-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px;max-height:290px;overflow-y:auto}
.gif-pop .gif-grid button{border:none;background:none;padding:0;border-radius:9px;overflow:hidden;aspect-ratio:1;position:relative}
.gif-pop .gif-grid img{width:100%;height:100%;object-fit:cover}
.gif-pop .gif-grid button:hover{outline:2px solid var(--gold)}

/* بنر بن‌شدگی */
.ban-banner{margin:20px;padding:16px 22px;border-radius:14px;background:#3a1f1c;border:1px solid #7a3b34;color:#f0b5ab;display:flex;gap:12px;align-items:center;justify-content:center;text-align:center}

/* ---------- شورت‌ویدیو ---------- */
.shorts-app{flex:1;position:relative;height:calc(100dvh - var(--topbar-h));overflow:hidden;background:#000}
.shorts-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
.shorts-feed::-webkit-scrollbar{display:none}
.short-slide{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:flex;align-items:center;justify-content:center}
.short-video{max-height:100%;max-width:100%;width:auto;height:100%;object-fit:contain;background:#000}
.short-overlay{position:absolute;bottom:0;inset-inline-start:0;inset-inline-end:0;padding:24px 20px 28px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;pointer-events:none}
.short-overlay>*{pointer-events:auto}
.short-info{max-width:70%}
.short-info .so-user{display:flex;align-items:center;gap:10px;margin-bottom:8px;color:#fff}
.short-info .so-user img{width:42px;height:42px;border-radius:12px;object-fit:cover}
.short-info .so-user b{font-size:.95rem}
.short-info .so-user span{font-size:.75rem;opacity:.75;direction:ltr;display:block}
.short-info h3{font-size:1.05rem;font-weight:800;margin-bottom:4px}
.short-info p{font-size:.83rem;opacity:.85;line-height:1.7;max-height:65px;overflow:hidden}
.short-side{display:flex;flex-direction:column;gap:22px;align-items:center}
.short-side .s-btn{width:50px;height:50px;border-radius:15px;border:none;background:rgba(255,255,255,.14);backdrop-filter:blur(8px);color:#fff;font-size:1.25rem;display:grid;place-items:center;position:relative;transition:.15s}
.short-side .s-btn:hover{background:rgba(255,255,255,.26);transform:scale(1.06)}
.short-side .s-btn.liked{background:var(--danger)}
.short-side .s-count{position:absolute;top:calc(100% + 5px);inset-inline-start:50%;transform:translateX(50%);font-size:.68rem;white-space:nowrap}
.short-nav{position:absolute;top:46%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:none;background:rgba(255,255,255,.13);color:#fff;font-size:1.2rem;backdrop-filter:blur(6px);z-index:10;display:grid;place-items:center}
.short-nav:hover{background:rgba(255,255,255,.28)}
.short-prev{inset-inline-end:18px;rotate:90deg}
.short-next{inset-inline-start:18px;rotate:-90deg}
.s-btn.bouncing{animation:bounce .4s ease}
@keyframes bounce{0%,100%{transform:scale(1)}40%{transform:scale(1.25)}}
.shorts-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:16px;text-align:center;padding:20px}
.shorts-empty .big{font-size:3.5rem;opacity:.4}

/* ---------- پیام‌رسان خصوصی ---------- */
.dm-app{display:grid;grid-template-columns:320px 1fr;height:calc(100dvh - var(--topbar-h) - 2px);overflow:hidden}
.dm-side{border-inline-end:1px solid var(--line);background:var(--card);display:flex;flex-direction:column;min-height:0}
.dm-side-head{padding:16px 18px;border-bottom:1px solid var(--line)}
.dm-side-head h3{font-size:1rem;margin-bottom:12px}
.dm-search{position:relative}
.dm-search input{width:100%;padding:10px 40px 10px 14px;border-radius:11px;border:1px solid var(--line-2);background:var(--bg-2);color:var(--text)}
.dm-search input:focus{outline:none;border-color:var(--gold)}
.dm-search .ds-icon{position:absolute;top:50%;transform:translateY(-50%);inset-inline-start:12px;color:var(--muted)}
.dm-results{max-height:220px;overflow-y:auto;border-bottom:1px solid var(--line)}
.dm-results a{display:flex;gap:10px;align-items:center;padding:9px 18px;font-size:.85rem}
.dm-results a:hover{background:var(--bg-3)}
.dm-results img{width:34px;height:34px;border-radius:9px;object-fit:cover}
.dm-list{flex:1;overflow-y:auto}
.dm-item{display:flex;gap:11px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);transition:.12s;position:relative}
.dm-item:hover{background:var(--bg-3)}
.dm-item.active{background:var(--gold-soft)}
.dm-item img{width:48px;height:48px;border-radius:13px;object-fit:cover}
.dm-item .di-name{font-size:.9rem;font-weight:800;display:flex;align-items:center;gap:6px}
.dm-item .di-last{font-size:.76rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}
.dm-item .di-time{font-size:.66rem;color:var(--muted)}
.dm-item .di-unread{position:absolute;top:12px;inset-inline-end:14px;background:var(--danger);color:#fff;font-size:.66rem;min-width:18px;height:18px;border-radius:99px;display:grid;place-items:center;padding:0 4px}
.dm-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.dm-thread-head{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--card)}
.dm-thread-head img{width:44px;height:44px;border-radius:13px;object-fit:cover}
.dm-thread-head b{font-size:.95rem}
.dm-thread-head span{font-size:.73rem;color:var(--muted);display:block}

/* ---------- پروفایل ---------- */
.profile-banner{border-radius:22px;border:1px solid var(--line-2);overflow:hidden;background:linear-gradient(140deg,var(--bg-3),var(--card));position:relative;margin-bottom:26px}
.profile-banner .pb-pattern{height:150px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 8l9 23 23 9-23 9-9 23-9-23-23-9 23-9z' fill='none' stroke='%23d4a94e' stroke-width='.8' opacity='.3'/%3E%3C/svg%3E"),radial-gradient(600px 200px at 85% 20%,var(--gold-soft),transparent)}
.profile-head{display:flex;align-items:flex-end;gap:18px;padding:0 26px;margin-top:-54px;position:relative;flex-wrap:wrap}
.profile-head img{width:112px;height:112px;border-radius:24px;object-fit:cover;border:4px solid var(--bg);box-shadow:var(--shadow);flex:none}
.profile-id{padding-bottom:14px;min-width:0}
.profile-id h1{font-size:1.35rem;font-weight:900;display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.5}
.profile-id .p-tag{color:var(--muted);font-size:.9rem;font-weight:500;direction:ltr;display:block}
.profile-actions{margin-inline-start:auto;padding-bottom:14px;display:flex;gap:8px;flex-wrap:wrap;position:relative}
.profile-body{display:grid;grid-template-columns:300px 1fr;gap:26px}
.profile-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px}
.profile-card h3{font-size:.95rem;font-weight:900;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.pf-row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:.87rem;border-bottom:1px dashed var(--line)}
.pf-row:last-child{border:none}
.pf-row span{color:var(--muted)}
.pf-row b{font-weight:700;text-align:left}
.pf-bio{padding:16px 18px;background:var(--bg-3);border-radius:12px;font-size:.88rem;color:var(--text-2);line-height:2;margin-top:8px}
.videos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.video-tile{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:9/13;background:var(--bg-3);border:1px solid var(--line)}
.video-tile video{width:100%;height:100%;object-fit:cover}
.video-tile .vt-info{position:absolute;bottom:0;inset-inline:0;padding:10px 12px;background:linear-gradient(transparent,rgba(0,0,0,.8));color:#fff;font-size:.78rem}
.video-tile .vt-views{position:absolute;top:10px;inset-inline-start:10px;background:rgba(0,0,0,.55);color:#fff;padding:2px 10px;border-radius:99px;font-size:.7rem}
.video-tile .vt-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:2rem;text-shadow:0 2px 10px #000;pointer-events:none}

/* ---------- جدول ادمین ---------- */
.admin-layout{display:grid;grid-template-columns:230px 1fr;gap:24px;align-items:start}
.admin-nav{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;position:sticky;top:calc(var(--topbar-h) + 16px)}
.admin-nav a{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;color:var(--text-2);font-size:.9rem;font-weight:600;margin-bottom:2px}
.admin-nav a:hover{background:var(--bg-3);color:var(--text)}
.admin-nav a.active{background:var(--gold-soft);color:var(--gold)}
.admin-nav .an-sep{margin:10px 6px;border-top:1px dashed var(--line)}
.admin-content{min-width:0}
.admin-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.admin-head h1{font-size:1.3rem;font-weight:900}
.admin-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-bottom:24px}
.a-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.a-card b{display:block;font-size:1.6rem;font-weight:900;color:var(--gold)}
.a-card span{font-size:.8rem;color:var(--muted)}
.a-card .a-ico{font-size:1.3rem;margin-bottom:6px}

.table-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:18px}
.table-scroll{overflow-x:auto}
table.dtable{width:100%;border-collapse:collapse;font-size:.86rem;min-width:640px}
.dtable th{text-align:right;padding:12px 16px;background:var(--bg-3);color:var(--muted);font-weight:700;font-size:.78rem;white-space:nowrap}
.dtable td{padding:11px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.dtable tr:last-child td{border-bottom:none}
.dtable tr:hover td{background:var(--bg-2)}
.dtable .mini-av{width:36px;height:36px;border-radius:10px;object-fit:cover}
.dtable .actions{display:flex;gap:6px;flex-wrap:wrap}
.tag-pill{display:inline-block;padding:2px 10px;border-radius:99px;font-size:.7rem;background:var(--bg-3);color:var(--text-2);direction:ltr}
.status-pill{display:inline-block;padding:2px 12px;border-radius:99px;font-size:.7rem;font-weight:700}
.status-pending{background:#3a2f14;color:#e8c463}
.status-handled{background:#1f3324;color:#7ec97e}
.status-banned{background:#3a1f1c;color:#f0b5ab}

/* پنل دسترسی‌ها */
.perm-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.perm-item{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--bg-2)}
.perm-item input{width:18px;height:18px;accent-color:var(--gold);margin-top:4px}
.perm-item label{font-size:.8rem;line-height:1.7;cursor:pointer}
.perm-item label b{display:block;font-size:.85rem}

/* ---------- مودال ---------- */
.modal-back{position:fixed;inset:0;background:rgba(8,6,3,.72);backdrop-filter:blur(4px);z-index:400;display:grid;place-items:center;padding:20px;animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{background:var(--card);border:1px solid var(--line-2);border-radius:20px;width:min(560px,94vw);max-height:88vh;overflow-y:auto;box-shadow:var(--shadow);animation:popIn .2s ease}
@keyframes popIn{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--card);z-index:2}
.modal-head h3{font-size:1.05rem;font-weight:900}
.modal-x{background:none;border:none;color:var(--muted);font-size:1.4rem;line-height:1}
.modal-x:hover{color:var(--danger)}
.modal-body{padding:22px 24px}
.modal-foot{display:flex;gap:10px;justify-content:flex-start;padding:0 24px 22px;flex-wrap:wrap}

/* لیghtbox تصویر */
.lightbox{position:fixed;inset:0;background:rgba(5,4,2,.92);z-index:500;display:grid;place-items:center;padding:24px}
.lightbox img{max-width:94vw;max-height:90vh;border-radius:12px}
.lightbox .lb-x{position:absolute;top:18px;inset-inline-start:18px;width:44px;height:44px;border-radius:12px;border:none;background:rgba(255,255,255,.12);color:#fff;font-size:1.3rem}

/* ---------- توست ---------- */
#toastBox{position:fixed;bottom:22px;inset-inline-start:50%;transform:translateX(50%);z-index:600;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{background:var(--card);border:1px solid var(--line-2);color:var(--text);padding:12px 22px;border-radius:13px;font-size:.9rem;box-shadow:var(--shadow);animation:toastIn .25s ease;display:flex;gap:10px;align-items:center;max-width:90vw}
@keyframes toastIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.toast.ok{border-color:#3b6a49}
.toast.err{border-color:#7a3b34}
.toast.out{opacity:0;transition:.3s}

/* ---------- حالت خالی ---------- */
.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}
.empty-state .big{font-size:3.2rem;opacity:.35;display:block;margin-bottom:12px}
.empty-state h3{color:var(--text-2);font-weight:800;margin-bottom:6px}
.empty-state p{font-size:.88rem;margin-bottom:18px}
.empty-mini{padding:22px;text-align:center;color:var(--muted);font-size:.85rem}

/* ---------- صفحه‌بندی ---------- */
.pagination{display:flex;gap:6px;justify-content:center;margin:28px 0;flex-wrap:wrap}
.pg{padding:8px 15px;border-radius:10px;border:1px solid var(--line);color:var(--text-2);font-size:.85rem;font-weight:700}
.pg:hover{border-color:var(--gold);color:var(--gold)}
.pg.active{background:var(--gold);border-color:var(--gold);color:#14110d}
.pg.disabled{opacity:.4;pointer-events:none}
.pg-dots{color:var(--muted);align-self:center}

/* ---------- فوتر ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-2);margin-top:40px}
.footer-inner{max-width:var(--max-w);margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:30px}
.footer-brand .brand-icon{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#14110d;margin-bottom:10px}
.footer-brand b{color:var(--text)}
.footer-brand p{font-size:.83rem;color:var(--muted);margin-top:6px;line-height:2}
.footer-nav{display:flex;flex-direction:column;gap:8px;font-size:.87rem}
.footer-nav a{color:var(--text-2)}
.footer-nav a:hover{color:var(--gold)}
.footer-seo p{font-size:.8rem;color:var(--muted);line-height:2}
.footer-seo .copy{margin-top:10px;color:var(--text-2)}

/* ---------- کمکی ---------- */
.gold-text{color:var(--gold)}
.muted{color:var(--muted)}
.small{font-size:.8rem}
.flex-between{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.mt{margin-top:20px}.mb{margin-bottom:20px}
.hidden{display:none!important}
.badge{display:inline-block;padding:1px 10px;border-radius:99px;font-size:.66rem;font-weight:800;vertical-align:middle}
.badge-owner{background:linear-gradient(135deg,#f5d67d,#c9992d);color:#14110d}
.badge-admin{background:var(--gold-soft);color:var(--gold);border:1px solid var(--gold-2)}

/* ---------- رسپانسیو ---------- */
@media(max-width:1020px){
  .song-page{grid-template-columns:1fr}
  .song-page-cover{position:static;max-width:360px}
  .profile-body{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr}
  .admin-nav{position:static;display:flex;overflow-x:auto;gap:4px}
  .admin-nav a{white-space:nowrap}
  .admin-nav .an-sep{display:none}
  .footer-inner{grid-template-columns:1fr 1fr}
  .chat-side{display:none}
  .dm-app{grid-template-columns:1fr}
  .dm-side{border:none}
  .dm-hide-sm{display:none}
}
@media(max-width:820px){
  .nav-toggle{display:flex}
  .mainnav{display:none;position:absolute;top:100%;inset-inline:0;background:var(--card);border-bottom:1px solid var(--line-2);flex-direction:column;padding:10px 16px;box-shadow:var(--shadow);margin:0}
  .mainnav.open{display:flex}
  .brand-text small{display:none}
  .hero{padding:44px 22px}
  .form-row{grid-template-columns:1fr}
  .msg{max-width:94%}
  .footer-inner{grid-template-columns:1fr}
  .profile-head{padding:0 14px;gap:12px}
  .profile-actions{padding-bottom:8px}
  .authbtns .btn{padding:7px 12px;font-size:.83rem}
  .form-card{padding:24px 18px}
  .short-overlay p{display:none}
}
