/* ════════════════════════════════════════════════════════════════════════════
   Terrarium KPI — "Living Terrarium" view
   A dusk glass-jar diorama: animated sky, fireflies, swaying grass, and a
   Lunium liquid-fill jar as the hero. Warm dusk + Lunium teal + Axie gold.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* dusk sky */
  --sky-top:    #140f24;
  --sky-mid:    #2a1c3d;
  --sky-warm:   #6c3b4e;
  --horizon:    #c87a44;
  --sun:        #f6c878;

  /* canvas / glass */
  --ink:        #15101e;
  --panel:      #221a2e;
  --panel-soft: #2a2138;
  --panel-edge: rgba(255, 246, 230, 0.08);
  --panel-edge2:rgba(255, 246, 230, 0.16);
  --glass:      rgba(40, 32, 54, 0.55);

  /* text */
  --text:       #f3ebdd;
  --text-muted: #c3b4a0;
  --text-dim:   #8d7f93;

  /* brand accents */
  --teal:       #3ecfb8;
  --teal-hot:   #6ff0db;
  --teal-deep:  #1c7d72;
  --teal-soft:  rgba(62, 207, 184, 0.14);
  --teal-edge:  rgba(62, 207, 184, 0.40);
  --gold:       #f5c518;
  --gold-soft:  rgba(245, 197, 24, 0.14);
  --leaf:       #76c47a;
  --rust:       #e08a63;
  --earth:      #e0ad62;

  --r:    16px;
  --r-lg: 24px;
  --shadow:    0 18px 40px -20px rgba(0,0,0,0.65);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,0.8);
  --display: 'Fredoka', sans-serif;
  --body:    'Nunito', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ── atmosphere ─────────────────────────────────────────────────────────────── */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(246,200,120,0.18), transparent 46%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-warm) 74%, var(--horizon) 100%);
}
.sun {
  position: absolute; top: 6%; right: 12%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun), rgba(246,200,120,0.35) 45%, transparent 70%);
  filter: blur(2px); animation: sunPulse 9s ease-in-out infinite;
}
@keyframes sunPulse { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.07); opacity: 1; } }

.stars { position: absolute; inset: 0; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  opacity: 0.0; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.05; } 50% { opacity: 0.8; } }

.clouds { position: absolute; inset: 0; }
.clouds i {
  position: absolute; border-radius: 100px;
  background: linear-gradient(180deg, rgba(255,240,225,0.16), rgba(255,240,225,0.05));
  filter: blur(8px); animation: drift linear infinite;
}
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }

.fireflies { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.fireflies i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 2px rgba(245,197,24,0.8);
  animation: floatFly var(--d,16s) ease-in-out infinite, glow 2.6s ease-in-out infinite;
}
@keyframes glow { 0%,100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes floatFly {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(22px,-30px); }
  50%  { transform: translate(-14px,-52px); }
  75%  { transform: translate(18px,-26px); }
  100% { transform: translate(0,0); }
}

.grass { position: fixed; left: 0; right: 0; bottom: 0; height: 150px; z-index: 3; pointer-events: none; }
.grass svg { width: 100%; height: 100%; display: block; }
.grass .blades { transform-origin: bottom center; }
.grass .b1 { animation: sway 5.5s ease-in-out infinite; }
.grass .b2 { animation: sway 7s ease-in-out infinite reverse; }
.grass .b3 { animation: sway 9s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: skewX(0deg); } 50% { transform: skewX(-3deg); } }

.glare {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(118deg, transparent 0%, transparent 38%, rgba(255,255,255,0.06) 46%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 54%, transparent 62%, transparent 100%);
  mix-blend-mode: screen; animation: glareShift 14s ease-in-out infinite;
}
@keyframes glareShift { 0%,100% { opacity: 0.5; transform: translateX(-3%); } 50% { opacity: 0.9; transform: translateX(3%); } }

.vignette {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  box-shadow: inset 0 0 240px 40px rgba(8,4,16,0.6);
  background: radial-gradient(120% 80% at 50% 0%, transparent 60%, rgba(8,4,16,0.35));
}

/* ── switcher ───────────────────────────────────────────────────────────────── */
.switcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-family: var(--body); font-size: 0.8rem; font-weight: 700; color: var(--text);
  background: rgba(30,22,42,0.78); backdrop-filter: blur(10px);
  border: 1px solid var(--panel-edge2); box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.switcher:hover { transform: translateY(-2px); border-color: var(--teal-edge); }
