/* /site/style.css */
:root {
    --terminal-green: #00ff41;
    --bunker-border: #1a3a1a;
    --bg-black: #050505;
    --accent-glow: rgba(0, 255, 65, 0.2);
    --tag-red: #ff4b4b;
    --table-green: #1a4a1a;
    --table-blue: #1a2a4a;
    --table-orange: #4a351a;
    --table-red: #4a1a1a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-black);
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* NAVIGATION */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--bunker-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === LOGO FIX (MONTY wit / LOOP groen) === */
.logo {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: bold;
    letter-spacing: 3px;
}

.logo span { 
    color: var(--terminal-green); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.nav-links a {
    color: var(--terminal-green);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

/* HERO & LORE SECTION */
.section-lore {
    padding: 140px 20px 80px;
    background: radial-gradient(circle at top, #0d1a0d 0%, var(--bg-black) 70%);
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.monty-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monty-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--terminal-green);
    box-shadow: 0 0 30px var(--accent-glow);
    margin-bottom: 25px;
    object-fit: cover;
}

.status-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    padding: 4px 10px;
    font-weight: bold;
    border-radius: 2px;
    letter-spacing: 1px;
}

.tag-live {
    background: var(--terminal-green);
    color: #000;
}

.tag-grind {
    background: var(--tag-red);
    color: #fff;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.main-title span {
    color: var(--terminal-green);
}

.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0 60px;
}

.btn {
    padding: 15px 35px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background: var(--terminal-green);
    color: #000;
    border: 2px solid var(--terminal-green);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--terminal-green);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.lore-box {
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.lore-text {
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.highlight {
    color: var(--terminal-green);
}

.island-files-img {
    width: 100%;
    max-width: 700px;
    border: 1px solid var(--bunker-border);
    margin: 30px auto;
    display: block;
}

.lore-quote {
    font-style: italic;
    color: var(--terminal-green);
    background: rgba(0, 255, 65, 0.05);
    padding: 25px;
    border-left: 2px solid var(--terminal-green);
    margin: 40px 0;
}

.section-terminal {
    padding: 100px 20px;
    background: radial-gradient(circle at bottom, #0d1a0d 0%, var(--bg-black) 70%);
    text-align: center;
}

/* ✅ NEW: smoother section transition (Terminal → How It Works) */
.section-terminal {
    position: relative;
    overflow: hidden;
}
.section-terminal::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    /* ✅ tweak: overlap a tiny bit more to kill 1px seam */
    bottom: -2px;

    /* ✅ tweak: make the blend zone taller for smoother feather */
    height: 180px;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.45) 45%,
        rgba(5, 5, 5, 0.85) 75%,
        rgba(5, 5, 5, 1) 100%
    );

    z-index: 0;
}
.section-terminal > .container {
    position: relative;
    z-index: 1;
}

.terminal-title {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.terminal-subtitle {
    color: #888;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 0.9rem;
}

.game-visualization-container {
    max-width: 900px;
    margin: 0 auto 50px;
    border: 1px solid var(--bunker-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.table-bg {
    width: 100%;
    aspect-ratio: 16 / 9;
    transition: background-color 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.table-1 { background-color: var(--table-green); }
.table-2 { background-color: var(--table-blue); }
.table-3 { background-color: var(--table-orange); }
.table-4 { background-color: var(--table-red); }

.table-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.table-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.card-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 0;
    z-index: 5;
}

.cards-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    align-items: center;
}

.dealer-side {
    margin-top: 40px;
}

.card {
    width: 70px;
    height: 100px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    animation: cardAppear 0.4s ease-out;
}

@keyframes cardAppear {
    from { transform: translateY(-20px) rotate(-5deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

.card .rank {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.card .suit {
    font-size: 1.5rem;
    align-self: flex-end;
}

.card.hearts, .card.diamonds { color: #d40000; }
.card.spades, .card.clubs { color: #1a1a1a; }

.hand-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.lisaloop-terminal {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #0d0d0d;
    border-radius: 8px;
    border: 1px solid #222;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-title-text {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.log-entry { margin-bottom: 4px; }
.log-entry.system { color: #888; }
.log-entry.warning { color: var(--tag-red); }

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bunker-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-value.highlight {
    color: var(--terminal-green);
}

.status-grind {
    color: var(--tag-red);
}

/* ==== TERMINAL COLOR ENHANCEMENTS (FIX #5) ==== */
.log-win {
    color: #00ff88;
    font-weight: 600;
}

.log-loss {
    color: #ff4b4b;
    font-weight: 600;
}

.log-bet {
    color: #3fa9ff;
    font-weight: 600;
}

.log-positive {
    color: #00ff88;
    font-weight: 600;
}

.log-negative {
    color: #ff4b4b;
    font-weight: 600;
}

.log-hit {
    color: #ffb347;
    font-weight: 600;
}

.log-stand {
    color: #4de1ff;
    font-weight: 600;
}

/* ==== FIX #6: kleur voor WIN / LOSS / PUSH labels + fallback voor $-10 ==== */
.log-entry.win {
    color: #00ff88;
}

.log-entry.loss {
    color: #ff4b4b;
}

.log-entry.push {
    color: #ffbd2e;
}

.log-entry.win .system-msg {
    color: #00ff88;
    font-weight: 700;
}

.log-entry.loss .system-msg {
    color: #ff4b4b;
    font-weight: 700;
}

.log-entry.push .system-msg {
    color: #ffbd2e;
    font-weight: 700;
}

/* ==== FIX #7: ROUND COUNTDOWN OVERLAY + URGENT PULSE (last 5s) ==== */
#countdown-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--terminal-green);

    background: rgba(0, 0, 0, 0.75);
    padding: 25px 45px;
    border-radius: 8px;

    border: 1px solid var(--bunker-border);
    box-shadow: 0 0 30px var(--accent-glow);

    z-index: 50;
    display: none;

    animation: countdownFade 0.3s ease-out;
}

@keyframes countdownFade {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Last 5 seconds: rood pulsen (init.js togglet .countdown-urgent bij <= 5) */
#countdown-timer.countdown-urgent {
    color: var(--tag-red);
    border-color: rgba(255, 75, 75, 0.6);
    box-shadow: 0 0 35px rgba(255, 75, 75, 0.25);
    animation: countdownPulse 0.9s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%  { transform: translate(-50%, -50%) scale(1.03); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ✅ NEW: Next-table timer ook rood pulsen in de laatste 5s */
#next-table-timer.countdown-urgent {
    color: var(--tag-red);
    display: inline-block;
    animation: countdownTextPulse 0.9s ease-in-out infinite;
    text-shadow: 0 0 14px rgba(255, 75, 75, 0.25);
}

@keyframes countdownTextPulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.06); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==== FIX #8: RESULT OVERLAY (YOU WON / YOU LOSE / DRAW) ==== */
#result-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 60;
    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 320px;
    padding: 26px 44px;

    border-radius: 10px;
    border: 1px solid var(--bunker-border);

    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);

    box-shadow: 0 0 30px rgba(0,0,0,0.55);

    animation: resultOverlayIn 0.25s ease-out;
}

.result-overlay {
    display: flex;
}

.result-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-amount {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.result-win .result-title,
.result-win .result-amount {
    color: var(--terminal-green);
    text-shadow: 0 0 18px rgba(0, 255, 65, 0.25);
}

.result-loss .result-title,
.result-loss .result-amount {
    color: var(--tag-red);
    text-shadow: 0 0 18px rgba(255, 75, 75, 0.25);
}

.result-draw .result-title,
.result-draw .result-amount {
    color: #3fa9ff;
    text-shadow: 0 0 18px rgba(63, 169, 255, 0.25);
}

@keyframes resultOverlayIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* =========================================================
   ✅ NEW: LORE GOAL PROGRESS METER (0% → 100%)
   (enkel styling toegevoegd voor .goal-progress* classes)
   ========================================================= */
.goal-progress {
    margin: 28px auto 0;
    max-width: 700px;

    padding: 18px 18px 14px;
    border-radius: 8px;

    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--bunker-border);

    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    text-align: left;
}

.goal-progress-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.goal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cfcfcf;
}

.goal-percent {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--terminal-green);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.18);
}

.goal-progress-bar {
    position: relative;
    width: 100%;
    height: 14px;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(26, 58, 26, 0.75);

    box-shadow: inset 0 0 10px rgba(0,0,0,0.55);
}

.goal-progress-fill {
    height: 100%;
    width: 0%;

    border-radius: 999px;

    background: linear-gradient(90deg,
        rgba(0, 255, 65, 0.25) 0%,
        rgba(0, 255, 65, 0.65) 45%,
        rgba(0, 255, 65, 1) 100%
    );

    box-shadow: 0 0 18px rgba(0, 255, 65, 0.22);
    transition: width 0.8s ease;
}

.goal-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;

    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #777;
    letter-spacing: 1px;
}

/* subtiele “scanline” highlight */
.goal-progress::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 14px;
    background: rgba(0, 255, 65, 0.08);
}

/* small screen polish */
@media (max-width: 520px) {
    .goal-progress {
        text-align: center;
    }
    .goal-progress-header {
        flex-direction: column;
        align-items: center;
    }
    .goal-progress-footer {
        font-size: 0.7rem;
    }
}

/* =========================================================
   ✅ NEW: BOT-ONLY UI SUPPORT (Split hands + indicators)
   (Added for insurance / surrender / double / split visuals)
   ========================================================= */

.is-hidden {
    display: none !important;
}

/* Player hands wrapper (supports split up to 4 hands) */
.player-hands-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

/* Each hand block (HAND 1..4) */
.player-hand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hand meta row: label + tags */
.hand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    max-width: 520px;

    margin-bottom: 6px;
    padding: 0 6px;
}

.hand-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

/* Generic hand tag pill (text is injected by uiUpdates.js) */
.hand-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    padding: 3px 8px;
    border-radius: 999px;

    color: #cfcfcf;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
}

/* Round indicators row (INSURANCE / SURRENDER / DOUBLE / SPLIT) */
.round-indicators {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    min-height: 26px;
}

.round-indicator {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 4px 10px;
    border-radius: 999px;

    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 0 14px rgba(0,0,0,0.25);
}

/* =========================================================
   ✅ NEW: Terminal action colors (spans injected by uiUpdates.js)
   ========================================================= */

.log-double {
    color: #b76cff;
    font-weight: 700;
}

.log-split {
    color: #7bd1ff;
    font-weight: 700;
}

.log-surrender {
    color: #ff4b4b;
    font-weight: 700;
}

.log-insurance {
    color: #ffbd2e;
    font-weight: 700;
}

/* Optional: whole-line emphasis when UI.log() is called with these types */
.log-entry.bot {
    color: #cfcfcf;
}

.log-entry.count {
    color: #7bd1ff;
}

.log-entry.double {
    color: #b76cff;
}

.log-entry.split {
    color: #7bd1ff;
}

.log-entry.surrender {
    color: #ff4b4b;
}

.log-entry.insurance {
    color: #ffbd2e;
}

/* =========================================================
   ✅ FIX: Goal meter ID fallbacks
   These are safe no-op styles unless the elements exist in index.html.
   They ensure the progress bar is visible and not "stuck" visually.
   ========================================================= */

#goal-percentage {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--terminal-green);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.18);
}

