/* ============================================
   CryptoWatch — Unified Design System
   ============================================ */

:root {
    /* Background hierarchy */
    --bg-0: #060610;
    --bg-1: #0a0a16;
    --bg-2: #10101e;
    --bg-3: #161626;
    --bg-4: #1c1c30;
    --bg-nav: rgba(6, 6, 16, 0.94);

    /* Accent palette */
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --green: #10b981;
    --emerald: #34d399;
    --red: #ef4444;
    --orange: #f59e0b;
    --pink: #ec4899;
    --gold: #fbbf24;

    /* Text */
    --t1: #f1f5f9;
    --t2: #94a3b8;
    --t3: #64748b;
    --t4: #475569;

    /* Borders */
    --border: rgba(255,255,255,0.06);
    --border-h: rgba(255,255,255,0.1);

    /* Typography */
    --sans: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    --grad-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
    --grad-silver: linear-gradient(135deg, #94a3b8, #cbd5e1);
    --grad-bronze: linear-gradient(135deg, #d97706, #b45309);

    /* Heatmap scale */
    --hm-green-deep: #1e5631;
    --hm-green: #2e7d32;
    --hm-green-light: #43a047;
    --hm-red-deep: #5c1818;
    --hm-red: #c62828;
    --hm-red-light: #e53935;
    --hm-neutral: #546e7a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }

body {
    background: var(--bg-0);
    color: var(--t1);
    font-family: var(--sans);
    display: flex;
    flex-direction: column;
}

/* ============================================
   NAV BAR
   ============================================ */
#main-nav {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 54px;
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 200;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo {
    font-size: 1.4rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tab System */
.nav-tabs {
    display: flex;
    align-items: center;
    position: relative;
    gap: 2px;
    margin-left: 16px;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--t3);
    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.nav-tab:hover { color: var(--t2); }

.nav-tab.active { color: var(--t1); }

.tab-icon { font-size: 0.95rem; }

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--r-sm);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ws-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--t4);
    transition: all 0.3s;
}

.ws-dot.connected {
    background: var(--green);
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
    animation: dotPulse 2s infinite;
}

.ws-dot.connecting {
    background: var(--orange);
    animation: dotPulse 1s infinite;
}

.ws-dot.disconnected {
    background: var(--red);
}

@keyframes dotPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.nav-clock {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--t3);
    min-width: 60px;
    text-align: right;
}

/* ============================================
   GLOBAL MARKET BAR
   ============================================ */
#global-bar {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 36px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    gap: 0;
    overflow-x: auto;
}

.gbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    white-space: nowrap;
}

.gbar-label {
    font-size: 0.68rem;
    color: var(--t3);
    font-weight: 500;
}

.gbar-value {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--t1);
}

.gbar-value.flash-g { animation: flashGreen 0.5s ease; }
@keyframes flashGreen {
    0% { color: var(--green); text-shadow: 0 0 8px rgba(16,185,129,0.4); }
    100% { color: var(--t1); text-shadow: none; }
}

.gbar-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
    flex-shrink: 0;
}

/* ============================================
   TAB PANELS
   ============================================ */
.tab-panel {
    display: none;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    animation: panelFade 0.3s ease;
}

@keyframes panelFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.panel-scroll::-webkit-scrollbar { width: 5px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.panel-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--t3);
    font-size: 0.92rem;
    z-index: 10;
    background: var(--bg-0);
}

.panel-loading.hidden { display: none; }

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ============================================
   PANEL 1: HEATMAP
   ============================================ */
#heatmap-container {
    flex: 1;
    width: 100%;
    position: relative;
    background: #000;
}

#heatmap-container svg {
    display: block;
}

.node-content { pointer-events: none; }
.node-content * { pointer-events: none; }

