:root {
  --bg: #0b0d12;
  --bg-1: #15192a;
  --fg: #e6e8eb;
  --muted: rgba(255,255,255,0.55);
  --muted-2: rgba(255,255,255,0.35);
  --accent: #67e8f9;
  --gold: #fbbf24;
  --gold-soft: rgba(251,191,36,0.18);
  --gold-line: rgba(251,191,36,0.35);
  --card: rgba(255,255,255,0.025);
  --card-h: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.06);
  --bid: #4ade80;
  --bid-bg: rgba(74,222,128,0.08);
  --ask: #f87171;
  --ask-bg: rgba(248,113,113,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0; padding: 24px 20px 60px; min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-1) 0%, var(--bg) 60%, #06080d 100%);
  color: var(--fg);
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1280px; margin: 0 auto; }

/* ─── Top Nav ─── */
.topnav {
  display: flex; align-items: center; gap: 22px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--border);
}
.brand-block { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--fg); }
.brand-block img { width: 28px; height: 28px; border-radius: 5px; }
.nav-links { display: flex; gap: 18px; font-size: 13px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.gold { color: var(--gold); }
.nav-spacer { flex: 1; }
.stats-strip { display: flex; align-items: center; gap: 24px; padding-right: 22px; border-right: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--fg); }
.tg-button {
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 99px;
  background: rgba(103,232,249,0.10); color: var(--accent);
  border: 1px solid rgba(103,232,249,0.35); text-decoration: none;
  transition: all 0.15s;
}
.tg-button:hover { background: rgba(103,232,249,0.18); }

/* ─── Hero ─── */
.hero { padding: 28px 0 24px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 18px;
}
.hero-eyebrow .diamond { color: var(--gold); font-size: 12px; }
.hero-price-row { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-price { display: flex; flex-direction: column; gap: 6px; }
.hero-price .mid-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-price .mid-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 68px; font-weight: 600; color: var(--fg);
  line-height: 1; letter-spacing: -0.02em;
}
.hero-metrics { display: flex; gap: 32px; flex: 1; align-items: flex-end; padding-bottom: 4px; }
.metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.metric-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.metric-value { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.metric-value.bid { color: var(--bid); }
.metric-value.ask { color: var(--ask); }
.metric-value.gold { color: var(--gold); }
.metric-subvalue { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-left: 5px; }
.post-button {
  align-self: flex-end; margin-bottom: 4px;
  font-family: Inter, sans-serif; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: var(--fg);
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: all 0.15s;
}
.post-button:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.40); }

/* ─── CHART PLACEHOLDER ─── */
.chart {
  margin: 8px 0 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.chart-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.chart-title .diamond { color: var(--gold); font-size: 11px; }
.chart-tabs { display: flex; gap: 6px; }
.chart-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 5px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.chart-tab:hover { color: var(--fg); }
.chart-tab.active { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.chart-body {
  height: 280px;
  padding: 18px 22px 24px;
  display: flex; align-items: flex-end; gap: 4px;
  position: relative;
}
.chart-area {
  flex: 1;
  height: 100%;
  position: relative;
}
.chart-svg {
  width: 100%; height: 100%;
  display: block;
}
.chart-placeholder-note {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.12em; text-transform: uppercase;
  pointer-events: none;
  text-align: center;
  background: rgba(11,13,18,0.7);
  padding: 8px 14px; border-radius: 6px;
  border: 1px dashed var(--border);
}

/* ─── MAIN GRID (Order Book left, Tape right) ─── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

/* ─── Order Book ─── */
.book {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.book-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.book-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.crown-glyph { width: 16px; height: 16px; opacity: 0.45; }
.book-stat { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
}
.section-head.sell { color: var(--ask); }
.section-head.buy { color: var(--bid); }
.section-head .diamond { color: var(--gold); font-size: 10px; }
.section-head .lord-tag { color: var(--muted-2); letter-spacing: 0.08em; font-weight: 500; }

.col-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 78px;
  gap: 10px;
  padding: 6px 22px 8px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
}
.col-head .num { text-align: right; }
.col-head .center { text-align: center; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 78px;
  gap: 10px; align-items: center;
  padding: 10px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  border-left: 3px solid transparent;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.row:hover { background: rgba(251,191,36,0.04); }
.row .num { text-align: right; }
.row .center { text-align: center; }
.row .ask-price { color: var(--ask); font-weight: 600; }
.row .bid-price { color: var(--bid); font-weight: 600; }
.row .amount, .row .total { color: var(--fg); }

.row.best {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(251,191,36,0.06) 0%, transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(251,191,36,0.08);
}
.row.best .take-btn { border-color: var(--gold-line); color: var(--gold); }
.row.best .take-btn:hover { background: var(--gold); color: #0b0d12; border-color: var(--gold); }

/* Show more button at end of each section */
.show-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  margin: 4px 0 0;
  font-family: Inter, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  width: 100%;
  cursor: pointer;
  transition: all 0.15s;
}
.show-more:hover {
  color: var(--gold);
  background: rgba(251,191,36,0.03);
}
.show-more .chev {
  font-size: 9px;
  transition: transform 0.2s;
}
.show-more:hover .chev { transform: translateY(1px); }
.show-more .count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--muted);
}
.show-more:hover .count { color: var(--gold); }
.row.extra { display: none; }
.book.expanded-asks .row.extra-ask { display: grid; }
.book.expanded-bids .row.extra-bid { display: grid; }

.take-btn {
  font-family: Inter, sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.take-btn:hover { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }

.spread {
  position: relative;
  margin: 10px 22px;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 78px;
  gap: 10px;
  align-items: center;
}
.spread-line-left, .spread-line-right {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-line) 50%, transparent 100%);
}
.spread-content {
  display: inline-flex; align-items: center; gap: 10px;
  justify-self: center;
  padding: 6px 16px;
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.04em;
}
.spread-content .label { color: var(--gold); font-weight: 700; letter-spacing: 0.14em; font-size: 9px; text-transform: uppercase; }
.spread-content .value { color: var(--fg); font-weight: 600; }
.spread-content .pct { color: var(--muted); font-size: 10px; }
.spread-content .mid-value { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.spread-content .sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); margin: 0 2px; }

/* ─── TRADE TAPE (VERTICAL, right side) ─── */
.tape-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tape-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.tape-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  margin-bottom: 8px;
}
.tape-title .diamond { color: var(--gold); font-size: 11px; }
.tape-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.04em;
}
.tape-stat strong { color: var(--gold); font-weight: 600; }
.tape-col-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 60px;
  gap: 8px;
  padding: 8px 18px;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.tape-col-head .num { text-align: right; }
.tape-list {
  flex: 1;
  overflow-y: auto;
  max-height: 520px;
  padding: 4px 0;
}
.tape-list::-webkit-scrollbar { width: 5px; }
.tape-list::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.2); border-radius: 3px; }
.tape-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 60px;
  gap: 8px;
  padding: 9px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: relative;
  transition: background 0.15s;
}
.tape-row:hover { background: rgba(251,191,36,0.03); }
.tape-row .tr-price { font-weight: 600; }
.tape-row .tr-price.up { color: var(--bid); }
.tape-row .tr-price.up::before { content: '▲ '; font-size: 8px; vertical-align: 1px; }
.tape-row .tr-price.down { color: var(--ask); }
.tape-row .tr-price.down::before { content: '▼ '; font-size: 8px; vertical-align: 1px; }
.tape-row .tr-amount { text-align: right; color: var(--fg); }
.tape-row .tr-time { text-align: right; color: var(--muted-2); font-size: 11px; }
.tape-row.featured { background: rgba(251,191,36,0.025); }
.tape-row.featured::after {
  content: ''; position: absolute;
  left: 6px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(251,191,36,0.6);
}

