/* ═══════════════════════════════════════════════════════════════════════
SUNSET JUSTICE — WANTED v5.0 | Ultra Premium | هماهنگ با LawVault
═══════════════════════════════════════════════════════════════════════ */
@import url('https://sunrp.ir/assets/Vazirmatn-Medium-D86t5Axy.woff2@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
§1. DESIGN TOKENS (هم‌سان با law-bank.css)
═══════════════════════════════════════════════════════════════════════ */
:root {
    /* ── پس‌زمینه ── */
    --bg-page:      #f5f7fa;
    --bg-surface:   #ffffff;
    --bg-elevated:  #f0f4f8;
    --bg-sunken:    #e8ecf2;
    --bg-glass:     rgba(255, 255, 255, 0.75);
    --bg-glass-sm:  rgba(255, 255, 255, 0.5);
    --bg-overlay:   rgba(15, 23, 42, 0.55);
    --bg-gradient:  linear-gradient(145deg, #fef9f0 0%, #eef2ff 50%, #f0f9ff 100%);

    /* ── Accent: طلایی برند ── */
    --gold-50:  #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-glow:    rgba(245, 176, 66, 0.30);
    --gold-glow-sm: rgba(245, 176, 66, 0.15);
    --gold-dim:     rgba(245, 176, 66, 0.08);
    --gold-border:  rgba(245, 176, 66, 0.35);

    /* ── متن ── */
    --text-primary:   #1e293b;
    --text-secondary: #475569;
    --text-tertiary:  #64748b;
    --text-muted:     #94a3b8;
    --text-disabled:  #cbd5e1;
    --text-inverse:   #f8fafc;
    --text-link:      #d97706;

    /* ── حاشیه / کارت ── */
    --border-light:   rgba(0,0,0,0.06);
    --border-medium:  rgba(0,0,0,0.10);
    --border-strong:  rgba(0,0,0,0.16);
    --card-bg:        rgba(255,255,255,0.85);
    --card-border:    rgba(0,0,0,0.07);
    --card-shadow:    0 1px 3px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.06);

    /* ── وضعیت‌های Wanted ── */
    --status-wanted:      #ef4444;
    --status-wanted-bg:   rgba(239, 68, 68, 0.08);
    --status-wanted-glow: rgba(239, 68, 68, 0.25);
    --status-captured:    #10b981;
    --status-captured-bg: rgba(16, 185, 129, 0.08);
    --status-archived:    #94a3b8;
    --status-archived-bg: rgba(148, 163, 184, 0.08);

    /* ── وضعیت عمومی ── */
    --c-success:     #10b981;
    --c-info:        #3b82f6;
    --c-warning:     #f59e0b;
    --c-danger:      #ef4444;
    --c-success-bg:  rgba(16,185,129,.08);
    --c-info-bg:     rgba(59,130,246,.08);
    --c-warning-bg:  rgba(245,158,11,.08);
    --c-danger-bg:   rgba(239,68,68,.08);

    /* ── سایه‌ها ── */
    --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
    --shadow-sm:   0 1px 3px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.06);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:   0 10px 36px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    --shadow-xl:   0 20px 56px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
    --shadow-gold: 0 4px 20px rgba(245,176,66,.25);
    --shadow-danger: 0 4px 20px rgba(239,68,68,.25);

    /* ── ابعاد Shell ── */
    --topbar-h:    64px;
    --content-max: 1400px;

    /* ── Border-radius ── */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   20px;
    --r-2xl:  28px;
    --r-pill: 9999px;

    /* ── Easing ── */
    --ease-out:    cubic-bezier(.25,.46,.45,.94);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-smooth: cubic-bezier(.4,0,.2,1);
    --ease-bounce: cubic-bezier(.68,-.55,.265,1.55);

    /* ── Transition shortcuts ── */
    --t-fast: 0.15s var(--ease-smooth);
    --t-base: 0.25s var(--ease-smooth);
    --t-slow: 0.40s var(--ease-out);

    /* ── z-index layers ── */
    --z-bg:     -1;
    --z-base:    1;
    --z-topbar:  100;
    --z-panel:   300;
    --z-modal:   9000;
    --z-toast:   9100;
    --z-loader:  9999;
}

/* ─── DARK MODE ─── */
body.dark-mode {
    --bg-page:     #0a0c15;
    --bg-surface:  #0f1222;
    --bg-elevated: #141829;
    --bg-sunken:   #080a12;
    --bg-glass:    rgba(20, 25, 40, 0.75);
    --bg-glass-sm: rgba(15, 18, 30, 0.55);
    --bg-overlay:  rgba(0,0,0,.75);
    --bg-gradient: linear-gradient(145deg, #0f1222 0%, #141829 50%, #0a0e1a 100%);

    --gold-glow:    rgba(251,191,36,.30);
    --gold-glow-sm: rgba(251,191,36,.12);
    --gold-dim:     rgba(251,191,36,.06);
    --gold-border:  rgba(251,191,36,.22);

    --text-primary:   #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary:  #64748b;
    --text-muted:     #475569;
    --text-disabled:  #334155;
    --text-inverse:   #0f172a;
    --text-link:      #fbbf24;

    --border-light:  rgba(255,255,255,.05);
    --border-medium: rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.14);
    --card-bg:       rgba(20,25,42,.80);
    --card-border:   rgba(255,255,255,.07);
    --card-shadow:   0 1px 3px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3);

    --status-wanted-bg:   rgba(239, 68, 68, 0.15);
    --status-captured-bg: rgba(16, 185, 129, 0.15);
    --status-archived-bg: rgba(148, 163, 184, 0.12);

    --shadow-sm: 0 1px 3px rgba(0,0,0,.40), 0 2px 8px rgba(0,0,0,.30);
    --shadow-md: 0 4px 16px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.30);
    --shadow-lg: 0 10px 36px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35);
    --shadow-xl: 0 20px 56px rgba(0,0,0,.65), 0 4px 16px rgba(0,0,0,.40);
}