#goal-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;

    background: linear-gradient(90deg,
        rgba(0, 255, 65, 0.25) 0%,
        rgba(0, 255, 65, 0.65) 45%,
        rgba(0, 255, 65, 1) 100%
    );

    box-shadow: 0 0 18px rgba(0, 255, 65, 0.22);
    transition: width 0.8s ease;
}


/* =========================================================
   ✅ NEW: TABLE PERFORMANCE DASHBOARDS (per table)
   (Used by index.html: #table-dashboards)
   ========================================================= */

.table-dashboards {
    max-width: 900px;
    margin: 45px auto 0;
    text-align: left;
    padding-top: 25px;

    border-top: 1px solid rgba(26, 58, 26, 0.65);
}

.dashboards-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
}

.dashboards-subtitle {
    color: #888;
    margin: 0 0 22px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.table-dashboards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.table-dashboard-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bunker-border);
    border-radius: 10px;
    padding: 18px 18px 14px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

.table-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.table-dashboard-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.table-dashboard-pill {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 4px 10px;
    border-radius: 999px;

    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    color: #cfcfcf;
}

/* Table pill accents (subtle, matches table colors) */
.table-1-pill { color: #caffd6; border-color: rgba(0, 255, 65, 0.25); box-shadow: 0 0 14px rgba(0,255,65,0.08); }
.table-2-pill { color: #bfe6ff; border-color: rgba(77, 225, 255, 0.25); box-shadow: 0 0 14px rgba(77,225,255,0.08); }
.table-3-pill { color: #ffe2b7; border-color: rgba(255, 179, 71, 0.25); box-shadow: 0 0 14px rgba(255,179,71,0.08); }
.table-4-pill { color: #ffbfbf; border-color: rgba(255, 75, 75, 0.25); box-shadow: 0 0 14px rgba(255,75,75,0.08); }

.table-dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
}

.table-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;

    padding: 7px 0;
    border-bottom: 1px solid rgba(26, 58, 26, 0.35);
}

.table-stat-row:last-child {
    border-bottom: none;
}

.table-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.table-stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Optional value emphasis helpers (uiUpdates.js may set inline colors) */
.table-stat-value.positive { color: #00ff88; }
.table-stat-value.negative { color: #ff4b4b; }
.table-stat-value.neutral  { color: #ffffff; }

/* Make the dashboards breathe on small screens */
@media (max-width: 900px) {
    .table-dashboards {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .table-dashboards-grid {
        grid-template-columns: 1fr;
    }

    .table-dashboard-card {
        padding: 16px 16px 12px;
    }

    .table-stat-value {
        font-size: 0.92rem;
    }
}

/* =========================================================
   ✅ NEW: LAUNCH COUNTDOWN PAGE STYLES (launch.html)
   - Scoped to body.launch-page so index.html is untouched.
   - Add: <body class="launch-page"> in launch.html
   ========================================================= */

body.launch-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #0d1a0d 0%, var(--bg-black) 70%);
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Reuse existing .container but allow wider layout on launch page */
body.launch-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    text-align: center;
}

/* Typography */
body.launch-page h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

body.launch-page h1 span {
    color: var(--terminal-green);
}

body.launch-page .subtitle {
    color: #888;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Countdown grid */
body.launch-page .countdown {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 auto 26px;
}

body.launch-page .time-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bunker-border);
    border-radius: 10px;
    padding: 18px 18px 14px;
    min-width: 140px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
}

body.launch-page .time-value {
    font-family: 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--terminal-green);
    text-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
    letter-spacing: 1px;
}

body.launch-page .time-label {
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

/* Launch time line */
body.launch-page .launch-time {
    margin: 10px auto 26px;
    font-size: 0.85rem;
    color: #777;
    letter-spacing: 0.5px;
}

/* Back button — match site CTA styling */
body.launch-page .btn-back {
    display: inline-block;
    padding: 15px 35px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s;
    letter-spacing: 1px;
    cursor: pointer;

    background: var(--terminal-green);
    color: #000;
    border: 2px solid var(--terminal-green);
    box-shadow: 0 0 15px var(--accent-glow);
}

body.launch-page .btn-back:hover {
    background: transparent;
    color: var(--terminal-green);
}

/* Optional: subtle vignette */
body.launch-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%);
}

/* Responsive tweaks */
@media (max-width: 520px) {
    body.launch-page h1 {
        font-size: 2.3rem;
    }

    body.launch-page .time-box {
        min-width: 120px;
        padding: 16px 14px 12px;
    }

    body.launch-page .time-value {
        font-size: 2.1rem;
    }
}

/* =========================================================
   ✅ NEW: NAV SOCIAL ICONS (Telegram / TikTok / X)
   Added only — no changes to existing styles.
   ========================================================= */

/* Make sure the socials list item aligns cleanly with the nav */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon button style */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 8px;
    border: 1px solid rgba(26, 58, 26, 0.75);

    background: rgba(0, 0, 0, 0.25);
    color: var(--terminal-green);

    box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);

    transition: 0.25s ease;
}

