/* ==========================================================================
   GOLDCAR12 — Obsidian & Champagne Gold Luxury Dark Edition + Noel 2026
   Full-page dark velvet palette, 3-layer metallic cursor light reflection,
   WCAG 2.1 AA high-contrast surfaces, and responsive 3-tier balance.
   ========================================================================== */

:root {
    color-scheme: dark;
    --gc-gx: -999px;
    --gc-gy: -999px;

    /* Override base light palette with bespoke dark luxury tokens */
    --gc-paper: #080D0B;
    --gc-surface: #111916;
    --gc-ink: #F3EEE2;
    --gc-muted: #A3AEA3;
    --gc-line: rgba(229, 198, 126, 0.15);
    --gc-dark: #06100C;
    --gc-gold: #E5C67E;
    --gc-brass: #D4B062;
    --gc-green: #34D399;
    --gc-score-positive: #34D399;
    --gc-score-negative: #FB7185;

    --gc-xmas-pine-950: #06120D;
    --gc-xmas-pine-900: #0B1D15;
    --gc-xmas-pine-700: #10553B;
    --gc-xmas-gold-300: #FFE6A3;
    --gc-xmas-gold-400: #E5C67E;
    --gc-xmas-gold-600: #B99145;
    --gc-xmas-crimson-600: #A61B31;
    --gc-xmas-crimson-800: #721021;
}

/* Hide holiday-only elements cleanly when Noel auto-ends after season */
html[data-xmas="off"] .xmas-only {
    display: none !important;
}


/* ==========================================================================
   1. PAGE CANVAS & Z-INDEX LAYERING CONTRACT
   ========================================================================== */
body {
    background-color: #080D0B;
    color: var(--gc-ink);
    background-image:
        radial-gradient(ellipse 68% 45% at 12% 8%, rgba(16, 88, 60, 0.22) 0%, transparent 62%),
        radial-gradient(ellipse 56% 42% at 92% 4%, rgba(229, 198, 126, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 44% at 50% 98%, rgba(16, 68, 48, 0.16) 0%, transparent 65%);
    background-attachment: fixed;
}

html[data-xmas="on"] body {
    background-image:
        radial-gradient(ellipse 62% 42% at 88% 2%, rgba(154, 24, 46, 0.17) 0%, transparent 60%),
        radial-gradient(ellipse 64% 46% at 14% 12%, rgba(16, 98, 66, 0.26) 0%, transparent 62%),
        radial-gradient(ellipse 52% 42% at 50% 96%, rgba(229, 198, 126, 0.09) 0%, transparent 64%);
}

::selection {
    background: #E5C67E;
    color: #09100C;
}

.gc-skip {
    z-index: 100;
    background: #131D19;
    color: #FFE6A3;
    border-color: #E5C67E;
}

.gc-topbar { position: relative; z-index: 30; }
#cursorAmbient { z-index: 35; }
.gc-sidebar { z-index: 40; }
.gc-mobile-nav { z-index: 42; }
#modalBaremView, #modalVaultChart { z-index: 50 !important; }
#modalHistory { z-index: 60 !important; }

/* ==========================================================================
   2. FULL-PAGE 3-LAYER CURSOR LIGHT REFLECTION (Obsidian Metallic Sheen)
   ========================================================================== */
#cursorAmbient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 280ms ease;
    background:
        radial-gradient(560px circle at var(--gc-gx) var(--gc-gy),
            rgba(242, 206, 126, 0.13) 0%,
            rgba(229, 198, 126, 0.05) 36%,
            rgba(16, 110, 74, 0.035) 56%,
            transparent 74%);
}

html[data-light="on"].gc-pointer-active #cursorAmbient {
    opacity: 1;
}

.lux-reflect {
    position: relative;
    --lx: -999px;
    --ly: -999px;
}

/* Preserve fixed positioning on the desktop/tablet sidebar */
.gc-sidebar.lux-reflect {
    position: fixed;
    z-index: 40;
}

/* Layer 2: Satin surface light reflection on obsidian cards */
.lux-reflect::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 240ms ease;
    background: radial-gradient(380px circle at var(--lx) var(--ly),
        rgba(247, 223, 152, 0.13) 0%,
        rgba(229, 198, 126, 0.045) 40%,
        transparent 70%);
}

.lux-reflect-dark::before {
    background: radial-gradient(460px circle at var(--lx) var(--ly),
        rgba(255, 234, 168, 0.18) 0%,
        rgba(229, 198, 126, 0.07) 38%,
        rgba(52, 211, 153, 0.04) 58%,
        transparent 74%);
}

.lux-reflect-gold::before {
    background: radial-gradient(360px circle at var(--lx) var(--ly),
        rgba(255, 236, 178, 0.26) 0%,
        rgba(229, 198, 126, 0.10) 42%,
        transparent 72%);
}

/* Replace base goldcar.css .gc-hero:after bar with dedicated .gc-hero-bottom-line */
.gc-hero::after {
    content: none;
}

/* Layer 3: Illuminated 1.5px metallic champagne border glint */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
    .lux-reflect::after,
    .gc-hero.lux-reflect::after,
    .gc-podium-card.lux-reflect::after {
        content: "";
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: inherit;
        padding: 1.5px;
        pointer-events: none;
        z-index: 3;
        opacity: 0;
        transition: opacity 240ms ease;
        background: radial-gradient(300px circle at var(--lx) var(--ly),
            rgba(255, 234, 174, 0.90) 0%,
            rgba(229, 198, 126, 0.38) 40%,
            transparent 72%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
    }

    .lux-reflect-dark::after,
    .gc-hero.lux-reflect-dark::after,
    .gc-podium-card.lux-reflect-dark::after {
        background: radial-gradient(360px circle at var(--lx) var(--ly),
            rgba(255, 238, 184, 0.96) 0%,
            rgba(229, 198, 126, 0.46) 42%,
            transparent 74%);
    }
}

html[data-light="on"].gc-pointer-active .lux-reflect::before,
html[data-light="on"].gc-pointer-active .lux-reflect::after {
    opacity: 1;
}