@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --bg-page:     #0a0c15;
        --bg-surface:  #0f1222;
        --bg-elevated: #141829;
        --bg-sunken:   #080a12;
        --bg-glass:    rgba(20, 25, 40, 0.75);
        --bg-overlay:  rgba(0,0,0,.75);
        --bg-gradient: linear-gradient(145deg, #0f1222 0%, #141829 50%, #0a0e1a 100%);
        --text-primary: #e2e8f0;
        --text-secondary: #94a3b8;
        --text-tertiary: #64748b;
        --text-muted: #475569;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
§2. RESET & BASE
═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    direction: rtl;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t-slow), color var(--t-base);
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════════
§3. SCROLLBAR
═══════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-pill);
    transition: background var(--t-fast);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

/* ═══════════════════════════════════════════════════════════════════════
§4. ANIMATED BACKGROUND
═══════════════════════════════════════════════════════════════════════ */
.w-bg-gradient {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg-gradient);
    overflow: hidden;
    transition: background var(--t-slow);
}
.w-bg-layer {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
    animation: wBgFloat 40s ease-in-out infinite alternate;
    filter: blur(80px);
}
.w-bg-layer.l1 {
    width: 800px; height: 800px;
    top: -300px; right: -150px;
    background: radial-gradient(circle, rgba(239,68,68,.12) 0%, transparent 65%);
    animation-duration: 45s;
}
.w-bg-layer.l2 {
    width: 650px; height: 650px;
    bottom: -200px; left: -100px;
    background: radial-gradient(circle, rgba(245,176,66,.12) 0%, transparent 65%);
    animation-duration: 55s;
    animation-direction: alternate-reverse;
}
.w-bg-layer.l3 {
    width: 500px; height: 500px;
    top: 40%; left: 30%;
    background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 65%);
    animation-duration: 65s;
}
@keyframes wBgFloat {
    0%   { transform: translate(0,0) scale(1); opacity: .7; }
    33%  { transform: translate(40px,-35px) scale(1.06); opacity: 1; }
    66%  { transform: translate(-25px,30px) scale(.96); opacity: .85; }
    100% { transform: translate(20px,-20px) scale(1.03); opacity: .9; }
}

/* Grain overlay */
.w-grain {
    position: fixed; inset: 0;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    z-index: var(--z-base);
}

/* ═══════════════════════════════════════════════════════════════════════
§5. GLOBAL LOADER
═══════════════════════════════════════════════════════════════════════ */
.w-loader {
    position: fixed; inset: 0;
    background: var(--bg-page);
    z-index: var(--z-loader);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 1.5rem;
    transition: opacity .6s var(--ease-out), visibility .6s;
}
.w-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.w-loader-seal {
    position: relative;
    width: 110px; height: 110px;
    animation: wLoaderSpin 14s linear infinite;
}
.w-loader-seal svg { width: 100%; height: 100%; }
@keyframes wLoaderSpin { to { transform: rotate(360deg); } }

.w-loader-center {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    animation: wLoaderSpin 14s linear infinite reverse;
}
.w-loader-center i {
    font-size: 2rem; color: var(--gold-500);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}
.w-loader-subtitle {
    font-size: .72rem; letter-spacing: .4em;
    color: var(--gold-500); opacity: .75;
    text-transform: uppercase;
}
.w-loader-bar {
    width: 180px; height: 2px;
    background: var(--border-medium);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.w-loader-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
    border-radius: var(--r-pill);
    animation: wLoaderFill 2.2s var(--ease-out) forwards;
}
@keyframes wLoaderFill { to { width: 100%; } }

/* ═══════════════════════════════════════════════════════════════════════
§6. TOPBAR (Glass Header)
═══════════════════════════════════════════════════════════════════════ */
.w-topbar {
    position: sticky; top: 0; z-index: var(--z-topbar);
    height: var(--topbar-h);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: background var(--t-slow), border-color var(--t-base);
}
body.dark-mode .w-topbar {
    background: rgba(10,12,21,.88);
    border-bottom-color: var(--border-medium);
    box-shadow: 0 1px 0 var(--border-medium), 0 4px 16px rgba(0,0,0,.35);
}

.w-topbar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1.25rem;
}

/* Brand */
.w-brand {
    display: flex; align-items: center; gap: .85rem;
    cursor: pointer; flex-shrink: 0;
    transition: transform var(--t-base);
}
.w-brand:hover { transform: translateX(-2px); }