/* Ensure SVG inherits color */
.social-icon svg {
    display: block;
    color: inherit;
}

/* Hover */
.social-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 65, 0.35);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.16);
    background: rgba(0, 255, 65, 0.04);
}

/* Active click */
.social-icon:active {
    transform: translateY(0px);
}

/* Better spacing on smaller screens (wrap if needed) */
@media (max-width: 760px) {
    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-socials {
        gap: 8px;
    }
}

/* =========================================================
   ✅ NEW: GOAL PHASE TRACKER (Phase 1–4 + mini progress bar)
   Added only — no changes to existing styles.
   ========================================================= */

.goal-phase {
    margin: 14px auto 0;
    max-width: 700px;

    padding: 16px 18px 14px;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(26, 58, 26, 0.65);

    box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
    text-align: left;
}

.goal-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.goal-phase-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9a9a9a;
}

.goal-phase-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;

    padding: 5px 10px;
    border-radius: 999px;

    color: #000;
    background: var(--terminal-green);
    border: 1px solid rgba(0, 255, 65, 0.25);

    box-shadow: 0 0 18px rgba(0, 255, 65, 0.14);
}

.goal-phase-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.goal-phase-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;

    padding: 6px 0;
    border-bottom: 1px solid rgba(26, 58, 26, 0.35);
}

