/* ═══════════════════════════════════════════════════
   BduTrader — Design System v2
   Aesthetic: Premium dark trading terminal
   Font: Outfit (display) + DM Mono (data)
   Fully responsive — mobile first
═══════════════════════════════════════════════════ */
/*@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
:root, html[data-mode="dark"] {
  --bg:         #080b0f;
  --bg2:        #0d1117;
  --bg3:        #121820;
  --bg4:        #18212e;
  --bg5:        #1e2a3a;
  --border:     #1a2535;
  --border2:    #243344;
  --border3:    #2e4060;

  --text:       #dde8f4;
  --text2:      #8ba4bf;
  --text3:      #4a6480;
  --text4:      #243344;

  --accent:     #00c6ff;
  --accent-dim: rgba(0,198,255,0.12);
  --gold:       #ffb800;
  --gold-dim:   rgba(255,184,0,0.12);

  --green:      #00e676;
  --green-dim:  rgba(0,230,118,0.1);
  --green-glow: rgba(0,230,118,0.25);
  --red:        #ff4757;
  --red-dim:    rgba(255,71,87,0.1);
  --red-glow:   rgba(255,71,87,0.25);
  --yellow:     #ffd600;
  --orange:     #ff8c00;

  --long-bg:    linear-gradient(135deg,#0a1f12,#0d2b18);
  --short-bg:   linear-gradient(135deg,#1f0a0d,#2b0d12);

  --font:       'Outfit', 'Segoe UI', Tahoma, Verdana, sans-serif;
  --mono:       'IBM Plex Mono', 'Courier New', monospace;

  --nav-h:      58px;
  --ticker-h:   32px;
  --r:          8px;
  --r2:         12px;
  --r3:         16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow2:    0 8px 40px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
* { font-feature-settings: "zero" 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg, rgba(8,11,15,0.97));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.nav-logo {
  font-family: var(--font);
  font-size: 20px; font-weight: 900;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0066cc);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0,198,255,0.3);
}
.nav-logo .logo-text { color: var(--text); }
.nav-logo .logo-text span { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg3); flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text2); border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  flex: 1; overflow-x: auto;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 13px; font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--r);
  transition: all 0.18s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.nav-links a .nav-icon { font-size: 14px; }
.nav-links a:hover { color: var(--text); background: var(--bg4); }
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-right {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
#navClock { font-family: var(--mono); font-size: 12px; color: var(--text2); min-width: 70px; text-align: right; }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--nav-bg, rgba(8,11,15,0.98));
  z-index: 999; flex-direction: column;
  padding: 20px 16px; gap: 6px;
  backdrop-filter: blur(12px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; font-weight: 600;
  color: var(--text2); text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg2);
  display: flex; align-items: center; gap: 12px;
  transition: all 0.18s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--accent); border-color: var(--border2);
  background: var(--accent-dim);
}

/* ══════════════════════════════════════
   TICKER TAPE
══════════════════════════════════════ */
.ticker-tape {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 998;
  height: var(--ticker-h);
  background: var(--bg2); border-bottom: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: marquee 80s linear infinite;
}
.ticker-tape:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; font-size: 12px; font-weight: 500;
  border-right: 1px solid var(--border);
  height: var(--ticker-h);
}
.t-sym { color: var(--text2); font-family: var(--mono); font-size: 11px; }
.t-price { color: var(--text); font-family: var(--mono); font-weight: 500; }
.t-up   { color: var(--green); font-size: 11px; }
.t-down { color: var(--red);   font-size: 11px; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ══════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════ */
.page-wrap {
  padding-top: calc(var(--nav-h) + var(--ticker-h) + 16px);
  padding-left: 16px; padding-right: 16px; padding-bottom: 60px;
  max-width: 1600px; margin: 0 auto;
}
.page-wrap.no-ticker { padding-top: calc(var(--nav-h) + 16px); }

/* ══════════════════════════════════════
   STAT CARDS
══════════════════════════════════════ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px 16px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-card .top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.sc-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 7px;
}
.sc-value { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.sc-sub { font-size: 11px; margin-top: 5px; color: var(--text2); }

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text2);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 3px; height: 16px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}
.section-meta { font-size: 11px; color: var(--text3); }

/* ══════════════════════════════════════
   DATA TABLE
══════════════════════════════════════ */
.table-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; overflow-x: auto;
}
.data-tbl { width: 100%; border-collapse: collapse; min-width: 700px; }
.data-tbl thead th {
  background: var(--bg3); padding: 10px 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
  text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: color 0.15s;
}
.data-tbl thead th:hover { color: var(--accent); }
.data-tbl thead th.s-asc::after  { content: " ↑"; color: var(--accent); }
.data-tbl thead th.s-desc::after { content: " ↓"; color: var(--accent); }
.data-tbl thead th.r { text-align: right; }
.data-tbl tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.1s;
}
.data-tbl tbody tr:last-child { border-bottom: none; }
.data-tbl tbody tr:hover { background: rgba(0,198,255,0.03); }
.data-tbl tbody td { padding: 10px 14px; vertical-align: middle; white-space: nowrap; }
.data-tbl tbody td.r { text-align: right; }

