:root {
  --bg: #05070d;
  --panel: linear-gradient(160deg, #0e1626, #070a12 70%);
  --panel-flat: #0b0f1a;
  --panel-2: #101828;
  --ink: #f4f7fc;
  --dim: #8b9ac0;
  --muted: #4f5b78;
  --line: #3aa8ff1c;
  --line-strong: #3aa8ff3d;
  --silver: #eef0f2;
  --silver-dim: #b7b9c1;
  --accent: #3aa8ff;
  --accent-strong: #1f7fe0;
  --accent-dim: #3aa8ff20;
  --glow: rgba(58,168,255,0.5);
  --green: #22c58b;
  --red: #ef4a5f;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max-w: 1240px;
  --ease: cubic-bezier(0.2, 0.8, 0.3, 1);
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .intro-overlay { animation-delay: 0s !important; }
}

/* ---------- Intro logo reveal (plays once on load, pure CSS) ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  animation: intro-fade-out 0.6s ease 1.4s forwards;
}
.intro-logo {
  width: 128px; height: 128px; object-fit: contain;
  animation: intro-logo-in 0.9s cubic-bezier(0.2,0.8,0.2,1) both, intro-logo-pulse 1.6s ease-in-out 0.3s infinite;
}
@keyframes intro-logo-in {
  0% { opacity: 0; transform: scale(0.55); filter: drop-shadow(0 0 0 rgba(58,168,255,0)); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 40px rgba(58,168,255,0.65)) drop-shadow(0 0 90px rgba(58,168,255,0.3)); }
}
@keyframes intro-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(58,168,255,0.65)) drop-shadow(0 0 90px rgba(58,168,255,0.3)); }
  50% { filter: drop-shadow(0 0 60px rgba(58,168,255,0.9)) drop-shadow(0 0 120px rgba(58,168,255,0.45)); }
}
@keyframes intro-fade-out { to { opacity: 0; visibility: hidden; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; position: relative; }
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.018; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.topbar, main, .footer { position: relative; z-index: 2; }

/* ---------- Full-page 3D background ----------
   One WebGL canvas, fixed behind the entire site (not just the hero). The
   camera flies through it as the page scrolls — see scene-3d.js. */
.scene-canvas-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.scene-canvas-wrap .hero-mark { position: absolute; top: 50%; left: 50%; margin: -42px 0 0 -42px; }

/* Uniform legibility wash over the 3D layer, everywhere on the page — panels
   and cards are already opaque on top of this, this just keeps loose text
   (section headers, the sources marquee) readable regardless of what the
   scene is doing behind it. */
.scene-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(5,7,13,0.4); }

/* ---------- Cursor-reactive spotlight (follows the pointer anywhere on the page) ---------- */
.cursor-spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(560px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(58,168,255,0.14), rgba(159,220,255,0.06) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cursor-spotlight.active { opacity: 1; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 0.88rem; border-radius: var(--radius-sm); border: 1px solid transparent; transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease); padding: 10px 18px; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
/* "Liquid glass" primary button — frosted, layered depth, animated sheen sweep.
   backdrop-filter: url(#svg) (true refractive distortion) only works in Firefox,
   so the glass character here comes from blur+saturate (universal) plus layered
   inset shadows for the glass edge, not from an SVG displacement map. */
.btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,0.94), rgba(216,218,224,0.88));
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  color: #101114;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -6px 10px -6px rgba(0,0,0,0.18),
    0 10px 26px -10px rgba(0,0,0,0.55);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -6px 10px -6px rgba(0,0,0,0.18),
    0 14px 32px -10px rgba(0,0,0,0.6);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary:disabled::before { display: none; }

/* "Metal" button — layered gradient shell simulating a physical brushed-metal
   button (outer rim, inner sheen, face), with real press depth on click.
   Uses the brand accent instead of a fixed color so it stays on-theme. */
