/* ═══════════════════════════════════════
   POLSTREAM CMS — Ember Indigo Theme
   Cool dark. Indigo glow. Violet sparks.
   ═══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg: #0f0f12;
    --surface: #16161a;
    --surface-hi: #1c1c21;
    --surface-active: #22222a;
    --border: #2a2a33;
    --border-hi: #35353f;

    --t1: #f4f4f5;
    --t2: #a1a1aa;
    --t3: #71717a;

    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-soft: rgba(99,102,241,.10);
    --accent-glow: rgba(99,102,241,.06);
    --accent2: #8b5cf6;
    --accent2-soft: rgba(139,92,246,.10);

    --green: #34d399;
    --green-bg: rgba(52,211,153,.10);
    --amber: #fbbf24;
    --amber-bg: rgba(251,191,36,.10);
    --red: #f87171;
    --red-bg: rgba(248,113,113,.08);
    --blue: #60a5fa;
    --blue-bg: rgba(96,165,250,.10);

    --display: 'Sora', sans-serif;
    --body: 'DM Sans', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --r: 10px;
    --r-sm: 6px;
    --r-lg: 14px;
    --r-pill: 99px;

    --sidebar-w: 56px;
    --sidebar-ex: 220px;
    --topbar-h: 48px;

    --shadow: 0 4px 20px var(--accent-glow);
    --shadow-md: 0 8px 32px rgba(0,0,0,.3);
    --t: 200ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--t1);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }

/* ── Noise texture ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Bottom ambient glow ── */
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ══════════ UTILITIES ══════════ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--t3); }
.text-secondary { color: var(--t2); }
.text-mono { font-family: var(--mono); }
.font-display { font-family: var(--display); }

/* ══════════ LOGIN PAGE ══════════ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.login-card {
    width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    animation: fadeUp .4s ease both;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}
.login-logo .mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.login-logo .wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
}
.login-title {
    text-align: center;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.login-subtitle {
    text-align: center;
    font-size: .85rem;
    color: var(--t3);
    margin-bottom: 28px;
}

/* ══════════ FORMS ══════════ */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--t2);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--t1);
    font-size: .85rem;
    padding: 10px 12px;
    outline: none;
    transition: border-color var(--t);
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--t3); }

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--t2);
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ══════════ BUTTONS ══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--t);
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .78rem; }
.btn-ghost {
    background: none;
    color: var(--t2);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: transparent; }
.btn-danger:hover { background: rgba(248,113,113,.15); }
.btn svg { width: 16px; height: 16px; }

/* ══════════ APP LAYOUT ══════════ */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ══════════ SIDEBAR ══════════ */
.sidebar {
    grid-row: 1 / -1;
    background: var(--surface);
    border-right: 1px solid var(--border);
    width: var(--sidebar-w);
    transition: width 220ms cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    z-index: 20;
    display: flex;
    flex-direction: column;
}
.sidebar:hover { width: var(--sidebar-ex); }

.side-logo {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.logo-mark {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
}
.logo-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 180ms;
}
.sidebar:hover .logo-text { opacity: 1; }

.side-nav {
    flex: 1;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}
.side-section {
    font-size: .6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--t3);
    padding: 12px 18px 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 180ms;
}
.sidebar:hover .side-section { opacity: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 38px;
    color: var(--t2);
    cursor: pointer;
    transition: color .15s, background .15s;
    position: relative;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: .82rem;
}
.nav-item:hover { color: var(--t1); background: var(--surface-hi); }
.nav-item.active { color: var(--accent); background: var(--accent-soft); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 0 2px 2px 0;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.6; }
.nav-label {
    font-weight: 500;
    opacity: 0;
    transition: opacity 180ms;
}
.sidebar:hover .nav-label { opacity: 1; }

.side-footer {
    border-top: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.side-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}
.side-user { opacity: 0; transition: opacity 180ms; white-space: nowrap; }
.sidebar:hover .side-user { opacity: 1; }
.side-user-name { font-size: .8rem; font-weight: 600; }
.side-user-role { font-size: .68rem; color: var(--t3); }

/* ══════════ TOPBAR ══════════ */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 10;
}
.breadcrumb {
    font-size: .82rem;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb span { color: var(--t1); font-weight: 600; }
.breadcrumb svg { width: 14px; height: 14px; color: var(--border-hi); }

.top-search {
    margin-left: auto;
    position: relative;
}
.top-search input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--t1);
    font-size: .82rem;
    padding: 6px 12px 6px 32px;
    border-radius: var(--r-sm);
    width: 220px;
    outline: none;
    transition: border-color var(--t);
}
.top-search input:focus { border-color: var(--accent); }
.top-search input::placeholder { color: var(--t3); }
.top-search .s-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    color: var(--t3);
}
.top-search kbd {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--t3);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 3px;
}

.top-actions { display: flex; align-items: center; gap: 4px; }
.top-btn {
    width: 34px; height: 34px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    position: relative;
    font-size: 16px;
}
.top-btn:hover { background: var(--accent-soft); border-color: var(--border); color: var(--t1); }
.top-btn svg { width: 16px; height: 16px; }
.notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: border-color var(--t);
    margin-left: 8px;
}
.user-pill:hover { border-color: var(--border-hi); }
.u-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 600;
    color: var(--accent);
}
.u-name { font-size: .8rem; font-weight: 500; color: var(--t2); }