/* ══════════════════════════════════════
   INLINE COMPONENTS
══════════════════════════════════════ */
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.coin-cell .cc-name { font-weight: 700; font-size: 13px; color: var(--text); }
.coin-cell .cc-sym  { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-top: 1px; }

.pct { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.pct.up   { color: var(--green); background: var(--green-dim); }
.pct.dn   { color: var(--red);   background: var(--red-dim); }
.pct.flat { color: var(--text2); }

.price-val { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); }
.num-val   { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.rank-badge { font-family: var(--mono); font-size: 11px; color: var(--text3); font-weight: 600; min-width: 28px; display: inline-block; }

/* ══════════════════════════════════════
   CONTROLS
══════════════════════════════════════ */
.controls-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.input-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 9px 13px;
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.input-box::placeholder { color: var(--text3); }
.input-box:focus { border-color: var(--accent); }
.select-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 8px 12px;
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; cursor: pointer; transition: border-color 0.15s;
}
.select-box:focus { border-color: var(--accent); }
.select-box option { background: var(--bg2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border: none; border-radius: var(--r);
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all 0.18s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #33d6ff; box-shadow: 0 0 20px rgba(0,198,255,0.3); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--text2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #ffca30; box-shadow: 0 0 20px rgba(255,184,0,0.3); }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { background: #33ff99; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff6b78; }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════
   SIGNAL CARDS (Bot Trade)
══════════════════════════════════════ */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.signal-card {
  border-radius: var(--r3); overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.signal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }

.signal-card.long  { background: var(--long-bg);  border-color: rgba(0,230,118,0.3); }
.signal-card.short { background: var(--short-bg);  border-color: rgba(255,71,87,0.3); }
.signal-card.long::before  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green); }
.signal-card.short::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }

.sc-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sc-pair {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px; font-family: var(--mono);
}
.sc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.5px;
}
.sc-badge.long  { background: rgba(0,230,118,0.15); color: var(--green); border: 1px solid rgba(0,230,118,0.4); }
.sc-badge.short { background: rgba(255,71,87,0.15);  color: var(--red);   border: 1px solid rgba(255,71,87,0.4);  }
.sc-leverage {
  font-size: 11px; color: var(--text2);
  background: var(--bg4); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 8px; margin-top: 5px;
  font-family: var(--mono);
}

.sc-body { padding: 14px 18px; }
.sc-section { margin-bottom: 14px; }
.sc-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.sc-section-label .sl-icon { font-size: 14px; }
.sc-levels { display: flex; flex-direction: column; gap: 5px; }
.sc-level {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 12px;
}
.sc-level .lv-num {
  font-size: 10px; font-weight: 800; color: var(--text3);
  width: 18px; flex-shrink: 0;
}
.sc-level .lv-price {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--text); flex: 1;
}
.sc-level .lv-note { font-size: 10px; color: var(--text3); }

.sc-level.entry-level { border-color: rgba(0,198,255,0.2); }
.sc-level.target-level { border-color: rgba(0,230,118,0.2); }
.signal-card.short .sc-level.target-level { border-color: rgba(255,71,87,0.2); }
.sc-level.sl-level { border-color: rgba(255,71,87,0.3); background: rgba(255,71,87,0.05); }

.sc-sl { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.25); border-radius: 8px; }
.sc-sl .sl-label { font-size: 11px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 6px; }
.sc-sl .sl-price  { font-family: var(--mono); font-size: 16px; font-weight: 800; color: var(--red); }

.sc-footer { padding: 12px 18px; border-top: 1px solid var(--border); }
.sc-analysis {
  font-size: 12px; line-height: 1.65; color: var(--text2);
  margin-bottom: 10px;
}
.sc-analysis strong { color: var(--text); }
.sc-trend-bar {
  height: 5px; border-radius: 3px; background: var(--bg5);
  overflow: hidden; margin: 6px 0;
}
.sc-trend-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.sc-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--text3); margin-top: 8px;
}
.sc-meta .publisher { color: var(--accent); font-weight: 600; }

