/* --- PERMANENT AI GLOW ENGINE (ELITE GLASS EDITION) --- */
.ai-insight-box-ultra {
    position: relative;
    margin-bottom: 25px;
    /* Dibikin lebih bright dengan perpaduan ungu terang dan navy */
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.1));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Highlight kaca */
}

/* Engine Border Keliling yang Nyala Terus */
.ai-insight-box-ultra::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    border: 2px solid #c084fc; /* Ganti Cyan ke Royal Purple */
    pointer-events: none;
    z-index: 10;
    animation: aiBreath 3.5s infinite alternate ease-in-out;
}

/* Animasi Detak AI (Transisi Deep Purple ke Bright Lilac) */
@keyframes aiBreath {
    0% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.3), 
                    inset 0 0 10px rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.6);
    }
    100% {
        box-shadow: 0 0 30px rgba(192, 132, 252, 0.8), 
                    inset 0 0 15px rgba(192, 132, 252, 0.4);
        border-color: rgba(192, 132, 252, 1);
    }
}

.ai-inner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
}

.ai-brain-glow {
    /* Ganti hitam pekat jadi navy/purple glass yang elegan */
    background: rgba(45, 35, 75, 0.6); 
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
    font-size: 1.8rem;
    color: #c084fc; /* Teks icon lebih bright */
}

/* --- STATS MASTER & GRID (TETAP AMAN) --- */
.stats-master-container {
    padding: 20px;
    margin-bottom: 25px;
}

.stats-row-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    text-align: center;
}

.second-row {
    margin-top: 15px;
}

/* KOTAK STATS (Lebih bright & glassmorphism kental) */
.stat-unit {
    /* Background lebih terang dari sebelumnya, nggak bikin sumpek */
    background: rgba(255, 255, 255, 0.04); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Efek pantulan cahaya atas */
    padding: 15px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-unit:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px calc(var(--accent) + '44'); /* Glow lebih terang */
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08); /* Hover makin bright */
}

.stat-unit small {
    font-size: 10px;
    color: #a1a1aa; /* Lebih terang dikit dari #888 */
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.stat-unit h3 {
    margin: 8px 0 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

/* --- VISUAL & GRIDS (TETAP AMAN) --- */
.visual-main-grid { display: grid; grid-template-columns: 2.5fr 1fr; gap: 25px; margin-top: 25px; }
.intel-executions-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 25px; margin-top: 25px; }
.behavioral-master-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; margin-top: 25px; }
.heatmap-grid-inner { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.widgets-row-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 25px; margin-bottom: 50px; }