.gc-hero-bottom-line {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 2px;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(90deg, transparent 0%, rgba(229, 198, 126, 0.72) 50%, transparent 100%);
}

/* Canvas Snowfall Layer */
#snowCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ==========================================================================
   3. FROSTED OBSIDIAN TOPBAR & DISCREET SNOW BUTTON
   ========================================================================== */
.gc-topbar {
    background: rgba(8, 13, 11, 0.84);
    border-bottom: 1px solid rgba(229, 198, 126, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.gc-breadcrumb {
    color: #9AA59B;
}

.gc-breadcrumb strong {
    color: #F5F0E4;
}

.gc-breadcrumb > span {
    color: rgba(229, 198, 126, 0.42);
}

.gc-mobile-brand {
    color: #F5F0E4;
}

.gc-topbar-right {
    gap: 12px;
    color: #A7B2A8;
}

.gc-member-icon {
    background: rgba(229, 198, 126, 0.08);
    border-color: rgba(229, 198, 126, 0.28);
    color: #E5C67E;
}

.gc-ctrl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(229, 198, 126, 0.24);
    background: rgba(255, 255, 255, 0.04);
    color: #E5C67E;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.gc-ctrl-pill:hover {
    background: rgba(229, 198, 126, 0.14);
    border-color: rgba(255, 230, 163, 0.48);
    color: #FFE6A3;
}

.gc-ctrl-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

.gc-ctrl-icon[aria-pressed="false"] {
    opacity: 0.42;
    color: #8C978D;
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .gc-ctrl-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* ==========================================================================
   4. VELVET OBSIDIAN-PINE SIDEBAR + GARLAND + WREATH SEAL
   ========================================================================== */
.gc-sidebar {
    background: linear-gradient(180deg, #06110C 0%, #0A1A13 50%, #050A08 100%);
    border-right: 1px solid rgba(229, 198, 126, 0.16);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.45);
}

.gc-nav-label {
    color: #7E8E81;
}

.gc-nav > a,
.gc-nav > button {
    color: #A8B4A9;
    padding: 0 12px;
    gap: 10px;
    white-space: nowrap;
}

.gc-nav > a:hover,
.gc-nav > button:hover {
    color: #F8F3E6;
    background: rgba(229, 198, 126, 0.08);
    border-color: rgba(229, 198, 126, 0.14);
}

.gc-nav .is-active {
    background: linear-gradient(135deg, rgba(229, 198, 126, 0.16), rgba(229, 198, 126, 0.08));
    color: #FFE6A3;
    border-color: rgba(229, 198, 126, 0.34);
}

.gc-nav .is-active:after {
    background: #FFE6A3;
    box-shadow: 0 0 8px rgba(255, 230, 163, 0.65);
}

.gc-club-mark {
    border-top-color: rgba(229, 198, 126, 0.14);
    border-bottom-color: rgba(229, 198, 126, 0.14);
}

.gc-club-mark > span {
    color: #9BA79C;
}

.gc-sidebar-signature > span {
    color: #E5C67E;
}

.gc-sidebar-signature small {
    color: #88958A;
}

.gc-sb-garland {
    position: absolute;
    inset: 0 0 auto 0;
    height: 26px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(166, 27, 49, 0.26), rgba(15, 76, 53, 0.28));
    border-bottom: 1px solid rgba(229, 198, 126, 0.16);
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.gc-sb-garland svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

html[data-xmas="on"] .gc-sidebar {
    padding-top: 40px;
}

.gc-sb-noel-tag {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(166, 27, 49, 0.58);
    color: #FECDD3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    vertical-align: middle;
}

.gc-club-crest-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-club-crest-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0.94;
}

.gc-sb-wreath {
    position: absolute;
    inset: 0;
    width: 84px;
    height: 84px;
    pointer-events: none;
}

.gc-sb-xmas-pill {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(166, 27, 49, 0.34);
    border: 1px solid rgba(251, 113, 133, 0.36);
    color: #FECDD3;
}

/* ==========================================================================
   5. FULL-WIDTH EXECUTIVE HERO BANNER + 1:1 CIRCULAR BAUBLES + CREST HALO
   ========================================================================== */
.gc-hero {
    min-height: 0;
    padding: 28px 36px;
    gap: 32px;
    background:
        radial-gradient(ellipse 46% 82% at 78% 50%, rgba(229, 198, 126, 0.14) 0%, transparent 66%),
        linear-gradient(128deg, #0D1612 0%, #131E19 52%, #0B110E 100%);
    border: 1px solid rgba(229, 198, 126, 0.28);
    box-shadow: 0 28px 64px -22px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 236, 178, 0.12);
}

html[data-xmas="on"] .gc-hero {
    padding-top: 38px;
    background:
        radial-gradient(ellipse 48% 85% at 78% 48%, rgba(229, 198, 126, 0.20) 0%, transparent 66%),
        radial-gradient(ellipse 48% 76% at 12% 18%, rgba(16, 126, 82, 0.42) 0%, transparent 65%),
        radial-gradient(ellipse 40% 62% at 48% 106%, rgba(166, 27, 49, 0.34) 0%, transparent 64%),
        linear-gradient(128deg, #071912 0%, #0E261C 52%, #181012 100%);
    border-color: rgba(229, 198, 126, 0.38);
}

.gc-hero-copy {
    position: relative;
    z-index: 4;
    flex: 1 1 0;
    min-width: 0;
}

.gc-hero-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gc-noel-countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(166, 27, 49, 0.86), rgba(114, 16, 33, 0.88));
    color: #FFE4E6;
    border: 1px solid rgba(251, 113, 133, 0.45);
}

.gc-hero h1 {
    color: #FFFFFF;
    margin: 8px 0;
}

.gc-hero h1 em {
    color: #F3D58D;
}

.gc-hero-description {
    color: #C7D0C6;
}

