/* ============================================================
   CRYPTO INTEL — Mission Control v2
   Visual-first dark theme
   ============================================================ */
:root {
    --bg-0: #04060b;
    --bg-1: #080c15;
    --bg-2: #0c1220;
    --bg-3: #111928;
    --bg-4: #162032;
    --bg-hover: #1a2840;
    --border: #182440;
    --border-h: #243a5c;
    --tx-1: #e8edf5;
    --tx-2: #94a3c0;
    --tx-3: #5e7190;
    --tx-4: #3a4d6e;
    --cyan: #00d4ff;
    --green: #00e68a;
    --red: #ff4757;
    --orange: #f7931a;
    --yellow: #ffd700;
    --purple: #a78bfa;
    --blue: #4da6ff;
    --eth-c: #627eea;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --sidebar-w: 220px;
    --topbar-h: 52px;
    --radius: 12px;
    --radius-s: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body { font-family: var(--font); background: var(--bg-0); color: var(--tx-1); display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #66e0ff; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
}
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border);
}
.brand-text { font-weight: 800; font-size: 0.95rem; letter-spacing: 1px; color: var(--tx-2); }
.brand-accent { color: var(--cyan); }
.sidebar-section { padding: 14px 10px 6px; }
.sidebar-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.8px; color: var(--tx-4); padding: 0 8px 8px; }
.sidebar-link {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: 6px;
    color: var(--tx-3); font-weight: 500; font-size: 0.85rem;
    transition: all .15s;
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--tx-2); }
.sidebar-link.active { background: #00d4ff12; color: var(--cyan); }
.sl-icon { width: 18px; text-align: center; font-size: 0.85rem; }
.sidebar-footer { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--border); }
.sidebar-status { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-4); }
.status-dot.live { background: var(--green); box-shadow: 0 0 8px #00e68a88; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 4px #00e68a66; } 50% { box-shadow: 0 0 12px #00e68aaa; } }
.status-text { font-size: 0.7rem; color: var(--tx-4); font-weight: 500; }

/* ============================================================
   MAIN
   ============================================================ */
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; }

