/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #06081a;
    --bg-panel: #0a0e2a;
    --bg-card: #0d1230;
    --bg-card-hover: #111838;
    --blue: #2882F8;
    --blue-bright: #4A9BFF;
    --blue-dim: #1B50A1;
    --blue-glow: rgba(40, 130, 248, 0.4);
    --neon-pink: #FF1A8C;
    --neon-pink-glow: rgba(255, 26, 140, 0.35);
    --neon-green: #39FF14;
    --neon-green-glow: rgba(57, 255, 20, 0.3);
    --nvidia-green: #76B900;
    --green-glow: rgba(118, 185, 0, 0.3);
    --neon-yellow: #FFE600;
    --neon-cyan: #00F0FF;
    --neon-cyan-glow: rgba(0, 240, 255, 0.3);
    --white: #e0e8f0;
    --gray: #7080a0;
    --gray-dim: #2a3040;
    --border: rgba(40, 130, 248, 0.12);
    --border-bright: rgba(40, 130, 248, 0.35);
    --yellow: #FFD700;
    --term-font: 'VT323', monospace;
    --mono-font: 'Space Mono', 'Courier New', monospace;
    --display-font: 'Orbitron', sans-serif;
    --sidebar-width: 250px;
    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.pastel {
    --bg: #1a1e3e; --bg-panel: #16214e; --bg-card: #1a1e3e;
    --blue: #5A9BF0; --blue-bright: #7AB5FF; --blue-glow: rgba(90,155,240,0.25);
    --nvidia-green: #95d5b2; --green-glow: rgba(149,213,178,0.2);
    --border: rgba(90,155,240,0.1); --border-bright: rgba(90,155,240,0.25);
    --white: #d0d0e0; --gray: #8888aa; --gray-dim: #444466; --yellow: #e6c84c;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--term-font);
    background: var(--bg); color: var(--blue);
    overflow-x: hidden; font-size: 18px; line-height: 1.5;
    -webkit-font-smoothing: none;
    transition: background var(--t), color var(--t);
}
a { text-decoration: none; color: inherit; }
code { font-family: var(--mono-font); font-size: 0.85em; }

/* CRT — subtle, no scanmove jitter */
.crt-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9998;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px); opacity: 0.35; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 9997;
    background: linear-gradient(to bottom, rgba(40,130,248,0.012) 0%, rgba(40,130,248,0.003) 50%, rgba(40,130,248,0.012) 100%);
}
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 9996;
    box-shadow: inset 0 0 180px 40px rgba(0,0,0,0.6); background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.25) 100%); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

/* PARTICLES — subtle only */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.15; }

/* TOAST */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg-panel); border: 1px solid var(--nvidia-green); color: var(--nvidia-green);
    padding: 10px 20px; border-radius: 4px; font-family: var(--mono-font); font-size: 13px;
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: 0 0 20px var(--green-glow); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* APP */
.app { display: grid; grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: auto 1fr auto; grid-template-areas: "sidebar topbar" "sidebar main" "sidebar bottom";
    min-height: 100vh; position: relative; z-index: 1; }