/* Signal filters */
.signal-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px 16px; margin-bottom: 16px;
}
.filter-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border2); color: var(--text2);
  background: transparent; cursor: pointer; transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.filter-chip.long.active  { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.filter-chip.short.active { background: var(--red-dim);   border-color: var(--red);   color: var(--red); }

/* ══════════════════════════════════════
   EXCHANGE PAIRS PAGE
══════════════════════════════════════ */
.exchange-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.exch-tab {
  padding: 7px 16px; border-radius: var(--r);
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--border2); color: var(--text2);
  background: var(--bg2); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.exch-tab:hover { border-color: var(--accent); color: var(--accent); }
.exch-tab.active { background: var(--accent); color: #000; border-color: var(--accent); }
.exch-tab .exch-count {
  display: inline-block; background: rgba(255,255,255,0.15);
  border-radius: 10px; padding: 0 6px; font-size: 10px; margin-left: 5px;
}

/* ══════════════════════════════════════
   ALERTS / INFO BOXES
══════════════════════════════════════ */
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 13px; border: 1px solid; margin-bottom: 12px; line-height: 1.6; }
.alert-warn { background: rgba(255,184,0,.08); border-color: rgba(255,184,0,.3); color: var(--gold); }
.alert-err  { background: var(--red-dim);      border-color: rgba(255,71,87,.3);  color: var(--red); }
.alert-ok   { background: var(--green-dim);    border-color: rgba(0,230,118,.3);  color: var(--green); }
.alert-info { background: var(--accent-dim);   border-color: rgba(0,198,255,.3);  color: var(--accent); }

/* ══════════════════════════════════════
   CARDS / PANELS
══════════════════════════════════════ */
.panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px 18px;
}
.panel-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.panel-title::before { content: ''; display: block; width: 3px; height: 12px; background: var(--gold); border-radius: 2px; }

/* Trust dots */
.trust-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.t-green  { background: var(--green);  box-shadow: 0 0 5px var(--green-glow); }
.t-yellow { background: var(--yellow); box-shadow: 0 0 5px rgba(255,214,0,.4); }
.t-red    { background: var(--red);    box-shadow: 0 0 5px var(--red-glow); }

/* Spinner */
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Refresh bar */
.refresh-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); }
.refresh-bar .cd { color: var(--accent); font-weight: 700; font-family: var(--mono); min-width: 24px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; }
.pagination a, .pagination .pg-cur {
  padding: 6px 12px; border-radius: var(--r); font-size: 13px;
  text-decoration: none; border: 1px solid var(--border); color: var(--text2);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .pg-cur { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 800; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.hm-cell { border-radius: var(--r); padding: 10px 6px; text-align: center; cursor: pointer; transition: transform 0.15s; }
.hm-cell:hover { transform: scale(1.06); }
.hm-sym { font-size: 11px; font-weight: 800; color: #fff; margin-bottom: 3px; font-family: var(--mono); }
.hm-pct { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85); font-family: var(--mono); }

/* Sparkline */
.spark svg { display: block; }

/* Arb card */
.arb-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.arb-card:hover { border-color: rgba(0,230,118,.4); transform: translateY(-2px); }
.arb-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--green), transparent); }
.arb-card .pair-lbl { font-family: var(--mono); font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.arb-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.arb-row:last-child { border-bottom: none; }
.arb-row .al { color: var(--text3); }
.arb-row .av { color: var(--text); font-weight: 600; font-family: var(--mono); }
.profit-big { font-size: 24px; font-weight: 900; color: var(--green); text-shadow: 0 0 20px var(--green-glow); font-family: var(--font); }

/* ══════════════════════════════════════
   COIN DETAIL
══════════════════════════════════════ */
.coin-hero { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.coin-hero img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 24px rgba(0,198,255,.2); }
.ch-name { font-size: 30px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; line-height: 1; }
.ch-sym  { font-size: 13px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase; font-family: var(--mono); margin-top: 4px; }
.ch-rank-wrap { margin-left: auto; text-align: right; }
.ch-rank-big  { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.ch-rank-lbl  { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.price-hero { font-size: 40px; font-weight: 900; color: var(--text); letter-spacing: -1px; line-height: 1; font-family: var(--mono); }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin-bottom: 20px; }
.metric-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; }
.mk-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text3); margin-bottom: 5px; }
.mk-val { font-size: 16px; font-weight: 800; color: var(--text); font-family: var(--mono); }
.tag-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; background: var(--bg3); border: 1px solid var(--border2); color: var(--text2); font-size: 12px; text-decoration: none; transition: all .15s; }
.tag-link:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 54px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right .nav-pill:not(.live-pill) { display: none; }
  #navClock { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: 1fr; }
  .heatmap { grid-template-columns: repeat(4, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .coin-hero { gap: 14px; }
  .price-hero { font-size: 28px; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .sc-value { font-size: 15px; }
  .heatmap { grid-template-columns: repeat(3, 1fr); }
  .arb-card .pair-lbl { font-size: 13px; }
  .data-tbl thead th:nth-child(n+7),
  .data-tbl tbody td:nth-child(n+7) { display: none; }
  .page-wrap { padding-left: 10px; padding-right: 10px; }
}