.caption {
  margin: 24px 0 8px;
  padding: 14px 18px;
  background: rgba(251,191,36,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 13px; color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.caption strong { color: var(--gold); }
/* ═════════════════════════════════════════════════════════════════════ */
/* ─── v2 TOP BAR — spacious two-row layout ──────────────────────────── */
/* ═════════════════════════════════════════════════════════════════════ */

body.v2 { padding: 0; }

.v2-topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 0;
}
.v2-topbar-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}
.v2-brand img {
  width: 32px; height: 32px;
  border-radius: 7px;
}
.v2-brand-slash {
  color: rgba(255,255,255,0.25);
  margin: 0 1px;
}
.v2-nav-links {
  display: flex;
  gap: 28px;
  margin-left: 12px;
}
.v2-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.v2-nav-links a:hover { color: var(--fg); }
.v2-nav-links a.gold { color: var(--gold); }

.v2-topbar-row .burger-btn { margin-left: auto; }

.v2-stats-row {
  display: flex;
  gap: 56px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.v2-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}
.v2-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

/* Hide the burger on desktop */
.v2-topbar-row .burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.v2-topbar-row .burger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
}

/* ═════════════════════════════════════════════════════════════════════ */
/* ─── More breathing room for the v2 hero (like maintenance page) ───── */
/* ═════════════════════════════════════════════════════════════════════ */

.v2-hero, body.v2 .hero {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 48px 32px 56px !important;
}
.v2-hero .hero-eyebrow {
  font-size: 12px !important;
  letter-spacing: 0.20em !important;
  margin-bottom: 28px !important;
}
.v2-hero .hero-price .mid-label {
  font-size: 11px !important;
  letter-spacing: 0.20em !important;
}
.v2-hero .hero-price .mid-value {
  font-size: 84px !important;
  letter-spacing: -0.03em !important;
  margin-top: 4px;
}
.v2-hero .hero-price-row {
  gap: 56px !important;
}
.v2-hero .hero-metrics {
  gap: 40px !important;
}
.v2-hero .metric-value {
  font-size: 17px !important;
}
.v2-hero .post-button {
  padding: 13px 22px !important;
  font-size: 14px !important;
}

/* ═════════════════════════════════════════════════════════════════════ */
/* ─── Chart + main grid containers ──────────────────────────────────── */
/* ═════════════════════════════════════════════════════════════════════ */

body.v2 .chart, body.v2 .v2-chart {
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 0 32px;
}
body.v2 .main-grid {
  max-width: 1280px;
  margin: 0 auto 64px;
  padding: 0 32px;
}

/* Mobile responsiveness */
@media (max-width: 900px) {
  .v2-topbar { padding: 18px 18px 0; }
  .v2-topbar-row { gap: 16px; }
  .v2-nav-links { display: none; }
  .v2-topbar-row .burger-btn { display: flex; margin-left: auto; }
  .v2-stats-row { gap: 24px; padding: 16px 0 20px; }
  .v2-stat-value { font-size: 14px; }
  .v2-hero { padding: 32px 18px 36px !important; }
  .v2-hero .hero-price .mid-value { font-size: 54px !important; }
  .v2-hero .hero-metrics { gap: 24px !important; }
  body.v2 .chart, body.v2 .v2-chart, body.v2 .main-grid { padding: 0 18px; }
  body.v2 .main-grid { grid-template-columns: 1fr; }
}

/* ─── v2 stats moved into single-row top nav (right side) ─────────── */
.v2-stats-row { display: none !important; }

.v2-stats-strip {
  display: flex;
  gap: 28px;
  margin-left: auto;
  padding-right: 4px;
}
.v2-stats-strip .v2-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.v2-stats-strip .v2-stat-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}
.v2-stats-strip .v2-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.1;
}
/* Border-bottom that was below the stats-row — keep it under the topbar */
.v2-topbar { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.v2-topbar-row { padding-bottom: 0; border-bottom: none; }

/* nav-links margin-left: 0 since stats-strip handles the spacing now */
.v2-topbar-row .v2-nav-links { margin-left: 8px; }

@media (max-width: 1100px) {
  .v2-stats-strip { gap: 18px; }
  .v2-stats-strip .v2-stat-value { font-size: 13px; }
  .v2-stats-strip .v2-stat-label { font-size: 8px; }
}
@media (max-width: 900px) {
  .v2-stats-strip { display: none; }
}

/* ─── Hero layout: MID PRICE hard-left, metrics + button hard-right ─── */
.v2-hero .hero-price-row {
  justify-content: space-between;
  align-items: flex-end;
}
.v2-hero .hero-price {
  margin-right: auto;
  flex-shrink: 0;
}
.v2-hero .hero-metrics {
  flex: 0 0 auto !important;
  margin-left: auto;
}
.v2-hero .post-button {
  flex-shrink: 0;
}

/* ─── v2 hero: fix layout (stack vertical) + remove duplicate MID PRICE ─── */
.hero.v2-hero {
  display: block !important;
  grid-template-columns: none !important;
}
.v2-hero .hero-price::before {
  display: none !important;
  content: none !important;
}
.v2-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
}
.v2-hero .hero-eyebrow .diamond {
  color: var(--gold);
  font-size: 12px;
}
.v2-hero .hero-eyebrow::before {
  content: none !important;
}

/* ─── v2 hero: single-row layout, no wrap, tighter to chart ─── */
.v2-hero .hero-price-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 40px !important;
}
.v2-hero .hero-price {
  flex: 0 0 auto !important;
  margin-right: 0 !important;
}
.v2-hero .hero-metrics {
  flex: 1 1 auto !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
}
.v2-hero .post-button {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
  align-self: flex-end;
}

/* Tighten the gap between hero and chart */
.v2-hero, body.v2 .hero {
  padding-bottom: 28px !important;
}
body.v2 .chart, body.v2 .v2-chart {
  margin-top: 0 !important;
  margin-bottom: 32px !important;
}

/* On narrow screens allow wrapping so it doesn't overflow */
@media (max-width: 1100px) {
  .v2-hero .hero-price-row {
    flex-wrap: wrap !important;
  }
  .v2-hero .hero-metrics {
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
  }
  .v2-hero .post-button {
    margin-left: auto;
  }
}

/* Hide the 'PRL / USDC · Marketplace' eyebrow above the price */
.v2-hero .hero-eyebrow { display: none !important; }

/* ─── Align chart card width with the order book / tape grid ─── */
body.v2 .chart, body.v2 .v2-chart {
  max-width: 1216px !important;
  padding: 0 !important;
  margin: 0 auto 32px !important;
}

/* ─── Hover: whole row dims, BUY/SELL button rises in the center ───── */
.book .row {
  cursor: pointer;
  position: relative;
  transition: background 0.20s ease, border-color 0.18s ease;
}
/* Dim the numeric content on hover so the centered button takes focus */
.book .row > span:not(:last-child) {
  transition: opacity 0.20s ease;
}
.book .row:hover > span:not(:last-child) {
  opacity: 0.18;
}
/* Row darkens on hover with a subtle gold-tinted gradient overlay */
.book .row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    rgba(251,191,36,0.06) 50%,
    rgba(0,0,0,0.45) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s ease;
  z-index: 0;
}
.book .row:hover::before { opacity: 1; }