.w-brand-icon {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; flex-shrink: 0;
    box-shadow: 0 3px 12px var(--gold-glow);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.w-brand:hover .w-brand-icon {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.w-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.w-brand-title {
    font-size: .95rem; font-weight: 800;
    color: var(--text-primary); letter-spacing: -.01em;
}
.w-brand-sub {
    font-size: .68rem; color: var(--gold-600);
    letter-spacing: .12em; font-weight: 600;
}
body.dark-mode .w-brand-sub { color: var(--gold-400); }

/* Nav */
.w-nav {
    display: flex; align-items: center;
    justify-content: center;
    gap: .25rem;
}
.w-nav-link {
    padding: .5rem 1rem;
    border-radius: var(--r-sm);
    font-size: .855rem; font-weight: 600;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: .45rem;
    transition: all var(--t-fast);
    white-space: nowrap;
    position: relative;
}
.w-nav-link i { font-size: .82rem; }
.w-nav-link:hover {
    color: var(--gold-600);
    background: var(--gold-dim);
}
body.dark-mode .w-nav-link:hover { color: var(--gold-400); }

.w-nav-link.active {
    color: var(--gold-600);
    background: var(--gold-dim);
    font-weight: 700;
}
body.dark-mode .w-nav-link.active { color: var(--gold-400); }

.w-nav-link.active::before {
    content: ''; position: absolute;
    bottom: -1px; left: 25%; right: 25%;
    height: 2px;
    background: var(--gold-500);
    border-radius: 0 0 3px 3px;
}

/* Topbar actions */
.w-topbar-actions {
    display: flex; align-items: center; gap: .5rem;
    flex-shrink: 0;
}

/* Online badge */
.w-online-chip {
    display: flex; align-items: center; gap: .4rem;
    padding: .28rem .75rem;
    background: var(--c-success-bg);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: var(--r-pill);
    font-size: .72rem; font-weight: 600;
    color: var(--c-success);
}
.w-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 0 0 var(--c-success);
    animation: wPulse 2s infinite;
}
@keyframes wPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Admin chip */
.w-admin-chip {
    display: flex; align-items: center; gap: .4rem;
    padding: .28rem .85rem;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: var(--r-pill);
    font-size: .74rem; font-weight: 700;
    color: var(--gold-600);
    cursor: pointer;
    transition: all var(--t-fast);
}
.w-admin-chip:hover {
    background: var(--gold-glow-sm);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
body.dark-mode .w-admin-chip { color: var(--gold-400); }

/* Icon button */
.w-icon-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-sm);
    color: var(--text-tertiary); font-size: .9rem;
    cursor: pointer; flex-shrink: 0;
    transition: all var(--t-fast);
    position: relative;
}
.w-icon-btn:hover {
    border-color: var(--gold-500);
    color: var(--gold-600);
    background: var(--gold-dim);
    transform: translateY(-1px) scale(1.05);
}
body.dark-mode .w-icon-btn:hover { color: var(--gold-400); }

.w-icon-btn.theme-btn i {
    transition: transform .4s var(--ease-spring);
}
.w-icon-btn.theme-btn:hover i {
    transform: rotate(20deg) scale(1.15);
}

/* Primary button */
.w-btn-primary {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.2rem;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    border: none; border-radius: var(--r-pill);
    color: #fff; font-size: .83rem; font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all var(--t-fast);
    white-space: nowrap;
}
.w-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-glow);
    filter: brightness(1.05);
}
.w-btn-primary i { font-size: .82rem; }

/* Danger button (برای گزارش) */
.w-btn-danger {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.2rem;
    background: linear-gradient(135deg, var(--status-wanted), #dc2626);
    border: none; border-radius: var(--r-pill);
    color: #fff; font-size: .83rem; font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-danger);
    transition: all var(--t-fast);
    white-space: nowrap;
}
.w-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239,68,68,.4);
    filter: brightness(1.08);
}

/* Secondary button */
.w-btn-secondary {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    font-size: .83rem; font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}
.w-btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-600);
    background: var(--gold-dim);
}
body.dark-mode .w-btn-secondary:hover { color: var(--gold-400); }

/* Mobile menu btn */
.w-mobile-menu-btn {
    display: none;
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    cursor: pointer;
}
.w-mobile-menu-btn span {
    display: block; width: 18px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--t-base);
}
.w-mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.w-mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.w-mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ═══════════════════════════════════════════════════════════════════════
§7. HERO SECTION (Wanted Poster Style)
═══════════════════════════════════════════════════════════════════════ */
.w-hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    position: relative;
    z-index: 2;
    animation: wFadeUp .6s var(--ease-out) both;
}
@keyframes wFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.w-hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1.1rem;
    background: var(--status-wanted-bg);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 700;
    color: var(--status-wanted);
    margin-bottom: 1.25rem;
    animation: wBadgePulse 3s ease-in-out infinite;
}

@keyframes wBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.15); }
    50%      { box-shadow: 0 0 0 8px transparent; }
}

.w-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: .75rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.w-hero h1 .w-hero-accent {
    background: linear-gradient(135deg, var(--status-wanted), #991b1b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.w-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
}
.w-hero-line {
    width: 80px; height: 3px;
    margin: 1.5rem auto 0;
    background: linear-gradient(90deg, transparent, var(--status-wanted), transparent);
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════
§8. STATS BAR
═══════════════════════════════════════════════════════════════════════ */
.w-stats-bar {
    max-width: var(--content-max);
    margin: 0 auto 1.25rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
    animation: wFadeUp .6s var(--ease-out) .1s both;
}

.w-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.w-stat-card::before {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--status-wanted), var(--gold-500));
    transform: scaleX(0); transform-origin: right;
    transition: transform var(--t-base);
}
.w-stat-card:hover::before { transform: scaleX(1); }
.w-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-border);
}

.w-stat-icon {
    width: 46px; height: 46px;
    border-radius: var(--r-md);
    background: var(--status-wanted-bg);
    border: 1px solid rgba(239,68,68,.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--status-wanted);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all var(--t-base);
}

.w-stat-card:hover .w-stat-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 4px 12px rgba(239,68,68,.2);
}