.switcher b { color: var(--teal); }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }

/* ── layout ─────────────────────────────────────────────────────────────────── */
.masthead {
  position: relative; z-index: 10; max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 28px 8px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.kpi-tag {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal-edge);
  padding: 3px 12px; border-radius: 999px;
}
.tagline { margin: 5px 0 0; color: var(--text-muted); font-size: 0.86rem; }
.mast-meta { display: flex; align-items: center; gap: 14px; }
.net-badge {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(245,197,24,0.34);
  padding: 5px 10px; border-radius: 8px;
}

/* network toggle (Mainnet ⇄ Saigon) — segmented pill with a sliding thumb */
.net-toggle {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(20, 14, 28, 0.6); border: 1px solid var(--panel-edge2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.net-thumb {
  position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: 999px; background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  box-shadow: 0 3px 10px -3px var(--teal); transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.net-opt {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em;
  color: var(--text-muted); padding: 6px 16px; border-radius: 999px; transition: color 0.25s;
  min-width: 78px; text-align: center;
}
.net-opt.active { color: #07211e; }
.net-opt:hover:not(.active) { color: var(--text); }

/* mainnet pre-launch note */
.prelaunch-note {
  display: flex; align-items: center; gap: 13px; padding: 13px 18px; margin: 0 0 20px;
  border-radius: var(--r); background: linear-gradient(100deg, rgba(118,196,122,0.12), rgba(62,207,184,0.06));
  border: 1px solid rgba(118,196,122,0.34);
}
.prelaunch-note .pn-ico { font-size: 1.5rem; line-height: 1; }
.prelaunch-note b { color: var(--text); }
.prelaunch-note small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.84rem; line-height: 1.45; }
.prelaunch-note small b { color: var(--teal-hot); }

/* empty token-breakdown hint (pre-launch / no purchases) */
.token-empty { color: var(--text-dim); font-size: 0.84rem; padding: 6px 2px; font-style: italic; }

/* assets sub-caption (live source + updated time) under the baseline banner */
.asset-sub { font-size: 0.8rem; color: var(--text-muted); margin: -8px 0 16px; padding: 0 2px; }
.asset-sub b { color: var(--text); }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); }
.health i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); }
.health.ok i { background: var(--teal); box-shadow: 0 0 0 0 var(--teal-edge); animation: ping 2s ease-out infinite; }
.health.warn i { background: var(--gold); }
.health.bad i { background: var(--rust); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,207,184,0.5); } 100% { box-shadow: 0 0 0 9px rgba(62,207,184,0); } }

.wrap { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 18px 28px 90px; }

/* reveal on load/scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* live-update animations: value bump, new feed row, table-row flash */
@keyframes bumpPulse { 0% { transform: scale(1); } 35% { transform: scale(1.13); } 100% { transform: scale(1); } }
.bumped { display: inline-block; animation: bumpPulse 0.7s cubic-bezier(.2,.8,.2,1); }
@keyframes rowIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes rowGlow { 0% { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); } 100% { background: transparent; box-shadow: inset 3px 0 0 transparent; } }
.feed-row--new { animation: rowIn 0.45s ease, rowGlow 1.9s ease; }
@keyframes flashRow { 0% { background: var(--teal-soft); } 100% { background: transparent; } }
.bundle-table tr.row-flash td { animation: flashRow 1.4s ease; }

/* ── HERO jar ───────────────────────────────────────────────────────────────── */
.hero { margin: 14px 0 40px; }
.jar-stage {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center;
  background: linear-gradient(165deg, var(--glass), rgba(20,14,28,0.4));
  border: 1px solid var(--panel-edge2); border-radius: var(--r-lg);
  padding: 34px 38px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px); position: relative; overflow: hidden;
}
.jar-stage::before { /* rim light */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--panel-edge2), transparent);
}