/* ---- Topbar ---- */
.topbar {
    height: var(--topbar-h);
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; color: var(--tx-3); font-size: 1.2rem; cursor: pointer; }
.page-title { font-size: 0.95rem; font-weight: 700; color: var(--tx-1); }
.topbar-ticker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.75rem; }
.ticker-item { display: flex; align-items: center; gap: 5px; }
.ticker-symbol { color: var(--tx-4); font-weight: 700; font-size: 0.65rem; letter-spacing: .5px; }
.ticker-price { color: var(--tx-1); font-weight: 600; }
.ticker-change { font-weight: 500; }
.ticker-change.up, .ticker-change.positive { color: var(--green); }
.ticker-change.down, .ticker-change.negative { color: var(--red); }
.ticker-sep { color: var(--tx-4); opacity: .3; }
.ticker-badge { padding: 2px 6px; border-radius: 4px; font-size: .6rem; font-weight: 600; background: #00d4ff15; color: var(--cyan); }
.ticker-clock { color: var(--tx-3); font-weight: 500; }
.tz { font-size: .55rem; color: var(--tx-4); font-weight: 700; }

/* ---- Page ---- */
.page-content { padding: 20px; max-width: 1440px; }

/* ============================================================
   LAYOUT GRIDS
   ============================================================ */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ============================================================
   VCARD — Universal visual card
   ============================================================ */
.vcard {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}
.vcard:hover { border-color: var(--border-h); }
.vcard-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.vcard-header h3 { font-size: 0.85rem; font-weight: 700; color: var(--tx-1); display: flex; align-items: center; gap: 8px; }

/* ---- Price Card ---- */
.vcard-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.vcard-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}
.vcard-icon.btc { background: #f7931a18; color: var(--orange); }
.vcard-icon.eth { background: #627eea18; color: var(--eth-c); }
.vcard-meta { flex: 1; }
.vcard-label { font-size: .7rem; color: var(--tx-3); font-weight: 600; letter-spacing: .5px; }
.vcard-price { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--tx-1); }
.vcard-badge {
    font-family: var(--mono); font-size: .78rem; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
}
.vcard-badge.up { background: #00e68a15; color: var(--green); }
.vcard-badge.down { background: #ff475715; color: var(--red); }
.vcard-chart { padding: 0 12px; height: 60px; }
.vcard-stats { display: flex; gap: 0; border-top: 1px solid var(--border); }
.vstat {
    flex: 1; padding: 10px 14px;
    display: flex; flex-direction: column; gap: 2px;
    border-right: 1px solid var(--border);
}
.vstat:last-child { border-right: none; }
.vstat-l { font-size: .62rem; color: var(--tx-4); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.vstat-v { font-family: var(--mono); font-size: .8rem; color: var(--tx-2); font-weight: 500; }

/* ---- Gauge Card ---- */
.gauge-card { display: flex; flex-direction: column; align-items: center; padding: 16px; }
.gauge-title { font-size: .78rem; font-weight: 700; color: var(--tx-2); margin-bottom: 8px; letter-spacing: .5px; }
.gauge-wrap { position: relative; width: 180px; height: 180px; }
.gauge-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
}
.gauge-val { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; color: var(--tx-1); line-height: 1; }
.gauge-sub { font-size: .72rem; color: var(--tx-3); font-weight: 600; margin-top: 4px; }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin-top: 10px; }
.gl-item { display: flex; align-items: center; gap: 4px; font-size: .62rem; color: var(--tx-3); }
.gl-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    display: flex; align-items: center; gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 0;
    margin-bottom: 16px;
}
.sb-item { flex: 1; padding: 0 20px; }
.sb-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }
.sb-label { font-size: .62rem; font-weight: 700; color: var(--tx-4); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.sb-value { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--tx-1); }
.sb-change { font-family: var(--mono); font-size: .72rem; font-weight: 500; margin-top: 2px; }
.sb-change.up { color: var(--green); }
.sb-change.down { color: var(--red); }
.sb-bar { height: 4px; background: var(--bg-4); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.sb-bar-fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.sb-bar-fill.btc { background: linear-gradient(90deg, var(--orange), #f7931a88); }
.sb-bar-fill.eth { background: linear-gradient(90deg, var(--eth-c), #627eea88); }

/* ============================================================
   TOP MOVERS
   ============================================================ */
.movers-split { display: flex; gap: 0; }
.movers-col { flex: 1; padding: 12px 14px; }
.movers-col.gainers { border-right: 1px solid var(--border); }
.movers-title { font-size: .68rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.movers-title.up { color: var(--green); }
.movers-title.down { color: var(--red); }
.mover-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mover-sym { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--tx-2); width: 50px; }
.mover-bar-wrap { flex: 1; height: 20px; border-radius: 3px; overflow: hidden; }
.mover-bar { height: 100%; border-radius: 3px; transition: width .4s ease; }
.mover-pct { font-family: var(--mono); font-size: .72rem; font-weight: 600; width: 52px; text-align: right; }

/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.chart-container-sq { padding: 16px; height: 260px; display: flex; align-items: center; justify-content: center; }
.chart-container-sq canvas { max-height: 240px; }

/* ============================================================
   DEFI BARS
   ============================================================ */
.defi-bars { padding: 12px 14px; }
.defi-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.defi-name { font-size: .75rem; font-weight: 600; color: var(--tx-2); width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.defi-bar-wrap { flex: 1; height: 16px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.defi-bar-fill { height: 100%; background: linear-gradient(90deg, #00d4ff44, #00d4ff22); border-radius: 3px; border-left: 3px solid var(--cyan); transition: width .4s; }
.defi-tvl { font-family: var(--mono); font-size: .7rem; color: var(--tx-3); width: 56px; text-align: right; }
.defi-ch { font-family: var(--mono); font-size: .65rem; font-weight: 500; width: 44px; text-align: right; }

/* ============================================================
   TRENDING
   ============================================================ */
.trending-list { padding: 8px 0; }
.trend-row {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 14px; color: var(--tx-2);
    transition: background .15s;
}
.trend-row:hover { background: var(--bg-hover); color: var(--tx-1); }
.trend-rank { font-family: var(--mono); font-size: .65rem; font-weight: 700; color: var(--tx-4); width: 18px; text-align: center; }
.trend-img { width: 20px; height: 20px; border-radius: 50%; }
.trend-info { flex: 1; }
.trend-name { font-size: .8rem; font-weight: 600; }
.trend-sym { font-family: var(--mono); font-size: .62rem; color: var(--tx-4); margin-left: 4px; }
.trend-mcr { font-family: var(--mono); font-size: .62rem; color: var(--tx-4); }

/* ============================================================
   WHALES
   ============================================================ */
.whale-list { padding: 8px 0; }
.whale-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 14px; font-size: .78rem;
    border-bottom: 1px solid #182440aa;
}
.whale-row:last-child { border-bottom: none; }
.whale-sym { font-family: var(--mono); font-weight: 700; color: var(--tx-2); width: 44px; }
.whale-amount { font-family: var(--mono); font-weight: 600; color: var(--yellow); width: 70px; }
.whale-flow { flex: 1; font-size: .72rem; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   BADGES
   ============================================================ */
.badge-live {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 4px;
    font-size: .62rem; font-weight: 600;
    background: #00e68a12; color: var(--green);
}
.pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: glow 2s ease-in-out infinite; }
.header-stat { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--cyan); }
.header-date { font-family: var(--mono); font-size: .72rem; color: var(--tx-4); }

/* ============================================================
   BRIEFING / SECTION CARDS
   ============================================================ */
.briefing-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: .78rem; color: var(--tx-3); }
.meta-tag { background: var(--bg-4); padding: 3px 8px; border-radius: 4px; font-family: var(--mono); font-weight: 600; font-size: .72rem; }
.meta-dot { color: var(--tx-4); }
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.section-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.sc-0 { border-top: 3px solid var(--cyan); }
.sc-1 { border-top: 3px solid var(--green); }
.sc-2 { border-top: 3px solid var(--orange); }
.sc-3 { border-top: 3px solid var(--purple); }
.sc-4 { border-top: 3px solid var(--red); }
.sc-5 { border-top: 3px solid var(--yellow); }
.sc-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sc-num { font-family: var(--mono); font-size: .62rem; font-weight: 700; color: var(--tx-4); background: var(--bg-4); padding: 2px 6px; border-radius: 4px; }
.sc-title { font-size: .85rem; font-weight: 700; color: var(--tx-1); }
.sc-body { padding: 14px 16px; font-size: .82rem; line-height: 1.65; color: var(--tx-2); }
.sc-body p { margin-bottom: 6px; }
.sc-body strong { color: var(--tx-1); }
.sc-body code { font-family: var(--mono); background: var(--bg-4); padding: 1px 5px; border-radius: 3px; font-size: .78rem; color: var(--cyan); }
.sc-body ul { list-style: none; }
.sc-body li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.sc-body li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); font-size: .7rem; }

/* ============================================================
   BRIEFING PREVIEW
   ============================================================ */
.briefing-preview {
    padding: 14px 16px; max-height: 260px; overflow: hidden;
    position: relative; font-size: .82rem; line-height: 1.65; color: var(--tx-2);
}
.briefing-preview::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(transparent, var(--bg-2));
}
.briefing-preview p { margin-bottom: 6px; }
.briefing-preview strong { color: var(--tx-1); }
.card-link {
    display: block; padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-size: .78rem; font-weight: 600; color: var(--cyan); text-align: center;
}
.card-link:hover { background: #00d4ff08; }

/* ============================================================
   SEARCH + CHIPS
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-input {
    flex: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-s);
    padding: 10px 14px; color: var(--tx-1); font-family: var(--mono); font-size: .82rem; outline: none;
}
.search-input:focus { border-color: var(--cyan); }
.search-input::placeholder { color: var(--tx-4); }
.search-input.lg { padding: 14px 18px; font-size: .95rem; }
.search-btn {
    background: var(--cyan); color: var(--bg-0); border: none; border-radius: var(--radius-s);
    padding: 10px 20px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: var(--font);
}
.search-btn:hover { opacity: .85; }
.search-btn.lg { padding: 14px 28px; }
.research-search { max-width: 680px; margin: 0 auto 24px; }
.research-box { padding: 14px 16px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip-grid.center { justify-content: center; margin-top: 20px; }
.chip {
    padding: 6px 14px; border-radius: 20px;
    font-family: var(--mono); font-size: .72rem; font-weight: 600;
    background: var(--bg-4); color: var(--tx-3); border: 1px solid transparent;
    transition: all .15s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); background: #00d4ff10; }

/* ============================================================
   RESEARCH PAGE
   ============================================================ */
.res-price-card {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 24px; margin-bottom: 14px;
}
.res-price-left { display: flex; align-items: baseline; gap: 14px; }
.res-symbol { font-family: var(--mono); font-size: 1.8rem; font-weight: 800; color: var(--tx-1); }
.res-price { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--tx-1); }
.res-change { font-family: var(--mono); font-size: .88rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.res-change.up { background: #00e68a15; color: var(--green); }
.res-change.down { background: #ff475715; color: var(--red); }
.res-price-right { display: flex; gap: 24px; }
.rp-stat { display: flex; flex-direction: column; gap: 2px; }
.rp-label { font-size: .6rem; font-weight: 700; color: var(--tx-4); letter-spacing: .5px; text-transform: uppercase; }
.rp-val { font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--tx-2); }
.res-chart-card {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; margin-bottom: 16px; height: 220px;
}
.tf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.tf-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tf-card.tf-scalp { border-top: 3px solid var(--cyan); }
.tf-card.tf-swing { border-top: 3px solid var(--blue); }
.tf-card.tf-macro { border-top: 3px solid var(--purple); }
.tf-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tf-icon { font-size: 1.1rem; }
.tf-name { font-size: .85rem; font-weight: 700; color: var(--tx-1); }
.tf-range { font-size: .65rem; color: var(--tx-4); }
.tf-body { padding: 14px 16px; font-size: .82rem; line-height: 1.6; color: var(--tx-2); min-height: 320px; }

/* Timeframe card content — Visual Components */
.tf-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tf-bias-block {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 8px;
}
.tf-bias-icon { font-size: 1.1rem; }
.tf-bias-text { font-family: var(--mono); font-size: 1rem; font-weight: 800; letter-spacing: 1.5px; }
.tf-gauge-wrap { position: relative; width: 80px; height: 80px; }
.tf-gauge-inner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: baseline; gap: 1px;
}
.tf-gauge-num { font-family: var(--mono); font-size: 1.3rem; font-weight: 800; color: var(--tx-1); }
.tf-gauge-of { font-family: var(--mono); font-size: .65rem; color: var(--tx-4); font-weight: 600; }

/* Price Range Bar */
.tf-range { margin-bottom: 14px; }
.tf-range-labels { display: flex; justify-content: space-between; margin-bottom: 5px; }
.tf-range-s { font-family: var(--mono); font-size: .68rem; color: var(--green); font-weight: 600; }
.tf-range-cur { font-family: var(--mono); font-size: .72rem; color: var(--tx-1); font-weight: 700; }
.tf-range-r { font-family: var(--mono); font-size: .68rem; color: var(--red); font-weight: 600; }
.tf-range-track { position: relative; height: 8px; border-radius: 4px; background: var(--bg-4); overflow: visible; }
.tf-range-zone { position: absolute; inset: 0; border-radius: 4px; }
.tf-range-marker {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid; background: var(--bg-2);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.tf-range-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Metrics Row */
.tf-metrics { display: flex; gap: 6px; margin-bottom: 12px; }
.tf-metric {
    flex: 1; padding: 8px 10px; border-radius: 6px;
}
.tf-metric-label { font-size: .58rem; font-weight: 700; color: var(--tx-4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.tf-metric-value { font-family: var(--mono); font-size: .78rem; font-weight: 700; }

/* Signal Box */
.tf-signal-box {
    padding: 10px 12px; margin-bottom: 12px;
    background: var(--bg-4); border-radius: 6px;
    font-size: .8rem; font-weight: 600; color: var(--tx-1); line-height: 1.5;
}

/* Bullet Points */
.tf-bullets { margin-bottom: 12px; }
.tf-bullet {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 5px 0; font-size: .78rem; color: var(--tx-2); line-height: 1.5;
}
.tf-bullet-dot {
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0; margin-top: 6px;
}

/* Risk Score */
.tf-risk {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; background: var(--bg-4); border-radius: 6px;
}
.tf-risk-label { font-size: .6rem; font-weight: 700; color: var(--tx-4); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.tf-risk-track { flex: 1; height: 5px; background: var(--bg-0); border-radius: 3px; overflow: hidden; }
.tf-risk-fill { height: 100%; border-radius: 3px; transition: width .5s; }
.tf-risk-val { font-family: var(--mono); font-size: .72rem; font-weight: 700; white-space: nowrap; }

.tf-error { color: var(--red); font-size: .78rem; padding: 20px 0; text-align: center; }
.tf-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 0; color: var(--tx-4); font-size: .78rem; }
.tf-loading-bar { width: 120px; height: 4px; background: var(--bg-4); border-radius: 2px; overflow: hidden; position: relative; }
.tf-loading-bar::after { content: ''; position: absolute; top: 0; left: -40px; width: 40px; height: 100%; background: var(--cyan); border-radius: 2px; animation: loadslide 1s ease-in-out infinite; }
@keyframes loadslide { 0% { left: -40px; } 100% { left: 120px; } }

/* ============================================================
   HISTORY
   ============================================================ */
.history-list { display: flex; flex-direction: column; gap: 5px; }
.history-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-s);
    padding: 12px 16px; color: var(--tx-2); transition: all .15s;
}
.history-row:hover { border-color: var(--border-h); background: var(--bg-hover); color: var(--tx-1); }
.hist-type { font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.hist-type.briefing { background: #00d4ff15; color: var(--cyan); }
.hist-type.evening { background: #a78bfa15; color: var(--purple); }
.hist-title { flex: 1; font-weight: 600; font-size: .85rem; }
.hist-date { font-family: var(--mono); font-size: .72rem; color: var(--tx-4); }
.hist-arrow { color: var(--tx-4); }

/* ============================================================
   EMPTY + UTILS
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--tx-3); }
.empty-icon { font-size: 2.5rem; opacity: .2; margin-bottom: 10px; }
.empty-state h3 { font-size: 1rem; color: var(--tx-2); margin-bottom: 6px; }
.empty-state p { font-size: .82rem; max-width: 380px; margin: 0 auto; line-height: 1.6; }
.empty-mini { padding: 20px; text-align: center; color: var(--tx-4); font-size: .78rem; font-style: italic; }
.loading-pulse { color: var(--tx-4); font-style: italic; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .3; } 50% { opacity: .7; } }

/* ============================================================
   BRIEFING LIVE DATA WIDGETS
   ============================================================ */
.brief-live-grid {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.bl-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.bl-gauge {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 10px; position: relative;
}
.bl-gauge-center {
    position: absolute; top: 68px; left: 50%;
    transform: translateX(-50%); text-align: center;
}
.bl-gauge-val { font-family: var(--mono); font-size: 1.8rem; font-weight: 800; color: var(--tx-1); line-height: 1; }
.bl-gauge-sub { font-size: .68rem; color: var(--tx-3); font-weight: 600; margin-top: 2px; }
.bl-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.bl-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
}
.bl-icon.btc { background: #f7931a18; color: var(--orange); }
.bl-icon.eth { background: #627eea18; color: var(--eth-c); }
.bl-label { font-size: .65rem; color: var(--tx-3); font-weight: 600; letter-spacing: .5px; margin-bottom: 2px; }
.bl-big { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--tx-1); }
.bl-badge {
    margin-left: auto;
    font-family: var(--mono); font-size: .72rem; font-weight: 600;
    padding: 3px 8px; border-radius: 5px;
}
.bl-badge.up { background: #00e68a15; color: var(--green); }
.bl-badge.down { background: #ff475715; color: var(--red); }
.bl-spark { padding: 0 10px; height: 50px; }
.bl-stats { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bl-stat-row { display: flex; align-items: center; justify-content: space-between; }
.bl-stat-label { font-size: .65rem; color: var(--tx-4); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.bl-stat-val { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--tx-1); }
.bl-bar-row { display: flex; align-items: center; gap: 8px; flex: 1; margin-left: 10px; }
.bl-bar { flex: 1; height: 5px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.bl-bar-fill { height: 100%; border-radius: 3px; transition: width .5s; }
.bl-bar-fill.btc { background: linear-gradient(90deg, var(--orange), #f7931a66); }

.brief-movers { margin-bottom: 16px; }
.bl-wide { width: 100%; }

.brief-analysis-title {
    display: flex; align-items: center; gap: 14px;
    margin: 20px 0 14px;
}
.bat-line { flex: 1; height: 1px; background: var(--border); }
.bat-text { font-size: .7rem; font-weight: 700; color: var(--tx-4); letter-spacing: 2px; text-transform: uppercase; }

/* ============================================================
   DAILY PICKS CARDS
   ============================================================ */
.picks-list { padding: 8px 12px; }
.tf-range-label { font-size: .6rem; color: var(--tx-4); font-weight: 500; margin-left: 4px; }
.pick-card {
    background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 14px; margin-bottom: 8px;
    transition: border-color .2s;
}
.pick-card:hover { border-color: var(--border-h); }
.pick-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pick-symbol {
    font-family: var(--mono); font-size: 1.1rem; font-weight: 800; color: var(--cyan);
}
.pick-symbol:hover { color: #66e0ff; }
.pick-score-wrap { display: flex; align-items: center; gap: 6px; }
.pick-score-bar { width: 50px; height: 5px; background: var(--bg-0); border-radius: 3px; overflow: hidden; }
.pick-score-fill { height: 100%; border-radius: 3px; }
.pick-score-val { font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.pick-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pick-price-val { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--tx-1); }
.pick-entry { font-family: var(--mono); font-size: .68rem; color: var(--tx-3); }
.pick-rr { font-family: var(--mono); font-size: .65rem; color: var(--yellow); background: #ffd70012; padding: 2px 6px; border-radius: 4px; }
.pick-targets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pick-target {
    font-family: var(--mono); font-size: .68rem; font-weight: 600;
    padding: 3px 8px; border-radius: 4px;
}
.pick-target.up { background: #00e68a12; color: var(--green); }
.pick-target.down { background: #ff475712; color: var(--red); }
.pick-target.neutral { background: var(--bg-4); color: var(--tx-3); }
.pick-target small { font-size: .6rem; opacity: .7; }
.pick-reason {
    font-size: .75rem; color: var(--tx-2); line-height: 1.5; margin-bottom: 4px;
    padding: 6px 8px; background: var(--bg-4); border-radius: 5px;
    border-left: 2px solid var(--cyan);
}
.pick-risk {
    font-size: .68rem; color: var(--orange); line-height: 1.4; opacity: .8;
}

/* ============================================================
   PERFORMANCE DISPLAY
   ============================================================ */
.perf-section { padding: 10px 14px; }
.perf-tf { margin-bottom: 12px; }
.perf-tf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.perf-tf-name { font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--tx-1); }
.perf-wr { font-family: var(--mono); font-size: .68rem; font-weight: 700; }
.perf-avg { font-family: var(--mono); font-size: .68rem; font-weight: 600; margin-left: auto; }
.perf-avg.up { color: var(--green); }
.perf-avg.down { color: var(--red); }
.perf-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: .75rem; }
.perf-icon { font-size: .8rem; }
.perf-sym { font-family: var(--mono); font-weight: 600; color: var(--tx-2); width: 50px; }
.perf-entry { font-family: var(--mono); color: var(--tx-3); font-size: .68rem; }
.perf-arrow { color: var(--tx-4); font-size: .6rem; }
.perf-cur { font-family: var(--mono); color: var(--tx-2); font-size: .68rem; }
.perf-ch { font-family: var(--mono); font-weight: 600; font-size: .68rem; margin-left: auto; }
.perf-ch.up { color: var(--green); }
.perf-ch.down { color: var(--red); }

/* ============================================================
   CUMULATIVE STATS
   ============================================================ */
.cum-section { padding: 10px 14px; }
.cum-tf { margin-bottom: 12px; }
.cum-tf-head { font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--tx-1); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.cum-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.cum-label { font-size: .65rem; font-weight: 600; color: var(--tx-4); width: 60px; text-transform: uppercase; letter-spacing: .5px; }
.cum-bar { flex: 1; height: 5px; background: var(--bg-0); border-radius: 3px; overflow: hidden; }
.cum-bar-fill { height: 100%; border-radius: 3px; }
.cum-val { font-family: var(--mono); font-size: .75rem; font-weight: 600; color: var(--tx-2); min-width: 40px; text-align: right; }
.cum-val.up { color: var(--green); }
.cum-val.down { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .row-3 { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .tf-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .sb-divider { display: none; }
    .sb-item { min-width: 140px; }
    .brief-live-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .sidebar.open { display: flex; position: fixed; z-index: 200; }
    .main-content { margin-left: 0; }
    .menu-toggle { display: block; }
    .topbar-ticker { display: none; }
    .res-price-card { flex-direction: column; gap: 12px; }
    .res-price-right { display: none; }
}