.w-stat-body { flex: 1; min-width: 0; }
.w-stat-value {
    font-size: 1.6rem; font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    display: block;
    font-variant-numeric: tabular-nums;
}
.w-stat-label {
    font-size: .78rem; color: var(--text-muted);
    margin-top: .3rem; display: block;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
§9. FILTER BAR
═══════════════════════════════════════════════════════════════════════ */
.w-filter-bar {
    max-width: var(--content-max);
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 3;
    animation: wFadeUp .6s var(--ease-out) .15s both;
}

.w-filter-inner {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-base);
}
body.dark-mode .w-filter-inner {
    background: rgba(15,18,30,.85);
    border-color: var(--border-medium);
}

.w-filter-row {
    display: flex; align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}

/* Search */
.w-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}
.w-search-box {
    width: 100%;
    display: flex; align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-pill);
    padding: 0 .95rem;
    height: 42px;
    gap: .5rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.w-search-box:focus-within {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-glow-sm);
    background: var(--bg-surface);
}
.w-search-box i.search-icon {
    color: var(--text-muted);
    font-size: .85rem;
    flex-shrink: 0;
}
.w-search-box input {
    flex: 1; background: transparent;
    border: none; outline: none;
    color: var(--text-primary);
    font-size: .855rem;
    padding: 0;
}
.w-search-box input::placeholder { color: var(--text-muted); }

/* Filter selects */
.w-filter-select {
    height: 42px;
    padding: 0 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    font-size: .82rem; font-weight: 500;
    cursor: pointer;
    transition: border-color var(--t-fast);
    outline: none;
    min-width: 160px;
}
.w-filter-select:focus { border-color: var(--gold-500); }

/* ═══════════════════════════════════════════════════════════════════════
§10. WANTED GRID
═══════════════════════════════════════════════════════════════════════ */
.w-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 2;
}

.w-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

/* ═══════════════════════════════════════════════════════════════════════
§11. WANTED CARD (Ultra Premium)
═══════════════════════════════════════════════════════════════════════ */
.w-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base), box-shadow var(--t-base),
                border-color var(--t-base), background var(--t-base);
    backdrop-filter: blur(8px);
    animation: wCardIn .5s var(--ease-out) both;
    isolation: isolate;
}
@keyframes wCardIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmer on hover */
.w-card::after {
    content: '';
    position: absolute;
    top: 0; right: -100%; bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    transition: right .6s var(--ease-out);
    pointer-events: none;
    z-index: 1;
}
.w-card:hover::after { right: 150%; }

.w-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-border), var(--shadow-gold);
    background: var(--bg-glass);
}

/* Status top border */
.w-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    z-index: 2;
}
.w-card.status-wanted::before {
    background: linear-gradient(90deg, var(--status-wanted), #dc2626);
}
.w-card.status-captured::before {
    background: linear-gradient(90deg, var(--status-captured), #059669);
}
.w-card.status-archived::before {
    background: linear-gradient(90deg, var(--status-archived), #64748b);
}

/* Mugshot */
.w-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.w-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
    filter: grayscale(15%);
}
.w-card:hover .w-card-media img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

/* Image overlay gradient */
.w-card-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75) 100%);
    pointer-events: none;
}

/* Placeholder when no image */
.w-card-media-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-sunken));
    color: var(--text-muted);
    font-size: 5rem;
    opacity: .2;
}

/* Status badge */
.w-card-status {
    position: absolute;
    top: .85rem; right: .85rem;
    z-index: 3;
    padding: .3rem .85rem;
    border-radius: var(--r-pill);
    font-size: .7rem; font-weight: 800;
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    display: inline-flex; align-items: center; gap: .35rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.w-card-status i { font-size: .65rem; }

.w-card-status.status-wanted {
    background: rgba(239,68,68,.92);
    box-shadow: 0 3px 10px rgba(239,68,68,.4);
}
.w-card-status.status-captured {
    background: rgba(16,185,129,.92);
    box-shadow: 0 3px 10px rgba(16,185,129,.4);
}
.w-card-status.status-archived {
    background: rgba(100,116,139,.92);
}

/* Bounty badge (پایین روی تصویر) */
.w-card-bounty {
    position: absolute;
    bottom: .85rem; left: .85rem;
    z-index: 3;
    padding: .35rem .9rem;
    border-radius: var(--r-pill);
    background: rgba(245,176,66,.95);
    backdrop-filter: blur(12px);
    color: #000;
    font-size: .82rem; font-weight: 900;
    display: inline-flex; align-items: center; gap: .4rem;
    box-shadow: 0 3px 10px rgba(245,176,66,.4);
    border: 1px solid rgba(255,255,255,.25);
}
.w-card-bounty i { font-size: .75rem; }

/* Body */
.w-card-body {
    padding: 1.2rem 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .55rem;
}

/* Name */
.w-card-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color var(--t-fast);
}
.w-card:hover .w-card-name { color: var(--gold-600); }
body.dark-mode .w-card:hover .w-card-name { color: var(--gold-400); }

.w-card-name-icon {
    color: var(--status-wanted);
    font-size: .85rem;
    flex-shrink: 0;
}
.w-card.status-captured .w-card-name-icon { color: var(--status-captured); }
.w-card.status-archived .w-card-name-icon { color: var(--status-archived); }