.jar-stage { perspective: 800px; }
.lumijar { position: relative; width: 200px; height: 270px; margin: 0 auto; }
.lj-glass {
  position: absolute; inset: 0; border-radius: 26px 26px 30px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 2px 14px rgba(255,255,255,0.12), inset 0 -20px 40px rgba(0,0,0,0.35), var(--shadow);
  overflow: hidden;
}
.lj-glass::after { /* cork/rim at top */
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 16px; border-radius: 8px;
  background: linear-gradient(180deg, #6b4a32, #4a3120); box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.lj-liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  box-shadow: 0 0 30px rgba(62,207,184,0.55);
  transition: height 1.6s cubic-bezier(.3,.8,.3,1);
}
.lj-wave {
  position: absolute; top: -18px; left: 0; width: 200%; height: 26px;
  fill: var(--teal); animation: waveMove 6s linear infinite;
}
.lj-wave path { fill: var(--teal); }
.lj-wave2 { top: -14px; opacity: 0.5; animation: waveMove 9s linear infinite reverse; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lj-bubbles { position: absolute; inset: 0; overflow: hidden; }
.lj-bubbles i {
  position: absolute; bottom: -10px; width: var(--b,6px); height: var(--b,6px); border-radius: 50%;
  background: rgba(255,255,255,0.5); animation: bubble var(--bd,5s) ease-in infinite; animation-delay: var(--bl,0s);
}
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translateY(-240px); opacity: 0; } }
.lj-marks { position: absolute; inset: 0; pointer-events: none; }
.lj-marks span { position: absolute; left: 0; right: 0; display: flex; align-items: center; }
.lj-marks i { flex: 1; height: 1px; background: rgba(255,255,255,0.18); }
.lj-marks u { position: absolute; right: -42px; font-family: var(--mono); font-size: 0.6rem; color: var(--text-dim); text-decoration: none; }
/* $20K conservative milestone — shown only once reached: a glowing gold band +
   an achieved "✓ $20K" badge. Reads as "milestone unlocked", not an annotation. */
.lj-mark-cons[hidden] { display: none; }
.lj-mark-cons { align-items: center; }
.lj-mark-cons i {
  flex: 1; height: 3px !important; border-radius: 2px;
  background: linear-gradient(90deg, rgba(245,197,24,0), rgba(245,197,24,0.9) 30%, rgba(255,231,140,0.95) 50%, rgba(245,197,24,0.9) 70%, rgba(245,197,24,0)) !important;
  box-shadow: 0 0 12px 1px rgba(245,197,24,0.55);
  animation: consGlow 2.6s ease-in-out infinite;
}
.lj-mark-cons u {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(180deg, #ffe27a, var(--gold)); color: #2a1e02;
  border-radius: 999px; padding: 1px 8px; font-size: 0.56rem; font-family: var(--mono); font-weight: 800;
  text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@keyframes consGlow { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
.flash-of { color: var(--text-dim); font-weight: 600; }
.lj-shine {
  position: absolute; top: 8px; left: 14px; width: 22px; height: 78%; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.02));
  filter: blur(2px); pointer-events: none;
}
.jar-readout { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.eb-gem { width: 16px; }
.big-amount { font-family: var(--display); font-weight: 700; line-height: 1; margin: 8px 0 6px; color: var(--text); }
.big-amount .cur { font-size: 2.2rem; color: var(--teal); vertical-align: 0.7rem; margin-right: 2px; }
.big-amount b { font-size: clamp(3rem, 8vw, 5.4rem); letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff7e9, var(--earth)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.goal-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.goal-pct { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--teal); }
.goal-of { color: var(--text-muted); font-size: 0.9rem; }
.goal-of b { color: var(--gold); }
.goal-window { color: var(--text-dim); font-size: 0.74rem; font-family: var(--mono); margin-bottom: 14px; }

.flash-line {
  display: block; margin-bottom: 18px;
  padding: 11px 15px 12px; border-radius: 14px; position: relative; overflow: hidden;
  background: rgba(224,138,99,0.10); border: 1px solid rgba(224,138,99,0.30);
}
.flash-line.idle { background: rgba(255,255,255,0.04); border-color: var(--panel-edge); }
.flash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; position: relative; z-index: 1; }
/* the gold "liquid" flash bar that fills with revenue */
.flash-bar { position: relative; z-index: 1; height: 10px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.flash-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ffae3d);
  box-shadow: 0 0 12px rgba(245,197,24,0.55);
  transition: width 1s cubic-bezier(.3,.8,.3,1);
}
.flash-bar i::after { /* liquid sheen sweeping across the fill */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.5) 50%, transparent 65%);
  transform: translateX(-120%); animation: flashSweep 2.4s ease-in-out infinite;
}
/* ACTIVE: a lively, glowing banner with a shimmer sweep + pulsing aura */
.flash-line.active {
  background: linear-gradient(100deg, rgba(224,138,99,0.28), rgba(245,197,24,0.22));
  border-color: rgba(245,197,24,0.6);
  box-shadow: 0 0 0 0 rgba(245,197,24,0.5), 0 10px 28px -10px rgba(224,138,99,0.6);
  animation: flashPulse 2s ease-in-out infinite;
}
.flash-line.active::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: flashSweep 2.6s ease-in-out infinite;
}
@keyframes flashPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,197,24,0.0), 0 10px 28px -10px rgba(224,138,99,0.6); }
  50%     { box-shadow: 0 0 0 5px rgba(245,197,24,0.12), 0 12px 32px -8px rgba(224,138,99,0.8); }
}
@keyframes flashSweep { 0% { transform: translateX(-120%); } 55%,100% { transform: translateX(120%); } }
.flash-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rust); }
.flash-line.idle .flash-badge { color: var(--text-dim); }
.flash-line.active .flash-badge { color: #fff; }
.bolt { animation: zap 1.6s ease-in-out infinite; display: inline-block; }
@keyframes zap { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.flash-amt { font-family: var(--mono); font-weight: 700; color: var(--rust); }
.flash-line.idle .flash-amt { color: var(--text-dim); }
.flash-line.active .flash-amt { color: #fff; }
.flash-sub { display: block; position: relative; z-index: 1; margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); }
.flash-line.active .flash-sub { color: rgba(255,255,255,0.9); }

.hero-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pill {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--panel-edge); border-left: 3px solid var(--pc, var(--teal));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pill-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.05); }
.pill-ico img { width: 22px; }
.pill b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: block; color: var(--text); }
.pill small { color: var(--text-muted); font-size: 0.74rem; }