/* TOP BAR */
.top-bar { grid-area: topbar; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; border-bottom: 1px solid var(--border);
    background: rgba(6,8,26,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.branding { display: flex; align-items: center; gap: 14px; }
.logo-box { background: transparent; color: var(--bg); padding: 0; border-radius: 50%;
    text-align: center; line-height: 1; box-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(40,130,248,0.15); transition: all var(--t); width: 52px; height: 52px; overflow: hidden; }
.logo-box:hover { box-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(40,130,248,0.2); transform: scale(1.05); }
.logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-meta { display: flex; flex-direction: column; gap: 1px; }
.brand-version { font-family: var(--mono-font); font-size: 10px; color: var(--gray);
    border: 1px solid var(--border-bright); padding: 1px 8px; border-radius: 2px;
    display: inline-block; width: fit-content; margin-bottom: 2px; }
.brand-name { font-size: 26px; color: var(--white); letter-spacing: 2px; font-family: var(--display-font); font-weight: 700; }
.brand-tagline { font-size: 14px; color: var(--nvidia-green); text-shadow: 0 0 8px var(--green-glow); }

/* QUOTE STRIP — stock vibe */
.quote-strip { display: flex; align-items: center; gap: 14px; font-family: var(--mono-font); font-size: 11px; color: var(--gray); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; background: rgba(0,0,0,0.25); }
.qs { color: var(--gray-dim); letter-spacing: 1px; }
.qv { color: var(--white); font-weight: 700; }
.qd.up { color: var(--nvidia-green); }
.qd.down { color: #ff5a5a; }

/* STATUS PANEL */
.status-panel { border: 1px solid var(--border-bright); border-radius: 4px; padding: 10px 14px;
    background: rgba(40,130,248,0.03); min-width: 190px; box-shadow: 0 0 15px rgba(40,130,248,0.08); }
.status-header { font-family: var(--mono-font); font-size: 11px; color: var(--nvidia-green);
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.status-dot { width: 8px; height: 8px; background: #ff4444; border-radius: 50%; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 0 rgba(255,68,68,0.4)} 50%{box-shadow:0 0 0 6px rgba(255,68,68,0)} }
.status-lines { font-family: var(--mono-font); font-size: 12px; color: var(--gray); line-height: 1.8; }
.status-clock { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.clock-label { font-family: var(--mono-font); font-size: 10px; color: var(--gray-dim); }
.clock-display { font-family: var(--mono-font); font-size: 17px; color: var(--nvidia-green);
    background: rgba(0,0,0,0.4); padding: 3px 10px; border-radius: 2px; text-align: center;
    margin-top: 2px; text-shadow: 0 0 6px var(--green-glow); }
.clock-bar { height: 3px; background: rgba(255,255,255,0.04); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.clock-bar-fill { height: 100%; background: var(--yellow); width: 0%; transition: width 1s linear; box-shadow: 0 0 8px rgba(255,215,0,0.3); }

/* SIDEBAR — SPX-like but blue NVDA */
.sidebar-nav { grid-area: sidebar; border-right: 1px solid var(--border); padding: 16px 10px;
    display: flex; flex-direction: column; gap: 6px; background: rgba(6,10,28,0.7);
    overflow-y: auto; position: sticky; top: 0; height: 100vh; scrollbar-width: thin; }
.nav-item { border: 1px solid var(--border); border-radius: 4px; padding: 12px 16px; cursor: pointer;
    transition: all var(--t); display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.nav-item::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
    border-top: 2px solid var(--blue); border-right: 2px solid var(--blue);
    transform: translateY(-50%) translateX(12px) rotate(45deg); opacity: 0; transition: all var(--t); }
.nav-item:hover { background: rgba(40,130,248,0.04); border-color: var(--border-bright); }
.nav-item:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.nav-item.active { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 20px var(--blue-glow); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: repeating-linear-gradient(45deg, var(--bg) 0, var(--bg) 3px, transparent 3px, transparent 6px); }
.nav-item.active::after { content: none; }
.nav-sector { font-family: var(--mono-font); font-size: 10px; letter-spacing: 1px; opacity: 0.7; }
.nav-item.active .nav-sector { opacity: 0.9; color: var(--bg); }
.nav-title { font-size: 19px; letter-spacing: 1px; color: var(--white); transition: color var(--t); font-family: var(--display-font); font-weight: 500; }
.nav-item.active .nav-title { color: var(--bg); font-weight: bold; }
.nav-sub { font-family: var(--mono-font); font-size: 10px; color: var(--gray); }
.nav-item.active .nav-sub { color: rgba(10,10,15,0.65); }

/* MAIN */
.main-content { grid-area: main; padding: 30px 40px; overflow-y: auto; scrollbar-width: thin; position: relative; }
.loading-bar { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: transparent; z-index: 10; }
.loading-bar-fill { height: 100%; width: 0%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); transition: width 0.3s ease; }
.loading-bar.loading .loading-bar-fill { width: 100%; }

/* SECTOR PANELS — smooth fade only, no slide jitter */
.sector-panel { display: none; }
.sector-panel.active { display: block; animation: panelIn 0.35s ease; }
@keyframes panelIn { from{opacity:0} to{opacity:1} }

/* PANEL HEADER — stock terminal header */
.panel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.panel-id { font-family: var(--mono-font); font-size: 13px; color: var(--nvidia-green);
    padding: 3px 12px; border: 1px solid var(--nvidia-green); border-radius: 3px;
    background: rgba(118,185,0,0.05); box-shadow: 0 0 10px var(--green-glow); letter-spacing: 1px; }
.panel-title { font-size: 38px; color: var(--white); text-shadow: 0 0 15px var(--blue-glow), 0 0 30px rgba(40,130,248,0.15); letter-spacing: 3px; font-family: var(--display-font); font-weight: 700; }
.panel-sub { font-family: var(--mono-font); font-size: 12px; color: var(--gray); margin-left: auto; }

/* ===== SECTION BANNERS ===== */
.section-banner {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center 25%;
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(6,8,26,0.85) 0%, rgba(6,8,26,0.5) 50%, rgba(6,8,26,0.85) 100%);
}
.banner-text {
    position: absolute;
    bottom: 16px; left: 20px;
    font-family: var(--mono-font);
    font-size: 13px;
    color: var(--blue-bright);
    text-shadow: 0 0 10px var(--blue-glow);
    letter-spacing: 2px;
    z-index: 2;
}

/* ===== NEON ACCENTS ===== */
.nav-item:nth-child(1) .nav-sector { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.nav-item:nth-child(2) .nav-sector { color: var(--neon-pink); border-color: var(--neon-pink); }
.nav-item:nth-child(3) .nav-sector { color: var(--neon-yellow); border-color: var(--neon-yellow); }
.nav-item:nth-child(4) .nav-sector { color: var(--neon-green); border-color: var(--neon-green); }
.nav-item:nth-child(5) .nav-sector { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.nav-item:nth-child(6) .nav-sector { color: var(--neon-pink); border-color: var(--neon-pink); }
.nav-item:nth-child(7) .nav-sector { color: var(--neon-yellow); border-color: var(--neon-yellow); }

/* Neon glow on active nav */
.nav-item.active { box-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(40,130,248,0.15); }

/* Neon status dot */
.status-dot { box-shadow: 0 0 8px rgba(255,68,68,0.6), 0 0 16px rgba(255,68,68,0.3); }

/* Neon panel-title glow */
.panel-title { text-shadow: 0 0 15px var(--blue-glow), 0 0 30px rgba(40,130,248,0.2), 0 0 60px rgba(40,130,248,0.1); }

/* Neon logo box glow */
.logo-box { box-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(40,130,248,0.15); }

/* Neon button glow */
.term-btn:hover { box-shadow: 0 0 25px var(--blue-glow), 0 0 50px rgba(40,130,248,0.15); }
.nav-btn:hover { box-shadow: 0 0 12px var(--blue-glow), 0 0 24px rgba(40,130,248,0.1); }

/* Neon link card hover */
.link-card:hover { box-shadow: 0 0 25px var(--blue-glow), 0 4px 20px rgba(0,0,0,0.3); }

/* Neon FAQ active */
.faq-item.active { box-shadow: 0 0 15px var(--blue-glow), 0 0 30px rgba(40,130,248,0.1); }

/* Neon dossier active */
.dossier-row.active { box-shadow: 0 0 15px var(--blue-glow), 0 0 30px rgba(40,130,248,0.1); }

/* Neon commandment hover glow */
.commandment:hover { box-shadow: 0 0 15px rgba(40,130,248,0.1); }

/* Neon step hover */
.step-item:hover { box-shadow: 0 0 15px rgba(40,130,248,0.1); }

/* Neon rewards box */
.rewards-box { box-shadow: 0 0 15px var(--green-glow), 0 0 30px rgba(118,185,0,0.1); }

/* HERO */
.hero-art { position: relative; width: 100%; min-height: 600px; display: flex; align-items: center;
    justify-content: center; overflow: hidden; border: 1px solid var(--border-bright); border-radius: 6px; margin-bottom: 16px; }
.hero-image { position: absolute; inset: 0;
    background: url('../images/hero-bg-cropped.jpg') center center / cover no-repeat;
    opacity: 1; filter: saturate(1.1) contrast(1.05);
    transform: scale(1.02); transition: transform 8s ease; }
.hero-art:hover .hero-image { transform: scale(1.06); }
.hero-overlay { position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(6,8,26,0.15) 0%, transparent 50%, rgba(6,8,26,0.4) 100%); }
.hero-glow { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px;
    transform: translate(-50%, -50%); background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none; animation: heroGlow 4s ease-in-out infinite; }
@keyframes heroGlow { 0%,100%{opacity:0.3; transform:translate(-50%,-50%) scale(1)} 50%{opacity:0.6; transform:translate(-50%,-50%) scale(1.2)} }
.hero-content-center { position: relative; z-index: 2; text-align: center; padding: 60px 40px; }
.hero-tagline-main { font-size: 64px; color: var(--white);
    text-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(0,0,0,0.95), 4px 4px 0 rgba(0,0,0,0.8), 0 0 60px rgba(40,130,248,0.2), -2px -2px 0 rgba(0,0,0,0.5);
    margin-bottom: 10px; letter-spacing: 6px; font-weight: 900; font-family: var(--display-font); }

.hero-tagline-sub { font-size: 22px; color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan-glow), 0 0 30px rgba(0,0,0,0.95), 3px 3px 0 rgba(0,0,0,0.8), -1px -1px 0 rgba(0,0,0,0.5);
    letter-spacing: 2px; text-transform: uppercase; }

/* HERO CA */
.hero-ca { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px 18px; border: 1px solid var(--border); border-radius: 4px;
    background: rgba(40,130,248,0.04); transition: all var(--t); margin-bottom: 16px; }
.hero-ca:hover { border-color: var(--border-bright); background: rgba(40,130,248,0.07); box-shadow: 0 0 15px rgba(40,130,248,0.1); }
.ca-label { font-family: var(--mono-font); font-size: 13px; color: var(--gray); }
.hero-ca code { color: var(--blue-bright); font-size: 14px; user-select: all; word-break: break-all; text-shadow: 0 0 8px var(--blue-glow); }
.copy-btn { background: none; border: 1px solid var(--border-bright); color: var(--blue-bright);
    padding: 6px 14px; font-family: var(--mono-font); font-size: 12px; cursor: pointer;
    border-radius: 3px; transition: all var(--t); white-space: nowrap; margin-left: auto; }
.copy-btn:hover { background: rgba(40,130,248,0.1); border-color: var(--blue); }
.copy-btn.copied { color: var(--nvidia-green); border-color: var(--nvidia-green); }

/* HERO CTA BUTTONS */
.hero-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.term-btn-lg { padding: 14px 32px !important; font-size: 15px !important; }

/* TERMINAL TEXT */
.terminal-text-block p { font-size: 19px; line-height: 1.9; color: var(--gray); margin-bottom: 16px;
    opacity: 0; animation: textReveal 0.5s ease forwards; }

/* DOSSIER — SPX-like stock dossiers */
.dossier-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.dossier-file { font-family: var(--mono-font); font-size: 12px; color: var(--gray-dim); letter-spacing: 1px; }

.intel-brief { border: 1px solid var(--border-bright); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.intel-header { font-family: var(--mono-font); font-size: 12px; color: var(--nvidia-green);
    padding: 8px 16px; border-bottom: 1px solid var(--border-bright);
    background: rgba(118,185,0,0.05); letter-spacing: 1px; }
.intel-body { padding: 16px 20px; font-size: 17px; color: var(--gray); line-height: 1.8; }
.intel-body u { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; color: var(--white); }

.dossier-rows { display: flex; flex-direction: column; gap: 6px; }

.dossier-row { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: all var(--t); }
.dossier-row:hover { border-color: var(--border-bright); }
.dossier-row.active { border-color: var(--blue); box-shadow: 0 0 15px var(--blue-glow); }

.dr-main { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; transition: background var(--t); }
.dr-main:hover { background: rgba(40,130,248,0.04); }

.dr-label { font-family: var(--mono-font); font-size: 11px; color: var(--nvidia-green);
    padding: 3px 10px; border: 1px solid var(--nvidia-green); border-radius: 3px;
    background: rgba(118,185,0,0.05); letter-spacing: 1px; flex-shrink: 0; min-width: 90px; text-align: center; }

.dr-value { font-size: 19px; color: var(--white); letter-spacing: 1px; flex: 1; }

.dr-note { font-family: var(--mono-font); font-size: 11px; color: var(--gray); margin-left: auto; text-align: right; }

.dr-toggle { font-family: var(--mono-font); font-size: 14px; color: var(--blue);
    padding: 2px 8px; border: 1px solid var(--border-bright); border-radius: 3px; transition: all var(--t); flex-shrink: 0; }
.dossier-row.active .dr-toggle { transform: rotate(45deg); border-color: var(--blue); }

.dr-expand { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 20px; }
.dossier-row.active .dr-expand { max-height: 600px; padding: 0 20px 16px; }
.dr-expand p { color: var(--gray); font-size: 17px; line-height: 1.7; margin-bottom: 8px; }

.dr-expand-header { font-family: var(--mono-font); font-size: 12px; color: var(--blue); margin-bottom: 8px; letter-spacing: 1px; }

.ca-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 3px; margin-bottom: 8px; }
.ca-chain { font-family: var(--mono-font); font-size: 12px; font-weight: bold; color: var(--nvidia-green);
    padding: 2px 8px; border: 1px solid var(--nvidia-green); border-radius: 2px; flex-shrink: 0; }
.ca-addr { color: var(--blue); font-size: 12px; word-break: break-all; text-shadow: 0 0 6px var(--blue-glow); }
.ca-note { font-size: 15px !important; color: var(--gray); line-height: 1.6; }

.token-mini-table { font-family: var(--mono-font); font-size: 13px; }
.tmtr { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(40,130,248,0.06); }
.tmtr:last-child { border-bottom: none; }
.tmtr span:first-child { color: var(--gray); }
.tmtr span:last-child { color: var(--blue); text-shadow: 0 0 6px var(--blue-glow); font-weight: bold; }

/* COMMANDMENTS — no stagger animation, just clean list */
.commandments { display: flex; flex-direction: column; gap: 8px; }
.commandment { display: flex; align-items: flex-start; gap: 16px; padding: 14px 20px;
    background: rgba(40,130,248,0.03); border: 1px solid var(--border); border-radius: 4px;
    transition: border-color var(--t), background var(--t); }
.commandment:hover { background: var(--bg-card-hover); border-color: var(--border-bright); }
.cmd-num { color: var(--nvidia-green); font-size: 22px; min-width: 32px; text-shadow: 0 0 8px var(--green-glow); }
.commandment span:last-child { color: var(--white); font-size: 18px; line-height: 1.5; }

/* TOKENOMICS — stock data table */
.token-table { background: rgba(10,14,42,0.6); border: 1px solid var(--border); border-radius: 6px; padding: 20px 24px; margin-bottom: 24px; }
.token-row { display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0; border-bottom: 1px dashed rgba(40,130,248,0.06); font-family: var(--mono-font); font-size: 14px; transition: background 0.2s; }
.token-row:hover { background: rgba(40,130,248,0.02); }
.token-row:last-child { border-bottom: none; }
.tk { color: var(--gray); }
.tv { color: var(--blue); text-shadow: 0 0 6px var(--blue-glow); font-weight: bold; }
.mono-sm { font-size: 12px; word-break: break-all; max-width: 320px; text-align: right; }

/* DISTRIBUTION */
.dist-section { margin-top: 20px; }
.dist-title { font-family: var(--mono-font); font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.dist-bar { display: flex; height: 28px; border-radius: 4px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.dist-seg { transition: all 0.3s; position: relative; }
.dist-seg:hover { filter: brightness(1.3); box-shadow: 0 0 10px currentColor; }
.dist-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; font-family: var(--mono-font); font-size: 13px; color: var(--gray); }
.dist-item { display: flex; align-items: center; gap: 8px; }
.dist-dot { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }

/* REWARDS BOX */
.rewards-box { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--nvidia-green);
    border-radius: 6px; background: rgba(118,185,0,0.04); box-shadow: 0 0 15px var(--green-glow); }
.rewards-title { font-size: 22px; color: var(--nvidia-green); margin-bottom: 10px;
    text-shadow: 0 0 10px var(--green-glow); letter-spacing: 1px; }
.rewards-desc { font-size: 16px; color: var(--gray); line-height: 1.7; }

/* LINKS */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px;
    background: rgba(40,130,248,0.03); border: 1px solid var(--border); border-radius: 4px; transition: all var(--t); }
.link-card:hover { background: var(--bg-card-hover); border-color: var(--blue);
    box-shadow: 0 0 15px var(--blue-glow); }
.link-icon { color: var(--blue); flex-shrink: 0; transition: transform var(--t); }
.link-card:hover .link-icon { transform: scale(1.15); }
.link-info { flex: 1; }
.link-name { font-family: var(--mono-font); font-size: 13px; color: var(--white); letter-spacing: 1px; margin-bottom: 2px; }
.link-url { font-family: var(--mono-font); font-size: 11px; color: var(--gray); }
.link-arrow { color: var(--blue); display: flex; align-items: center; transition: transform var(--t); }
.link-card:hover .link-arrow { transform: translateX(4px); }

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step-item { padding: 16px 20px; background: rgba(40,130,248,0.03); border: 1px solid var(--border);
    border-radius: 4px; transition: all var(--t); }
.step-item:hover { background: var(--bg-card-hover); border-color: var(--border-bright); }
.step-prompt { color: var(--nvidia-green); font-family: var(--mono-font); font-size: 14px; margin-right: 8px; }
.step-cmd { color: var(--blue); font-family: var(--mono-font); font-size: 14px; text-shadow: 0 0 6px var(--blue-glow); }
.step-desc { color: var(--gray); font-size: 17px; margin-top: 6px; line-height: 1.5; }
.step-cta { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.term-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px;
    border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); font-family: var(--mono-font);
    font-size: 14px; letter-spacing: 1px; transition: all var(--t); background: rgba(40,130,248,0.05); }
.term-btn:hover { background: rgba(40,130,248,0.12); border-color: var(--blue-bright); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: all var(--t); }
.faq-item:hover { border-color: var(--border-bright); }
.faq-item.active { border-color: var(--blue); box-shadow: 0 0 15px var(--blue-glow); }
.faq-q { width: 100%; padding: 16px 20px; background: none; border: none; color: var(--white);
    font-family: var(--term-font); font-size: 19px; text-align: left; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: color var(--t); }
.faq-q:hover { color: var(--blue-bright); }
.faq-prompt { color: var(--blue); flex-shrink: 0; }
.faq-toggle { margin-left: auto; color: var(--blue); font-family: var(--mono-font); font-size: 14px; transition: transform 0.3s ease; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 20px; }
.faq-item.active .faq-a { max-height: 400px; padding: 0 20px 16px; }
.faq-a p { color: var(--gray); font-size: 17px; line-height: 1.7; padding-left: 20px; }
.faq-a code { color: var(--blue); font-size: 13px; word-break: break-all; }

/* FOOTER */
.term-footer { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-disclaimer { font-family: var(--mono-font); font-size: 12px; color: var(--gray);
    line-height: 1.8; max-width: 600px; margin: 0 auto 12px; }
.footer-copy { font-family: var(--mono-font); font-size: 11px; color: var(--gray-dim); letter-spacing: 1px; opacity: 0.8; }

/* BOTTOM BAR */
.bottom-bar { grid-area: bottom; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; border-top: 1px solid var(--border); background: rgba(6,8,26,0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); gap: 12px; flex-wrap: wrap; }
.mode-selector { display: flex; align-items: center; gap: 8px; }
.mode-label { font-family: var(--mono-font); font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.mode-options { display: flex; gap: 4px; }
.mode-opt { font-family: var(--mono-font); font-size: 12px; padding: 6px 16px;
    border: 1px solid var(--border-bright); border-radius: 3px; cursor: pointer; transition: all var(--t); color: var(--gray); }
.mode-opt.active { background: var(--yellow); color: var(--bg); border-color: var(--yellow); box-shadow: 0 0 8px rgba(255,215,0,0.3); }
.mode-opt:not(.active):hover { color: var(--blue); border-color: var(--blue); }
.nav-controls { display: flex; gap: 8px; }
.nav-btn { font-family: var(--mono-font); font-size: 18px; padding: 8px 20px; border: 1px solid var(--border-bright);
    border-radius: 3px; background: none; color: var(--blue); cursor: pointer; transition: all var(--t); min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: rgba(40,130,248,0.1); border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }

/* MOBILE NAV */
.mobile-nav-toggle { display: none; position: fixed; top: 14px; right: 14px; z-index: 200;
    background: var(--bg-panel); border: 1px solid var(--border-bright); border-radius: 4px;
    width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.mobile-nav-toggle span { width: 20px; height: 2px; background: var(--blue); border-radius: 1px; transition: all var(--t); }
.mobile-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
::selection { background: var(--blue); color: var(--bg); }

/* RESPONSIVE */
@media (max-width: 960px) {
    .app { grid-template-columns: 1fr; grid-template-areas: "topbar" "main" "bottom"; }
    .sidebar-nav { position: fixed; top: 0; left: -280px; width: 260px; height: 100vh; z-index: 150;
        background: var(--bg); transition: left 0.3s cubic-bezier(0.4,0,0.2,1); border-right: 1px solid var(--border-bright); padding-top: 60px; }
    .sidebar-nav.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,0.5); }
    .mobile-nav-toggle { display: flex; }
    .status-panel { display: none; }
    .quote-strip { display: none; }
    .main-content { padding: 24px 18px; }
    .brand-name { font-size: 20px; }
    .brand-tagline { font-size: 12px; }
    .panel-title { font-size: 28px; }
    .hero-art { min-height: 380px; }
    .hero-tagline-main { font-size: 40px; letter-spacing: 3px; }
    .hero-tagline-sub { font-size: 16px; }
    .section-banner { height: 120px; }
    .banner-text { font-size: 11px; }
}

@media (max-width: 600px) {
    .panel-title { font-size: 24px; }
    .panel-sub { display: none; }
    .dist-legend { grid-template-columns: 1fr; }
    .token-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .mono-sm { max-width: 100%; text-align: left; }
    .step-cta { flex-direction: column; }
    .term-btn { width: 100%; }
    .hero-cta-buttons { flex-direction: column; }
    .hero-cta-buttons .term-btn { width: 100%; }
    .hero-ca { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-ca .copy-btn { margin-left: 0; align-self: flex-end; }
    .hero-ca code { text-align: center; }
    .links-grid { grid-template-columns: 1fr; }
    .hero-content-center { padding: 30px 20px; }
    .hero-art { min-height: 300px; }
    .hero-tagline-main { font-size: 28px; letter-spacing: 1px; }
    .hero-tagline-sub { font-size: 13px; }
    .section-banner { height: 90px; }
    .banner-text { font-size: 10px; bottom: 10px; left: 14px; }
    .bottom-bar { flex-direction: row; justify-content: center; gap: 12px; padding: 10px 16px; }
    .mode-opt { padding: 8px 18px; font-size: 12px; }
    .nav-btn { min-width: 52px; min-height: 52px; font-size: 20px; }
    .terminal-text-block p { font-size: 17px; line-height: 1.7; }
    .dr-main { flex-wrap: wrap; gap: 8px; }
    .dr-value { font-size: 16px; width: 100%; order: 2; }
    .dr-label { order: 1; }
    .dr-note { order: 3; margin-left: 0; width: 100%; text-align: left; }
    .dr-toggle { order: 4; margin-left: auto; }
    .intel-body { font-size: 15px; }
    .ca-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .rewards-box { padding: 16px; }
    .rewards-title { font-size: 18px; }
    .rewards-desc { font-size: 14px; }
}

/* ===== HOME SCREEN (NEW SPX-STYLE) ===== */
.home-screen { display: flex; flex-direction: column; gap: 28px; }
.home-brand { text-align: center; padding: 12px 0 8px; }
.home-logo { width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--blue); box-shadow: 0 0 30px var(--blue-glow); }
.home-version { font-family: var(--mono-font); font-size: 10px; color: var(--gray); letter-spacing: 2px; margin-top: 10px; }
.home-title { font-family: var(--display-font); font-size: 48px; font-weight: 900; color: var(--white); letter-spacing: 6px; text-shadow: 0 0 30px var(--blue-glow); margin-top: 4px; }
.home-tagline { font-family: var(--mono-font); font-size: 12px; color: var(--neon-cyan); letter-spacing: 2px; text-shadow: 0 0 10px var(--neon-cyan-glow); margin-top: 4px; }
.home-menu { display: flex; flex-direction: column; gap: 8px; }
.home-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 6px; background: rgba(40,130,248,0.04); cursor: pointer; transition: all var(--t); }
.home-item:hover { background: var(--bg-card-hover); border-color: var(--border-bright); }
.home-item:active { transform: translateX(6px) scale(0.99); }
.hi-sector { font-family: var(--mono-font); font-size: 10px; color: var(--nvidia-green); letter-spacing: 1px; min-width: 78px; }
.hi-sector::before { content: '> '; opacity: 0.6; }
.hi-title { font-family: var(--display-font); font-size: 18px; color: var(--white); letter-spacing: 2px; flex: 1; }
.hi-arrow { color: var(--blue); font-size: 16px; }
.home-ca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; background: rgba(40,130,248,0.04); }
.home-ca code { color: var(--blue-bright); font-size: 13px; word-break: break-all; }
.home-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== MUSIC PLAYER ===== */
.music-player { position: fixed; bottom: 62px; left: 16px; z-index: 100; display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: 999px; padding: 6px 14px 6px 8px; box-shadow: 0 0 15px rgba(40,130,248,0.2); }
.music-toggle { background: none; border: none; color: var(--blue); cursor: pointer; display: flex; align-items: center; }
.music-toggle:hover { color: var(--blue-bright); }
.music-bars { display: none; align-items: center; gap: 3px; }
.music-bars.playing { display: flex; }
.music-bars span { width: 3px; height: 10px; background: var(--blue); border-radius: 2px; animation: musicBar 0.6s ease infinite alternate; }
.music-bars span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.music-bars span:nth-child(3) { animation-delay: 0.3s; }
.music-bars span:nth-child(4) { animation-delay: 0.45s; height: 12px; }
@keyframes musicBar { from { height: 4px; } to { height: 16px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .particles, .crt-overlay, .scanlines, .vignette { display: none !important; }
}

/* ===== MARKET INTEL (Bust Analysis) ===== */
.intel-summary { background: rgba(40,130,248,0.07); border: 1px solid var(--border-bright); border-radius: 6px; padding: 14px 18px; font-size: 14px; line-height: 1.7; color: var(--gray); margin-bottom: 18px; }
.intel-summary b { color: var(--white); }
.bust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; margin-bottom: 18px; }
.bust-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; position: relative; overflow: hidden; }
.bust-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.bust-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bust-ticker { font-family: var(--display-font); font-size: 20px; font-weight: 800; color: var(--white); }
.bust-name { font-family: var(--mono-font); font-size: 10px; color: var(--gray); }
.bust-badge { margin-left: auto; font-family: var(--mono-font); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.bust-score-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.bust-score-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.bust-score-fill { height: 100%; border-radius: 999px; transition: width 0.8s ease; }
.bust-score-num { font-family: var(--mono-font); font-size: 13px; font-weight: 700; min-width: 44px; text-align: right; }
.bust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-family: var(--mono-font); font-size: 11px; color: var(--gray); }
.bust-stats span { display: flex; justify-content: space-between; }
.bust-stats b { color: var(--white); }
.bust-narrative { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--gray); border-top: 1px solid var(--border); padding-top: 10px; }
.bust-signal { display: inline-block; font-family: var(--mono-font); font-size: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(40,130,248,0.12); border: 1px solid var(--border-bright); color: var(--blue-bright); margin-top: 8px; }
.intel-meta { font-family: var(--mono-font); font-size: 11px; color: var(--gray); margin-bottom: 10px; }
.intel-sources { font-family: var(--mono-font); font-size: 11px; color: var(--gray); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; }
.intel-sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ===== INTEL CHAT ===== */
.ticker-tape { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 10px; font-family: var(--mono-font); font-size: 11px; border-bottom: 1px solid var(--border); margin-bottom: 14px; scrollbar-width: none; }
.ticker-tape::-webkit-scrollbar { display: none; }
.tape-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); cursor: pointer; }
.tape-item:hover { border-color: var(--blue); }
.tape-dot { width: 6px; height: 6px; border-radius: 50%; }
.tape-bust { font-weight: 700; }
.intel-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 820px){ .intel-split { grid-template-columns: 1fr; } }
#tvChart { border-radius: 6px; overflow: hidden; }
.intel-chart-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.chart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chart-ticker { font-family: var(--display-font); font-weight: 800; color: var(--white); }
.chart-price { font-family: var(--mono-font); font-size: 13px; color: var(--white); }
.chart-chg.up { color: #39FF14; } .chart-chg.down { color: #FF1A8C; }
.chart-select { margin-left: auto; background: var(--bg-panel); color: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-family: var(--mono-font); font-size: 11px; }
#intelChart { width: 100%; display: block; }
.chart-foot { font-family: var(--mono-font); font-size: 10px; color: var(--gray); margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.intel-agent { background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.agent-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-family: var(--mono-font); font-size: 11px; font-weight: 700; color: var(--white); border-bottom: 1px solid var(--border); background: rgba(40,130,248,0.08); }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; background: #39FF14; box-shadow: 0 0 8px #39FF14; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:0.5} }
.agent-badge { margin-left: auto; font-size: 10px; color: var(--blue-bright); border: 1px solid var(--border); padding: 2px 8px; border-radius: 999px; }
/* bust extras */
.sent-pill { font-family: var(--mono-font); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-left: 6px; }
.bust-sim { margin-top: 8px; font-family: var(--mono-font); font-size: 11px; color: var(--gray); background: rgba(40,130,248,0.06); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.sim-btn, .ask-btn { font-family: var(--mono-font); font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: rgba(40,130,248,0.1); color: var(--blue-bright); cursor: pointer; margin-left: 6px; }
.sim-btn:hover, .ask-btn:hover { border-color: var(--blue); }
.bust-headlines { margin-top: 6px; font-size: 11px; color: var(--gray); display: flex; flex-direction: column; gap: 2px; }
.bust-actions { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.intel-chat { margin-top: 18px; border: 1px solid var(--border-bright); border-radius: 8px; overflow: hidden; background: var(--bg-card); }
.chat-history { max-height: 360px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.6; }
.chat-msg { padding: 10px 12px; border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.chat-msg.bot { background: rgba(40,130,248,0.08); border: 1px solid var(--border); color: var(--gray); }
.chat-msg.user { background: var(--blue); color: var(--bg); align-self: flex-end; max-width: 85%; }
.chat-msg b { color: var(--white); } .chat-msg.user b { color: var(--bg); }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.chat-input-row input { flex: 1; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; color: var(--white); font-family: var(--mono-font); font-size: 13px; outline: none; }
.chat-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-glow); }
.chat-input-row button { background: var(--blue); color: var(--bg); border: none; border-radius: 6px; padding: 10px 16px; font-family: var(--mono-font); font-weight: 700; cursor: pointer; }
.chat-input-row button:hover { background: var(--blue-bright); }
.chat-suggestions { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--border); }
.chat-suggestions button { background: rgba(40,130,248,0.08); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-family: var(--mono-font); font-size: 11px; color: var(--blue-bright); cursor: pointer; }
.chat-suggestions button:hover { background: rgba(40,130,248,0.15); border-color: var(--blue); }

@media (max-width: 380px) {
    .hero-tagline-main { font-size: 22px; }
    .hero-tagline-sub { font-size: 11px; }
    .panel-title { font-size: 20px; }
}
