/* ═══════════════════════════════════════════════════════════
           TOKENS
        ═══════════════════════════════════════════════════════════ */
        :root {
            --bg:           #ebedf3;
            --card-bg:      #161b26;
            --nav-bg:       #0a0c12;
            --text-primary: #f0f2f5;
            --text-muted:   #8a93a2;
            --gold:         #d4af37;
            --gold-dark:    #b8972e;
            --gold-light:   #e8d589;
            --gold-border:  rgba(212,175,55,.22);
            --sidebar-w:    256px;
            --nav-h:        64px;
            --transition:   all .25s ease;
            --font-display: 'Clash Display', sans-serif;
            --font-body:    'Satoshi', system-ui, sans-serif;
        }

        *, *::before, *::after { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; }

        body {
            font-family: var(--font-body);
            font-size: .875rem;
            background: var(--bg);
            color: var(--text-primary);
            margin: 0; padding: 0;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        h1,h2,h3,h4,h5,h6 {
            font-family: var(--font-display);
            font-weight: 700; color: var(--gold); margin-bottom: .5rem;
        }
        h1{font-size:1.6rem}  h2{font-size:1.35rem} h3{font-size:1.15rem}
        h4{font-size:1rem}    h5{font-size:.9rem}   h6{font-size:.82rem}

        /* ═══════════════════════════════════════════════════════════
           PAGE LOADER — a thin top progress bar only. It must never
           cover the header/nav or the rest of the page — just a subtle
           "something is happening" cue while the first load finishes.
        ═══════════════════════════════════════════════════════════ */
        #page-loader {
            position: fixed;
            top: 0; left: 0; right: 0;
            height: 3px;
            z-index: 100000;
            pointer-events: none;
            background: linear-gradient(90deg, transparent, #C89128, #E5B135, #C89128, transparent);
            animation: shimmer 2s ease-in-out infinite;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }
        #page-loader.hide {
            opacity: 0;
            visibility: hidden;
        }
        @keyframes shimmer {
            0%   { opacity: 0.4; }
            50%  { opacity: 1; }
            100% { opacity: 0.4; }
        }

        /* ═══════════════════════════════════════════════════════════
           NAVBAR
        ═══════════════════════════════════════════════════════════ */
        .lux-nav {
            position: fixed; top: 0; left: 0; right: 0;
            height: var(--nav-h);
            background: var(--nav-bg);
            border-bottom: 1px solid var(--gold-border);
            box-shadow: 0 4px 30px rgba(0,0,0,.6);
            z-index: 1030;
            display: flex; align-items: center;
            padding: 0 16px; gap: 10px;
        }

        /* Hamburger — mobile only */
        .lux-nav-toggle {
            display: none; flex-shrink: 0;
            width: 40px; height: 40px;
            border: 1px solid var(--gold-border); border-radius: 9px;
            background: rgba(212,175,55,.06); color: var(--gold);
            align-items: center; justify-content: center;
            cursor: pointer; transition: var(--transition); font-size: 1.2rem;
        }
        .lux-nav-toggle:hover { background: rgba(212,175,55,.14); }

        /* Brand */
        .lux-brand {
            display: flex; align-items: center; gap: 9px;
            text-decoration: none; flex-shrink: 0;
        }
        .lux-brand img { height: 34px; width: auto; border-radius: 8px; }
        .lux-brand-name {
            font-family: var(--font-display);
            font-size: 1.05rem; font-weight: 800; color: var(--gold);
            letter-spacing: -.02em; line-height: 1;
        }
        .lux-brand-sub {
            font-size: .58rem; font-weight: 600;
            color: rgba(212,175,55,.45);
            text-transform: uppercase; letter-spacing: .1em; margin-top: 1px;
        }

        .lux-nav-right {
            margin-left: auto; display: flex; align-items: center; gap: 6px;
        }

        /* Icon button */
        .lux-icon-btn {
            position: relative; width: 38px; height: 38px;
            border: 1px solid var(--gold-border); border-radius: 9px;
            background: rgba(212,175,55,.05); color: var(--text-muted);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: var(--transition); font-size: .95rem;
            text-decoration: none;
        }
        .lux-icon-btn:hover { color: var(--gold); background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.4); }

        .lux-notif-count {
            position: absolute; top: -3px; right: -3px;
            min-width: 17px; height: 17px; padding: 0 4px;
            background: var(--gold); color: #07111F;
            font-size: .58rem; font-weight: 800;
            border-radius: 100px; border: 1.5px solid var(--nav-bg);
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-display);
        }

        /* Language pill */
        .lux-lang-btn {
            height: 38px; padding: 0 12px;
            border: 1px solid var(--gold-border); border-radius: 9px;
            background: rgba(212,175,55,.05); color: var(--gold);
            font-size: .74rem; font-weight: 700; letter-spacing: .04em;
            cursor: pointer; transition: var(--transition);
            display: flex; align-items: center; gap: 5px;
            font-family: var(--font-display);
        }
        .lux-lang-btn:hover { background: rgba(212,175,55,.14); }

        /* User chip */
        .lux-user-btn {
            height: 38px; padding: 0 10px 0 5px;
            border: 1px solid var(--gold-border); border-radius: 9px;
            background: rgba(212,175,55,.05); color: var(--text-muted);
            font-size: .78rem; font-weight: 600;
            display: flex; align-items: center; gap: 7px;
            cursor: pointer; transition: var(--transition);
        }
        .lux-user-btn:hover { color: var(--gold); background: rgba(212,175,55,.12); }

        .lux-avatar {
            width: 27px; height: 27px; border-radius: 7px;
            background: linear-gradient(135deg, #C89128, #E5B135);
            color: #07111F; font-weight: 800; font-size: .72rem;
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-display); flex-shrink: 0;
        }
        .lux-username { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* Dropdowns */
        .dropdown-menu {
            background: #1a2035;
            border: 1px solid var(--gold-border); border-radius: 12px;
            box-shadow: 0 16px 48px rgba(0,0,0,.55);
            padding: 6px; min-width: 190px;
        }
        .dropdown-header {
            font-family: var(--font-display);
            font-size: .68rem; font-weight: 700;
            color: rgba(212,175,55,.5);
            text-transform: uppercase; letter-spacing: .08em;
            padding: 6px 10px 4px;
        }
        .dropdown-item {
            color: var(--text-muted); font-size: .82rem;
            border-radius: 8px; padding: 8px 11px;
            transition: var(--transition);
            display: flex; align-items: center; gap: 8px;
        }
        .dropdown-item:hover, .dropdown-item:focus { background: rgba(212,175,55,.1); color: var(--gold); }
        .dropdown-item.text-danger { color: #f87171; }
        .dropdown-item.text-danger:hover { background: rgba(239,68,68,.1); color: #f87171; }
        .dropdown-divider { border-color: var(--gold-border); margin: 4px 0; }

        .notif-item { flex-direction: column; align-items: flex-start; gap: 1px; }
        .notif-item .notif-title { font-size: .78rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
        .notif-item .notif-time  { font-size: .66rem; color: var(--text-muted); }
        .notif-empty { text-align: center; padding: 14px; color: var(--text-muted); font-size: .78rem; }

        /* ═══════════════════════════════════════════════════════════
           DESKTOP SIDEBAR
        ═══════════════════════════════════════════════════════════ */
        .lux-sidebar {
            position: fixed; top: var(--nav-h); left: 0; bottom: 0;
            width: var(--sidebar-w);
            background: var(--card-bg);
            border-right: 1px solid var(--gold-border);
            box-shadow: 4px 0 30px rgba(0,0,0,.4);
            overflow-y: auto; overflow-x: hidden;
            z-index: 1020;
            scrollbar-width: thin;
            scrollbar-color: rgba(212,175,55,.15) transparent;
            padding-bottom: 24px;
        }
        .lux-sidebar::-webkit-scrollbar { width: 4px; }
        .lux-sidebar::-webkit-scrollbar-thumb { background: rgba(212,175,55,.15); border-radius: 4px; }

        .sidebar-section-label {
            padding: 14px 18px 5px;
            font-size: .62rem; font-weight: 700;
            color: rgba(212,175,55,.35);
            text-transform: uppercase; letter-spacing: .12em;
            font-family: var(--font-display);
        }
        .sidebar-link {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 18px;
            color: var(--text-muted); text-decoration: none;
            border-left: 2.5px solid transparent;
            font-size: .82rem; font-weight: 500;
            transition: var(--transition);
        }
        .sidebar-link:hover {
            color: var(--gold); background: rgba(212,175,55,.06);
            border-left-color: rgba(212,175,55,.4);
        }
        .sidebar-link.active {
            color: var(--gold); background: rgba(212,175,55,.1);
            border-left-color: var(--gold); font-weight: 600;
        }
        .sidebar-link i { font-size: .9rem; flex-shrink: 0; width: 18px; text-align: center; }

        /* ═══════════════════════════════════════════════════════════
           MOBILE DRAWER + OVERLAY
        ═══════════════════════════════════════════════════════════ */
        .lux-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,.65); z-index: 1040;
            opacity: 0; pointer-events: none;
            transition: opacity .28s ease;
        }
        .lux-overlay.open { opacity: 1; pointer-events: auto; }

        .lux-drawer {
            position: fixed; top: 0; left: 0; bottom: 0;
            width: 272px; max-width: 85vw;
            background: var(--card-bg);
            border-right: 1px solid var(--gold-border);
            box-shadow: 6px 0 40px rgba(0,0,0,.6);
            z-index: 1041;
            transform: translateX(-100%);
            transition: transform .3s cubic-bezier(.32,.72,0,1);
            display: flex; flex-direction: column; overflow: hidden;
        }
        .lux-drawer.open { transform: translateX(0); }

        .lux-drawer-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 16px 18px;
            padding-top: calc(16px + env(safe-area-inset-top));
            border-bottom: 1px solid var(--gold-border); flex-shrink: 0;
        }
        .lux-drawer-brand { display: flex; align-items: center; gap: 9px; }
        .lux-drawer-brand img { height: 30px; border-radius: 7px; }
        .lux-drawer-brand-name {
            font-family: var(--font-display);
            font-size: .95rem; font-weight: 800; color: var(--gold);
        }
        .lux-drawer-close {
            width: 34px; height: 34px; flex-shrink: 0;
            border: 1px solid var(--gold-border); border-radius: 8px;
            background: rgba(212,175,55,.06); color: var(--text-muted);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: var(--transition); font-size: .88rem;
        }
        .lux-drawer-close:hover { color: var(--gold); background: rgba(212,175,55,.14); }

        /* User card */
        .lux-drawer-user {
            margin: 14px 16px;
            background: linear-gradient(135deg, rgba(212,175,55,.08), rgba(212,175,55,.03));
            border: 1px solid var(--gold-border);
            border-radius: 12px; padding: 12px 14px;
            display: flex; align-items: center; gap: 11px;
        }
        .lux-drawer-avatar {
            width: 36px; height: 36px; border-radius: 10px;
            background: linear-gradient(135deg, #C89128, #E5B135);
            color: #07111F; font-weight: 800; font-size: .82rem;
            display: flex; align-items: center; justify-content: center;
            font-family: var(--font-display); flex-shrink: 0;
        }
        .lux-drawer-username {
            font-family: var(--font-display);
            font-size: .88rem; font-weight: 700; color: var(--gold);
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .lux-drawer-uid { font-size: .66rem; color: var(--text-muted); margin-top: 1px; }

        /* Scrollable nav */
        .lux-drawer-nav {
            flex: 1; overflow-y: auto; padding: 6px 0 8px;
            scrollbar-width: thin;
            scrollbar-color: rgba(212,175,55,.1) transparent;
        }
        .lux-drawer-nav::-webkit-scrollbar { width: 3px; }
        .lux-drawer-nav::-webkit-scrollbar-thumb { background: rgba(212,175,55,.1); }

        .drawer-section-label {
            padding: 12px 18px 4px;
            font-size: .6rem; font-weight: 700;
            color: rgba(212,175,55,.35);
            text-transform: uppercase; letter-spacing: .12em;
            font-family: var(--font-display);
        }
        .drawer-link {
            display: flex; align-items: center; gap: 11px;
            padding: 11px 18px; min-height: 46px;
            color: var(--text-muted); text-decoration: none;
            border-left: 2.5px solid transparent;
            font-size: .84rem; font-weight: 500;
            transition: var(--transition);
        }
        .drawer-link:hover, .drawer-link:focus {
            color: var(--gold); background: rgba(212,175,55,.07);
            border-left-color: rgba(212,175,55,.4);
        }
        .drawer-link.active {
            color: var(--gold); background: rgba(212,175,55,.11);
            border-left-color: var(--gold); font-weight: 600;
        }
        .drawer-link i { font-size: .9rem; flex-shrink: 0; width: 18px; text-align: center; }

        /* Drawer footer */
        .lux-drawer-footer {
            border-top: 1px solid var(--gold-border);
            padding: 12px 14px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
            flex-shrink: 0; display: flex; flex-direction: column; gap: 3px;
        }
        .drawer-footer-btn {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px; border-radius: 9px;
            font-size: .82rem; font-weight: 500;
            color: var(--text-muted); text-decoration: none;
            transition: var(--transition); min-height: 44px;
            background: transparent; border: none;
            width: 100%; text-align: left; cursor: pointer;
            font-family: var(--font-body);
        }
        .drawer-footer-btn:hover { color: var(--gold); background: rgba(212,175,55,.08); }
        .drawer-footer-btn.danger { color: #f87171; }
        .drawer-footer-btn.danger:hover { background: rgba(239,68,68,.08); color: #f87171; }
        .drawer-footer-btn i { font-size: .88rem; width: 18px; text-align: center; }

        /* ═══════════════════════════════════════════════════════════
           MAIN CONTENT
        ═══════════════════════════════════════════════════════════ */
        .lux-main {
            margin-left: 0;
            margin-top: var(--nav-h);
            min-height: calc(100vh - var(--nav-h));
            padding: 1.5rem 1.25rem;
            background: var(--bg);
        }
        body.has-sidebar .lux-main {
            margin-left: var(--sidebar-w);
        }

        /* ═══════════════════════════════════════════════════════════
           SHARED COMPONENTS
        ═══════════════════════════════════════════════════════════ */
        .card-lux {
            background: var(--card-bg); border: 1px solid var(--gold-border);
            border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.3);
            transition: var(--transition); overflow: hidden;
        }
        .card-lux:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212,175,55,.18); }

        .btn-gold {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            border: none; color: #0a0c12; font-weight: 700; font-size: .84rem;
            border-radius: 9px; padding: 9px 18px; min-height: 42px;
            transition: var(--transition); cursor: pointer; font-family: var(--font-body);
        }
        .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,.35); }

        .btn-outline-gold {
            border: 1.5px solid var(--gold); color: var(--gold);
            font-weight: 600; font-size: .84rem; border-radius: 9px;
            padding: 8px 18px; background: transparent;
            cursor: pointer; transition: var(--transition); min-height: 42px;
        }
        .btn-outline-gold:hover { background: var(--gold); color: #0a0c12; }

        .toast.bg-success {
            background: linear-gradient(135deg, #1e3a2f, #12251c) !important;
            border: 1px solid #3a6b55;
        }

        /* ═══════════════════════════════════════════════════════════
           RESPONSIVE
        ═══════════════════════════════════════════════════════════ */
        /* ═══════════════════════════════════════════════════════════
           MOBILE BOTTOM NAV
        ═══════════════════════════════════════════════════════════ */
        .lux-bottom-nav {
            display: none;
        }
        @media (max-width: 767.98px) {
            :root { --nav-h: 56px; --bottom-nav-h: 60px; }

            .lux-main {
                margin-left: 0 !important;
                padding: 1rem .85rem;
            }
            /* Only reserve space for the bottom nav on pages that actually render it */
            body.has-bottom-nav .lux-main {
                padding-bottom: calc(var(--bottom-nav-h) + 0.75rem + env(safe-area-inset-bottom));
            }
            .lux-sidebar    { display: none !important; }
            .lux-nav-toggle { display: flex; }
            .lux-brand-sub  { display: none; }

            /* Bottom nav */
            .lux-bottom-nav {
                display: flex;
                position: fixed;
                bottom: 0; left: 0; right: 0;
                height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
                padding-bottom: env(safe-area-inset-bottom);
                background: var(--nav-bg);
                border-top: 1px solid var(--gold-border);
                box-shadow: 0 -4px 24px rgba(0,0,0,.5);
                z-index: 1029;
                align-items: stretch;
            }
            .lux-bottom-item {
                flex: 1;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 3px;
                color: var(--text-muted);
                text-decoration: none;
                font-size: .6rem;
                font-weight: 600;
                letter-spacing: .02em;
                font-family: var(--font-body);
                transition: color .2s;
                padding: 6px 4px 0;
                position: relative;
            }
            .lux-bottom-item i {
                font-size: 1.25rem;
                line-height: 1;
                transition: color .2s, transform .2s;
            }
            .lux-bottom-item span {
                font-size: .58rem;
                text-transform: uppercase;
                letter-spacing: .04em;
            }
            .lux-bottom-item:hover,
            .lux-bottom-item:focus {
                color: var(--gold);
            }
            .lux-bottom-item.active {
                color: var(--gold);
            }
            .lux-bottom-item.active i {
                transform: translateY(-2px);
            }
            .lux-bottom-item.active::after {
                content: '';
                position: absolute;
                top: 0; left: 20%; right: 20%;
                height: 2px;
                background: var(--gold);
                border-radius: 0 0 3px 3px;
            }
            .lux-bottom-notif {
                position: absolute;
                top: 4px; right: calc(50% - 16px);
                min-width: 15px; height: 15px; padding: 0 3px;
                background: var(--gold); color: #07111F;
                font-size: .5rem; font-weight: 800;
                border-radius: 100px;
                display: flex; align-items: center; justify-content: center;
                font-family: var(--font-display);
                border: 1.5px solid var(--nav-bg);
            }
        }

        @media (max-width: 480px) {
            .lux-user-btn .lux-username { display: none; }
            .lux-lang-btn .lang-label   { display: none; }
            .lux-lang-btn               { padding: 0 10px; }
        }

        @supports (padding-left: env(safe-area-inset-left)) {
            .lux-nav {
                padding-left:  max(16px, env(safe-area-inset-left));
                padding-right: max(16px, env(safe-area-inset-right));
            }
        }

        /* ═══════════════════════════════════════════════════════════
           BRAND MENU — navy + gold pill
           Sidebar, mobile drawer and top bar in the same navy/gold as
           the page cards and buttons (#09172A / #C89128 → #E5B135).
        ═══════════════════════════════════════════════════════════ */
        :root { --nav-bg: #07111F; }

        .lux-sidebar, .lux-drawer {
            background: linear-gradient(180deg, #09172A 0%, #0c1d33 100%);
            border-right: 1px solid rgba(229,177,53,.12);
            box-shadow: 4px 0 24px rgba(9,23,42,.25);
        }
        /* Rounded panel. Its right edge sits exactly where the content
           starts (256px), so the active "tab" below can flow into the page. */
        .lux-sidebar {
            top: calc(var(--nav-h) + 12px);
            left: 12px;
            bottom: 12px;
            width: calc(var(--sidebar-w) - 12px);
            border: none;
            border-radius: 22px;
            box-shadow: -8px 12px 28px -18px rgba(9,23,42,.6);
            padding-bottom: 28px;
        }
        .lux-drawer { border-radius: 0 18px 18px 0; }
        .sidebar-section-label, .drawer-section-label {
            padding: 16px 26px 6px;
            color: rgba(229,177,53,.6);
        }
        .sidebar-link, .drawer-link {
            margin: 2px 12px;
            padding: 9px 14px;
            border-left: none;
            border-radius: 10px;
            color: #A9B4C4;
            font-weight: 500;
        }
        .drawer-link { padding: 11px 14px; }
        .sidebar-link i, .drawer-link i { color: rgba(229,177,53,.75); transition: color .2s; }
        .sidebar-link:hover, .drawer-link:hover, .drawer-link:focus {
            color: #fff;
            background: rgba(255,255,255,.06);
        }
        .sidebar-link:hover i, .drawer-link:hover i { color: #E5B135; }
        .sidebar-link.active, .drawer-link.active {
            background: linear-gradient(135deg, #C89128, #E5B135);
            color: #07111F;
            font-weight: 700;
            box-shadow: 0 6px 16px -8px rgba(229,177,53,.6);
        }
        .sidebar-link.active i, .drawer-link.active i { color: #07111F; }
        .sidebar-link:focus-visible, .drawer-link:focus-visible {
            outline: 2px solid #E5B135; outline-offset: 2px;
        }

        /* Sidebar profile block — compact row */
        .sb-profile {
            display: flex; align-items: center; gap: 10px;
            margin: 10px 12px 4px; padding: 8px 10px;
            border-radius: 14px; background: rgba(255,255,255,.04);
            text-decoration: none; transition: background .2s;
        }
        .sb-profile:hover { background: rgba(255,255,255,.08); }
        .sb-avatar {
            width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; padding: 2px;
            background: conic-gradient(#E5B135 0 72%, rgba(229,177,53,.18) 72% 100%);
        }
        .sb-avatar span {
            width: 100%; height: 100%; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            background: #0f2440; border: 2px solid #09172A;
            color: #E5B135; font-family: var(--font-display); font-weight: 800; font-size: .85rem;
        }
        .sb-who { min-width: 0; display: flex; flex-direction: column; }
        .sb-name {
            color: #fff; font-family: var(--font-display); font-weight: 800;
            font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .sb-email {
            color: #8A9BB0; font-size: .66rem; line-height: 1.3;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }

        /* Desktop sidebar links: uppercase, and the active one is a tab in
           the page colour that runs to the edge with curved joins. */
        .lux-sidebar .sidebar-section-label { padding: 14px 30px 6px; font-size: .6rem; }
        .lux-sidebar .sidebar-link {
            position: relative;
            margin: 2px 0 2px 14px;
            padding: 10px 16px;
            border-radius: 26px 0 0 26px;
            text-transform: uppercase; letter-spacing: .07em;
            font-size: .72rem; font-weight: 600;
        }
        .lux-sidebar .sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
        .lux-sidebar .sidebar-link.active {
            background: var(--bg);
            color: #09172A; font-weight: 800;
            box-shadow: none;
        }
        .lux-sidebar .sidebar-link.active i { color: #C89128; }
        .lux-sidebar .sidebar-link.active::before,
        .lux-sidebar .sidebar-link.active::after {
            content: ""; position: absolute; right: 0;
            width: 24px; height: 24px; background: transparent; pointer-events: none;
        }
        .lux-sidebar .sidebar-link.active::before {
            top: -24px; border-bottom-right-radius: 24px;
            box-shadow: 8px 8px 0 8px var(--bg);
        }
        .lux-sidebar .sidebar-link.active::after {
            bottom: -24px; border-top-right-radius: 24px;
            box-shadow: 8px -8px 0 8px var(--bg);
        }


        /* Pagination — Bootstrap's default blue → brand navy/gold */
        .pagination {
            --bs-pagination-color: #344563;
            --bs-pagination-bg: #fff;
            --bs-pagination-border-color: #e2e8f0;
            --bs-pagination-hover-color: #9a6a12;
            --bs-pagination-hover-bg: rgba(200,145,40,.1);
            --bs-pagination-hover-border-color: rgba(200,145,40,.4);
            --bs-pagination-focus-color: #9a6a12;
            --bs-pagination-focus-bg: rgba(200,145,40,.1);
            --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(200,145,40,.25);
            --bs-pagination-active-color: #07111F;
            --bs-pagination-active-bg: #E5B135;
            --bs-pagination-active-border-color: #E5B135;
            --bs-pagination-disabled-color: #94a3b8;
            --bs-pagination-disabled-bg: #f8fafc;
            --bs-pagination-disabled-border-color: #e2e8f0;
            gap: 6px;
        }
        .pagination .page-link {
            min-width: 34px; text-align: center;
            border-radius: 9px !important;
            font-weight: 700;
        }
        .pagination .page-item.active .page-link {
            background: linear-gradient(135deg, #C89128, #E5B135);
        }

        /* Bootstrap sizes .container from the whole window, not the space
           left beside the 256px sidebar, so pages overflowed to the right
           and were clipped (search boxes, stats cut off). Fit it to the
           content area instead. */
        body.has-sidebar .lux-main .container {
            max-width: 1320px;
            width: 100%;
        }