/* ── section blocks ─────────────────────────────────────────────────────────── */
.block { margin: 40px 0; }
.block-label { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.block-label .num { font-family: var(--mono); font-size: 0.8rem; color: var(--teal); border: 1px solid var(--teal-edge); border-radius: 7px; padding: 3px 8px; }
.block-label h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 0; color: var(--text); }
.block-label .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--panel-edge2), transparent); }

.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: linear-gradient(160deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--panel-edge); border-radius: var(--r); padding: 18px 20px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--panel-edge2); }
.stat-card.teal { border-color: var(--teal-edge); }
.stat-card.teal::after { content: ''; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--teal-soft), transparent 70%); }
.stat-card.soon { opacity: 0.72; }
.stat-big { font-family: var(--display); font-weight: 700; font-size: 2rem; display: block; margin: 6px 0 4px; color: var(--text); }
.stat-card.teal .stat-big { color: var(--teal); }
.muted { color: var(--text-dim); font-size: 0.78rem; }

/* per-token chips */
.token-block { margin-bottom: 16px; }
.token-block .eyebrow { display: block; margin-bottom: 9px; }
/* auto-fit (not auto-fill) so the chips stretch to fill the row evenly with no
   phantom empty track; equal columns + equal heights. */
.token-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .token-breakdown { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .token-breakdown { grid-template-columns: 1fr; } }
.token-chip {
  display: flex; flex-direction: column; min-height: 104px;
  background: linear-gradient(160deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--panel-edge); border-left: 3px solid var(--tkc, var(--panel-edge));
  border-radius: var(--r); padding: 14px 16px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.token-chip .tk-usd { margin-top: auto; }
.token-chip.tk-zero { opacity: 0.62; } /* pre-launch placeholder (mainnet, 0 sales) */
.token-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tk-ico { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--tkc, transparent); }
.tk-sym { font-family: var(--mono); font-weight: 700; font-size: 0.92rem; color: var(--text); }
.tk-n { margin-left: auto; font-size: 0.68rem; color: var(--text-dim); }
.tk-amt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--tkc, var(--text)); }
.tk-amt small { font-size: 0.62rem; color: var(--text-dim); font-weight: 600; }
.tk-usd { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--gold); margin-top: 3px; }
.tk-unpriced { color: var(--text-dim); font-weight: 600; font-size: 0.72rem; }