.gc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.gc-hero-actions .gc-gold-button {
    margin-top: 0;
    gap: 10px;
    padding: 0 20px;
    background: linear-gradient(135deg, #F5DD9E, #D5AA55);
    color: #111511;
    border-color: rgba(255, 242, 196, 0.56);
    box-shadow: 0 12px 28px -10px rgba(229, 198, 126, 0.55);
}

.gc-hero-actions .gc-gold-button:hover {
    filter: brightness(1.06);
}

.gc-hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid rgba(229, 198, 126, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #F0EAE0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gc-hero-secondary-btn:hover {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(255, 230, 163, 0.55);
    color: #FFE6A3;
}

.gc-cta-short { display: none; }

/* Hero Garland + Pure CSS Circular 1:1 Hanging Baubles */
.gc-hero-garland {
    position: absolute;
    inset: 0 0 auto 0;
    height: 46px;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.gc-hero-garland-wire {
    width: 100%;
    height: 32px;
    display: block;
}

.gc-hero-garland-drops {
    position: absolute;
    inset: 4px 28px auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.bauble-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
}

.bauble-string {
    width: 1px;
    height: 11px;
    background: linear-gradient(180deg, rgba(229, 198, 126, 0.8), rgba(229, 198, 126, 0.3));
}

.bauble-orb-red {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: radial-gradient(circle at 32% 30%, #FDA4AF 0%, #C81E3A 55%, #7F1224 100%);
    box-shadow: 0 0 8px rgba(200, 30, 58, 0.55), inset 0 0 0 1px rgba(247, 223, 152, 0.55);
}

.bauble-orb-gold {
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: radial-gradient(circle at 32% 30%, #FFF7D6 0%, #E5C67E 55%, #9B6A17 100%);
    box-shadow: 0 0 8px rgba(229, 198, 126, 0.55);
}

.x-bulb {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    position: relative;
    z-index: 2;
    animation: gcBulbGlow 2.8s ease-in-out infinite;
}

@keyframes gcBulbGlow {
    0%, 100% { opacity: 0.48; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1.22); }
}

.gc-hero-bg-art {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60%;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
}

.gc-hero-art {
    position: relative;
    z-index: 4;
    width: 172px;
    margin: 0 8px 0 0;
}

.gc-hero-crest-stage {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-hero-crest-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(247, 223, 152, 0.36) 0%, rgba(166, 27, 49, 0.22) 65%, transparent 100%);
    filter: blur(18px);
    pointer-events: none;
}

.gc-hero-wreath {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gc-hero-crest-stage img {
    width: 94px;
    height: 94px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 28px rgba(229, 198, 126, 0.42));
}




/* ==========================================================================
   6. SECTION HEADINGS, STATUS & LOADING (DARK LUXURY)
   ========================================================================== */
.gc-eyebrow {
    color: #C9B077;
}

.gc-section-heading h2 {
    color: #F5F0E4;
}

.gc-data-status {
    color: #A4AFA5;
}

.gc-status-dot {
    background: #6F7B71;
}

.gc-data-status[data-state="ready"] .gc-status-dot {
    background: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}

.gc-data-status[data-state="error"] .gc-status-dot {
    background: #FB7185;
}

.gc-loading {
    color: #B4BFB5;
}

.gc-spinner {
    border-color: rgba(229, 198, 126, 0.22);
    border-top-color: #E5C67E;
}

.gc-data-error:not([hidden]) {
    background: rgba(124, 45, 18, 0.24);
    border-color: rgba(245, 158, 11, 0.38);
    color: #FDE68A;
}

.gc-data-error button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(253, 230, 138, 0.40);
    color: #FEF3C7;
}

/* ==========================================================================
   7. 4-CARD ACTIVITY GRID + CENTURION BLACK-GOLD CARD #2
   ========================================================================== */
.gc-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gc-metric {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 20px 22px;
    border: 1px solid rgba(229, 198, 126, 0.16);
    border-radius: 16px;
    background: linear-gradient(155deg, #131D19 0%, #0D1411 100%);
    box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.07), 0 18px 38px -18px rgba(0, 0, 0, 0.78);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

button.gc-metric:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 198, 126, 0.32);
}

.gc-metric > * {
    position: relative;
    z-index: 4;
}

.gc-metric-label {
    color: #B4BFB4;
}

.gc-metric-label .material-symbols-outlined {
    color: #C9B077;
}

.gc-metric-value strong {
    color: #FFFFFF;
}

.gc-metric-value > span {
    color: #9AA69B;
}

.gc-metric > p {
    color: #9AA59B;
}

.gc-metric > p b {
    color: #F3D58D;
    font-weight: 700;
}

.gc-metric-watermark {
    position: absolute !important;
    right: -6px;
    bottom: -6px;
    width: 60px;
    height: 60px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1 !important;
}

.gc-metric-watermark path,
.gc-metric-watermark circle {
    stroke: #E5C67E;
}

/* Signature Centurion Black-Gold Card #2 */
.gc-metric-gold {
    background: linear-gradient(145deg, #2B2212 0%, #1B160D 56%, #110F0A 100%);
    border-color: rgba(229, 198, 126, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 232, 170, 0.22), 0 20px 44px -18px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.gc-metric-gold:hover {
    border-color: rgba(255, 230, 163, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 232, 170, 0.30), 0 24px 50px -16px rgba(185, 145, 69, 0.28);
}

.gc-metric-ribbon {
    position: absolute !important;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #A61B31 0%, #E5C67E 50%, #15734E 100%);
    pointer-events: none;
    z-index: 5 !important;
}

.gc-metric-gold .gc-metric-label {
    color: #E8CF92;
}

.gc-metric-gold .gc-metric-label .material-symbols-outlined {
    color: #FFE6A3;
}

.gc-metric-gold .gc-metric-value strong {
    color: #FFE6A3;
}

.gc-metric-gold .gc-metric-value > span {
    color: #C8B484;
}

.gc-metric-vault-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #F3D58D;
    margin-top: 2px;
}

.gc-metric-vault-hint .material-symbols-outlined {
    font-size: 15px;
    color: #FFE6A3;
}

/* ==========================================================================
   7B. 7-DAY POSTED TRIPS CHART (#postTrendPanel)
   ========================================================================== */
.gc-trend-panel {
    margin-top: 16px;
    padding: 22px 24px 20px;
    border-radius: 16px;
    --trend-top-h: 26px;
    --trend-bar-h: 128px;
}

.gc-trend-head {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.gc-trend-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #F5F0E4;
}

.gc-trend-kpis {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gc-trend-kpi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 12px;
    color: #A9B5AA;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(229, 198, 126, 0.16);
    font-variant-numeric: tabular-nums;
}

.gc-trend-kpi b {
    color: #F5F0E4;
    font-weight: 700;
}

.gc-trend-kpi-peak {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(229, 198, 126, 0.34);
    color: #E8CF92;
}

.gc-trend-kpi-peak b {
    color: #FFE6A3;
}

.gc-trend-chart {
    position: relative;
    z-index: 4;
}

.gc-trend-plot {
    position: relative;
    padding-top: 4px;
}

.gc-trend-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(4px + var(--trend-top-h));
    height: var(--trend-bar-h);
    pointer-events: none;
    z-index: 1;
}