.goal-phase-row:last-child {
    border-bottom: none;
}

.goal-phase-key {
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.goal-phase-val {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
}

.goal-phase-bar {
    position: relative;
    width: 100%;
    height: 12px;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(26, 58, 26, 0.65);

    box-shadow: inset 0 0 10px rgba(0,0,0,0.55);
}

.goal-phase-fill {
    height: 100%;
    width: 0%;

    border-radius: 999px;

    background: linear-gradient(90deg,
        rgba(0, 255, 65, 0.18) 0%,
        rgba(0, 255, 65, 0.55) 45%,
        rgba(0, 255, 65, 1) 100%
    );

    box-shadow: 0 0 16px rgba(0, 255, 65, 0.18);
    transition: width 0.8s ease;
}

.goal-phase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;

    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #777;
    letter-spacing: 1px;
}

/* Small screen polish */
@media (max-width: 520px) {
    .goal-phase {
        text-align: center;
    }

    .goal-phase-header {
        flex-direction: column;
        align-items: center;
    }

    .goal-phase-row {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 10px 0;
    }
}

/* =========================================================
   ✅ NEW: HOW IT WORKS SECTION (Step 2)
   (Used by index.html: #how-it-works / .section-howitworks)
   Added only — no changes to existing styles.
   ========================================================= */