/* ── revenue trend chart ────────────────────────────────────────────────────── */
.trend-card {
  background: linear-gradient(165deg, var(--glass), rgba(20,14,28,0.4));
  border: 1px solid var(--panel-edge); border-radius: var(--r-lg);
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
  padding: 16px 18px 8px; margin-bottom: 16px;
}
.trend-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.trend-head .eyebrow { margin: 0; }
.trend-toggle { display: inline-flex; gap: 4px; background: rgba(0,0,0,0.22); padding: 3px; border-radius: 10px; }
.tt-opt { font-family: var(--body); font-weight: 700; font-size: 0.74rem; color: var(--text-muted); background: none; border: 0; padding: 5px 11px; border-radius: 7px; cursor: pointer; transition: all 0.16s ease; }
.tt-opt:hover { color: var(--text); }
.tt-opt.active { color: var(--ink); background: var(--teal); }
.trend-meta { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); }
.trend-empty { padding: 44px 12px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 560px) { .trend-head { flex-wrap: wrap; } .trend-meta { width: 100%; margin-left: 0; } }
.trend-chart { width: 100%; position: relative; }
.trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tg-grid { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.tg-ylab { fill: var(--text-dim); font-size: 10px; font-family: var(--mono); text-anchor: end; }
.tg-xlab { fill: var(--text-dim); font-size: 10px; font-family: var(--mono); }
.tg-dot { fill: var(--teal); opacity: 0.5; }
.tg-cross { stroke: var(--teal-edge); stroke-width: 1; stroke-dasharray: 3 3; transition: opacity 0.1s; }
.tg-hot { fill: var(--teal-hot); stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(0 0 5px var(--teal)); transition: opacity 0.1s; }
.trend-tip {
  position: absolute; pointer-events: none; z-index: 6;
  background: rgba(12,12,22,0.96); border: 1px solid var(--teal-edge); border-radius: 9px;
  padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; white-space: nowrap;
  box-shadow: var(--shadow); font-size: 0.72rem;
}
.trend-tip[hidden] { display: none; } /* author display:flex would otherwise beat the hidden attr */
.trend-tip b { font-family: var(--display); color: var(--text); font-size: 0.8rem; }
.trend-tip .tt-cum { font-family: var(--mono); font-weight: 700; color: var(--gold); }
.trend-tip .tt-day { font-family: var(--mono); color: var(--teal); }

/* ── top buyers leaderboard ─────────────────────────────────────────────────── */
.buyers { display: flex; flex-direction: column; }
/* grid so rank · identity · bar · figures line up row-to-row regardless of
   whether a row carries an RNS name (1 line) or name+address (2 lines). */
.buyer-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 110px clamp(104px, 20%, 150px);
  align-items: center; gap: 14px; min-height: 50px; padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem;
}
.buyer-row:last-child { border-bottom: none; }
.buyer-row:hover { background: rgba(255,255,255,0.025); }
.buyer-rank {
  width: 26px; height: 26px; display: grid; place-items: center; justify-self: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem; color: var(--text-muted);
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.buyer-rank.rank-1 { color: var(--ink); background: var(--gold); }
.buyer-rank.rank-2 { color: var(--ink); background: #cdd4dd; }
.buyer-rank.rank-3 { color: var(--ink); background: var(--rust); }
.buyer-id { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.buyer-name { font-family: var(--display); font-weight: 600; color: var(--teal-hot); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-addr { font-family: var(--mono); font-size: 0.74rem; color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.buyer-addr:hover { color: var(--teal); text-decoration: underline; }
.buyer-addr.solo { font-size: 0.8rem; color: var(--teal); }
.buyer-bar { height: 7px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.buyer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); border-radius: 999px; }
.buyer-meta { text-align: right; display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.buyer-meta b { font-family: var(--mono); color: var(--gold); font-weight: 800; }
.buyer-meta small { color: var(--text-dim); font-size: 0.7rem; }
@media (max-width: 560px) {
  .buyer-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; }
  .buyer-bar { display: none; }
}

/* ── panel + tabs ───────────────────────────────────────────────────────────── */
.panel {
  background: linear-gradient(165deg, var(--glass), rgba(20,14,28,0.4));
  border: 1px solid var(--panel-edge); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(6px); margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--panel-edge); }
.panel-head h3 { font-family: var(--display); font-weight: 600; margin: 0; font-size: 1.1rem; }
.tabs { display: inline-flex; gap: 6px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; }
.tab { font-family: var(--body); font-weight: 700; font-size: 0.86rem; color: var(--text-muted); background: none; border: 0; padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: all 0.18s ease; }
.tab.active { color: var(--ink); background: var(--teal); }
.panel-sub { color: var(--text-dim); font-size: 0.8rem; }
.link-btn { margin-left: auto; font-family: var(--body); font-weight: 700; font-size: 0.82rem; color: var(--teal); background: var(--teal-soft); border: 1px solid var(--teal-edge); padding: 6px 13px; border-radius: 9px; cursor: pointer; transition: all 0.18s ease; }
.link-btn:hover { background: var(--teal); color: var(--ink); }
.tab-pane { padding: 8px 8px 12px; }

.table-scroll { overflow-x: auto; }
.bundle-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bundle-table th { text-align: left; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 10px 14px; border-bottom: 1px solid var(--panel-edge); }
.bundle-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.bundle-table tr:last-child td { border-bottom: 0; }
.bundle-table tr:hover td { background: rgba(255,255,255,0.025); }
.b-name { font-family: var(--display); font-weight: 600; color: var(--text); }
.b-total { font-family: var(--mono); color: var(--teal); }
.b-price { font-family: var(--mono); font-weight: 700; color: var(--gold); }
.grp-tag { font-family: var(--mono); font-size: 0.58rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 8px; vertical-align: 1px; text-transform: uppercase; }
.grp-regular { color: var(--text-muted); background: rgba(255,255,255,0.06); }
.grp-flash { color: var(--rust); background: rgba(224,138,99,0.16); }
.grp-subscription { color: var(--gold); background: var(--gold-soft); }

/* feeds */
.feed-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.88rem; }
.feed-row:last-child { border-bottom: none; }
.feed-row:hover { background: rgba(255,255,255,0.025); }
.addr { font-family: var(--mono); color: var(--teal); text-decoration: none; }
.addr:hover { text-decoration: underline; }
.feed-spacer { flex: 1; }
.feed-usd { color: var(--gold); font-weight: 800; font-family: var(--mono); }
.feed-lunium { color: var(--teal); font-weight: 700; font-size: 0.84rem; }
.feed-tag { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 999px; }
.feed-tag.unattr { color: var(--rust); background: rgba(224,138,99,0.12); }
.feed-time { color: var(--text-dim); font-size: 0.76rem; white-space: nowrap; min-width: 56px; text-align: right; text-decoration: none; }
.feed-time:hover { color: var(--teal); }
.feed-biome { font-family: var(--mono); font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; }
.feed-hint { color: var(--text-dim); font-size: 0.88rem; padding: 16px 20px; margin: 0; }
.feed-hint b { color: var(--teal); }
.loading { padding: 22px; text-align: center; color: var(--text-dim); }

/* ── land ───────────────────────────────────────────────────────────────────── */
.land-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.land-stat { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r); padding: 16px 18px; text-align: center; }
.land-stat b { font-family: var(--display); font-weight: 700; font-size: 2rem; display: block; color: var(--earth); }
.land-stat small { color: var(--text-muted); font-size: 0.82rem; }

/* unique-activators goal bar */
.land-goal { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.land-goal[hidden] { display: none; }
.lg-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.lg-label { font-family: var(--display); font-weight: 600; color: var(--text); font-size: 0.95rem; }
.lg-val { font-family: var(--mono); font-weight: 700; color: var(--leaf); font-size: 0.9rem; }
.lg-bar { height: 9px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.lg-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-deep), var(--leaf)); border-radius: 999px; transition: width 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.lg-window { color: var(--text-dim); font-size: 0.74rem; font-family: var(--mono); margin-top: 8px; }

/* fixed 4-col so 7 biomes + the Recent-Activations tile = a balanced 4 + 4 */
.land-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .land-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .land-grid { grid-template-columns: repeat(2, 1fr); } }
.land-card {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 168px;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  border: 1px solid var(--panel-edge); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.land-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,16,0.05) 30%, rgba(10,6,16,0.85)); }
.land-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-lg); }
.land-card.empty { filter: grayscale(0.7) brightness(0.7); opacity: 0.6; }
.lc-body { position: absolute; inset: auto 0 0 0; padding: 14px 16px; }
.lc-name { font-family: var(--display); font-weight: 600; font-size: 1rem; color: #fff; }
.lc-count { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: #fff; line-height: 1; }
.lc-pct { color: rgba(255,255,255,0.8); font-size: 0.72rem; margin-top: 2px; }
.lc-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.2); margin-top: 7px; overflow: hidden; }
.lc-bar i { display: block; height: 100%; border-radius: 999px; transition: width 1s ease; }