/* Aliases */
.w-card-aliases {
    font-size: .78rem;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.w-card-aliases i { font-size: .7rem; color: var(--gold-600); }
body.dark-mode .w-card-aliases i { color: var(--gold-400); }

/* Crime */
.w-card-crime {
    font-size: .865rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

/* Footer */
.w-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .85rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    font-size: .73rem;
    color: var(--text-muted);
    gap: .5rem;
    flex-wrap: wrap;
}
.w-card-footer-item {
    display: inline-flex; align-items: center; gap: .3rem;
}
.w-card-footer-item i {
    font-size: .68rem;
    color: var(--gold-600);
}
body.dark-mode .w-card-footer-item i { color: var(--gold-400); }

/* Report button (دکمه گزارش روی کارت) */
.w-card-report {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem 1rem;
    background: linear-gradient(135deg, var(--status-wanted), #dc2626);
    border: none;
    border-radius: var(--r-pill);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--t-fast);
    box-shadow: 0 3px 10px rgba(239,68,68,.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.w-card-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239,68,68,.45);
    filter: brightness(1.1);
}
.w-card-report i { font-size: .82rem; }

.w-card.status-captured .w-card-report,
.w-card.status-archived .w-card-report {
    background: var(--bg-elevated);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid var(--border-medium);
}

/* ═══════════════════════════════════════════════════════════════════════
§12. PAGINATION
═══════════════════════════════════════════════════════════════════════ */
.w-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    padding: 2.5rem 1.5rem 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.w-page-btn {
    min-width: 38px; height: 38px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .855rem; font-weight: 700;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all var(--t-fast);
    padding: 0 .75rem;
}
.w-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--gold-500);
    color: var(--gold-600);
    background: var(--gold-dim);
    transform: translateY(-1px);
}
body.dark-mode .w-page-btn:hover:not(:disabled):not(.active) { color: var(--gold-400); }

.w-page-btn.active {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
    border-color: var(--gold-500);
    box-shadow: var(--shadow-gold);
}
.w-page-btn:disabled {
    opacity: .35; cursor: not-allowed;
}
.w-page-ellipsis {
    color: var(--text-muted);
    padding: 0 .4rem;
    font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════════════════
§13. EMPTY / ERROR STATES
═══════════════════════════════════════════════════════════════════════ */
.w-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.w-state i {
    font-size: 3.5rem;
    margin-bottom: .85rem;
    opacity: .3;
    color: var(--text-muted);
    animation: wFloatIcon 3s ease-in-out infinite;
}
@keyframes wFloatIcon {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.w-state.error i { color: var(--c-danger); }
.w-state h3 {
    font-size: 1.1rem; font-weight: 800;
    color: var(--text-tertiary);
    margin-bottom: .25rem;
}
.w-state p {
    font-size: .88rem; color: var(--text-muted);
    max-width: 380px;
}

/* ═══════════════════════════════════════════════════════════════════════
§14. DETAIL MODAL (Official Wanted Paper)
═══════════════════════════════════════════════════════════════════════ */
.w-modal-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-modal);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}
.w-modal-overlay.active {
    display: flex;
    animation: wModalBg .25s ease;
}
@keyframes wModalBg { from { opacity: 0; } to { opacity: 1; } }

.w-paper {
    width: 100%;
    max-width: 860px;
    background: #faf3e0;
    color: #2b2b2b;
    border: 5px double #b8860b;
    border-radius: 4px;
    box-shadow:
        0 35px 70px rgba(0,0,0,.7),
        0 0 0 14px rgba(184,134,11,.1),
        0 0 0 16px rgba(184,134,11,.05);
    position: relative;
    animation: wModalSlide .4s var(--ease-spring);
    overflow: hidden;
}
body.dark-mode .w-paper {
    background: #1a1f2e;
    color: #e2e8f0;
    border-color: #b8860b;
}
@keyframes wModalSlide {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Paper texture */
.w-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 28px,
            rgba(139,90,0,.03) 28px, rgba(139,90,0,.03) 29px),
        url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    z-index: 0;
}
body.dark-mode .w-paper::before { opacity: .15; }
.w-paper > * { position: relative; z-index: 1; }

.w-modal-close {
    position: fixed;
    top: 1.5rem; left: 1.5rem;
    z-index: calc(var(--z-modal) + 1);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #faf3e0;
    border: 2px solid #b8860b;
    display: flex; align-items: center; justify-content: center;
    color: #8b0000;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--t-fast);
    box-shadow: var(--shadow-md);
}
body.dark-mode .w-modal-close {
    background: #1a1f2e;
    color: #fbbf24;
}
.w-modal-close:hover {
    color: #dc2626;
    border-color: #dc2626;
    transform: rotate(90deg) scale(1.05);
}