.section-howitworks {
    padding: 95px 20px;
    background: radial-gradient(circle at top, #0b140b 0%, var(--bg-black) 72%);
    text-align: center;
}

/* ✅ tweak: pull section up by 1px to eliminate visible seam */
.section-howitworks {
    margin-top: -1px;
}

/* ✅ NEW: smoother section transition (How It Works top blend) */
.section-howitworks {
    position: relative;
    overflow: hidden;
}
.section-howitworks::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    /* ✅ tweak: overlap a tiny bit more to kill 1px seam */
    top: -2px;

    /* ✅ tweak: make the blend zone taller for smoother feather */
    height: 180px;

    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.45) 45%,
        rgba(5, 5, 5, 0.85) 75%,
        rgba(5, 5, 5, 1) 100%
    );

    z-index: 0;
}
.section-howitworks > .container {
    position: relative;
    z-index: 1;
}

.howitworks-title {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.howitworks-subtitle {
    color: #888;
    max-width: 720px;
    margin: 0 auto 42px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.howitworks-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    text-align: left;
}

.howitworks-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bunker-border);
    border-radius: 10px;
    padding: 20px 20px 16px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

/* Subtle green “scan” edge */
.howitworks-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 255, 65, 0) 0%,
        rgba(0, 255, 65, 0.35) 35%,
        rgba(0, 255, 65, 0.8) 60%,
        rgba(0, 255, 65, 0) 100%
    );
    opacity: 0.55;
}