.gc-trend-gridlines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gc-trend-gridlines span {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(229, 198, 126, 0.09);
}

.gc-trend-gridlines span:last-child {
    border-top-color: rgba(229, 198, 126, 0.20);
}

.gc-trend-avg-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(243, 213, 141, 0.48);
    z-index: 2;
}

.gc-trend-avg-line span {
    position: absolute;
    right: 0;
    top: -19px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #F3D58D;
    background: rgba(13, 20, 17, 0.92);
    border: 1px solid rgba(229, 198, 126, 0.24);
}

.gc-trend-bars {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.gc-trend-col {
    display: grid;
    grid-template-rows: var(--trend-top-h) var(--trend-bar-h) auto;
    justify-items: center;
    min-width: 0;
}

.gc-trend-val {
    align-self: end;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #D5DDD4;
    transition: color 180ms ease, transform 180ms ease;
}

.gc-trend-track {
    width: min(44px, 78%);
    height: 100%;
    display: flex;
    align-items: flex-end;
    border-radius: 10px 10px 4px 4px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(229, 198, 126, 0.08);
    overflow: hidden;
    padding: 2px 2px 0;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.gc-trend-fill {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #E8CA81 0%, #B88B3A 68%, rgba(184, 139, 58, 0.34) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.55);
    transition: filter 180ms ease, transform 180ms ease;
}

.gc-trend-col.is-peak .gc-trend-val {
    color: #FFE6A3;
}

.gc-trend-col.is-peak .gc-trend-fill {
    background: linear-gradient(180deg, #FFE8A8 0%, #DFB357 58%, rgba(185, 138, 46, 0.45) 100%);
    box-shadow: 0 0 18px rgba(229, 198, 126, 0.35), inset 0 1px 0 rgba(255, 252, 232, 0.85);
}

.gc-trend-col.is-today .gc-trend-val {
    color: #6EE7B7;
}

.gc-trend-col.is-today .gc-trend-track {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(52, 211, 153, 0.04);
}

.gc-trend-col.is-today .gc-trend-fill {
    background: linear-gradient(180deg, #6EE7B7 0%, #10B981 62%, rgba(16, 185, 129, 0.30) 100%);
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.30), inset 0 1px 0 rgba(209, 250, 229, 0.72);
}

.gc-trend-col:hover .gc-trend-track {
    border-color: rgba(229, 198, 126, 0.36);
    background: rgba(229, 198, 126, 0.06);
}

.gc-trend-col:hover .gc-trend-fill {
    filter: brightness(1.1);
}

.gc-trend-col:hover .gc-trend-val {
    color: #FFE6A3;
    transform: translateY(-1px);
}

.gc-trend-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    gap: 2px;
}

.gc-trend-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #C7D1C6;
}

.gc-trend-day {
    font-size: 11px;
    font-weight: 500;
    color: #8E9A8F;
}

.gc-trend-col.is-today .gc-trend-date {
    color: #6EE7B7;
}

.gc-trend-col.is-today .gc-trend-day {
    color: #34D399;
    font-weight: 700;
}

.gc-trend-col.is-zero .gc-trend-val {
    color: #7D897E;
}

.gc-trend-col.is-zero .gc-trend-fill {
    opacity: 0.25;
    box-shadow: none;
}

/* ==========================================================================
   8. CHRISTMAS GREETING STRIP & ANNOUNCEMENTS (DARK LUXURY)
   ========================================================================== */
#xmasGreetingStrip {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(229, 198, 126, 0.36);
    background: linear-gradient(115deg, #560F1C 0%, #741526 45%, #0E3424 100%);
    color: #FFFFFF;
    box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 236, 178, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.gc-xmas-strip-body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    position: relative;
    z-index: 4;
}

.gc-xmas-strip-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 240, 184, 0.14);
    border: 1px solid rgba(255, 240, 184, 0.32);
    color: #FFE6A3;
}

.gc-xmas-strip-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.gc-xmas-strip-tag {
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(255, 228, 158, 0.20);
    color: #FFE6A3;
}

.gc-xmas-strip-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #FECDD3;
}

.gc-xmas-strip-text {
    font-size: 13px;
    line-height: 1.5;
    color: #FFFFFF;
}

.gc-xmas-strip-badge {
    position: relative;
    z-index: 4;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(8, 22, 16, 0.62);
    border: 1px solid rgba(229, 198, 126, 0.36);
    color: #FFE6A3;
}

/* Dark obsidian styling for dynamic Firestore announcements */
#announcementBanner > div {
    background: rgba(17, 25, 22, 0.94) !important;
    border-color: rgba(229, 198, 126, 0.30) !important;
    color: #F3EEE2 !important;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.75);
}

#announcementBanner h4,
#announcementBanner strong {
    color: #FFE6A3 !important;
}

#announcementBanner p,
#announcementBanner span {
    color: #D2DAD1;
}

/* ==========================================================================
   9. DARK OBSIDIAN PANELS, PODIUM & LEADERBOARD TABLE
   ========================================================================== */
