/* ==========================================================================
   پنل مدیریت ژیوار — شیوه‌نامهٔ اختصاصی
   ========================================================================== */

:root {
    --gold: #C9A84C;
    --gold-dark: #A8873A;
    --gold-light: #E3C878;
    --ink: #1A1712;
    --ink-2: #2B2620;
    --panel: #FFFFFF;
    --bg: #F4F1EA;
    --line: #E3DDD0;
    --text: #2A2520;
    --muted: #857C6D;
    --ok: #1F9D63;
    --warn: #D9921E;
    --danger: #C6453C;
    --info: #3B7AC4;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(26, 23, 18, .06);
    --shadow-lg: 0 10px 30px rgba(26, 23, 18, .12);
    --sidebar-w: 246px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* چیدمان کلی                                                          */
/* ------------------------------------------------------------------ */

.admin-main {
    margin-right: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-content {
    flex: 1;
    padding: 22px 26px 40px;
}

.admin-footer {
    padding: 16px 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-sep { color: var(--line); }

/* ------------------------------------------------------------------ */
/* نوار کناری                                                           */
/* ------------------------------------------------------------------ */

.admin-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--ink) 0%, #221D17 100%);
    color: #E8E2D6;
    display: flex;
    flex-direction: column;
    z-index: 60;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 19px;
}

.sidebar-brand strong {
    display: block;
    color: var(--gold-light);
    font-size: 15px;
    line-height: 1.5;
}

.sidebar-brand small {
    color: #9A9083;
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    margin-bottom: 3px;
    border-radius: 10px;
    color: #CFC7B8;
    font-size: 13.5px;
    transition: background .15s, color .15s;
}

.nav-link i { width: 19px; text-align: center; font-size: 15px; color: #8C8375; }
.nav-link span { flex: 1; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link:hover i { color: var(--gold-light); }

.nav-link.is-active {
    background: linear-gradient(90deg, rgba(201, 168, 76, .22), rgba(201, 168, 76, .06));
    color: var(--gold-light);
    font-weight: 600;
}

.nav-link.is-active i { color: var(--gold); }

.nav-badge {
    background: var(--danger);
    color: #fff;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-foot {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-foot a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-radius: 10px;
    color: #A79D8E;
    font-size: 12.5px;
}

.sidebar-foot a:hover { background: rgba(255, 255, 255, .06); color: var(--gold-light); }

/* ------------------------------------------------------------------ */
/* نوار بالا                                                            */
/* ------------------------------------------------------------------ */

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 12px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-title { font-size: 17px; margin: 0; font-weight: 700; }

.topbar-user {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 12.5px;
}

.user-chip em {
    font-style: normal;
    color: var(--gold-dark);
    font-weight: 600;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s, color .15s;
}

.icon-btn:hover { border-color: var(--gold); color: var(--gold-dark); }

.sidebar-toggle { display: none; }

/* ------------------------------------------------------------------ */
/* کارت و بخش‌ها                                                       */
/* ------------------------------------------------------------------ */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head .head-actions { margin-right: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* ------------------------------------------------------------------ */
/* کارت‌های آمار                                                        */
/* ------------------------------------------------------------------ */

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--gold);
}

.stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: rgba(201, 168, 76, .12);
    color: var(--gold-dark);
}

.stat-icon.ok { background: rgba(31, 157, 99, .12); color: var(--ok); }
.stat-icon.warn { background: rgba(217, 146, 30, .13); color: var(--warn); }
.stat-icon.danger { background: rgba(198, 69, 60, .11); color: var(--danger); }
.stat-icon.info { background: rgba(59, 122, 196, .11); color: var(--info); }

.stat-info strong { display: block; font-size: 21px; line-height: 1.4; }
.stat-info span { color: var(--muted); font-size: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* جدول                                                                 */
/* ------------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data th,
table.data td {
    padding: 11px 14px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data th {
    background: #FAF8F3;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

table.data tbody tr:hover { background: #FDFBF6; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.center, table.data th.center { text-align: center; }
table.data td.nowrap { white-space: nowrap; }
table.data .cell-main { font-weight: 600; }
table.data .cell-sub { color: var(--muted); font-size: 11.5px; }

/* ------------------------------------------------------------------ */
/* نشان‌ها                                                              */
/* ------------------------------------------------------------------ */

.badge {
    display: inline-block;
    padding: 2px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: rgba(31, 157, 99, .13); color: var(--ok); }
.badge-warning { background: rgba(217, 146, 30, .14); color: var(--warn); }
.badge-danger { background: rgba(198, 69, 60, .12); color: var(--danger); }
.badge-info { background: rgba(59, 122, 196, .12); color: var(--info); }
.badge-secondary { background: #EFEBE1; color: var(--muted); }
.badge-gold { background: rgba(201, 168, 76, .16); color: var(--gold-dark); }

/* ------------------------------------------------------------------ */
/* دکمه‌ها                                                              */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(140deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-primary:hover { filter: brightness(1.06); color: #fff; }

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #2B2620; color: var(--gold-light); }

.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.08); color: #fff; }

.btn-warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-warn:hover { filter: brightness(1.08); color: #fff; }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; }

.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 11px 24px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* ------------------------------------------------------------------ */
/* فرم‌ها                                                               */
/* ------------------------------------------------------------------ */

.field { margin-bottom: 15px; }

.field label,
.field > .label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.field .hint { color: var(--muted); font-size: 11.5px; margin-top: 5px; display: block; }

.input, .select, .textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .16);
}

.textarea { min-height: 90px; resize: vertical; line-height: 1.9; }

.select { cursor: pointer; }

.input[type="checkbox"], .input[type="radio"] { width: auto; }

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    font-size: 13px;
}

.check-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-bar .field { margin: 0; min-width: 150px; }
.filter-bar .grow { flex: 1; min-width: 200px; }

/* ------------------------------------------------------------------ */
/* هشدارها                                                              */
/* ------------------------------------------------------------------ */

.alert {
    padding: 11px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    border: 1px solid transparent;
}

.alert-success { background: rgba(31, 157, 99, .1); border-color: rgba(31, 157, 99, .28); color: #15774A; }
.alert-danger { background: rgba(198, 69, 60, .09); border-color: rgba(198, 69, 60, .26); color: #9C332B; }
.alert-warning { background: rgba(217, 146, 30, .1); border-color: rgba(217, 146, 30, .3); color: #96650F; }
.alert-info { background: rgba(59, 122, 196, .09); border-color: rgba(59, 122, 196, .26); color: #2B5E99; }

.empty-state { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty-state i { font-size: 34px; color: var(--line); display: block; margin-bottom: 10px; }

/* ------------------------------------------------------------------ */
/* صفحه‌بندی                                                            */
/* ------------------------------------------------------------------ */

.pager {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #FAF8F3;
}

.pager-info { color: var(--muted); font-size: 12px; }
.pager-links { margin-right: auto; display: flex; gap: 5px; }
.pager-links a, .pager-links span {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 12.5px;
}

.pager-links a:hover { border-color: var(--gold); color: var(--gold-dark); }
.pager-links span.is-current { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* ورود                                                                */
/* ------------------------------------------------------------------ */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--ink) 0%, #33291C 55%, #1A1712 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(140deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.login-card h1 { text-align: center; font-size: 19px; margin-bottom: 4px; }
.login-card .login-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }

.login-back {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

.pw-wrap { position: relative; }
.pw-toggle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
}

/* ------------------------------------------------------------------ */
/* کمکی                                                                 */
/* ------------------------------------------------------------------ */

.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.text-gold { color: var(--gold-dark); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.ltr { direction: ltr; text-align: left; }

.divider { height: 1px; background: var(--line); margin: 16px 0; }

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    overflow-x: auto;
}

.tab {
    padding: 9px 16px;
    border-radius: 9px 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tab:hover { background: rgba(201, 168, 76, .08); color: var(--gold-dark); }
.tab.is-active { color: var(--gold-dark); border-bottom-color: var(--gold); background: rgba(201, 168, 76, .1); }

/* گروه رزرو در سمت راست جدول */
.book-info { display: flex; align-items: center; gap: 10px; }
.book-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .14);
    color: var(--gold-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
}

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* نمودار ساده */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-label { width: 96px; flex: 0 0 96px; font-size: 12.5px; }
.bar-track { flex: 1; height: 9px; background: #EFEBE1; border-radius: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold-dark)); border-radius: 20px; }
.bar-value { width: 76px; flex: 0 0 76px; text-align: left; font-size: 12px; color: var(--muted); }

/* ساعت کاری */
.hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    flex-wrap: wrap;
}

.hours-row:last-child { border-bottom: 0; }
.hours-day { width: 92px; flex: 0 0 92px; font-weight: 700; font-size: 13.5px; }
.hours-day.closed { color: var(--danger); }
.range-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.range-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 4px 9px;
    font-size: 12.5px;
}

.range-chip .input { width: 78px; padding: 4px 7px; font-size: 12.5px; }
.range-chip button { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 12px; }

/* کارت هنرمند */
.artist-card { display: flex; gap: 12px; align-items: flex-start; }
.artist-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: rgba(201, 168, 76, .14);
    color: var(--gold-dark);
    display: grid;
    place-items: center;
    font-size: 17px;
}

.artist-meta { flex: 1; min-width: 0; }
.artist-meta strong { display: block; font-size: 14px; }
.artist-meta .role { color: var(--gold-dark); font-size: 12px; }
.artist-meta .bio {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chip-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.chip {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2px 11px;
    font-size: 11.5px;
}

.chip.gold { background: rgba(201, 168, 76, .14); border-color: rgba(201, 168, 76, .3); color: var(--gold-dark); }

.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 5px 11px;
    font-size: 12.5px;
    background: #fff;
}

.skill-item input { accent-color: var(--gold); width: 15px; height: 15px; cursor: pointer; }
.skill-item .price { color: var(--muted); font-size: 11.5px; }

/* ------------------------------------------------------------------ */
/* سربرگ صفحه و کارت آمار                                              */
/* ------------------------------------------------------------------ */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
}

.page-title i { font-size: 18px; }

.page-sub { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.stat::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
    opacity: .55;
}

.stat-icon.gold { background: rgba(201, 168, 76, .15); color: var(--gold-dark); }

.stat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: var(--muted); font-size: 11.5px; }

.stat-value {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.stat-delta { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.stat-delta.up { color: var(--ok); }
.stat-delta.down { color: var(--danger); }

.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* ابزارهای کمکی                                                        */
/* ------------------------------------------------------------------ */

.btn-ghost { background: none; border-style: dashed; color: var(--muted); }
.btn-ghost:hover { background: rgba(201, 168, 76, .07); }

.text-silver { color: #9AA3AE; }
.text-bronze { color: #B4794A; }

.check-row.compact { margin: 0; min-width: 96px; }
.check-row.compact input { width: 15px; height: 15px; }

.hours-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 10px 0; }
.hours-row.is-off .day-name { color: var(--muted); text-decoration: line-through; }
.hours-row.is-off .hours-inputs { opacity: .5; }
.day-ranges { flex: 1; min-width: 220px; }

.hours-inputs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hours-inputs .input { width: 110px; }
.hours-inputs .sep { color: var(--muted); font-size: 12px; }
.day-name { font-weight: 700; font-size: 13px; }

.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-item label { font-size: 11.5px; color: var(--muted); }

.preset-row { display: flex; gap: 7px; flex-wrap: wrap; }
.preset-row a { text-decoration: none; }

.bar-line { display: flex; align-items: center; gap: 10px; }
.bar-line .bar-track { flex: 1; }
.bar-line span { font-size: 12px; }

.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.note-list li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.9;
    color: #4A443C;
}

.note-list li i { color: var(--gold-dark); margin-top: 5px; }

.preview-box {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: linear-gradient(160deg, #FFFDF8, #F7F2E8);
    text-align: center;
}

.preview-title { margin: 10px 0 4px; font-size: 19px; font-weight: 800; }

/* ------------------------------------------------------------------ */
/* واکنش‌گرا                                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .admin-main { margin-right: 0; }
    .admin-sidebar { transform: translateX(100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
    .admin-sidebar.is-open { transform: translateX(0); }
    .sidebar-toggle { display: grid; }
    .admin-content { padding: 16px; }
    .admin-topbar { padding: 11px 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .user-chip em { display: none; }
    .admin-footer { padding: 14px 16px; }
}

@media print {
    .admin-sidebar, .admin-topbar, .admin-footer, .no-print, .pager { display: none !important; }
    .admin-main { margin: 0; }
    .admin-content { padding: 0; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; page-break-inside: avoid; }
}