/* Paper header (WANTED) */
.w-paper-header {
    text-align: center;
    padding: 2.2rem 2rem 1.5rem;
    border-bottom: 3px double #b8860b;
    position: relative;
}
.w-paper-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 8px;
    background: linear-gradient(90deg, #8b0000, #b8860b, #8b0000);
    border-radius: 4px;
}
.w-paper-seal {
    font-size: 3.5rem;
    color: #8b0000;
    text-shadow: 0 0 15px rgba(139,0,0,.4);
    margin-bottom: .3rem;
    animation: wSealGlow 3s ease-in-out infinite;
}
body.dark-mode .w-paper-seal { color: #fbbf24; text-shadow: 0 0 15px rgba(251,191,36,.4); }
@keyframes wSealGlow {
    0%,100% { text-shadow: 0 0 15px rgba(139,0,0,.4); }
    50%     { text-shadow: 0 0 35px rgba(139,0,0,.8); }
}
body.dark-mode @keyframes wSealGlow {
    0%,100% { text-shadow: 0 0 15px rgba(251,191,36,.4); }
    50%     { text-shadow: 0 0 35px rgba(251,191,36,.8); }
}
.w-paper-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #8b0000;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,.2);
    margin-bottom: .3rem;
}
body.dark-mode .w-paper-header h2 { color: #fbbf24; }
.w-paper-status-text {
    color: #8b0000;
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: .3rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
body.dark-mode .w-paper-status-text { color: #f87171; }

/* Paper body */
.w-paper-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.w-paper-mugshot {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 4px solid #b8860b;
    border-radius: 4px;
    object-fit: cover;
    background: #e8dcc8;
    box-shadow: 4px 4px 15px rgba(0,0,0,.15);
}
body.dark-mode .w-paper-mugshot { background: #2a2f3e; }

.w-no-mugshot {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e8dcc8;
    border: 4px solid #b8860b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(139,0,0,.4);
}
body.dark-mode .w-no-mugshot { background: #2a2f3e; color: rgba(251,191,36,.4); }

/* Info rows */
.w-info-row {
    border-bottom: 1px dashed #b8860b;
    padding-bottom: .7rem;
    margin-bottom: .7rem;
}
body.dark-mode .w-info-row { border-bottom-color: rgba(251,191,36,.3); }
.w-info-row .w-lbl {
    font-weight: 800;
    color: #5c4308;
    margin-left: .5rem;
    font-size: .82rem;
    display: inline-block;
    min-width: 80px;
}
body.dark-mode .w-info-row .w-lbl { color: #fbbf24; }
.w-info-row .w-val {
    color: #2b2b2b;
    font-weight: 500;
    font-size: .9rem;
}
body.dark-mode .w-info-row .w-val { color: #e2e8f0; }
.w-info-row .w-bounty {
    color: #8b0000;
    font-weight: 900;
    font-size: 1.2rem;
}
body.dark-mode .w-info-row .w-bounty { color: #fbbf24; }

/* Paper footer */
.w-paper-footer {
    padding: 1.2rem 2rem;
    border-top: 2px solid #b8860b;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(184,134,11,.04);
}
body.dark-mode .w-paper-footer { background: rgba(251,191,36,.04); }

.w-paper-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1.3rem;
    border-radius: var(--r-pill);
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-fast);
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.w-paper-btn-gold {
    background: linear-gradient(135deg, #f0c040, #e5a620);
    color: #111;
    border: none;
    box-shadow: 0 5px 20px rgba(240,192,64,.45);
}
.w-paper-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240,192,64,.65);
}
.w-paper-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(239,68,68,.45);
    animation: wReportPulse 2s ease-in-out infinite;
}
@keyframes wReportPulse {
    0%,100% { box-shadow: 0 5px 20px rgba(239,68,68,.45); }
    50%     { box-shadow: 0 5px 20px rgba(239,68,68,.7), 0 0 0 6px rgba(239,68,68,.1); }
}
.w-paper-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239,68,68,.75);
}
.w-paper-btn-outline {
    background: transparent;
    border-color: rgba(184,134,11,.3);
    color: #5c4308;
}
body.dark-mode .w-paper-btn-outline { color: #fbbf24; border-color: rgba(251,191,36,.3); }
.w-paper-btn-outline:hover {
    border-color: #b8860b;
    color: #8b0000;
    transform: translateY(-2px);
}
body.dark-mode .w-paper-btn-outline:hover { border-color: #fbbf24; color: #fbbf24; }

/* ═══════════════════════════════════════════════════════════════════════
§15. ADMIN SIDEBAR
═══════════════════════════════════════════════════════════════════════ */
.w-admin-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    z-index: calc(var(--z-modal) - 100);
    display: none;
    justify-content: flex-end;
}
.w-admin-overlay.active {
    display: flex;
    animation: wModalBg .25s ease;
}

.w-admin-sidebar {
    width: 100%;
    max-width: 920px;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-medium);
    display: flex;
    flex-direction: column;
    animation: wSlideIn .4s var(--ease-out);
    overflow: hidden;
    box-shadow: -8px 0 30px rgba(0,0,0,.25);
}
@keyframes wSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
body.dark-mode .w-admin-sidebar {
    background: var(--bg-elevated);
}

.w-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--gold-dim), transparent);
    flex-shrink: 0;
}
.w-admin-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.w-admin-header h3 i { color: var(--gold-500); }

.w-admin-close {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
    font-size: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--t-fast);
}
.w-admin-close:hover {
    color: var(--c-danger);
    border-color: rgba(239,68,68,.3);
    background: var(--c-danger-bg);
}

/* Admin body */
.w-admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.w-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    gap: .85rem;
    flex-wrap: wrap;
}
.w-admin-search {
    flex: 1;
    max-width: 320px;
    position: relative;
}
.w-admin-search input {
    width: 100%;
    padding: .55rem 1rem .55rem 2.4rem;
    border-radius: var(--r-pill);
    font-size: .82rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.w-admin-search input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-glow-sm);
}
.w-admin-search i {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: .8rem;
}

/* Admin table */
.w-admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border-light);
    background: var(--card-bg);
}
.w-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .845rem;
}
.w-admin-table thead {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-medium);
}
.w-admin-table th {
    padding: .75rem 1rem;
    text-align: right;
    font-weight: 700;
    font-size: .73rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.w-admin-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}
.w-admin-table tbody tr {
    transition: background var(--t-fast);
}
.w-admin-table tbody tr:hover {
    background: var(--gold-dim);
}
.w-admin-table tbody tr:last-child td { border-bottom: none; }