/* The action span (4th grid item) becomes the center stage on hover */
.book .row > span:last-child {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.book .row .take-btn {
  opacity: 0;
  transform: scale(0.92) translateY(2px);
  pointer-events: none;
  transition: opacity 0.20s ease, transform 0.20s ease, background 0.15s, border-color 0.15s, color 0.15s;
}
.book .row:hover .take-btn {
  opacity: 1;
  pointer-events: auto;
  /* Position the button visually at the row center */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  padding: 9px 26px !important;
  font-size: 13px !important;
  letter-spacing: 0.10em !important;
  font-weight: 700 !important;
  background: var(--gold) !important;
  color: #0b0d12 !important;
  border-color: var(--gold) !important;
  box-shadow: 0 6px 24px rgba(251,191,36,0.30),
              0 0 0 1px rgba(251,191,36,0.4);
}
.book .row:hover .take-btn:hover {
  background: #fcd34d !important;
}



/* ═══════════════════════════════════════════════════════════ */
/* ─── Telegram chat panel (visual mockup) ─────────────────── */
/* ═══════════════════════════════════════════════════════════ */

.tg-chat-section {
  max-width: 1216px;
  margin: 0 auto 64px;
  padding: 0;
}
.tg-chat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

/* Header */
.tg-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.tg-chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(251,191,36,0.25);
  flex-shrink: 0;
}
.tg-chat-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.tg-chat-meta { flex: 1; min-width: 0; }
.tg-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tg-chat-name .diamond { color: var(--gold); font-size: 12px; }
.tg-chat-status {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.tg-chat-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
}
.tg-chat-open-ext {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.15s;
}
.tg-chat-open-ext:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
}

/* Body — messages area */
.tg-chat-body {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top right, rgba(103,232,249,0.025) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(251,191,36,0.025) 0%, transparent 50%);
}

/* Message bubbles */
.tg-msg {
  display: flex;
  max-width: 78%;
}
.tg-msg.bot { align-self: flex-start; }
.tg-msg.user { align-self: flex-end; }
.tg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.tg-msg.bot .tg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 4px;
  color: var(--fg);
}
.tg-msg.user .tg-bubble {
  background: linear-gradient(180deg, rgba(251,191,36,0.18), rgba(251,191,36,0.10));
  border: 1px solid rgba(251,191,36,0.30);
  border-bottom-right-radius: 4px;
  color: var(--fg);
}
.tg-bubble .tg-text { margin: 0; }
.tg-bubble .tg-text + .tg-text { margin-top: 4px; }
.tg-bubble code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(251,191,36,0.10);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
}
.tg-bubble .tg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  text-align: right;
}

/* Input */
.tg-chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.tg-chat-input input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--fg);
  font-size: 13px;
  font-family: Inter, sans-serif;
  outline: none;
}
.tg-chat-input input::placeholder { color: rgba(255,255,255,0.35); }
.tg-chat-input input:disabled { opacity: 0.5; cursor: not-allowed; }
.tg-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0d12;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-send:hover { background: #fcd34d; }
.tg-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Overlay — "Connect Telegram" */
.tg-chat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11,13,18,0.30), rgba(11,13,18,0.85) 90%);
  backdrop-filter: blur(3px);
  z-index: 2;
}
.tg-overlay-content {
  text-align: center;
  max-width: 380px;
  padding: 0 24px;
}
.tg-overlay-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 16px rgba(55,187,254,0.35));
}
.tg-overlay-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tg-overlay-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 20px;
}
.tg-overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #37bbfe, #2196dd);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 24px rgba(55,187,254,0.30);
  transition: all 0.15s;
}
.tg-overlay-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(55,187,254,0.40);
}
.tg-overlay-cta .arrow { transition: transform 0.15s; }
.tg-overlay-cta:hover .arrow { transform: translateX(3px); }
.tg-overlay-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .tg-chat-card { min-height: 420px; }
  .tg-msg { max-width: 90%; }
}

/* ─── Compact Telegram chat mini-panel (under Trade Tape) ─── */
.main-grid .book { grid-row: 1 / span 2; }
.tg-chat-mini {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 253px;
}
.tg-mini-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.tg-mini-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(251,191,36,0.25);
  flex-shrink: 0;
}
.tg-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tg-mini-meta { flex: 1; min-width: 0; }
.tg-mini-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tg-mini-name .diamond { color: var(--gold); font-size: 10px; }
.tg-mini-status {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tg-mini-status .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 5px rgba(74,222,128,0.6);
}
.tg-mini-ext {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s;
}
.tg-mini-ext:hover { background: rgba(255,255,255,0.05); color: var(--gold); }

.tg-mini-body {
  flex: 1;
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(103,232,249,0.025) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(251,191,36,0.025) 0%, transparent 50%);
}
.tg-mini-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.tg-mini-icon {
  width: 42px; height: 42px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(55,187,254,0.30));
}
.tg-mini-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.tg-mini-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin-bottom: 14px;
  max-width: 240px;
}
.tg-mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: linear-gradient(180deg, #37bbfe, #2196dd);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(55,187,254,0.30);
  transition: all 0.15s;
}
.tg-mini-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(55,187,254,0.45);
}

/* Hide the OLD full-width chat styles since the section is removed */
.tg-chat-section { display: none !important; }

@media (max-width: 900px) {
  .main-grid .book { grid-row: auto; }
  .tg-chat-mini { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/* ─── BOTTOM SECTIONS — LORD style touches (Why · How · Referral ·       */
/* ─── Leaderboard · FAQ · Final CTA · Footer) ─── scoped to body.v2 ─── */
/* ═══════════════════════════════════════════════════════════════════════ */

/* All section eyebrows get a gold ✦ prefix */
body.v2 .section-eyebrow::before {
  content: "✦ ";
  color: var(--gold);
  font-weight: 700;
  margin-right: 4px;
}
body.v2 .section-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55) !important;
  font-weight: 600 !important;
}
body.v2 .section-eyebrow-gold::before {
  content: "✦ ";
  color: var(--gold);
}

/* Section titles — slightly tighter letter-spacing for premium feel */
body.v2 .section-title {
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ─── WHY US — 6 cards with hover effect ───────────────────────────── */
body.v2 .why-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
body.v2 .why-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}
body.v2 .why-card:hover {
  border-color: rgba(251,191,36,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
body.v2 .why-card:hover::before {
  opacity: 1;
}
body.v2 .why-icon {
  font-size: 26px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(251,191,36,0.15));
}
body.v2 .why-h {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  color: var(--fg);
}
body.v2 .why-p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* ─── HOW IT WORKS — 3 numbered steps ──────────────────────────────── */
body.v2 .step {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s ease;
}
body.v2 .step:hover {
  border-color: rgba(251,191,36,0.18);
  transform: translateY(-2px);
}
body.v2 .step-num {
  font-family: 'JetBrains Mono', monospace !important;
  color: var(--gold) !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.10em;
  opacity: 0.7;
  margin-bottom: 12px;
}
body.v2 .step-icon {
  font-size: 30px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px rgba(251,191,36,0.15));
}
body.v2 .step-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
body.v2 .step-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
}

/* ─── REFERRAL — gold-emphasized ───────────────────────────────────── */
body.v2 .referral .gold {
  color: var(--gold) !important;
  font-weight: 700;
}
body.v2 .ref-eyebrow::before {
  content: "✦ ";
  color: var(--gold);
}
body.v2 .ref-mini {
  background: linear-gradient(180deg, rgba(251,191,36,0.04), rgba(251,191,36,0.01));
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: 12px;
  padding: 18px 22px;
  transition: all 0.2s ease;
}
body.v2 .ref-mini:hover {
  border-color: rgba(251,191,36,0.30);
  transform: translateY(-1px);
}
body.v2 .ref-mini-n {
  font-family: 'JetBrains Mono', monospace !important;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.10em;
}
body.v2 .ref-cta {
  background: linear-gradient(180deg, rgba(251,191,36,0.18), rgba(251,191,36,0.10)) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(251,191,36,0.35) !important;
  font-weight: 700 !important;
}
body.v2 .ref-cta:hover {
  background: var(--gold) !important;
  color: #0b0d12 !important;
}

/* ─── LEADERBOARD — already styled, but add gold touches ───────────── */
body.v2 .lb-podium .lb-card {
  transition: all 0.2s ease;
}
body.v2 .lb-podium .lb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251,191,36,0.25);
}

