/* ==========================================================================
   neynavayan (نی‌نوایان) — Design system
   Palette:
     --nin-yellow        #F5B301  primary (saffron/turmeric warm yellow)
     --nin-yellow-deep    #C98A02  accent / hover / active states
     --nin-charcoal       #211C15  primary text (warm near-black)
     --nin-cream          #FFF8E9  page background (parchment)
     --nin-white          #FFFFFF  card / surface background
     --nin-gold-line      #E7C36B  hairline dividers & subtle accents
   ========================================================================== */

:root {
    --nin-yellow: #F5B301;
    --nin-yellow-deep: #C98A02;
    --nin-yellow-soft: #FCE4A8;
    --nin-charcoal: #211C15;
    --nin-charcoal-soft: #5B5245;
    --nin-cream: #FFF8E9;
    --nin-white: #FFFFFF;
    --nin-gold-line: #E7C36B;

    --nin-success: #1F7A4D;
    --nin-success-bg: #E7F5EC;
    --nin-danger: #B3261E;
    --nin-danger-bg: #FBEAE9;
    --nin-warning: #8A5A00;
    --nin-warning-bg: #FFF3D6;
    --nin-info: #2B5F8A;
    --nin-info-bg: #E9F1F8;

    --nin-radius-sm: 10px;
    --nin-radius-md: 16px;
    --nin-radius-lg: 22px;
    --nin-radius-pill: 999px;

    --nin-shadow-sm: 0 1px 3px rgba(33, 28, 21, 0.08);
    --nin-shadow-md: 0 6px 20px rgba(33, 28, 21, 0.10);
    --nin-shadow-lg: 0 16px 40px rgba(33, 28, 21, 0.16);

    --nin-header-h: 60px;
    --nin-bottomnav-h: 64px;
    --nin-container: 720px;
    --nin-admin-sidebar-w: 260px;

    --nin-font: 'Vazirmatn', 'Vazir', Tahoma, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--nin-font);
    background: var(--nin-cream);
    color: var(--nin-charcoal);
    direction: rtl;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

:focus-visible {
    outline: 3px solid var(--nin-yellow-deep);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--nin-charcoal);
}
h1 { font-size: 30px; line-height: 1.35; }
h2 { font-size: 23px; line-height: 1.4; }
h3 { font-size: 19px; line-height: 1.45; }
p { margin: 0 0 12px; color: var(--nin-charcoal); }
.muted { color: var(--nin-charcoal-soft); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nin-yellow-deep);
    background: var(--nin-yellow-soft);
    padding: 5px 12px;
    border-radius: var(--nin-radius-pill);
}
.nums { font-variant-numeric: tabular-nums; }

/* ---------- App shell / layout ---------- */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nin-bottomnav-h) + 12px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--nin-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(255, 248, 233, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--nin-gold-line);
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
}
.topbar .brand .mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(155deg, var(--nin-yellow), var(--nin-yellow-deep));
    display: flex; align-items: center; justify-content: center;
    color: var(--nin-charcoal);
    box-shadow: var(--nin-shadow-sm);
}
.topbar .icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--nin-radius-pill);
    background: transparent;
    border: none;
    cursor: pointer;
}
.topbar .icon-btn:active { background: var(--nin-yellow-soft); }

.container {
    width: 100%;
    max-width: var(--nin-container);
    margin: 0 auto;
    padding: 16px;
}

