    :root {
        /* Glassmorphism Variables */
        --glass-bg: rgba(255, 255, 255, 0.6);
        --glass-border: rgba(255, 255, 255, 0.4);
        --text: #0f172a;
        --dim: #64748b;
        --green: #10b981;
        --red: #ef4444;
        --blue: #3b82f6;
        --blue-2: #2980b9;
        --border: rgba(226, 232, 240, 0.8);
        --header-accent: rgba(241, 245, 249, 0.7);
        --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        /* --card: #ffffff; */
        --card: #ffffffed;
    }

    body.dark-mode {
        --glass-bg: rgba(15, 23, 42, 0.7);
        --glass-border: rgba(255, 255, 255, 0.1);
        --text: #eaecef;
        --dim: #94a3b8;
        --green: #02c076;
        --red: #f84960;
        --blue: #3b82f6;
        --blue-2: #2980b9;
        --border: rgba(30, 41, 59, 0.7);
        --header-accent: rgba(30, 41, 59, 0.5);
        /* --card: #161a1e; */
        --card: #161a1eed;
    }

    /* --- 1. DYNAMIC BACKGROUND ANIMATIONS --- */
    body {
        font-family: 'Inter', -apple-system, sans-serif;
        background: #f8fafc;
        color: var(--text);
        margin: 0;
        /* padding: 20px; */
        min-height: 100vh;
        overflow-x: hidden;
        position: relative;
    }

    body.dark-mode { background: #0b0e11; }

    /* BUG FIX: Added a separate layer for Global Screen Pulse */
    body::before {
        content: "";
        position: fixed;
        top: 50%; left: 50%;
        width: 150vw; height: 150vh;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, var(--blue) 0%, transparent 50%);
        opacity: 0;
        z-index: -2;
        pointer-events: none;
        animation: global-screen-pulse 8s infinite ease-out;
    }

    /* Floating Blobs */
    body::after {
        content: "";
        position: fixed;
        width: 500px; height: 500px;
        background: var(--green);
        bottom: -10%; right: -10%;
        border-radius: 50%;
        filter: blur(80px);
        z-index: -1;
        opacity: 0.2;
        animation: float 20s infinite alternate;
    }

    @keyframes global-screen-pulse {
        0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
        50% { opacity: 0.1; }
        100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    }

    @keyframes float {
        0% { transform: translate(0, 0) scale(1); }
        100% { transform: translate(-20vw, -20vh) scale(1.2); }
    }

    /* --- 2. GLOBAL GLASS CONTAINERS --- */
    /* .formula-card,  */
    /* .callout-box, */
    .container, .stat-card, .chart-box, .poll-container, 
    .methodology-container, .terminal-header, .stats-bar {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid var(--glass-border) !important;
        box-shadow: var(--shadow);
        border-radius: 20px;
    }

    .container { max-width: 1600px; margin: 0 auto; padding: 30px; }

    /* --- 3. TABLE & WATERMARK --- */
    #capture-zone { position: relative; overflow: hidden; background: transparent !important; }
    table { width: 100%; border-collapse: separate; border-spacing: 2px; position: relative; z-index: 2; }
    th, td { 
        /* padding: 10px 4px; */
        /* padding: 7px 4px; */
        padding: 4px 4px;
        text-align: center;
        border-radius: 4px;
        font-family: 'JetBrains Mono', monospace;
     }

    .row-label, .hdr-month, .hdr-stats { background: var(--header-accent) !important; font-weight: 800; border: 1px solid var(--border); }

    /* Watermark Logic */
    #capture-zone-watermark {
        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 600px; opacity: 0.05; pointer-events: none; z-index: 1;
    }

    /* --- 4. THE FIXED DOT PULSE (BUG FIXED) --- */
    .dot {
        width: 10px; height: 10px;
        background-color: var(--green);
        border-radius: 50%;
        position: relative; /* Crucial fix: confines the ripple */
        display: inline-block;
    }

    .dot::after {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: var(--green);
        border-radius: 50%;
        z-index: -1;
        animation: pulse-small-dot 2s infinite ease-out;
    }

    @keyframes pulse-small-dot {
        0% { transform: scale(1); opacity: 0.8; }
        100% { transform: scale(3.5); opacity: 0; }
    }

    /* --- 5. OTHER ANIMATIONS --- */
    #ticker-scroll { display: flex; animation: scroll-news 80s linear infinite; }
    @keyframes scroll-news { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    .poll-container { 
        position: fixed; bottom: 20px; right: 20px; width: 320px; 
        animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    }
    @keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

    .live-cell-cycle-table { 
        animation: live-pulse-cycle-table 2s infinite ease-in-out; 
        border: 2px solid var(--green) !important; 
    }
    @keyframes live-pulse-cycle-table { 
        0%, 100% { box-shadow: inset 0 0 0 2px rgba(2, 192, 118, 0.2); } 
        50% { box-shadow: inset 0 0 0 2px rgba(2, 192, 118, 0.7); } 
    }

    /* --- 6. UI ELEMENTS --- */
    .btn:hover { background: var(--blue); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .extreme-fear-glow { box-shadow: 0 0 25px rgba(255, 49, 49, 0.5); border: 1px solid #ff3131 !important; }
    .extreme-greed-glow { box-shadow: 0 0 25px rgba(2, 192, 118, 0.5); border: 1px solid #02c076 !important; }