/* ==================================================
   نیکزی v4 — سیستم طراحی مشترک
   تم روشن/تاریک · هدر شیشه‌ای · بدون وابستگی خارجی
   ================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ===== توکن‌های طراحی ===== */
:root {
    --c-primary: #1a7a5e;
    --c-primary-strong: #0f6b50;
    --c-accent: #2196a6;
    --grad: linear-gradient(135deg, #1a7a5e, #2196a6);
    --grad-soft: linear-gradient(135deg, rgba(26,122,94,.12), rgba(33,150,166,.12));

    --bg: #f2f8f5;
    --bg-soft: #e8f1ed;
    --surface: #ffffff;
    --surface-2: #f7fbf9;
    --text: #17322b;
    --text-2: #52736a;
    --muted: #7d9a91;
    --border: rgba(23, 90, 74, .12);
    --border-strong: rgba(23, 90, 74, .2);

    --header-bg: rgba(255, 255, 255, .78);
    --shadow-sm: 0 1px 2px rgba(15, 60, 48, .05);
    --shadow: 0 1px 2px rgba(15,60,48,.05), 0 10px 30px -18px rgba(15,60,48,.25);
    --shadow-lg: 0 2px 4px rgba(15,60,48,.06), 0 24px 48px -24px rgba(15,60,48,.35);

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;

    --ring: 0 0 0 3px rgba(33, 150, 166, .35);
    --c-danger: #d64545;
    --c-warn: #b28704;
    --mark-bg: #fff3c2;
}

[data-theme="dark"] {
    --c-primary: #35b895;
    --c-primary-strong: #2ea584;
    --c-accent: #3fb8c9;
    --grad: linear-gradient(135deg, #1f8a6b, #2196a6);
    --grad-soft: linear-gradient(135deg, rgba(53,184,149,.14), rgba(63,184,201,.14));

    --bg: #0d1512;
    --bg-soft: #101a16;
    --surface: #15211c;
    --surface-2: #1a2822;
    --text: #e4f1eb;
    --text-2: #9dbcb1;
    --muted: #6d8c82;
    --border: rgba(148, 200, 180, .14);
    --border-strong: rgba(148, 200, 180, .26);

    --header-bg: rgba(13, 21, 18, .75);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 24px 48px -24px rgba(0,0,0,.7);

    --c-danger: #ef6b6b;
    --c-warn: #d8b13c;
    --mark-bg: #4d4416;
}

/* ===== پایه ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(33,150,166,.09), transparent 60%),
        radial-gradient(900px 420px at 0% 0%, rgba(26,122,94,.08), transparent 55%),
        var(--bg);
    color: var(--text);
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    transition: background-color .3s, color .3s;
}
main { flex: 1; width: 100%; min-width: 0; }

a { color: var(--c-primary); text-decoration: none; }
img { max-width: 100%; }

::selection { background: rgba(33,150,166,.3); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { max-width: 1200px; min-width: 0; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== هدر شیشه‌ای چسبان ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background-color .3s;
}
.header-inner {
    width: 100%; min-width: 0;
    max-width: 1200px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px -4px rgba(26,122,94,.5);
    flex-shrink: 0;
}
.brand-name { font-weight: 900; font-size: 1.06rem; letter-spacing: .3px; line-height: 1.3; }
.brand-sub { font-size: .7rem; color: var(--text-2); font-weight: 600; }

.header-search { flex: 1; max-width: 560px; position: relative; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .18s;
    flex-shrink: 0;
}
.icon-btn:hover { color: var(--c-primary); border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ===== هیرو ===== */
.hero {
    width: 100%; min-width: 0;
    max-width: 1200px; margin: 0 auto; padding: 40px 20px 8px;
    text-align: center;
    overflow-wrap: anywhere;
}
.hero .kicker {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--grad-soft);
    color: var(--c-primary);
    border: 1px solid var(--border);
    font-size: .78rem; font-weight: 700;
    padding: 6px 16px; border-radius: 50px;
    margin-bottom: 16px;
}
.hero .kicker .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2ecc71;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
    70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.hero h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.3rem);
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.5;
    margin-bottom: 6px;
}
.hero p { color: var(--text-2); font-size: .95rem; font-weight: 600; margin-bottom: 24px; }