.chart-box-padding { padding: 20px; height: 320px; }
.gauge-center-content { position: relative; height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-stats-overlay { position: absolute; bottom: 40px; text-align: center; }
.gauge-stats-overlay h1 { font-size: 2.2rem; margin: 0; color: #fff; font-weight: 900; }

.status-badge {
    font-size: 11px;
    font-weight: 800;
    color: #c084fc; /* Elite Purple */
    background: rgba(192, 132, 252, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    margin-top: 10px;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.intel-stack { display: flex; flex-direction: column; gap: 20px; }
.heatmap-card-mac, .intel-box-mini, .red-flags-card-mac { padding: 25px; }

.intel-tag {
    font-size: 10px;
    font-weight: 900;
    color: #a1a1aa;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
}

.intel-box-mini h2 { font-size: 1.8rem; margin: 0; font-weight: 900; }
.executions-scroll-area { padding: 15px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.heatmap-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.streak-pill { color: #a855f7; font-size: 11px; font-weight: 800; }

.widget-glass-long {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-icon-frame {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.widget-icon-frame.yellow { color: #facc15; }
.widget-icon-frame.cyan { color: #c084fc; } /* Force ganti ke purple theme */

.widget-content-body { flex: 1; }
.widget-content-body h2 { margin: 5px 0 0; font-size: 1.8rem; font-weight: 900; }
.widget-side-status h4 { margin: 0; font-size: 13px; font-weight: 800; color: #a1a1aa; }

.text-pnl-main { color: #a855f7 !important; text-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }
.text-loss-glow { color: #ef5350 !important; text-shadow: 0 0 10px rgba(239, 83, 80, 0.4); }

/* --- MAC HEADER (Lebih Clean & Terang) --- */
.mac-header-mini {
    height: 35px;
    background: rgba(255, 255, 255, 0.03); /* Bright glass */
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots { display: flex; gap: 6px; }
.mac-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    /* Warna dot Mac disesuaikan biar soft */
    background: rgba(255, 255, 255, 0.2); 
}
.mac-dots span:nth-child(1) { background: rgba(239,83,80,0.5); } /* Merah */
.mac-dots span:nth-child(2) { background: rgba(250,204,21,0.5); } /* Kuning */
.mac-dots span:nth-child(3) { background: rgba(192,132,252,0.5); } /* Hijau */

.mac-label-center {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 9px; font-weight: 900;
    color: #a1a1aa;
    letter-spacing: 2px; text-transform: uppercase;
}

.empty-msg { text-align: center; color: #888; font-size: 12px; font-style: italic; padding: 20px; }

/* --- EFEK GLOWING TOP BORDER (MAGIC) --- */
.stat-unit::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent, #a855f7);
    box-shadow: 0 0 12px var(--accent, #a855f7);
    transition: height 0.3s ease;
}
.stat-unit:hover::before { height: 4px; }

/* Tooltip for stats */
.stat-tooltip {
    position: fixed;
    background: rgba(15, 12, 20, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    max-width: 250px;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(168,85,247,0.3);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.stat-unit.has-tooltip {
    cursor: help;
}

.stat-unit.has-tooltip:hover {
    transform: translateY(-3px);
}

.arsenal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 20px calc(var(--accent) + '33');
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* --- STEALTH 3D NEON ENGINE --- */
.hover-glow-card {
    position: relative; overflow: hidden; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-glow-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    opacity: 0; transition: all 0.3s ease; z-index: 10;
}

.hover-glow-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
                0 0 25px calc(var(--accent) + '44');
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.hover-glow-card:hover::before { opacity: 1; }
.hover-glow-card:hover .intel-tag i, .hover-glow-card:hover .widget-icon-frame {
    color: var(--accent); transform: scale(1.1); transition: all 0.3s ease;
}

/* --- FILTER BAR --- */
.filter-bar-glass {
    margin-bottom: 30px; display: flex; align-items: center; padding: 12px 25px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- FULL CARD GLOW --- */
.hover-glow-full-card {
    position: relative; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hover-glow-full-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit; border: 2px solid var(--accent);
    box-shadow: 0 0 25px var(--accent), inset 0 0 15px calc(var(--accent) + '33');
    opacity: 0; transition: all 0.3s ease; pointer-events: none; z-index: 10;
}

.hover-glow-full-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: transparent !important;
}

.hover-glow-full-card:hover::before { opacity: 1; }
.hover-glow-full-card:hover .mac-label-center {
    color: var(--accent); text-shadow: 0 0 10px calc(var(--accent) + 'aa');
    transition: all 0.3s ease;
}

/* --- ENGINE SWEEP REVEAL --- */
@keyframes sweepReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
.sweep-anim-active { animation: sweepReveal 1.8s cubic-bezier(0.21, 1, 0.36, 1) forwards; }

.elite-tv-vault {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.9), rgba(15, 10, 25, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.1), 
        inset 0 0 30px rgba(0, 229, 255, 0.05);
    overflow: hidden;
    backdrop-filter: blur(20px);
    padding: 2px; /* Jarak biar border luar sama dalem kerasa misah */
}

/* Kaca pelindung dalem */
.tv-inner-glass {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
}

/* HUD Bar Atas (Status Keren-kerenan) */
.tv-hud-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 35px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    backdrop-filter: blur(5px);
    font-family: monospace;
    user-select: none;
}

.hud-text-left {
    color: #dddddd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(209, 209, 209, 0.5);
}

.hud-text-right {
    color: #a855f7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot-live {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Garis Scanner Holografik (Gerak naik turun) */


@keyframes scanChart {
    0% { top: 35px; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Siku-siku bidikan sniper di 4 sudut */
.tv-corner { position: absolute; width: 25px; height: 25px; border-color: rgba(0, 229, 255, 0.8); border-style: solid; z-index: 15; pointer-events: none; }
.tc-tl { top: 45px; left: 10px; border-width: 2px 0 0 2px; border-radius: 5px 0 0 0; }
.tc-tr { top: 45px; right: 10px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.tc-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.tc-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 5px 0; }

/* Wadah asli TradingView-nya */
#tradingview_container {
    width: 100%;
    height: calc(100% - 35px); /* Kurangin tinggi HUD atas */
    margin-top: 35px;
}

/* ==========================================
   THE CYBERPUNK TACTICAL BUTTON
   ========================================== */
.elite-launch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', monospace; /* Pake font techno kalo ada */
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

/* Garis Scanner Tipis (Looping) */
.btn-scanline {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
    transition: 0.5s;
}

.elite-launch-btn:hover .btn-scanline {
    left: 100%;
}

/* Siku-siku Khas Militer */
.btn-corner-top, .btn-corner-bottom {
    position: absolute; width: 8px; height: 8px;
    transition: 0.3s;
}
.btn-corner-top { top: 0; left: 0; border-top: 2px solid #00e5ff; border-left: 2px solid #00e5ff; }
.btn-corner-bottom { bottom: 0; right: 0; border-bottom: 2px solid #a855f7; border-right: 2px solid #a855f7; }

/* HOVER EFFECT: Glitch & Glow */
.elite-launch-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #00e5ff;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
    transform: scale(1.05);
    letter-spacing: 5px; /* Mekar dikit tulisannya */
}

.elite-launch-btn:hover .btn-corner-top { transform: translate(-3px, -3px); }
.elite-launch-btn:hover .btn-corner-bottom { transform: translate(3px, 3px); }

/* Animasi Glitch Teks pas Hover */
.elite-launch-btn:hover .btn-text {
    animation: textGlitch 0.3s infinite;
    color: #00e5ff;
    text-shadow: 2px 0 #a855f7, -2px 0 #00e5ff;
}

@keyframes textGlitch {
    0% { transform: skew(0deg); }
    20% { transform: skew(-5deg); }
    40% { transform: skew(5deg); }
    60% { transform: skew(-2deg); }
    100% { transform: skew(0deg); }
}

/* Ikon Chart Gerak */
.elite-launch-btn i {
    margin-right: 12px;
    color: #a855f7;
    transition: 0.3s;
}

.elite-launch-btn:hover i {
    color: #00e5ff;
    transform: scale(1.3) rotate(-10deg);
}

.btn-terminal-center {
    width: 100%;
    display: flex;
    justify-content: center; /* Geser horizontal ke tengah */
    align-items: center;     /* Geser vertikal ke tengah (kalo containernya tinggi) */
    padding: 1px 0;         /* Kasih jarak atas bawah biar kaga nempel */
}

/* ==========================================
   THE MAIN 3-COLUMN DASHBOARD GRID
   ========================================== */
/* ==========================================
   THE MAIN 3-COLUMN DASHBOARD GRID (ROUNDED ELITE)
   ========================================== */
.visual-main-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr; 
    gap: 20px;
    margin-bottom: 25px;
    height: 380px; 
}

/* Kunci Lengkungan Elit buat Semua Card di Grid */
.visual-main-grid .elite-3d-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px !important; /* Lengkungan mulus tingkat dewa */
    overflow: hidden !important; /* KUNCI UTAMA: Biar canvas & background kaga tumpah di pojokan */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Background Radar Transparan yang Udah Di-Rounding */
.elite-bg-radar {
    background: rgba(35, 35, 40, 0.45) !important; 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    
    /* Double protection biar sudutnya beneran tumpul */
    border-radius: 20px !important; 
    overflow: hidden !important; 
}

.chart-box-padding, .radar-container-relative, .gauge-center-content {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0; /* Penting buat Chart.js biar kaga 'meluber' dari container */
}

/* BACKGROUND ABU TRANSPARAN ELITE (Punya Radar) */

/* Biar buletan Gauge chart lu pas di tengah */
.gauge-center-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