/* ══════════ MAIN CONTENT ══════════ */
.main-content {
    overflow-y: auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* ══════════ STAT CARDS ══════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: .8;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hi);
    box-shadow: var(--shadow);
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.stat-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.stat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.stat-icon svg { width: 16px; height: 16px; }
.stat-value {
    font-family: var(--mono);
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--r-pill);
}
.change-up { background: var(--green-bg); color: var(--green); }
.change-down { background: var(--red-bg); color: var(--red); }
.stat-bar {
    margin-top: 10px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width .8s ease .2s;
}

/* ══════════ PANELS ══════════ */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.panel-title {
    font-family: var(--display);
    font-size: .9rem;
    font-weight: 600;
}
.panel-action {
    font-size: .75rem;
    font-weight: 500;
    color: var(--accent);
    background: none;
    border: none;
    transition: opacity var(--t);
}
.panel-action:hover { opacity: .7; }
.panel-body { padding: 16px 20px; }

/* ══════════ DATA TABLE ══════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 8px 20px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--t3);
    border-bottom: 1px solid var(--border);
}
.data-table th.r { text-align: right; }
.data-table td {
    padding: 10px 20px;
    font-size: .82rem;
    color: var(--t2);
    border-bottom: 1px solid rgba(42,42,51,.5);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-hi); }
.data-table td.r { text-align: right; }

.cell-id {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 500;
    color: var(--accent);
}
.cell-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cell-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 600;
    color: var(--t3);
    flex-shrink: 0;
}
.cell-name { font-weight: 500; color: var(--t1); }
.cell-mono { font-family: var(--mono); font-weight: 500; }
.cell-date { font-family: var(--mono); font-size: .72rem; color: var(--t3); }

/* ── Status pills ── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--r-pill);
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-green::before { background: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-amber::before { background: var(--amber); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-blue::before { background: var(--blue); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-red::before { background: var(--red); }

/* ══════════ ACTIVITY FEED ══════════ */
.activity-list { padding: 8px 0; }
.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    transition: background var(--t);
    cursor: default;
    position: relative;
}
.activity-item:hover { background: var(--accent-soft); }
.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 33px; top: 42px; bottom: -6px;
    width: 1px;
    background: var(--border);
}
.activity-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 600;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}
.activity-avatar.av-accent { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); }
.activity-avatar.av-green { background: linear-gradient(135deg, var(--green), #059669); }
.activity-avatar.av-amber { background: linear-gradient(135deg, var(--amber), #d97706); }
.activity-avatar.av-blue { background: linear-gradient(135deg, var(--blue), #2563eb); }
.activity-avatar.av-red { background: linear-gradient(135deg, var(--red), #dc2626); }
.activity-content { flex: 1; min-width: 0; }
.activity-text { font-size: .82rem; color: var(--t2); line-height: 1.4; }
.activity-text strong { color: var(--t1); font-weight: 600; }
.activity-text .hl { color: var(--accent); font-weight: 500; }
.activity-time { font-size: .7rem; color: var(--t3); margin-top: 3px; }

/* ── Legacy timeline (still usable) ── */
.timeline { padding: 16px 20px; }
.tl-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px; top: 14px; bottom: 0;
    width: 1px;
    background: var(--border);
}
.tl-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.tl-item:first-child .tl-dot { border-color: var(--accent); background: var(--accent-soft); }
.tl-body { flex: 1; }
.tl-time { font-family: var(--mono); font-size: .68rem; color: var(--t3); margin-bottom: 2px; }
.tl-text { font-size: .8rem; color: var(--t2); line-height: 1.4; }
.tl-text strong { color: var(--t1); font-weight: 500; }
.tl-text em { color: var(--accent); font-style: normal; font-weight: 500; }

/* ══════════ CONTENT LAYOUTS ══════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-60-40 { display: grid; grid-template-columns: 1fr 360px; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12 { gap: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-12 { margin-bottom: 12px; }

/* ══════════ MODAL ══════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn .15s ease;
}
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeUp .2s ease;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--display); font-size: .95rem; font-weight: 600; }
.modal-close {
    width: 28px; height: 28px;
    border-radius: var(--r-sm);
    border: none;
    background: var(--bg);
    color: var(--t3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--t);
}
.modal-close:hover { color: var(--t1); }
.modal-body { padding: 20px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* ══════════ TOAST ══════════ */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    animation: slideInRight .2s ease;
    min-width: 280px;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-warning { border-left: 3px solid var(--amber); }
.toast-info { border-left: 3px solid var(--accent); }

/* ══════════ EMPTY STATE ══════════ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--t3);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .3; }
.empty-state h3 { font-family: var(--display); font-size: 1rem; color: var(--t2); margin-bottom: 4px; }
.empty-state p { font-size: .82rem; }

/* ══════════ PAGINATION ══════════ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
}
.page-btn {
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: none;
    color: var(--t2);
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ══════════ ANIMATIONS ══════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.anim-stagger > *:nth-child(1) { animation: fadeUp .4s ease .05s both; }
.anim-stagger > *:nth-child(2) { animation: fadeUp .4s ease .1s both; }
.anim-stagger > *:nth-child(3) { animation: fadeUp .4s ease .15s both; }
.anim-stagger > *:nth-child(4) { animation: fadeUp .4s ease .2s both; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-60-40 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .app-layout { grid-template-columns: 0 1fr; }
    .sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .main-content { padding: 16px; }
    .top-search { display: none; }
}