.w-admin-thumb {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    object-fit: cover;
    background: var(--bg-elevated);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.w-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .7rem;
    border-radius: var(--r-pill);
    font-size: .7rem;
    font-weight: 700;
}
.w-status-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
}
.w-status-wanted {
    background: var(--status-wanted-bg);
    color: var(--status-wanted);
    border: 1px solid rgba(239,68,68,.2);
}
.w-status-wanted::before { background: var(--status-wanted); }
.w-status-captured {
    background: var(--status-captured-bg);
    color: var(--status-captured);
    border: 1px solid rgba(16,185,129,.2);
}
.w-status-captured::before { background: var(--status-captured); }
.w-status-archived {
    background: var(--status-archived-bg);
    color: var(--status-archived);
    border: 1px solid rgba(148,163,184,.2);
}
.w-status-archived::before { background: var(--status-archived); }

.w-action-cell {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.w-btn-xs {
    width: 30px; height: 30px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--t-fast);
}
.w-btn-xs:hover {
    color: var(--gold-600);
    border-color: var(--gold-500);
    background: var(--gold-dim);
    transform: scale(1.08);
}
body.dark-mode .w-btn-xs:hover { color: var(--gold-400); }

.w-btn-xs.w-btn-delete:hover {
    color: var(--c-danger);
    border-color: rgba(239,68,68,.3);
    background: var(--c-danger-bg);
}
.w-btn-xs.w-btn-success:hover {
    color: var(--c-success);
    border-color: rgba(16,185,129,.3);
    background: var(--c-success-bg);
}

/* ═══════════════════════════════════════════════════════════════════════
§16. FORM MODAL
═══════════════════════════════════════════════════════════════════════ */
.w-form-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    z-index: calc(var(--z-modal) + 50);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.w-form-overlay.active {
    display: flex;
    animation: wModalBg .25s ease;
}

.w-form-modal {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-xl);
    padding: 0;
    box-shadow: var(--shadow-xl);
    animation: wModalSlide .35s var(--ease-spring);
}

.w-form-header {
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--gold-dim), transparent);
}
.w-form-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: .55rem;
}
.w-form-header h3 i { color: var(--gold-500); }

.w-form-body { padding: 1.5rem 1.75rem; }

.w-form-group { margin-bottom: 1.1rem; }
.w-form-group label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: .45rem;
}
.w-form-group label i {
    color: var(--gold-500);
    font-size: .75rem;
}
.w-required { color: var(--c-danger); }

.w-form-group input,
.w-form-group textarea,
.w-form-group select {
    width: 100%;
    padding: .7rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: .88rem;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.w-form-group input:focus,
.w-form-group textarea:focus,
.w-form-group select:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-glow-sm);
    background: var(--bg-surface);
}
.w-form-group input::placeholder,
.w-form-group textarea::placeholder { color: var(--text-muted); }

.w-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.75;
}

.w-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.w-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1.1rem 1.75rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════════════
§17. CONFIRM DIALOG
═══════════════════════════════════════════════════════════════════════ */
.w-confirm-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    z-index: calc(var(--z-modal) + 100);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.w-confirm-overlay.active {
    display: flex;
    animation: wModalBg .2s ease;
}

.w-confirm-dialog {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    animation: wModalSlide .3s var(--ease-spring);
}

.w-confirm-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1.5px solid rgba(239,68,68,.25);
}

.w-confirm-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: .35rem;
}
.w-confirm-subtitle {
    font-size: .88rem;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}
.w-confirm-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
}

/* ═══════════════════════════════════════════════════════════════════════
§18. TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════════════ */
.w-toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: .6rem;
    max-width: 340px;
}
.w-toast {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1.1rem;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-medium);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    transform: translateX(-20px);
    opacity: 0;
    transition: all .4s var(--ease-spring);
}
body.dark-mode .w-toast { background: var(--bg-elevated); }

.w-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.w-toast.success { border-right: 3px solid var(--c-success); }
.w-toast.error   { border-right: 3px solid var(--c-danger); }
.w-toast.warning { border-right: 3px solid var(--c-warning); }
.w-toast.info    { border-right: 3px solid var(--c-info); }

.w-toast i {
    font-size: 1.15rem;
    margin-top: .1rem;
    flex-shrink: 0;
}
.w-toast.success i { color: var(--c-success); }
.w-toast.error i   { color: var(--c-danger); }
.w-toast.warning i { color: var(--c-warning); }
.w-toast.info i    { color: var(--c-info); }

.w-toast-content { flex: 1; }
.w-toast-title {
    font-weight: 800;
    font-size: .855rem;
    color: var(--text-primary);
    margin-bottom: .12rem;
}
.w-toast-msg {
    font-size: .78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.w-toast-close {
    color: var(--text-muted);
    font-size: .85rem;
    padding: .2rem;
    cursor: pointer;
    transition: color var(--t-fast);
    flex-shrink: 0;
    background: none; border: none;
}
.w-toast-close:hover { color: var(--c-danger); }

/* ═══════════════════════════════════════════════════════════════════════
§19. SCROLL TO TOP
═══════════════════════════════════════════════════════════════════════ */
.w-scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-base);
    cursor: pointer;
    border: none;
}
.w-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.w-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245,176,66,.4);
}