/* جستجوی بزرگ هیرو */
.hero-search { width: 100%; min-width: 0; max-width: 620px; margin: 0 auto 26px; position: relative; }

/* ===== جستجو ===== */
.search-form {
    width: 100%; min-width: 0; max-width: 100%;
    display: flex; gap: 8px;
    background: var(--surface);
    border-radius: 16px; padding: 7px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--c-accent); box-shadow: var(--shadow), var(--ring); }
.search-form input {
    flex: 1; border: none; outline: none;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: .95rem; padding: 10px 16px;
    background: transparent; color: var(--text);
    min-width: 0;
}
.search-form input::placeholder { color: var(--muted); }
.search-form .search-submit {
    background: var(--grad); color: #fff; border: none; border-radius: 11px;
    padding: 10px 22px; font-size: .88rem; font-weight: 700;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    cursor: pointer; transition: opacity .2s, transform .15s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.search-form .search-submit:hover { opacity: .9; }
.search-form .search-submit:active { transform: scale(.97); }

/* پیشنهاد زنده */
.suggest-panel {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 950;
    display: none;
}
.suggest-panel.open { display: block; }
.suggest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item.hl { background: var(--grad-soft); }
.suggest-item .s-ic {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.suggest-item .s-body { flex: 1; min-width: 0; }
.suggest-item .s-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .s-meta { font-size: .72rem; color: var(--muted); }
.suggest-item .s-dl { font-size: .72rem; color: var(--text-2); font-weight: 700; flex-shrink: 0; }
.suggest-more {
    display: block; text-align: center; padding: 10px;
    font-size: .8rem; font-weight: 700; color: var(--c-primary);
    background: var(--surface-2);
}
.suggest-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .84rem; }

/* ===== بخش و عنوان‌ها ===== */
.section { width: 100%; min-width: 0; max-width: 1200px; margin: 0 auto; padding: 18px 20px; }
.section-title {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 1.08rem; font-weight: 900; color: var(--text);
    margin: 26px 0 16px;
}
.section-title .bar {
    width: 5px; height: 22px; border-radius: 4px;
    background: var(--grad);
    flex-shrink: 0;
}
.section-title .count {
    font-size: .74rem; font-weight: 700; color: var(--text-2);
    background: var(--bg-soft);
    padding: 3px 12px; border-radius: 50px;
    margin-right: 4px;
}
.section-title .link-more {
    margin-right: auto;
    font-size: .8rem; font-weight: 700; color: var(--c-primary);
    display: inline-flex; align-items: center; gap: 4px;
}
.section-title .link-more:hover { text-decoration: underline; }

/* ===== اطلاعیه ===== */
.announcement-box {
    background: linear-gradient(135deg, rgba(255,213,79,.16), rgba(255,213,79,.07));
    border: 1px solid rgba(255,193,7,.35);
    border-radius: var(--r-md);
    padding: 13px 18px;
    display: flex; align-items: center; gap: 12px;
    color: var(--c-warn);
    font-size: .92rem; font-weight: 600; line-height: 1.8;
    margin: 18px auto 0;
    max-width: 1160px;
}
[data-theme="dark"] .announcement-box { color: #e8c96a; }
.announcement-box > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.announce-icon { color: #fbc02d; flex-shrink: 0; animation: ring 2.4s infinite ease-in-out; }
@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-14deg); }
    50% { transform: rotate(14deg); }
    75% { transform: rotate(-14deg); }
}

