@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #06090f; /* Deepest Black/Blue */
    --bg-card: #0f121a; /* Professional Dark Card */
    --accent: #3d5afe; /* Royal Blue */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --bullish: #10b981;
    --bearish: #ef4444;
    --border-color: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
}

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

/* Professional Dark Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.logo-section h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-section span { color: var(--accent); }

.market-selector { display: flex; gap: 10px; }

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #161b22;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 13px;
}

.btn:hover { background: #1e293b; color: #fff; }
.btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Stats Dashboard */
.top-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-card.gold-border { border-top: 3px solid #f59e0b; }

.stat-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.stat-value { font-size: 24px; font-weight: 800; }
.stat-change { font-size: 12px; margin-top: 4px; font-weight: 500; }
.stat-change.up { color: var(--bullish); }
.stat-change.down { color: var(--bearish); }

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.section-header { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.section-header h3 { font-size: 14px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; }

/* Professional Dark Table */
.table-scroll { overflow-x: auto; max-height: 650px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: right; }
thead { position: sticky; top: 0; z-index: 10; background: #161b22; }
th { padding: 14px 10px; color: var(--text-secondary); font-weight: 600; border-bottom: 2px solid var(--border-color); text-transform: uppercase; font-size: 10px; }
.th-strike { background: #06090f; text-align: center; color: #fff; width: 80px; }

td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.02); }
tr:hover td { background: rgba(255,255,255,0.03); }

.td-strike { background: #06090f; font-weight: 800; color: #fff; text-align: center; position: sticky; left: 0; z-index: 5; border-left: 3px solid var(--accent); }

.itm-call { background: rgba(16, 185, 129, 0.03); }
.itm-put { background: rgba(239, 68, 68, 0.03); }
.price-up { color: var(--bullish); }
.price-down { color: var(--bearish); }
.high-vol { background: rgba(61, 90, 254, 0.1); color: #fff; font-weight: 700; }

/* Right Panel */
.right-panel { display: flex; flex-direction: column; gap: 20px; }

.ai-master-card { border-left: 4px solid var(--accent); }
.ai-badge { font-size: 9px; font-weight: 800; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; border-radius: 4px; margin-bottom: 8px; display: inline-block; }
.ai-header h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.ai-body { font-size: 14px; color: #e2e8f0; line-height: 1.6; }

.signal-card {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.signal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.signal-tag { font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 3px; }
.signal-conviction { font-size: 10px; font-weight: 700; color: var(--bullish); }

.signal-main-type { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sg-item .l { font-size: 10px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.sg-item .v { font-size: 16px; font-weight: 700; color: #fff; }

/* Trap Monitor */
.trap-item { font-size: 12px; padding: 10px 15px; border-radius: 6px; background: rgba(0,0,0,0.2); border-left: 4px solid transparent; margin-bottom: 10px; }
.trap-item.bearish { border-left-color: var(--bearish); color: #fca5a5; }
.trap-item.bullish { border-left-color: var(--bullish); color: #86efac; }

/* Loader */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: transparent; z-index: 1000; }
.loader-bar { height: 100%; background: var(--accent); width: 0; transition: width 0.3s ease; }

.live-indicator { display: inline-block; width: 7px; height: 7px; background: var(--bullish); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px var(--bullish); }

@media (max-width: 1200px) {
    .main-layout { grid-template-columns: 1fr; }
    .top-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