.gc-panel {
    background: linear-gradient(180deg, #111A16 0%, #0D1411 100%);
    border: 1px solid rgba(229, 198, 126, 0.16);
    box-shadow: 0 24px 52px -24px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 240, 200, 0.06);
}

.gc-outline-button {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(229, 198, 126, 0.22);
    color: #D5DDD4;
}

.gc-outline-button:hover:not(:disabled) {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(229, 198, 126, 0.44);
    color: #FFE6A3;
}

.gc-outline-button[aria-pressed="true"] {
    background: rgba(229, 198, 126, 0.20);
    border-color: #E5C67E;
    color: #FFE6A3;
}

/* Month Switch & Filter Chips */
.gc-filter-chips button,
.gc-month-switch button {
    background: #111916;
    border-color: rgba(229, 198, 126, 0.18);
    color: #C7D1C6;
}

.gc-filter-chips button:hover,
.gc-month-switch button:hover {
    background: #192520;
    border-color: rgba(229, 198, 126, 0.42);
    color: #FFE6A3;
}

.gc-filter-chips button[aria-pressed="true"],
.gc-month-switch button[aria-pressed="true"] {
    background: linear-gradient(135deg, #EDD392, #C99D4A);
    color: #111511;
    border-color: #FFE6A3;
    box-shadow: 0 6px 18px -8px rgba(229, 198, 126, 0.55);
}

/* Ranking Panel & Luxury Obsidian Podium */
.gc-ranking-heading {
    color: #A4AFA5;
}

.gc-ranking-heading h3 {
    color: #F5F0E4;
}

.gc-ranking-heading .material-symbols-outlined {
    color: #E5C67E;
}

.gc-podium-card {
    background: linear-gradient(155deg, #1B2420 0%, #111815 100%);
    border-color: rgba(229, 198, 126, 0.22);
    box-shadow: 0 10px 0 -2px #070B09, 0 24px 32px -20px rgba(0, 0, 0, 0.85);
    color: #F3EEE2;
}

.gc-podium-card:hover {
    background: linear-gradient(155deg, #222D28 0%, #151F1B 100%);
    border-color: rgba(229, 198, 126, 0.44);
}

.gc-podium-card::after {
    border-top-color: rgba(229, 198, 126, 0.16);
}

.gc-podium-rank,
.gc-podium-unit {
    color: #A6B2A6;
}

.gc-podium-name {
    color: #F5F0E4;
}

.gc-podium-number {
    color: #E5C67E;
}

.gc-podium-card > .gc-avatar {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(229, 198, 126, 0.34);
    color: #FFE6A3;
}

.gc-place-1 {
    background: linear-gradient(148deg, #252014 0%, #15251D 56%, #1B150E 100%) !important;
    border-color: rgba(247, 223, 152, 0.54);
    box-shadow: 0 12px 0 -2px #6D5424, 0 28px 42px -18px rgba(0, 0, 0, 0.90);
}

html[data-xmas="on"] .gc-place-1 {
    background: linear-gradient(150deg, #0D2D20 0%, #17402F 54%, #3D131D 100%) !important;
    border-color: rgba(247, 223, 152, 0.60);
}

.gc-place-1:hover {
    border-color: #FFE6A3;
}

.gc-place-1 .gc-podium-number,
.gc-place-1 .gc-podium-rank {
    color: #FFE6A3;
}

.gc-place-1 .gc-podium-name {
    color: #FFFFFF;
}

.gc-place-1 .gc-podium-unit {
    color: #C7D4C9;
}

.gc-place-1 > .gc-avatar {
    background: linear-gradient(135deg, rgba(229, 198, 126, 0.28), rgba(166, 27, 49, 0.24));
    border-color: rgba(255, 230, 163, 0.56);
    color: #FFE6A3;
}

.gc-ranking-row {
    border-bottom-color: rgba(229, 198, 126, 0.10);
    color: #E6E1D5;
}

.gc-ranking-row:hover {
    background: rgba(229, 198, 126, 0.06);
    color: #FFE6A3;
}

.gc-ranking-row > span:first-child {
    color: #919D91;
}

.gc-ranking-row > b {
    color: #F3D58D;
}

.gc-ranking-footer {
    border-top-color: rgba(229, 198, 126, 0.12);
    color: #95A196;
}

/* Drivers Table Controls & Rows */
.gc-count {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(229, 198, 126, 0.28);
    color: #FFE6A3;
}

.gc-table-note,
.gc-field > label,
.gc-field-label {
    color: #A5B0A5;
}

.gc-search > .material-symbols-outlined {
    color: #93A094;
}

.gc-search input {
    background: #090F0C;
    border-color: rgba(229, 198, 126, 0.20);
    color: #F5F0E4;
}

.gc-search input::placeholder {
    color: #7D897E;
}

.gc-search input:focus {
    border-color: #E5C67E;
    background: #0C1410;
}

.gc-search kbd {
    background: #141E1A;
    border-color: rgba(229, 198, 126, 0.22);
    color: #C2CBC1;
}

.gc-table-scroll {
    scrollbar-color: rgba(229, 198, 126, 0.30) transparent;
}

.gc-table thead {
    background: #141E1A;
}

.gc-table th {
    border-top-color: rgba(229, 198, 126, 0.14);
    border-bottom-color: rgba(229, 198, 126, 0.14);
    color: #AEB8AD;
}

.gc-table td {
    border-bottom-color: rgba(229, 198, 126, 0.08);
}

.gc-table tbody tr:hover,
.gc-table tbody tr:focus-within {
    background: rgba(229, 198, 126, 0.055);
}

.gc-row-index {
    color: #8F9B90;
}

.gc-avatar {
    background: #17221D;
    border-color: rgba(229, 198, 126, 0.24);
    color: #E5C67E;
}

.gc-driver-name {
    color: #F5F0E4;
}

.gc-driver-name:hover {
    color: #FFE6A3;
}

.gc-driver-meta {
    color: #99A59A;
}

.gc-driver-meta b {
    color: #EDD392;
}

.gc-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 6px;
    margin-bottom: 0;
    vertical-align: middle;
    border-radius: 9999px;
    background: linear-gradient(145deg, rgba(245, 212, 122, 0.22), rgba(185, 138, 46, 0.14));
    border: 1px solid rgba(255, 230, 163, 0.48);
    color: #FFE494;
    box-shadow: 0 0 12px rgba(229, 198, 126, 0.22), inset 0 1px 0 rgba(255, 245, 210, 0.32);
}

.gc-key-icon {
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 228, 148, 0.45));
}

.gc-key-silver {
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.20), rgba(148, 163, 184, 0.12));
    border-color: rgba(226, 232, 240, 0.44);
    color: #E2E8F0;
    box-shadow: 0 0 10px rgba(203, 213, 225, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.gc-key-silver .gc-key-icon {
    filter: drop-shadow(0 0 4px rgba(226, 232, 240, 0.35));
}

.gc-contact-plate {
    background: #0B110E;
    border-color: rgba(229, 198, 126, 0.20);
    color: #DEE5DC;
}

.gc-contact-phone {
    color: #99A59A;
}

.gc-points-positive {
    color: #34D399 !important;
}

.gc-points-negative {
    color: #FB7185 !important;
}

.gc-points-zero {
    color: #9BA69B !important;
}

.gc-points-trips {
    color: #F3D58D !important;
}

.gc-points-unit {
    color: #94A095;
}



.gc-table-footer {
    border-top-color: rgba(229, 198, 126, 0.12);
    color: #95A196;
}

.gc-empty {
    color: #A4AFA5;
}

.gc-empty strong {
    color: #F5F0E4;
}

.gc-empty button {
    background: rgba(229, 198, 126, 0.12);
    border-color: rgba(229, 198, 126, 0.36);
    color: #FFE6A3;
}

/* Footer */
.gc-footer {
    border-top: 1px solid rgba(229, 198, 126, 0.10);
    margin-top: 12px;
    color: #94A095;
}

.gc-footer > span {
    color: #C9B483;
}

.gc-footer button {
    color: #B4BFB4;
}

.gc-footer button:hover {
    color: #FFE6A3;
}

/* ==========================================================================
   10. DARK OBSIDIAN MODALS & DRAWERS (#modalVaultChart, #modalHistory, #modalBaremView)
   ========================================================================== */
.gc-modal > div:first-child {
    background: rgba(4, 8, 6, 0.78);
    backdrop-filter: blur(8px);
}

/* Centered Vault 7-Day Modal Dialog */
#modalVaultChart .gc-vault-modal-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

#modalVaultChart .gc-vault-modal-card {
    pointer-events: auto;
    width: min(520px, 100%);
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 22px;
    padding: 28px;
    color: #F4EAD2;
    border: 1px solid rgba(229, 198, 126, 0.42);
    background: linear-gradient(135deg, #10241C 0%, #141C17 55%, #231C11 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 236, 178, 0.22);
}

#modalVaultChart .gc-vault-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#modalVaultChart .gc-vault-modal-head h3 {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

#modalVaultChart .gc-vault-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(229, 198, 126, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #F4EAD2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#modalVaultChart .gc-vault-close:hover {
    background: rgba(229, 198, 126, 0.16);
}

/* Driver History Drawer (#modalHistory) — Obsidian Dark */
#modalHistory .gc-drawer-panel {
    background: #0D1411;
    border-left: 1px solid rgba(229, 198, 126, 0.18);
    color: #F3EEE2;
}