.node-img {
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.node-symbol {
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.node-change {
    font-size: 11px;
    font-weight: 500;
}

/* Size tiers */
.node-tiny .node-img { width: 16px; height: 16px; }
.node-tiny .node-symbol { font-size: 9px; }
.node-tiny .node-change { display: none; }

.node-small .node-img { width: 22px; height: 22px; }
.node-small .node-symbol { font-size: 11px; }
.node-small .node-change { display: none; }

.node-medium .node-img { width: 28px; height: 28px; }
.node-medium .node-symbol { font-size: 13px; }
.node-medium .node-change { font-size: 10px; }

.node-large .node-img { width: 36px; height: 36px; margin-bottom: 4px; }
.node-large .node-symbol { font-size: 16px; margin-bottom: 2px; }
.node-large .node-change { font-size: 12px; }

/* Heatmap Bottom Bar */
#heatmap-stats-bar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 700px;
    height: 46px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 32px;
    z-index: 50;
    font-size: 0.85rem;
    color: #aaa;
}

.hstat { display: flex; align-items: baseline; gap: 6px; }
.hstat span { color: var(--t3); font-size: 0.78rem; }
.hstat b { color: #fff; font-size: 0.92rem; }

.hstat:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    margin-left: 24px;
    vertical-align: middle;
}

/* ============================================
   PANEL 2: TOP 5 COINS
   ============================================ */
#top5-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 1300px;
    margin: 0 auto;
}

.coin-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    animation: cardIn 0.45s cubic-bezier(0.16,1,0.3,1) backwards;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.3s;
}

.coin-card:hover {
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.coin-card:hover::before { opacity: 1; }

.coin-card:nth-child(1) { animation-delay: 0s; }
.coin-card:nth-child(2) { animation-delay: 0.06s; }
.coin-card:nth-child(3) { animation-delay: 0.12s; }
.coin-card:nth-child(4) { animation-delay: 0.18s; }
.coin-card:nth-child(5) { animation-delay: 0.24s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero card — #1 */
.coin-card.hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
}

.coin-card.hero::before { background: var(--grad-gold); }

/* Rank badge */
.coin-rank {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--t1);
}

.coin-rank.r1 { background: var(--grad-gold); color: #000; border: none; box-shadow: 0 0 12px rgba(251,191,36,0.3); }
.coin-rank.r2 { background: var(--grad-silver); color: #000; border: none; }
.coin-rank.r3 { background: var(--grad-bronze); color: #fff; border: none; }

/* Coin header */
.coin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.coin-logo {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero .coin-logo { width: 56px; height: 56px; }

.coin-id { display: flex; flex-direction: column; gap: 1px; }
.coin-name { font-size: 1.1rem; font-weight: 700; }
.hero .coin-name { font-size: 1.4rem; }
.coin-sym { font-size: 0.72rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* Price */
.coin-price-area { margin-bottom: 16px; }

.coin-price {
    font-family: var(--mono);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.hero .coin-price { font-size: 2.4rem; }

.coin-price.up { animation: priceUp 0.6s ease; }
.coin-price.down { animation: priceDown 0.6s ease; }

@keyframes priceUp {
    0% { color: var(--green); text-shadow: 0 0 12px rgba(16,185,129,0.4); }
    100% { color: var(--t1); text-shadow: none; }
}
@keyframes priceDown {
    0% { color: var(--red); text-shadow: 0 0 12px rgba(239,68,68,0.4); }
    100% { color: var(--t1); text-shadow: none; }
}

/* Change badges */
.coin-changes { display: flex; gap: 6px; flex-wrap: wrap; }

.chg-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 600;
}

.chg-badge.pos { background: rgba(16,185,129,0.1); color: var(--emerald); }
.chg-badge.neg { background: rgba(239,68,68,0.1); color: var(--red); }
.chg-badge.neu { background: rgba(100,116,139,0.1); color: var(--t3); }

.chg-lbl { font-size: 0.62rem; color: var(--t3); font-family: var(--sans); font-weight: 500; margin-right: 1px; }

/* Sparkline */
.spark-wrap {
    margin: 14px 0;
    height: 70px;
    border-radius: var(--r-sm);
    overflow: hidden;
}

.hero .spark-wrap { height: 110px; }

.spark-wrap canvas { width: 100%; height: 100%; display: block; }

/* Market data grid */
.coin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.hero .coin-stats { grid-template-columns: 1fr 1fr 1fr; }

.cstat {
    padding: 8px 10px;
    background: var(--bg-0);
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.03);
}

.cstat-label { font-size: 0.6rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; margin-bottom: 3px; }
.cstat-value { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; }

/* ATH */
.coin-ath {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 10px;
    background: var(--bg-0);
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.03);
    font-size: 0.78rem;
}

.ath-lbl { font-size: 0.65rem; color: var(--t3); font-weight: 500; }
.ath-val { font-family: var(--mono); font-weight: 600; color: var(--gold); }
.ath-chg { font-family: var(--mono); font-size: 0.72rem; margin-left: auto; }

.hero-left, .hero-right { display: flex; flex-direction: column; }
.hero-right { justify-content: center; }

/* ============================================
   PANEL 3: WHALE TOP 5
   ============================================ */

/* Summary strip */
#whale-summary {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wsum-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.wsum-icon { font-size: 1.2rem; }
.wsum-data { display: flex; flex-direction: column; gap: 1px; }
.wsum-label { font-size: 0.62rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.wsum-value { font-family: var(--mono); font-size: 0.95rem; font-weight: 700; }
.wsum-value.flash-g { animation: flashGreen 0.5s ease; }

.wsum-live {
    flex: 0 0 auto;
    justify-content: center;
    gap: 10px;
}

.live-ring {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--red);
    position: relative;
}
.live-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--red);
    animation: ringOut 1.4s infinite;
}
@keyframes ringOut { 0%{transform:scale(1);opacity:0.6} 100%{transform:scale(2.8);opacity:0} }

.live-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--red);
}

