/* ─────────────────────────────────────────────────────────────────────
   _shared.css — common chrome for the home-page mockups (A / B / C).
   Built strictly on design-system tokens (--c-*) + the Apple liquid-glass
   recipes from page-glass.css / header-glass.css. Mock data only.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.008) 100%);
  --glass-border: 1px solid rgba(255,255,255,.06);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 30px -20px rgba(0,0,0,.45);
  --pos: #34d399;
  --neg: #f87171;
  --brand: #6cb6ff;
}

html, body {
  height: auto; min-height: 100vh; margin: 0;
  background: var(--c-color-background-2, #0D1421);
  color: var(--c-color-text-primary, #fff);
  font-family: var(--c-font-family-sans, Inter, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

/* Ambient page aurora — sits behind everything, very subtle. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 18% -8%, rgba(108,182,255,.10), transparent 60%),
    radial-gradient(900px 500px at 92% 0%, rgba(138,63,252,.08), transparent 55%);
}

.shell { max-width: 1360px; margin: 0 auto; padding: 0 24px 80px; }
@media (max-width: 820px) { .shell { padding: 0 14px 48px; } }

/* ── top chrome ─────────────────────────────────────────────────── */
.bar {
  height: 60px; position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  isolation: isolate;
}
.bar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,17,24,.78), rgba(13,17,24,.62));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.bar .logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 15px; }
.bar .logo .dot { width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9fd0ff, var(--brand));
  box-shadow: 0 0 12px rgba(108,182,255,.7); }
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  height: 32px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 8px; border: 1px solid transparent;
  color: var(--c-color-text-secondary, #c4cbda); text-decoration: none;
  font-size: 12.5px; font-weight: 500; transition: .14s;
}
.bar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.bar nav a.on {
  background: linear-gradient(180deg, rgba(108,182,255,.16), rgba(108,182,255,.06));
  border-color: rgba(108,182,255,.32); color: var(--brand);
}
.bar .sp { flex: 1; }
.bar .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--c-font-family-mono); font-size: 11px; color: var(--c-color-text-caption);
  padding: 0 10px; height: 28px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
}
.bar .live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pos);
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.55)} 70%{box-shadow:0 0 0 7px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
.bar .cta {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 8px; border: none; cursor: pointer; font-weight: 600; font-size: 12.5px;
  color: #0d1117;
  background: linear-gradient(180deg, var(--brand), #4d8fcc);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px -8px rgba(108,182,255,.5);
}

/* ── page intro ─────────────────────────────────────────────────── */
.intro { padding: 30px 0 18px; }
.intro h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.025em; }
.intro h1 .accent { background: linear-gradient(90deg, #fff, #9fd0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro p { margin: 8px 0 0; color: var(--c-color-text-caption); font-size: 13px;
  font-family: var(--c-font-family-mono); }
.intro p b { color: #fff; }

/* ── glass primitives ───────────────────────────────────────────── */
.glass {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.glass::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.ttl {
  display: flex; align-items: center; gap: 9px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ttl .k { font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; }
.ttl .ic { width: 16px; height: 16px; opacity: .8; }
.ttl .sub { margin-left: auto; font-size: 10.5px; color: var(--c-color-text-caption);
  font-family: var(--c-font-family-mono); text-transform: uppercase; letter-spacing: .05em; }
.ttl .chip {
  margin-left: auto; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  font-family: var(--c-font-family-mono); letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.08); color: var(--c-color-text-caption);
}

/* shared text helpers */
.mono { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.cap { color: var(--c-color-text-caption); }
.up::before { content: '▲ '; font-size: .7em; }
.dn::before { content: '▼ '; font-size: .7em; }

/* avatar monogram */
.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #0d1117; flex: none; }
.av-b { background: linear-gradient(135deg, #8fd0ff, #4d8fcc); }
.av-p { background: linear-gradient(135deg, #c8a5fe, #8a3ffc); }
.av-t { background: linear-gradient(135deg, #7ce1f3, #13b2cf); }
.av-o { background: linear-gradient(135deg, #ffb59f, #ff775f); }
.av-g { background: linear-gradient(135deg, #8cf2cc, #16c784); }

/* count-up numbers get a soft glow when "fresh" (demo class) */
.fresh { animation: flash 1.1s ease; }
@keyframes flash { 0%{ text-shadow: 0 0 14px currentColor } 100%{ text-shadow:none } }

/* ═══════════════════════════════════════════════════════════════════
   RED-TEAM BLOCKS — shared styles for the engagement modules added to
   every mockup: Crowd-vs-Smart, Rekt of the Day, Hall of Fame (titles),
   Hidden Gems, Trading Style Map (canvas), Midnight countdown.
   Built on the same tokens + glass family. Mock data only.
   ═══════════════════════════════════════════════════════════════════ */

/* section grids reused across mockups */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* section label above a group of cards */
.sec-label { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 2px; }
.sec-label h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.sec-label .hint { font-family: var(--c-font-family-mono); font-size: 11px; color: var(--c-color-text-caption); }

/* ── Crowd vs Smart (consensus divergence) ──────────────────────── */
.cvs { padding: 6px 16px 14px; }
.cvs .crow { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.cvs .crow:last-child { border-bottom: 0; }
.cvs .ctop { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.cvs .ccoin { font-family: var(--c-font-family-mono); font-size: 13px; font-weight: 600; color: #fff; }
.cvs .cdiv {
  margin-left: auto; font-family: var(--c-font-family-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
  color: var(--c-color-reminder); border: 1px solid rgba(245,185,127,.3); background: rgba(245,185,127,.08);
}
.cvs .cdiv.aligned { color: var(--c-color-text-caption); border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
/* dual long/short stacked bar */
.cbar { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; margin: 5px 0; }
.cbar .who { font-family: var(--c-font-family-mono); font-size: 10.5px; color: var(--c-color-text-caption); }
.cbar .track { height: 9px; border-radius: 5px; overflow: hidden; display: flex;
  background: rgba(255,255,255,.05); }
.cbar .lng { height: 100%; background: linear-gradient(90deg, #119C68, #34d399); }
.cbar .sht { height: 100%; background: linear-gradient(90deg, #f87171, #CB1620); }
.cbar .pct { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums;
  font-size: 11px; min-width: 132px; text-align: right; color: var(--c-color-text-caption); }
.cbar .pct .lp { color: var(--pos); } .cbar .pct .sp { color: var(--neg); }

/* ── Rekt of the Day (hall of pain) ─────────────────────────────── */
.rekt { position: relative; }
.rekt::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 16px;
  background: radial-gradient(520px 240px at 50% -10%, rgba(234,57,67,.12), transparent 60%); }
.rekt > * { position: relative; z-index: 1; }
.rekt-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .14s; }
.rekt-row:last-child { border-bottom: 0; }
.rekt-row:hover { background: rgba(234,57,67,.05); }
.rekt-row .glitch { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--c-font-family-mono); font-size: 11px; font-weight: 700; color: #f3b0b4;
  background: repeating-linear-gradient(135deg, rgba(234,57,67,.22) 0 4px, rgba(234,57,67,.08) 4px 8px);
  border: 1px solid rgba(234,57,67,.25); }
.rekt-row .who { font-family: var(--c-font-family-mono); font-size: 13px; color: #fff; }
.rekt-row .quip { font-size: 10.5px; color: var(--c-color-text-caption); margin-top: 2px; }
.rekt-row .loss { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 600; color: var(--neg); text-align: right; }
.rekt-row .lev { font-family: var(--c-font-family-mono); font-size: 10.5px; color: var(--c-color-text-caption); text-align: right; margin-top: 2px; }

/* ── Hall of Fame — titles ──────────────────────────────────────── */
.titles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
@media (max-width: 520px){ .titles { grid-template-columns: 1fr; } }
.title-cell { padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.05); }
.title-cell .crest { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08); }
.title-cell .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.title-cell .tt { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.title-cell .tt.gold { color: #f5c542; } .title-cell .tt.red { color: var(--neg); }
.title-cell .tt.teal { color: #7ce1f3; } .title-cell .tt.green { color: var(--pos); }
.title-cell .tn { font-family: var(--c-font-family-mono); font-size: 11px; color: #fff; }
.title-cell .tm { font-family: var(--c-font-family-mono); font-size: 10.5px; color: var(--c-color-text-caption); }

/* ── Hidden Gems ────────────────────────────────────────────────── */
.gem { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .14s; }
.gem:last-child { border-bottom: 0; }
.gem:hover { background: rgba(108,182,255,.05); }
.gem .gname { font-family: var(--c-font-family-mono); font-size: 13px; color: #fff; }
.gem .gtags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.gem .gt { font-family: var(--c-font-family-mono); font-size: 10px; padding: 2px 7px; border-radius: 6px;
  color: var(--c-color-text-caption); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.gem .gt b { color: #fff; font-weight: 600; }
.gem .gspark { width: 76px; height: 30px; flex: none; }
.gem .undiscovered { font-family: var(--c-font-family-mono); font-size: 9.5px; letter-spacing: .05em;
  color: var(--c-color-teal-300, #7ce1f3); text-transform: uppercase; }

/* ── Trading Style Map (canvas scatter) ─────────────────────────── */
.map-wrap { padding: 8px 16px 16px; }
.map-canvas { width: 100%; height: 300px; display: block; border-radius: 10px; }
.map-axes { display: flex; justify-content: space-between; font-family: var(--c-font-family-mono);
  font-size: 10px; color: var(--c-color-text-caption); padding: 4px 4px 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px 4px;
  border-top: 1px solid rgba(255,255,255,.05); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--c-color-text-secondary); }
.map-legend .lg .sw { width: 9px; height: 9px; border-radius: 50%; }

/* ── Midnight countdown (return hook) ───────────────────────────── */
.midnight { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.midnight .ttxt { display: flex; flex-direction: column; gap: 3px; }
.midnight .ttxt .k { font-size: 13px; font-weight: 600; }
.midnight .ttxt .s { font-family: var(--c-font-family-mono); font-size: 11px; color: var(--c-color-text-caption); }
.midnight .clock { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.midnight .seg { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums;
  font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 6px 10px; min-width: 50px; text-align: center; }
.midnight .colon { font-family: var(--c-font-family-mono); font-size: 22px; color: var(--c-color-text-caption); }
.midnight.final .seg { color: var(--neg); border-color: rgba(234,57,67,.35); background: rgba(234,57,67,.08); }
.midnight.final { animation: finalPulse 1.6s ease-in-out infinite; }
@keyframes finalPulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(234,57,67,0) } 50%{ box-shadow: 0 0 0 2px rgba(234,57,67,.12) } }

/* ═══════════════════════════════════════════════════════════════════
   COMPETITOR-INSPIRED BLOCKS — Wallet Cohorts (Hyperdash-style),
   DEX-Flows bar, Trending Wallets cards, timeframe pills.
   Built on the same tokens + glass family. Mock data only.
   ═══════════════════════════════════════════════════════════════════ */

/* ── timeframe pills (24h / 7D / 30D) ───────────────────────────── */
.tf { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.tf button { appearance: none; border: none; background: transparent; cursor: pointer;
  font-family: var(--c-font-family-mono); font-size: 11.5px; font-weight: 600;
  color: var(--c-color-text-caption); padding: 5px 11px; border-radius: 7px; transition: .14s; }
.tf button.on { background: rgba(108,182,255,.14); color: var(--brand); box-shadow: 0 0 0 1px rgba(108,182,255,.25) inset; }

/* ── Wallet Cohorts ─────────────────────────────────────────────── */
.cohorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px 16px 16px; }
@media (max-width: 1100px) { .cohorts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cohorts { grid-template-columns: 1fr; } }
.cohort { position: relative; border-radius: 12px; padding: 13px 14px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.006));
  border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.cohort .ctop { display: flex; align-items: center; gap: 8px; }
.cohort .emo { font-size: 15px; line-height: 1; }
.cohort .nm { font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.cohort .cnt { margin-left: auto; font-family: var(--c-font-family-mono); font-size: 11.5px;
  font-variant-numeric: tabular-nums; color: var(--c-color-text-caption); }
.cohort .spark { height: 34px; margin: 9px 0 8px; display: block; width: 100%; }
.cohort .crow2 { display: flex; align-items: center; gap: 8px; }
.cohort .sent { font-family: var(--c-font-family-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sent.vbull { color: var(--pos); background: rgba(22,199,132,.12); border: 1px solid rgba(22,199,132,.3); }
.sent.bull  { color: var(--pos); background: rgba(22,199,132,.08); border: 1px solid rgba(22,199,132,.2); }
.sent.sbear { color: var(--c-color-reminder); background: rgba(245,185,127,.10); border: 1px solid rgba(245,185,127,.28); }
.sent.bear  { color: var(--neg); background: rgba(234,57,67,.08); border: 1px solid rgba(234,57,67,.2); }
.sent.vbear { color: var(--neg); background: rgba(234,57,67,.12); border: 1px solid rgba(234,57,67,.3); }
.cohort .kv2 { display: flex; justify-content: space-between; margin-top: 9px;
  font-family: var(--c-font-family-mono); font-size: 11px; color: var(--c-color-text-caption); }
.cohort .kv2 b { color: #fff; font-weight: 600; }

/* ── DEX-Flows table augment ────────────────────────────────────── */
.flowbar { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.flowbar .fv { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
.flowbar .ftrack { width: 64px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; flex: none; }
.flowbar .ffill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(52,211,153,.5), #34d399); }
.flowbar .ffill.neg { background: linear-gradient(90deg, rgba(248,113,113,.5), #f87171); }
/* split buys/sells dual cell */
.bs { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums; }
.bs .buy { color: var(--pos); font-size: 11.5px; } .bs .sell { color: var(--neg); font-size: 11.5px; }

/* ── Trending Wallets cards ─────────────────────────────────────── */
.trend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .trend-grid { grid-template-columns: 1fr; } }
.twallet { padding: 15px 16px; }
.twallet .thead { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.twallet .thead .addr { font-family: var(--c-font-family-mono); font-size: 13px; font-weight: 600; color: #fff; }
.twallet .thead .star { margin-left: auto; font-family: var(--c-font-family-mono); font-size: 11.5px;
  color: var(--c-color-reminder); display: inline-flex; align-items: center; gap: 4px; }
.twallet .tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.twallet .tcell .l { font-family: var(--c-font-family-mono); font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--c-color-text-caption); }
.twallet .tcell .v { font-family: var(--c-font-family-mono); font-variant-numeric: tabular-nums;
  font-size: 14px; font-weight: 600; margin-top: 2px; }
.twallet .pos-tag { font-family: var(--c-font-family-mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.pos-tag.long { color: var(--pos); background: rgba(22,199,132,.1); border: 1px solid rgba(22,199,132,.28); }
.pos-tag.short { color: var(--neg); background: rgba(234,57,67,.1); border: 1px solid rgba(234,57,67,.28); }
