.header {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(10, 14, 23, 0.78);
            backdrop-filter: blur(20px) saturate(1.6);
            -webkit-backdrop-filter: blur(20px) saturate(1.6);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 14px 20px;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        :root.light .header {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(0, 0, 0, 0.08);
        }

        .header-inner {
            display: flex;
            align-items: center;
            gap: 14px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-family: var(--syne);
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.22em;
            color: rgba(255, 255, 255, 0.85);
            text-transform: uppercase;
            flex-shrink: 0;
        }

        :root.light .logo {
            color: rgba(0, 0, 0, 0.85);
        }

        .header-date-block {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .date-line {
            font-family: var(--syne);
            font-size: 15px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
            line-height: 1.3;
            letter-spacing: -0.01em;
        }

        :root.light .date-line {
            color: rgba(0, 0, 0, 0.88);
        }

        .updated-line {
            font-family: var(--mono);
            font-size: 10px;
            color: rgba(255, 255, 255, 0.3);
        }

        :root.light .updated-line {
            color: rgba(0, 0, 0, 0.35);
        }

        /* Desktop stats inline */
        .header-stats {
            display: none;
            margin-left: auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.04);
            transition: all 0.3s ease;
        }

        :root.light .header-stats {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(0, 0, 0, 0.04);
        }

        .header-stat {
            padding: 8px 22px;
            text-align: center;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
        }

        :root.light .header-stat {
            border-right-color: rgba(0, 0, 0, 0.06);
        }

        .header-stat:last-child {
            border-right: none;
        }

        .header-stat-val {
            font-family: var(--syne);
            font-size: 17px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        :root.light .header-stat-val {
            color: rgba(0, 0, 0, 0.88);
        }

        .header-stat-label {
            font-size: 9px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.35);
            font-weight: 500;
        }

        :root.light .header-stat-label {
            color: rgba(0, 0, 0, 0.4);
        }

        .header-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
        }

        .theme-toggle {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        :root.light .theme-toggle {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: rgba(0, 0, 0, 0.5);
        }

        :root.light .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        .admin-btn {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.5);
            font-family: var(--sans);
            font-size: 12px;
            font-weight: 500;
            padding: 6px 14px;
            height: 34px;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
            letter-spacing: 0.01em;
        }

        .admin-btn.active {
            border-color: rgba(77, 150, 247, 0.4);
            color: var(--accent);
            background: rgba(77, 150, 247, 0.1);
        }

        :root.light .admin-btn {
            background: rgba(0, 0, 0, 0.05);
            border-color: rgba(0, 0, 0, 0.1);
            color: rgba(0, 0, 0, 0.55);
        }

        /* Gear icon that replaces Admin btn once unlocked */
        .admin-gear-btn {
            background: rgba(61, 142, 240, 0.15);
            border: 1px solid rgba(61, 142, 240, 0.35);
            border-radius: 6px;
            color: var(--accent);
            font-size: 15px;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s;
        }

        .admin-gear-btn:hover {
            background: rgba(61, 142, 240, 0.25);
        }

        /* ════════════════════════════════
     MOBILE STATS BAR
  ════════════════════════════════ */
        .stats-bar {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            border-bottom: 1px solid var(--gold-dim);
            background: var(--surface);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        :root.light .stats-bar {
            border-color: rgba(200, 170, 112, 0.25);
        }

        .stat {
            padding: calc(var(--u)*3.5) 0;
            text-align: center;
            border-right: 1px solid var(--glass-border);
        }

        .stat:last-child {
            border-right: none;
        }

        .stat-val {
            font-family: var(--serif);
            font-size: calc(var(--u)*6.5);
            font-weight: 600;
            color: var(--text);
            line-height: 1;
        }

        .stat-label {
            font-size: calc(var(--u)*2.5);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
            margin-top: calc(var(--u)*0.8);
        }

        /* ════════════════════════════════
     ADMIN PANEL + OVERLAY
  ════════════════════════════════ */
        .ap-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            z-index: 198;
            backdrop-filter: blur(2px);
        }

        .ap-overlay.visible {
            display: block;
        }