#modalHistory .gc-drawer-panel > div:first-child {
    background: #131D18 !important;
    border-bottom-color: rgba(229, 198, 126, 0.14) !important;
}

#modalHistory .gc-drawer-panel h3 {
    color: #F5F0E4 !important;
}

#modalHistory .gold-gradient-text {
    color: #FFE6A3 !important;
}

#modalHistory .gc-drawer-panel p {
    color: #9FA99F !important;
}

#modalHistory .gc-drawer-panel > div:first-child button {
    color: #C8B484 !important;
}

#modalHistory .gc-drawer-panel > div:first-child button:hover {
    background: rgba(229, 198, 126, 0.14) !important;
    color: #FFE6A3 !important;
}

#modalHistory .gc-profile-balance small {
    color: #9DA89D;
}

#modalHistory .gc-profile-chart {
    background: #131D19;
    border-color: rgba(229, 198, 126, 0.16);
}

#modalHistory .gc-profile-chart-title h4,
#modalHistory .gc-bar-column b {
    color: #F5F0E4;
}

#modalHistory .gc-profile-chart-title > span,
#modalHistory .gc-profile-chart > p,
#modalHistory .gc-bar-column > span,
#modalHistory .gc-journal-note {
    color: #9CA79C;
}

#modalHistory .gc-bar-track {
    background: #090F0C;
}

#modalHistory .gc-bar-track span {
    background: linear-gradient(180deg, #F5DD9E, #B98C39);
}

#modalHistory .gc-journal-title {
    color: #F5F0E4;
}

#histSummaryBanner {
    background: rgba(229, 198, 126, 0.08) !important;
    border-bottom-color: rgba(229, 198, 126, 0.18) !important;
    color: #E8E3D7;
}

#histSummaryBanner .bg-surface {
    background: #0B110E !important;
    border-color: rgba(229, 198, 126, 0.24) !important;
}

#histSummaryBanner .text-on-surface-variant {
    color: #B2BCB1 !important;
}

#histSummaryBanner .text-amber-800 {
    color: #F3D58D !important;
}

#histSummaryBanner .text-slate-500 {
    color: #9AA59B !important;
}

#histSummaryBanner .text-slate-300,
#histSummaryBanner .text-outline-variant {
    color: rgba(229, 198, 126, 0.34) !important;
}

#modalHistory table thead {
    background: rgba(19, 29, 24, 0.96) !important;
    border-bottom-color: rgba(229, 198, 126, 0.16) !important;
    color: #AEB8AD !important;
}