/* Section headings */
.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 4px;
}

.heading-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--t3);
    margin-left: auto;
}

/* Leaderboard */
#whale-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.lb-card {
    display: grid;
    grid-template-columns: 64px 1fr 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.lb-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
}

.lb-card[data-slot="0"]::before { background: var(--grad-gold); }
.lb-card[data-slot="1"]::before { background: var(--grad-silver); }
.lb-card[data-slot="2"]::before { background: var(--grad-bronze); }
.lb-card[data-slot="3"]::before { background: var(--blue); }
.lb-card[data-slot="4"]::before { background: var(--purple); }

.lb-card:hover {
    background: var(--bg-3);
    transform: translateX(3px);
}

.lb-card.lb-empty {
    opacity: 0.4;
    grid-template-columns: 64px 1fr;
    min-height: 70px;
}

.lb-card.lb-flash { animation: lbFlash 0.8s ease; }
@keyframes lbFlash {
    0% { background: rgba(59,130,246,0.12); box-shadow: 0 0 24px rgba(59,130,246,0.15); }
    100% { background: var(--bg-2); box-shadow: none; }
}

/* Rank */
.lb-rank {
    width: 48px; height: 48px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-rank span {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 900;
}

[data-slot="0"] .lb-rank { background: rgba(251,191,36,0.1); }
[data-slot="0"] .lb-rank span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-slot="1"] .lb-rank { background: rgba(148,163,184,0.08); }
[data-slot="1"] .lb-rank span { color: #94a3b8; }
[data-slot="2"] .lb-rank { background: rgba(217,119,6,0.08); }
[data-slot="2"] .lb-rank span { color: #d97706; }
[data-slot="3"] .lb-rank { background: rgba(59,130,246,0.08); }
[data-slot="3"] .lb-rank span { color: var(--blue); }
[data-slot="4"] .lb-rank { background: rgba(139,92,246,0.08); }
[data-slot="4"] .lb-rank span { color: var(--purple); }

.lb-placeholder { font-size: 0.85rem; color: var(--t3); font-style: italic; }

/* LB Info */
.lb-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-time { font-size: 0.7rem; color: var(--t3); }
.lb-hash { font-family: var(--mono); font-size: 0.75rem; }
.lb-hash a { color: var(--blue); text-decoration: none; }
.lb-hash a:hover { text-decoration: underline; }
.lb-addrs { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.68rem; color: var(--t3); }
.lb-arrow { color: var(--cyan); font-size: 0.8rem; }

/* LB Details */
.lb-details { display: flex; gap: 14px; }
.lb-ditem { display: flex; flex-direction: column; gap: 1px; }
.lb-dlabel { font-size: 0.58rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.lb-dval { font-family: var(--mono); font-size: 0.76rem; font-weight: 600; color: var(--t2); }

/* LB Amount */
.lb-amt { text-align: right; flex-shrink: 0; min-width: 140px; }
.lb-btc { font-family: var(--mono); font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
[data-slot="0"] .lb-btc { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lb-usd { font-family: var(--mono); font-size: 0.78rem; color: var(--t3); margin-top: 2px; }
.lb-io { font-size: 0.65rem; color: var(--t4); margin-top: 3px; }

/* Activity Feed */
#whale-activity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

#whale-activity::-webkit-scrollbar { width: 4px; }
#whale-activity::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.act-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.8rem;
    animation: actIn 0.25s ease;
}

@keyframes actIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

.act-row:hover { background: var(--bg-3); }
.act-emoji { text-align: center; font-size: 1rem; }
.act-info { display: flex; align-items: center; gap: 8px; color: var(--t2); min-width: 0; }
.act-time { font-size: 0.68rem; color: var(--t3); flex-shrink: 0; }
.act-hash { font-family: var(--mono); font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-hash a { color: var(--blue); text-decoration: none; }
.act-amt { text-align: right; flex-shrink: 0; }
.act-btc { font-family: var(--mono); font-weight: 700; font-size: 0.82rem; }
.act-usd { font-family: var(--mono); font-size: 0.65rem; color: var(--t3); }

.activity-empty { text-align: center; padding: 24px; color: var(--t3); font-size: 0.85rem; }

/* ============================================
   OVERLAY (Whale Alert)
   ============================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.overlay.hidden { opacity: 0; pointer-events: none; }

.overlay-content {
    text-align: center;
    animation: overlayIn 0.6s cubic-bezier(0.16,1,0.3,1);
}

@keyframes overlayIn { from { transform:scale(0.4) rotate(-8deg); opacity:0; } to { transform:scale(1) rotate(0); opacity:1; } }

.alert-crown { font-size: 5rem; margin-bottom: 10px; animation: crownBounce 0.8s ease; }
@keyframes crownBounce { 0%,100%{transform:translateY(0)} 30%{transform:translateY(-22px) rotate(4deg)} 60%{transform:translateY(-6px) rotate(-2deg)} }

.alert-label {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: var(--grad-gold);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 6px;
}

.alert-amount {
    font-family: var(--mono);
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.alert-usd { font-size: 1.2rem; color: var(--t2); margin-top: 6px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    #top5-grid { grid-template-columns: 1fr 1fr; }
    .coin-card.hero { grid-template-columns: 1fr; gap: 16px; }
    .lb-card { grid-template-columns: 52px 1fr auto; }
    .lb-details { display: none; }
}

@media (max-width: 768px) {
    #main-nav { padding: 0 12px; gap: 8px; }
    .nav-title { display: none; }
    .nav-tab { padding: 6px 10px; font-size: 0.78rem; }
    .tab-label { display: none; }
    .nav-clock { display: none; }

    #global-bar { padding: 0 12px; height: 32px; }
    .gbar-item { padding: 0 8px; }
    .gbar-label { display: none; }

    #top5-grid { grid-template-columns: 1fr; }
    .coin-card.hero { grid-column: 1; grid-template-columns: 1fr; }
    .hero .coin-stats { grid-template-columns: 1fr 1fr; }

    #heatmap-stats-bar { min-width: 0; width: 90%; gap: 12px; padding: 0 16px; font-size: 0.75rem; }

    #whale-summary { flex-wrap: wrap; }
    .wsum-card { flex: 1 1 45%; }
    .wsum-live { flex: 1 1 100%; justify-content: center; }

    .lb-card { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 12px 14px; }
    .lb-rank { width: 40px; height: 40px; }
    .lb-rank span { font-size: 1.1rem; }
    .lb-btc { font-size: 0.95rem; }
    .lb-amt { min-width: auto; }
    .lb-addrs { display: none; }

    .panel-scroll { padding: 14px 16px; }
}