main { flex: 1; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 100% at 50% -10%, var(--nin-yellow-soft) 0%, var(--nin-cream) 60%);
    padding: 28px 16px 20px;
    text-align: center;
}
.hero-motif {
    width: 120px;
    margin: 0 auto 14px;
}
.hero-motif .reed-glow {
    animation: nin-breathe 4.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes nin-breathe {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.04); }
}
.hero h1 { font-size: 28px; }
.hero .lead { color: var(--nin-charcoal-soft); font-size: 16px; max-width: 480px; margin: 0 auto 18px; }
.soundwave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 22px;
    margin: 18px 0 6px;
}
.soundwave span {
    width: 3px;
    background: var(--nin-yellow-deep);
    border-radius: 3px;
    opacity: 0.55;
    animation: nin-wave 1.8s ease-in-out infinite;
}
.soundwave span:nth-child(1){height:30%;animation-delay:0s}
.soundwave span:nth-child(2){height:70%;animation-delay:.1s}
.soundwave span:nth-child(3){height:100%;animation-delay:.2s}
.soundwave span:nth-child(4){height:55%;animation-delay:.3s}
.soundwave span:nth-child(5){height:85%;animation-delay:.4s}
.soundwave span:nth-child(6){height:40%;animation-delay:.5s}
.soundwave span:nth-child(7){height:65%;animation-delay:.6s}
@keyframes nin-wave { 0%,100%{transform:scaleY(.6)} 50%{transform:scaleY(1)} }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--nin-radius-md);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--nin-yellow); color: var(--nin-charcoal); box-shadow: var(--nin-shadow-sm); }
.btn-primary:hover { background: var(--nin-yellow-deep); color: var(--nin-white); }
.btn-secondary { background: var(--nin-white); color: var(--nin-charcoal); border: 1.5px solid var(--nin-gold-line); }
.btn-ghost { background: transparent; color: var(--nin-charcoal); }
.btn-danger { background: var(--nin-danger); color: var(--nin-white); }
.btn-success { background: var(--nin-success); color: var(--nin-white); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: var(--nin-radius-sm); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
    background: var(--nin-white);
    border-radius: var(--nin-radius-lg);
    box-shadow: var(--nin-shadow-sm);
    padding: 18px;
    border: 1px solid rgba(231, 195, 107, 0.35);
}
.card + .card { margin-top: 14px; }

.action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}
.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--nin-white);
    border-radius: var(--nin-radius-lg);
    padding: 16px;
    box-shadow: var(--nin-shadow-sm);
    border: 1px solid rgba(231, 195, 107, 0.35);
    transition: box-shadow .15s ease, transform .15s ease;
}
.action-card:hover { box-shadow: var(--nin-shadow-md); transform: translateY(-1px); }
.action-card .icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--nin-yellow-soft);
    display: flex; align-items: center; justify-content: center;
}
.action-card .title { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.action-card .desc { font-size: 13.5px; color: var(--nin-charcoal-soft); }
.action-card .chevron { margin-inline-start: auto; color: var(--nin-charcoal-soft); }

.section-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 26px 0 10px;
}
.divider {
    border: none;
    border-top: 1px solid var(--nin-gold-line);
    opacity: .6;
    margin: 22px 0;
}

/* ---------- Badges / status pills ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    border-radius: var(--nin-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
}
.badge-pending { background: var(--nin-warning-bg); color: var(--nin-warning); }
.badge-approved { background: var(--nin-success-bg); color: var(--nin-success); }
.badge-rejected { background: var(--nin-danger-bg); color: var(--nin-danger); }
.badge-needs_review { background: var(--nin-info-bg); color: var(--nin-info); }
.badge-suspended { background: #EEE; color: #555; }
.badge-reviewing, .badge-sent_to_providers, .badge-offers_received { background: var(--nin-info-bg); color: var(--nin-info); }
.badge-completed { background: var(--nin-success-bg); color: var(--nin-success); }
.badge-cancelled { background: #EEE; color: #555; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.field .hint { font-size: 12.5px; color: var(--nin-charcoal-soft); margin-top: 5px; }
.field .error-text { font-size: 12.5px; color: var(--nin-danger); margin-top: 5px; font-weight: 600; }
.req { color: var(--nin-danger); margin-inline-start: 3px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], input[type="date"], input[type="time"], input[type="url"],
select, textarea {
    width: 100%;
    min-height: 48px;
    border-radius: var(--nin-radius-sm);
    border: 1.5px solid #E7DDC6;
    background: var(--nin-white);
    padding: 10px 14px;
    font-family: var(--nin-font);
    font-size: 15px;
    color: var(--nin-charcoal);
}
textarea { min-height: 100px; padding-top: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--nin-yellow-deep);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245,179,1,.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
    border-color: var(--nin-danger);
}

.checkbox-row, .radio-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 4px;
    min-height: 44px;
}
.checkbox-row input, .radio-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.checkbox-row label, .radio-row label { font-size: 14px; font-weight: 500; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--nin-radius-pill);
    border: 1.5px solid #E7DDC6;
    background: var(--nin-white);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-checked { background: var(--nin-yellow); border-color: var(--nin-yellow); }

.upload-field {
    border: 1.5px dashed var(--nin-gold-line);
    border-radius: var(--nin-radius-md);
    padding: 16px;
    text-align: center;
    background: #FFFDF6;
}
.upload-field input[type=file] { display: none; }
.upload-field .upload-btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    background: var(--nin-white);
    border: 1.5px solid var(--nin-gold-line);
    border-radius: var(--nin-radius-pill);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}
.upload-field .file-name { margin-top: 8px; font-size: 13px; color: var(--nin-charcoal-soft); }
.upload-field .file-name.has-file { color: var(--nin-success); font-weight: 700; }

/* ---------- Multi-step form / progress ---------- */
.step-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
}
.step-progress .dot {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: #EEE0BB;
}
.step-progress .dot.is-active,
.step-progress .dot.is-done { background: var(--nin-yellow); }
.step-progress-label {
    font-size: 13px;
    color: var(--nin-charcoal-soft);
    margin-bottom: 10px;
    font-weight: 600;
}
.form-step { display: none; }
.form-step.is-active { display: block; animation: nin-fadein .25s ease; }
@keyframes nin-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.step-nav .btn { flex: 1; }