#historyList {
    border-color: rgba(229, 198, 126, 0.08) !important;
}

#historyList tr {
    border-color: rgba(229, 198, 126, 0.08) !important;
}

#historyList tr:hover {
    background: rgba(229, 198, 126, 0.05) !important;
}

#historyList td:first-child {
    color: #9AA59B !important;
}

#historyList td:nth-child(2) {
    color: #ECE7DB !important;
}

#historyList .text-emerald-700 {
    color: #34D399 !important;
}

#historyList .text-tertiary {
    color: #7DD3FC !important;
}

#historyList span[class*="gc-points-"] {
    border-color: rgba(229, 198, 126, 0.20) !important;
    background: rgba(255, 255, 255, 0.03);
}

/* Rules Modal (#modalBaremView) — Obsidian Dark High-Contrast */
#modalBaremView > div.relative > div {
    background: #0E1512 !important;
    border-color: rgba(229, 198, 126, 0.24) !important;
    color: #F3EEE2;
}

#modalBaremView > div.relative > div > div:first-child {
    background: linear-gradient(135deg, #0D241A, #151E19) !important;
    border-bottom: 1px solid rgba(229, 198, 126, 0.18) !important;
}

#modalBaremView > div.relative > div > div:first-child h3 {
    color: #FFE6A3 !important;
}

#modalBaremView > div.relative > div > div:first-child p {
    color: #C3CEC3 !important;
}

#modalBaremView > div.relative > div > div:first-child .text-amber-700 {
    color: #FFE6A3 !important;
}

#modalBaremView .md\:hidden,
#modalBaremView .md\:flex {
    background: #121B17 !important;
    border-color: rgba(229, 198, 126, 0.14) !important;
}

/* Brighten desktop sidebar group labels (Nội quy / Vi phạm / Tính điểm) */
#modalBaremView .text-amber-800 {
    color: #F5D78E !important;
}

#modalBaremView .text-rose-600 {
    color: #FDA4AF !important;
}

#modalBaremView .text-sky-600 {
    color: #7DD3FC !important;
}

#modalBaremView .rules-tab-btn.active,
#modalBaremView .rules-sidebar-btn.active {
    background: rgba(229, 198, 126, 0.20) !important;
    color: #FFE6A3 !important;
    border-color: rgba(229, 198, 126, 0.46) !important;
}

#modalBaremView .rules-tab-btn:not(.active),
#modalBaremView .rules-sidebar-btn:not(.active) {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #C7D1C6 !important;
}

#modalBaremView .rules-sidebar-btn:not(.active):hover,
#modalBaremView .rules-tab-btn:not(.active):hover {
    background: rgba(229, 198, 126, 0.10) !important;
    color: #FFFFFF !important;
}

#rulesContentArea {
    background: #0B110E !important;
    color: #EAE5D9;
}

#rulePointValueBanner {
    background: rgba(229, 198, 126, 0.12) !important;
    border-color: rgba(229, 198, 126, 0.34) !important;
}

#rulePointValueBanner .text-amber-700,
#rulePointValueBanner h4 {
    color: #FFE6A3 !important;
}

#driverPointValueDisplay {
    color: #FFFFFF !important;
}

#rulesContentInner {
    color: #E6E1D5;
}

/* Section headings, accordion titles & route titles (fix dark-on-dark .text-on-surface) */
#rulesContentInner h3 {
    font-size: 20px;
    font-weight: 700;
    color: #FFE6A3 !important;
    border-bottom-color: rgba(229, 198, 126, 0.24) !important;
}

#rulesContentInner h4 {
    color: #FFE6A3 !important;
    border-left-color: #E5C67E !important;
}

#rulesContentInner h5,
#rulesContentInner .text-secondary {
    color: #6EE7B7 !important;
    font-weight: 700;
}

#rulesContentInner .text-on-surface {
    color: #F7F2E7 !important;
}

#rulesContentInner .text-on-surface-variant {
    color: #D2DAD1 !important;
}

#rulesContentInner .text-primary {
    color: #FFE6A3 !important;
}

#rulesContentInner .text-error {
    color: #FDA4AF !important;
}

#rulesContentInner .bg-surface {
    background: #111A16 !important;
}

#rulesContentInner .bg-surface-container-low {
    background: #17231E !important;
}

#rulesContentInner .bg-surface-container-lowest {
    background: #131E19 !important;
}

#rulesContentInner button {
    color: #F7F2E7 !important;
    text-align: left;
}

#rulesContentInner button:hover {
    background: #1B2923 !important;
}

#rulesContentInner button .material-symbols-outlined {
    color: #E5C67E !important;
}

#rulesContentInner table {
    color: #EBE6DA;
}

#rulesContentInner thead {
    background: #1A2822 !important;
}

#rulesContentInner th {
    color: #FFE6A3 !important;
    font-weight: 700;
    background: #1A2822 !important;
}

#rulesContentInner td {
    color: #E8E3D8;
}

#rulesContentInner tbody tr:hover {
    background: rgba(229, 198, 126, 0.08) !important;
}

#rulesContentInner .bg-error-container {
    background: rgba(159, 18, 57, 0.24) !important;
    border: 1px solid rgba(251, 113, 133, 0.36);
    color: #FFE4E6 !important;
}

#rulesContentInner .border-outline-variant,
#rulesContentInner [class*="border-outline-variant"] {
    border-color: rgba(229, 198, 126, 0.20) !important;
}

#rulesContentInner .badge-danger {
    background: rgba(225, 29, 72, 0.26);
    color: #FECDD3;
}

#rulesContentInner .badge-warning {
    background: rgba(217, 119, 6, 0.28);
    color: #FEF08A;
}

#rulesContentInner .badge-success {
    background: rgba(16, 185, 129, 0.26);
    color: #A7F3D0;
}

#rulesContentInner .badge-info {
    background: rgba(14, 165, 233, 0.26);
    color: #BAE6FD;
}

/* ==========================================================================
   11. RESPONSIVE RULES (Desktop / Tablet 641-960px / Mobile <= 640px)
   ========================================================================== */