/* ═══════════════════════════════════════════════════════════════════════
§20. SKELETON LOADING
═══════════════════════════════════════════════════════════════════════ */
.w-skel-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
}
.w-skel-img {
    aspect-ratio: 3 / 4;
    background: linear-gradient(90deg,
        var(--bg-elevated) 25%,
        var(--bg-sunken) 50%,
        var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: wShimmer 1.5s infinite;
}
@keyframes wShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.w-skel-body { padding: 1rem 1.15rem; }
.w-skel-line {
    height: 12px;
    margin-bottom: .65rem;
    border-radius: 6px;
    background: linear-gradient(90deg,
        var(--bg-elevated) 25%,
        var(--bg-sunken) 50%,
        var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: wShimmer 1.5s infinite;
}
.w-skel-line.long   { width: 90%; }
.w-skel-line.medium { width: 70%; }
.w-skel-line.short  { width: 50%; }

/* ═══════════════════════════════════════════════════════════════════════
§21. MOBILE MENU
═══════════════════════════════════════════════════════════════════════ */
.w-mobile-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-topbar) - 1);
    display: none;
    opacity: 0;
    transition: opacity var(--t-base);
}
.w-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.w-mobile-menu {
    position: fixed;
    top: var(--topbar-h);
    right: 0; bottom: 0;
    width: 280px;
    z-index: var(--z-topbar);
    background: var(--bg-surface);
    border-left: 1px solid var(--border-medium);
    padding: 1.5rem 1rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease-out);
    overflow-y: auto;
}
body.dark-mode .w-mobile-menu { background: var(--bg-elevated); }
.w-mobile-menu.active { transform: translateX(0); }

.w-mobile-menu a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: var(--r-sm);
    font-size: .95rem;
    color: var(--text-secondary);
    margin-bottom: .3rem;
    font-weight: 600;
    transition: all var(--t-fast);
}
.w-mobile-menu a:hover,
.w-mobile-menu a.active {
    color: var(--gold-600);
    background: var(--gold-dim);
}
body.dark-mode .w-mobile-menu a:hover,
body.dark-mode .w-mobile-menu a.active { color: var(--gold-400); }

/* ═══════════════════════════════════════════════════════════════════════
§22. UTILITIES
═══════════════════════════════════════════════════════════════════════ */
.w-hidden { display: none !important; }
.hidden    { display: none !important; }

/* Stagger for cards */
.w-card:nth-child(1)  { animation-delay: .03s; }
.w-card:nth-child(2)  { animation-delay: .08s; }
.w-card:nth-child(3)  { animation-delay: .13s; }
.w-card:nth-child(4)  { animation-delay: .18s; }
.w-card:nth-child(5)  { animation-delay: .23s; }
.w-card:nth-child(6)  { animation-delay: .28s; }
.w-card:nth-child(7)  { animation-delay: .33s; }
.w-card:nth-child(8)  { animation-delay: .38s; }
.w-card:nth-child(9)  { animation-delay: .43s; }

/* ═══════════════════════════════════════════════════════════════════════
§23. RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .w-nav { display: none; }
    .w-mobile-menu-btn { display: flex; }
    .w-online-chip { display: none; }
    .w-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    .w-hero { padding: 2.5rem 1.25rem 2rem; }
    .w-hero h1 { font-size: 1.85rem; }
    .w-hero p { font-size: .92rem; }

    .w-stats-bar { gap: .7rem; }
    .w-stat-card { padding: .85rem 1rem; }
    .w-stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .w-stat-value { font-size: 1.3rem; }

    .w-filter-inner { padding: .85rem 1rem; }
    .w-filter-row { flex-direction: column; align-items: stretch; }
    .w-search-wrap { width: 100%; min-width: unset; }
    .w-filter-select { width: 100%; }

    .w-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

    .w-admin-sidebar { max-width: 100%; }
    .w-form-row { grid-template-columns: 1fr; }

    .w-paper-body { grid-template-columns: 1fr; padding: 1.5rem; }
    .w-paper-header { padding: 1.75rem 1.5rem 1.5rem; }
    .w-paper-header h2 { font-size: 2rem; letter-spacing: 5px; }
    .w-paper-mugshot, .w-no-mugshot { max-width: 220px; margin: 0 auto; }
    .w-paper-footer { padding: 1rem; gap: .5rem; }
    .w-paper-btn { padding: .55rem 1rem; font-size: .78rem; }
}

@media (max-width: 480px) {
    .w-grid { grid-template-columns: 1fr; }
    .w-brand-title { font-size: .88rem; }
    .w-brand-sub { font-size: .62rem; }
    .w-brand-icon { width: 34px; height: 34px; }

    .w-hero h1 { font-size: 1.5rem; }
    .w-hero-badge { font-size: .72rem; padding: .3rem .85rem; }

    .w-paper { border-width: 3px; }
    .w-paper-header h2 { font-size: 1.6rem; letter-spacing: 3px; }
    .w-paper-seal { font-size: 2.5rem; }
    .w-paper-body { padding: 1.2rem; gap: 1.2rem; }
    .w-paper-footer { flex-direction: column; }
    .w-paper-btn { width: 100%; justify-content: center; }

    .w-toast-container { left: 1rem; right: 1rem; max-width: none; }
    .w-toast { min-width: unset; }

    .w-stats-bar { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
§24. PRINT STYLES
═══════════════════════════════════════════════════════════════════════ */
@media print {
    .w-topbar, .w-hero, .w-filter-bar, .w-stats-bar,
    .w-pagination, .w-admin-overlay, .w-form-overlay,
    .w-confirm-overlay, .w-toast-container, .w-scroll-top,
    .w-bg-gradient, .w-grain, .w-modal-close,
    .w-mobile-menu, .w-mobile-overlay, .w-loader,
    .w-paper-footer { display: none !important; }

    .w-modal-overlay {
        position: static;
        background: none;
        backdrop-filter: none;
        padding: 0;
        display: block !important;
    }
    .w-paper {
        max-width: 100%;
        box-shadow: none;
        border: 3px double #000;
        margin: 0;
    }
    .w-paper-header h2 { color: #000; }
    body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════════════════════════════
§25. REDUCED MOTION
═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}