/* ─── FAQ — accordion with gold accent on hover ────────────────────── */
body.v2 .faq-item {
  background: rgba(255,255,255,0.012);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  overflow: hidden;
}
body.v2 .faq-item:hover {
  border-color: rgba(251,191,36,0.18);
}
body.v2 .faq-item[open] {
  border-color: rgba(251,191,36,0.25);
  background: linear-gradient(180deg, rgba(251,191,36,0.03), rgba(255,255,255,0.012));
}
body.v2 .faq-item summary {
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}
body.v2 .faq-item summary::-webkit-details-marker { display: none; }
body.v2 .faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s, opacity 0.2s;
  line-height: 1;
}
body.v2 .faq-item[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}
body.v2 .faq-item summary:hover { color: var(--gold); }
body.v2 .faq-item p {
  padding: 0 22px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
body.v2 .faq-item code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(251,191,36,0.10);
  color: var(--gold);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
}

/* ─── FINAL CTA ───────────────────────────────────────────────────── */
body.v2 .cta-final {
  text-align: center;
  padding: 80px 24px;
}
body.v2 .cta-final h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
body.v2 .cta-final .muted {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-bottom: 28px;
}
body.v2 .cta-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(180deg, rgba(251,191,36,0.20), rgba(251,191,36,0.10));
  color: var(--gold);
  border: 1px solid rgba(251,191,36,0.40);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(251,191,36,0.10);
}
body.v2 .cta-big::after {
  content: "→";
  transition: transform 0.2s;
}
body.v2 .cta-big:hover {
  background: var(--gold);
  color: #0b0d12;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(251,191,36,0.25);
}
body.v2 .cta-big:hover::after { transform: translateX(4px); }

/* ─── Section spacing for premium feel ───────────────────────────── */
body.v2 .why,
body.v2 .how,
body.v2 .referral,
body.v2 .leaderboard,
body.v2 .faq {
  max-width: 1216px;
  margin: 80px auto;
  padding: 0 32px;
}
body.v2 .section-eyebrow { margin-bottom: 10px; }
body.v2 .section-title {
  font-size: 36px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  body.v2 .section-title { font-size: 28px; }
  body.v2 .cta-final h2 { font-size: 28px; }
  body.v2 .why, body.v2 .how, body.v2 .referral, body.v2 .leaderboard, body.v2 .faq {
    margin: 56px auto;
    padding: 0 18px;
  }
}

/* ─── Mini chat body: messages + input ─── */
.tg-mini-messages {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 8px;
  overflow-y: auto;
  height: 100%;
}
.tg-chat-mini.connected .tg-mini-messages { display: flex; }
.tg-chat-mini.connected .tg-mini-overlay { display: none !important; }

.tg-mini-messages .tg-msg {
  display: flex;
  max-width: 90%;
}
.tg-mini-messages .tg-msg.bot { align-self: flex-start; }
.tg-mini-messages .tg-msg.user { align-self: flex-end; }
.tg-mini-messages .tg-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
}
.tg-mini-messages .tg-msg.bot .tg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 3px;
  color: var(--fg);
}
.tg-mini-messages .tg-msg.user .tg-bubble {
  background: linear-gradient(180deg, rgba(251,191,36,0.18), rgba(251,191,36,0.10));
  border: 1px solid rgba(251,191,36,0.30);
  border-bottom-right-radius: 3px;
  color: var(--fg);
}
.tg-mini-messages .tg-text + .tg-text { margin-top: 3px; }
.tg-mini-messages code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(251,191,36,0.10);
  color: var(--gold);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* Input bar */
.tg-mini-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.tg-mini-input input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--fg);
  font-size: 12.5px;
  font-family: Inter, sans-serif;
  outline: none;
}
.tg-mini-input input::placeholder { color: rgba(255,255,255,0.35); }
.tg-mini-input input:disabled { opacity: 0.5; cursor: not-allowed; }
.tg-mini-input input:focus {
  border-color: rgba(251,191,36,0.30);
  background: rgba(255,255,255,0.06);
}
.tg-mini-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0d12;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tg-mini-send:hover { background: #fcd34d; }
.tg-mini-send:disabled { opacity: 0.3; cursor: not-allowed; }

/* When connected, bump the min-height a bit so messages have room */
.tg-chat-mini.connected { min-height: 320px; }

/* Thinking indicator (3 pulsing dots) */
.tg-dots { display: inline-flex; gap: 3px; }
.tg-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: tg-pulse 1.2s infinite ease-in-out;
}
.tg-dots span:nth-child(2) { animation-delay: 0.2s; }
.tg-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tg-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.9); }
  30% { opacity: 1; transform: scale(1.1); }
}
.tg-msg.bot.err .tg-bubble {
  border-color: rgba(248,113,113,0.30) !important;
  background: rgba(248,113,113,0.05) !important;
}


/* Disconnect button in mini chat header */
.tg-mini-disconnect {
  margin-left: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 113, 113, 0.75);
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tg-mini-disconnect:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.20);
  border-color: rgba(248, 113, 113, 0.5);
}

/* ─── Action buttons inside chat bubbles ─── */
.tg-bubble .tg-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tg-action-btn {
  flex: 1;
  min-width: 90px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: Inter, sans-serif;
}
.tg-action-btn.confirm {
  background: var(--gold);
  color: #0b0d12;
  border-color: var(--gold);
}
.tg-action-btn.confirm:hover { background: #fcd34d; }
.tg-action-btn.cancel {
  background: transparent;
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.18);
}
.tg-action-btn.cancel:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.05);
}
.tg-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tg-action-btn.loading { opacity: 0.6; }

/* Highlight row cursor when row click is active */
.book .row[data-listing-id] { cursor: pointer; }

/* ─── Take-offer modal (shown when user not connected) ─── */
.take-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: take-fade 0.2s ease;
}
@keyframes take-fade { from { opacity: 0; } to { opacity: 1; } }
.take-modal-card {
  background: linear-gradient(180deg, #15192a, #0b0d12);
  border: 1px solid rgba(251,191,36,0.20);
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5),
              0 0 64px rgba(251,191,36,0.06);
}
.take-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.take-modal-close:hover { color: var(--fg); background: rgba(255,255,255,0.05); }

.take-modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.take-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.take-modal-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.take-modal-detail .lbl {
  font-family: Inter, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 2px;
}

.take-modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.take-modal-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: all 0.18s;
  cursor: pointer;
  font-family: Inter, sans-serif;
}
.take-modal-opt:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.05);
}
.take-modal-opt.primary {
  background: linear-gradient(180deg, rgba(251,191,36,0.18), rgba(251,191,36,0.08));
  border-color: rgba(251,191,36,0.40);
  color: var(--gold);
}
.take-modal-opt.primary:hover {
  background: var(--gold);
  color: #0b0d12;
  border-color: var(--gold);
}
.take-modal-opt.secondary {
  background: rgba(55,187,254,0.08);
  border-color: rgba(55,187,254,0.30);
  color: #37bbfe;
}
.take-modal-opt.secondary:hover {
  background: rgba(55,187,254,0.18);
  border-color: rgba(55,187,254,0.50);
}
.take-modal-opt .opt-icon { font-size: 22px; }
.take-modal-opt .opt-body { flex: 1; }
.take-modal-opt .opt-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.take-modal-opt .opt-sub {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 2px;
  font-weight: 500;
}
.take-modal-opt .opt-arrow {
  font-size: 16px;
  opacity: 0.6;
  transition: transform 0.18s;
}
.take-modal-opt:hover .opt-arrow { transform: translateX(3px); opacity: 1; }

/* Waiting spinner shown after clicking 'Chat here' */
.tg-wait-spinner {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.tg-wait-spinner span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: tg-wait 1.4s infinite ease-in-out;
}
.tg-wait-spinner span:nth-child(2) { animation-delay: 0.2s; }
.tg-wait-spinner span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tg-wait {
  0%, 70%, 100% { opacity: 0.25; transform: scale(0.9); }
  35%           { opacity: 1; transform: scale(1.2); }
}