@media (max-width: 1279px) {
    .gc-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .gc-topbar-right {
        gap: 10px;
    }
    .gc-member-icon {
        display: none;
    }
}

/* Keep compact 76px Tablet icon-rail & Hero balanced on 641-960px */
@media (max-width: 960px) and (min-width: 768px) {
    .gc-hero {
        padding: 28px 26px;
        gap: 20px;
    }
    .gc-hero-art {
        width: 184px;
        margin-right: 12px;
    }
    .gc-hero-crest-stage {
        width: 128px;
        height: 128px;
    }
    .gc-hero-crest-stage img {
        width: 94px;
        height: 94px;
    }
    .gc-noel-countdown {
        font-size: 11px;
        padding: 4px 10px;
    }
    .gc-hero-actions {
        gap: 10px;
    }
    .gc-hero-actions .gc-gold-button,
    .gc-hero-secondary-btn {
        padding: 0 14px;
        font-size: 12px;
    }
}

@media (max-width: 900px) and (min-width: 641px) {
    .gc-sb-garland,
    .gc-sb-noel-tag {
        display: none !important;
    }
    html[data-xmas="on"] .gc-sidebar {
        padding-top: 24px;
    }
    .gc-nav > a,
    .gc-nav > button {
        padding: 0;
    }
}

/* The mobile masthead already carries the crest. */
@media (max-width: 767px) {
    .gc-hero {
        padding: 18px 16px;
    }
    html[data-xmas="on"] .gc-hero {
        padding-top: 30px;
        background:
            radial-gradient(ellipse 65% 70% at 50% 20%, rgba(229, 198, 126, 0.18) 0%, transparent 65%),
            radial-gradient(ellipse 65% 60% at 15% 15%, rgba(16, 126, 82, 0.42) 0%, transparent 65%),
            radial-gradient(ellipse 55% 50% at 50% 105%, rgba(166, 27, 49, 0.34) 0%, transparent 64%),
            linear-gradient(155deg, #071912 0%, #0E261C 52%, #181012 100%);
    }
    .gc-hero-art {
        display: none;
    }
    .gc-hero h1 {
        font-size: 28px;
        letter-spacing: -0.9px;
        margin: 10px 0 8px;
    }
    .gc-hero-description {
        font-size: 13px;
        max-width: 34ch;
        margin: 0;
    }
    .gc-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 16px;
    }
    .gc-hero-actions .gc-gold-button,
    .gc-hero-secondary-btn {
        width: 100%;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 10px;
    }
    .gc-hero-garland-drops {
        inset: 4px 16px auto;
    }
    .gc-bauble-desktop-only {
        display: none;
    }
    .gc-xmas-strip-badge {
        display: none;
    }
}

@media (max-width: 420px) {
    .gc-cta-full { display: none; }
    .gc-cta-short { display: inline; }
}

/* Mobile <= 640px Balance Lock + Dark Frosted Mobile Bottom Nav */
@media (max-width: 640px) {
    .gc-topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 0 14px;
        background: rgba(8, 13, 11, 0.90);
    }
    .gc-topbar-right #todayLabel {
        display: none;
    }
    .gc-main {
        padding: 16px 14px calc(88px + env(safe-area-inset-bottom));
    }
    .gc-metrics,
    .gc-metrics:has(.gc-number-long) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .gc-metric {
        padding: 14px 13px !important;
        border-radius: 14px;
    }
    .gc-metric-label {
        font-size: 12px !important;
        min-height: 0;
    }
    .gc-metric-label .material-symbols-outlined {
        display: inline-block !important;
        font-size: 17px;
    }
    .gc-metric-value {
        margin: 10px 0 6px !important;
        gap: 4px !important;
    }
    .gc-metric-value strong {
        font-size: 24px !important;
        letter-spacing: -0.6px !important;
    }
    .gc-metric-value strong.gc-number-long {
        font-size: clamp(16px, 4.6vw, 20px) !important;
    }
    .gc-metric > p {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        white-space: normal;
    }
    .gc-metric-watermark {
        width: 46px;
        height: 46px;
    }
    #xmasGreetingStrip {
        padding: 14px;
    }
    .gc-trend-panel {
        padding: 16px 14px 14px;
        --trend-top-h: 22px;
        --trend-bar-h: 102px;
    }
    .gc-trend-head {
        margin-bottom: 14px;
    }
    .gc-trend-head h3 {
        font-size: 15px;
    }
    .gc-trend-kpi {
        font-size: 11px;
        padding: 4px 9px;
    }
    .gc-trend-bars {
        gap: 6px;
    }
    .gc-trend-val {
        font-size: 11px;
    }
    .gc-trend-track {
        width: 100%;
        max-width: 34px;
        border-radius: 7px 7px 3px 3px;
    }
    .gc-trend-date {
        font-size: 10px;
    }
    .gc-trend-day {
        font-size: 10px;
    }
    .gc-trend-avg-line span {
        display: none;
    }
    .gc-search kbd {
        display: none;
    }
    #modalVaultChart .gc-vault-modal-card {
        padding: 20px;
    }
    .gc-mobile-nav {
        background: rgba(8, 14, 11, 0.94);
        border-top: 1px solid rgba(229, 198, 126, 0.18);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .gc-mobile-nav > a,
    .gc-mobile-nav > button {
        color: #97A398;
    }
    .gc-mobile-nav .is-active {
        background: rgba(229, 198, 126, 0.16);
        color: #FFE6A3;
    }
    .gc-nav a:active,
    .gc-nav button:active,
    .gc-mobile-nav a:active,
    .gc-mobile-nav button:active {
        background: rgba(229, 198, 126, 0.24);
        color: #FFE6A3;
    }
}

/* ==========================================================================
   12. REDUCED MOTION ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .x-bulb {
        animation: none !important;
        opacity: 0.9;
    }
    #cursorAmbient,
    #snowCanvas,
    .lux-reflect::before,
    .lux-reflect::after {
        display: none !important;
    }
    button.gc-metric:hover {
        transform: none;
    }
}