/* Recent-Activations tile — lives in the land grid, blends with biome cards but
   reads as an action (dark glass + teal accent). */
.recent-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  min-height: 168px; padding: 18px 20px; text-align: left; cursor: pointer;
  border: 1px dashed var(--teal-edge); border-radius: var(--r);
  background: linear-gradient(160deg, rgba(62,207,184,0.10), rgba(20,14,28,0.5));
  color: var(--text); font-family: var(--body);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.recent-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); background: linear-gradient(160deg, rgba(62,207,184,0.18), rgba(20,14,28,0.5)); }
.rt-ico { font-size: 1.5rem; color: var(--teal); filter: drop-shadow(0 0 8px var(--teal-edge)); }
.rt-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.rt-sub { color: var(--text-dim); font-size: 0.74rem; }
.rt-cta { margin-top: 8px; font-weight: 800; font-size: 0.86rem; color: var(--teal); }
.recent-tile:hover .rt-cta { text-decoration: underline; }

/* assets / soon */
.soon-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(160deg, var(--panel-soft), var(--panel)); border: 1px dashed var(--panel-edge2); border-radius: var(--r); padding: 16px 20px; margin-bottom: 14px; }
.soon-ico { font-size: 1.5rem; }
.soon-banner b { font-family: var(--display); display: block; }
.soon-banner small { color: var(--text-muted); }
.asset-group { margin-bottom: 18px; }
.asset-group .eyebrow { display: block; margin-bottom: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; }
.asset-tile {
  background: linear-gradient(160deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--panel-edge); border-top: 3px solid var(--ac, var(--panel-edge));
  border-radius: var(--r); padding: 14px 16px; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.asset-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.asset-tile.pending { opacity: 0.6; }
.at-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.at-ico { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: rgba(255,255,255,0.05); padding: 1px; box-shadow: 0 0 0 1px var(--panel-edge2); }
.at-emoji { font-size: 1.2rem; }
.at-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 8px var(--ac); }
.at-name { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.at-price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--text); line-height: 1.05; }
.at-weth { font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.at-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--panel-edge); }
.at-stats div { display: flex; flex-direction: column; gap: 1px; }
.at-stats b { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; color: var(--text); }
.at-stats small { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.at-sub { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.at-chg.up { color: var(--leaf); }
.at-chg.down { color: var(--rust); }
.at-soon { color: var(--text-dim); font-style: italic; }

/* aggregate KPI cards (Total floor value / Volume / Unique holders) */
.agg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .agg-row { grid-template-columns: 1fr; } }
.agg-card {
  background: linear-gradient(160deg, var(--panel-soft), var(--panel));
  border: 1px solid var(--panel-edge); border-left: 3px solid var(--ac, var(--teal));
  border-radius: var(--r); padding: 16px 18px; position: relative; overflow: hidden;
}
.agg-card::after { content: ''; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 16%, transparent), transparent 70%); }
.agg-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.agg-val { display: block; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--text); line-height: 1.1; margin: 6px 0 4px; }
.agg-delta { font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.agg-delta span { font-family: var(--body); font-weight: 600; font-size: 0.7rem; color: var(--text-dim); }
.agg-delta.up { color: var(--leaf); }
.agg-delta.down { color: var(--rust); }
.agg-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 3px; }
.agg-card .spark { width: 100%; height: 30px; margin-top: 8px; }

