:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #242b3d;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff006e;
    --accent-green: #00ff88;
    --accent-yellow: #ffd60a;
    --accent-red: #ff4757;
    --accent-purple: #a855f7;
    --ph-color: #e11d48;
    --bn-color: #2563eb;
    --pn-color: #16a34a;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --live-panel-bg: rgba(17, 24, 39, 0.97);
    --live-panel-border: rgba(255, 71, 87, 0.5);
    --live-panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --live-panel-head-bg: rgba(0, 212, 255, 0.06);
}

[data-theme="light"] {
    --bg-primary: #FAFAF8;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --live-panel-bg: rgba(255, 255, 255, 0.98);
    --live-panel-border: rgba(225, 29, 72, 0.4);
    --live-panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    --live-panel-head-bg: rgba(0, 212, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 110px;
}

.dashboard { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Ticker */
.live-ticker {
    position: sticky; top: 0; z-index: 9000;
    background: linear-gradient(90deg, rgba(225,29,72,0.2), rgba(0,212,255,0.15));
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; height: 36px;
}
.live-ticker.hidden { display: none; }
.live-ticker-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    padding: 8px 0; font-size: 0.85rem; color: var(--text-secondary);
}
.ticker-item { font-family: 'JetBrains Mono', monospace; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.header {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
    padding: 20px 30px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 12px;
    margin-bottom: 30px; box-shadow: var(--shadow-glow);
}
.header-left { display: flex; flex-direction: column; gap: 8px; }
.neuralops-nav { display: flex; gap: 16px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.nav-link:hover { color: var(--accent-cyan); }
h1.logo { margin: 0; font-size: inherit; font-weight: inherit; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2.5rem; filter: drop-shadow(0 0 10px var(--accent-cyan)); }
.logo-text { font-family: 'Orbitron', monospace; font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.logo-text .accent { color: var(--accent-cyan); text-shadow: 0 0 20px var(--accent-cyan); }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.countdown-box { display: flex; flex-direction: column; align-items: flex-end; }
.countdown-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.countdown-value { font-family: 'Orbitron', monospace; font-size: 0.95rem; font-weight: 700; color: var(--accent-cyan); }
.campaign-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: rgba(255, 214, 10, 0.12);
    border: 1px solid var(--accent-yellow); border-radius: 20px;
}
.campaign-dot {
    width: 10px; height: 10px; background: var(--accent-yellow);
    border-radius: 50%; animation: blink 1.5s infinite;
}
.campaign-text { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; color: var(--accent-yellow); }
.header-controls { display: flex; gap: 8px; }
.ctrl-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-primary); cursor: pointer; font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.ctrl-btn:hover { border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.refresh-info { font-size: 0.85rem; color: var(--text-muted); }
.main-content { display: flex; flex-direction: column; gap: 30px; }

/* Hero countdown */
.final-hero-countdown {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 28px 30px; border-radius: 16px;
    border: 2px solid rgba(225, 29, 72, 0.35);
    background: linear-gradient(135deg, rgba(225,29,72,0.1) 0%, rgba(37,99,235,0.1) 50%, rgba(22,163,74,0.08) 100%);
    box-shadow: 0 0 32px rgba(225, 29, 72, 0.1);
}
.final-hero-eyebrow {
    display: inline-block; font-family: 'Orbitron', monospace;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    color: var(--accent-cyan); margin-bottom: 8px;
}
.final-hero-matchup { font-family: 'Orbitron', monospace; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 900; margin-bottom: 6px; }
.final-hero-date { color: var(--text-secondary); font-size: 0.92rem; }
.final-hero-sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.watch-final-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 11px 20px; border-radius: 999px;
    border: 1px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(168,85,247,0.14));
    color: var(--text-primary); font-family: 'Orbitron', monospace;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.watch-final-btn::after { content: '↓'; font-size: 0.9rem; color: var(--accent-cyan); }
.watch-final-btn:hover { transform: translateY(-1px); border-color: var(--accent-purple); box-shadow: 0 0 18px rgba(0,212,255,0.22); }
.countdown-blocks { display: flex; align-items: center; gap: 8px; }
.cd-block { text-align: center; min-width: 64px; }
.cd-value { display: block; font-family: 'Orbitron', monospace; font-size: 2.2rem; font-weight: 900; color: var(--accent-cyan); line-height: 1; }
.cd-block em { font-style: normal; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cd-sep { font-family: 'Orbitron', monospace; font-size: 1.8rem; color: var(--text-muted); padding-bottom: 16px; }

/* Section titles */
.section-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700;
    letter-spacing: 0.06em; margin-bottom: 16px;
}
.section-title .icon { font-size: 1.2rem; }
.section-sub { color: var(--text-muted); font-size: 0.85rem; margin: -8px 0 16px; }

/* Composition */
.composition-layout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.composition-bars {
    position: relative; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: 12px; padding: 24px;
}
.comp-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.comp-bar-label { width: 32px; font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.85rem; }
.comp-bar-track { flex: 1; height: 28px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; }
[data-theme="light"] .comp-bar-track { background: rgba(0,0,0,0.06); }
.comp-bar-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.comp-bar-value { width: 28px; text-align: right; font-family: 'Orbitron', monospace; font-weight: 700; }
.majority-marker {
    position: absolute; top: 16px; bottom: 16px; width: 2px;
    background: var(--accent-yellow); transform: translateX(-50%); pointer-events: none;
}
.majority-marker span {
    position: absolute; top: -4px; left: 6px; font-size: 0.65rem;
    color: var(--accent-yellow); font-family: 'Orbitron', monospace; white-space: nowrap;
}
.composition-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; text-align: center; min-width: 120px;
}
.stat-value { font-family: 'Orbitron', monospace; font-size: 1.6rem; font-weight: 900; color: var(--accent-cyan); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Party colors */
.party-PH, .seat-party.party-PH, .comp-bar-label.party-PH { color: var(--ph-color); }
.party-BN, .seat-party.party-BN, .comp-bar-label.party-BN { color: var(--bn-color); }
.party-PN, .seat-party.party-PN, .comp-bar-label.party-PN { color: var(--pn-color); }

/* Live Results */
.live-results-section { border: 2px solid var(--border-color); border-radius: 14px; padding: 24px; background: var(--bg-secondary); }
.live-results-section.is-active { border-color: rgba(255, 71, 87, 0.5); box-shadow: 0 0 24px rgba(255, 71, 87, 0.12); }
.live-results-section.is-standby { border-style: dashed; }
.live-results-section.is-demo { border-color: rgba(255, 214, 10, 0.45); }
.live-results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live-results-head .section-title { margin-bottom: 0; }
.live-results-badge {
    font-family: 'Orbitron', monospace; font-size: 0.7rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(100, 116, 139, 0.2); color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.live-results-badge.is-live {
    background: rgba(255, 71, 87, 0.2); color: var(--accent-red);
    border-color: var(--accent-red); animation: pulse 2s infinite;
}
.live-results-panel { margin-top: 12px; }
.live-standby { text-align: center; padding: 32px 20px; }
.live-standby-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.live-standby h3 { font-family: 'Orbitron', monospace; margin-bottom: 8px; }
.live-standby p { color: var(--text-muted); margin-bottom: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
.live-demo-link {
    display: inline-block; padding: 10px 18px; border-radius: 999px;
    border: 1px solid var(--accent-cyan); color: var(--accent-cyan);
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
}
.live-demo-link:hover { background: rgba(0, 212, 255, 0.1); }
.live-demo-banner {
    text-align: center; padding: 8px; margin-bottom: 14px; border-radius: 8px;
    background: rgba(255, 214, 10, 0.15); color: var(--accent-yellow);
    font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 700;
}
.live-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.live-total-card {
    text-align: center; padding: 18px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.live-total-card.is-leading { border-color: var(--accent-cyan); box-shadow: 0 0 16px rgba(0, 212, 255, 0.15); }
.live-total-party { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1rem; display: block; }
.live-total-value { font-family: 'Orbitron', monospace; font-size: 2.4rem; font-weight: 900; display: block; line-height: 1.1; }
.live-total-label { font-size: 0.75rem; color: var(--text-muted); }
.live-majority-badge {
    display: inline-block; margin-top: 6px; font-size: 0.65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green); border: 1px solid var(--accent-green);
}
.live-meta-row {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px;
    font-size: 0.85rem; color: var(--text-secondary);
}
.live-results-chart { height: 200px; margin-bottom: 16px; }
.live-seats-feed { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.live-seat-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,0.12);
    font-size: 0.85rem; border-left: 3px solid var(--border-color);
}
[data-theme="light"] .live-seat-row { background: rgba(0,0,0,0.04); }
.live-seat-row.status-declared { border-left-color: var(--accent-green); }
.live-seat-row.status-counting { border-left-color: var(--accent-yellow); animation: pulse 2s infinite; }
.live-seat-status { font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }
.live-seat-winner { font-family: 'Orbitron', monospace; font-weight: 900; }
.live-seat-votes { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.live-feed-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 16px; }
.campaign-indicator.is-live-mode {
    background: rgba(255, 71, 87, 0.2); border-color: var(--accent-red);
}
.campaign-indicator.is-live-mode .campaign-dot { background: var(--accent-red); }
.campaign-indicator.is-live-mode .campaign-text { color: var(--accent-red); }
.composition-live-note { margin-top: 12px; font-size: 0.8rem; color: var(--accent-red); font-family: 'Orbitron', monospace; }
.seat-live-badge {
    position: absolute; bottom: 6px; right: 6px; font-size: 0.6rem; font-weight: 700;
    padding: 2px 6px; border-radius: 6px;
}
.seat-live-badge.declared { background: rgba(0, 255, 136, 0.2); color: var(--accent-green); }
.seat-live-badge.counting { background: rgba(255, 214, 10, 0.2); color: var(--accent-yellow); animation: blink 1s infinite; }
.seat-card.has-live-declared { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
.seat-card.has-live-counting { box-shadow: 0 0 10px rgba(255, 214, 10, 0.15); }
.modal-live { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.modal-live h3 { font-size: 0.9rem; color: var(--accent-red); margin-bottom: 8px; }

/* Monte Carlo */
.montecarlo-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; }
.mc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mc-stat { text-align: center; padding: 14px; border-radius: 10px; background: rgba(0,0,0,0.12); border: 1px solid var(--border-color); }
[data-theme="light"] .mc-stat { background: rgba(0,0,0,0.04); }
.mc-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.mc-stat-value { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; }
.mc-hung .mc-stat-value { color: var(--accent-yellow); }
.mc-hung.is-high .mc-stat-value { color: #f87171; }
.mc-hung-warn { font-size: 1.2rem; margin-left: 4px; }
.mc-hung-high { border: 1px solid rgba(248,113,113,0.3); border-radius: 10px; padding: 2px; }
.mc-ci { font-size: 0.62rem; font-weight: 500; color: var(--text-muted); font-family: 'Rajdhani', sans-serif; }
.mc-expected {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-bottom: 16px; font-size: 0.9rem; color: var(--text-secondary);
}
.mc-expected em { color: var(--text-muted); font-style: normal; }
.mc-outcomes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mc-outcome-row {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px;
    border-radius: 8px; background: rgba(0,0,0,0.1); font-size: 0.85rem;
}
[data-theme="light"] .mc-outcome-row { background: rgba(0,0,0,0.04); }
.mc-outcome-row.is-majority { border-left: 3px solid transparent; }
.mc-outcome-row.is-majority .party-PH { font-weight: 700; }
.mc-outcome-row.is-hung { border-left: 3px solid rgba(248,113,113,0.5); opacity: 0.85; }
.mc-outcome-tag { font-size: 0.62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: 0.05em; }
.mc-outcome-row .mc-outcome-tag { background: rgba(22,163,74,0.15); color: #4ade80; }
.mc-outcome-row.is-hung .mc-outcome-tag { background: rgba(248,113,113,0.15); color: #f87171; }
.mc-rank { font-family: 'Orbitron', monospace; font-size: 0.7rem; color: var(--text-muted); width: 24px; }
.mc-prob { margin-left: auto; font-family: 'Orbitron', monospace; font-weight: 700; color: var(--accent-cyan); }

/* Spinometer */
.mc-spinometer { margin-bottom: 16px; }
.spinometer-bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.spinometer-seg { display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; transition: width 0.5s; }
.spinometer-seg.party-PH { background: var(--ph-color); }
.spinometer-seg.party-BN { background: var(--bn-color); }
.spinometer-seg.party-PN { background: var(--pn-color); }
.spinometer-label { text-align: center; font-size: 0.78rem; margin-top: 6px; color: var(--text-muted); }
.mc-chart { height: 260px; margin-bottom: 14px; }
.mc-rerun-btn {
    display: block; margin: 0 auto; padding: 10px 22px; border-radius: 999px;
    border: 1px solid var(--accent-cyan); background: transparent;
    color: var(--text-primary); font-family: 'Orbitron', monospace;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.mc-rerun-btn:hover { background: rgba(0, 212, 255, 0.1); }
.mc-rerun-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gpt-label {
    display: inline-flex; align-items: center; justify-content: center;
    width: max-content; padding: 3px 8px; border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.14); color: var(--accent-purple);
    font-family: 'Orbitron', monospace; font-size: 0.58rem; font-weight: 900;
    letter-spacing: 0.08em; text-transform: uppercase;
}

/* Simulation controls */
.simulation-controls-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.35); border-radius: 14px; padding: 22px;
}
.simulation-controls-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.simulation-controls-head .section-title { margin-bottom: 0; }
.sim-reset-btn {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-family: 'Orbitron', monospace;
    font-size: 0.68rem; font-weight: 800; cursor: pointer; text-transform: uppercase;
}
.sim-reset-btn:hover { color: var(--text-primary); border-color: var(--accent-purple); }
.sim-controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.sim-control-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.sim-control-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sim-control-top label { font-weight: 800; font-size: 0.92rem; }
.sim-control-value { font-family: 'JetBrains Mono', monospace; color: var(--accent-cyan); font-size: 0.78rem; white-space: nowrap; }
.sim-input[type="range"] { width: 100%; accent-color: var(--accent-purple); }
.sim-input:not([type="range"]) {
    width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-primary); font-family: 'Rajdhani', sans-serif; font-weight: 700;
}
.sim-suggestion-btn {
    width: max-content; padding: 6px 10px; border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.08);
    color: var(--accent-cyan); font-family: 'Orbitron', monospace; font-size: 0.58rem;
    font-weight: 900; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em;
}
.sim-suggestion-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
.suggestion-modal { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; padding: 16px; }
.suggestion-modal.hidden { display: none; }
.suggestion-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.suggestion-card {
    position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--bg-secondary); border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 14px; padding: 24px; box-shadow: var(--live-panel-shadow);
}
.suggestion-close {
    position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
    border: none; border-radius: 8px; background: var(--bg-card); color: var(--text-primary);
    font-size: 1.2rem; cursor: pointer;
}
.suggestion-card h2 { font-family: 'Orbitron', monospace; font-size: 1.05rem; margin: 12px 34px 14px 0; }
.suggestion-card h3 { font-size: 0.85rem; color: var(--accent-cyan); margin: 14px 0 8px; }
.suggestion-card p { color: var(--text-secondary); line-height: 1.5; font-size: 0.9rem; margin-top: 12px; }
.suggestion-card em { display: block; color: var(--text-muted); font-style: normal; font-size: 0.78rem; margin-top: 14px; }
.suggestion-metric {
    display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid var(--border-color); font-size: 0.88rem;
}
.suggestion-metric span { color: var(--text-muted); }
.suggestion-metric strong { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; text-align: right; }
.suggestion-links { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-links a {
    padding: 7px 10px; border-radius: 999px; border: 1px solid var(--border-color);
    color: var(--accent-cyan); text-decoration: none; font-size: 0.78rem; font-weight: 800;
}
.suggestion-links a:hover { border-color: var(--accent-cyan); background: rgba(0, 212, 255, 0.08); }

/* GPT regression lab */
.regression-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.regression-section-head .section-title { margin-bottom: 0; }
.regression-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.regression-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 16px; transition: transform 0.2s, border-color 0.2s;
}
.regression-card:hover { transform: translateY(-2px); border-color: var(--accent-purple); }
.regression-card.party-PH { border-top: 3px solid var(--ph-color); }
.regression-card.party-BN { border-top: 3px solid var(--bn-color); }
.regression-card.party-PN { border-top: 3px solid var(--pn-color); }
.regression-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.regression-id { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 900; color: var(--accent-cyan); }
.regression-card h3 { font-size: 1rem; line-height: 1.2; margin-bottom: 12px; }
.regression-leader { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.regression-leader strong { font-family: 'Orbitron', monospace; }
.regression-seatline { display: flex; flex-wrap: wrap; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; margin-bottom: 12px; }
.regression-bars { display: flex; flex-direction: column; gap: 6px; }
.regression-bar-row { display: grid; grid-template-columns: 28px 1fr 22px; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-secondary); }
.regression-bar-row div { height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
[data-theme="light"] .regression-bar-row div { background: rgba(0,0,0,0.06); }
.regression-bar-row em { display: block; height: 100%; border-radius: 999px; }
.regression-bar-row b { font-family: 'Orbitron', monospace; color: var(--text-primary); }
.regression-meta { margin-top: 10px; color: var(--text-muted); font-size: 0.75rem; text-align: right; }

/* News live */
.news-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.news-section-head .section-title { margin-bottom: 0; }
.news-live-badge {
    font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700;
    padding: 4px 10px; border-radius: 12px;
    background: rgba(0, 255, 136, 0.12); color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.35);
}
.news-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; }

/* Projections */
.projection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.projection-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 20px; transition: border-color 0.2s, transform 0.2s;
}
.projection-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.projection-card.scenario-a { border-top: 3px solid var(--ph-color); }
.projection-card.scenario-b { border-top: 3px solid var(--bn-color); }
.projection-card.scenario-c { border-top: 3px solid var(--accent-yellow); }
.projection-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.projection-id { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.2rem; color: var(--accent-cyan); }
.projection-prob { font-family: 'Orbitron', monospace; font-weight: 700; color: var(--accent-yellow); }
.projection-prob.prob-up { color: #4ade80; }
.projection-prob.prob-down { color: #f87171; }
.projection-adj { font-family: 'Orbitron', monospace; font-size: 0.72rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.projection-adj.adj-up { color: #4ade80; background: rgba(74,222,128,0.12); }
.projection-adj.adj-down { color: #f87171; background: rgba(248,113,113,0.12); }
.projection-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.projection-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.projection-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.projection-mb { font-size: 0.85rem; color: var(--text-secondary); }
.chart-wrapper { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.projection-chart { height: 280px; }
.sentiment-chart { height: 220px; }

/* Seat grid */
.seats-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seats-count {
    font-family: 'Orbitron', monospace; font-size: 0.85rem;
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 4px 12px; border-radius: 20px;
}
.seat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.seat-filter, .fixture-filter {
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    color: var(--text-secondary); font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.seat-filter.active, .seat-filter:hover { border-color: var(--accent-cyan); color: var(--text-primary); background: rgba(0,212,255,0.1); }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.seat-card {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 12px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--bg-card); cursor: pointer; text-align: left;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit; color: inherit;
}
.seat-card:hover { transform: translateY(-2px); border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }
.seat-card.party-PH { border-left: 3px solid var(--ph-color); }
.seat-card.party-BN { border-left: 3px solid var(--bn-color); }
.seat-card.party-PN { border-left: 3px solid var(--pn-color); }
.seat-card.is-battleground { box-shadow: 0 0 12px rgba(255,214,10,0.2); }
.seat-code { font-family: 'Orbitron', monospace; font-size: 0.7rem; color: var(--text-muted); }
.seat-name { font-weight: 700; font-size: 0.95rem; }
.seat-party { font-family: 'Orbitron', monospace; font-size: 0.75rem; font-weight: 700; }
.seat-margin { font-size: 0.8rem; color: var(--text-muted); }
.seat-bg-badge { position: absolute; top: 8px; right: 8px; font-size: 0.75rem; }
.seat-lean { font-size: 0.65rem; color: var(--accent-yellow); font-family: 'JetBrains Mono', monospace; }

/* War room track */
.warroom-layout { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.warroom-seats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.warroom-seat {
    width: 28px; height: 28px; border-radius: 4px; font-size: 0.55rem;
    display: flex; align-items: center; justify-content: center;
}
.warroom-seat.party-PH { background: var(--ph-color); }
.warroom-seat.party-BN { background: var(--bn-color); }
.warroom-seat.party-PN { background: var(--pn-color); }
.warroom-seat.is-majority-line { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.warroom-labels { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.warroom-label { font-family: 'Orbitron', monospace; font-size: 0.85rem; font-weight: 700; }
.warroom-majority-note { font-size: 0.85rem; color: var(--text-muted); }
.warroom-legend { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }

/* Sentiment */
.sentiment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sentiment-party-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; margin-bottom: 12px;
}
.sentiment-party-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.sentiment-party-value { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; }
.sentiment-party-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-top: 8px; overflow: hidden; }
[data-theme="light"] .sentiment-party-bar { background: rgba(0,0,0,0.06); }
.sentiment-party-bar div { height: 100%; border-radius: 3px; transition: width 0.5s; }
.sentiment-period { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.news-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 16px; text-decoration: none; color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.news-card-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.news-source { font-size: 0.75rem; color: var(--accent-cyan); font-weight: 600; text-transform: uppercase; }
.news-date { font-size: 0.75rem; color: var(--text-muted); }
.news-title { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tag {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 12px;
    background: rgba(0,212,255,0.1); color: var(--text-muted);
}
.news-card.sentiment-ph_positive { border-left: 3px solid var(--ph-color); }
.news-card.sentiment-bn_positive { border-left: 3px solid var(--bn-color); }
.news-card.sentiment-pn_positive { border-left: 3px solid var(--pn-color); }

/* History */
.history-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.history-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 18px;
}
.history-year { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 900; color: var(--accent-cyan); }
.history-label { font-size: 1rem; font-weight: 700; margin: 6px 0; }
.history-seats, .history-pv, .history-mb { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.history-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
.context-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; padding: 20px; border-left: 3px solid var(--accent-yellow);
}
.context-box h3 { font-family: 'Orbitron', monospace; font-size: 0.9rem; margin-bottom: 10px; }
.context-box ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.context-dates { margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-cyan); }

/* Neural section */
.neural-sub { color: var(--text-muted); font-size: 0.85rem; margin: -8px 0 16px; }
.neural-flow { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 20px; }
.neural-block {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 10px; transition: border-color 0.3s, box-shadow 0.3s;
}
.neural-block.active { border-color: var(--accent-cyan); box-shadow: 0 0 16px rgba(0,212,255,0.2); }
.neural-block span { font-size: 1.4rem; }
.neural-block em { font-style: normal; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.neural-connector { width: 32px; height: 2px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); }
.neural-output-row { display: grid; grid-template-columns: 1fr 280px; gap: 16px; }
.neural-terminal {
    background: #0d1117; border: 1px solid var(--border-color); border-radius: 10px;
    padding: 14px; height: 160px; overflow-y: auto;
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--accent-green);
}
[data-theme="light"] .neural-terminal { background: #1e293b; }
.terminal-line { margin-bottom: 4px; opacity: 0.9; }
.neural-champion { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 20px; }
.neural-pick { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.neural-pick-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.neural-pick-value { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900; color: var(--ph-color); }
.neural-pick-detail { font-weight: 700; }
.neural-pick-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); }

/* Floating war room panel */
.war-room-anchor { height: 0; scroll-margin-top: 88px; }

.live-matches-section.is-floating-panel {
    position: fixed; z-index: 9100;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: auto; top: 50%;
    max-width: 520px; margin: 0 auto;
    background: var(--live-panel-bg);
    border: 2px solid var(--live-panel-border);
    border-radius: 14px;
    box-shadow: var(--live-panel-shadow);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s;
}
.live-matches-section.is-floating-panel.is-positioned {
    bottom: auto;
}
.live-matches-section.is-floating-panel.is-dragging { cursor: grabbing; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.live-matches-section.is-floating-panel.is-dragging,
.live-matches-section.is-floating-panel.is-dragging * { user-select: none; }

.live-section-head {
    display: flex; align-items: stretch;
    background: var(--live-panel-head-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}
.live-section-drag {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 44px; border: none; border-right: 1px solid var(--border-color);
    background: transparent; color: var(--text-muted); cursor: grab; padding: 8px 4px;
}
.live-section-drag:active { cursor: grabbing; }
.live-section-drag-icon { font-size: 0.9rem; letter-spacing: -2px; line-height: 1; }
.live-section-drag-label { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; margin-top: 2px; }
.live-section-toggle {
    flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 14px; border: none; background: transparent;
    color: var(--text-primary); cursor: pointer; text-align: left; font-family: inherit;
}
.live-section-title { font-family: 'Orbitron', monospace; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; }
.live-section-hint { font-size: 0.78rem; color: var(--text-muted); flex: 1; min-width: 140px; }
.final-live-pill {
    font-family: 'Orbitron', monospace; font-size: 0.65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 12px;
    background: rgba(255,71,87,0.2); color: var(--accent-red);
    border: 1px solid rgba(255,71,87,0.4);
}
.live-section-chevron { font-size: 0.9rem; color: var(--text-muted); margin-left: auto; }
.live-section-body { padding: 14px; max-height: 60vh; overflow-y: auto; }
.live-section-body.is-collapsed { display: none; }

.live-matches-section.is-panel-collapsed .live-section-hint { display: inline; }
.live-matches-section.is-panel-collapsed .final-live-pill { display: inline; }
.live-matches-section.is-panel-collapsed { max-width: min(480px, calc(100vw - 24px)); }
.live-matches-section.is-panel-collapsed .live-section-head { border-radius: 12px; border-bottom: none; }
.live-matches-section.is-panel-collapsed .live-section-toggle { padding: 10px 14px; }

.warroom-panel-grid { display: flex; flex-direction: column; gap: 10px; }
.warroom-seat-card {
    background: rgba(0,0,0,0.14); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 12px;
}
[data-theme="light"] .warroom-seat-card { background: rgba(0,0,0,0.04); }
.warroom-seat-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.warroom-lean { font-size: 0.7rem; color: var(--accent-yellow); font-family: 'JetBrains Mono', monospace; }
.warroom-prob-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 0.78rem; }
.warroom-prob-row span:first-child { width: 24px; font-weight: 700; }
.warroom-prob-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.warroom-prob-bar div { height: 100%; border-radius: 3px; }
.warroom-margin { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.warroom-scenario-mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.scenario-mini { display: flex; flex-direction: column; gap: 4px; }
.scenario-mini-label { font-family: 'Orbitron', monospace; font-size: 0.75rem; color: var(--accent-cyan); }
.scenario-mini-seats { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-secondary); }

/* Seat modal */
.seat-modal { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.seat-modal.hidden { display: none; }
.seat-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.seat-modal-card {
    position: relative; background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 28px; max-width: 440px; width: calc(100% - 32px);
    box-shadow: var(--live-panel-shadow);
}
.seat-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: var(--bg-card); color: var(--text-primary);
    font-size: 1.2rem; cursor: pointer;
}
.seat-modal-card h2 { font-family: 'Orbitron', monospace; font-size: 1.1rem; margin-bottom: 8px; }
.modal-region { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.modal-stats { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.modal-projection { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.modal-projection h3 { font-size: 0.9rem; color: var(--accent-cyan); margin-bottom: 8px; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

/* Responsive */
@media (max-width: 900px) {
    .composition-layout { grid-template-columns: 1fr; }
    .projection-grid { grid-template-columns: 1fr; }
    .sentiment-layout { grid-template-columns: 1fr; }
    .neural-output-row { grid-template-columns: 1fr; }
    .header { flex-direction: column; align-items: flex-start; }
    .live-totals { grid-template-columns: 1fr; }
    .mc-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .final-hero-countdown { flex-direction: column; align-items: flex-start; }
    .countdown-blocks { width: 100%; justify-content: center; }
    .seat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .live-matches-section.is-floating-panel { max-width: calc(100vw - 16px); }
    .live-matches-section.is-panel-collapsed .live-section-hint { font-size: 0.72rem; }
    .cd-value { font-size: 1.6rem; }
}

[data-theme="light"] .live-matches-section.is-panel-collapsed .live-section-hint { color: var(--text-secondary); }
[data-theme="light"] .live-section-drag { border-right-color: var(--border-color); }

/* ── Social Media Sentiment ── */

.social-sentiment-section { margin-bottom: 28px; }

.social-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.social-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.social-summary-card.party-PH { border-top: 3px solid var(--ph-color); }
.social-summary-card.party-BN { border-top: 3px solid var(--bn-color); }
.social-summary-card.party-PN { border-top: 3px solid var(--pn-color); }

.social-summary-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.social-summary-value { font-family: 'Orbitron', monospace; font-size: 2rem; font-weight: 900; }
.social-summary-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-top: 10px; overflow: hidden; }
[data-theme="light"] .social-summary-bar { background: rgba(0,0,0,0.06); }
.social-summary-bar div { height: 100%; border-radius: 3px; transition: width 0.6s; }

.social-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.social-platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    transition: border-color 0.2s, transform 0.2s;
}

.social-platform-card:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }

.social-platform-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    background: rgba(0,212,255,0.12);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.social-platform-name { font-weight: 700; font-size: 1rem; }
.social-platform-volume { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.social-platform-bars { display: flex; flex-direction: column; gap: 8px; }

.social-platform-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.social-platform-bar-row .party-label { width: 28px; font-weight: 700; }
.social-platform-bar-row .bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
[data-theme="light"] .social-platform-bar-row .bar-track { background: rgba(0,0,0,0.06); }
.social-platform-bar-row .bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.social-platform-bar-row .bar-pct { width: 44px; text-align: right; font-family: 'Orbitron', monospace; font-size: 0.8rem; }

.social-platform-top {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-platform-top strong { font-family: 'Orbitron', monospace; }

.social-disclaimer { display: block; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }

/* Collapsible section */
.is-collapsible .collapsible-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.is-collapsible .collapsible-header .section-title { margin: 0; flex: 1; }
.is-collapsible .collapsible-chevron { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s; }
.is-collapsible:not(.is-collapsed) .collapsible-chevron { transform: rotate(90deg); }

.is-collapsible .collapsible-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s, padding 0.3s; }
.is-collapsible.is-collapsed .collapsible-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.is-collapsible:not(.is-collapsed) .collapsible-body { max-height: 3000px; opacity: 1; padding-top: 16px; }

/* Social providers grid */
.social-providers { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.social-providers h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.social-providers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.social-provider-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.social-provider-card .provider-name { font-weight: 700; font-size: 0.88rem; }
.social-provider-card .provider-cost { font-size: 0.76rem; color: var(--text-muted); }
.social-provider-card .provider-status { font-size: 0.72rem; }
.provider-status:contains("Available") { color: #16a34a; }
.provider-status:contains("Limited") { color: #f59e0b; }
.provider-status:contains("Commercial") { color: #6366f1; }

/* Disclaimer banner — merah bold */
.social-disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-left: 4px solid #e11d48;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.social-disclaimer-banner .disclaimer-icon {
    font-size: 1.2rem;
    color: #e11d48;
    flex-shrink: 0;
    line-height: 1.4;
}

.social-disclaimer-banner em {
    color: #fca5a5;
    font-weight: 700;
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.5;
}

[data-theme="light"] .social-disclaimer-banner em { color: #be123c; }

.social-disclaimer { display: none; }

@media (max-width: 900px) {
    .social-summary { grid-template-columns: 1fr; }
}

/* ── Method sections (3 unjuran berbeza) ── */

.method-scenario {
    border-left: 4px solid #00d4ff;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-montecarlo {
    border-left: 4px solid #8b5cf6;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-regression {
    border-left: 4px solid #16a34a;
    padding-left: 20px;
    border-radius: 0 12px 12px 0;
}

.method-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.method-scenario .method-tag { background: rgba(0,212,255,0.15); color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.method-montecarlo .method-tag { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.method-regression .method-tag { background: rgba(22,163,74,0.15); color: #4ade80; border: 1px solid rgba(22,163,74,0.3); }

/* ── Export PDF bar ── */

.export-report-bar {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 28px;
}

.export-pdf-btn {
    background: linear-gradient(135deg, #00d4ff, #8338ec);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}

.export-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,255,0.3);
}

.export-pdf-btn:active { transform: translateY(0); }

/* ── Print/PDF styles ── */

@media print {
    .live-ticker, .header-right, .campaign-indicator, .war-room-panel,
    .cyber-globe-wrapper, #cyber-network-root, .seat-modal, .suggestion-modal,
    .live-results-section, .simulation-controls-section, .news-section,
    .social-sentiment-section, .seat-filters, .export-report-bar,
    .sim-suggestion-btn, .mc-rerun-btn, .seat-modal, #liveTicker,
    .ainna-skip-link, footer, .cookie-consent { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .dashboard { max-width: 100% !important; }

    .method-scenario, .method-montecarlo, .method-regression {
        border-left: 4px solid #666;
        page-break-inside: avoid;
        margin-bottom: 20px;
        padding: 10px 15px;
    }

    .projection-card, .regression-card, .mc-outcome-row {
        border: 1px solid #ccc !important;
        background: #f8f8f8 !important;
        color: #000 !important;
    }

    .section-title { color: #000 !important; }
    .method-tag { border: 1px solid #999 !important; }
    .composition-bars, .warroom-track { color: #000 !important; }
}
