/* ─── Risk gate (full-screen blocking modal on first visit) ───── */
.risk-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 30%, rgba(15,8,5,0.94) 0%, rgba(5,2,3,0.98) 70%, rgba(0,0,0,1) 100%);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: rg-fade 0.4s ease-out;
}
.risk-gate.hidden { display: none; }
@keyframes rg-fade { from { opacity: 0; } to { opacity: 1; } }
body.gated { overflow: hidden; }
.rg-card {
  max-width: 680px; width: 100%;
  background: linear-gradient(180deg, rgba(40,30,18,0.85) 0%, rgba(15,10,8,0.95) 100%);
  border: 1px solid rgba(240,197,116,0.4);
  border-radius: 22px;
  padding: 36px 36px 32px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 80px rgba(240,197,116,0.15);
  position: relative;
}
.rg-card::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 22px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(240,197,116,0.3) 0%, transparent 30%, transparent 70%, rgba(255,79,122,0.2) 100%);
  filter: blur(8px); opacity: 0.6;
}
.rg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(240,197,116,0.12); border: 1px solid rgba(240,197,116,0.4);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: #f0c574;
  margin-bottom: 18px;
}
.rg-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4f7a; box-shadow: 0 0 10px #ff4f7a; animation: blink 1.4s ease-in-out infinite; }
.rg-title {
  font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #f0c574 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rg-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.rg-row {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px 16px; background: rgba(0,5,15,0.5); border-radius: 10px;
  border-left: 3px solid rgba(120,160,255,0.3);
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.78);
}
.rg-row.warn { border-left-color: #ff4f7a; background: rgba(255,79,122,0.06); }
.rg-row strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.rg-row em { color: #f0c574; font-style: normal; font-weight: 600; }
.rg-ico { font-size: 24px; line-height: 1; opacity: 0.7; text-align: center; padding-top: 2px; }
.rg-row.warn .rg-ico { color: #ff4f7a; opacity: 1; }
.rg-links { font-size: 12px; color: rgba(255,255,255,0.55); text-align: center; margin: 18px 0 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.rg-links a { color: #62d4f6; text-decoration: underline; text-decoration-color: rgba(98,212,246,0.3); }
.rg-confirm { font-size: 11px; color: rgba(255,255,255,0.55); text-align: center; margin-bottom: 18px; line-height: 1.55; }
.rg-confirm strong { color: #f0c574; }
.rg-actions { display: flex; justify-content: center; }
.rg-btn.primary {
  background: linear-gradient(135deg, #22ddaa 0%, #0a9070 100%);
  color: #001a10; border: none; padding: 16px 32px; border-radius: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.14em; font-weight: 700;
  cursor: pointer; box-shadow: 0 0 24px rgba(34,221,170,0.5);
  transition: all 0.15s;
}
.rg-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 36px rgba(34,221,170,0.8); }
@media (max-width: 600px) {
  .rg-card { padding: 24px 22px; }
  .rg-title { font-size: 20px; }
  .rg-row { grid-template-columns: 28px 1fr; padding: 10px 12px; font-size: 12px; }
}

/* ─── Foundation ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #0a1430 0%, #050918 35%, #000510 70%, #000308 100%);
  color: #e4e8ef;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.pos { color: #22ddaa; }
.neg { color: #ff4f7a; }
.dim { color: rgba(255,255,255,0.45); }

/* ─── Background layers ──────────────────────────────────────── */
.bg-stars, .bg-grid, .bg-aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-stars {
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 45% 70%, rgba(150,180,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(180,200,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.5), transparent);
  background-size: 200% 200%;
  animation: drift 60s linear infinite;
  opacity: 0.7;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(80,140,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,140,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 80%);
}
.bg-aurora {
  background:
    radial-gradient(circle 800px at 20% 10%, rgba(34,221,170,0.10), transparent),
    radial-gradient(circle 700px at 80% 5%, rgba(112,136,255,0.10), transparent),
    radial-gradient(circle 1000px at 50% 90%, rgba(255,79,122,0.05), transparent);
  filter: blur(20px);
}
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* ─── Layout ─────────────────────────────────────────────────── */
.warroom { position: relative; z-index: 1; max-width: 1680px; margin: 0 auto; padding: 28px 28px 80px; }

/* ─── Top nav menu ────────────────────────────────────────────── */
.top-nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px 0; margin: 8px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0; z-index: 30;
  background: rgba(5,8,16,0.85); backdrop-filter: blur(14px);
}
.tn-link {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.62); text-decoration: none;
  padding: 7px 12px; border-radius: 6px; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tn-link:hover { color: #fff; background: rgba(120,160,255,0.08); }
.tn-link.new { color: #ab9ff2; }
.tn-soon {
  font-size: 8px; letter-spacing: 0.15em; padding: 2px 6px;
  background: rgba(240,197,116,0.18); color: #f0c574;
  border-radius: 100px;
}
@media (max-width: 900px) { .top-nav { overflow-x: auto; flex-wrap: nowrap; } .tn-link { white-space: nowrap; } }

/* ─── Copy Whales (coming soon) section ────────────────────────── */
.copy-whales {
  background: linear-gradient(135deg, rgba(33,55,100,0.5) 0%, rgba(20,15,30,0.65) 60%, rgba(15,10,8,0.7) 100%);
  border: 1px solid rgba(120,160,255,0.35);
  border-radius: 20px;
  padding: 32px;
  margin: 30px 0;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(120,160,255,0.08);
  position: relative; overflow: hidden;
}
.copy-whales::before {
  content: '🐋'; position: absolute; top: -60px; right: -40px;
  font-size: 240px; opacity: 0.05; transform: rotate(-12deg);
  pointer-events: none;
}
.cw-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; position: relative; z-index: 1; }
@media (max-width: 900px) { .cw-inner { grid-template-columns: 1fr; } }
.cw-pill {
  display: inline-block;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(120,160,255,0.15); border: 1px solid rgba(120,160,255,0.4);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: #62d4f6;
  margin-bottom: 18px;
}
.cw-title { font-family: 'Orbitron', sans-serif; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: #fff; margin: 0 0 12px; line-height: 1.25; letter-spacing: -0.01em; }
.cw-hl { background: linear-gradient(135deg, #62d4f6 0%, #ab9ff2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cw-sub { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 22px; }
.cw-sub strong { color: #54e0bd; }
.cw-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.cw-bullets > div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.55; }
.cw-bullets > div b { color: #fff; }
.cw-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(120,160,255,0.18); color: #62d4f6; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; margin-top: 1px; }
.cw-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cw-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #62d4f6 0%, #6a4eff 100%); color: #fff;
  padding: 12px 22px; border-radius: 10px; text-decoration: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
  box-shadow: 0 0 16px rgba(98,212,246,0.4);
}
.cw-cta:hover { box-shadow: 0 6px 24px rgba(98,212,246,0.7); transform: translateY(-1px); }
.cw-eta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: rgba(240,197,116,0.85); }

.cw-whale-card {
  background: rgba(0,5,15,0.7); border: 1px solid rgba(120,160,255,0.18); border-radius: 14px;
  padding: 18px 20px;
}
.cw-wh-head { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.16em; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.cw-wh-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: 'JetBrains Mono', monospace; font-size: 11px; align-items: baseline; }
.cw-rank { color: rgba(255,255,255,0.4); }
.cw-addr { color: #fff; }
.cw-pnl.pos { color: #22ddaa; }
.cw-vol { color: rgba(255,255,255,0.55); }
.cw-wh-note { margin-top: 12px; font-size: 9.5px; color: rgba(255,255,255,0.35); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }

/* ─── Hero header ────────────────────────────────────────────── */
.hero { padding-bottom: 22px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-logo { font-size: 28px; color: #54e0bd; line-height: 1; filter: drop-shadow(0 0 14px rgba(84,224,189,0.5)); }
.brand-title { font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900; letter-spacing: 0.18em; background: linear-gradient(135deg, #fff 0%, #62d4f6 60%, #54e0bd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.24em; color: rgba(255,255,255,0.4); }
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,16,28,0.6); backdrop-filter: blur(8px);
}
.chip.ok { color: #54e0bd; border-color: rgba(84,224,189,0.3); }
.chip.warn { color: #f0c574; border-color: rgba(240,197,116,0.3); }
.chip.bad { color: #ff5577; border-color: rgba(255,85,119,0.3); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero-metrics { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.hm-card {
  background: linear-gradient(180deg, rgba(20,30,55,0.55) 0%, rgba(10,18,35,0.4) 100%);
  border: 1px solid rgba(120,160,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.hm-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(112,136,255,0.06) 100%); pointer-events: none; }
.hm-lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,0.42); margin-bottom: 8px; }
.hm-val { font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.hm-val.pulse { animation: glow 3s ease-in-out infinite; }
.hm-val.pulse.pos { color: #54e0bd; text-shadow: 0 0 24px rgba(34,221,170,0.4); animation-name: glow-pos; }
.hm-val.pulse.neg { color: #ff4f7a; text-shadow: 0 0 24px rgba(255,79,122,0.4); animation-name: glow-neg; }
@keyframes glow { 0%, 100% { text-shadow: 0 0 14px rgba(255,255,255,0.2); } 50% { text-shadow: 0 0 28px rgba(255,255,255,0.4); } }
@keyframes glow-pos { 0%, 100% { text-shadow: 0 0 14px rgba(34,221,170,0.3); } 50% { text-shadow: 0 0 28px rgba(34,221,170,0.6); } }
@keyframes glow-neg { 0%, 100% { text-shadow: 0 0 14px rgba(255,79,122,0.3); } 50% { text-shadow: 0 0 28px rgba(255,79,122,0.6); } }
.hm-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 4px; }

@media (max-width: 1400px) { .hero-metrics { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .hero-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ─── Chart panels ───────────────────────────────────────────── */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; perspective: 2000px; }
.panel-asset {
  position: relative;
  background: linear-gradient(180deg, rgba(20,30,55,0.55) 0%, rgba(10,18,35,0.3) 100%);
  border: 1px solid rgba(120,160,255,0.15);
  border-radius: 18px;
  padding: 18px 18px 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(120,160,255,0.05);
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.panel-asset:nth-child(1) { transform: perspective(2000px) rotateY(3deg) rotateX(1deg); }
.panel-asset:nth-child(2) { transform: perspective(2000px) rotateY(0deg)  rotateX(1deg); }
.panel-asset:nth-child(3) { transform: perspective(2000px) rotateY(-3deg) rotateX(1deg); }
.panel-asset:hover { transform: none; }
.panel-asset::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(135deg, rgba(112,136,255,0.2) 0%, transparent 30%, transparent 70%, rgba(84,224,189,0.2) 100%);
  z-index: -1; filter: blur(6px); opacity: 0.4;
}
.pa-head { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.pa-name { font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.15em; color: #fff; }
.pa-sym { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); }
.pa-px { font-size: 17px; color: #fff; }
.pa-state {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
}
.pa-state.LONG { background: rgba(34,221,170,0.15); color: #22ddaa; box-shadow: 0 0 12px rgba(34,221,170,0.3) inset; }
.pa-state.SHORT { background: rgba(255,79,122,0.15); color: #ff4f7a; box-shadow: 0 0 12px rgba(255,79,122,0.3) inset; }
/* "Potential" state — algorithm is leaning a direction but no position is open yet */
.pa-state.potential { background: rgba(240,197,116,0.1); color: #f0c574; box-shadow: 0 0 8px rgba(240,197,116,0.2) inset; }

.pa-chart-wrap { position: relative; height: 220px; margin-bottom: 12px; border-radius: 10px; overflow: hidden; background: rgba(0,5,15,0.4); }
.pa-chart { width: 100%; height: 100%; }
.pa-overlay {
  position: absolute; inset: 0; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
}

.pa-meta { display: grid; grid-template-columns: 80px 1fr; gap: 14px; margin-bottom: 10px; }
.pa-pressure {
  display: grid; grid-template-rows: auto 1fr 1fr auto;
  text-align: center; gap: 3px;
  background: rgba(0,5,15,0.4); border-radius: 8px; padding: 6px 4px;
}
.pp-lbl { font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); }
.pp-bar { position: relative; width: 14px; margin: 2px auto; height: 32px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; }
.pp-fill { position: absolute; bottom: 0; left: 0; right: 0; transition: height 1.2s cubic-bezier(.4,.2,.2,1); }
.pp-bar.buy .pp-fill { background: linear-gradient(180deg, #22ddaa, #0a9070); box-shadow: 0 0 10px rgba(34,221,170,0.5); }
.pp-bar.sell .pp-fill { background: linear-gradient(180deg, #ff4f7a, #b02550); box-shadow: 0 0 10px rgba(255,79,122,0.5); }
.pa-ctx { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 12px; font-size: 10px; font-family: 'JetBrains Mono', monospace; }
.pa-ctx > div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.pa-ctx span { color: rgba(255,255,255,0.5); }
.pa-ctx b { color: #fff; font-weight: 500; }

/* Orderbook depth ladder */
.ob-strip {
  margin: 8px 0 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,5,15,0.4);
}
.ob-side { display: flex; flex-direction: column; }
.ob-side.asks { border-right: 1px solid rgba(255,79,122,0.15); }
.ob-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 2px 8px;
  line-height: 1.4;
  z-index: 1;
}
.ob-row .px { font-variant-numeric: tabular-nums; }
.ob-row .sz { text-align: right; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.ob-row.ask .px { color: #ff4f7a; }
.ob-row.bid .px { color: #22ddaa; }
.ob-row::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0;
  background: rgba(255,79,122,0.08);
  z-index: -1;
  width: var(--w, 0%);
}
.ob-row.bid::before {
  background: rgba(34,221,170,0.08);
  right: auto; left: 0;
}

.pa-feed { max-height: 100px; overflow: hidden; }
.pa-feed-row { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; padding: 3px 0; display: grid; grid-template-columns: 50px 1fr; gap: 8px; align-items: baseline; opacity: 0.9; }
.pa-feed-row .t { color: rgba(255,255,255,0.4); }
.pa-feed-row.entry .m { color: #22ddaa; }
.pa-feed-row.exit  .m { color: rgba(255,255,255,0.85); }

@media (max-width: 1200px) { .panels { grid-template-columns: 1fr; } .panel-asset { transform: none !important; } }

/* ─── Master + Banker row ────────────────────────────────────── */
.master-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 30px; }
@media (max-width: 1100px) { .master-row { grid-template-columns: 1fr; } }

.master-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,40,75,0.7) 0%, rgba(15,22,45,0.5) 100%);
  border: 1px solid rgba(84,224,189,0.25);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 80px rgba(84,224,189,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.master-card::before {
  content: ''; position: absolute; top: -50%; right: -50%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(84,224,189,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.mc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; position: relative; z-index: 1; }
.mc-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.2em; color: #54e0bd; text-shadow: 0 0 16px rgba(84,224,189,0.5); }
.mc-status {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(84,224,189,0.1); color: #54e0bd; border: 1px solid rgba(84,224,189,0.3);
}
.mc-status.LONG { background: rgba(34,221,170,0.15); border-color: rgba(34,221,170,0.4); color: #22ddaa; }
.mc-status.SHORT { background: rgba(255,79,122,0.15); border-color: rgba(255,79,122,0.4); color: #ff4f7a; }

.mc-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; position: relative; z-index: 1; }
@media (max-width: 700px) { .mc-body { grid-template-columns: 1fr; } }
.mc-equity { padding-right: 20px; border-right: 1px solid rgba(255,255,255,0.08); }
.mc-lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,0.42); margin-bottom: 6px; }
.mc-equity-val { font-family: 'JetBrains Mono', monospace; font-size: 30px; color: #fff; }
.mc-equity-sub { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #54e0bd; margin-top: 4px; }
.mc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.mc-grid > div { display: flex; flex-direction: column; gap: 3px; }
.mc-grid span { font-size: 9px; letter-spacing: 0.16em; color: rgba(255,255,255,0.42); }
.mc-grid b { font-weight: 500; color: #fff; font-size: 12px; }
.mc-dec { color: rgba(255,255,255,0.6); }
.mc-dec.LONG { color: #22ddaa; }
.mc-dec.SHORT { color: #ff4f7a; }
.mc-equity-val.pos { color: #22ddaa; text-shadow: 0 0 18px rgba(34,221,170,0.4); }
.mc-equity-val.neg { color: #ff4f7a; text-shadow: 0 0 18px rgba(255,79,122,0.4); }
.mc-active-pos { grid-column: 1 / -1; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.mc-ap-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.42); display: block; margin-bottom: 8px; }
.mc-ap-empty { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); padding: 14px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px dashed rgba(255,255,255,0.08); text-align: center; letter-spacing: 0.05em; }
.mc-ap-empty.hidden { display: none; }
.mc-ap-detail.hidden { display: none; }
.ap-line {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(0,5,15,0.5); border-radius: 10px;
  border-left: 4px solid;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.ap-line.long  { border-left-color: #22ddaa; }
.ap-line.short { border-left-color: #ff4f7a; }
.ap-asset { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.ap-side { font-size: 12px; letter-spacing: 0.14em; padding: 4px 10px; border-radius: 4px; }
.ap-line.long .ap-side  { background: rgba(34,221,170,0.15); color: #22ddaa; }
.ap-line.short .ap-side { background: rgba(255,79,122,0.15); color: #ff4f7a; }
.ap-lev { font-size: 12px; color: rgba(255,255,255,0.7); padding: 4px 8px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.ap-notional { font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.ap-unreal { margin-left: auto; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-unreal.pos { color: #22ddaa; }
.ap-unreal.neg { color: #ff4f7a; }
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; overflow: hidden; }
.ap-grid > div { background: rgba(15,22,40,0.6); padding: 10px 12px; font-family: 'JetBrains Mono', monospace; }
.ap-grid span { font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,0.42); display: block; margin-bottom: 3px; }
.ap-grid b { font-size: 12px; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } .ap-line { flex-wrap: wrap; } .ap-unreal { margin-left: 0; width: 100%; } }

/* ─── Banker ─────────────────────────────────────────────────── */
.banker-card {
  position: relative;
  background: linear-gradient(180deg, rgba(40,30,15,0.55) 0%, rgba(20,15,10,0.45) 100%);
  border: 1px solid rgba(240,197,116,0.25);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 60px rgba(240,197,116,0.05);
}
.bk-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.bk-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: #f0c574; text-shadow: 0 0 16px rgba(240,197,116,0.4); }
.bk-rate { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 4px 10px; border-radius: 100px; background: rgba(240,197,116,0.1); color: #f0c574; border: 1px solid rgba(240,197,116,0.3); }
.bk-rings { display: flex; justify-content: center; margin: 12px 0 16px; }
.bk-ring { position: relative; width: 200px; height: 200px; }
.bk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.bk-ring circle { fill: none; stroke-width: 5; }
.bk-ring circle:nth-child(1) { stroke: rgba(240,197,116,0.12); }
#bk-pool-ring { stroke: #f0c574; stroke-dasharray: 314.16; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset 0.6s; filter: drop-shadow(0 0 8px rgba(240,197,116,0.5)); }
.bk-ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.bk-ring-lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); }
.bk-ring-inner .mono { font-size: 22px; color: #f0c574; text-shadow: 0 0 14px rgba(240,197,116,0.4); }
.bk-ring-sub { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); }
.bk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.bk-stats > div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.bk-stats span { color: rgba(255,255,255,0.5); }
.bk-stats b { color: #fff; font-weight: 500; }
.bk-list { margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.bk-list-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.bk-list-row .lname { color: #f0c574; }

/* ─── Total P&L hero (above the arena) ────────────────────────── */
.total-pnl-hero {
  background: linear-gradient(135deg, rgba(34,221,170,0.05) 0%, rgba(20,30,55,0.5) 60%, rgba(15,12,30,0.5) 100%);
  border: 1px solid rgba(34,221,170,0.25);
  border-radius: 18px;
  padding: 24px 28px;
  margin: 22px 0;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 60px rgba(34,221,170,0.06);
  position: relative; overflow: hidden;
}
.total-pnl-hero::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,221,170,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.tph-row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; position: relative; z-index: 1; }
@media (max-width: 800px) { .tph-row { grid-template-columns: 1fr; } }
.tph-stack { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 800px) { .tph-stack { padding-right: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 18px; } }
.tph-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.tph-val { font-family: 'JetBrains Mono', monospace; font-size: 40px; line-height: 1.05; color: #54e0bd; font-variant-numeric: tabular-nums; text-shadow: 0 0 28px rgba(34,221,170,0.4); }
.tph-val.neg { color: #ff4f7a; text-shadow: 0 0 28px rgba(255,79,122,0.4); }
.tph-val.pos { color: #22ddaa; }
.tph-sub { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 6px; }
.tph-banker .tph-val { font-size: 24px; }
@media (max-width: 600px) { .tph-val { font-size: 28px; } .tph-banker .tph-val { font-size: 20px; } }

/* ─── Team Arena ─────────────────────────────────────────────── */
.arena { margin-bottom: 30px; }
.arena-head { margin-bottom: 16px; }
.ah-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.2em; color: #62d4f6; text-shadow: 0 0 14px rgba(98,212,246,0.4); margin-bottom: 4px; }
.ah-title { font-size: 14px; color: rgba(255,255,255,0.65); }
.teams-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1500px) { .teams-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .teams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .teams-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  background: linear-gradient(180deg, rgba(18,28,55,0.55) 0%, rgba(8,14,28,0.45) 100%);
  border: 1px solid rgba(120,160,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.team-card.winning {
  border-color: rgba(34,221,170,0.45);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 30px rgba(34,221,170,0.15);
}
.team-card.losing {
  border-color: rgba(255,79,122,0.25);
  opacity: 0.85;
}
.team-card.liquidated {
  border-color: rgba(255,79,122,0.6);
  animation: warn-flash 1.2s ease-in-out infinite;
}
.team-card.recovery {
  border-color: rgba(240,197,116,0.45);
  background: linear-gradient(180deg, rgba(35,28,18,0.6) 0%, rgba(8,14,28,0.45) 100%);
}
@keyframes warn-flash { 0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 14px rgba(255,79,122,0.2); } 50% { box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 30px rgba(255,79,122,0.5); } }

.tc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tc-name { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.tc-status { font-family: 'JetBrains Mono', monospace; font-size: 9px; padding: 3px 8px; border-radius: 100px; background: rgba(34,221,170,0.1); color: #22ddaa; border: 1px solid rgba(34,221,170,0.3); }
.tc-status.RECOVERY { color: #f0c574; background: rgba(240,197,116,0.1); border-color: rgba(240,197,116,0.3); }
.tc-status.LIQUIDATED { color: #ff4f7a; background: rgba(255,79,122,0.1); border-color: rgba(255,79,122,0.4); }
.tc-equity { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: #fff; margin-bottom: 4px; }
.tc-equity.pos { color: #22ddaa; }
.tc-equity.neg { color: #ff4f7a; }
.tc-pnl { font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 10px; }
.tc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; }
.tc-grid > div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tc-grid span { color: rgba(255,255,255,0.5); }
.tc-grid b { color: #fff; font-weight: 500; }
.tc-vote { display: flex; gap: 6px; margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
.tc-vote .v { padding: 3px 7px; border-radius: 4px; }
.tc-vote .v.long  { background: rgba(34,221,170,0.12); color: #22ddaa; }
.tc-vote .v.short { background: rgba(255,79,122,0.12); color: #ff4f7a; }
.tc-vote .v.wait  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); }
.tc-loan {
  margin-top: 8px; padding: 6px 8px; border-radius: 6px;
  background: rgba(240,197,116,0.08); border: 1px solid rgba(240,197,116,0.2);
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px;
}
.tc-loan b { color: #f0c574; }

/* ─── Vote stream ────────────────────────────────────────────── */
.votes-row { margin-bottom: 30px; }
.vote-stream {
  background: rgba(10,18,35,0.55);
  border: 1px solid rgba(120,160,255,0.12);
  border-radius: 16px;
  padding: 18px 22px;
  backdrop-filter: blur(14px);
}
.vs-head { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #62d4f6; margin-bottom: 14px; }
.vs-master {
  display: flex; gap: 14px; align-items: baseline; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(84,224,189,0.1), rgba(84,224,189,0.02));
  border: 1px solid rgba(84,224,189,0.3);
  border-radius: 10px; margin-bottom: 14px;
}
.vsm-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); }
.vsm-dec { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; color: #54e0bd; }
.vsm-dec.LONG { color: #22ddaa; text-shadow: 0 0 12px rgba(34,221,170,0.5); }
.vsm-dec.SHORT { color: #ff4f7a; text-shadow: 0 0 12px rgba(255,79,122,0.5); }
.vsm-asset { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #fff; }
.vsm-conf { color: rgba(255,255,255,0.55); font-size: 12px; margin-left: auto; }
.vs-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 1200px) { .vs-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .vs-list { grid-template-columns: 1fr; } }
.vs-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  background: rgba(15,22,40,0.5); border: 1px solid rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.vs-row .vname { color: #fff; }
.vs-row .vbreakdown span { padding: 2px 6px; border-radius: 3px; margin-left: 4px; font-size: 9.5px; }
.vs-row .vbreakdown .l { background: rgba(34,221,170,0.15); color: #22ddaa; }
.vs-row .vbreakdown .s { background: rgba(255,79,122,0.15); color: #ff4f7a; }
.vs-row .vbreakdown .w { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }

/* ─── Evolution timeline ─────────────────────────────────────── */
.evo-row { margin-bottom: 30px; }
.evo-head { margin-bottom: 14px; }
.eh-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #9a6cff; text-shadow: 0 0 14px rgba(154,108,255,0.4); margin-bottom: 4px; }
.eh-sub { font-size: 12px; color: rgba(255,255,255,0.5); }
.evo-timeline {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 14px 6px; min-height: 130px;
  scrollbar-width: thin;
}
.evo-timeline::-webkit-scrollbar { height: 4px; }
.evo-timeline::-webkit-scrollbar-thumb { background: rgba(154,108,255,0.3); border-radius: 2px; }
.evo-node {
  flex: 0 0 auto; width: 260px;
  background: linear-gradient(180deg, rgba(35,25,55,0.55) 0%, rgba(15,12,28,0.4) 100%);
  border: 1px solid rgba(154,108,255,0.25);
  border-radius: 12px; padding: 12px 14px;
  backdrop-filter: blur(10px);
  position: relative;
}
.evo-node::before {
  content: ''; position: absolute; left: -8px; top: 50%; width: 8px; height: 2px; background: rgba(154,108,255,0.3);
}
.evo-time { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: #9a6cff; margin-bottom: 8px; }
.evo-list { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; }
.evo-list > div { display: grid; grid-template-columns: 90px 1fr auto; gap: 6px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.evo-list .team-name { color: rgba(255,255,255,0.7); }
.evo-list .promoted { color: #22ddaa; }
.evo-list .demoted { color: #ff4f7a; opacity: 0.7; }

.evo-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
}

/* ─── Global feed ────────────────────────────────────────────── */
.feed-row { margin-bottom: 30px; }
.feed-head { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #62d4f6; margin-bottom: 12px; }
.global-feed {
  background: rgba(8,12,24,0.5);
  border: 1px solid rgba(120,160,255,0.1);
  border-radius: 14px; padding: 14px 18px;
  backdrop-filter: blur(10px);
  max-height: 360px; overflow-y: auto;
}
.gf-row {
  display: grid; grid-template-columns: 60px 100px 1fr auto;
  gap: 12px; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
}
.gf-row .t { color: rgba(255,255,255,0.4); }
.gf-row .src { color: rgba(255,255,255,0.6); letter-spacing: 0.08em; font-size: 9.5px; }
.gf-row .m { color: rgba(255,255,255,0.85); }
.gf-row.long .m { color: #22ddaa; }
.gf-row.short .m { color: #ff4f7a; }
.gf-row.master .m { color: #54e0bd; font-weight: 600; }
.gf-row.evo .m { color: #9a6cff; }
.gf-row.loan .m { color: #f0c574; }
.gf-row.liquidation .m { color: #ff4f7a; font-weight: 600; text-shadow: 0 0 10px rgba(255,79,122,0.5); }

/* ─── AUTO TRADER (operator's real-money public proof) ──────── */
.auto-trader {
  position: relative;
  background: linear-gradient(180deg, rgba(40,30,15,0.55) 0%, rgba(15,10,8,0.7) 100%);
  border: 1px solid rgba(240,197,116,0.35);
  border-radius: 20px;
  padding: 28px 28px 24px;
  margin: 40px 0 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 80px rgba(240,197,116,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.auto-trader::before {
  content: ''; position: absolute; top: -100px; left: -100px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,197,116,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.at-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; position: relative; z-index: 1; }
.at-left { flex: 1; min-width: 280px; }
.at-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(240,197,116,0.1); border: 1px solid rgba(240,197,116,0.35);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: #f0c574;
  margin-bottom: 12px;
}
.at-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #f0c574; box-shadow: 0 0 8px #f0c574; animation: blink 1.6s ease-in-out infinite; }
.at-title { font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 900; letter-spacing: 0.06em; margin: 0 0 6px; background: linear-gradient(135deg, #fff 0%, #f0c574 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; max-width: 540px; line-height: 1.55; }
.at-right { display: flex; align-items: center; }
.at-mode {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  padding: 9px 16px; border-radius: 8px;
  background: rgba(240,197,116,0.1); color: #f0c574; border: 1px solid rgba(240,197,116,0.4);
}
.at-mode.live { background: rgba(34,221,170,0.15); color: #22ddaa; border-color: rgba(34,221,170,0.4); }
.at-mode.error { background: rgba(255,79,122,0.15); color: #ff4f7a; border-color: rgba(255,79,122,0.4); }

.at-body { position: relative; z-index: 1; }
.at-not-configured {
  background: rgba(0,5,15,0.45);
  border: 1px dashed rgba(240,197,116,0.3);
  border-radius: 12px; padding: 22px;
}
.at-not-configured.hidden { display: none; }
.atnc-text strong { display: block; color: #f0c574; font-size: 14px; margin-bottom: 6px; letter-spacing: 0.04em; }
.atnc-text span { display: block; color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.6; }

.at-live.hidden { display: none; }
.at-activate.hidden { display: none; }
.at-activate {
  background: linear-gradient(135deg, rgba(34,221,170,0.1) 0%, rgba(20,15,10,0.6) 100%);
  border: 1px solid rgba(34,221,170,0.4);
  border-radius: 12px; padding: 18px 22px;
  margin-bottom: 14px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.ata-text { flex: 1; min-width: 260px; }
.ata-text strong { display: block; color: #22ddaa; font-size: 14px; margin-bottom: 4px; letter-spacing: 0.04em; }
.ata-text span { display: block; font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.ata-text em { color: #f0c574; font-style: normal; }
.ata-btn {
  background: linear-gradient(135deg, #22ddaa 0%, #0a9070 100%);
  color: #001a10; border: none; padding: 12px 22px; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
  cursor: pointer; box-shadow: 0 0 16px rgba(34,221,170,0.4); white-space: nowrap;
}
.ata-btn:hover { box-shadow: 0 4px 28px rgba(34,221,170,0.8); transform: translateY(-1px); }
.at-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.at-stats > div { background: rgba(15,10,8,0.7); padding: 14px 16px; }
.at-stats .lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: rgba(255,255,255,0.42); margin-bottom: 4px; }
.at-stats .val { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .at-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .at-stats { grid-template-columns: repeat(2, 1fr); } }

.at-positions { font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 14px; }
.at-pos-row { display: grid; grid-template-columns: 70px 70px 1fr 1fr 1fr 1fr; gap: 12px; padding: 10px 14px; background: rgba(20,15,10,0.55); border-radius: 8px; margin-bottom: 6px; border-left: 3px solid; align-items: center; }
.at-pos-row.LONG  { border-left-color: #22ddaa; }
.at-pos-row.SHORT { border-left-color: #ff4f7a; }
.at-pos-row b { font-weight: 600; }
.at-pos-row .pos { color: #22ddaa; }
.at-pos-row .neg { color: #ff4f7a; }

.at-manual {
  background: linear-gradient(135deg, rgba(154,108,255,0.06) 0%, rgba(20,15,10,0.6) 100%);
  border: 1px solid rgba(154,108,255,0.3); border-radius: 12px;
  padding: 16px 18px; margin: 12px 0 14px;
}
.at-manual-head { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #ab9ff2; margin-bottom: 12px; }
.at-manual-row { display: grid; grid-template-columns: 160px 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 8px; }
@media (max-width: 800px) { .at-manual-row { grid-template-columns: 1fr 1fr; } }
.at-manual-row select { background: rgba(20,28,55,0.7); border: 1px solid rgba(154,108,255,0.3); color: #fff; padding: 8px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.at-manual-msg { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: rgba(255,255,255,0.55); margin-top: 6px; }
.at-manual-msg.ok { color: #22ddaa; }
.at-manual-msg.err { color: #ff8aa3; }

.at-fills { font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.at-fill-row { display: grid; grid-template-columns: 80px 60px 60px 1fr 1fr 30px; gap: 12px; padding: 5px 4px; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.04); align-items: center; }
.at-fill-row .pos { color: #22ddaa; }
.at-fill-row .neg { color: #ff4f7a; }
.at-fill-row .hl-link { color: rgba(98,212,246,0.7); text-decoration: none; font-size: 14px; text-align: center; }
.at-fill-row .hl-link:hover { color: #62d4f6; }

/* ─── Footer ─────────────────────────────────────────────────── */
.ft {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.06em;
}

/* ─── ELEVATOR PITCH LANDING ──────────────────────────────────── */
.landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 28px 80px;
  overflow: hidden;
}
.land-bg { position: absolute; inset: 0; z-index: 0; }
.land-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,160,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
  animation: grid-pulse 8s ease-in-out infinite;
}
@keyframes grid-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.land-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 600px at 30% 40%, rgba(154,108,255,0.18), transparent),
    radial-gradient(circle 700px at 70% 60%, rgba(84,224,189,0.15), transparent);
  filter: blur(20px);
}
.land-content { position: relative; z-index: 1; max-width: 1100px; width: 100%; text-align: center; }
.land-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(34,221,170,0.08); border: 1px solid rgba(34,221,170,0.3);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  color: #22ddaa; margin-bottom: 32px;
  box-shadow: 0 0 24px rgba(34,221,170,0.15);
}
.land-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #22ddaa; box-shadow: 0 0 10px #22ddaa; animation: blink 1.4s ease-in-out infinite; }

.land-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.land-title .hl {
  background: linear-gradient(135deg, #54e0bd 0%, #62d4f6 50%, #ab9ff2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}

.land-tagline {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.32em;
  color: #54e0bd;
  margin: 12px 0 28px;
  text-shadow: 0 0 18px rgba(84,224,189,0.4);
}
.land-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 780px;
  margin: 0 auto 48px;
}
.land-sub strong { color: #fff; }

.land-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .land-pillars { grid-template-columns: repeat(2, 1fr); } }
.lp {
  background: rgba(15,22,40,0.5);
  border: 1px solid rgba(120,160,255,0.15);
  border-radius: 14px;
  padding: 22px 18px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.lp:hover { transform: translateY(-2px); border-color: rgba(120,160,255,0.35); }
.lp-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, #62d4f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.lp-num.live-pulse { color: #22ddaa; background: none; -webkit-text-fill-color: #22ddaa; text-shadow: 0 0 20px rgba(34,221,170,0.6); animation: blink 1.4s ease-in-out infinite; }
.lp-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: #54e0bd; margin: 6px 0 10px; }
.lp-desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.land-honesty {
  background: rgba(15,18,30,0.6);
  border: 1px solid rgba(240,197,116,0.25);
  border-radius: 14px;
  padding: 22px 28px;
  margin-bottom: 40px;
  text-align: left;
  backdrop-filter: blur(10px);
}
.lh-head { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #f0c574; margin-bottom: 12px; }
.land-honesty ul { list-style: none; padding: 0; margin: 0; }
.land-honesty li { font-size: 13px; color: rgba(255,255,255,0.7); padding: 6px 0; line-height: 1.55; }
.land-honesty li b { color: #fff; }
.land-honesty li::before { content: '✓ '; color: #22ddaa; font-weight: 600; }

.land-access {
  background: linear-gradient(180deg, rgba(35,28,55,0.7) 0%, rgba(15,12,30,0.5) 100%);
  border: 1px solid rgba(154,108,255,0.35);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.land-access::before {
  content: ''; position: absolute; inset: -50% -10%; pointer-events: none;
  background: radial-gradient(circle 500px at 50% 0%, rgba(154,108,255,0.15), transparent 70%);
}
.land-access .la-eyebrow { position: relative; font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.22em; color: #ab9ff2; margin-bottom: 12px; }
.la-text { position: relative; margin-bottom: 24px; }
.la-headline { display: block; font-size: clamp(18px, 2vw, 24px); font-weight: 500; color: #fff; margin-bottom: 6px; line-height: 1.4; }
.la-token { color: #54e0bd; font-family: 'JetBrains Mono', monospace; }
.la-token-name {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  background: linear-gradient(135deg, #54e0bd 0%, #62d4f6 50%, #ab9ff2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.la-sub { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }

.la-ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-primary, .cta-secondary, .cta-real {
  padding: 12px 22px; border-radius: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
}
.cta-primary {
  background: linear-gradient(135deg, #22ddaa 0%, #0a9070 100%);
  color: #001a10; box-shadow: 0 0 16px rgba(34,221,170,0.5);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34,221,170,0.7); }
.cta-secondary {
  background: rgba(120,160,255,0.1); color: #62d4f6;
  border: 1px solid rgba(120,160,255,0.4);
}
.cta-secondary:hover { background: rgba(120,160,255,0.2); }
.cta-real {
  background: linear-gradient(135deg, #ab9ff2 0%, #6a4eff 100%);
  color: #fff; box-shadow: 0 0 16px rgba(154,108,255,0.5);
}
.cta-real:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(154,108,255,0.7); }

.land-scroll { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.3em; color: rgba(255,255,255,0.3); animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ─── YOUR PAPER ACCOUNT ──────────────────────────────────────── */
.me-card {
  background: linear-gradient(180deg, rgba(20,30,55,0.55) 0%, rgba(10,18,35,0.4) 100%);
  border: 1px solid rgba(98,212,246,0.25);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 60px rgba(98,212,246,0.05);
}
.me-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.me-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: #62d4f6; text-shadow: 0 0 14px rgba(98,212,246,0.4); }
.me-actions { display: flex; gap: 10px; align-items: center; }
.me-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.55); padding: 5px 10px; background: rgba(0,5,15,0.5); border-radius: 6px; border: 1px solid rgba(255,255,255,0.06); }
.me-username { background: rgba(0,5,15,0.5); border: 1px solid rgba(120,160,255,0.2); color: #fff; padding: 6px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; min-width: 200px; }
.me-username::placeholder { color: rgba(255,255,255,0.35); }
.me-save-name { background: rgba(98,212,246,0.12); border: 1px solid rgba(98,212,246,0.3); color: #62d4f6; padding: 6px 12px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; cursor: pointer; }
.me-save-name:hover { background: rgba(98,212,246,0.22); }
.me-reset { background: rgba(255,79,122,0.1); border: 1px solid rgba(255,79,122,0.3); color: #ff8aa3; padding: 6px 12px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; cursor: pointer; }
.me-reset:hover { background: rgba(255,79,122,0.2); }

.me-body { display: grid; gap: 18px; }
.me-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.me-stats > div { background: rgba(15,22,40,0.6); padding: 12px 14px; }
.me-stats .lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: rgba(255,255,255,0.42); margin-bottom: 4px; }
.me-stats .val { font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .me-stats { grid-template-columns: repeat(2, 1fr); } }

.info-pill {
  display: inline-block; width: 14px; height: 14px; line-height: 14px;
  text-align: center; border-radius: 50%; font-size: 9px;
  background: rgba(98,212,246,0.15); color: #62d4f6;
  cursor: help; margin-left: 4px; vertical-align: middle;
}
/* Universal info trigger — works on hover (desktop) + tap (mobile) */
.info-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%; background: rgba(98,212,246,0.18); color: #62d4f6;
  font-size: 11px; cursor: pointer; user-select: none;
  margin-left: 6px; vertical-align: middle; position: relative;
  transition: background 0.15s;
}
.info-trigger:hover { background: rgba(98,212,246,0.35); }
.info-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  width: max-content; max-width: 320px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(20,28,55,0.98) 0%, rgba(10,15,28,0.98) 100%);
  border: 1px solid rgba(98,212,246,0.35);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.7), 0 0 24px rgba(98,212,246,0.15);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.85);
  text-align: left; white-space: normal; letter-spacing: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.info-bubble b { color: #62d4f6; font-weight: 600; display: block; margin-bottom: 4px; }
.info-bubble em { color: #f0c574; font-style: normal; font-weight: 500; }
.info-bubble::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(98,212,246,0.35);
}
.info-trigger:hover .info-bubble,
.info-trigger.open .info-bubble {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(-3px);
}
/* On mobile (no hover capability), tap-to-toggle handled via JS */
@media (max-width: 700px) {
  .info-bubble { max-width: 240px; font-size: 11px; }
}
.trail-row { display: grid; grid-template-columns: 80px 1fr 110px 1fr; gap: 10px; align-items: center; }
.trail-row label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.12em; color: rgba(255,255,255,0.55); }
@media (max-width: 700px) { .trail-row { grid-template-columns: 1fr 1fr; } }

/* ─── Risk slider ───────────────────────────────────────────── */
.me-risk { background: rgba(0,5,15,0.3); border-radius: 10px; padding: 16px; }
.me-risk-head { display: flex; justify-content: space-between; align-items: baseline; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.me-risk-val { font-size: 18px; color: #62d4f6; letter-spacing: 0; text-shadow: 0 0 10px rgba(98,212,246,0.4); }
.me-risk-slider { width: 100%; accent-color: #62d4f6; }
.me-risk-marks { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.35); margin-top: 4px; }

/* ─── Voting grid ───────────────────────────────────────────── */
.me-votes { background: rgba(0,5,15,0.3); border-radius: 10px; padding: 16px; }
.me-votes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .me-votes-grid { grid-template-columns: 1fr; } }

.vote-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20,28,55,0.6) 0%, rgba(10,18,35,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s;
  overflow: hidden;
}
.vote-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 12px; pointer-events: none;
  background: linear-gradient(135deg, transparent 30%, rgba(120,160,255,0.15) 100%);
  z-index: -1; opacity: 0.5;
}
.vote-card.gold-long, .vote-card.gold-short {
  border-color: rgba(240,197,116,0.7);
  box-shadow: 0 0 24px rgba(240,197,116,0.4), 0 0 0 1px rgba(240,197,116,0.5);
  animation: gold-flash 1.2s ease-in-out infinite;
}
@keyframes gold-flash {
  0%, 100% { box-shadow: 0 0 24px rgba(240,197,116,0.3), 0 0 0 1px rgba(240,197,116,0.4); }
  50% { box-shadow: 0 0 40px rgba(240,197,116,0.7), 0 0 0 2px rgba(240,197,116,0.8); }
}

.vc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.vc-sym { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; }
.vc-sym.BTC { color: #f7931a; }
.vc-sym.ETH { color: #7088ff; }
.vc-sym.SOL { color: #14f195; }
.vc-px { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #fff; }

/* Pressure row: [SELL number] [bar] [BUY number] */
.vc-pressure-row {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.vc-side-num {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}
.vc-side-num.dim .vcsn-num { color: rgba(255,255,255,0.2); font-size: 14px; }
.vc-side-num.dim .vcsn-lbl { color: rgba(255,255,255,0.3); }
.vc-side-num .vcsn-num { font-size: 22px; font-weight: 600; line-height: 1.1; transition: all 0.2s; }
.vc-side-num .vcsn-lbl { font-size: 9px; letter-spacing: 0.16em; margin-top: 2px; }
.vc-side-num.active.sell .vcsn-num { color: #ff4f7a; text-shadow: 0 0 12px rgba(255,79,122,0.5); }
.vc-side-num.active.sell .vcsn-lbl { color: #ff4f7a; }
.vc-side-num.active.buy  .vcsn-num { color: #22ddaa; text-shadow: 0 0 12px rgba(34,221,170,0.5); }
.vc-side-num.active.buy  .vcsn-lbl { color: #22ddaa; }
.vc-side-num.gold .vcsn-num { color: #f0c574; text-shadow: 0 0 18px rgba(240,197,116,0.9); animation: gold-pulse-num 0.9s ease-in-out infinite; }
.vc-side-num.gold .vcsn-lbl { color: #f0c574; }
@keyframes gold-pulse-num { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.vc-bar { display: flex; flex-direction: column; gap: 4px; }
.vc-pressure {
  position: relative;
  display: flex;
  width: 100%; height: 14px;
  border-radius: 7px;
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.vc-half { flex: 1; height: 100%; display: flex; }
.vc-half.short { justify-content: flex-end; }
.vc-half.long  { justify-content: flex-start; }
/* Width is animated by rAF tweener — short CSS transition smooths each frame's tiny step */
.vc-half-fill { height: 100%; transition: width 80ms linear; }
.vc-half.short .vc-half-fill {
  background: linear-gradient(90deg, #ff4f7a 0%, rgba(255,79,122,0.4) 100%);
  box-shadow: 0 0 10px rgba(255,79,122,0.5);
}
.vc-half.long .vc-half-fill {
  background: linear-gradient(90deg, rgba(34,221,170,0.4) 0%, #22ddaa 100%);
  box-shadow: 0 0 10px rgba(34,221,170,0.5);
}
.vc-mid-line {
  position: absolute; left: 50%; top: -1px; bottom: -1px; width: 2px;
  background: rgba(255,255,255,0.6); transform: translateX(-1px);
  box-shadow: 0 0 6px rgba(255,255,255,0.6);
  z-index: 3;
}
.vc-pressure-labels { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; padding: 0 1px; }

/* Per-card leverage slider */
.vc-lev-row { display: grid; grid-template-columns: 60px 1fr 40px; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; background: rgba(0,0,0,0.3); border-radius: 6px; }
.vc-lev-row label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); }
.vc-lev-slider { width: 100%; accent-color: #f0c574; }
.vc-lev-val { font-size: 11px; color: #f0c574; text-align: right; }

.vc-vote-tally { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.vc-vote-tally > div { background: rgba(0,5,15,0.5); border-radius: 6px; padding: 5px 8px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.vc-vote-tally .lbl { font-size: 8px; letter-spacing: 0.16em; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
.vc-vote-tally .num { font-size: 14px; font-weight: 600; }
.vc-vote-tally .l .num { color: #22ddaa; }
.vc-vote-tally .s .num { color: #ff4f7a; }
.vc-vote-tally .w .num { color: rgba(255,255,255,0.55); }

.vc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vc-btn {
  border: 1px solid transparent; border-radius: 6px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.vc-btn.long  { background: rgba(34,221,170,0.12); color: #22ddaa; border-color: rgba(34,221,170,0.3); }
.vc-btn.long:hover  { background: rgba(34,221,170,0.25); }
.vc-btn.short { background: rgba(255,79,122,0.12); color: #ff4f7a; border-color: rgba(255,79,122,0.3); }
.vc-btn.short:hover { background: rgba(255,79,122,0.25); }
.vc-btn.gold {
  background: linear-gradient(135deg, #f0c574 0%, #d4a050 100%);
  color: #1a1208; border-color: #f0c574;
  box-shadow: 0 0 16px rgba(240,197,116,0.5);
  animation: pulse-gold 0.9s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { transform: scale(1); box-shadow: 0 0 16px rgba(240,197,116,0.5); }
  50% { transform: scale(1.03); box-shadow: 0 0 28px rgba(240,197,116,0.9); }
}
.vc-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.me-trade { background: rgba(0,5,15,0.3); border-radius: 10px; padding: 16px; }
.me-trade-head { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.me-trade-row { display: grid; grid-template-columns: 80px 1fr 1fr 1fr; gap: 10px; align-items: center; }
@media (max-width: 700px) { .me-trade-row { grid-template-columns: 1fr 1fr; } }
.me-trade-row select {
  background: rgba(20,28,55,0.7); border: 1px solid rgba(120,160,255,0.2);
  color: #fff; padding: 8px 10px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.me-lev-row { display: flex; align-items: center; gap: 8px; }
.me-lev-row label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); }
.me-lev-row input[type="range"] { flex: 1; accent-color: #62d4f6; }
.me-lev-row span { min-width: 38px; text-align: right; color: #62d4f6; font-size: 13px; }
.me-btn {
  border: none; border-radius: 8px; padding: 11px 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.me-btn.long { background: linear-gradient(135deg, #22ddaa 0%, #0a9070 100%); color: #001a10; box-shadow: 0 0 12px rgba(34,221,170,0.4); }
.me-btn.long:hover { box-shadow: 0 0 18px rgba(34,221,170,0.6); }
.me-btn.short { background: linear-gradient(135deg, #ff4f7a 0%, #b02550 100%); color: #fff; box-shadow: 0 0 12px rgba(255,79,122,0.4); }
.me-btn.short:hover { box-shadow: 0 0 18px rgba(255,79,122,0.6); }
.me-btn.close { background: rgba(240,197,116,0.2); border: 1px solid rgba(240,197,116,0.4); color: #f0c574; grid-column: 3 / -1; }
.me-btn.close:hover { background: rgba(240,197,116,0.3); }
.me-btn.hidden { display: none; }
.me-position { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.me-position.hidden { display: none; }
.pos-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 80px 1.4fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  background: rgba(20,28,55,0.6);
  border-radius: 8px;
  border-left: 3px solid;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.pos-row.long  { border-left-color: #22ddaa; }
.pos-row.short { border-left-color: #ff4f7a; }
.pr-cell .lbl { font-size: 8px; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); }
.pr-cell .val { color: #fff; }
.pr-cell .val.pos { color: #22ddaa; }
.pr-cell .val.neg { color: #ff4f7a; }
.pr-close {
  background: rgba(255,79,122,0.12); border: 1px solid rgba(255,79,122,0.3);
  color: #ff8aa3; padding: 7px 10px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.15s;
}
.pr-close:hover { background: rgba(255,79,122,0.25); }
@media (max-width: 1000px) {
  .pos-row { grid-template-columns: 1fr 1fr; }
  .pr-close { grid-column: 1 / -1; }
}
.me-msg { margin-top: 8px; min-height: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: rgba(255,255,255,0.5); }
.me-msg.err { color: #ff8aa3; }
.me-msg.ok { color: #22ddaa; }

.me-history { background: rgba(0,5,15,0.3); border-radius: 10px; padding: 16px; }
.me-trades-list { font-family: 'JetBrains Mono', monospace; font-size: 11px; max-height: 200px; overflow-y: auto; }
.me-trade-li { display: grid; grid-template-columns: 60px 40px 60px 90px 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.me-trade-li .t { color: rgba(255,255,255,0.4); }
.me-trade-li .pos { color: #22ddaa; }
.me-trade-li .neg { color: #ff4f7a; }

/* ─── Leaderboard ─────────────────────────────────────────────── */
.lb-card {
  background: rgba(15,18,30,0.6);
  border: 1px solid rgba(240,197,116,0.2);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.lb-head { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.18em; color: #f0c574; text-shadow: 0 0 12px rgba(240,197,116,0.4); margin-bottom: 12px; }
.lb-list { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.lb-row { display: grid; grid-template-columns: 30px 1fr auto auto auto; gap: 12px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); align-items: baseline; }
.lb-rank { color: rgba(255,255,255,0.4); }
.lb-rank.gold { color: #f0c574; font-weight: 700; }
.lb-rank.silver { color: rgba(255,255,255,0.7); }
.lb-rank.bronze { color: #c98a4b; }
.lb-row .lid { color: #fff; display: flex; gap: 8px; align-items: baseline; }
.lb-row .lb-username { color: #54e0bd; font-weight: 600; }
.lb-row .lb-handle { color: rgba(255,255,255,0.4); font-size: 10px; }
.lb-row .lb-you { color: #62d4f6; font-size: 10px; }
.lb-row .leq { color: #fff; font-variant-numeric: tabular-nums; }
.lb-row .lpnl.pos { color: #22ddaa; }
.lb-row .lpnl.neg { color: #ff4f7a; }
.lb-row .lt { color: rgba(255,255,255,0.45); }

/* ─── Connect button + live mode ─────────────────────────────── */
.connect-btn {
  background: linear-gradient(135deg, #ab9ff2 0%, #6a4eff 100%);
  border: none; border-radius: 100px;
  padding: 7px 16px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; font-weight: 600;
  color: #fff; cursor: pointer;
  box-shadow: 0 0 12px rgba(154,108,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.1s;
}
.connect-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(154,108,255,0.6); }
.connect-btn.connected { background: linear-gradient(135deg, #22ddaa 0%, #0a9070 100%); box-shadow: 0 0 12px rgba(34,221,170,0.5); }
.connect-btn.settings { background: rgba(120,160,255,0.12); border: 1px solid rgba(120,160,255,0.3); color: rgba(255,255,255,0.85); box-shadow: none; }
.connect-btn.settings:hover { background: rgba(120,160,255,0.22); box-shadow: 0 0 8px rgba(120,160,255,0.3); transform: none; }

/* Settings modal sections */
.set-section { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.set-section:last-child { border-bottom: 0; }
.set-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 0.2em; color: #62d4f6; margin-bottom: 10px; }
.set-help { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.55; margin-bottom: 12px; }
.set-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); margin: 12px 0 4px; }
.set-label .set-sub { color: rgba(255,255,255,0.35); margin-left: 6px; }
.set-input { width: 100%; background: rgba(0,5,15,0.6); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 9px 12px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; resize: vertical; }
.set-input:focus { outline: none; border-color: rgba(98,212,246,0.5); }
.modal-btn { padding: 10px 16px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; margin: 8px 6px 0 0; }
.modal-btn.primary { background: linear-gradient(135deg, #62d4f6 0%, #2a6fcf 100%); color: #fff; }
.modal-btn.primary:hover { box-shadow: 0 4px 16px rgba(98,212,246,0.4); }
.modal-btn.warn { background: rgba(255,79,122,0.12); color: #ff8aa3; border-color: rgba(255,79,122,0.3); }
.modal-btn.warn:hover { background: rgba(255,79,122,0.22); }
.modal-btn.ghost { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.modal-btn.ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.set-msg { font-family: 'JetBrains Mono', monospace; font-size: 11px; min-height: 14px; margin-top: 8px; color: rgba(255,255,255,0.5); }
.set-msg.ok { color: #22ddaa; } .set-msg.err { color: #ff8aa3; }
.set-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 600px) { .set-options { grid-template-columns: 1fr; } }
.set-option { background: rgba(15,22,40,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 14px; }
.set-opt-h { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #f0c574; margin-bottom: 8px; }
.set-option p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; margin: 0 0 12px; }
.set-opt-status { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 8px 10px; background: rgba(0,5,15,0.5); border-radius: 6px; color: rgba(255,255,255,0.7); }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

#chip-mode.live { background: rgba(34,221,170,0.15); color: #22ddaa; border-color: rgba(34,221,170,0.4); }

/* ─── Live Account card ──────────────────────────────────────── */
.live-account {
  background: linear-gradient(180deg, rgba(35,28,55,0.65) 0%, rgba(15,12,30,0.5) 100%);
  border: 1px solid rgba(154,108,255,0.35);
  border-radius: 18px; padding: 22px; margin: 30px 0;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 60px rgba(154,108,255,0.08);
  position: relative; overflow: hidden;
}
.live-account.hidden { display: none; }
.live-account::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(154,108,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.la-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.la-eyebrow { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: #ab9ff2; text-shadow: 0 0 16px rgba(171,159,242,0.5); }
.la-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.la-addr { background: rgba(0,5,15,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 6px 12px; font-size: 11px; color: rgba(255,255,255,0.8); }
.la-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); }
.la-toggle input { display: none; }
.la-toggle-slider { width: 38px; height: 20px; background: rgba(255,255,255,0.1); border-radius: 100px; position: relative; transition: background 0.2s; }
.la-toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: rgba(255,255,255,0.7); border-radius: 50%; transition: all 0.2s; }
.la-toggle input:checked + .la-toggle-slider { background: rgba(34,221,170,0.4); }
.la-toggle input:checked + .la-toggle-slider::after { transform: translateX(18px); background: #22ddaa; }
.la-toggle input:checked ~ .la-toggle-lbl { color: #22ddaa; }
.la-kill {
  background: linear-gradient(135deg, #ff4f7a 0%, #b02550 100%);
  border: none; border-radius: 8px; padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; font-weight: 600;
  color: #fff; cursor: pointer; box-shadow: 0 0 12px rgba(255,79,122,0.4);
}
.la-kill:hover { box-shadow: 0 0 20px rgba(255,79,122,0.6); }
.la-body { position: relative; z-index: 1; }
.la-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.la-stats > div { background: rgba(15,10,30,0.6); padding: 12px 14px; }
.la-stats .lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: rgba(255,255,255,0.42); margin-bottom: 4px; }
.la-stats .val { font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .la-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .la-stats { grid-template-columns: repeat(2, 1fr); } }
.la-positions { font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 14px; }
.la-position-row { display: grid; grid-template-columns: 60px 60px 1fr 1fr 1fr 1fr; gap: 12px; padding: 8px 12px; background: rgba(20,15,40,0.5); border-radius: 8px; margin-bottom: 6px; }
.la-position-row .side { font-weight: 600; }
.la-position-row .side.LONG { color: #22ddaa; }
.la-position-row .side.SHORT { color: #ff4f7a; }
.la-errors { background: rgba(255,79,122,0.08); border: 1px solid rgba(255,79,122,0.2); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #ff4f7a; }
.la-errors.hidden { display: none; }
.la-caps { padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.la-eyebrow-2 { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.la-caps-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.la-caps-grid label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.65); display: flex; flex-direction: column; gap: 4px; }
.la-caps-grid input { background: rgba(0,5,15,0.5); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 7px 10px; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 12px; width: 100%; }
.cap-save-btn { background: rgba(154,108,255,0.2); border: 1px solid rgba(154,108,255,0.4); border-radius: 6px; padding: 7px 14px; color: #ab9ff2; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; cursor: pointer; }
.cap-save-btn:hover { background: rgba(154,108,255,0.3); }
@media (max-width: 800px) { .la-caps-grid { grid-template-columns: 1fr; } }

/* ─── Modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,3,10,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  background: linear-gradient(180deg, rgba(25,30,55,0.95) 0%, rgba(10,12,25,0.95) 100%);
  border: 1px solid rgba(154,108,255,0.35);
  border-radius: 20px; max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 80px rgba(154,108,255,0.1);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal-title { font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 0.18em; color: #fff; }
.modal-close { background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 24px; }
.modal-step { display: flex; gap: 16px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03); margin-bottom: 12px; transition: opacity 0.2s; }
.modal-step.disabled { opacity: 0.4; pointer-events: none; }
.modal-step.complete { background: rgba(34,221,170,0.05); border: 1px solid rgba(34,221,170,0.2); }
.step-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: rgba(154,108,255,0.2); border: 1px solid rgba(154,108,255,0.4); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; color: #ab9ff2; font-weight: 600; font-size: 13px; }
.modal-step.complete .step-num { background: rgba(34,221,170,0.2); border-color: rgba(34,221,170,0.4); color: #22ddaa; }
.step-text { flex: 1; }
.step-text h3 { font-size: 14px; color: #fff; margin: 0 0 6px; font-weight: 500; }
.step-text p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0 0 12px; }
.btn { padding: 9px 18px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; font-weight: 600; cursor: pointer; border: none; }
.btn.primary { background: linear-gradient(135deg, #ab9ff2 0%, #6a4eff 100%); color: #fff; box-shadow: 0 0 12px rgba(154,108,255,0.4); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(154,108,255,0.6); }
.btn.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.step-info { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.55); }
.step-info.ok { color: #22ddaa; }
.step-info.err { color: #ff4f7a; }
.risk-warn {
  background: rgba(255,79,122,0.08); border: 1px solid rgba(255,79,122,0.25);
  border-radius: 8px; padding: 12px 14px; font-size: 11.5px; color: #ff8aa3;
  margin-bottom: 12px; line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120,160,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,160,255,0.3); }