/* ─── Hamburger menu + quick-actions popup ─── */
.tg-mini-menu {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tg-mini-menu:hover {
  background: rgba(251,191,36,0.08);
  color: var(--gold);
  border-color: var(--gold-line);
}
.tg-chat-mini:not(.connected) .tg-mini-menu {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.tg-mini-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.012);
  border-top: 1px solid var(--border);
  animation: tg-quick-pop 0.18s ease;
}
@keyframes tg-quick-pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tg-mini-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  font-family: Inter, sans-serif;
}
.tg-mini-quick-item span {
  font-size: 18px;
  line-height: 1;
}
.tg-mini-quick-item:hover {
  background: rgba(251,191,36,0.08);
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-1px);
}

/* Make sure [hidden] actually hides the quick panel (CSS specificity fix) */
.tg-mini-quick[hidden] { display: none !important; }

/* ─── Chat size is JS-driven (synced to book/2) — keep only the flex shape ─── */
.tg-chat-mini {
  display: flex !important;
  flex-direction: column !important;
}
.tg-mini-body {
  flex: 1 1 auto !important;
  min-height: 0;  /* required so flex child can shrink and overflow */
  position: relative;
  overflow: hidden;
}
.tg-mini-messages {
  position: absolute;
  inset: 0;
  padding: 14px 14px 8px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Scrollbar styling for the messages */
.tg-mini-messages::-webkit-scrollbar { width: 6px; }
.tg-mini-messages::-webkit-scrollbar-track { background: transparent; }
.tg-mini-messages::-webkit-scrollbar-thumb {
  background: rgba(251,191,36,0.18);
  border-radius: 3px;
}
.tg-mini-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(251,191,36,0.30);
}

/* ─── Order book: size to content; don't stretch to match right column ─── */
body.v2 .main-grid { align-items: start; }
body.v2 .main-grid .book { align-self: start; }

/* ─── Tape height is JS-synced to book; allow internal scroll ─── */
.tape-wrap { overflow: hidden; }
.tape-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  overflow-y: auto;
}

/* New USDC column in tape rows */
.tape-row .tr-quote { text-align: right; color: var(--muted); }

/* ─── Chat bubbles: wrap long addresses/codes inside the panel ─── */
.tg-mini-messages .tg-msg {
  min-width: 0;
  max-width: 92%;
}
.tg-mini-messages .tg-bubble {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tg-mini-messages .tg-bubble code {
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

/* ─── Subtler take-button on row hover (override the big gold pill) ─── */
.book .row:hover .take-btn {
  /* Reset the previous "big gold floating button" treatment */
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: translateX(0) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.10em !important;
  color: var(--gold) !important;
  opacity: 1;
  pointer-events: auto;
}
.book .row:hover .take-btn:hover {
  background: rgba(251,191,36,0.06) !important;
  border-color: rgba(251,191,36,0.25) !important;
  color: #fcd34d !important;
}
/* Make the unhovered hidden state slide-in subtle */
.book .row .take-btn {
  transform: translateX(-4px);
}

/* ─── SHOW ALL ASKS/BIDS: force-center the button content ─── */
.book .show-more {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box;
}
.book .show-more .show-label,
.book .show-more .chev,
.book .show-more .count {
  margin: 0 !important;
}

/* ─── TOTAL (USDC) cell: right-aligned with a touch of right padding so
   the header text and data values sit visually flush at the same x ─── */
.book .col-head > span:nth-child(3),
.book .row > span:nth-child(3),
.book .row .total {
  text-align: right !important;
  padding-right: 0 !important;
}

/* ─── Narrower top max-width so 100%-zoom on common monitors shows margins ─── */
body.v2 .v2-topbar,
body.v2 .v2-hero,
body.v2 .v2-chart,
body.v2 .main-grid {
  max-width: 1060px !important;
}

/* ─── Compact hero so Post offer + metrics fit at 1060px max-width ─── */
body.v2 .v2-hero .hero-price .mid-value {
  font-size: 56px !important;
  letter-spacing: -0.02em !important;
}
body.v2 .v2-hero .hero-price-row {
  gap: 28px !important;
  flex-wrap: wrap;
}
body.v2 .v2-hero .hero-metrics {
  gap: 22px !important;
}
body.v2 .v2-hero .metric-value {
  font-size: 14px !important;
}
body.v2 .v2-hero .metric-label {
  font-size: 9px !important;
}
body.v2 .v2-hero .post-button {
  padding: 10px 16px !important;
  font-size: 12.5px !important;
  margin-left: auto;
}

/* Topbar stats — slightly smaller too, so they don't crowd the nav */
body.v2 .v2-stats-strip { gap: 20px !important; }
body.v2 .v2-stats-strip .v2-stat-value { font-size: 12.5px !important; }
body.v2 .v2-stats-strip .v2-stat-label { font-size: 8.5px !important; }

/* ─── Chart card aligned with main-grid's inner card row (book + chat) ─── */
body.v2 .v2-chart {
  max-width: 996px !important;  /* 1060 outer - 32px padding × 2 in main-grid */
  padding: 0 !important;
  margin: 0 auto 32px !important;
}

/* ─── Hero metrics: stop the flicker on poll updates + a touch more breathing room ─── */
body.v2 .v2-hero .hero-metrics {
  gap: 24px !important;
}
body.v2 .v2-hero .metric {
  min-width: 90px;  /* lock width so digit-count changes don't shift neighbors */
}
body.v2 .v2-hero .metric-value,
body.v2 .v2-hero .metric-subvalue,
body.v2 .v2-stats-strip .v2-stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ─── Stop "+ Post offer" from jumping in/out of the row when metrics update ─── */
body.v2 .v2-hero .hero-price-row {
  flex-wrap: nowrap !important;  /* never let the button wrap to a new line */
}
body.v2 .v2-hero .hero-metrics {
  flex: 0 0 auto !important;      /* fixed-size group; doesn't grow or shrink */
}
body.v2 .v2-hero .post-button {
  flex: 0 0 auto !important;
  white-space: nowrap;
  margin-left: auto !important;   /* always anchored to the right edge */
}

/* Apply tabular-nums to the big MID price too, so digit-count shifts don't reflow */
body.v2 .v2-hero .hero-price .mid-value {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: 'tnum' 1 !important;
}

/* ─── Topbar profile pill (visible only when connected) ─── */
.v2-profile-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.30);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  font-family: 'Inter', sans-serif;
}
.v2-profile-pill:hover {
  background: rgba(251,191,36,0.14);
  border-color: rgba(251,191,36,0.55);
}
.v2-profile-pill:active { transform: scale(0.97); }
.v2-profile-pill .v2-profile-avatar {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(251,191,36,0.25);
  color: #ffd56b;
  font-size: 11px;
}
.v2-profile-pill .v2-profile-name { white-space: nowrap; }

/* ─── Profile modal (read-only dashboard) ─── */
.profile-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.profile-modal-card {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, rgba(20,22,28,0.96), rgba(11,13,18,0.96));
  border: 1px solid rgba(251,191,36,0.22);
  border-radius: 18px;
  padding: 26px 28px 24px;
  position: relative;
  box-shadow: 0 28px 80px rgba(0,0,0,0.6);
  max-height: 88vh; overflow-y: auto;
}
.profile-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.profile-modal-close:hover { color: var(--gold); }
.profile-modal-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.profile-modal-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(251,191,36,0.30), rgba(251,191,36,0.10));
  border: 1px solid rgba(251,191,36,0.40);
  display: grid; place-items: center;
  color: var(--gold); font-size: 24px;
}
.profile-modal-meta {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.profile-modal-name {
  font-size: 18px; font-weight: 700; color: var(--fg);
  word-break: break-all;
}
.profile-modal-tier {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.profile-modal-section {
  margin-bottom: 16px;
}
.profile-modal-section h4 {
  margin: 0 0 8px; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.profile-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.profile-stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
}
.profile-stat-label {
  display: block; font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted-2); text-transform: uppercase; margin-bottom: 3px;
}
.profile-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.profile-stat-value.gold { color: var(--gold); }
.profile-balances {
  display: flex; flex-direction: column; gap: 6px;
}
.profile-bal-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.025);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.profile-bal-row .asset { color: var(--gold); font-weight: 600; }
.profile-bal-row .locked { color: var(--muted-2); font-size: 11px; }
.profile-modal-footer {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted-2);
}