/* ===== دکمه‌ها ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: .87rem; font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(26,122,94,.55); }
.btn-primary:hover { box-shadow: 0 10px 24px -6px rgba(26,122,94,.6); transform: translateY(-1px); }
.btn-soft { background: var(--grad-soft); color: var(--c-primary); border-color: var(--border); }
.btn-soft:hover { border-color: var(--c-primary); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { color: var(--c-primary); border-color: var(--border-strong); }
.btn-danger { background: rgba(214,69,69,.12); color: var(--c-danger); border-color: rgba(214,69,69,.3); }
.btn-danger:hover { background: rgba(214,69,69,.2); }
.btn-sm { padding: 6px 14px; font-size: .78rem; border-radius: 9px; }

/* ===== چیپ‌ها و سگمنت ===== */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip {
    padding: 6px 15px; border-radius: 50px;
    font-size: .8rem; font-weight: 700;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all .16s;
}
.chip:hover { border-color: var(--c-accent); color: var(--c-primary); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 12px -4px rgba(26,122,94,.5); }

.segmented {
    display: inline-flex; gap: 3px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 3px;
}
.segmented a {
    width: 36px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    color: var(--text-2);
    transition: all .15s;
}
.segmented a:hover { color: var(--c-primary); }
.segmented a.active { background: var(--surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }

/* ===== کارت دسته‌بندی ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.cat-card::after {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cat-card:hover::after { opacity: 1; }
.cat-head { display: flex; align-items: center; gap: 14px; }
.cat-tile {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(15,60,48,.4);
}
.cat-head .c-name { font-weight: 900; font-size: 1.05rem; }
.cat-head .c-count { font-size: .76rem; color: var(--text-2); font-weight: 600; }
.cat-card .c-desc {
    font-size: .82rem; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}
.cat-card .c-desc:empty { display: none; }
.cat-card .c-breakdown { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card .c-breakdown span {
    font-size: .7rem; font-weight: 700; color: var(--text-2);
    background: var(--bg-soft);
    padding: 3px 10px; border-radius: 50px;
}
.cat-card .c-footer {
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--border);
    padding-top: 12px; margin-top: 2px;
}
.cat-card .c-link {
    font-size: .84rem; font-weight: 800; color: var(--c-primary);
    display: inline-flex; align-items: center; gap: 6px;
}
.cat-card:hover .c-link .arr { transform: translateX(-4px); }
.cat-card .c-link .arr { transition: transform .2s; }

/* ===== نوار آمار ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.stat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s;
    text-align: center;
}
.stat-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-chip .s-ic {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2px;
}
.stat-chip .s-ic.c-teal   { background: rgba(33,150,166,.14); color: #2196a6; }
.stat-chip .s-ic.c-green  { background: rgba(46,125,50,.14); color: #2e7d32; }
.stat-chip .s-ic.c-red    { background: rgba(230,57,53,.12); color: #e53935; }
.stat-chip .s-ic.c-purple { background: rgba(106,27,154,.12); color: #8e24aa; }
.stat-chip .s-ic.c-orange { background: rgba(230,81,0,.12); color: #e65100; }
.stat-chip .s-ic.c-slate  { background: rgba(96,125,139,.14); color: #546e7a; }
.stat-chip .s-ic.c-amber  { background: rgba(216,67,21,.12); color: #d84315; }
.stat-chip .s-ic.c-cyan   { background: rgba(0,131,143,.12); color: #00838f; }
[data-theme="dark"] .stat-chip .s-ic { filter: brightness(1.3); }
.stat-chip .s-num { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.stat-chip .s-label { font-size: .72rem; color: var(--text-2); font-weight: 600; }

/* ===== لیست‌ها (پر دانلود / جدیدترین / نتایج) ===== */
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 11px 16px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.rank-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.rank-num {
    width: 30px; height: 30px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 900; flex-shrink: 0;
    background: var(--bg-soft); color: var(--text-2);
}
.rank-item:nth-child(1) .rank-num { background: var(--grad); color: #fff; }
.rank-item:nth-child(2) .rank-num { background: rgba(33,150,166,.2); color: var(--c-accent); }
.rank-item:nth-child(3) .rank-num { background: rgba(33,150,166,.12); color: var(--c-accent); }
.rank-badge {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: .73rem; color: var(--muted); margin-top: 1px; }
.rank-side { font-size: .78rem; font-weight: 900; color: var(--c-accent); flex-shrink: 0; display: flex; align-items: center; gap: 5px; }

/* ===== نوار ابزار مرور ===== */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}
.toolbar .spacer { flex: 1; }
.breadcrumb { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: .86rem; min-width: 0; }
.breadcrumb > a, .breadcrumb .bc-link {
    color: var(--text-2); font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 8px;
    transition: all .14s;
}
.breadcrumb > a:hover, .breadcrumb .bc-link:hover { color: var(--c-primary); background: var(--grad-soft); }
.breadcrumb .sep { color: var(--muted); font-size: .8em; }
.breadcrumb .current {
    font-weight: 900; color: var(--text);
    padding: 3px 10px;
    background: var(--grad-soft);
    border-radius: 8px;
}
.sort-select {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: .82rem; font-weight: 600;
    padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    cursor: pointer;
    outline: none;
}

/* ===== کارت پوشه ===== */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.folder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.folder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.folder-card a { color: var(--text); display: block; }
.folder-card .f-tile {
    width: 58px; height: 58px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-primary);
    background: var(--grad-soft);
    transition: transform .2s;
}
.folder-card:hover .f-tile { transform: scale(1.08) rotate(-3deg); }
.folder-card .f-name { font-weight: 800; font-size: .93rem; word-break: break-word; }
.folder-card .f-count { font-size: .76rem; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ===== کارت فایل ===== */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 15px; }
.file-grid.large { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.file-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex; flex-direction: column;
}
.file-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.file-thumb {
    width: 100%; height: 158px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    cursor: pointer;
    background: var(--bg-soft);
}
.file-grid.large .file-thumb { height: 225px; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.file-card:hover .file-thumb img { transform: scale(1.06); }
.file-thumb .thumb-icon { color: var(--muted); }
.file-thumb .type-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 11px; border-radius: 8px;
    font-weight: 900; font-size: .72rem; letter-spacing: .8px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.file-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.file-info .fname {
    font-weight: 700; font-size: .87rem; line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    direction: rtl; text-align: right;
}
.file-info .fmeta { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.file-info .actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.file-info .actions .btn-sm { flex: 1; justify-content: center; }
.act-icon {
    width: 32px; height: 32px; padding: 0; flex: 0 0 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: transparent; color: var(--text-2);
    cursor: pointer;
    transition: all .16s;
}
.act-icon:hover { color: var(--c-primary); border-color: var(--c-accent); background: var(--grad-soft); }

/* ===== لیست فایل ===== */
.file-list { display: flex; flex-direction: column; gap: 9px; }
.file-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .16s, box-shadow .16s, border-color .16s;
}
.file-list-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.file-list-item .li-tile {
    width: 46px; height: 46px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.file-list-item .li-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }

/* ===== فشرده ===== */
.file-compact { display: flex; flex-direction: column; gap: 5px; }
.file-compact-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 9px 15px;
    display: flex; align-items: center; gap: 12px;
    font-size: .84rem;
    transition: border-color .15s, transform .15s;
}
.file-compact-item:hover { border-color: var(--border-strong); transform: translateX(-3px); }
.file-compact-item .ci-name { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-compact-item .ci-size { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.file-compact-item .ci-dl {
    color: var(--c-primary); font-weight: 800; font-size: .78rem;
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    padding: 5px 12px; border-radius: 8px;
    transition: background .15s;
}
.file-compact-item .ci-dl:hover { background: var(--grad-soft); }

/* ===== صوت ===== */
.audio-player { width: 100%; margin-top: 4px; height: 36px; }

/* --- فایل صوتی: اکولایزر و حالت پخش --- */
.file-card.audio-card .file-thumb {
    background: linear-gradient(135deg, rgba(26,122,94,.10), rgba(33,150,166,.14));
    cursor: default;
}
[data-theme="dark"] .file-card.audio-card .file-thumb {
    background: linear-gradient(135deg, rgba(53,184,149,.14), rgba(63,184,201,.16));
}

.audio-visualizer { display: inline-flex; align-items: center; justify-content: center; }
.audio-visualizer .av-note {
    display: inline-flex; color: #1a7a5e;
    transition: opacity .18s ease, transform .18s ease;
}
[data-theme="dark"] .audio-visualizer .av-note { color: #35b895; }

.audio-visualizer .av-bars {
    display: none;
    align-items: flex-end;
    gap: 5px;
    height: 46px;
}
.audio-visualizer .av-bars i {
    display: block;
    width: 6px; height: 100%;
    border-radius: 99px;
    background: linear-gradient(180deg, #2ecc71, #0f6b50);
    transform: scaleY(.35);
    transform-origin: bottom;
    animation: audioEq .8s ease-in-out infinite;
    animation-play-state: paused;
}
[data-theme="dark"] .audio-visualizer .av-bars i { background: linear-gradient(180deg, #4dd49a, #2ea584); }
.audio-visualizer .av-bars i:nth-child(1) { animation-duration: .74s; animation-delay: -.10s; }
.audio-visualizer .av-bars i:nth-child(2) { animation-duration: .58s; animation-delay: -.34s; }
.audio-visualizer .av-bars i:nth-child(3) { animation-duration: .88s; animation-delay: -.52s; }
.audio-visualizer .av-bars i:nth-child(4) { animation-duration: .66s; animation-delay: -.21s; }
.audio-visualizer .av-bars i:nth-child(5) { animation-duration: .79s; animation-delay: -.44s; }
@keyframes audioEq {
    0%, 100% { transform: scaleY(.35); }
    50% { transform: scaleY(1); }
}

/* کارت در حال پخش */
.file-card.audio-card.is-audio-playing {
    background: linear-gradient(180deg, rgba(46,204,113,.11), rgba(33,150,166,.06));
    border-color: rgba(33,150,166,.5);
    box-shadow: 0 12px 30px -14px rgba(26,122,94,.5);
}
[data-theme="dark"] .file-card.audio-card.is-audio-playing {
    background: linear-gradient(180deg, rgba(53,184,149,.14), rgba(63,184,201,.08));
    box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
}
.file-list-item.audio-card.is-audio-playing {
    background: linear-gradient(90deg, rgba(46,204,113,.10), rgba(33,150,166,.05));
    border-color: rgba(33,150,166,.5);
    box-shadow: 0 6px 18px -10px rgba(26,122,94,.45);
}
[data-theme="dark"] .file-list-item.audio-card.is-audio-playing {
    background: linear-gradient(90deg, rgba(53,184,149,.13), rgba(63,184,201,.06));
}
.file-card.audio-card.is-audio-playing .file-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(46,204,113,.20), transparent 72%);
    animation: audioGlow 1.7s ease-in-out infinite;
    pointer-events: none;
}
@keyframes audioGlow {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}
/* جانشینی آیکون با اکولایزر */
.audio-card.is-audio-playing .av-note { display: none; }
.audio-card.is-audio-playing .av-bars { display: inline-flex; }
.audio-card.is-audio-playing .av-bars i { animation-play-state: running; }

/* حالت کوچک برای نمای لیست (روی کاشی رنگی) */
.audio-visualizer--mini .av-bars { height: 20px; gap: 3px; }
.audio-visualizer--mini .av-bars i { width: 3.5px; background: #fff; }
[data-theme="dark"] .audio-visualizer--mini .av-bars i { background: #fff; }
.audio-visualizer--mini .av-note { color: #fff; }

/* ===== مودال‌ها ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(8, 14, 12, .88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
    background: transparent; border-radius: var(--r-lg);
    max-width: 96vw; max-height: 94vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    animation: zoomIn .2s ease;
}
@keyframes zoomIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box video { max-width: 88vw; max-height: 82vh; border-radius: var(--r-md); display: block; box-shadow: var(--shadow-lg); }
.modal-box iframe {
    width: min(92vw, 1050px); height: min(86vh, 920px);
    border: none; border-radius: var(--r-md); background: #fff; display: block;
}

/* ===== ویوئر PDF (PDF.js) ===== */
.modal-box.pdf-box {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    width: min(96vw, 1000px);
    max-height: 94vh;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.pdf-toolbar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    flex-wrap: wrap;
}
.pdf-title {
    flex: 1; min-width: 120px;
    font-size: .8rem; font-weight: 800; color: var(--text-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-left: 6px;
}
.pdf-tool-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 1.05rem; font-weight: 800;
    text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}
.pdf-tool-btn:hover { color: var(--c-primary); border-color: var(--c-accent); background: var(--grad-soft); }
.pdf-sep { width: 1px; height: 22px; background: var(--border-strong); margin: 0 4px; flex-shrink: 0; }
.pdf-tool-btn.pdf-close {
    background: rgba(214,69,69,.12);
    color: var(--c-danger);
    border-color: rgba(214,69,69,.4);
    font-weight: 900;
}
.pdf-tool-btn.pdf-close:hover {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}
.pdf-pageinfo {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 700; color: var(--text);
    white-space: nowrap;
}
.pdf-pageinfo input {
    width: 46px; text-align: center;
    border: 1px solid var(--border); border-radius: 7px;
    padding: 5px 4px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: .82rem; font-weight: 700;
    background: var(--surface); color: var(--text);
    outline: none;
}
.pdf-pageinfo input:focus { border-color: var(--c-accent); }
.pdf-container {
    overflow: auto;
    background: #3c4442;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px;
    padding: 16px;
    height: min(80vh, 840px);
}
.pdf-page-wrap {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.4);
    border-radius: 3px;
    flex-shrink: 0;
    overflow: hidden;
}
.pdf-page-wrap canvas { display: block; width: 100%; height: 100%; }
.pdf-msg {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    color: #dfe9e5;
    font-size: .95rem; font-weight: 700;
    text-align: center;
    padding: 40px;
    flex-shrink: 0;
}
.pdf-msg small { color: #aebbb6; font-weight: 600; }
.pdf-msg .spinner {
    width: 38px; height: 38px;
    border: 4px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pdf-msg a { margin-top: 6px; }
.modal-close {
    position: absolute; top: -16px; left: -16px;
    background: var(--c-danger); color: #fff;
    border: none; border-radius: 50%;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
    transition: transform .15s;
    z-index: 2;
}
.modal-close:hover { transform: rotate(90deg); }

/* گالری */
.gal-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .18s;
    z-index: 2;
}
.gal-btn:hover { background: rgba(255,255,255,.28); }
.gal-btn.prev { right: -8px; }
.gal-btn.next { left: -8px; }
.gal-count {
    position: absolute; bottom: -38px; right: 50%; transform: translateX(50%);
    color: rgba(255,255,255,.85);
    font-size: .8rem; font-weight: 700;
    background: rgba(255,255,255,.12);
    padding: 4px 16px; border-radius: 50px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lightbox-overlay .modal-box img {
    max-width: 90vw; max-height: 86vh;
    border-radius: var(--r-md);
    box-shadow: 0 0 60px rgba(0,0,0,.5);
}

/* ===== پیام خالی ===== */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
}
.empty-state .e-ic {
    width: 84px; height: 84px; margin: 0 auto 18px;
    border-radius: 28px;
    background: var(--bg-soft);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
}
.empty-state .e-title { font-weight: 900; font-size: 1rem; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: .85rem; }

/* ===== فوتر ===== */
.site-footer {
    text-align: center;
    padding: 26px 20px;
    font-size: .82rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.site-footer a { color: var(--text-2); font-weight: 700; }
.site-footer a:hover { color: var(--c-primary); }
.site-footer .f-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; flex-wrap: wrap; }

/* ===== توست ===== */
.toast-wrap {
    position: fixed; bottom: 24px; right: 50%; transform: translateX(50%);
    z-index: 10000;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    pointer-events: none;
}
.toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
    animation: toastIn .25s ease;
}
.toast.ok { color: var(--c-primary); }
.toast.err { color: var(--c-danger); }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px) scale(.92); } }

/* ===== دکمه نصب PWA ===== */
.pwa-install-btn {
    display: none;
    align-items: center; gap: 8px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    padding: 9px 20px;
    border-radius: 12px;
    font-size: .84rem;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    transition: all .25s;
    flex-shrink: 0;
}
.pwa-install-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
@media (max-width: 760px) {
    .pwa-install-btn { padding: 8px 14px; font-size: .8rem; gap: 6px; }
}
@media (max-width: 480px) {
    .pwa-install-btn .pwa-btn-text { display: none; }
    .pwa-install-btn { padding: 8px 12px; }
}

/* ===== دکمه بازگشت به بالا (همه صفحات) ===== */
.back-to-top {
    position: fixed; bottom: 18px; left: 18px; z-index: 6;
    width: 46px; height: 46px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.28);
    background: var(--c-primary);
    color: #eaf7f2; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s, background-color .2s, color .2s, border-color .2s;
    box-shadow: 0 8px 20px -8px rgba(26,122,94,.6);
}
[data-theme="dark"] .back-to-top { box-shadow: 0 8px 20px -8px rgba(0,0,0,.65); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-primary-strong); color: #fff; border-color: rgba(255,255,255,.45); }
[data-theme="dark"] .back-to-top:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ===== پنل مدیریت ===== */
.admin-wrap { max-width: 1020px; margin: 0 auto; padding: 22px 20px; width: 100%; }
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    max-width: 410px; margin: 70px auto; padding: 40px 32px;
    text-align: center;
}
.login-card .icon {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 22px;
    background: var(--grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.login-card h1 { font-size: 1.15rem; margin-bottom: 22px; }
.login-card input {
    width: 100%; padding: 12px 16px; margin-bottom: 12px;
    border: 1.5px solid var(--border); border-radius: 12px;
    font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: .95rem;
    outline: none; transition: border-color .2s;
    background: var(--surface-2); color: var(--text);
}
.login-card input:focus { border-color: var(--c-accent); }

/* فیلد رمز با دکمه نمایش */
.pw-wrap { position: relative; }
.pw-wrap input { display: block; width: 100%; padding-left: 54px; }
.pw-toggle {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: 42px;
    height: auto;
    border: none; border-radius: 10px;
    background: transparent; color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s, background .15s;
}
.pw-toggle:hover { color: var(--c-primary); background: var(--grad-soft); }

.admin-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tabs a {
    padding: 9px 18px; border-radius: 12px;
    background: var(--surface); color: var(--text-2);
    font-weight: 700; font-size: .86rem;
    border: 1px solid var(--border);
    transition: all .16s;
    display: inline-flex; align-items: center; gap: 7px;
}
.admin-tabs a.active, .admin-tabs a:hover { background: var(--grad); color: #fff; border-color: transparent; }

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px; margin-bottom: 18px;
}
.admin-card h2 {
    font-size: 1.02rem; color: var(--text);
    display: flex; align-items: center; gap: 9px;
    padding-bottom: 14px; margin-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}
.admin-card h2 svg { color: var(--c-primary); }
.admin-card label { display: block; font-size: .84rem; font-weight: 700; margin: 14px 0 7px; color: var(--text-2); }
.admin-card input[type=text], .admin-card input[type=password], .admin-card select, .admin-card textarea {
    width: 100%; padding: 11px 15px;
    border: 1.5px solid var(--border); border-radius: 11px;
    font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: .9rem;
    outline: none; transition: border-color .2s;
    background: var(--surface-2); color: var(--text);
}
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { border-color: var(--c-accent); }
.admin-card textarea { min-height: 120px; resize: vertical; }

.flash {
    border-radius: var(--r-md); padding: 13px 18px; margin-bottom: 16px;
    font-weight: 700; font-size: .88rem;
    border: 1px solid transparent;
    white-space: pre-line;
}
.flash.ok { background: rgba(46,125,50,.1); color: var(--c-primary); border-color: rgba(46,125,50,.25); }
.flash.err { background: rgba(214,69,69,.09); color: var(--c-danger); border-color: rgba(214,69,69,.25); }
.flash.warn { background: rgba(178,135,4,.09); color: var(--c-warn); border-color: rgba(178,135,4,.3); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-size: .76rem; font-weight: 800; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table td.num { font-weight: 900; color: var(--c-primary); }

/* ===== کارت آپلود روزانه (تب آمار ادمین) ===== */
.upload-day {
    border: 1px solid var(--border);
    border-right: 4px solid var(--c-accent);
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--surface-2);
}
.upload-day:last-child { margin-bottom: 0; }
.upload-day-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 6px;
}
.upload-day-head strong { font-size: .9rem; color: var(--text); }
.upload-day .u-count {
    font-size: .74rem; font-weight: 800;
    color: var(--c-primary);
    background: var(--grad-soft);
    border: 1px solid var(--border);
    padding: 2px 12px; border-radius: 50px;
    white-space: nowrap;
}
.upload-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.upload-day li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .8rem; color: var(--text-2); line-height: 1.8;
}
.upload-day li span:last-child { min-width: 0; overflow-wrap: anywhere; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .8rem; }
.bar-row .bar-name { width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.bar-row .bar-track { flex: 1; background: var(--bg-soft); border-radius: 8px; height: 14px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--grad); border-radius: 8px; min-width: 3px; transition: width .5s ease; }
.bar-row .bar-val { font-weight: 900; color: var(--c-primary); min-width: 34px; text-align: left; }

.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); font-size: .85rem; }
.file-row:last-child { border-bottom: none; }
.file-row .fr-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.file-row .fr-meta { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.file-row form { margin: 0; }

.upload-zone {
    border: 2px dashed var(--border-strong); border-radius: var(--r-md);
    padding: 28px; text-align: center; color: var(--muted);
    background: var(--surface-2);
    transition: border-color .2s, background .2s;
}
.upload-zone.dragover { border-color: var(--c-accent); background: var(--grad-soft); }

.warn-banner {
    background: rgba(255,193,7,.1);
    border: 1px solid rgba(255,193,7,.35);
    border-radius: var(--r-md);
    color: var(--c-warn); font-weight: 700; font-size: .86rem;
    padding: 13px 18px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}

/* ===== صفحه آفلاین/لندینگ کمکی ===== */
.center-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    max-width: 430px; width: 100%;
    margin: auto; padding: 44px 36px;
    text-align: center;
}


/* ===== هدر سبز (مطابق هویت سایت اصلی) ===== */
.site-header {
    background: linear-gradient(135deg, #1a7a5e, #2196a6);
    border-bottom: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.site-header .brand { color: #fff; }
.site-header .brand-sub { color: rgba(255,255,255,.85); }
.site-header .icon-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.site-header .icon-btn:hover {
    background: rgba(255,255,255,.3);
    color: #fff;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 760px) {
    .header-inner { gap: 10px; padding-inline: 16px; }
    .brand { min-width: 0; flex-shrink: 1; }
    .brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
    .header-actions { flex-shrink: 0; }
    .brand-sub { display: none; }
    .brand-name { font-size: .95rem; }
    .hero { padding-top: 26px; }
    .hero h1 { font-size: 1.35rem; }
    .header-search { display: none; }
    .header-actions .icon-btn.hide-mobile { display: none; }
    .file-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .file-grid.large { grid-template-columns: 1fr; }
    .folder-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .cat-grid { grid-template-columns: minmax(0, 1fr); }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar .spacer { display: none; }
    .stats-bar { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
    .gal-btn.prev { right: 6px; }
    .gal-btn.next { left: 6px; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