.howitworks-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 10px;
}

.howitworks-text {
    color: #b6b6b6;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px;
}

.howitworks-list {
    margin: 10px 0 12px;
    padding-left: 18px;
    color: #b6b6b6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.howitworks-list li {
    margin: 6px 0;
}

.howitworks-note {
    max-width: 900px;
    margin: 24px auto 0;
    text-align: left;

    padding: 16px 18px;
    border-radius: 10px;

    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(26, 58, 26, 0.75);

    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    color: #9a9a9a;

    font-size: 0.85rem;
    line-height: 1.55;
}

.howitworks-note-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terminal-green);
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .howitworks-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .section-howitworks {
        padding: 80px 18px;
    }

    .howitworks-title {
        font-size: 1.7rem;
    }

    .howitworks-subtitle {
        font-size: 0.9rem;
        margin-bottom: 34px;
    }

    .howitworks-card {
        padding: 18px 16px 14px;
    }
}

/* =========================================================
   ✅ NEW: FAQ SECTION (Step 3)
   (Used by index.html: #faq / .section-faq + <details> accordion)
   Added only — no changes to existing styles.
   ========================================================= */

.section-faq {
    padding: 95px 20px;
    background: radial-gradient(circle at top, #0b140b 0%, var(--bg-black) 74%);
    text-align: center;
}

/* ✅ Seam killers: overlap + soft blend from How It Works */
.section-faq {
    margin-top: -1px;
    position: relative;
    overflow: hidden;
}

/* Top blend (How It Works → FAQ) */
.section-faq::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 170px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.45) 45%,
        rgba(5, 5, 5, 0.85) 75%,
        rgba(5, 5, 5, 1) 100%
    );
    z-index: 0;
}

/* Bottom blend (FAQ → Footer) */
.section-faq::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 170px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.45) 45%,
        rgba(5, 5, 5, 0.85) 75%,
        rgba(5, 5, 5, 1) 100%
    );
    z-index: 0;
}

.section-faq > .container {
    position: relative;
    z-index: 1;
}

.faq-title {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.faq-subtitle {
    color: #888;
    max-width: 760px;
    margin: 0 auto 42px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.faq-link {
    color: var(--terminal-green);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.25);
    transition: 0.25s ease;
}

.faq-link:hover {
    border-bottom-color: rgba(0, 255, 65, 0.6);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.16);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bunker-border);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 14px 35px rgba(0,0,0,0.35);
    overflow: hidden;
}

/* Remove default marker, we add our own */
.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 18px 18px 16px;

    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;

    background: rgba(0, 0, 0, 0.18);

    transition: 0.25s ease;
    position: relative;
}