/* The button's [hidden] attribute must actually hide it (override flex display) */
.v2-profile-pill[hidden] { display: none !important; }

/* Profile pill — disconnected state (muted, calls to action) */
.v2-profile-pill.disconnected {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: rgba(255,255,255,0.78) !important;
}
.v2-profile-pill.disconnected:hover {
  background: rgba(251,191,36,0.10) !important;
  border-color: rgba(251,191,36,0.35) !important;
  color: var(--gold) !important;
}
.v2-profile-pill.disconnected .v2-profile-avatar {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
  font-size: 12px;
}

/* Profile modal — Disconnect button */
.profile-disconnect-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.profile-disconnect-btn {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.40);
  color: #f87171;
  padding: 8px 22px;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-disconnect-btn:hover {
  background: rgba(248,113,113,0.10);
  border-color: rgba(248,113,113,0.65);
  color: #fca5a5;
}
.profile-disconnect-btn:active { transform: scale(0.98); }

/* ─── Move nav links into the burger only (hide from topbar) ─── */
body.v2 .v2-nav-links { display: none !important; }
body.v2 .v2-topbar-row .burger-btn { display: flex !important; }

/* ─── Compact profile modal so it fits without scrollbars ─── */
.profile-modal-card {
  padding: 18px 22px 18px !important;
  max-height: 94vh;
}
.profile-modal-header {
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.profile-modal-avatar {
  width: 46px; height: 46px;
  font-size: 20px;
}
.profile-modal-name { font-size: 16px; }
.profile-modal-tier { font-size: 10px; }
.profile-modal-section { margin-bottom: 10px; }
.profile-modal-section h4 {
  margin: 0 0 6px;
  font-size: 9px;
}
.profile-stat-grid { gap: 8px; }
.profile-stat {
  padding: 7px 10px;
  border-radius: 8px;
}
.profile-stat-label {
  font-size: 9px;
  margin-bottom: 2px;
}
.profile-stat-value { font-size: 13px; }
.profile-balances { gap: 5px; }
.profile-bal-row {
  padding: 6px 12px;
  font-size: 12px;
}
.profile-bal-row .locked { font-size: 10px; }
.profile-disconnect-row {
  margin-top: 12px;
  padding-top: 10px;
}
.profile-disconnect-btn {
  padding: 6px 18px;
  font-size: 11px;
}
.profile-modal-footer {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 10.5px;
}

/* ─── Burger panel: floating dropdown (visible on all viewports) ─── */
body.v2 .v2-topbar { position: relative; }
body.v2 .burger-panel {
  display: block !important;
  position: absolute;
  top: calc(100% + 6px);
  right: 32px;
  z-index: 1000;
  min-width: 220px;
  background: rgba(15, 18, 27, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 8px;
}
body.v2 .burger-panel[hidden] { display: none !important; }
body.v2 .burger-link {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
body.v2 .burger-link:hover {
  background: rgba(251,191,36,0.10);
  color: var(--gold);
}
body.v2 .burger-link.burger-gold { color: var(--gold); }
body.v2 .burger-cta {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(103,232,249,0.18), rgba(251,191,36,0.18));
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
body.v2 .burger-cta:hover { filter: brightness(1.10); }
body.v2 .burger-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* Burger "Open Profile" — keep button looking like the original anchor CTA */
body.v2 .burger-cta {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ─── Logo: bake-in black background blends away on dark page ─── */
body.v2 .v2-brand img,
body.v2 .tg-mini-avatar img {
  mix-blend-mode: screen;
}
/* Drop any circular background on the avatar so the logo just floats */
body.v2 .tg-mini-avatar {
  background: transparent !important;
  border: none !important;
}

/* ─── Cluster stats next to the burger (right side) ─── */
body.v2 .v2-topbar-row .burger-btn { margin-left: 14px !important; }
body.v2 .v2-stats-strip { margin-left: auto !important; gap: 22px !important; }

/* ─── Constrain every other section to the same 1060px container ─── */
body.v2 .why,
body.v2 .how,
body.v2 .referral,
body.v2 .leaderboard,
body.v2 .faq,
body.v2 .cta-final,
body.v2 .footer {
  max-width: 1060px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  box-sizing: border-box;
}

/* ─── Podium center card (#1) sits taller and a touch brighter ─── */
body.v2 .lb-podium .lb-card.rank-1 {
  transform: translateY(-10px);
  border-color: rgba(251,191,36,0.55) !important;
  box-shadow: 0 16px 40px rgba(251,191,36,0.18);
}
@media (max-width: 600px) {
  body.v2 .lb-podium .lb-card.rank-1 { transform: none; }
}

/* Leaderboard subtitle — hints at future point rewards */
body.v2 .leaderboard .section-sub {
  text-align: center;
  margin: 10px auto 26px;
  padding: 0 24px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 560px;
}
body.v2 .leaderboard .section-sub::before {
  content: '✦ ';
  color: var(--gold);
  font-size: 12px;
  margin-right: 4px;
}

/* ─── Tier thresholds: 4 evenly-spaced cells (2x2 on narrow screens) ─── */
body.v2 .lb-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 12px;
  max-width: 820px;
  margin: 16px auto 0;
  padding: 14px 24px;
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: 10px;
}
body.v2 .lb-tier-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
body.v2 .lb-tier-row .tier-pill {
  flex-shrink: 0;
}
body.v2 .lb-tier-range {
  color: var(--muted-2);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}
@media (max-width: 700px) {
  body.v2 .lb-tiers {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Leaderboard pager controls ─── */
body.v2 .lb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
body.v2 .lb-pager-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 7px 16px;
  border-radius: 7px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s;
}
body.v2 .lb-pager-btn:hover:not(:disabled) {
  background: rgba(251,191,36,0.10);
  border-color: rgba(251,191,36,0.35);
  color: var(--gold);
}
body.v2 .lb-pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
body.v2 .lb-pager-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ─── Leaderboard list: invisible scrollbar (hover reveals subtle gold thumb) ─── */
body.v2 .lb-list-wrap {
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;       /* Firefox: hide */
  -ms-overflow-style: none !important;    /* IE/legacy Edge: hide */
}
body.v2 .lb-list-wrap::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
body.v2 .lb-list-wrap::-webkit-scrollbar-track { background: transparent !important; }
body.v2 .lb-list-wrap::-webkit-scrollbar-thumb { background: transparent !important; }
body.v2 .lb-list-wrap::-webkit-scrollbar-corner { background: transparent !important; }

/* Drop the pager styles since the pager is gone */
body.v2 .lb-pager { display: none !important; }

/* ─── Leaderboard list: align POINTS header and values consistently (centered) ─── */
body.v2 .lb-list-head .lb-c-points,
body.v2 .lb-list-row .lb-c-points {
  text-align: center !important;
  padding-right: 0 !important;
  justify-self: center;
}
body.v2 .lb-list-head .lb-c-tier,
body.v2 .lb-list-row .lb-c-tier {
  text-align: center !important;
  justify-self: center;
}

/* ─── Tier pill colors: more distinct so they're easy to tell apart ─── */
body.v2 .tier-pill.tier-bronze {
  background: rgba(205,127,50,0.20) !important;
  color: #e89a55 !important;
  border: 1px solid rgba(205,127,50,0.45) !important;
}
body.v2 .tier-pill.tier-silver {
  background: rgba(148,163,184,0.18) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148,163,184,0.40) !important;
}
body.v2 .tier-pill.tier-gold {
  background: rgba(251,191,36,0.22) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251,191,36,0.55) !important;
}
body.v2 .tier-pill.tier-platinum {
  background: linear-gradient(135deg, rgba(167,243,208,0.16), rgba(110,231,183,0.20)) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(110,231,183,0.45) !important;
}

/* ─── Price-chart hover tooltip ─── */
body.v2 .chart-area { position: relative; }
body.v2 .chart-area .chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(11,13,18,0.96);
  border: 1px solid rgba(251,191,36,0.40);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--fg);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  z-index: 50;
  font-variant-numeric: tabular-nums;
}
body.v2 .chart-area .chart-tooltip[hidden] { display: none; }
body.v2 .chart-area .chart-tooltip .ct-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.01em;
}
body.v2 .chart-area .chart-tooltip .ct-time {
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
body.v2 .chart-svg { cursor: crosshair; }

/* ════════════════════════════════════════════════════════════════════════ */
/* ─── iPhone / narrow-mobile cleanup (≤ 520px) ─────────────────────────── */
/* ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  /* Tighter container side padding everywhere */
  body.v2 .v2-topbar,
  body.v2 .v2-hero,
  body.v2 .v2-chart,
  body.v2 .main-grid,
  body.v2 .why, body.v2 .how, body.v2 .referral, body.v2 .leaderboard,
  body.v2 .faq, body.v2 .cta-final, body.v2 .footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Topbar: stack brand text smaller, stats compact */
  body.v2 .v2-topbar { padding-top: 14px !important; padding-bottom: 12px !important; }
  body.v2 .v2-topbar-row { gap: 10px !important; }
  body.v2 .v2-brand img { width: 26px; height: 26px; }
  body.v2 .v2-brand { font-size: 13px !important; gap: 8px !important; }
  body.v2 .v2-stats-strip { gap: 12px !important; }
  body.v2 .v2-stats-strip .v2-stat-value { font-size: 11px !important; }
  body.v2 .v2-stats-strip .v2-stat-label { font-size: 8px !important; }
  /* Hide one of the Total Vol stats on very small screens (just keep PRL) */
  body.v2 .v2-stats-strip .v2-stat:nth-child(2) { display: none; }

  /* Burger panel narrower from right */
  body.v2 .burger-panel { right: 14px !important; min-width: 200px !important; }

  /* Hero: smaller MID PRICE, wrap metrics, post-button full-width */
  body.v2 .v2-hero { padding-top: 24px !important; padding-bottom: 28px !important; }
  body.v2 .v2-hero .hero-price .mid-label { font-size: 10px !important; }
  body.v2 .v2-hero .hero-price .mid-value { font-size: 44px !important; }
  body.v2 .v2-hero .hero-price-row { flex-wrap: wrap !important; gap: 14px !important; }
  body.v2 .v2-hero .hero-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
    flex: 1 1 100% !important;
  }
  body.v2 .v2-hero .metric-value { font-size: 13px !important; }
  body.v2 .v2-hero .metric-label { font-size: 9px !important; }
  body.v2 .v2-hero .post-button {
    flex: 1 1 100% !important;
    text-align: center;
    padding: 11px 16px !important;
    margin-left: 0 !important;
  }

  /* Chart shorter on mobile */
  body.v2 .v2-chart .chart-body { height: auto; }
  body.v2 .chart-area { height: 200px; }
  body.v2 .chart-area svg { height: 200px; }
  body.v2 .chart-tabs .chart-tab { padding: 4px 8px; font-size: 10px; }
  body.v2 .chart-tooltip { font-size: 11px; padding: 4px 8px; }
  body.v2 .chart-tooltip .ct-price { font-size: 12px; }
  body.v2 .chart-tooltip .ct-time { font-size: 9.5px; }

  /* main-grid: single column, book first, chat+tape stacked below */
  body.v2 .main-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  /* Order book paddings tighter */
  body.v2 .book .row,
  body.v2 .book .col-head { padding-left: 14px !important; padding-right: 14px !important; }
  body.v2 .section-head { padding: 12px 14px 8px !important; }
  body.v2 .book-header { padding: 14px 14px 10px !important; }

  /* Chat/tape: drop JS-locked heights, let them size naturally */
  body.v2 .tg-chat-mini {
    height: auto !important;
    min-height: 360px !important;
    max-height: 460px !important;
  }
  body.v2 .tape-wrap {
    height: auto !important;
    max-height: 320px !important;
  }

  /* Podium goes vertical so the gold center stays prominent */
  body.v2 .lb-podium {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.v2 .lb-podium .lb-card.rank-1 { transform: none !important; }
  body.v2 .lb-card { padding: 14px 16px !important; }

  /* Leaderboard list: hide name (deposit hash) — keep #, points, tier — and reduce padding */
  body.v2 .lb-list-head, body.v2 .lb-list-row {
    grid-template-columns: 40px 1fr 70px 90px !important;
    padding: 10px 10px !important;
    font-size: 12px !important;
  }
  body.v2 .lb-c-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.v2 .lb-list-wrap { max-height: 460px !important; }

  /* Tier thresholds — single column, full pill labels visible */
  body.v2 .lb-tiers {
    grid-template-columns: 1fr !important;
    padding: 12px 14px !important;
    gap: 8px !important;
  }
  body.v2 .lb-tier-row { justify-content: flex-start !important; }

  /* Why / How / Referral / FAQ — readable headings */
  body.v2 .section-title { font-size: 24px !important; line-height: 1.18 !important; }
  body.v2 .section-eyebrow { font-size: 10px !important; }
  body.v2 .why-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  body.v2 .why-card { padding: 18px !important; }
  body.v2 .how-steps { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Profile modal — fill more of the screen and don't crush text */
  body.v2 .profile-modal { padding: 14px !important; }
  body.v2 .profile-modal-card { padding: 16px 18px !important; }
  body.v2 .profile-stat-grid { gap: 6px !important; }

  /* Take/Post/Connect modal — single column on iPhone */
  body.v2 .take-modal-card { padding: 18px 18px 16px !important; }
  body.v2 .take-modal-options { gap: 10px !important; }
  body.v2 .take-modal-opt { padding: 11px 12px !important; }
  body.v2 .opt-title { font-size: 13px !important; }
  body.v2 .opt-sub { font-size: 11px !important; }

  /* Footer compact */
  body.v2 .footer .footer-row { flex-direction: column; gap: 4px !important; }
  body.v2 .footer-fine { font-size: 11px !important; }
}

/* Extra-tight for iPhone SE / Mini (≤ 380px) */
@media (max-width: 380px) {
  body.v2 .v2-hero .hero-price .mid-value { font-size: 36px !important; }
  body.v2 .v2-stats-strip .v2-stat:nth-child(3) { display: none; }
  body.v2 .v2-hero .hero-metrics { grid-template-columns: 1fr !important; }
}

/* ─── Mobile: drop the dedicated take-btn column so TOTAL is flush right ─── */
@media (max-width: 520px) {
  body.v2 .book .col-head,
  body.v2 .book .row {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
  }
  /* Hide the empty 4th header span */
  body.v2 .book .col-head > span:nth-child(4) { display: none !important; }
  /* On a hovered/active row, the BUY/SELL button overlays the row at the right */
  body.v2 .book .row .take-btn {
    position: absolute !important;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    z-index: 3;
    background: rgba(11,13,18,0.85) !important;   /* hide the cell under it */
    border-radius: 6px;
  }
  /* Make sure the row positions the absolute child properly */
  body.v2 .book .row { position: relative !important; }
}

/* ─── iOS Safari auto-zooms inputs when font-size < 16px. Prevent it. ─── */
@media (max-width: 520px) {
  body.v2 .tg-mini-input input,
  body.v2 input[type="text"],
  body.v2 input[type="number"],
  body.v2 textarea {
    font-size: 16px !important;
  }
}

/* ─── Mobile: chart card matches the order-book card width (14px gutter each side) ─── */
@media (max-width: 520px) {
  body.v2 .v2-chart {
    max-width: calc(100% - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
    margin-bottom: 18px !important;
    padding: 0 !important;   /* the 14px gutter is now in the margin, not padding */
  }
}

/* Mobile: hamburger flush to the right edge */
@media (max-width: 520px) {
  body.v2 .v2-topbar { padding-right: 6px !important; }
  body.v2 .v2-topbar-row .burger-btn { margin-left: 8px !important; margin-right: 0 !important; }
  body.v2 .burger-panel { right: 6px !important; }
}

/* ─── Mobile: bring stats back (under the brand+burger row) ─── */
@media (max-width: 900px) {
  body.v2 .v2-stats-strip {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px 10px !important;
    width: 100%;
    margin: 12px 0 0 !important;
    padding: 10px 0 0 0;
    border-top: 1px solid var(--border);
    order: 10;        /* force this onto a new row in the flex .v2-topbar-row */
    flex: 1 1 100%;
  }
  body.v2 .v2-stats-strip .v2-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
  }
  body.v2 .v2-stats-strip .v2-stat-label { font-size: 8.5px !important; }
  body.v2 .v2-stats-strip .v2-stat-value { font-size: 12px !important; }
  body.v2 .v2-topbar-row { flex-wrap: wrap; }
}

/* Hamburger truly flush to the right edge */
@media (max-width: 520px) {
  body.v2 .v2-topbar { padding-right: 0 !important; padding-left: 0 !important; }
  body.v2 .v2-topbar-row { padding-left: 14px; padding-right: 6px; }
  body.v2 .v2-stats-strip { padding-left: 14px; padding-right: 14px; }
  /* Re-show ALL stats (previously hid one) */
  body.v2 .v2-stats-strip .v2-stat { display: flex !important; }
}

/* Burger aligned with the rest of the content's 14px right gutter */
@media (max-width: 520px) {
  body.v2 .v2-topbar-row { padding-right: 14px !important; }
  body.v2 .v2-topbar-row .burger-btn {
    margin-right: 0 !important;
    margin-left: auto !important;
  }
  body.v2 .burger-panel { right: 14px !important; }
}

/* ─── Mobile hero-metrics: 3-col grid — Open Offers above Best Ask ─── */
@media (max-width: 520px) {
  body.v2 .v2-hero .hero-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: auto auto;
    gap: 14px 14px !important;
    margin-top: 8px;
  }
  body.v2 .v2-hero .hero-metrics .metric:nth-child(4) {  /* 24h Volume  */ grid-row: 1; grid-column: 1; }
  body.v2 .v2-hero .hero-metrics .metric:nth-child(5) {  /* Open Offers */ grid-row: 1; grid-column: 2; }
  body.v2 .v2-hero .hero-metrics .metric:nth-child(1) {  /* Best Bid    */ grid-row: 2; grid-column: 1; }
  body.v2 .v2-hero .hero-metrics .metric:nth-child(2) {  /* Best Ask    */ grid-row: 2; grid-column: 2; }
  body.v2 .v2-hero .hero-metrics .metric:nth-child(3) {  /* Spread      */ grid-row: 2; grid-column: 3; }
}