.sticky-submit-bar {
    position: sticky;
    bottom: calc(var(--nin-bottomnav-h) + 8px);
    background: linear-gradient(0deg, var(--nin-cream) 60%, rgba(255,248,233,0));
    padding: 14px 0 4px;
    margin-top: 6px;
    z-index: 20;
}
.review-block { background: #FFFDF6; border-radius: var(--nin-radius-md); padding: 14px; margin-bottom: 10px; }
.review-block dt { font-size: 12.5px; color: var(--nin-charcoal-soft); font-weight: 600; }
.review-block dd { margin: 2px 0 10px; font-weight: 600; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    height: var(--nin-bottomnav-h);
    background: var(--nin-white);
    border-top: 1px solid var(--nin-gold-line);
    display: flex;
    z-index: 50;
    box-shadow: 0 -6px 20px rgba(33,28,21,.06);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--nin-charcoal-soft);
    min-height: 44px;
}
.bottom-nav a.is-active { color: var(--nin-yellow-deep); }
.bottom-nav a svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
    .bottom-nav { display: none; }
    .app-shell { padding-bottom: 0; }
}

/* ---------- Drawer (off-canvas, opens from the inline-start = right in RTL) ---------- */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(33,28,21,.45);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 60;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0; bottom: 0; right: 0;
    width: min(82vw, 320px);
    background: var(--nin-white);
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
    z-index: 61;
    display: flex;
    flex-direction: column;
    box-shadow: var(--nin-shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--nin-gold-line);
}
.drawer-nav { padding: 8px; overflow-y: auto; }
.drawer-nav a {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--nin-radius-sm);
    font-weight: 600;
    font-size: 15px;
}
.drawer-nav a:active, .drawer-nav a:hover { background: var(--nin-yellow-soft); }

/* ---------- Bottom sheet modal ---------- */
.sheet-overlay {
    position: fixed; inset: 0;
    background: rgba(33,28,21,.45);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    z-index: 70;
}
.sheet-overlay.is-open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--nin-white);
    border-radius: 22px 22px 0 0;
    box-shadow: var(--nin-shadow-lg);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    z-index: 71;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
}
.bottom-sheet.is-open { transform: translateY(0); }
.bottom-sheet .handle {
    width: 44px; height: 5px;
    background: #E7DDC6;
    border-radius: 4px;
    margin: 10px auto 4px;
}
.bottom-sheet-header {
    padding: 8px 18px 10px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #F1E9D2;
}
.bottom-sheet-body { padding: 16px 18px; overflow-y: auto; }
.bottom-sheet-actions { display: flex; gap: 10px; padding: 12px 18px 18px; }

