/* =====================================================
   ZABILI · Prediction Markets
   Premium dark theme · Black + Neon Yellow
   ===================================================== */

:root {
  /* Surfaces */
  --bg: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #0f0f10;
  --bg-3: #16161a;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);

  /* Borders */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Type */
  --text: #f5f5f5;
  --text-2: #c8c8c8;
  --text-3: #888;
  --text-4: #555;

  /* Brand */
  --neon: #e6ff00;
  --neon-2: #c4dd00;
  --neon-glow: rgba(230, 255, 0, 0.45);
  --neon-soft: rgba(230, 255, 0, 0.08);

  /* Semantic */
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.10);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

::selection { background: var(--neon); color: #000; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(230, 255, 0, 0.08), transparent 60%),
    radial-gradient(800px 400px at 100% 20%, rgba(230, 255, 0, 0.03), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Display font scaffolding */
.display {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-feature-settings: 'cv11';
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-3);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================
   TOP BANNER
   ===================================================== */
.top-banner {
  position: relative;
  background: var(--neon);
  color: #000;
  text-align: center;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 60;
  overflow: hidden;
}
.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 50%, 100% { transform: translateX(100%); } }
.top-banner a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================
   HEADER (logo on left, chip centered)
   ===================================================== */
.site-header {
  position: relative;
  padding: 28px 0 8px;
  z-index: 10;
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header-row .brand { justify-self: start; }
.header-chip {
  margin-bottom: 0;
  justify-self: center;
  transform: translateY(-12px);
}
@media (max-width: 720px) {
  .header-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .header-row .brand { justify-self: center; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.brand-logo {
  height: 243px;
  width: auto;
  display: block;
  margin-top: -96px;
  margin-bottom: -42px;
  filter: drop-shadow(0 0 36px rgba(230, 255, 0, 0.32));
  transition: filter 0.3s var(--ease), transform 0.2s var(--ease);
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 38px rgba(230, 255, 0, 0.5));
  transform: scale(1.02);
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neon);
  color: #000;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 20px var(--neon-glow);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 0 0 var(--neon-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px var(--neon-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-ghost {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--line-strong); }
.btn-large { padding: 14px 26px; font-size: 15px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  padding: 12px 0 100px;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
}
.chip-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 12px var(--neon-glow);
}
.chip-divider {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}

.hero h1 {
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin-bottom: 28px;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.hero-cta {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating market preview cards in hero */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.float-card {
  position: absolute;
  background: rgba(15, 15, 16, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  width: 240px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: float 8s ease-in-out infinite;
}
.float-card .fc-title { color: var(--text-2); margin-bottom: 10px; font-weight: 500; font-size: 12px; }
.float-card .fc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-weight: 600;
}
.float-card .fc-yes { color: var(--green); font-size: 12px; }

.float-1 { top: 10%; left: 4%; animation-delay: 0s; transform: rotate(-6deg); }
.float-2 { top: 14%; right: 5%; animation-delay: 1.5s; transform: rotate(5deg); }
.float-3 { bottom: 20%; left: 8%; animation-delay: 3s; transform: rotate(4deg); }
.float-4 { bottom: 25%; right: 7%; animation-delay: 4.5s; transform: rotate(-5deg); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

/* Live ticker */
.ticker {
  margin-top: 80px;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  padding-right: 48px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.ticker-item .name { color: var(--text); font-weight: 600; }
.ticker-item .pct { font-weight: 700; }
.ticker-item .pct.up { color: var(--green); }
.ticker-item .pct.down { color: var(--red); }
.ticker-item .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
section { padding: 140px 0; position: relative; }
section + section { padding-top: 0; }
section.section-info { padding-bottom: 40px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--neon);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--neon-glow);
}
.section-head h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 18px;
}
.section-head h2 em {
  font-weight: 300;
  font-style: italic;
  color: var(--text-3);
}
.section-head p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* =====================================================
   TAG ROW
   ===================================================== */
.tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tag:hover { color: var(--text); background: var(--bg-card); }
.tag.active {
  background: #fff;
  color: #000;
  font-weight: 600;
}

/* =====================================================
   MARKET GRID
   ===================================================== */
/* =====================================================
   PLATFORM PREVIEW (faux screenshot)
   ===================================================== */
.platform-section { padding: 40px 0 100px; }

/* Segmented pill toggle */
.seg-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}
.seg-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.seg {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
}
.seg:hover { color: var(--text); }
.seg.active {
  background: #ffffff;
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
@media (max-width: 560px) {
  .seg { padding: 9px 16px; font-size: 13px; }
  .seg-pill { gap: 2px; padding: 4px; }
}

.platform-window {
  background: #0b0b0c;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #050506;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wb-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.wb-r { background: #ff5f57; }
.wb-y { background: #febc2e; }
.wb-g { background: #28c840; }
.window-url {
  margin-left: 18px;
  font: 500 12px/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* Top nav */
.platform-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 20px;
}
.pnav-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pnav-logo {
  height: 96px;
  width: auto;
  margin: -28px 6px -28px -14px;
}
.pnav-link {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease);
}
.pnav-link:hover { color: var(--text-2); }
.pnav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
  font-weight: 600;
}

.pnav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.pstat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.pstat-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}
.pstat-value {
  font: 700 14px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pstat-money { color: var(--green); }
.pstat-gold { color: #f4b400; }

.pbell {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pbell:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pbell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b0b0c;
}
.pdeposit {
  background: #fff;
  color: #000;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.pdeposit:hover { transform: translateY(-1px); }
.pavatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, var(--neon), transparent 50%),
    linear-gradient(135deg, #6d28d9, #1e3a8a);
  border: 1px solid var(--line-2);
}

/* Filter row */
.platform-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
.pfilters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.ptag {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.ptag:hover { color: var(--text-2); }
.ptag.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line-2);
  font-weight: 600;
}
.psearch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  width: 280px;
  color: var(--text-3);
}
.psearch input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  outline: none;
  min-width: 0;
}
.psearch input::placeholder { color: var(--text-3); }
.psearch-key {
  font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
}

/* Cards inside platform window */
.platform-window .markets-grid {
  padding: 22px;
  gap: 14px;
}

/* View toggle: ensure hidden view is actually hidden regardless of element type */
.platform-window [data-view][hidden] { display: none !important; }

/* =====================================================
   TRADING VIEW (revealed by Trading seg pill)
   ===================================================== */
.trading-view {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  padding: 24px;
  background: #050506;
  min-height: 560px;
}
.trading-view[hidden] { display: none; }

.tv-main {
  position: relative;
  display: flex;
  flex-direction: column;
}
.tv-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1d24, #0a0c10 70%);
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(212, 175, 55, 0.22),
    0 4px 18px rgba(212, 175, 55, 0.18),
    inset 0 0 12px rgba(212, 175, 55, 0.12);
  font-size: 32px;
  line-height: 1;
}
.tv-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.tv-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0;
  flex: 1;
  line-height: 1.15;
}
.tv-share {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.tv-share:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.tv-meta {
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.tv-meta strong { color: var(--text); font-weight: 600; }
.tv-meta .dot { color: var(--text-3); }

.tv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 6px 0 18px;
  font-size: 14px;
  color: var(--text-2);
}
.tv-leg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tv-leg i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.tv-leg em {
  font-style: normal;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 6px;
}

/* Chart */
.tv-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 380px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
}
.tv-chart {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.tv-grid line {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.tv-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: tvDraw 2.4s var(--ease) forwards;
}
.tv-line-g { stroke: #4ade80; }
.tv-line-y { stroke: #facc15; animation-delay: 0.18s; }
.tv-line-o { stroke: #f97316; animation-delay: 0.36s; }
@keyframes tvDraw { to { stroke-dashoffset: 0; } }

.tv-dot {
  filter: drop-shadow(0 0 8px currentColor);
  opacity: 0;
  animation: tvDotIn 0.5s 2.4s var(--ease) forwards, tvDotPulse 2.2s 2.9s ease-in-out infinite;
}
.tv-dot-g { fill: #4ade80; color: #4ade80; }
.tv-dot-y { fill: #facc15; color: #facc15; animation-delay: 2.6s, 3.1s; }
.tv-dot-o { fill: #f97316; color: #f97316; animation-delay: 2.8s, 3.3s; }
@keyframes tvDotIn { to { opacity: 1; } }
@keyframes tvDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.tv-y-axis {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
}
.tv-y-axis span {
  position: absolute;
  right: 0;
  font: 600 11px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  background: #050506;
  padding: 0 4px;
  letter-spacing: 0.03em;
}

.tv-watermark {
  position: absolute;
  top: 18px;
  right: 56px;
  pointer-events: none;
  font: 700 22px/1 Inter, sans-serif;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.18);
  user-select: none;
  z-index: 0;
}
.tv-wm-star {
  display: inline-block;
  color: rgba(230, 255, 0, 0.16);
  margin-right: 14px;
  font-size: 64px;
  transform: translateY(-2px);
}
.tv-wm-text { display: inline-block; }

.tv-pnl {
  position: absolute;
  left: 14px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 13px/1.2 'JetBrains Mono', ui-monospace, monospace;
  pointer-events: none;
  z-index: 1;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.tv-pnl span { display: block; min-width: 64px; }
.pnl-g { color: #4ade80; }
.pnl-y { color: #facc15; }
.pnl-o { color: #f97316; }

/* X-axis date labels */
.tv-x-axis {
  position: absolute;
  left: 0;
  right: 44px;
  bottom: 6px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 8px;
}
.tv-x-axis span {
  font: 600 11px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Bottom controls bar */
.tv-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tv-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tv-vol {
  font: 600 12.5px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.tv-range {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 3px;
}
.tv-range button {
  background: transparent;
  border: none;
  color: var(--text-3);
  font: 600 11.5px 'JetBrains Mono', ui-monospace, monospace;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.tv-range button:hover { color: var(--text-2); }
.tv-range button.active {
  background: #f4f4f5;
  color: #0a0c10;
}

/* Right panel: Shares / Cost / To Win */
.tvp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 2px;
}
.tvp-row span:last-child {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tvp-towin {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.tvp-towin-label {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}
.tvp-towin-value {
  font: 700 22px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--green);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tvp-towin-sub {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
}

/* ----- Outcomes table ----- */
.tv-outcomes {
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
}
.tvo-head {
  display: grid;
  grid-template-columns: 1fr 110px 180px;
  gap: 14px;
  padding: 0 6px 8px;
}
.tvo-th {
  font-size: 11px;
  text-transform: none;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tvo-th-chance { text-align: left; }
.tvo-row {
  display: grid;
  grid-template-columns: 1fr 110px 180px;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tvo-row:first-of-type { border-top: none; }
.tvo-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tvo-id img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.tvo-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13px Inter, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
}
.tvo-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.tvo-party {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.tvo-chance {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tvo-pct {
  font: 700 22px Inter, sans-serif;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.tvo-delta {
  font: 700 11px 'JetBrains Mono', ui-monospace, monospace;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.tvo-delta.up { color: var(--green); }
.tvo-delta.down { color: var(--red); }
.tvo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tvo-yes, .tvo-no, .tvo-yes-soft, .tvo-no-soft {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 6px;
  font: 700 12.5px Inter, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.12s var(--ease);
}
.tvo-yes { background: #22c55e; color: #042e10; }
.tvo-no  { background: #2a0d0d; color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.tvo-yes-soft { background: rgba(34, 197, 94, 0.10); color: #4ade80; border-color: rgba(34, 197, 94, 0.18); }
.tvo-no-soft  { background: rgba(248, 113, 113, 0.08); color: #f87171; border-color: rgba(239, 68, 68, 0.18); }
.tvo-yes:hover, .tvo-no:hover, .tvo-yes-soft:hover, .tvo-no-soft:hover { transform: translateY(-1px); }
.tvo-yes span, .tvo-no span, .tvo-yes-soft span, .tvo-no-soft span {
  font-weight: 600;
  font-size: 11.5px;
  opacity: 0.78;
}
.tv-more {
  display: inline-block;
  margin: 12px 6px 0;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tv-more:hover { color: var(--neon); }

/* ----- Accordions: Order Book / Rules & Resolution ----- */
.tv-acc {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  background: rgba(255,255,255,0.012);
  overflow: hidden;
}
.tv-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 14px Inter, sans-serif;
  color: var(--text);
}
.tv-acc summary::-webkit-details-marker { display: none; }
.tva-info { color: var(--text-3); font-weight: 400; font-size: 13px; }
.tva-chev {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  transition: transform 0.2s var(--ease);
}
.tv-acc[open] .tva-chev { transform: rotate(180deg); }
.tv-acc-body {
  padding: 0 16px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* =====================================================
   PORTFOLIO VIEW (revealed by Portfolio seg pill)
   ===================================================== */
.portfolio-view {
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-areas:
    "left right"
    "positions positions";
  gap: 22px;
  padding: 24px;
  background: #050506;
  min-height: 560px;
}
.portfolio-view[hidden] { display: none; }
.pv-left { grid-area: left; }
.pv-right { grid-area: right; }
.pv-positions { grid-area: positions; }

.pv-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards */
.pv-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 20px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
}
.pv-portfolio {
  background:
    linear-gradient(135deg, #0a2818 0%, #0d3a23 60%, #103d27 100%);
  border: 1px solid rgba(74, 222, 128, 0.12);
}
.pv-balance {
  background:
    linear-gradient(135deg, #0a1638 0%, #0e2052 60%, #102b6b 100%);
  border: 1px solid rgba(96, 165, 250, 0.16);
}

/* Subtle diagonal stripe pattern */
.pv-card-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0.02) 0 1px,
    transparent 1px 14px
  );
}

.pv-card-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.pv-card-ic {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-ic-pf { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.pv-ic-bal { background: rgba(96, 165, 250, 0.20); color: #93c5fd; }
.pv-card-label {
  font: 700 16px Inter, sans-serif;
  color: var(--text);
  letter-spacing: -0.005em;
}

.pv-card-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.pv-card-amount {
  font: 800 34px/1 Inter, sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.pv-portfolio .pv-card-amount { color: #4ade80; }
.pv-balance .pv-card-amount { color: #fff; }
.pv-amt-cur {
  font-size: 22px;
  font-weight: 700;
  margin-right: 0;
}

.pv-eye {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  margin-left: 4px;
  align-self: center;
}
.pv-eye:hover { color: #fff; background: rgba(255,255,255,0.1); }

.pv-up-arrow {
  width: 76px;
  height: 56px;
  filter: drop-shadow(0 2px 12px rgba(74, 222, 128, 0.35));
  transform: translateY(2px);
}

.pv-coin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #93c5fd, #3b82f6 50%, #1e3a8a 100%);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow:
    0 4px 16px rgba(59, 130, 246, 0.4),
    inset 0 -3px 8px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}
.pv-coin-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 22px Inter, sans-serif;
  color: rgba(255,255,255,0.92);
  background: rgba(30, 64, 175, 0.4);
}

/* Action buttons */
.pv-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.pv-deposit, .pv-withdraw {
  border-radius: 12px;
  padding: 14px 12px;
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.005em;
  transition: transform 0.12s var(--ease), background 0.15s var(--ease);
}
.pv-deposit {
  background: #f4f4f5;
  color: #0a0c10;
  border: 1px solid #f4f4f5;
}
.pv-deposit:hover { background: #fff; transform: translateY(-1px); }
.pv-withdraw {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
.pv-withdraw:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* Right side: Profit/Loss chart */
.pv-right {
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pv-pl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.pv-pl-ic {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.pv-pl-title {
  font: 700 17px Inter, sans-serif;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pv-pl-watermark {
  position: absolute;
  top: -4px;
  right: 0;
  font: 700 22px Inter, sans-serif;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.01em;
  pointer-events: none;
}

.pv-pl-amount {
  margin-top: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font: 800 38px/1 Inter, sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pv-pl-cur {
  font-size: 26px;
  font-weight: 700;
}
.pv-pl-delta {
  font: 700 18px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--green);
  letter-spacing: -0.01em;
}
.pv-pl-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.pv-chart-wrap {
  position: relative;
  flex: 1;
  margin-top: 16px;
  min-height: 280px;
}
.pv-chart {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}
.pv-grid line {
  stroke: rgba(255,255,255,0.05);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.pv-line {
  fill: none;
  stroke: #4ade80;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: pvDraw 2.6s var(--ease) forwards;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.5));
}
.pv-fill {
  opacity: 0;
  animation: pvFillIn 0.8s 1.6s var(--ease) forwards;
}
@keyframes pvDraw { to { stroke-dashoffset: 0; } }
@keyframes pvFillIn { to { opacity: 1; } }
.pv-dot {
  fill: #4ade80;
  filter: drop-shadow(0 0 8px #4ade80);
  opacity: 0;
  animation: pvDotIn 0.4s 2.4s var(--ease) forwards, pvDotPulse 2.2s 2.9s ease-in-out infinite;
}
@keyframes pvDotIn { to { opacity: 1; } }
@keyframes pvDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.pv-y-axis {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 28px;
  width: 42px;
  pointer-events: none;
}
.pv-y-axis span {
  position: absolute;
  right: 0;
  font: 600 11px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  background: #050506;
  padding: 0 4px;
  letter-spacing: 0.03em;
}
.pv-x-axis {
  position: absolute;
  left: 4px;
  right: 48px;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.pv-x-axis span {
  font: 600 11px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

/* ----- Portfolio Positions table ----- */
.pv-positions {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.pv-pos-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}
.pv-pos-tabs {
  display: flex;
  gap: 28px;
}
.pv-pos-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
  padding: 0;
  position: relative;
  letter-spacing: -0.005em;
}
.pv-pos-tab.active { color: var(--text); }
.pv-pos-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.pv-pos-tab:hover { color: var(--text-2); }

.pv-filter {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 7px 12px;
  font: 600 12.5px Inter, sans-serif;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s var(--ease);
}
.pv-filter:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.pv-pos-head {
  display: grid;
  grid-template-columns: 1fr 110px 160px;
  gap: 16px;
  padding: 14px 6px 8px;
}
.pv-pos-head span {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pv-pos-th-current { text-align: left; }
.pv-pos-th-value { text-align: right; }

.pv-pos-row {
  display: grid;
  grid-template-columns: 1fr 110px 160px;
  align-items: center;
  gap: 16px;
  padding: 14px 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pv-pos-row:first-of-type { border-top: none; }
.pv-pos-market {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pv-pos-market img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.pv-pos-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}
.pv-pos-sub {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pv-pos-yn {
  font: 700 10.5px 'JetBrains Mono', ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.pv-pos-yn.yes { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.pv-pos-yn.no  { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.pv-pos-shares {
  font-size: 12.5px;
  color: var(--text-3);
}
.pv-pos-current {
  font: 700 16px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.pv-pos-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pv-pos-amount {
  font: 700 16px Inter, sans-serif;
  color: var(--text);
  letter-spacing: -0.005em;
}
.pv-pos-change {
  margin-top: 3px;
  font: 600 12.5px 'JetBrains Mono', ui-monospace, monospace;
}
.pv-pos-change.up   { color: var(--green); }
.pv-pos-change.down { color: var(--red); }

/* ----- Comments section ----- */
.tv-comments {
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 18px;
}
.tvc-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 4px 10px;
}
.tvc-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  font: 700 14px Inter, sans-serif;
  cursor: pointer;
  padding: 0;
  position: relative;
  letter-spacing: -0.005em;
}
.tvc-tab.active { color: var(--text); }
.tvc-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.tvc-tab:hover { color: var(--text-2); }

.tvc-compose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 4px;
}
.tvc-compose input {
  flex: 1;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 12px 14px;
  font: 500 13.5px Inter, sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.tvc-compose input::placeholder { color: var(--text-3); }
.tvc-compose input:focus {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.tvc-post {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 11px 16px;
  font: 700 13px Inter, sans-serif;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s var(--ease);
}
.tvc-post:hover { background: rgba(255,255,255,0.10); }
.tvc-post-arrow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text);
}

.tvc-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}
.tvc-item {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tvc-item:first-child { border-top: none; }
.tvc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 12px Inter, sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}
.tvc-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tvc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.tvc-user { color: var(--text); font-weight: 700; }
.tvc-dot { color: var(--text-3); }
.tvc-time { color: var(--text-3); font-weight: 500; }
.tvc-pos {
  font: 700 11.5px 'JetBrains Mono', ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}
.tvc-pos-yes { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.tvc-pos-no  { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.tvc-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  margin-top: 2px;
}
.tvc-react {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px Inter, sans-serif;
  color: var(--text-3);
  cursor: pointer;
}
.tvc-react:hover { color: var(--text-2); }
.tvc-blob {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #b9ff3d 0%, #84cc16 55%, #4d7c0f 100%);
  box-shadow: 0 0 6px rgba(132, 204, 22, 0.45);
  filter: blur(0.2px);
  position: relative;
}
.tvc-blob::before {
  content: "";
  position: absolute;
  inset: -2px -1px -1px -2px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: inherit;
  opacity: 0.6;
}
.tvc-react:hover .tvc-blob {
  background:
    radial-gradient(circle at 35% 35%, #d9ff70 0%, #a3e635 55%, #65a30d 100%);
}
.tvc-more {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  line-height: 1;
}
.tvc-more:hover { color: var(--text); }

/* ----- Right panel: Recommended ----- */
.tvp-recs {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tvp-recs-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.tvp-recs-tabs button {
  background: transparent;
  border: none;
  color: var(--text-3);
  font: 600 12.5px Inter, sans-serif;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.tvp-recs-tabs button.active { color: var(--text); }
.tvp-recs-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--text);
}
.tvp-rec {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s var(--ease);
}
.tvp-rec:hover { background: rgba(255,255,255,0.03); }
.tvp-rec img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
}
.tvp-rec-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.25;
}
.tvp-rec-pct {
  font: 700 13px Inter, sans-serif;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ----- Right panel ----- */
.tv-panel {
  background: #0b0c0f;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.tvp-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tvp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.tvp-id { display: flex; flex-direction: column; gap: 2px; }
.tvp-label { font-size: 12px; color: var(--text-3); }
.tvp-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

.tvp-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}
.tvp-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}
.tvp-tab.active {
  color: var(--text);
}
.tvp-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -11px;
  height: 2px;
  background: var(--text);
}
.tvp-mode {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-2);
  font: 500 13px Inter, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tvp-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tvp-yes, .tvp-no {
  border-radius: 9px;
  padding: 14px 10px;
  font: 700 15px Inter, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.12s var(--ease);
}
.tvp-yes {
  background: #22c55e;
  color: #042e10;
}
.tvp-yes span { color: #04220c; opacity: 0.75; font-weight: 600; font-size: 13px; }
.tvp-no {
  background: #2a0d0d;
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.tvp-no span { color: #f87171; opacity: 0.75; font-weight: 600; font-size: 13px; }
.tvp-yes:hover, .tvp-no:hover { transform: translateY(-1px); }

.tvp-amount-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.tvp-amount-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.tvp-amount-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 64px;
}
.tvp-hint {
  position: absolute;
  left: 4px;
  top: 6px;
  font: 500 12px/1.25 'Caveat', 'Comic Sans MS', cursive;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}
.tvp-hint-arrow {
  position: absolute;
  left: 64px;
  top: 28px;
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  transform: rotate(15deg);
}
.tvp-amount-value {
  font: 800 56px/1 Inter, sans-serif;
  color: rgba(255,255,255,0.32);
  letter-spacing: -0.04em;
}

.tvp-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tvp-quick button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-2);
  border-radius: 8px;
  padding: 9px 0;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.tvp-quick button:hover { background: rgba(255,255,255,0.08); color: var(--text); }

.tvp-leverage {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tvp-lev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.tvp-lev-toggle {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #22c55e;
  position: relative;
  display: inline-block;
}
.tvp-lev-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  right: 2px;
}
.tvp-lev-slider {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}
.tvp-lev-track {
  flex: 1;
  height: 22px;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.18) 0 1px,
      transparent 1px 5px);
  border-radius: 4px;
}
.tvp-lev-thumb {
  position: absolute;
  left: 35%;
  width: 18px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f5f5f5, #cfcfcf);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.5);
}
.tvp-lev-val {
  margin-left: 10px;
  font: 600 13px 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-2);
  min-width: 28px;
  text-align: right;
}

.tvp-buy {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font: 700 15px Inter, sans-serif;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.12s var(--ease);
}
.tvp-buy:hover { transform: translateY(-1px); }
.tvp-shares {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-3);
}

/* Trading view responsive */
@media (max-width: 900px) {
  .trading-view { grid-template-columns: 1fr; }
  .tv-watermark { font-size: 60px; }
}
@media (max-width: 600px) {
  .tv-title { font-size: 22px; }
  .tv-watermark { font-size: 44px; }
  .tv-watermark .tv-wm-star { font-size: 36px; }
}

/* =====================================================
   PLATFORM ANIMATIONS
   ===================================================== */

/* Cards subtly float on hover for a "live" feel */
.platform-window .mcard {
  transition: transform 0.45s var(--ease-spring), border-color 0.3s var(--ease), box-shadow 0.45s var(--ease);
}
.platform-window .mcard:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 255, 0, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(230, 255, 0, 0.08);
}

/* Sparklines: draw on view, then breathe gently */
.platform-window .spark polyline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sparkDraw 1.6s var(--ease) forwards, sparkBreathe 5.5s ease-in-out 1.6s infinite;
}
.platform-window .mcard:nth-child(2) .spark polyline { animation-delay: 0.18s, 1.78s; }
.platform-window .mcard:nth-child(3) .spark polyline { animation-delay: 0.32s, 1.92s; }
.platform-window .mcard:nth-child(5) .spark polyline { animation-delay: 0.46s, 2.06s; }
.platform-window .mcard:nth-child(6) .spark polyline { animation-delay: 0.6s, 2.2s; }
.platform-window .mcard:nth-child(7) .spark polyline { animation-delay: 0.74s, 2.34s; }
.platform-window .mcard:nth-child(8) .spark polyline { animation-delay: 0.88s, 2.48s; }
.platform-window .mcard-row:nth-child(3) .spark polyline { animation-delay: 0.4s, 2s; }

@keyframes sparkDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes sparkBreathe {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 transparent); }
  50% { opacity: 0.78; filter: drop-shadow(0 0 4px currentColor); }
}

/* Percentage updates: brief flash + tiny scale on JS-triggered .tick class */
.platform-window .pc {
  transition: color 0.4s var(--ease), transform 0.4s var(--ease-spring), text-shadow 0.4s var(--ease);
  display: inline-block;
}
.platform-window .pc.tick-up {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
  transform: translateY(-1px) scale(1.05);
}
.platform-window .pc.tick-down {
  color: #f87171;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.55);
  transform: translateY(1px) scale(1.05);
}

/* Volume arrow chip: slow breathing pulse to feel "live" */
.platform-window .mcard-foot .left span:last-child {
  animation: volPulse 3.4s ease-in-out infinite;
}
@keyframes volPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(74, 222, 128, 0.45); }
}

/* Pulse the green deposit-area stat (Cash) */
.platform-window .pstat-money {
  animation: cashGlow 4.2s ease-in-out infinite;
}
@keyframes cashGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 14px rgba(74, 222, 128, 0.45); }
}

/* Bell badge: gentle pulse */
.pbell-badge {
  animation: bellPulse 2.4s ease-in-out infinite;
}
@keyframes bellPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
}

/* Active filter pill subtle shimmer */
.platform-window .ptag.active {
  position: relative;
  overflow: hidden;
}
.platform-window .ptag.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: pillShimmer 4.2s ease-in-out infinite;
}
@keyframes pillShimmer {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Search caret blink */
.psearch input::placeholder { color: var(--text-3); }
.psearch::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: var(--neon);
  transform: translateY(-50%);
  opacity: 0;
  animation: caretBlink 1.1s steps(2) infinite;
  pointer-events: none;
}
.psearch:focus-within::after { display: none; }
@keyframes caretBlink {
  0%, 50% { opacity: 0; }
  51%, 100% { opacity: 0; }
}

/* Live trade tape */
.trade-tape {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(0, 0, 0, 0.3));
  padding: 0;
  height: 42px;
  overflow: hidden;
  position: relative;
}
.tt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.18em;
  color: var(--red);
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
  background: #14080a;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 8px 0 12px -6px rgba(0, 0, 0, 0.9);
}
.tt-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.7);
}
.tt-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: tapeScroll 60s linear infinite;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
}
.tt-row {
  display: flex;
  flex-shrink: 0;
}
.tt-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  position: relative;
}
.tt-item + .tt-item::before {
  content: "·";
  position: absolute;
  left: -2px;
  color: var(--text-3);
}
.tt-item b { color: var(--text); font-weight: 600; }
.tt-item em { font-style: normal; font-weight: 700; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; letter-spacing: 0.04em; }
.tt-yes { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.tt-no  { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.tt-amt { color: var(--text); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; }

@keyframes tapeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause tape on hover so users can read it */
.trade-tape:hover .tt-track { animation-play-state: paused; }

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .platform-window .spark polyline,
  .platform-window .mcard-foot .left span:last-child,
  .platform-window .pstat-money,
  .pbell-badge,
  .platform-window .ptag.active::after,
  .tt-track,
  .tt-dot { animation: none !important; }
  .platform-window .spark polyline { stroke-dashoffset: 0; }
}

@media (max-width: 1100px) {
  .pstat:nth-child(2),
  .pstat:nth-child(3) { display: none; }
  .psearch { width: 220px; }
}
@media (max-width: 820px) {
  .pnav-link:not(.active) { display: none; }
  .platform-filters { flex-direction: column; align-items: stretch; }
  .psearch { width: 100%; }
  .pstat:nth-child(1) { display: none; }
  .pbell { display: none; }
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mcard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.mcard:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.mcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 255, 0, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mcard:hover::before { opacity: 1; }

.mcard-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.mcard-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.mcard-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mcard-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  flex: 1;
}
.mcard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
}
.mcard-row + .mcard-row { border-top: 1px solid var(--line); }
.mcard-row .nm { flex: 1; font-weight: 500; color: var(--text); }
.mcard-row .pc {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-2);
  font-size: 13px;
  min-width: 38px;
  text-align: right;
}
.spark {
  width: 50px; height: 18px;
}
.btn-mini {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-mini.yes { background: var(--green-bg); color: var(--green); border-color: rgba(74, 222, 128, 0.2); }
.btn-mini.yes:hover { background: var(--green); color: #000; }
.btn-mini.no { background: var(--red-bg); color: var(--red); border-color: rgba(248, 113, 113, 0.2); }
.btn-mini.no:hover { background: var(--red); color: #fff; }

.mcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.mcard-foot .left { display: flex; gap: 14px; align-items: center; }

/* Feature card variant */
.mcard.feat {
  background: linear-gradient(135deg, #0e0e0a 0%, #1a1a06 100%);
  border-color: rgba(230, 255, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
}
.mcard.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 80% 100%, rgba(230, 255, 0, 0.13), transparent 55%);
  pointer-events: none;
}
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.live-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.mcard.feat h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: auto;
}
.mcard.feat p {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 6px;
}
.feat-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 44px; height: 44px;
  background: var(--neon);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s var(--ease-spring);
}
.mcard.feat:hover .feat-arrow { transform: translate(2px, -2px) rotate(-12deg); }

/* Animated liquid blob (real Zabili logo) inside Season feature card */
.feat-blob-wrap {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 1;
  animation: blobBreathe 6.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 36px rgba(230, 255, 0, 0.4));
}
.feat-blob-spin {
  width: 100%;
  height: 100%;
  animation: blobSpin 22s linear infinite;
  transform-origin: 50% 50%;
}
.feat-blob-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: url(#liquidWarp);
}
@keyframes blobSpin {
  to { transform: rotate(360deg); }
}
@keyframes blobBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.feat-arrow-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #000;
  pointer-events: none;
  transform: translate(-22px, -32px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-spring);
  z-index: 2;
}
.mcard.feat:hover .feat-arrow-glyph {
  transform: translate(-18px, -36px) rotate(-8deg);
}
.mcard.feat:hover .feat-blob-wrap {
  filter: drop-shadow(0 18px 56px rgba(230, 255, 0, 0.6));
}

/* Reduced motion: kill all blob animation */
@media (prefers-reduced-motion: reduce) {
  .feat-blob-spin,
  .feat-blob-wrap { animation: none !important; }
  .feat-blob-img { filter: none !important; }
}

/* Inside the platform window, the Season promo spans two columns
   to mirror the wider banner layout from the reference screenshot */
.platform-window .mcard.feat {
  grid-column: span 2;
  min-height: 0;
}
@media (max-width: 720px) {
  .platform-window .mcard.feat { grid-column: span 1; }
}

/* =====================================================
   POWER GRID
   ===================================================== */
.power-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pcard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.pcard:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-2);
}
.pcard .visual {
  height: 260px;
  border-radius: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.pcard p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
}

/* Visual: Licensed */
.viz-licensed {
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  gap: 12px;
  justify-content: center;
}
.viz-licensed .yn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.viz-licensed .yn {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
}
.viz-licensed .yn-y { background: var(--green); color: #000; box-shadow: 0 6px 20px rgba(74, 222, 128, 0.25); }
.viz-licensed .yn-n { background: rgba(248, 113, 113, 0.10); color: var(--red); border-color: rgba(248, 113, 113, 0.25); }
.lic-badge {
  margin-top: 4px;
  padding: 10px 14px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.lic-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #042e10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.lic-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lic-flag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.lic-flag-more {
  padding: 0 10px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}

/* Visual: Region-native markets */
.viz-regions {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  gap: 8px;
  justify-content: center;
}
.rmkt {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.rmkt:hover {
  transform: translateX(4px);
  border-color: rgba(230, 255, 0, 0.30);
}
.rmkt-flag {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.rmkt-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rmkt-price {
  font: 700 14px/1 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

/* Visual: Rails (fiat + crypto) */
.viz-rails {
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  gap: 14px;
  justify-content: center;
}
.viz-rails .rail-balance {
  padding: 16px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 255, 0, 0.08), transparent 60%),
    linear-gradient(135deg, rgba(74, 222, 128, 0.14) 0%, rgba(74, 222, 128, 0.04) 100%);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.viz-rails .rb-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  font-weight: 600;
}
.viz-rails .rb-amt {
  font: 800 30px/1 'Inter', system-ui, sans-serif;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.viz-rails .rb-trend {
  font: 600 11px/1 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.viz-rails .rb-arrow { font-size: 13px; }

.viz-rails .rail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.rp {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  white-space: nowrap;
}
.rp.rp-fiat {
  background: rgba(74, 222, 128, 0.10);
  border-color: rgba(74, 222, 128, 0.25);
  color: var(--green);
}
.rp.rp-crypto {
  background: rgba(230, 255, 0, 0.08);
  border-color: rgba(230, 255, 0, 0.22);
  color: var(--neon);
}

/* Power row 2 */
.power-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* Podium */
.viz-podium {
  align-items: flex-end;
  justify-content: center;
  padding: 30px 24px 0;
  gap: 8px;
}
.podstep {
  width: 64px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12px;
  font-weight: 800;
  color: var(--text-4);
  font-size: 14px;
  position: relative;
}
.podstep .av {
  position: absolute;
  top: -36px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--neon), var(--neon-2));
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 16px;
}
.podstep.first { height: 160px; background: linear-gradient(180deg, rgba(230, 255, 0, 0.1), var(--bg)); border-color: rgba(230, 255, 0, 0.2); }
.podstep.first .av { background: var(--neon); box-shadow: 0 0 20px var(--neon-glow); }
.podstep.second { height: 120px; }
.podstep.third { height: 90px; }

/* Rank progress card */
.viz-rank {
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
}
.rank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.rank-tier {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--neon), var(--neon-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.rank-bar {
  height: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
  margin-bottom: 8px;
}
.rank-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 75%;
  background: linear-gradient(90deg, var(--neon-2), var(--neon));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--neon-glow);
}
.rank-pts { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.rank-achievements { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rank-achievements .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-4); margin-bottom: 10px; }
.rank-achievements .badges { display: flex; gap: 8px; }
.rank-achievements .b { width: 38px; height: 38px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* Envelope */
.viz-secret {
  background: linear-gradient(135deg, #0a0a0a, #14140a);
}
.envelope {
  width: 200px;
  height: 130px;
  background: linear-gradient(135deg, #f5f1e6, #e8e0c8);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: rotate(-4deg);
  transition: transform 0.4s var(--ease);
}
.pcard:hover .envelope { transform: rotate(0deg) translateY(-4px); }
.envelope::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(135deg, transparent calc(50% - 1px), rgba(0,0,0,0.08) 50%, transparent calc(50% + 1px));
}
.envelope::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  border: 65px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.05);
  width: 100%;
}
.wax {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d04a3e, #8b1a14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f1e6;
  font-weight: 800;
  font-size: 14px;
}

/* =====================================================
   CATEGORY CARDS
   ===================================================== */
.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}
.cat-title {
  font: 800 56px/1 'Inter', system-ui, sans-serif;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0;
}
.cat-nav {
  display: flex;
  gap: 10px;
}
.cat-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.cat-nav-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: scale(1.05);
}

.cat-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-grid::-webkit-scrollbar { display: none; }

.cat {
  position: relative;
  flex: 0 0 calc((100% - 54px) / 4);
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
  isolation: isolate;
  background: var(--cat-grad);
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--cat-img, none);
  background-size: cover;
  background-position: var(--cat-pos, center);
  transition: transform 0.7s var(--ease);
}
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.92) 100%);
}
.cat:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.cat:hover::before { transform: scale(1.04); }

.cat .cat-tag {
  position: absolute;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--neon);
  box-shadow: 0 0 0 3px rgba(230, 255, 0, 0.10), 0 4px 14px rgba(230, 255, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--neon);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cat:hover .cat-tag {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(230, 255, 0, 0.14), 0 6px 20px rgba(230, 255, 0, 0.28);
}
.cat .cat-tag svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(230, 255, 0, 0.35));
}
.cat .cat-content {
  position: relative;
  z-index: 2;
}
.cat h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #fff;
  min-height: 34px;
}
.cat p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 63px;
}
.cat .cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(230, 255, 0, 0.45);
  transition: text-decoration-color 0.2s var(--ease);
}
.cat:hover .cat-link {
  text-decoration-color: var(--neon);
}

/* Fallback gradients per category (visible if image fails to load) */
.cat.crypto   { --cat-grad: radial-gradient(circle at 30% 20%, #6a3fb5, #1a0d2b 70%); }
.cat.politics { --cat-grad: radial-gradient(circle at 30% 20%, #2563eb, #0d1a2b 70%); }
.cat.sports   { --cat-grad: radial-gradient(circle at 30% 20%, #facc15, #2b2a0d 70%); }
.cat.tech     { --cat-grad: radial-gradient(circle at 30% 20%, #f97316, #2b1a0d 70%); }
.cat.economy  { --cat-grad: radial-gradient(circle at 30% 20%, #16a34a, #0a2010 70%); }
.cat.culture  { --cat-grad: radial-gradient(circle at 30% 20%, #ec4899, #2b0d1a 70%); }
.cat.beyond   { --cat-grad: radial-gradient(circle at 30% 20%, #14b8a6, #0d2b1a 70%); }
.cat.gaming   { --cat-grad: radial-gradient(circle at 30% 20%, #a855f7, #1f0d2b 70%); }

/* Photo backgrounds per category (paths relative to this CSS file) */
.cat.crypto::before   { background-image: url('../assets/images/vitalik.jpg'); }
.cat.politics::before { background-image: url('../assets/images/trump.webp'); }
.cat.sports::before   { background-image: url('../assets/images/saka.png'); }
.cat.tech::before     { background-image: url('../assets/images/jensen.jpg'); }
.cat.economy::before  { background-image: url('../assets/images/cramer.png'); }
.cat.culture::before  { background-image: url('../assets/images/drake.jpg'); }
.cat.beyond::before   { background-image: url('../assets/images/UFO.png'); }
.cat.gaming::before   { background-image: url('../assets/images/GTA6.png'); }

.cat-tagline {
  margin: 0 0 28px;
  font: 500 18px/1.4 'Inter', system-ui, sans-serif;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-tagline em {
  font-style: italic;
  color: var(--text);
  font-weight: 600;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 60%), var(--bg-card);
  border: 1px solid var(--line);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(230,255,0,0.08), rgba(230,255,0,0) 45%);
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}
.how:hover { border-color: rgba(230, 255, 0, 0.35); transform: translateY(-3px); }
.how:hover::before { opacity: 1; }

.how-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.how-num {
  font: 800 20px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(230, 255, 0, 0.45);
}
.how-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.how h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
}
.how > p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 26px;
}

.how-viz {
  margin-top: auto;
  position: relative;
  padding: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

/* Step 1 — stacked market cards */
.how-viz-pick {
  padding: 24px 18px;
  min-height: 220px;
}
.hm-card {
  position: absolute;
  left: 18px; right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hm-back  { top: 18px;  transform: scale(0.92) translateY(-4px); opacity: 0.55; }
.hm-mid   { top: 70px;  transform: scale(0.96); opacity: 0.85; }
.hm-front { top: 122px; border-color: rgba(230, 255, 0, 0.35); box-shadow: 0 8px 24px rgba(230,255,0,0.10); }
.hm-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-shrink: 0;
  width: 70px;
}
.hm-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon-glow);
}
.hm-q {
  flex: 1;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-pct {
  font: 700 13px/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-2);
}
.hm-pct-on { color: var(--neon); }

/* Step 2 — order ticket */
.how-viz-pos { padding: 16px; }
.hp-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
}
.hp-tab {
  flex: 1;
  text-align: center;
  padding: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 6px;
  cursor: default;
}
.hp-tab-on {
  background: rgba(230,255,0,0.08);
  color: var(--neon);
  border: 1px solid rgba(230,255,0,0.25);
}
.hp-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.hp-side {
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: default;
  font-family: inherit;
}
.hp-side span { font-weight: 600; opacity: 0.85; margin-left: 2px; font-size: 11px; }
.hp-yes {
  background: var(--neon);
  color: #0a0a0a;
  box-shadow: 0 6px 20px rgba(230, 255, 0, 0.25);
}
.hp-no {
  background: rgba(248, 113, 113, 0.10);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
}
.hp-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}
.hp-amount-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hp-amount-val {
  font: 800 22px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hp-quick { display: flex; gap: 4px; margin-bottom: 12px; }
.hp-quick span {
  flex: 1;
  text-align: center;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
}
.hp-cta {
  width: 100%;
  padding: 11px;
  background: var(--text);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: default;
  font-family: inherit;
}

/* Step 3 — cash out / P&L */
.how-viz-cash { padding: 16px; }
.hc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.hc-row-l { display: flex; flex-direction: column; gap: 4px; }
.hc-key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hc-val {
  font: 800 22px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hc-pnl {
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--neon);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(230, 255, 0, 0.10);
  border: 1px solid rgba(230, 255, 0, 0.25);
}
.hc-chart {
  height: 70px;
  margin: 4px 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
}
.hc-chart svg { width: 100%; height: 100%; display: block; }
.hc-cta {
  width: 100%;
  padding: 11px;
  background: var(--neon);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: default;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(230, 255, 0, 0.28);
}

/* =====================================================
   STATS / SOCIAL PROOF
   ===================================================== */
.stats {
  text-align: center;
}
.quote-block {
  max-width: 800px;
  margin: 0 auto 56px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  position: relative;
  padding: 0 60px;
  color: var(--text);
}
.quote-block::before, .quote-block::after {
  font-family: 'Inter', sans-serif;
  font-size: 80px;
  line-height: 1;
  position: absolute;
  color: var(--neon);
  font-weight: 900;
  opacity: 0.6;
}
.quote-block::before { content: "“"; left: 0; top: -20px; }
.quote-block::after { content: "”"; right: 0; bottom: -50px; }

.handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 56px;
}
.handle .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), #888);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 11px;
}
.handle .x {
  width: 16px; height: 16px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}
.stat { padding: 12px; }
.stat .n {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: 8px;
}

/* Badges */
.badges-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.badge {
  position: relative;
  padding: 28px 32px 60px;
  width: 220px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 14px 14px 4px 4px;
  isolation: isolate;
}
.badge::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 16px;
  background: inherit;
  border: inherit;
  border-top: none;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}
.badge.green { border-color: rgba(74, 222, 128, 0.25); box-shadow: inset 0 0 40px rgba(74, 222, 128, 0.08); }
.badge.green::after { border-color: rgba(74, 222, 128, 0.25); }
.badge.blue  { border-color: rgba(96, 165, 250, 0.25); box-shadow: inset 0 0 40px rgba(96, 165, 250, 0.08); }
.badge.blue::after { border-color: rgba(96, 165, 250, 0.25); }
.badge.teal  { border-color: rgba(45, 212, 191, 0.25); box-shadow: inset 0 0 40px rgba(45, 212, 191, 0.08); }
.badge.teal::after { border-color: rgba(45, 212, 191, 0.25); }

.badge .top {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.badge .label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 8px 0 16px;
  font-weight: 600;
}
.badge .src {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge .star {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}
.badge.green .star { color: #4ade80; }
.badge.blue .star { color: #60a5fa; }
.badge.teal .star { color: #2dd4bf; }

.colosseum {
  width: 280px;
  height: 140px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.colosseum .ring {
  position: absolute;
  width: 100%; height: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(230, 255, 0, 0.05);
}
.colosseum .building {
  width: 200px;
  height: 100px;
  background:
    repeating-linear-gradient(90deg, var(--text) 0 3px, transparent 3px 9px),
    var(--bg-2);
  border: 2px solid var(--line-2);
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent);
          mask-image: linear-gradient(180deg, #000 50%, transparent);
  position: relative;
}
.colosseum .building::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 30px var(--neon-glow);
}

/* =====================================================
   INFO TILES
   ===================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 16px;
}
.socials-stack {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.social-card:hover {
  border-color: rgba(230, 255, 0, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.social-card:hover .social-icon {
  box-shadow: 0 0 0 4px rgba(230, 255, 0, 0.14), 0 6px 22px rgba(230, 255, 0, 0.32);
}
.social-card:hover .social-arrow {
  color: var(--neon);
  transform: translateX(3px);
}
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--neon);
  box-shadow: 0 0 0 3px rgba(230, 255, 0, 0.10), 0 4px 14px rgba(230, 255, 0, 0.20);
  color: var(--neon);
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.social-icon svg {
  filter: drop-shadow(0 0 6px rgba(230, 255, 0, 0.4));
}
.social-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.social-arrow {
  color: var(--text-3);
  font-size: 18px;
  transition: all 0.25s var(--ease);
}
.info-tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  isolation: isolate;
  transition: all 0.3s var(--ease);
}
.info-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.info-tile.illustrated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tile-bg);
}
.info-tile.illustrated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,0.85) 100%);
}
.info-tile.manifesto { --tile-bg: radial-gradient(circle at 70% 30%, #4078d8, #18365e 60%, #0a0a0a 100%); }
.info-tile.docs { --tile-bg: radial-gradient(circle at 70% 30%, #5896e8, #1c4283 60%, #0a0a0a 100%); }

.info-tile .pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}
.info-tile h3 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 14px; }
.info-tile .pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  align-self: flex-start;
  transition: all 0.2s;
}
.info-tile .pill-link:hover { background: var(--neon); }

.tg-stack { display: flex; flex-direction: column; gap: 16px; }
.tg-card {
  position: relative;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease);
}
.tg-card:hover { background: var(--bg-card-hover); border-color: var(--line-2); }
.tg-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tg-card .head svg { color: var(--neon); }
.tg-card .head h4 { font-size: 16px; font-weight: 600; }
.tg-card .arrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 14px;
}
.tg-card .arrow .a { color: var(--neon); }

/* =====================================================
   CTA BIG
   ===================================================== */
.cta-big {
  position: relative;
  margin: 80px auto 0;
  max-width: 1100px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--neon) 0%, #b8db00 100%);
  padding: 80px 60px;
  text-align: center;
  color: #000;
  overflow: hidden;
  isolation: isolate;
}
.cta-big::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(0,0,0,0.15), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.3), transparent 50%);
  z-index: -1;
}
.cta-big h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 20px;
}
.cta-big h2 em { font-style: italic; font-weight: 300; }
.cta-big p {
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.8;
}
.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}
.footer-brand-row {
  padding-bottom: 32px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  padding-bottom: 56px;
}
.footer-grid > div { min-width: 160px; }
.footer-brand-block {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 224px;
  width: auto;
  display: block;
  margin-left: -12px;
  filter: drop-shadow(0 0 44px rgba(230, 255, 0, 0.26));
}
.footer-brand-block .mark {
  width: 32px; height: 32px;
  background: var(--neon);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}
.footer h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-4);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer ul a {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--neon); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--text-4);
}
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.footer-socials a:hover {
  color: #000;
  background: var(--neon);
  border-color: var(--neon);
  transform: translateY(-1px);
}
.footer-socials a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--neon);
}
.footer-legal {
  display: inline-flex;
  gap: 14px;
}
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--neon); }
.footer-mega {
  font-size: clamp(140px, 22vw, 320px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  user-select: none;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 40px;
  margin-bottom: -40px;
  position: relative;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ===== Tablet (≤1024px) ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  /* Hero / chips */
  .header-chip { transform: none; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .hero { padding: 0 0 80px; }

  /* Brand logo */
  .brand-logo { height: 180px; margin-top: -64px; margin-bottom: -28px; }

  /* Categories */
  .cat { flex: 0 0 calc((100% - 18px) / 2); min-height: 460px; }
  .cat-title { font-size: 44px; }
  .cat-tagline { font-size: 16px; }

  /* Generic grids */
  .markets-grid, .power-grid, .power-row-2 { grid-template-columns: 1fr 1fr; }

  /* How It Works → 1 col with horizontal-style layout */
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .how { min-height: auto; }
  .how-viz { max-width: 480px; margin-left: auto; margin-right: auto; width: 100%; }

  /* Vision / Docs / Socials */
  .info-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .socials-stack { grid-column: span 2; grid-template-rows: none; grid-template-columns: repeat(4, 1fr); }
  .social-card { flex-direction: column; text-align: center; padding: 16px 12px; gap: 8px; }
  .social-card .social-arrow { display: none; }
  .social-card span:not(.social-icon):not(.social-arrow) { font-size: 13px; }

  /* Footer */
  .footer-grid { gap: 60px; }
  .footer-brand-row { padding-bottom: 24px; }
  .footer-logo { height: 140px; }
}

/* ===== Mobile (≤720px) — APP-LIKE FEEL ===== */
@media (max-width: 720px) {
  /* Tighter section rhythm — flow, not stacked shots */
  section { padding: 48px 0; }
  section + section { padding-top: 0; }
  .container { padding: 0 16px; }

  body { padding-bottom: 0; }

  /* Nav */
  .nav-links { display: none; }
  .header-row { padding: 0; }
  .site-header { padding: 18px 0 4px; }

  /* Top banner */
  .top-banner { font-size: 11.5px; padding: 9px 14px; line-height: 1.4; letter-spacing: 0; }

  /* Brand logo */
  .brand-logo { height: 120px; margin-top: -38px; margin-bottom: -18px; }

  /* Header chip — stack into 2 rows on tiny screens */
  .header-chip {
    font-size: 11px;
    padding: 6px 12px 6px 8px;
    gap: 8px;
    margin-bottom: 24px;
  }
  .header-chip .chip-divider { display: none; }
  .header-chip > span:last-child { font-size: 11px; }

  /* Hero */
  .hero { padding: 0 0 40px; }
  .hero h1 { font-size: clamp(44px, 13vw, 72px); margin-bottom: 18px; }
  .hero-sub { font-size: 15px; padding: 0 8px; margin-bottom: 24px; }
  .hero-cta { gap: 8px; flex-direction: column; width: 100%; padding: 0 24px; }
  .hero-cta .btn { width: 100%; padding: 14px 18px; font-size: 14px; }
  .float-card { display: none; }

  /* Ticker — tighter, more app-like marquee */
  .ticker { margin-top: 32px; padding: 10px 0; }
  .ticker-item { font-size: 12px; gap: 8px; }

  /* === PLATFORM WINDOW → MOBILE APP PREVIEW === */
  .platform-section { padding: 8px 0 56px; }
  .seg-wrap { margin-bottom: 18px; }
  .platform-window {
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(230,255,0,0.06);
    margin: 0 4px;
  }
  /* Hide desktop window chrome (mac dots / url bar) — looks fake on mobile */
  .platform-window .window-bar { display: none; }

  /* Convert desktop top nav into a clean mobile app header */
  .platform-nav {
    padding: 14px 16px;
    gap: 10px;
    justify-content: space-between;
  }
  .pnav-left { gap: 8px; }
  .pnav-logo { height: 56px; margin: -14px 0 -14px -8px; }
  /* Hide desktop nav links — show only logo */
  .pnav-link { display: none; }
  /* Slim down right side: hide portfolio stats, keep just deposit + avatar */
  .pnav-right { gap: 10px; }
  .pstat { display: none; }
  .pbell { width: 32px; height: 32px; }
  .pbell svg { width: 16px; height: 16px; }
  .pdeposit { padding: 7px 14px; font-size: 12px; }
  .pavatar { width: 32px; height: 32px; }

  /* Filter row → horizontal scroll like an app tab strip */
  .platform-filters {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .pfilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .pfilters::-webkit-scrollbar { display: none; }
  .ptag { padding: 6px 11px; font-size: 12px; flex-shrink: 0; }
  .psearch { display: none; }

  /* Markets grid inside platform → 1 column app-feed */
  .platform-window .markets-grid { padding: 14px; gap: 10px; }
  .platform-window .mcard { border-radius: 14px; }

  /* Trading view becomes 1 column */
  .trading-view { grid-template-columns: 1fr; gap: 16px; padding: 16px; min-height: auto; }
  .tv-title { font-size: 20px; }
  .tv-icon { width: 48px; height: 48px; }

  /* Section heads */
  .section-head h2.display { font-size: clamp(40px, 10vw, 56px); }
  .section-head p { font-size: 15px; }

  /* Categories */
  .cat-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
  .cat-title { font-size: 36px; }
  .cat-nav { align-self: flex-end; }
  .cat-nav-btn { width: 38px; height: 38px; }
  .cat-tagline {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 22px;
  }
  .cat { flex: 0 0 84%; min-height: 420px; padding: 20px; aspect-ratio: 4/5; }
  .cat h3 { font-size: 24px; min-height: auto; }
  .cat p { font-size: 13px; min-height: auto; -webkit-line-clamp: 2; line-clamp: 2; }
  .cat .cat-tag { width: 36px; height: 36px; top: 14px; left: 14px; }
  .cat .cat-tag svg { width: 16px; height: 16px; }

  /* Generic grids → 1 column */
  .markets-grid, .power-grid, .power-row-2 { grid-template-columns: 1fr; gap: 14px; }

  /* How It Works */
  .how { padding: 22px 20px 22px; min-height: auto; }
  .how-head { margin-bottom: 16px; }
  .how h3 { font-size: 22px; }
  .how > p { font-size: 13px; margin-bottom: 20px; }
  .how-viz { padding: 14px; max-width: 100%; }

  /* Step 1 — stacked cards: keep stack but tighter */
  .how-viz-pick { min-height: 220px; }
  .hm-card { padding: 12px 14px; }
  .hm-back  { top: 12px; }
  .hm-mid   { top: 60px; }
  .hm-front { top: 108px; }
  .hm-q { font-size: 13px; }
  .hm-pct { font-size: 12px; }

  /* Step 2 — order ticket */
  .how-viz-pos { padding: 14px; }
  .hp-tabs { font-size: 11px; }
  .hp-tab { padding: 6px 10px; }
  .hp-toggle { gap: 6px; }
  .hp-side { padding: 10px 12px; font-size: 12px; }
  .hp-amount { padding: 12px; }
  .hp-amount-val { font-size: 22px; }
  .hp-cta { padding: 12px; font-size: 14px; }

  /* Step 3 — cash out chart */
  .how-viz-cash { padding: 14px; }
  .hc-key { font-size: 11px; }
  .hc-val { font-size: 16px; }
  .hc-pnl { font-size: 14px; }
  .hc-chart { height: 70px; }
  .hc-cta { padding: 11px; font-size: 13px; }

  /* Quote block */
  .quote-block { padding: 0 16px; font-size: 18px; }

  /* Stats row */
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 18px; gap: 16px; }
  .stats-row > * { font-size: 13px; }

  /* Vision / Docs / Socials */
  .info-grid { grid-template-columns: 1fr; gap: 14px; }
  .info-tile { padding: 22px; }
  .info-tile h3 { font-size: 22px; }
  .pill-icon { font-size: 28px; }
  .socials-stack {
    grid-column: auto;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: none;
    gap: 8px;
  }
  .social-card {
    flex-direction: column;
    text-align: center;
    padding: 14px 8px;
    gap: 6px;
    border-radius: 14px;
  }
  .social-card .social-arrow { display: none; }
  .social-card span:not(.social-icon):not(.social-arrow) { font-size: 11px; font-weight: 600; }
  .social-icon { width: 36px; height: 36px; }
  .social-icon svg { width: 16px; height: 16px; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer-brand-row { padding-bottom: 16px; }
  .footer-logo { height: 96px; margin-left: 0; }
  .footer-grid { gap: 40px; padding-bottom: 40px; }
  .footer h5 { font-size: 12px; margin-bottom: 14px; }
  .footer ul a { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; padding: 20px 0; font-size: 12px; }
  .footer-socials a { width: 40px; height: 40px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  /* CTA blocks (if any remain) */
  .cta-big { padding: 50px 24px; border-radius: 24px; }
  .badge { width: 160px; padding: 22px 20px 50px; }
}

/* ===== Small mobile (≤420px) ===== */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .brand-logo { height: 104px; margin-top: -30px; margin-bottom: -14px; }
  .header-chip { font-size: 10px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .cat-title { font-size: 28px; }
  .cat { flex: 0 0 88%; min-height: 360px; }
  .footer-grid { gap: 22px; }
  .platform-window { margin: 0; border-radius: 22px; }
  .pnav-logo { height: 48px; }
}

/* =====================================================
   MOBILE STICKY CTA BAR (app-like floating button)
   ===================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.88) 40%, rgba(5,5,5,0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}
.mobile-cta-bar .mobile-cta-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: var(--neon);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(230, 255, 0, 0.32),
    0 0 0 1px rgba(230, 255, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s var(--ease);
}
.mobile-cta-bar .mobile-cta-btn:active { transform: scale(0.98); }

@media (max-width: 720px) {
  .mobile-cta-bar { display: block; }
}

/* =====================================================
   APP-LIKE COHESION POLISH (mobile)
   Connect sections, unify card chrome, tighten rhythm
   ===================================================== */
@media (max-width: 720px) {
  /* Unified card chrome across sections */
  .pcard, .how, .info-tile, .float-card, .social-card {
    border-radius: 20px;
  }

  /* Tighten section-head spacing */
  .section-head { margin-bottom: 26px; padding: 0 4px; }
  .section-head .eyebrow { font-size: 11px; }
  .section-head p { font-size: 14px; max-width: 100%; }

  /* pcard tightening (features) */
  .pcard { padding: 22px 20px; }
  .pcard h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
  .pcard p { font-size: 13px; line-height: 1.5; }
  .pcard .visual { margin-bottom: 18px; }

  /* Power row 2 */
  .power-row-2 .pcard { padding: 22px 20px; }

  /* Cat carousel — make padding feel mobile-native */
  .cat-grid { padding-left: 4px; padding-right: 4px; gap: 12px; }
  .cat { border-radius: 20px; }

  /* Quote block centering */
  .quote-block { padding: 0 12px; font-size: 17px; line-height: 1.45; text-align: center; }
  .stats { padding: 40px 0 56px; }

  /* Info section — vision/docs feel like app rows */
  .section-info { padding: 40px 0 24px; }
  .info-tile { padding: 20px; border-radius: 18px; min-height: auto; }
  .info-tile h3 { font-size: 20px; margin-bottom: 4px; }
  .info-tile .pill-icon { font-size: 26px; }
  .info-tile .pill-link { font-size: 13px; }

  /* Footer rhythm */
  .footer { padding-top: 32px; }
  .footer-brand-row { padding-bottom: 12px; }
  .footer-logo { height: 80px; }
  .footer-grid { padding-bottom: 32px; }

  /* Make all section transitions seamless — no double borders */
  .ticker + section,
  section + section { border-top: none; }

  /* Reveal animation softer on mobile to feel native */
  .reveal { transform: translateY(20px); }
}