/* launch phase banner */
.asset-phase { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 11px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 0.86rem; color: var(--text-muted); border: 1px solid var(--panel-edge); }
.asset-phase b { color: var(--text); }
.asset-phase.pre { background: linear-gradient(100deg, rgba(245,197,24,0.10), rgba(62,207,184,0.07)); border-color: rgba(245,197,24,0.30); }
.asset-phase.post { background: linear-gradient(100deg, rgba(62,207,184,0.10), rgba(20,14,28,0.4)); border-color: var(--teal-edge); }

/* since-launch delta (headline) + 24h + sparkline */
.at-delta { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-top: 4px; }
.at-delta span { font-family: var(--body); font-weight: 600; font-size: 0.7rem; color: var(--text-dim); }
.at-delta.up { color: var(--leaf); }
.at-delta.down { color: var(--rust); }
.at-delta.baseline { color: var(--text-dim); font-family: var(--mono); font-weight: 600; font-size: 0.74rem; }
.at-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.at-24h { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); white-space: nowrap; }
.at-24h.up { color: var(--leaf); }
.at-24h.down { color: var(--rust); }
.spark { width: 92px; height: 26px; overflow: visible; flex: none; }
.spk-line { fill: none; stroke-width: 1.6; }
.spk-line.up { stroke: var(--leaf); }
.spk-line.down { stroke: var(--rust); }
.spk-dot.up { fill: var(--leaf); }
.spk-dot.down { fill: var(--rust); }
.spk-launch { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.75; }