@media (min-width: 640px) {
    .bottom-sheet {
        left: 50%; right: auto;
        bottom: 40px;
        width: 480px;
        transform: translate(-50%, 30px);
        border-radius: 22px;
        opacity: 0;
        transition: transform .22s ease, opacity .22s ease;
    }
    .bottom-sheet.is-open { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- Toast ---------- */
.toast-stack {
    position: fixed;
    top: calc(var(--nin-header-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 380px);
}
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--nin-charcoal);
    color: var(--nin-white);
    padding: 12px 16px;
    border-radius: var(--nin-radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--nin-shadow-md);
    animation: nin-toast-in .22s ease;
}
.toast.toast-success { background: var(--nin-success); }
.toast.toast-error { background: var(--nin-danger); }
.toast.toast-warning { background: var(--nin-warning); color: #fff; }
@keyframes nin-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Snackbar ---------- */
.snackbar-stack {
    position: fixed;
    bottom: calc(var(--nin-bottomnav-h) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    width: min(92vw, 420px);
}
.snackbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--nin-charcoal);
    color: var(--nin-white);
    padding: 12px 10px 12px 16px;
    border-radius: var(--nin-radius-md);
    font-size: 14px;
    box-shadow: var(--nin-shadow-md);
    animation: nin-toast-in .22s ease;
}
.snackbar button {
    background: none; border: none; color: var(--nin-yellow);
    font-weight: 700; cursor: pointer; padding: 8px 10px;
}

/* ---------- Skeleton ---------- */
.skeleton {
    background: linear-gradient(100deg, #F1E9D2 30%, #FBF3DD 50%, #F1E9D2 70%);
    background-size: 200% 100%;
    animation: nin-shimmer 1.3s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes nin-shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-card { height: 84px; border-radius: var(--nin-radius-lg); }

/* ---------- Empty / error states ---------- */
.state-block {
    text-align: center;
    padding: 40px 20px;
    color: var(--nin-charcoal-soft);
}
.state-block .state-icon { margin: 0 auto 14px; opacity: .8; }
.state-block h3 { color: var(--nin-charcoal); }

/* ---------- Tables (admin) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--nin-radius-md); box-shadow: var(--nin-shadow-sm); background: var(--nin-white); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data-table th, table.data-table td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid #F1E9D2;
    white-space: nowrap;
}
table.data-table th { background: #FFFBF0; font-weight: 700; color: var(--nin-charcoal-soft); font-size: 13px; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover { background: #FFFDF6; }

.filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
@media (min-width: 640px) {
    .filter-bar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
}

.pagination { display: flex; gap: 6px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; min-height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--nin-radius-sm);
    background: var(--nin-white);
    border: 1px solid var(--nin-gold-line);
    font-weight: 700; font-size: 13.5px;
}
.pagination a.is-active, .pagination span.is-active { background: var(--nin-yellow); border-color: var(--nin-yellow); }

/* ---------- Admin layout ---------- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--nin-header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    background: var(--nin-white);
    border-bottom: 1px solid var(--nin-gold-line);
}
.admin-main { flex: 1; padding: 16px 16px calc(var(--nin-bottomnav-h) + 16px); max-width: 1180px; margin: 0 auto; width: 100%; }

.admin-sidebar { display: none; }
.admin-drawer-nav a.is-active, .admin-sidebar a.is-active { background: var(--nin-yellow-soft); color: var(--nin-yellow-deep); }

@media (min-width: 900px) {
    .admin-main { margin-inline-start: var(--nin-admin-sidebar-w); padding-bottom: 32px; max-width: none; }
    .admin-sidebar {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: var(--nin-admin-sidebar-w);
        background: var(--nin-white);
        border-inline-start: 1px solid var(--nin-gold-line);
        padding: 18px 10px;
        overflow-y: auto;
    }
    .admin-sidebar nav a {
        display: flex; align-items: center; gap: 10px;
        min-height: 46px; padding: 0 14px;
        border-radius: var(--nin-radius-sm);
        font-weight: 600; font-size: 14.5px;
        color: var(--nin-charcoal-soft);
    }
    .admin-sidebar nav a:hover { background: #FFFBF0; }
    .bottom-nav.admin-bottom-nav { display: none; }
    .admin-topbar [data-open-drawer] { display: none !important; }
}

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--nin-white); border-radius: var(--nin-radius-md); padding: 14px; box-shadow: var(--nin-shadow-sm); }
.stat-card .num { font-size: 24px; font-weight: 800; }
.stat-card .label { font-size: 12.5px; color: var(--nin-charcoal-soft); font-weight: 600; }

.kv-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .kv-grid { grid-template-columns: 1fr 1fr; } }
.kv-item dt { font-size: 12px; color: var(--nin-charcoal-soft); font-weight: 600; }
.kv-item dd { margin: 2px 0 0; font-weight: 600; }

.file-preview-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: var(--nin-radius-sm);
    border: 1.5px solid var(--nin-gold-line);
    font-weight: 700; font-size: 13.5px;
    background: #FFFDF6;
}

@media print {
    .bottom-nav, .topbar, .admin-sidebar, .drawer, .btn { display: none !important; }
}