/* Remove all remaining dividers in topbar + hero on mobile */
@media (max-width: 900px) {
  body.v2 .v2-stats-strip {
    border-top: none !important;
    padding-top: 6px !important;
  }
  body.v2 .v2-topbar { border-bottom: none !important; }
}

/* Mobile: left-align all numeric data in the hero + topbar stats */
@media (max-width: 520px) {
  body.v2 .v2-hero .hero-metrics .metric {
    text-align: left !important;
    align-items: flex-start !important;
  }
  body.v2 .v2-stats-strip .v2-stat {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/* Mobile: stats-strip packs on the LEFT instead of stretching 4 equal cells */
@media (max-width: 900px) {
  body.v2 .v2-stats-strip {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 14px 22px !important;
    margin-left: 0 !important;
  }
  body.v2 .v2-stats-strip .v2-stat { flex: 0 0 auto !important; }
}

/* Mobile: stats-strip aligns with brand (no own left/right padding) */
@media (max-width: 520px) {
  body.v2 .v2-stats-strip {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile: stats sit inline next to the logo (replace brand text) */
@media (max-width: 520px) {
  body.v2 .v2-brand span { display: none !important; }
  body.v2 .v2-stats-strip {
    flex: 1 1 auto !important;
    order: 0 !important;
    margin: 0 0 0 12px !important;
    padding: 0 !important;
    border-top: none !important;
    gap: 14px !important;
  }
  body.v2 .v2-stats-strip .v2-stat-label { font-size: 7.5px !important; letter-spacing: 0.08em !important; }
  body.v2 .v2-stats-strip .v2-stat-value { font-size: 11px !important; }
  body.v2 .v2-topbar-row { flex-wrap: wrap !important; }
}

/* Very narrow iPhones — hide TRADES + USERS so the row fits */
@media (max-width: 380px) {
  body.v2 .v2-stats-strip .v2-stat:nth-child(3),
  body.v2 .v2-stats-strip .v2-stat:nth-child(4) { display: none !important; }
}


/* Make sure the burger never gets pushed off-screen by the inline stats */
@media (max-width: 520px) {
  body.v2 .v2-topbar-row .burger-btn {
    flex-shrink: 0 !important;
    z-index: 5;
    position: relative;
  }
  body.v2 .v2-stats-strip {
    min-width: 0 !important;
    overflow: hidden;
    max-width: calc(100% - 100px) !important;
  }
}

/* Anchor burger absolutely top-right so nothing can ever obscure it (mobile) */
@media (max-width: 520px) {
  body.v2 .v2-topbar { position: relative; padding-right: 56px !important; }
  body.v2 .v2-topbar-row .burger-btn {
    position: absolute !important;
    top: 14px;
    right: 12px;
    margin: 0 !important;
    z-index: 100 !important;
  }
  body.v2 .v2-stats-strip { max-width: 100% !important; }
}

/* Burger panel: force-visible position on mobile (fixed pixel coords) */
@media (max-width: 520px) {
  body.v2 .burger-panel {
    position: fixed !important;
    top: 70px !important;
    right: 12px !important;
    z-index: 10000 !important;
  }
}

/* Mobile: stack ORDER BOOK title above the meta info */
@media (max-width: 520px) {
  body.v2 .book-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  body.v2 .book-title {
    white-space: nowrap !important;
  }
  body.v2 .book-stat {
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }
}

/* Mobile: hide the SELL/BUY section headers inside the order book */
@media (max-width: 520px) {
  body.v2 .book .section-head { display: none !important; }
}

/* Mobile: make stats compact enough to sit on the SAME row as the logo */
@media (max-width: 520px) {
  body.v2 .v2-topbar-row {
    flex-wrap: nowrap !important;   /* keep logo + stats + burger on one line */
  }
  body.v2 .v2-stats-strip {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-left: 12px !important;
    min-width: 0;
    overflow: hidden;
  }
  body.v2 .v2-stats-strip .v2-stat-label {
    font-size: 7.5px !important;
    letter-spacing: 0.05em !important;
  }
  body.v2 .v2-stats-strip .v2-stat-value {
    font-size: 10.5px !important;
  }
  body.v2 .v2-brand img { width: 26px; height: 26px; }
}
