:root {
    --bg-dark: #050a0f;
    --bg-panel: rgba(14, 20, 30, 0.9);
    --border-glass: rgba(197, 160, 89, 0.15);
    --border-hover: rgba(197, 160, 89, 0.5);
    --gold: #d4af37;
    --gold-dim: #b8860b;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --crimson: #c62828;
    --crimson-glow: rgba(198, 40, 40, 0.5);
    --neon-yellow: #ffdd00;
    --neon-purple: #9c27b0;
    --neon-green: #2e7d32;
    --text-main: #f5f5f5;
    --text-muted: #8d99ae;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Rajdhani', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
}

#particle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0.4;
}

/* Utilities */
.text-gold { color: var(--gold) !important; text-shadow: 0 0 6px var(--gold-glow); }
.text-gold { color: var(--gold) !important; text-shadow: 0 0 6px var(--gold-glow); } /* Backward compatibility */
.text-red { color: var(--crimson) !important; text-shadow: 0 0 6px var(--crimson-glow); }
.text-yellow { color: var(--neon-yellow) !important; }
.text-green { color: var(--neon-green) !important; }
.text-purple { color: var(--neon-purple) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Layout */
.app-container {
    display: flex; height: 100vh; padding: 0.75rem; gap: 0.75rem;
    position: relative; z-index: 10;
}

/* Sidebar */
.sidebar {
    width: 270px; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0a0e14 0%, #050a0f 100%);
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem; gap: 1.25rem;
}

.brand { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(197, 160, 89, 0.1); }
.logo-icon { position: relative; width: 60px; height: 60px; margin: 0 auto 0.75rem; }
.logo-ring {
    position: absolute; inset: 0; border: 2px solid var(--gold);
    border-radius: 50%; animation: spin 8s linear infinite;
    box-shadow: 0 0 15px var(--gold-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}
.brand h1 { font-family: var(--font-display); font-size: 1rem; color: var(--gold); letter-spacing: 3px; }
.version { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold-dim); letter-spacing: 1px; }



/* Nav */
.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; margin-top: 1rem; }
.nav-btn {
    background: rgba(255,255,255,0.02); border: 1px solid transparent; color: var(--text-muted);
    text-align: left; padding: 0.75rem 1rem; font-family: var(--font-sans); font-size: 0.85rem;
    font-weight: 500; cursor: pointer; border-radius: 8px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 0.75rem;
}
.nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.nav-label { flex: 1; letter-spacing: 0.5px; }
.nav-arrow { opacity: 0; transition: opacity 0.2s; color: var(--gold); }
.nav-btn:hover .nav-arrow { opacity: 1; }
.nav-btn:hover { color: var(--text-main); background: rgba(197, 160, 89, 0.05); border-color: rgba(197, 160, 89, 0.2); }
.nav-btn.active {
    color: #fff; background: linear-gradient(90deg, rgba(197,160,89,0.2) 0%, rgba(197,160,89,0.05) 100%);
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.badge-new {
    background: var(--neon-red); color: #fff; font-size: 0.55rem; padding: 1px 5px;
    border-radius: 3px; text-transform: uppercase; font-weight: bold; animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse-icon { animation: pulse-badge 1.5s infinite; }

/* Sidebar Stats */
.sidebar-stats {
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: 1rem; background: rgba(197, 160, 89, 0.03); border-radius: 10px; border: 1px solid rgba(197, 160, 89, 0.1);
}
.stat-mini { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; }
.stat-label { color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }

/* VIP Status */
.vip-status {
    padding: 1rem; border-top: 1px solid rgba(197, 160, 89, 0.1);
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    font-family: var(--font-display); font-size: 0.75rem; text-align: center;
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; }
.status-indicator.offline { background: var(--crimson); box-shadow: 0 0 12px var(--crimson); }
.status-indicator.online { background: #00e676; box-shadow: 0 0 12px #00e676; }

/* Main */
.main-content { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1.25rem; height: 50px; min-height: 50px;
    background: var(--bg-panel); border: 1px solid var(--border-glass); border-radius: 10px;
}
.system-status { display: flex; gap: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; align-items: center; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.online { background: #00e676; box-shadow: 0 0 8px #00e676; }
.pulse-dot { animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 6px rgba(0,230,118,0.4); } 50% { box-shadow: 0 0 18px rgba(0,230,118,0.8); } }
.label { color: var(--text-muted); margin-right: 4px; }
.topbar-right { font-family: var(--font-mono); font-size: 0.75rem; }
.live-users { display: flex; align-items: center; gap: 6px; }

/* Content */
.content-area { flex: 1; overflow-y: auto; padding-right: 4px; }
.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.view-section { display: none; animation: fadeIn 0.3s ease; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-header { margin-bottom: 1.25rem; }
.section-header h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.bracket { color: var(--gold); }
.section-header p { color: var(--text-muted); font-size: 0.85rem; }

/* Platform Grid */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.platform-card {
    position: relative; padding: 1.25rem; border-radius: 10px; overflow: hidden;
    background: var(--bg-panel); border: 1px solid var(--border-glass);
    transition: all 0.4s ease; display: flex; flex-direction: column;
}
.platform-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 60%);
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
.platform-card:hover .card-glow { opacity: 1; }
.platform-card.good { border-color: #00c853; box-shadow: 0 0 15px rgba(0,200,83,0.15); }
.platform-card.medium { border-color: #ffd43b; box-shadow: 0 0 15px rgba(255,212,59,0.15); }
.platform-card.cold { border-color: #ff5252; box-shadow: 0 0 15px rgba(255,82,82,0.15); }

.plat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.plat-header h3 { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 2px; }
.trend-indicator { font-family: var(--font-mono); font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.75rem; }
.mini-stat { display: flex; flex-direction: column; }
.ms-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.ms-value { font-family: var(--font-mono); font-size: 0.85rem; }

.heat-bar-container { width: 100%; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-bottom: 0.75rem; overflow: hidden; }
.heat-bar { height: 100%; background: var(--text-muted); transition: width 1.5s ease, background 0.5s ease; border-radius: 2px; }
/* Heat bar colors are set securely inside app.js */

/* Assertiveness Panel */
.assertiveness-panel { padding: 1rem; }
.assert-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; }
.assert-bars { display: flex; gap: 3px; height: 40px; align-items: flex-end; }
.assert-bar { flex: 1; border-radius: 2px 2px 0 0; transition: height 0.5s ease; min-width: 4px; }

/* Buttons */
.cyber-btn {
    background: transparent; color: var(--gold); border: 1px solid var(--gold);
    padding: 0.6rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem;
    text-transform: uppercase; cursor: pointer; border-radius: 6px; letter-spacing: 1px;
    transition: all 0.25s ease; text-decoration: none; display: inline-block; text-align: center; width: 100%;
}
.cyber-btn:hover { background: rgba(212,175,55,0.1); box-shadow: 0 0 20px rgba(212,175,55,0.2); transform: translateY(-1px); }
.cyber-btn.primary { background: rgba(212,175,55,0.1); font-weight: bold; }
.cyber-btn.outline { border-color: var(--text-muted); color: var(--text-muted); }
.cyber-btn.outline:hover { border-color: #fff; color: #fff; }
.cyber-btn.small { padding: 0.4rem 0.8rem; font-size: 0.7rem; width: auto; }
.cyber-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pulse-btn { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 5px rgba(212,175,55,0.2); } 50% { box-shadow: 0 0 25px rgba(212,175,55,0.5); } }

.cyber-select {
    background: rgba(212,175,55,0.05); border: 1px solid var(--border-glass); color: var(--gold);
    padding: 0.4rem; font-family: var(--font-mono); font-size: 0.8rem; border-radius: 4px; cursor: pointer;
}
.cyber-input {
    background: rgba(0,0,0,0.4); 
    border: 1px solid var(--border-glass); 
    color: var(--text-main);
    padding: 0.5rem; 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    border-radius: 4px; 
    outline: none;
    transition: all 0.3s ease;
}
.cyber-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212,175,55,0.2);
}
.cyber-input::placeholder {
    color: var(--text-muted);
}

/* Logs */
.system-logs { padding: 0.75rem; }
.log-header { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.4rem; margin-bottom: 0.4rem; }
.log-window { font-family: var(--font-mono); font-size: 0.7rem; color: #7a8a9a; height: 90px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }

/* Game Layout */
.game-split-layout { display: flex; gap: 1rem; }
.signal-panel { flex: 1; padding: 1.5rem; }

/* Mines */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 300px; margin: 0 auto 1rem; }
.mine-tile {
    width: 100%; aspect-ratio: 1; background: rgba(255,255,255,0.03); border-radius: 6px;
    border: 1px solid var(--border-glass); display: flex; justify-content: center; align-items: center;
    font-size: 1.4rem; transition: all 0.4s ease; cursor: default;
}
.mine-tile.safe { background: rgba(212,175,55,0.15); border-color: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,0.3); animation: tileReveal 0.4s ease; }
.mine-tile.danger { background: rgba(255,0,60,0.15); border-color: var(--neon-red); }
@keyframes tileReveal { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.mines-controls { text-align: center; }
.control-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; }

.confidence-bar-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 0.75rem; justify-content: center; }
.confidence-bar { width: 120px; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 3px; transition: width 1s ease; }

/* Crash / Spaceman / Aviator */
.crash-visual {
    height: 180px; display: flex; align-items: center; justify-content: center;
    position: relative; border-radius: 10px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, rgba(212,175,55,0.05) 0%, transparent 60%);
    border: 1px solid var(--border-glass); margin-bottom: 1rem;
}
.spaceman-theme { background: radial-gradient(ellipse at 50% 120%, rgba(168,85,247,0.08) 0%, transparent 60%); }
.aviator-theme { background: radial-gradient(ellipse at 50% 120%, rgba(255,0,60,0.06) 0%, transparent 60%); }
.crash-bg-art { position: absolute; font-size: 4rem; opacity: 0.15; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.crash-multiplier-big {
    font-family: var(--font-display); font-size: 3rem; font-weight: 900;
    color: var(--gold); text-shadow: 0 0 30px var(--gold-glow);
    z-index: 2; transition: all 0.3s ease;
}
.crash-signal-area { text-align: center; margin-bottom: 1rem; }
.signal-recommendation {
    min-height: 50px; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 1rem; margin-bottom: 0.75rem;
}
.crash-history-strip { text-align: center; }
.mult-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.mult-item { padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; }
.mult-item.high { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }
.mult-item.low { background: rgba(255,0,60,0.1); color: var(--neon-red); border: 1px solid rgba(255,0,60,0.2); }

/* Double */
.double-board { text-align: center; }
.color-sequence { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.color-box { width: 38px; height: 38px; border-radius: 5px; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 0.7rem; transition: all 0.3s ease; }
.color-red { background: linear-gradient(135deg, #e3223f, #b01a30); box-shadow: 0 0 10px rgba(227,34,63,0.4); }
.color-black { background: linear-gradient(135deg, #2f363f, #1a1f27); border: 1px solid rgba(255,255,255,0.1); }
.color-white { background: linear-gradient(135deg, #f0f0f0, #d4d4d4); color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.prediction-result { font-size: 1.5rem; font-family: var(--font-mono); min-height: 55px; display: flex; align-items: center; justify-content: center; }

/* Signal History */
.signal-history { padding: 0.75rem; }
.signal-list { display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; }
.signal-entry { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,0.02); }
.signal-entry .signal-check { color: var(--neon-green); }
.signal-entry .signal-x { color: var(--neon-red); }

/* LIVE VIEW */
.live-layout { display: flex; flex-direction: column; gap: 1rem; }
.live-selector { padding: 1rem; }
.platform-tabs { display: flex; gap: 8px; margin-top: 0.5rem; }
.plat-tab {
    flex: 1; padding: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
    color: var(--text-muted); cursor: pointer; border-radius: 6px; transition: all 0.2s;
}
.plat-tab:hover { border-color: var(--border-hover); color: var(--text-main); }
.plat-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.08); }

.live-split { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; height: calc(100vh - 280px); min-height: 400px; }

/* Iframe Section */
.live-iframe-wrapper { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.iframe-header { display: flex; align-items: center; gap: 8px; padding: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; border-bottom: 1px solid var(--border-glass); }
.external-link { margin-left: auto; color: var(--gold); text-decoration: none; font-size: 0.7rem; }
.casino-iframe { flex: 1; width: 100%; border: none; background: #000; border-radius: 0 0 10px 10px; }
.iframe-overlay {
    position: absolute; inset: 0; background: rgba(6,6,16,0.95);
    display: flex; align-items: center; justify-content: center; z-index: 5;
    transition: opacity 0.3s;
}
.iframe-overlay.hidden { opacity: 0; pointer-events: none; }
.iframe-overlay-content { text-align: center; }
.iframe-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Unified Tools Sidebar */
.live-tools-sidebar { padding: 1rem; display: flex; flex-direction: column; overflow: hidden; }
.border-bottom { border-bottom: 1px solid rgba(255,255,255,0.05); }
.pb-1 { padding-bottom: 0.5rem; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; }

.accordion-container { display: flex; flex-direction: column; gap: 4px; margin-top: 0.5rem; }
.accordion-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); 
    color: var(--text-muted); text-align: left; padding: 0.6rem 0.75rem; 
    font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer; 
    border-radius: 6px; transition: all 0.25s ease;
}
.accordion-btn:hover { background: rgba(212,175,55,0.05); color: var(--text-main); }
.accordion-btn.active {
    background: rgba(212,175,55,0.1); color: var(--gold); 
    border-color: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,0.15);
}

.accordion-content {
    background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.02);
    border-radius: 6px; padding: 0.75rem; margin-bottom: 4px;
    display: none; animation: slideDown 0.3s ease;
}
.accordion-content.active { display: block; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Smaller variants for Unified Sidebar */
.small-grid { max-width: 220px; gap: 4px; }
.small-grid .mine-tile { border-radius: 4px; font-size: 1rem; }
.small-select { padding: 0.3rem; font-size: 0.7rem; }
.compact { margin-bottom: 0.25rem !important; }
.compact.crash-visual { height: 120px; }
.compact.color-sequence .color-box { width: 30px; height: 30px; font-size: 0.6rem; }
.compact.prediction-result { min-height: 40px; font-size: 1.2rem; }

/* Signal Feed */
.live-signal-feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.signal-item {
    padding: 0.5rem 0.75rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.7rem;
    display: grid; grid-template-columns: 40px 50px 1fr 30px; gap: 6px; align-items: center;
    background: rgba(255,255,255,0.02); border-left: 3px solid var(--border-glass);
}
.signal-item.signal-hot { border-left-color: var(--gold); background: rgba(212,175,55,0.03); }
.signal-item.signal-cold { border-left-color: var(--neon-red); }
.signal-time { color: var(--text-muted); }
.signal-game { color: var(--gold); font-weight: bold; }
.signal-conf { color: var(--neon-green); text-align: right; }

/* Signal Animations */
.signal-item.signal-new {
    animation: signalFlash 0.6s ease;
    background: rgba(212,175,55,0.08) !important;
}
@keyframes signalFlash {
    0% { transform: translateX(20px); opacity: 0; background: rgba(212,175,55,0.2); }
    50% { background: rgba(212,175,55,0.1); }
    100% { transform: translateX(0); opacity: 1; }
}

.live-tools-sidebar { transition: box-shadow 0.4s ease; overflow-y: auto; }

/* Scan Spinner */
.scan-spinner {
    width: 14px; height: 14px; border: 2px solid rgba(212,175,55,0.2);
    border-top: 2px solid var(--gold); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Game Display Area */
.game-display-area { padding: 0.25rem; }

/* Slots Signal Card */
.slots-signal-card {
    background: rgba(6, 12, 18, 0.6);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-family: var(--font-sans);
    align-items: center;
    text-align: center;
}
.slots-group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.slots-group-inline { display: flex; align-items: center; justify-content: center; gap: 6px; }
.slots-lbl { 
    font-size: 0.85rem; 
    color: #4dabf7; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-shadow: 0 0 5px rgba(77,171,247,0.3);
}
.slots-val { font-weight: 800; letter-spacing: 1px; }
.slots-green { font-size: 1.25rem; color: #00e676; text-shadow: 0 0 10px rgba(0,230,118,0.4); }
.slots-white { font-size: 0.95rem; color: #ffffff; }

/* History Badges */
.history-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 20px; padding: 0 4px; border-radius: 3px;
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: bold;
}
.badge-green { background: rgba(0,200,83,0.2); color: #00c853; border: 1px solid rgba(0,200,83,0.3); }
.badge-red { background: rgba(255,82,82,0.2); color: #ff5252; border: 1px solid rgba(255,82,82,0.3); }
.badge-blue { background: rgba(77,171,247,0.2); color: #4dabf7; border: 1px solid rgba(77,171,247,0.3); }
.badge-yellow { background: rgba(255,212,59,0.2); color: #ffd43b; border: 1px solid rgba(255,212,59,0.3); }
.badge-black { background: rgba(100,100,100,0.3); color: #aaa; border: 1px solid rgba(100,100,100,0.4); }
.badge-cyan { background: rgba(212,175,55,0.15); color: var(--gold); border: 1px solid rgba(212,175,55,0.3); }

/* AI Scan Pulse */
.ai-scan-status { border: 1px solid rgba(212,175,55,0.2); animation: scanPulse 2s ease-in-out infinite; }
@keyframes scanPulse { 0%,100% { border-color: rgba(212,175,55,0.15); } 50% { border-color: rgba(212,175,55,0.5); } }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 100; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { width: 100%; max-width: 480px; padding: 2rem; text-align: center; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: #fff; }
.modal-icon-wrap { margin-bottom: 1rem; }
.modal-lock-icon { font-size: 2.5rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.partners-list { display: flex; flex-direction: column; gap: 8px; }
.partner-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; border: 1px solid var(--border-glass); border-radius: 8px;
    text-decoration: none; color: var(--text-main); transition: all 0.25s ease;
    background: rgba(212,175,55,0.03);
}
.partner-card:hover { border-color: var(--gold); background: rgba(212,175,55,0.08); transform: translateX(4px); }
.partner-name { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 2px; }
.partner-bonus { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-green); }

/* Mobile Fixes & Grid */
@media (max-width: 900px) {
    .app-container { flex-direction: column; padding: 0.5rem; gap: 0.5rem; }
    .sidebar { width: 100%; height: auto; padding: 0.75rem; flex-direction: column; border-right: none; border-bottom: 1px solid var(--border-glass); }
    .mobile-collapse-btn { display: block !important; margin-bottom: 0.5rem; }
    
    .nav-menu { display: none; margin: 0.5rem 0; }
    body:not(.mobile-collapsed) .nav-menu { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
    body:not(.mobile-collapsed) .nav-btn { flex: 1 1 45%; justify-content: center; padding: 0.5rem; }

    #view-live.active { display: flex !important; flex-direction: column; gap: 0.75rem; }
    .live-layout { display: flex; flex-direction: column; gap: 0.5rem; }
    
    .live-selector { order: 1; padding: 0.75rem; margin-bottom: 0; }
    .platform-tabs { overflow-x: auto; padding-bottom: 4px; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .plat-tab { flex: 0 0 auto; min-width: 100px; }

    .live-split { display: flex; flex-direction: column; height: auto; gap: 0.75rem; order: 2; margin-top: 0; }
    
    .live-tools-sidebar { order: 1; height: auto; margin-bottom: 0; }
    .live-iframe-wrapper { order: 2; height: 65vh; min-height: 450px; }

    /* Fix the collapse logic to be less destructive */
    body.mobile-collapsed .brand,
    body.mobile-collapsed .sidebar-stats,
    body.mobile-collapsed .vip-status,
    body.mobile-collapsed .topbar {
        display: none !important;
    }
    
    /* Ensure the live play content is ALWAYS optimized even when collapsed */
    body.mobile-collapsed .live-iframe-wrapper { height: 80vh; }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