/* Subtle “scan” line on the header */
.faq-question::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 255, 65, 0) 0%,
        rgba(0, 255, 65, 0.35) 35%,
        rgba(0, 255, 65, 0.8) 60%,
        rgba(0, 255, 65, 0) 100%
    );
    opacity: 0.45;
}

/* Chevron */
.faq-question::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    border-radius: 8px;
    border: 1px solid rgba(26, 58, 26, 0.75);
    background: rgba(0,0,0,0.25);
    color: var(--terminal-green);

    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1;

    box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
    transition: 0.25s ease;
}

.faq-item:hover .faq-question {
    background: rgba(0, 255, 65, 0.03);
}

.faq-item[open] .faq-question {
    background: rgba(0, 255, 65, 0.04);
}

.faq-item[open] .faq-question::after {
    content: "—";
    transform: translateY(-1px);
    border-color: rgba(0, 255, 65, 0.35);
    box-shadow: 0 0 18px rgba(0, 255, 65, 0.14);
}

/* Focus states (keyboard navigation) */
.faq-question:focus,
.faq-question:focus-visible {
    outline: none;
}

.faq-question:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.18);
}

.faq-answer {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(26, 58, 26, 0.55);
    background: rgba(0, 0, 0, 0.10);
}

.faq-answer p {
    margin: 14px 0 0;
    color: #b6b6b6;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Link inside answers */
.faq-answer a {
    color: var(--terminal-green);
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px solid rgba(0, 255, 65, 0.25);
    transition: 0.25s ease;
}

.faq-answer a:hover {
    border-bottom-color: rgba(0, 255, 65, 0.6);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.16);
}

.faq-note {
    max-width: 900px;
    margin: 22px auto 0;
    text-align: left;

    padding: 16px 18px;
    border-radius: 10px;

    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(26, 58, 26, 0.75);

    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
    color: #9a9a9a;

    font-size: 0.85rem;
    line-height: 1.55;
}

.faq-note-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terminal-green);
    margin-right: 8px;
}

@media (max-width: 520px) {
    .section-faq {
        padding: 80px 18px;
    }

    .faq-title {
        font-size: 1.7rem;
    }

    .faq-subtitle {
        font-size: 0.9rem;
        margin-bottom: 34px;
    }

    .faq-question {
        padding: 16px 14px 14px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .faq-answer {
        padding: 0 14px 16px;
    }
}

/* =========================================================
   ✅ NEW: FOOTER (Step 4)
   (Used by index.html: .site-footer + footer blocks)
   Added only — no changes to existing styles.
   ========================================================= */

.site-footer {
    padding: 55px 20px 36px;
    background: radial-gradient(circle at top, #0a120a 0%, var(--bg-black) 78%);
    border-top: 1px solid rgba(26, 58, 26, 0.65);
    position: relative;
    overflow: hidden;
}

/* Seam killer: blend from FAQ into footer */
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 160px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(5, 5, 5, 0) 0%,
        rgba(5, 5, 5, 0.45) 45%,
        rgba(5, 5, 5, 0.85) 75%,
        rgba(5, 5, 5, 1) 100%
    );
    z-index: 0;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 28px;
    align-items: start;
    text-align: left;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--terminal-green);
}

.footer-tagline {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    max-width: 420px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 6px;
}

.footer-link {
    color: #b6b6b6;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-size: 0.72rem;
    transition: 0.25s ease;
}

.footer-link:hover {
    color: var(--terminal-green);
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.14);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

/* Slightly tighter icon size in footer */
.footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

/* Divider */
.footer-divider {
    margin: 28px 0 18px;
    height: 1px;
    background: rgba(26, 58, 26, 0.55);
}

/* Bottom row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
}

.footer-disclaimer {
    margin: 0;
    color: #777;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 650px;
}

.footer-meta {
    margin: 0;
    color: #777;
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: right;
    white-space: nowrap;
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-meta {
        text-align: left;
        white-space: normal;
    }
}