/* ── floor table (assets) — clean tabular view ──────────────────────────────── */
.floor-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.floor-table thead th {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-dim); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--panel-edge);
  text-align: left; white-space: nowrap; vertical-align: bottom;
}
.floor-table thead th.r { text-align: right; }
.floor-table thead tr.grp-row th {
  text-align: center; color: var(--teal); font-weight: 700;
  border-bottom: 1px solid var(--teal-edge); padding-bottom: 8px; letter-spacing: 0.08em;
}
.floor-table tbody td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); text-align: right; white-space: nowrap; color: var(--text-muted); }
.floor-table tbody tr:last-child td { border-bottom: 0; }
.floor-table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.floor-table td.r { text-align: right; }
.ft-type { text-align: left !important; }
.ft-typewrap { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; color: var(--text); }
.ft-ico { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: rgba(255,255,255,0.05); padding: 1px; box-shadow: 0 0 0 1px var(--panel-edge2); flex: none; }
.ft-floor { font-family: var(--mono); font-weight: 700; color: var(--text); }
.ft-floor small { display: block; font-weight: 400; color: var(--text-dim); font-size: 0.66rem; }
.floor-table .up { color: var(--leaf); }
.floor-table .down { color: var(--rust); }
.floor-table tr.ft-empty td { color: var(--text-dim); }
/* clickable rows → recent-sales modal */
.floor-table tr.ft-click { cursor: pointer; }
.floor-table tr.ft-click:hover td { background: rgba(62,207,184,0.07); }
.floor-table tr.ft-click:hover .ft-typewrap { color: var(--teal-hot); }
/* recent-sales modal rows */
.sale-id { font-family: var(--mono); font-weight: 700; color: var(--text); }
.sale-weth { font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); }

/* per-card trend cells: Price / Volume / Holders — change since Jun 1 */
.at-since { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-top: 10px; }
.at-trends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--panel-edge); }
.at-trend { display: flex; flex-direction: column; gap: 2px; }
.at-trend small { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
.at-trend b { font-family: var(--display); font-weight: 700; font-size: 0.92rem; }
.at-trend b.up { color: var(--leaf); }
.at-trend b.down { color: var(--rust); }
.at-trend b.muted { color: var(--text-dim); }
.at-meta { font-family: var(--mono); font-size: 0.64rem; color: var(--text-dim); margin-top: 9px; }

/* footer */
.foot { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; padding: 20px 28px 30px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 0.8rem; }
.foot-brand { font-family: var(--display); color: var(--text-muted); }

/* ── modal ──────────────────────────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(8,4,16,0.7); backdrop-filter: blur(6px); animation: fadeIn 0.2s ease; }
.modal-bg[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(720px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: linear-gradient(165deg, var(--panel-soft), var(--panel)); border: 1px solid var(--panel-edge2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: popIn 0.24s cubic-bezier(.2,.8,.2,1); }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--panel-edge); }
.modal-head h3 { font-family: var(--display); margin: 0; }
.modal-x { background: none; border: 0; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-body { overflow-y: auto; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: var(--teal-deep) transparent; }

/* themed scrollbars (replace the default white bar) */
.modal-body::-webkit-scrollbar, .table-scroll::-webkit-scrollbar, body::-webkit-scrollbar { width: 9px; height: 9px; }
.modal-body::-webkit-scrollbar-track, .table-scroll::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(62,207,184,0.55), rgba(28,125,114,0.55));
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
.modal-body::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: rgba(62,207,184,0.8); background-clip: padding-box; }
html { scrollbar-width: thin; scrollbar-color: rgba(62,207,184,0.5) transparent; }

/* ── responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .jar-stage { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .lumijar { margin: 0 auto; }
  .hero-pills, .card-row, .land-stats { grid-template-columns: 1fr; }
  .jar-readout .eyebrow, .jar-readout .goal-line { justify-content: center; }
}