.btn-metal {
  display: inline-flex;
  position: relative;
  padding: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(58,168,255,0.9), rgba(15,60,110,0.9));
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn-metal .btn-metal-face {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #6fc3ff, #1f7fe0);
  color: #06131f; font-weight: 700; font-size: 0.88rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.btn-metal:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.4); }
.btn-metal:active { transform: translateY(1px) scale(0.98); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { color: #ffffff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.link-btn { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; display: inline; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 100; padding-top: 10px; transition: padding 0.35s var(--ease); }
.topbar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent); opacity: 0.7; }
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px;
  border-radius: 999px; border: 1px solid transparent;
  background: transparent; backdrop-filter: none;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), padding 0.35s var(--ease), max-width 0.35s var(--ease);
}
.topbar.scrolled { padding-top: 0; }
.topbar.scrolled .topbar-inner {
  max-width: calc(var(--max-w) - 60px);
  background: rgba(22,24,28,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line-strong);
  box-shadow: 0 12px 34px -18px rgba(0,0,0,0.6);
  padding: 8px 22px;
}
.brand { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-mark-img { width: 24px; height: 24px; display: block; }
.topbar .brand-mark-img { width: 42px; height: 42px; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: 0.005em; display: inline-flex;
}
/* Two-tone treatment matching the brand key art: "Pons" in a pale
   silver-white gradient, "Track" in a glowing electric-blue gradient. */
.bw-pons {
  background: linear-gradient(180deg, #ffffff 0%, #e3ecf9 45%, #a9c1e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}
.bw-track {
  background: linear-gradient(180deg, #8fd8ff 0%, #3aa8ff 50%, #1c6fe0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(58,168,255,0.75));
}

.price-pill { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap; }
.price-pill-label { color: var(--muted); font-weight: 600; }
.price-pill-value { font-weight: 600; }
.price-pill-change { padding: 1px 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.price-pill-change.up { background: rgba(34,197,139,0.15); color: var(--green); }
.price-pill-change.down { background: rgba(239,74,95,0.15); color: var(--red); }

/* ---------- Contract address pill (copy-to-clipboard) ---------- */
.ca-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px 6px 14px; font-family: var(--font-mono); font-size: 0.8rem; white-space: nowrap;
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.ca-pill:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-1px); }
.ca-pill:active { transform: translateY(0); }
.ca-pill-label { color: var(--accent); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.05em; }
.ca-pill-value { font-weight: 600; color: var(--ink); }
.ca-pill-icon { width: 14px; height: 14px; color: var(--dim); flex-shrink: 0; }
.ca-pill.copied .ca-pill-icon { color: var(--green); }
@media (max-width: 900px) { .ca-pill-label { display: none; } }

.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(11,15,26,0.55);
  color: var(--dim); flex-shrink: 0; transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { color: var(--ink); border-color: var(--accent); background: var(--panel-2); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 150px 0 90px; text-align: center; overflow: hidden;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 40%, rgba(5,7,13,0.4) 0%, transparent 72%),
    linear-gradient(180deg, rgba(5,7,13,0.6) 0%, rgba(5,7,13,0.12) 26%, rgba(5,7,13,0.2) 60%, rgba(5,7,13,0.75) 92%, var(--bg) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.hero-mark { margin: 0 auto 22px; width: 84px; height: 84px; animation: hero-float 4s ease-in-out infinite; }
.hero-mark-img { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(58,168,255,0.75)) drop-shadow(0 0 50px rgba(58,168,255,0.35)); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-live-hud {
  position: absolute; z-index: 2; bottom: 30px; left: 24px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem;
  background: rgba(11,15,26,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px 8px 12px;
}
.hero-live-hud-label { color: var(--muted); }
.hero-live-hud-value { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .hero-live-hud { display: none; } }

.hero-scroll-cue {
  position: absolute; z-index: 2; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  animation: scroll-cue-bob 2.2s ease-in-out infinite;
}
.hero-scroll-cue span { width: 1px; height: 28px; background: linear-gradient(180deg, var(--accent), transparent); }
@keyframes scroll-cue-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-strong); background: rgba(11,15,26,0.55); backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 16px 7px 14px; margin-bottom: 24px; }
.hero-title { font-size: clamp(2.9rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; text-shadow: 0 0 50px rgba(58,168,255,0.4); }
/* Hero centerpiece: the brand name itself, at banner scale, standing in for
   a tagline — same two-tone treatment as the navbar wordmark, just huge. */
.hero-wordmark {
  font-size: clamp(3.6rem, 13vw, 9rem);
  line-height: 1;
  letter-spacing: -0.005em;
  display: inline-flex;
  text-shadow: none;
}
.hero-sub { color: var(--dim); font-size: 1.06rem; max-width: 500px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.hero-trust svg { width: 15px; height: 15px; color: var(--dim); flex-shrink: 0; }

/* ---------- Disclaimer strip ---------- */
.disclaimer-strip { background: var(--panel); border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 0.76rem; color: var(--muted); text-align: center; }

/* ---------- Data sources strip (infinite slider + progressive blur edges) ---------- */
.sources-section { padding: 40px 0 56px; position: relative; z-index: 1; }
.sources-head { text-align: center; margin-bottom: 22px; }
.sources-head p { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sources-slider { position: relative; overflow: hidden; max-width: var(--max-w); margin: 0 auto; }
.sources-track {
  display: flex; gap: 64px; width: max-content; white-space: nowrap;
  animation: sources-scroll 26s linear infinite;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.02em;
  color: var(--dim); opacity: 0.75;
}
@keyframes sources-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sources-fade { position: absolute; top: 0; bottom: 0; width: 140px; pointer-events: none; }
.sources-fade-left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.sources-fade-right { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 10%, rgba(255,255,255,0.012) 90%, transparent); }
.section-head {
  max-width: 640px; margin: 0 auto 30px; text-align: center;
  background: rgba(5,7,13,0.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 22px 26px;
}
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.section-sub { color: var(--dim); margin-top: 10px; font-size: 0.92rem; }

/* Per-section color nuance: a faint radial wash that lightens step by step
   down the page — same electric-blue-to-pale-blue family the 3D background
   travels through (see ZONES in scene-3d.js), never a different hue.
   Subtle by design — brand blue stays the only color on buttons/links/logo. */
#lookup { background-image: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(58,168,255,0.06), transparent 70%); }
#pnl-card.section-alt { background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(95,189,255,0.07), transparent 70%), linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 10%, rgba(255,255,255,0.012) 90%, transparent); }
#activity { background-image: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(127,205,255,0.07), transparent 70%); }
#leaderboard.section-alt { background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(159,220,255,0.08), transparent 70%), linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 10%, rgba(255,255,255,0.012) 90%, transparent); }
#launches { background-image: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(191,230,255,0.08), transparent 70%); }
#how-it-works.section-alt { background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(219,238,255,0.09), transparent 70%), linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 10%, rgba(255,255,255,0.012) 90%, transparent); }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 50px -30px rgba(0,0,0,0.8); }

/* ---------- Interactive tilt + cursor glare (JS adds .tilt-card / toggles .tilt-active) ---------- */
.tilt-card { position: relative; transition: transform 0.25s cubic-bezier(0.2,0.8,0.3,1); will-change: transform; }
.tilt-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,255,255,0.09), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.tilt-card.tilt-active::after { opacity: 1; }

/* Magnetic buttons: JS drives transform on mousemove — .btn / .btn-metal
   already carry their own transform transition, so no extra rule is added
   here (adding one would win the cascade and clobber their other transitions). */

/* ---------- Stats strip ---------- */
.stats-section { padding-top: 34px; padding-bottom: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-tile { background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }
.data-source-note { text-align: center; color: var(--muted); font-size: 0.72rem; margin-top: 14px; font-family: var(--font-mono); }

/* ---------- Chart ---------- */
.chart-section { padding-top: 0; padding-bottom: 20px; }
.chart-panel { padding: 4px 4px 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 70px -35px rgba(58,168,255,0.22), 0 20px 50px -30px rgba(0,0,0,0.85); }
.brand { position: relative; }
.brand-mark-img { filter: drop-shadow(0 0 8px rgba(58,168,255,0.65)); }
.chart-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; }
.chart-title { font-weight: 700; font-size: 0.95rem; }
.chart-badge { font-family: var(--font-mono); font-size: 0.7rem; color: var(--green); background: rgba(34,197,139,0.12); padding: 3px 9px; border-radius: 999px; }
.chart-badge-pending { color: var(--dim); background: rgba(139,154,192,0.12); }
.chart-panel-pending { min-height: 380px; display: flex; flex-direction: column; }
.chart-pending { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 32px; gap: 10px; }
.chart-pending-icon { width: 34px; height: 34px; color: var(--dim); margin-bottom: 4px; }
.chart-pending p { max-width: 420px; }
.chart-pending-sub { color: var(--dim); font-size: 0.86rem; }
.chart-live { min-height: 380px; padding: 8px 14px 14px; position: relative; }
.chart-live canvas { display: block; width: 100%; height: 380px; }
.chart-live-empty { position: absolute; inset: 8px 14px 14px; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 0.86rem; text-align: center; }

/* ---------- Pulse dot / live indicators ---------- */
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes refresh-flash { 0% { background-color: rgba(58,168,255,0.14); } 100% { background-color: transparent; } }
.just-refreshed { animation: refresh-flash 1s ease-out; }
.live-dot { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.04em; }
.live-dot.pending { color: var(--muted); }
.live-dot.pending .pulse-dot { background: var(--muted); animation: none; }
.panel-strip-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.badge-mini { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.panel-strip-right { display: flex; align-items: center; gap: 12px; }
.live-updated { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-left: 6px; }

/* ---------- Featured wallets (Wallet Lookup section) ---------- */
.featured-wallets-panel { position: relative; margin-top: 16px; min-height: 220px; }
.featured-wallets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: var(--line); }
.featured-wallet-card { background: var(--panel-flat, #0b0f1a); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.featured-wallet-top { display: flex; align-items: center; gap: 10px; }
.featured-wallet-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.featured-wallet-addr { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.featured-wallet-pnl { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; }
.featured-wallet-pnl.positive { color: var(--green); }
.featured-wallet-pnl.negative { color: var(--red); }
.featured-wallet-meta { font-size: 0.74rem; color: var(--muted); }
.trade-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim);
  background: rgba(255,255,255,0.05); border-radius: 999px; padding: 2px 8px;
  white-space: nowrap;
}
.featured-wallet-track { align-self: flex-start; margin-top: 4px; }

.activity-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.loading-cell { text-align: center; color: var(--muted); padding: 24px !important; font-family: var(--font); }
.addr-link { color: var(--silver-dim); }
.addr-link:hover { color: var(--ink); }
.wallet-cell { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; }
.wallet-cell-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wallet-avatar { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.wallet-avatar-img { object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-strong); }
.tx-link { color: var(--muted); }
.tx-link:hover { color: var(--ink); }

/* ---------- PnL card generator ---------- */
.pnl-honesty { display: inline-block; margin-top: 8px; font-size: 0.78rem; color: var(--muted); font-style: italic; }
.pnl-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; max-width: 900px; margin: 0 auto; }
.pnl-form { padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.pnl-label { font-size: 0.74rem; color: var(--dim); margin: 12px 0 8px; font-weight: 600; }
.pnl-label:first-child { margin-top: 0; }
.pnl-input-row { display: flex; gap: 8px; }
.pnl-input-row .mono-input { flex: 1; }
.pnl-price-hint { font-size: 0.72rem; color: var(--muted); margin-top: -2px; }

.pnl-style-picker { display: flex; gap: 8px; margin-top: 4px; }
.pnl-style-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: transparent; color: var(--dim); font-size: 0.72rem; font-weight: 600;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.pnl-style-opt:hover { border-color: var(--accent); color: var(--ink); }
.pnl-style-opt.active { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); }
.pnl-style-swatch { width: 100%; height: 22px; border-radius: 4px; }
.pnl-style-swatch-classic { background: linear-gradient(155deg, #1b1729, #120f1c 60%, #0e0c16); }
.pnl-style-swatch-chrome { background: linear-gradient(155deg, #e8ecf2, #9aa4b4 55%, #4c5566); }
.pnl-style-swatch-3d { background: linear-gradient(155deg, #0f2a52, #3aa8ff 55%, #bfe6ff); }
#generatePnlBtn { margin-top: 20px; }

.pnl-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pnl-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 420px; border-radius: 20px; padding: 26px 28px 20px;
  background: linear-gradient(155deg, #1b1729, #120f1c 60%, #0e0c16);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s cubic-bezier(0.2,0.8,0.3,1), background 0.3s var(--ease);
}
.pnl-card.positive { border-color: rgba(34,197,139,0.4); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(34,197,139,0.25); }
.pnl-card.negative { border-color: rgba(239,74,95,0.4); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(239,74,95,0.25); }

/* Chrome style: metallic silver/steel, dark ink text instead of white */
.pnl-card.style-chrome { background: linear-gradient(155deg, #eef1f5, #c3cad6 45%, #8b95a6 75%, #5a6376); }
.pnl-card.style-chrome .pnl-card-pct { color: #14161c; }
.pnl-card.style-chrome.positive .pnl-card-pct { color: #0d6b46; }
.pnl-card.style-chrome.negative .pnl-card-pct { color: #9c1f31; }
.pnl-card.style-chrome .pnl-card-usd,
.pnl-card.style-chrome .pnl-card-brand,
.pnl-card.style-chrome .pnl-card-k,
.pnl-card.style-chrome .pnl-card-footer { color: #33394a; }
.pnl-card.style-chrome .pnl-card-v { color: #14161c; }
.pnl-card.style-chrome .pnl-card-grid { border-color: rgba(20,22,28,0.18); }

/* 3D Scene style: a live snapshot of the site's own WebGL background behind
   the numbers — captured into #pnlCardScene right before rendering. */
.pnl-card-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pnl-card.style-3d { background: #05070d; }
.pnl-card.style-3d::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0.55) 0%, rgba(5,7,13,0.35) 45%, rgba(5,7,13,0.75) 100%);
}
.pnl-card.style-3d .pnl-card-top,
.pnl-card.style-3d .pnl-card-main,
.pnl-card.style-3d .pnl-card-grid,
.pnl-card.style-3d .pnl-card-footer { position: relative; z-index: 1; }

.pnl-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
/* The PnL card is deliberately dark regardless of site theme (genre convention
   for shareable PnL screenshots) — its text colors are hardcoded, not themed. */
.pnl-card-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.82rem; color: #9a9ca8; }
.pnl-card-logo { width: 16px; height: 16px; }
.pnl-card-token { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); padding: 4px 10px; border-radius: 999px; }

.pnl-card-main { text-align: center; margin-bottom: 26px; }
.pnl-card-pct { display: block; font-size: 3.2rem; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-mono); line-height: 1; color: #f4f4f6; }
.pnl-card.positive .pnl-card-pct { color: var(--green); }
.pnl-card.negative .pnl-card-pct { color: var(--red); }
.pnl-card-usd { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 1.05rem; color: #9a9ca8; }

.pnl-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 18px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); margin-bottom: 14px; }
.pnl-card-k { display: block; font-size: 0.66rem; color: #9a9ca8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.pnl-card-v { display: block; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: #f4f4f6; }
.pnl-card-footer { text-align: center; font-family: var(--font-mono); font-size: 0.66rem; color: #9a9ca8; }

.pnl-card-actions { display: flex; gap: 10px; }

/* ---------- Leaderboard rank styling ---------- */
.rank-medal { font-weight: 700; white-space: nowrap; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700;
  background: rgba(255,255,255,0.06); color: var(--dim);
}
tr.rank-1 { background: linear-gradient(90deg, rgba(250,204,21,0.09), transparent 60%); }
tr.rank-2 { background: linear-gradient(90deg, rgba(203,213,225,0.07), transparent 60%); }
tr.rank-3 { background: linear-gradient(90deg, rgba(217,119,6,0.08), transparent 60%); }
tr.rank-1 td:nth-child(2) { color: #facc15; font-weight: 700; }
tr.rank-2 td:nth-child(2) { color: #cbd5e1; font-weight: 700; }
tr.rank-3 td:nth-child(2) { color: #d97706; font-weight: 700; }
tr.rank-1 .rank-badge { background: rgba(250,204,21,0.18); color: #facc15; }
tr.rank-2 .rank-badge { background: rgba(203,213,225,0.16); color: #cbd5e1; }
tr.rank-3 .rank-badge { background: rgba(217,119,6,0.18); color: #d97706; }

/* ---------- Wallet lookup ---------- */
.lookup-panel { max-width: 680px; margin: 0 auto; padding: 28px; }
.lookup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mono-input { flex: 1; min-width: 220px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; }
.mono-input:focus { outline: none; border-color: var(--accent); }
.lookup-hint { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

.lookup-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.lr-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.lr-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.lr-addr { font-size: 0.9rem; }
.lr-explorer { margin-left: auto; font-size: 0.78rem; color: var(--silver-dim); }
.lr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lr-label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.lr-value { font-size: 0.98rem; font-weight: 600; }
.lr-positions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.lr-position-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--panel-2); border-radius: var(--radius-sm); font-size: 0.85rem; }
.lr-position-token { font-family: var(--font-mono); font-weight: 600; color: var(--dim); }
.lr-position-pnl { font-family: var(--font-mono); font-weight: 700; }
.lr-position-pnl.positive { color: var(--green); }
.lr-position-pnl.negative { color: var(--red); }
.lr-positions-empty { font-size: 0.82rem; color: var(--muted); text-align: center; padding: 8px; }
.lookup-error { margin-top: 16px; color: var(--red); font-size: 0.85rem; }

/* ---------- Tables ---------- */
.table-panel { position: relative; overflow: hidden; min-height: 220px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; table-layout: fixed; }
.data-table th.col-narrow { width: 76px; }
.transfers-table { min-width: 620px; }
.data-table th { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--line); font-weight: 600; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Migrated-launches board: a responsive grid of graduated tokens, refreshed
   on the same cycle as the rest of the market data. */
.pulse-panel { padding: 0; overflow: hidden; }
.launch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px; background: var(--line); max-height: 760px; overflow-y: auto;
}
.launch-card { background: var(--panel-flat, #0b0f1a); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.launch-card-top { display: flex; align-items: baseline; gap: 8px; }
.launch-card-symbol { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.launch-card-name { font-size: 0.82rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launch-card-creator { align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem; color: var(--silver-dim); }
.launch-card-creator:hover { color: var(--accent); }
.launch-card-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.launch-card-link { font-size: 0.78rem; color: var(--silver-dim); }
.launch-card-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.launch-card-mcap { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.launch-card-mcap-label { margin-left: 5px; font-size: 0.62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.launch-card-change { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.launch-card-change.positive { color: var(--green); }
.launch-card-change.negative { color: var(--red); }
.launch-empty { grid-column: 1 / -1; padding: 22px 16px; text-align: center; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 860px) {
  .launch-grid { grid-template-columns: 1fr; max-height: 520px; }
}

.transfers-table th:last-child, .transfers-table td:last-child { width: 32px; text-align: right; }
.transfers-table th:nth-child(3), .transfers-table td:nth-child(3) { width: 22%; }
.transfers-table th:nth-child(4), .transfers-table td:nth-child(4) { width: 18%; }

.volume-table th:first-child, .volume-table td:first-child { width: 34px; }
.volume-table th:last-child, .volume-table td:last-child { width: 40%; text-align: right; }

.locked-overlay { position: absolute; inset: 0; background: rgba(10,11,13,0.9); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; color: #f4f4f6; }
.locked-icon { width: 30px; height: 30px; margin-bottom: 10px; color: var(--dim); }
.locked-icon svg { width: 100%; height: 100%; }
.locked-overlay p { max-width: 440px; font-size: 0.88rem; color: #9a9ca8; margin-top: 6px; }
.locked-overlay code { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; padding: 1px 6px; font-family: var(--font-mono); font-size: 0.82rem; color: #f4f4f6; }

/* ---------- Explainer ---------- */
.explainer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.explainer-card { padding: 24px 26px; }
.explainer-card h3 { font-size: 1rem; margin-bottom: 8px; }
.explainer-card p { color: var(--dim); font-size: 0.9rem; }
.explainer-source { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 20px; }
.explainer-source a { color: var(--silver-dim); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 32px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { font-weight: 800; display: flex; align-items: center; gap: 9px; }
.footer-disclaimer { max-width: 680px; color: var(--muted); font-size: 0.76rem; line-height: 1.7; }
.footer-copy { color: var(--muted); font-size: 0.78rem; }
.footer-copy a { color: var(--silver-dim); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fafafa; padding: 11px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; z-index: 300; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .explainer-grid { grid-template-columns: 1fr; }
  .activity-layout { grid-template-columns: 1fr; }
  .pnl-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .topbar.menu-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,11,13,0.98); backdrop-filter: blur(16px); padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .topbar.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .topbar.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .topbar.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .price-pill { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .lr-grid { grid-template-columns: 1fr; }
  .lookup-panel { padding: 22px 18px; }
}
