/* MacroFlow — Bloomberg Terminal × Vercel Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Core */
  --bg: #080c0a;
  --bg-1: #0b1210;
  --bg-2: #0f1815;
  --bg-3: #131e1a;
  --line: #1a2721;
  --line-2: #22332c;

  /* Text */
  --fg: #e8efe9;
  --fg-dim: #8a9a90;
  --fg-mute: #566760;
  --fg-faint: #3a4842;

  /* Brand greens */
  --green-deep: #0d5c3a;       /* primary accent */
  --green-deep-2: #0a4a2f;
  --green: #10b981;            /* live indicator */
  --green-soft: #10b98122;
  --green-edge: #10b98155;

  /* Signals */
  --bull: #10b981;
  --bull-dim: #10b98122;
  --bull-edge: #10b98144;
  --bear: #ef4444;
  --bear-dim: #ef444422;
  --bear-edge: #ef444444;
  --neut: #f5c24b;
  --neut-dim: #f5c24b22;
  --neut-edge: #f5c24b55;

  /* Type */
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* Utility */
.mono { font-family: var(--mono); font-feature-settings: "ss01", "ss02", "tnum"; letter-spacing: -0.01em; }
.tabular { font-variant-numeric: tabular-nums; }
.hairline { border: 1px solid var(--line); }
.hairline-b { border-bottom: 1px solid var(--line); }
.hairline-t { border-top: 1px solid var(--line); }
.upper { text-transform: uppercase; letter-spacing: 0.14em; }

/* Focus */
button:focus-visible, a:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 2px;
}

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* =========================
   App shell + nav
   ========================= */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: rgba(8, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, #10b981 0%, #0d5c3a 60%, #052a1c 100%);
  box-shadow: 0 0 0 1px #10b98133, 0 0 12px #10b98133 inset;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 2px;
  background: linear-gradient(135deg, #10b981 0%, #0d5c3a 100%);
  clip-path: polygon(0 60%, 30% 60%, 30% 20%, 55% 20%, 55% 80%, 100% 80%, 100% 100%, 0 100%);
  opacity: 0.95;
}
.brand-name { font-size: 14px; }
.brand-name span { color: var(--green); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.nav-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-dim);
  padding: 7px 12px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav-btn:hover { color: var(--fg); background: var(--bg-2); }
.nav-btn.active { color: var(--fg); background: var(--bg-2); }
.nav-btn.active::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--green); border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 8px var(--green);
}

.session-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1);
}
.session-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

.clock {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.clock .label { color: var(--fg-mute); margin-right: 6px; }
.clock .sep { color: var(--fg-mute); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--green-edge);
  background: var(--green-soft);
  font-family: var(--mono); font-size: 11px;
  color: var(--green);
  letter-spacing: 0.08em;
}
.live-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  height: 32px; padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--fg);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--bg-3); border-color: #2d4238; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; }
.btn-primary {
  background: var(--green);
  color: #052014;
  border-color: var(--green);
  font-weight: 600;
}
.btn-primary:hover { background: #0fd39a; border-color: #0fd39a; }
.btn-outline {
  background: transparent; color: var(--green); border-color: var(--green-edge);
}
.btn-outline:hover { background: var(--green-soft); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; }

/* =========================
   Page container
   ========================= */
.page { flex: 1; }

/* Session countdown bar */
.session-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.session-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 880px) {
  .session-bar-inner { grid-template-columns: 1fr; gap: 12px; }
}
.session-bar-lead {
  display: flex; align-items: center; gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
@media (max-width: 880px) { .session-bar-lead { border-right: none; padding-right: 0; } }
.session-bar-label {
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.session-bar-tz {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--fg-dim); font-size: 11.5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}
.session-bar-tz svg { width: 12px; height: 12px; color: var(--green); }

.session-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .session-items { grid-template-columns: 1fr; gap: 8px; } }

.session-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0;
}
.session-item-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.session-name {
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.session-countdown {
  font-size: 13px; color: var(--fg);
  letter-spacing: 0.02em;
}
.session-countdown .sep {
  color: var(--fg-mute);
  animation: blink 1s steps(2, start) infinite;
  margin: 0 1px;
}
.session-item-sub {
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.01em;
}
.session-item.open .session-name { color: var(--green); }
.session-item.open .session-item-sub { color: var(--green); opacity: 0.75; }

.session-open-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green);
  padding: 2px 8px;
  border: 1px solid var(--green-edge);
  background: var(--green-soft);
  border-radius: 4px;
}
.session-open-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulseRing 1.6s ease-out infinite;
}
.session-open-badge.forex-active {
  color: var(--neut); border-color: var(--neut-edge); background: var(--neut-dim);
}
.session-open-badge.forex-active .pulse {
  background: var(--neut); box-shadow: 0 0 0 0 rgba(245,194,75,0.7);
}
.session-item:has(.forex-active) .session-name { color: var(--neut); }
.session-item:has(.forex-active) .session-item-sub { color: var(--neut); opacity: 0.75; }
.session-open-badge.peak-volume {
  color: #f97316; border-color: #f9731644; background: #f9731622;
}
.session-open-badge.peak-volume .pulse {
  background: #f97316; box-shadow: 0 0 0 0 rgba(249,115,22,0.7);
}
.session-item:has(.peak-volume) .session-name { color: #f97316; }
.session-item:has(.peak-volume) .session-item-sub { color: #f97316; opacity: 0.75; }
.session-bar-foot {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px 8px;
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
  text-align: right;
}

/* =========================
   DASHBOARD
   ========================= */

.dash {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

.dash-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.dash-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
.dash-title .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); margin-left: 10px;
  font-weight: 400;
}
.dash-sub {
  color: var(--fg-dim); font-size: 12.5px;
  font-family: var(--mono);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.summary-card {
  background: var(--bg-1);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.summary-card .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.12em;
}
.summary-card .count {
  font-family: var(--mono); font-size: 36px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.summary-card .count.bull { color: var(--bull); }
.summary-card .count.bear { color: var(--bear); }
.summary-card .count.neut { color: #f5c24b; }
.summary-card .bar {
  margin-top: 10px;
  height: 2px; background: var(--line);
  position: relative; overflow: hidden;
}
.summary-card .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  background: currentColor; width: var(--pct, 50%);
}
.summary-card.bull .bar::after { background: var(--bull); }
.summary-card.bear .bar::after { background: var(--bear); }
.summary-card.neut .bar::after { background: var(--neut); }
.summary-card .delta {
  font-family: var(--mono); font-size: 11px; color: var(--fg-mute);
}
.summary-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }

.pair-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 1200px) { .pair-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .pair-grid { grid-template-columns: repeat(2, 1fr); } }

.pair-card {
  background: var(--bg-1);
  padding: 16px 16px 14px;
  position: relative;
  transition: background .15s ease, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  min-height: 148px;
  display: flex; flex-direction: column; gap: 10px;
}
.pair-card:hover {
  background: var(--bg-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent);
  z-index: 2;
}
.pair-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent, var(--neut));
}

.pair-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px;
}
.pair-name {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
}
.pair-price {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute);
  margin-top: 2px;
}
.pair-price .chg { margin-left: 6px; }
.pair-price .chg.up { color: var(--bull); }
.pair-price .chg.down { color: var(--bear); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid transparent;
}
.badge .b-dot {
  width: 5px; height: 5px; border-radius: 50%;
}
.badge.bull { color: var(--bull); background: var(--bull-dim); border-color: var(--bull-edge); }
.badge.bull .b-dot { background: var(--bull); box-shadow: 0 0 6px var(--bull); animation: biasPulse 3s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.badge.bear { color: var(--bear); background: var(--bear-dim); border-color: var(--bear-edge); }
.badge.bear .b-dot { background: var(--bear); box-shadow: 0 0 6px var(--bear); animation: biasPulse 3s ease-in-out infinite; animation-delay: var(--stagger, 0s); }
.badge.neut { color: #f5c24b; background: var(--neut-dim); border-color: var(--neut-edge); }
.badge.neut .b-dot { background: #f5c24b; box-shadow: 0 0 6px #f5c24b; animation: biasPulse 3s ease-in-out infinite; animation-delay: var(--stagger, 0s); }

@keyframes biasPulse {
  0%, 80%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px currentColor; }
  40%           { opacity: 0.5; transform: scale(1.4); box-shadow: 0 0 14px currentColor; }
}

@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.15); }
}

.strength {
  display: flex; align-items: center; gap: 10px;
}
.strength-label {
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.12em;
  width: 52px;
}
.strength-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  position: relative; overflow: hidden;
  border-radius: 2px;
}
.strength-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent, var(--neut));
  animation: barFill 1.1s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes barFill {
  from { width: 0; }
  to   { width: var(--w, 50%); }
}
.strength-val {
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
  width: 28px; text-align: right;
}

.pair-reason {
  color: var(--fg-dim); font-size: 12px; line-height: 1.45;
  font-family: var(--sans);
  font-weight: 300;
  margin-top: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.pair-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-mute);
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.pair-meta .driver { color: var(--fg-dim); }

.disclaimer {
  margin-top: 28px;
  padding: 14px 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute);
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.disclaimer .ico { color: var(--fg-dim); }

/* Ticker strip */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  height: 30px;
  display: flex; align-items: center;
  position: relative;
}
.ticker-track {
  display: inline-flex; gap: 28px;
  padding: 0 20px;
  animation: scroll 60s linear infinite;
}
.ticker-item {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.ticker-item .px { color: var(--fg); }
.ticker-item .chg.up { color: var(--bull); }
.ticker-item .chg.down { color: var(--bear); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================
   PRICING
   ========================= */
.trial-banner {
  width: 100%;
  background: linear-gradient(90deg, #0d5c3a 0%, #10b981 50%, #0d5c3a 100%);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-align: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--green-edge);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.trial-banner .spark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  font-size: 11px;
}
.trial-banner strong { font-weight: 700; }

.plan-cta-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.telegram-highlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 20px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(13,92,58,0.18));
  border: 1px solid var(--green-edge);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #d4f3e4;
}
.telegram-highlight .tg-ico { font-size: 16px; line-height: 1.2; }
.telegram-highlight strong { color: #ffffff; font-weight: 600; }

.trust-line {
  margin-top: 48px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-mute);
  text-align: center;
  letter-spacing: 0.02em;
}
.trust-line .sep { color: var(--fg-faint); margin: 0 8px; }

.pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.pricing-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; margin-bottom: 14px;
}
.pricing-headline {
  text-align: center;
  font-size: 46px; font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.05;
  margin: 0 0 14px;
}
.pricing-headline .accent { color: var(--green); }
.pricing-sub {
  text-align: center; color: var(--fg-dim);
  font-size: 16px; max-width: 560px; margin: 0 auto 28px;
  line-height: 1.5;
}

.toggle-wrap {
  display: flex; justify-content: center; margin-bottom: 44px;
}
.toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
}
.toggle-opt {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--fg-dim);
  padding: 8px 18px;
  border-radius: 5px;
  transition: color .2s ease;
  position: relative; z-index: 1;
}
.toggle-opt.active { color: var(--fg); }
.toggle-thumb {
  position: absolute; top: 4px; bottom: 4px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), width .25s ease;
  z-index: 0;
}
.save-tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--mono); font-size: 11px;
  color: #c084fc;
  background: rgba(192,132,252,0.15);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.plan:hover { border-color: var(--line-2); }
.plan.popular {
  border-color: var(--green);
  background: linear-gradient(180deg, #0c1b14 0%, var(--bg-1) 60%);
  box-shadow: 0 0 0 1px var(--green), 0 20px 60px -20px rgba(16,185,129,0.25);
}
.plan-ribbon {
  position: absolute; top: -10px; left: 32px;
  font-family: var(--mono); font-size: 10px;
  color: #052014; background: var(--green);
  padding: 4px 8px; border-radius: 4px;
  letter-spacing: 0.12em; font-weight: 600;
}

.plan-tier {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 6px;
}
.plan-name {
  font-size: 28px; font-weight: 600; letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.plan-desc {
  color: var(--fg-dim); font-size: 13.5px; line-height: 1.5;
  margin: 0 0 24px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 6px;
}
.plan-price .amt {
  font-family: var(--mono); font-size: 48px; font-weight: 500;
  letter-spacing: -0.04em; line-height: 1;
}
.plan-price .per { color: var(--fg-mute); font-size: 14px; font-family: var(--mono); }
.plan-price-sub {
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-mute); margin-bottom: 26px;
}
.plan .btn { width: 100%; justify-content: center; height: 44px; margin-bottom: 24px; }

.plan-feats {
  list-style: none; padding: 0; margin: 0 0 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--fg);
  line-height: 1.45;
}
.plan-feats li .chk {
  flex: 0 0 auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.plan-feats li .chk svg { width: 9px; height: 9px; }
.plan-feats li.muted { color: var(--fg-mute); }
.plan-feats li.muted .chk { background: transparent; color: var(--fg-faint); border: 1px solid var(--line-2); }

.plan-foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute);
  display: flex; justify-content: space-between;
}

/* FAQ */
.faq {
  margin-top: 80px;
}
.faq h2 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 500;
}
.faq-q .plus { color: var(--fg-mute); font-family: var(--mono); transition: transform .2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); color: var(--green); }
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--fg-dim); font-size: 14px; line-height: 1.6;
  transition: max-height .25s ease, margin-top .25s ease;
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 10px; }

/* =========================
   LANDING
   ========================= */
.landing { }

.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex; align-items: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(26,39,33,0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,39,33,0.4) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(76,29,149,0.38) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 50%, rgba(168,85,247,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: 100px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Globe */
.globe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin: 0 auto;
}
.globe-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
}
.globe-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.globe-labels {
  position: absolute; inset: 0;
  pointer-events: none;
}
.globe-label {
  position: absolute;
  top: 0; left: 0;
  display: flex; align-items: center; gap: 8px;
  transition: opacity .3s ease;
  transform-origin: 0 0;
  will-change: transform;
}
.globe-label.hide { opacity: 0; }
.globe-label.show { opacity: 1; }
.globe-label .gl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 auto;
  margin-top: 6px;
}
.globe-label .gl-card {
  background: rgba(8, 12, 10, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 96px;
  display: flex; flex-direction: column; gap: 1px;
}
.globe-label .gl-name {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.globe-label .gl-time {
  font-size: 11px; color: var(--fg-dim);
}
.globe-label .gl-status {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.globe-label .gl-open {
  color: var(--green); display: inline-flex; align-items: center; gap: 5px;
}
.globe-label .gl-open .p {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulseRing 1.6s ease-out infinite;
}
.globe-label .gl-closed { color: #6b5b8a; }

/* HERO v2 — Globe-centric */
.hero-v2 {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  padding: 48px 24px 0;
  position: relative;
  overflow: hidden;
}
.hero-headline {
  position: relative; z-index: 3;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-headline .hero-eyebrow { margin-bottom: 24px; }
.hero-title-xxl {
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  font-size: clamp(48px, 8vw, 108px);
  display: flex; flex-direction: column; gap: 2px;
  text-wrap: balance;
}
.hero-title-xxl .line-1 {
  color: #ffffff;
}
.hero-title-xxl .line-2 {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.045em;
}
.hero-sub-center {
  max-width: 640px;
  color: var(--fg-dim);
  font-size: 17px; line-height: 1.55;
  margin: 6px auto 28px;
}
.hero-stat-callout {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  background: rgba(245,158,11,0.06);
  border-left: 2px solid #F59E0B;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(245,158,11,0.75);
  text-align: left;
}
.hero-cta-center {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 16px;
}
/* Tier-1 (2026-06-01): product visual into the fold — desktop 2-col hero, single CTA.
   Mobile keeps the existing stacked/centered layout (.hero-grid is a plain block). */
.hero-grid { width: 100%; }
@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    min-height: calc(100vh - 170px);
  }
  .hero-grid .hero-headline {
    text-align: left;
    align-items: flex-start;
    max-width: none;
    margin: 0;
  }
  .hero-grid .hero-title-xxl { font-size: clamp(40px, 4.6vw, 78px); }
  .hero-grid .hero-sub-center { margin-left: 0; margin-right: 0; }
  .hero-grid .hero-stat-callout { margin-left: 0; }
  .hero-grid .hero-cta-center { justify-content: flex-start; }
  .hero-grid .hero-terminal-stage { margin: 0; max-width: 100%; }
}
/* Tier-1.5: compact LIVE bias cards in the MOBILE fold (desktop hidden — full terminal shown there) */
.hero-mcards { display: none; }
@media (max-width: 899px) {
  .hero-mcards { display: block; width: 100%; max-width: 440px; margin: 2px auto 18px; }
  .hero .hero-terminal-stage { display: none !important; }  /* mobile hero = title/info/button only; terminal is the desktop proof */
  .hero-mcards-label { font-size: 10px; letter-spacing: 0.14em; color: var(--bull); text-align: center; margin-bottom: 9px; }
  .hero-mcards-grid { display: flex; flex-direction: column; gap: 8px; }
  .hero-mcard {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09); border-radius: 9px;
  }
  .hero-mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .hero-mcard-driver { font-size: 11.5px; color: var(--fg-dim); line-height: 1.4; text-align: left; }
  .hero-mcard-sym { font-size: 15px; color: var(--fg); font-weight: 600; }
  .hero-mcard-right { display: flex; align-items: center; gap: 12px; }
  .hero-mcard-bias { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 5px; letter-spacing: 0.04em; }
  .hero-mcard-bias.bull { background: rgba(16,185,129,0.14); color: var(--bull); }
  .hero-mcard-bias.bear { background: rgba(239,68,68,0.14); color: var(--bear); }
  .hero-mcard-bias.neut { background: rgba(245,158,11,0.14); color: var(--neut); }
  .hero-mcard-score { font-size: 17px; color: var(--fg); min-width: 26px; text-align: right; }
  .hero-mcard-bias.gated { background: rgba(255,255,255,0.06); color: #6b7d74; letter-spacing: 3px; padding: 4px 10px; border-radius: 5px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
  .hero-mcard-score.gated { color: #6b7d74; letter-spacing: 2px; }
  .hero-mcards-cta {
    width: 100%; margin-top: 11px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 12px; background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.32); border-radius: 9px;
    color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .hero-mcards-cta .hl-amber { color: #F59E0B; }
  .hero-mcards-stage { position: relative; }
  .hero-mcards.locked .hero-mcards-grid { filter: blur(7px); opacity: 0.45; transition: filter .45s ease, opacity .45s ease; pointer-events: none; }
  .hero-mcards-lock {
    position: absolute; inset: 0; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: rgba(8,12,10,0.32); border: 1px solid rgba(16,185,129,0.32);
    border-radius: 9px; color: var(--fg); font-size: 14px; font-weight: 600;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .hero-mcards-lock .hl-amber { color: #F59E0B; }
}
.hero-cta-secondary {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-cta-link {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
  padding: 4px 8px;
}
.hero-cta-link:hover {
  color: rgba(16,185,129,0.95);
}
/* ── Discovery Call CTAs (2026-05-17) ────────────────────────────── */
.hero-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(245,158,11,0.06));
  border: 1px solid rgba(16,185,129,0.35);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
  box-shadow: 0 0 0 0 rgba(16,185,129,0);
}
.hero-cta-pill:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(245,158,11,0.10));
  border-color: rgba(16,185,129,0.65);
  box-shadow: 0 0 24px 0 rgba(16,185,129,0.18);
  transform: translateY(-1px);
}
.hero-cta-pill strong { font-weight: 600; color: rgba(16,185,129,1); }
.hero-cta-pill svg { width: 16px; height: 16px; }
.hero-cta-pill-ico { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
  .hero-cta-pill { font-size: 12px; padding: 9px 14px; gap: 8px; }
  .hero-cta-pill strong { display: block; }
}
/* TopBar Book-a-Call button */
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(16,185,129,0.35) !important;
  color: rgba(16,185,129,0.95) !important;
  background: rgba(16,185,129,0.06);
  transition: all 160ms ease;
}
.btn-call:hover {
  background: rgba(16,185,129,0.14);
  border-color: rgba(16,185,129,0.65) !important;
}
.btn-call svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .nav .btn-call,
  .topbar .btn-call:not(.mobile-menu .btn-call) {
    padding: 6px 10px;
    font-size: 12px;
  }
}
/* Auth-Page Call-Hint */
.auth-call-hint {
  margin-top: 20px;
}
.auth-call-hint-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 12px;
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.auth-call-hint-divider::before,
.auth-call-hint-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.auth-call-hint-divider span {
  padding: 0 12px;
}
.auth-call-hint-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(245,158,11,0.04));
  border: 1px solid rgba(16,185,129,0.30);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  transition: all 180ms ease;
}
.auth-call-hint-link strong { color: rgba(16,185,129,1); font-weight: 600; }
.auth-call-hint-link:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(245,158,11,0.08));
  border-color: rgba(16,185,129,0.60);
  transform: translateY(-1px);
}
.auth-call-hint-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }

.hero-globe-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero-globe-stage::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent 0%, #080c0a 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-globe-stage .globe-wrap {
  width: 70vw;
  max-width: 760px;
  min-width: 320px;
  aspect-ratio: 1 / 1;
  position: relative;
}

/* ── Hero product terminal (replaces globe — show the dashboard upfront) ── */
.hero-terminal-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-terminal-frame {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(168,85,247,0.45), 0 0 0 1px rgba(168,85,247,0.12);
}
.hero-cta-reassure {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

/* ── Trust bar — institutional-grade data sources ── */
.trust-bar {
  text-align: center;
  padding: 34px 20px 38px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.trust-bar-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.trust-bar-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 28px;
  margin-bottom: 16px;
}
.trust-bar-logos span {
  font-size: 15px;
  font-weight: 600;
  color: rgba(245,232,255,0.78);
  letter-spacing: 0.01em;
}
.trust-bar-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.trust-bar-origin {
  margin: 16px auto 0;
  display: inline-block;
  font-size: 12px;
  color: #c7d8d0;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 7px;
  background: rgba(16,185,129,0.06);
}
@media (max-width: 640px) {
  .hero-terminal-stage { max-width: 100%; }
  .trust-bar-logos { gap: 10px 18px; }
  .trust-bar-logos span { font-size: 13px; }
}

/* ── Email lead opt-in (free daily bias) ── */
.lead-optin { padding: 56px 20px; display: flex; justify-content: center; }
.lead-optin-inner {
  max-width: 580px; width: 100%; text-align: center;
  background: linear-gradient(180deg, rgba(16,185,129,0.06), rgba(8,12,10,0));
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 16px; padding: 44px 36px;
}
.lead-optin-eyebrow { font-size: 12px; letter-spacing: 0.14em; color: var(--green); margin-bottom: 16px; }
.lead-optin-title { font-size: 32px; font-weight: 700; color: var(--fg); margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.12; }
.lead-optin-title .hl-amber,
.lead-popup-title .hl-amber {
  font-style: italic; font-weight: 600;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead-optin-sub { font-size: 15px; color: var(--fg-dim); line-height: 1.55; margin: 0 auto 26px; max-width: 440px; }
.lead-optin-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.lead-optin-form input {
  flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 14px 16px; color: var(--fg); font-size: 15px; font-family: var(--sans);
}
.lead-optin-form input:focus { outline: none; border-color: var(--green-edge); }
.lead-optin-form .btn { white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.lead-optin-err { font-size: 13px; color: var(--bear); margin: 12px 0 0; }
.lead-optin-fine { font-size: 11px; color: var(--fg-mute); margin: 18px 0 0; letter-spacing: 0.04em; }
@media (max-width: 560px) {
  .lead-optin-form { flex-direction: column; }
  .lead-optin-inner { padding: 34px 22px; }
  .lead-optin-title { font-size: 25px; }
}

/* ── Lead popup (exit-intent / timed) ── */
.lead-popup-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: leadFadeIn 0.25s ease;
}
@keyframes leadFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lead-popup {
  position: relative; max-width: 460px; width: 100%;
  background: var(--bg-1); border: 1px solid rgba(16,185,129,0.25);
  border-radius: 18px; padding: 42px 34px 30px; text-align: center;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  animation: leadPopIn 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes leadPopIn { from { opacity:0; transform: translateY(12px) scale(0.97); } to { opacity:1; transform:none; } }
.lead-popup-close {
  position: absolute; top: 8px; right: 10px; font-size: 28px; line-height: 1;
  color: var(--fg-mute); background: none; border: none; cursor: pointer; padding: 0;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.lead-popup-close:hover { color: var(--fg); }
.lead-popup-title { font-size: 26px; font-weight: 700; color: var(--fg); margin: 14px 0 10px; letter-spacing: -0.02em; line-height: 1.15; }
.lead-popup-sub { font-size: 14px; color: var(--fg-dim); line-height: 1.5; margin: 0 auto 22px; max-width: 360px; }
@media (max-width: 560px) {
  .lead-popup { padding: 36px 22px 26px; }
  .lead-popup-title { font-size: 22px; }
}

/* ── Hero email opt-in (primary cold-traffic CTA) ───────────────────────── */
.hero-lead { max-width: 480px; margin: 0 auto; }
.hero-lead-label { font-size: 11px; letter-spacing: 0.14em; color: var(--green); margin: 0 0 10px; }
.hero-lead .lead-optin-form { margin: 0 auto 10px; }
.hero-lead-fine { font-size: 11px; color: var(--fg-mute); margin: 6px 0 0; letter-spacing: 0.03em; line-height: 1.5; }
.hero-lead-trust { font-size: 11px; color: rgba(199,216,208,0.6); margin: 8px 0 0; letter-spacing: 0.05em; }
.hero-lead-done { padding: 6px 0; }
.hero-lead-donetext { font-size: 15px; color: var(--fg-dim); line-height: 1.5; margin: 8px 0 0; }
.hero-lead-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 12px 0 6px; }
.hero-lead-badges span { font-size: 12px; color: var(--green); letter-spacing: 0.03em; white-space: nowrap; }
.hero-trial-link {
  background: none; border: none; color: var(--fg-dim); font-size: 14px; cursor: pointer;
  font-family: var(--sans); display: inline-flex; align-items: center; gap: 6px; padding: 10px;
}
.hero-trial-link:hover { color: var(--fg); }

/* ── What MacroFlow is / is not (anti-scam clarity) ─────────────────────── */
.is-isnt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; padding: 44px 20px; }
.is-isnt-col { background: var(--bg-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px 26px; }
.is-isnt-col.is-col { border-color: rgba(16,185,129,0.28); }
.is-isnt-head { font-size: 11px; letter-spacing: 0.12em; margin: 0 0 14px; }
.is-col .is-isnt-head { color: var(--green); }
.isnt-col .is-isnt-head { color: var(--fg-mute); }
.is-isnt-col ul { list-style: none; padding: 0; margin: 0; }
.is-isnt-col li { font-size: 14px; color: var(--fg-dim); line-height: 1.5; padding: 9px 0 9px 24px; position: relative; }
.is-col li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.isnt-col li::before { content: "✕"; position: absolute; left: 0; color: var(--fg-mute); font-weight: 700; }
@media (max-width: 640px) {
  .is-isnt { grid-template-columns: 1fr; padding: 32px 16px; }
}

/* Traders counter */
.traders-counter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(76, 29, 149, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 100px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.18);
}
.traders-counter .tc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseRing 1.6s ease-out infinite;
}
.traders-counter .tc-num {
  font-size: 14px; font-weight: 500;
  color: #f5e8ff;
  letter-spacing: 0.02em;
}
.traders-counter .tc-label {
  font-family: var(--sans); font-size: 13px;
  color: #c7a8ff;
  font-weight: 400;
}

/* Fixed-position city labels on globe */
.globe-city-labels {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 4;
}
.globe-city-label {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13, 10, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25), 0 10px 30px rgba(0,0,0,0.4);
  min-width: 148px;
}
.globe-city-label.london   { top: 12%;  left: 4%; }
.globe-city-label.newyork  { bottom: 14%; left: 4%; }
.globe-city-label.tokyo    { top: 40%; right: 4%; }
@media (max-width: 640px) {
  .globe-city-label { padding: 8px 10px; min-width: 112px; font-size: 11px; }
  .globe-city-label.london  { top: 4%; left: 0; }
  .globe-city-label.newyork { bottom: 4%; left: 0; }
  .globe-city-label.tokyo   { top: 42%; right: 0; }
}
.globe-city-label .gcl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px #a855f7, 0 0 24px rgba(168,85,247,0.6);
  flex: 0 0 auto;
  animation: gclPulse 2s ease-in-out infinite;
}
@keyframes gclPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}
.globe-city-label .gcl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.globe-city-label .gcl-name {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: #ffffff; letter-spacing: -0.005em;
}
.globe-city-label .gcl-time {
  font-family: var(--mono); font-size: 12px;
  color: #e0c4ff;
  letter-spacing: 0.02em;
}
.globe-city-label .gcl-status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em;
  margin-top: 2px;
}
.globe-city-label .gcl-open {
  color: #10b981; display: inline-flex; align-items: center; gap: 5px;
}
.globe-city-label .gcl-open .p {
  width: 5px; height: 5px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulseRing 1.6s ease-out infinite;
}
.globe-city-label .gcl-closed { color: #8b6bb0; }

/* Session strip */
.session-strip {
  position: relative; z-index: 3;
  width: 100%;
  margin-top: 8px;
  padding: 0 0 32px;
}
.session-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(168,85,247,0.25);
  border-bottom: 1px solid rgba(168,85,247,0.25);
  background: linear-gradient(180deg, rgba(76,29,149,0.08), rgba(13,10,26,0.4));
}
@media (max-width: 720px) { .session-strip-grid { grid-template-columns: 1fr; } }
.ss-item {
  padding: 22px 24px;
  border-right: 1px solid rgba(168,85,247,0.18);
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.ss-item:last-child { border-right: none; }
@media (max-width: 720px) {
  .ss-item { border-right: none; border-bottom: 1px solid rgba(168,85,247,0.18); }
  .ss-item:last-child { border-bottom: none; }
}
.ss-name {
  font-size: 11px; letter-spacing: 0.16em;
  color: #c7a8ff;
  text-transform: uppercase;
}
.ss-countdown {
  font-family: var(--mono); font-size: 30px; font-weight: 500;
  color: #f5e8ff;
  letter-spacing: 0.02em;
  line-height: 1;
}
.ss-countdown.open {
  display: inline-flex; align-items: center; gap: 10px;
  color: #10b981;
  font-size: 22px; letter-spacing: 0.12em;
  white-space: nowrap;
}
.ss-countdown .ss-sep {
  color: #7c3aed;
  margin: 0 2px;
  animation: blink 1s steps(2, start) infinite;
}
.ss-countdown .ss-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulseRing 1.6s ease-out infinite;
}
.ss-sub {
  font-size: 11px; color: #8b6bb0;
  letter-spacing: 0.02em;
}
.session-strip-foot {
  text-align: center;
  font-size: 10.5px; color: var(--fg-faint);
  padding: 14px 20px 0;
  letter-spacing: 0.04em;
}

.terminal-preview-wrap {
  max-width: 760px; margin: 0 auto;
}

/* Fade the landing-hero's old hero inner container rules */
.hero.hero-v2 .hero-inner { display: none; }

  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}
.hero-stage .globe-wrap {
  position: absolute; inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: drop-shadow(0 10px 40px rgba(168,85,247,0.18));
}
.hero-stage .terminal {
  position: relative;
  z-index: 2;
  width: 92%;
  margin-left: auto;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  backdrop-filter: blur(2px);
}
@media (max-width: 960px) {
  .hero-stage { min-height: 420px; }
  .hero-stage .terminal { width: 100%; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.hero-title .grad {
  background: linear-gradient(180deg, #10b981 0%, #0d5c3a 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 17px; color: var(--fg-dim);
  line-height: 1.55; max-width: 540px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 32px;
}
@media (max-width: 540px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; } }
.hero-stat .v {
  font-family: var(--mono); font-size: 22px; font-weight: 500;
  color: var(--fg); letter-spacing: -0.02em;
}
.hero-stat .l {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 2px;
}

/* Terminal mock */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(16,185,129,0.06);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}
.terminal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
}
.terminal-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-mute); margin-left: auto;
}
.terminal-body { padding: 14px 16px; }
.terminal-row {
  display: grid; grid-template-columns: 72px 1fr 60px 40px;
  gap: 10px; align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px;
}
.terminal-row:last-child { border-bottom: none; }
.terminal-row .tpair { color: var(--fg); }
.terminal-row .tbias {
  font-size: 10px; letter-spacing: 0.1em;
  padding: 2px 6px; border-radius: 3px;
  text-align: center;
}
.terminal-row .tbias.bull { color: var(--bull); background: var(--bull-dim); }
.terminal-row .tbias.bear { color: var(--bear); background: var(--bear-dim); }
.terminal-row .tbias.neut { color: #f5c24b; background: var(--neut-dim); }
.terminal-row .tbar {
  height: 3px; background: var(--line); position: relative; border-radius: 2px; overflow: hidden;
}
.terminal-row .tbar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--w, 50%);
  background: var(--c, var(--neut));
  animation: barFill 1.2s ease forwards; animation-delay: var(--d, 0s);
}
.terminal-row .tv { color: var(--fg-dim); text-align: right; }

/* Why section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  margin: 0 0 20px;
  max-width: 720px;
  text-wrap: balance;
}
.section-sub {
  color: var(--fg-dim); font-size: 16px;
  max-width: 640px; line-height: 1.55;
  margin: 0 0 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--bg-1);
  padding: 32px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s ease;
}
.why-card:hover { background: var(--bg-2); }
.why-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--green); letter-spacing: 0.12em;
}
.why-card h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0;
}
.why-card p {
  color: var(--fg-dim); font-size: 14.5px; line-height: 1.55;
  margin: 0;
}
.why-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg-2);
  color: var(--green);
}

/* Social proof */
.social {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.social-inner { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.social-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.social-badges {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
}
.avatars { display: flex; }
.avatars .av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--bg-1);
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  margin-left: -10px;
  font-family: var(--mono); font-size: 11px; color: #052014;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.avatars .av:first-child { margin-left: 0; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.test-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.test-quote {
  font-size: 15px; line-height: 1.55; color: var(--fg);
  font-weight: 400;
}
.test-quote::before { content: "\201C"; color: var(--green); margin-right: 2px; }
.test-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.test-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #0d5c3a, #10b981);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: #052014; font-weight: 600;
}
.test-name { font-size: 13.5px; font-weight: 500; }
.test-role { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }

/* How */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-1);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.step-n {
  font-family: var(--mono); font-size: 48px; font-weight: 500;
  color: var(--green-deep);
  letter-spacing: -0.04em; line-height: 1;
  opacity: 0.8;
}
.step h3 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.step p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; margin: 0; }

/* Final CTA */
.final-cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,0.2) 0%, transparent 70%),
    linear-gradient(180deg, #0a3a27 0%, #0d5c3a 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--green-edge);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
}
.final-inner {
  position: relative; max-width: 900px; margin: 0 auto;
  padding: 100px 24px; text-align: center;
}
.final-inner h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  margin: 0 0 20px; color: #f0fbf5;
}
.final-inner p {
  color: #c7ece0;
  font-size: 17px; line-height: 1.55;
  max-width: 560px; margin: 0 auto 32px;
}
.final-inner .btn-primary {
  background: #f0fbf5; color: #052014; border-color: #f0fbf5;
}
.final-inner .btn-primary:hover { background: #fff; border-color: #fff; }
.final-inner .btn-ghost-inv {
  background: transparent; color: #f0fbf5; border-color: rgba(255,255,255,0.2);
}
.final-inner .btn-ghost-inv:hover { background: rgba(255,255,255,0.08); }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  color: var(--fg-mute);
  font-family: var(--mono); font-size: 11.5px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer a:hover { color: var(--fg); }
.footer-links { display: flex; gap: 20px; }

/* ============================================================ */
/* Bloomberg-style live terminal (landing)                       */
/* ============================================================ */

.terminal-section {
  position: relative;
}
.terminal-preview-wide {
  max-width: 1080px;
}

/* Scrolling ticker tape ABOVE the terminal */
.ticker-tape {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 24px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #050308 0%, #0a0612 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  overflow: hidden;
  height: 38px;
  display: flex; align-items: center;
  box-shadow:
    inset 0 0 30px rgba(76, 29, 149, 0.18),
    0 0 24px rgba(168, 85, 247, 0.08);
}
.ticker-tape::before,
.ticker-tape::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.ticker-tape::before { left: 0;  background: linear-gradient(90deg, #050308, transparent); }
.ticker-tape::after  { right: 0; background: linear-gradient(270deg, #050308, transparent); }
.ticker-tape-track {
  display: inline-flex; align-items: center;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  will-change: transform;
}
.ticker-tape:hover .ticker-tape-track { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
.ticker-tape .tt-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ticker-tape .tt-pair  { color: #f5e8ff; font-weight: 500; }
.ticker-tape .tt-bias.tt-bull  { color: var(--bull); }
.ticker-tape .tt-bias.tt-bear  { color: var(--bear); }
.ticker-tape .tt-bias.tt-neut  { color: #f5c24b; }
.ticker-tape .tt-val   { color: #c7a8ff; }
.ticker-tape .tt-arrow.tt-bull { color: var(--bull); }
.ticker-tape .tt-arrow.tt-bear { color: var(--bear); }
.ticker-tape .tt-arrow.tt-neut { color: #f5c24b; }
.ticker-tape .tt-sep   { color: rgba(168, 85, 247, 0.4); margin-left: 6px; }

/* Expanded terminal */
.terminal.terminal-x {
  position: relative;
  background:
    linear-gradient(180deg, rgba(13, 10, 26, 0.6) 0%, rgba(8, 5, 16, 0.85) 100%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76, 29, 149, 0.18) 0%, transparent 70%),
    #050308;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.18),
    0 0 80px rgba(76, 29, 149, 0.12),
    0 20px 50px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(168, 85, 247, 0.12);
}
.terminal-x-glow {
  position: absolute; inset: -1px;
  border-radius: 10px;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(168, 85, 247, 0.08), transparent 70%);
}
.terminal-x-scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.terminal-x-scanlines::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.10), transparent);
  animation: scanlineSweep 7s linear infinite;
}
@keyframes scanlineSweep {
  0%   { transform: translateY(-60px); }
  100% { transform: translateY(800px); }
}

.terminal-x-head {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(180deg, rgba(76, 29, 149, 0.18) 0%, rgba(13, 10, 26, 0.4) 100%);
}
.terminal-x-head .terminal-dots { display: flex; gap: 7px; }
.terminal-x-head .terminal-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}
.terminal-x-head .terminal-dots .d-red { background: #ff5f57 !important; color: #ff5f57; }
.terminal-x-head .terminal-dots .d-yel { background: #febc2e !important; color: #febc2e; }
.terminal-x-head .terminal-dots .d-grn { background: #28c940 !important; color: #28c940; }
.terminal-x-title {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: #c7a8ff;
  letter-spacing: 0.04em;
}
.terminal-x-title .hl { color: #f5e8ff; font-weight: 600; }
.terminal-x-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  color: rgba(199, 168, 255, 0.7);
  letter-spacing: 0.02em;
}
.terminal-x-meta .hl { color: #f5e8ff; }
.terminal-x-meta .tx-sep { color: rgba(168, 85, 247, 0.45); }
.terminal-x-meta .tx-refresh .hl::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bull);
  box-shadow: 0 0 6px var(--bull);
  margin-right: 5px;
  vertical-align: middle;
  animation: pulseRing 1.6s ease-out infinite;
}
@media (max-width: 720px) {
  .terminal-x-meta { display: none; }
  .terminal-x-title { text-align: left; }
}

.terminal-x-body {
  position: relative;
  z-index: 2;
  padding: 8px 0;
  /* Fixed height so category rotation (7/7/5 rows) never shifts the page below it.
     Sized just above the tallest (7-row) category so smaller ones pad out, no jump. */
  min-height: 600px;
}
.terminal-x-row {
  display: grid;
  grid-template-columns: 84px 1fr 60px 38px;
  grid-template-rows: auto auto;
  grid-column-gap: 12px;
  grid-row-gap: 4px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.08);
  font-size: 12px;
  position: relative;
  transition: background .25s ease;
}
.terminal-x-row:last-child { border-bottom: none; }
.terminal-x-row.active {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.07), transparent 70%);
}
.terminal-x-row.active::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--c, var(--neut));
  box-shadow: 0 0 8px var(--c, var(--neut));
}
.tx-pair {
  font-size: 13px; color: #f5e8ff; font-weight: 500;
  letter-spacing: -0.005em;
  grid-column: 1; grid-row: 1;
}
.tx-bar {
  height: 4px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  grid-column: 2; grid-row: 1;
}
.tx-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--c, var(--neut));
  box-shadow: 0 0 6px var(--c, var(--neut));
  animation: barFill 1.1s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
.tx-bias {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid transparent;
  grid-column: 3; grid-row: 1;
  width: 60px;
  justify-self: end;
}
.tx-bias.tx-bull { color: var(--bull); background: var(--bull-dim); border-color: var(--bull-edge); }
.tx-bias.tx-bear { color: var(--bear); background: var(--bear-dim); border-color: var(--bear-edge); }
.tx-bias.tx-neut { color: #f5c24b; background: var(--neut-dim); border-color: var(--neut-edge); }
.tx-val {
  font-size: 12px; color: #c7a8ff; text-align: right;
  grid-column: 4; grid-row: 1;
}
.tx-rationale-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-left: 4px;
  font-size: 11.5px;
  color: rgba(199, 168, 255, 0.55);
  font-family: var(--mono);
  line-height: 1.45;
  /* Fixed 2-line height: the typing effect can't shift rows below, and rows stay equal height */
  height: 34px;
  overflow: hidden;
  letter-spacing: 0.005em;
}
.terminal-x-row.active .tx-rationale-wrap {
  color: rgba(245, 232, 255, 0.92);
}
.t-rationale { word-break: break-word; }
.t-caret {
  display: inline-block;
  width: 7px; height: 12px;
  background: #a855f7;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caretBlink 1s steps(2, start) infinite;
  box-shadow: 0 0 6px #a855f7;
}
.t-caret.done { opacity: 0.6; }
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (max-width: 640px) {
  .terminal-x-row {
    grid-template-columns: 70px 1fr 56px 34px;
    padding: 9px 12px;
    grid-column-gap: 8px;
  }
  .tx-pair { font-size: 12px; }
  .tx-rationale-wrap { font-size: 10.5px; height: 30px; }
  .terminal-x-body { min-height: 545px; }
}

/* hide the legacy terminal mock when the section is using the new one */
.terminal-section .terminal:not(.terminal-x) { display: none; }

/* ============================================================ */
/* Dashboard extras: Economic Calendar, Heatmap, Sparkline,     */
/* Alert Bell, hover tooltips                                    */
/* ============================================================ */

/* Economic Calendar Strip */
.econ-strip {
  display: flex; align-items: stretch;
  width: 100%;
  background: linear-gradient(180deg, rgba(13, 10, 26, 0.6) 0%, rgba(8, 5, 16, 0.85) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.econ-strip-label {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c7a8ff;
  background: rgba(76, 29, 149, 0.22);
  border-right: 1px solid rgba(168, 85, 247, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.econ-strip-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseRing 1.6s ease-out infinite;
}
.econ-strip-track {
  display: flex; align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.econ-strip-track::-webkit-scrollbar { display: none; }
.econ-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  font-size: 12px;
  white-space: nowrap;
  border-right: 1px solid rgba(168, 85, 247, 0.10);
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: background .18s ease;
}
.econ-item:last-child { border-right: none; }
.econ-item:hover { background: rgba(168, 85, 247, 0.06); color: var(--fg); }
.econ-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.econ-dot.impact-high {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.econ-dot.impact-medium {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}
.econ-time { color: #f5e8ff; font-size: 12px; font-weight: 500; }
.econ-flag { font-size: 14px; line-height: 1; }
.econ-ccy { color: var(--fg); font-size: 11.5px; font-weight: 600; }
.econ-sep { color: var(--fg-faint); }
.econ-name { color: var(--fg-dim); }

@media (max-width: 640px) {
  .econ-strip-label { padding: 8px 12px; }
  .econ-item { padding: 8px 12px; gap: 6px; }
  .econ-name { display: none; }
}

/* ============================================================ */
/* Hover tooltips (data-tip)                                     */
/* ============================================================ */
.has-tip { position: relative; cursor: help; }
.has-tip::before,
.has-tip::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 50;
}
.has-tip::before {
  content: attr(data-tip);
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: #0a0612;
  color: #f5e8ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 6px;
  padding: 8px 11px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 18px rgba(168, 85, 247, 0.18);
}
.has-tip::after {
  content: "";
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translate(-50%, 4px);
  border: 5px solid transparent;
  border-top-color: rgba(168, 85, 247, 0.45);
  width: 0; height: 0;
}
.has-tip:hover::before,
.has-tip:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.has-tip.tip-left::before {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}
.has-tip.tip-left:hover::before { transform: translate(0, 0); }
.has-tip.tip-left::after {
  left: auto;
  right: 8px;
  transform: translate(0, 4px);
}
.has-tip.tip-left:hover::after { transform: translate(0, 0); }

/* ============================================================ */
/* Pair card additions                                           */
/* ============================================================ */
.pair-card { position: relative; }

/* Sparkline */
.sparkline {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.sparkline-label {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sparkline-bars {
  display: flex; align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.spark-bar {
  flex: 1;
  min-height: 3px;
  border-radius: 1.5px;
  opacity: 0;
  animation: sparkRise .5s cubic-bezier(.2,.8,.2,1) forwards;
  transform-origin: bottom;
}
@keyframes sparkRise {
  from { opacity: 0; transform: scaleY(0.2); }
  to   { opacity: 0.85; transform: scaleY(1); }
}
.spark-bar:hover { opacity: 1; }

/* Alert bell */
.alert-bell-wrap {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
}
.alert-bell-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-faint);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
}
.alert-bell-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c7a8ff;
}
.alert-bell-wrap.open .alert-bell-btn {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
  color: #c7a8ff;
}
.alert-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 240px;
  background: #0a0612;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 20px rgba(168, 85, 247, 0.2);
  z-index: 60;
  animation: popIn .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.alert-pop-title {
  font-size: 9.5px; letter-spacing: 0.16em;
  color: #c7a8ff;
  margin-bottom: 8px;
}
.alert-pop-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.alert-pop-body .hl { color: #f5e8ff; font-weight: 600; }
.alert-pop-cta {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 12px;
  padding: 7px 12px;
}

/* Move bias badge a bit so it doesn't collide with bell */
.pair-card .pair-head .badge { margin-right: 30px; }

/* ============================================================ */
/* Currency Strength Heatmap                                     */
/* ============================================================ */
.ccy-heatmap-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ccy-heatmap-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.ccy-heatmap-head .section-eyebrow {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--fg);
  font-weight: 500;
  text-transform: none;
  font-family: var(--sans);
}
.ccy-heatmap-legend {
  display: flex; gap: 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}
.ccy-heatmap-legend .leg-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.ccy-heatmap-legend .leg-swatch {
  width: 14px; height: 8px; border-radius: 2px;
  display: inline-block;
}
.ccy-heatmap-legend .leg-strong {
  background: rgba(16, 185, 129, 0.5);
  border: 1px solid rgba(16, 185, 129, 0.8);
}
.ccy-heatmap-legend .leg-weak {
  background: rgba(239, 68, 68, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.7);
}
.ccy-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
@media (max-width: 900px) { .ccy-heatmap-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .ccy-heatmap-grid { grid-template-columns: repeat(2, 1fr); } }
/* Currency-strength gating (2026-06-02): blur + unlock overlay for non-paid users */
.ccy-heatmap-stage { position: relative; }
.ccy-heatmap-stage .ccy-heatmap-grid { transition: filter .5s ease, opacity .5s ease; }
.ccy-heatmap-stage.locked .ccy-heatmap-grid { filter: blur(8px); opacity: 0.5; pointer-events: none; user-select: none; }
.ccy-heatmap-lock {
  position: absolute; inset: 0; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: rgba(8,12,10,0.30); border: 1px solid rgba(16,185,129,0.3); border-radius: 10px;
  color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer; padding: 12px;
  -webkit-tap-highlight-color: transparent;
}
.ccy-heatmap-lock .hl-amber { color: #F59E0B; }

.ccy-tile {
  position: relative;
  border: 1px solid;
  border-radius: 8px;
  padding: 12px 10px 10px;
  display: flex; flex-direction: column;
  gap: 4px;
  min-height: 110px;
  transition: transform .2s ease, box-shadow .2s ease;
  opacity: 0;
  animation: ccyTileIn .35s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--idx, 0) * 0.04s);
}
@keyframes ccyTileIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.ccy-tile:hover {
  transform: translateY(-2px);
}
.ccy-tile-head {
  display: flex; align-items: center; justify-content: space-between;
}
.ccy-tile-flag {
  font-size: 18px;
  line-height: 1;
}
.ccy-tile-rank {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}
.ccy-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: #f5e8ff;
  letter-spacing: 0.02em;
}
.ccy-tile-score {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: auto;
}
.ccy-tile-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.ccy-tile-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 6px currentColor;
}
.ccy-heatmap-foot {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-align: center;
}

/* fade in page */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }


/* ============================================================ */
/* Shimmer loading skeleton for pair cards                       */
/* ============================================================ */
.pair-card-skeleton {
  pointer-events: none;
  cursor: default;
}
.pair-card-skeleton .sk {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 0%,
    rgba(255,255,255,0.06) 40%,
    rgba(168,85,247,0.10) 50%,
    rgba(255,255,255,0.06) 60%,
    rgba(255,255,255,0.02) 100%
  );
  background-size: 200% 100%;
  animation: shimmerSlide 1.3s ease-in-out infinite;
  border-radius: 3px;
}
.pair-card-skeleton .sk-pair   { width: 58%; height: 14px; margin-bottom: 8px; }
.pair-card-skeleton .sk-price  { width: 42%; height: 10px; }
.pair-card-skeleton .sk-badge  { width: 62px; height: 22px; border-radius: 4px; }
.pair-card-skeleton .sk-label  { width: 52px; height: 10px; }
.pair-card-skeleton .sk-bar    { flex: 1; height: 4px; border-radius: 2px; }
.pair-card-skeleton .sk-line   { width: 100%; height: 10px; margin-top: auto; }
.pair-card-skeleton .sk-line.short { width: 72%; }
@keyframes shimmerSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================ */
/* Testimonial flag                                              */
/* ============================================================ */
.test-who { display: flex; flex-direction: column; gap: 2px; }
.test-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
}
.test-flag {
  font-size: 15px;
  line-height: 1;
  filter: saturate(1.1);
}
.test-quote-mark {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid var(--green-edge);
  border-radius: 6px;
}
.test-card {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.test-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-edge);
  box-shadow: 0 10px 30px -14px rgba(16,185,129,0.25);
}

/* ============================================================ */
/* Floating chat bubble                                          */
/* ============================================================ */
.chat-bubble-root {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 400;
  font-family: var(--sans);
}
.chat-bubble-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(168, 85, 247, 0.5),
    0 10px 30px -10px rgba(168, 85, 247, 0.6),
    0 0 24px rgba(76, 29, 149, 0.4);
  animation: chatGlow 2.4s ease-in-out infinite;
  transition: transform .2s ease;
  position: relative;
}
.chat-bubble-btn:hover { transform: scale(1.08); }
.chat-bubble-btn:active { transform: scale(0.96); }
.chat-bubble-btn svg { width: 24px; height: 24px; }
.chat-bubble-btn .chat-indicator {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #10b981;
  border: 2px solid #080c0a;
  box-shadow: 0 0 8px #10b981;
}
@keyframes chatGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5), 0 10px 30px -10px rgba(168, 85, 247, 0.6), 0 0 24px rgba(76, 29, 149, 0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0), 0 10px 30px -10px rgba(168, 85, 247, 0.7), 0 0 34px rgba(76, 29, 149, 0.55); }
}

.chat-tooltip {
  position: absolute;
  bottom: 50%; right: calc(100% + 14px);
  transform: translateY(50%);
  background: rgba(13, 10, 26, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #f5e8ff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
  font-family: var(--sans);
}
.chat-tooltip::after {
  content: "";
  position: absolute;
  top: 50%; left: 100%;
  width: 0; height: 0;
  border: 6px solid transparent;
  border-left-color: rgba(13, 10, 26, 0.95);
  transform: translateY(-50%);
}
.chat-bubble-root:hover .chat-tooltip,
.chat-bubble-btn:focus-visible + .chat-tooltip {
  opacity: 1;
  transform: translateY(50%) translateX(-2px);
}

/* Chat panel */
.chat-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: #0d0a1a;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7), 0 0 40px rgba(76, 29, 149, 0.25);
  display: flex; flex-direction: column;
  animation: chatSlideUp .22s cubic-bezier(.2,.8,.2,1) both;
  font-family: var(--sans);
}
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-panel-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.chat-panel-head-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 0 12px rgba(168,85,247,0.4);
}
.chat-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-head-name { font-size: 13.5px; font-weight: 600; color: #ffffff; }
.chat-head-status {
  font-family: var(--mono); font-size: 10.5px; color: #10b981;
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: 0.1em;
}
.chat-head-status .p {
  width: 6px; height: 6px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseRing 1.6s ease-out infinite;
}
.chat-close {
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c7a8ff;
  width: 28px; height: 28px; border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.chat-close:hover { background: rgba(168, 85, 247, 0.15); color: #ffffff; }
.chat-close svg { width: 14px; height: 14px; }

.chat-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 280px; overflow-y: auto;
  background: #0d0a1a;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 12px;
  font-size: 13px; line-height: 1.45;
  border-radius: 12px;
  animation: chatMsgIn .25s cubic-bezier(.2,.8,.2,1) both;
}
.chat-msg.agent {
  background: rgba(76, 29, 149, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #f5e8ff;
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: #10b981;
  color: #052014;
  border-top-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.chat-typing {
  display: inline-flex; gap: 3px; align-items: center;
  padding: 12px 14px;
  background: rgba(76, 29, 149, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #c7a8ff;
  animation: chatType 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatType {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40%           { opacity: 1; transform: translateY(-3px); }
}
.chat-form {
  display: flex; gap: 6px;
  padding: 10px 10px 10px 12px;
  border-top: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(13, 10, 26, 0.6);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #f5e8ff;
  font-family: var(--sans); font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.chat-input::placeholder { color: rgba(199, 168, 255, 0.5); }
.chat-input:focus { border-color: rgba(168, 85, 247, 0.6); background: rgba(255,255,255,0.05); }
.chat-send {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, opacity .15s ease;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-send svg { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .chat-bubble-root { bottom: 16px; right: 16px; }
  .chat-bubble-btn { width: 52px; height: 52px; }
  .chat-panel { width: calc(100vw - 32px); }
  .chat-tooltip { display: none; }
}

/* ============================================================ */
/* Mobile nav — hamburger                                        */
/* ============================================================ */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 36px; height: 36px; border-radius: 6px;
  align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger svg { width: 18px; height: 18px; }
.nav-hamburger:hover { background: var(--bg-1); border-color: var(--green-edge); }

.mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 90;
  animation: mobileMenuIn .2s ease both;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.mobile-menu .nav-btn {
  justify-content: flex-start;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 6px;
  width: 100%;
  text-align: left;
}
.mobile-menu .mobile-menu-cta {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu .mobile-menu-cta .btn,
.mobile-menu .mobile-menu-cta .btn-call {
  flex: none; width: 100%; box-sizing: border-box; justify-content: center;
}
.mobile-menu .mobile-menu-user { width: 100%; box-sizing: border-box; }

@media (max-width: 780px) {
  .topbar .nav { display: none; }
  .topbar .spacer { display: none; }
  .topbar .clock,
  .topbar .live-pill { display: none; }
  .topbar .btn-ghost { display: none; }
  .nav-hamburger { display: inline-flex; }
  .topbar { gap: 10px; padding: 0 14px; }
  .brand-name { font-size: 14px; }
}

/* ============================================================ */
/* Mobile: stack pair grid, plans, hero                          */
/* ============================================================ */
@media (max-width: 640px) {
  .pair-grid { grid-template-columns: 1fr !important; }
  .plans { grid-template-columns: 1fr; }
  .hero-title-xxl { font-size: clamp(38px, 11vw, 62px); }
  .hero-v2 { padding: 28px 14px 0; }
  .hero-sub-center { font-size: 15px; }
  .hero-cta-center { width: 100%; }
  .hero-cta-center .btn { flex: 1; justify-content: center; min-width: 0; }
  .section { padding: 60px 16px; }
  .section-title { font-size: 28px; }
  .final-inner { padding: 0 16px; }
  .final-inner h2 { font-size: 34px; }
  .social-inner { padding: 60px 16px; }
  .social-head { flex-direction: column; align-items: flex-start; }
  .hero-globe-stage .globe-wrap { width: 90vw; }
  .dash { padding: 20px 14px 40px; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-title { font-size: 20px; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============================================================
   ECONOMIC CALENDAR PAGE
   ============================================================ */

.page-calendar {
  padding-bottom: 80px;
  position: relative;
}

/* ---------- Header ---------- */
.cal-header-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px 20px;
}
@media (max-width: 720px) {
  .cal-header-section { padding: 22px 18px 16px; }
}

.cal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.cal-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: biasPulse 2.4s ease-in-out infinite;
}

.cal-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0 0 6px;
}
.cal-subtitle {
  color: var(--fg-dim);
  font-size: 15px;
  margin: 0;
}
@media (max-width: 540px) { .cal-title { font-size: 30px; } }

/* ---------- Countdown widget ---------- */
.cal-countdown {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(38, 18, 70, 0.55), rgba(20, 10, 38, 0.65));
  border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: 10px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 20%, transparent),
              0 12px 32px -16px color-mix(in oklab, var(--accent) 70%, transparent);
  flex-shrink: 0;
}
.cal-countdown-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444, 0 0 18px #ef444466;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.cal-countdown-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--accent) 80%, white);
}
.cal-countdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.cal-countdown-sep { color: var(--fg-mute); }
.cal-countdown-time {
  font-size: 16px; font-weight: 500;
  color: #f5e8ff;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .cal-countdown { width: 100%; padding: 10px 12px; flex-wrap: wrap; }
  .cal-countdown-name { font-size: 12px; }
}

/* ---------- Impact summary ---------- */
.cal-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
.cal-summary-counts {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.cal-summary-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-dim);
}
.cal-summary-num {
  font-size: 18px; font-weight: 500;
  color: var(--fg);
  min-width: 18px; text-align: right;
}
.cal-summary-sep { color: var(--line-2); font-family: var(--mono); }
.cal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.cal-dot.impact-high { background: #ef4444; box-shadow: 0 0 6px #ef4444aa; }
.cal-dot.impact-medium { background: #f59e0b; box-shadow: 0 0 6px #f59e0baa; }
.cal-dot.impact-low { background: #fbbf24; box-shadow: 0 0 6px #fbbf2477; }

.cal-summary-warn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  color: #fbbf24;
  font-family: var(--mono); font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cal-summary-warn:hover { background: rgba(245, 158, 11, 0.15); transform: translateY(-1px); }
.cal-summary-warn strong { color: #fcd34d; }
.cal-warn-ico { font-size: 14px; }

/* ---------- Filters ---------- */
.cal-filters {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.cal-filter-group {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.cal-filter-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  width: 84px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cal-filter-group { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cal-filter-label { width: auto; }
}

.cal-toggle-row {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.cal-toggle {
  padding: 7px 14px;
  font-family: var(--mono); font-size: 11.5px;
  background: transparent;
  border: none;
  color: var(--fg-dim);
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cal-toggle:hover { color: var(--fg); }
.cal-toggle.active {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 22%, transparent), color-mix(in oklab, var(--accent) 12%, transparent));
  color: #f5e8ff;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent);
}

.cal-pill-row {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
}
.cal-ccy-pill, .cal-impact-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
.cal-ccy-pill:hover, .cal-impact-pill:hover { border-color: var(--line-2); color: var(--fg-dim); }
.cal-ccy-pill.active {
  color: var(--fg);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-2));
}
.cal-ccy-pill:not(.active) { opacity: 0.55; text-decoration: line-through; text-decoration-color: var(--fg-mute); }
.cal-impact-pill.active {
  color: var(--fg);
  border-color: var(--line-2);
  background: var(--bg-3);
}
.cal-impact-pill:not(.active) { opacity: 0.5; }

/* Currency-coded color tints for ccy pills */
.ccy-usd { --ccy-color: #34d399; }
.ccy-eur { --ccy-color: #60a5fa; }
.ccy-gbp { --ccy-color: #c084fc; }
.ccy-jpy { --ccy-color: #f87171; }
.ccy-aud { --ccy-color: #fbbf24; }
.ccy-cad { --ccy-color: #fb923c; }
.ccy-chf { --ccy-color: #f9a8d4; }
.ccy-nzd { --ccy-color: #38bdf8; }
.ccy-xau { --ccy-color: #fcd34d; }

.cal-ccy-pill.active { color: var(--ccy-color); border-color: color-mix(in oklab, var(--ccy-color) 50%, transparent); background: color-mix(in oklab, var(--ccy-color) 12%, var(--bg-2)); }

.cal-tz {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.cal-tz strong { color: var(--accent); font-weight: 500; }

/* ---------- Table ---------- */
.cal-table-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .cal-table-section { padding: 0 12px; } }

.cal-table-wrap {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  position: relative;
}

.cal-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}
.cal-table thead th {
  text-align: left;
  padding: 12px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cal-th-time { width: 72px; }
.cal-th-ccy { width: 60px; }
.cal-th-flag { width: 32px; }
.cal-th-name { width: auto; }
.cal-th-impact { width: 130px; }
.cal-th-prev, .cal-th-fcst, .cal-th-actual { width: 80px; text-align: right !important; }

/* Day header row */
.cal-day-header td {
  padding: 14px 16px 8px;
  background: linear-gradient(90deg, rgba(60, 30, 100, 0.18) 0%, transparent 60%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cal-day-bar {
  display: inline-block;
  width: 3px; height: 12px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  box-shadow: 0 0 8px var(--accent);
}
.cal-day-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #e0c4ff;
}
.cal-day-count {
  margin-left: 12px;
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}

/* Now indicator */
.cal-now-row td {
  padding: 0;
  position: relative;
  height: 22px;
}
.cal-now-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981 8%, #34d399 50%, #10b981 92%, transparent);
  box-shadow: 0 0 12px #10b981, 0 0 24px #10b98166;
  animation: nowPulse 2.4s ease-in-out infinite;
}
@keyframes nowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.cal-now-label {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #052014;
  background: #10b981;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 0 12px #10b98180;
  z-index: 1;
}

/* Data rows */
.cal-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, opacity .2s ease;
  outline: none;
}
.cal-row:hover { background: var(--bg-2); }
.cal-row:focus-visible { background: var(--bg-2); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 60%, transparent); }
.cal-row td {
  padding: 12px 12px;
  vertical-align: middle;
  border-bottom: 1px solid transparent;
}
.cal-row.passed { opacity: 0.55; }
.cal-row.upcoming {
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 30%);
  border-left: 3px solid var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 16px -4px color-mix(in oklab, var(--accent) 50%, transparent);
}
.cal-row.upcoming td:first-child { padding-left: 9px; }
.cal-row.expanded {
  background: var(--bg-2);
  border-bottom-color: transparent;
}
.cal-row.flash {
  animation: rowFlash 1.6s ease-out;
}
@keyframes rowFlash {
  0% { background: color-mix(in oklab, var(--accent) 35%, transparent); }
  100% { background: var(--bg-2); }
}

.cal-cell-time {
  color: var(--fg);
  font-size: 13px;
  position: relative;
  white-space: nowrap;
}
.cal-pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  margin-right: 6px;
  animation: pulseDot 1.4s ease-in-out infinite;
  vertical-align: middle;
}

.ccy-pill {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 4px;
  color: var(--ccy-color, var(--fg));
  background: color-mix(in oklab, var(--ccy-color, white) 14%, var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--ccy-color, white) 35%, transparent);
}

.cal-cell-flag { font-size: 18px; line-height: 1; }
.cal-cell-name {
  color: var(--fg);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.cal-name { display: inline; }
.cal-chev {
  display: inline-block;
  margin-left: 8px;
  color: var(--fg-mute);
  font-size: 11px;
  transition: transform .2s ease, color .2s ease;
}
.cal-row:hover .cal-chev { color: var(--accent); }

.cal-cell-prev { color: var(--fg-mute); text-align: right; }
.cal-cell-fcst { color: var(--fg); text-align: right; }
.cal-cell-actual { text-align: right; font-weight: 500; }
.cal-cell-actual.actual-pending { color: var(--fg-mute); }
.cal-cell-actual.actual-better { color: var(--bull); }
.cal-cell-actual.actual-worse { color: var(--bear); }
.cal-cell-actual.actual-flat { color: var(--fg); }

/* Impact bars */
.impact-bars {
  display: inline-flex; align-items: center; gap: 8px;
}
.impact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.impact-bars.impact-high .impact-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444aa; }
.impact-bars.impact-medium .impact-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0baa; }
.impact-bars.impact-low .impact-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf2466; }
.impact-bar-group { display: inline-flex; gap: 2px; align-items: flex-end; }
.impact-bar {
  width: 3px; height: 10px;
  background: var(--line-2);
  border-radius: 1px;
}
.impact-bar.on { }
.impact-bars.impact-high .impact-bar.on { background: #ef4444; }
.impact-bars.impact-medium .impact-bar.on { background: #f59e0b; }
.impact-bars.impact-low .impact-bar.on { background: #fbbf24; }
.impact-bar:nth-child(1) { height: 6px; }
.impact-bar:nth-child(2) { height: 10px; }
.impact-bar:nth-child(3) { height: 14px; }
.impact-label {
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}
.impact-bars.impact-high .impact-label { color: #fca5a5; }
.impact-bars.impact-medium .impact-label { color: #fbbf24; }

/* Expand row */
.cal-row-expand {
  background: var(--bg-2);
}
.cal-row-expand td { padding: 0; border-bottom: 1px solid var(--line); }
.cal-expand-inner {
  padding: 4px 18px 18px 60px;
  animation: expandIn .25s ease;
  border-left: 3px solid var(--accent);
  margin-left: 0;
}
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cal-expand-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 14px;
  max-width: 760px;
}
.cal-expand-pairs {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.cal-expand-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.cal-pair-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.cal-pair-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono); font-size: 11px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
}
.cal-pair-tag:hover {
  background: color-mix(in oklab, var(--accent) 18%, var(--bg-3));
  border-color: var(--accent);
  color: #f5e8ff;
  transform: translateX(2px);
}
.cal-pair-tag-arrow { color: var(--accent); font-size: 12px; }

.cal-empty {
  padding: 60px 20px !important;
  text-align: center;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 720px) {
  .cal-table thead th { top: 0; }
  .cal-expand-inner { padding-left: 18px; }
  .cal-cell-name { font-size: 12.5px; }
  .cal-table { font-size: 12px; }
  .cal-row td { padding: 10px 8px; }
}


/* Pair-card flash highlight (when navigating from calendar pair-tag) */
.pair-card-flash {
  animation: pairFlash 2.2s ease-out;
}
@keyframes pairFlash {
  0%   { box-shadow: 0 0 0 2px var(--accent), 0 0 32px color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 transparent; }
}


/* ============================================================
   AUTH PAGE (Sign in / Create account)
   ============================================================ */

.page-auth {
  min-height: calc(100vh - 60px);
  display: flex;
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(120, 60, 200, 0.10) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  align-items: stretch;
}
@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }
}

/* ---------- Side panel ---------- */
.auth-side {
  padding: 48px 40px 40px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
@media (max-width: 920px) {
  .auth-side {
    padding: 24px 8px 8px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.auth-side-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 28px;
}
.auth-side-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: biasPulse 2.4s ease-in-out infinite;
}
.auth-side-title {
  font-size: 38px; line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 14px;
}
@media (max-width: 920px) { .auth-side-title { font-size: 26px; } }
.auth-side-title .accent { color: var(--accent); }
.auth-side-sub {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 360px;
}

.auth-trust {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
.auth-trust-row {
  display: flex; align-items: baseline; gap: 12px;
}
.auth-trust-num {
  font-size: 16px; font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  min-width: 80px;
}
.auth-trust-stars {
  color: #fbbf24;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.auth-trust-label {
  color: var(--fg-mute);
  font-size: 12.5px;
  font-family: var(--mono);
}

.auth-bullets {
  display: flex; flex-direction: column; gap: 8px;
}
.auth-bullet {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.auth-bullet-ico { color: var(--accent); flex-shrink: 0; }

/* ---------- Main form area ---------- */
.auth-main {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 32px 48px;
}
@media (max-width: 920px) { .auth-main { padding: 8px 0 32px; } }

.auth-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(120, 60, 200, 0.08);
}
@media (max-width: 540px) { .auth-card { padding: 20px 18px; border-radius: 10px; } }

/* Tabs */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  position: relative;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--fg-mute);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  transition: color .2s ease;
}
.auth-tab.active { color: #f5e8ff; }
.auth-tab:hover:not(.active) { color: var(--fg-dim); }
.auth-tab-thumb {
  position: absolute;
  top: 4px; bottom: 4px; width: calc(50% - 4px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 22%, transparent), color-mix(in oklab, var(--accent) 12%, transparent));
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent);
  transition: left .25s cubic-bezier(0.5, 0, 0.2, 1);
  z-index: 0;
}
.auth-tab-thumb.left { left: 4px; }
.auth-tab-thumb.right { left: 50%; }

/* Section labels */
.auth-section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Plan grid */
.auth-plan-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 540px) { .auth-plan-grid { grid-template-columns: 1fr; } }

.auth-plan {
  position: relative;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}
.auth-plan:hover { border-color: var(--line-2); background: var(--bg-3); }
.auth-plan.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(120, 60, 200, 0.10), var(--bg-2));
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px -10px color-mix(in oklab, var(--accent) 60%, transparent);
}
.auth-plan-ribbon {
  position: absolute; top: -9px; left: 12px;
  background: var(--accent);
  color: #1b0935;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.auth-plan-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
}
.auth-plan-tier {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.auth-plan-name {
  font-size: 17px; font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.auth-plan-radio {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.auth-plan-radio.on { border-color: var(--accent); }
.auth-plan-radio-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}
.auth-plan-price {
  display: flex; align-items: baseline; gap: 4px;
}
.auth-plan-amt {
  font-size: 24px; font-weight: 500;
  color: var(--fg); letter-spacing: -0.025em;
}
.auth-plan-per {
  color: var(--fg-mute); font-size: 12px;
}
.auth-plan-desc {
  font-size: 12px;
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.45;
}
.auth-plan-feats {
  list-style: none;
  margin: 4px 0 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 5px;
}
.auth-plan-feats li {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-dim);
  display: flex; align-items: flex-start; gap: 6px;
  line-height: 1.4;
}
.auth-feat-ico { color: var(--accent); flex-shrink: 0; }

/* Billing toggle */
.auth-billing-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.auth-billing-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.auth-billing-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.auth-billing-toggle button {
  padding: 7px 12px;
  font-family: var(--mono); font-size: 11.5px;
  background: transparent;
  border: none;
  color: var(--fg-mute);
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s ease;
}
.auth-billing-toggle button:hover { color: var(--fg-dim); }
.auth-billing-toggle button.active {
  background: var(--bg-3);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.auth-save {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px; font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

/* Form */
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
}
.auth-field {
  display: flex; flex-direction: column; gap: 6px;
}
.auth-field-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.auth-forgot {
  background: transparent;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}
.auth-forgot:hover { color: #d4b3ff; text-decoration: underline; }

.auth-field input {
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-field input::placeholder { color: var(--fg-mute); }
.auth-field input:focus {
  background: var(--bg-3);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input {
  width: 100%;
  padding-right: 56px;
  box-sizing: border-box;
}
.auth-input-icon {
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.auth-input-icon:hover { color: var(--fg); background: var(--bg-3); }

/* Summary */
.auth-summary {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  border-radius: 8px;
  margin-top: 4px;
}
.auth-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.auth-summary-label {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.4;
}
.auth-summary-amt {
  font-size: 17px; font-weight: 500;
  color: #f5e8ff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.auth-summary-per { color: var(--fg-mute); font-size: 12px; font-weight: 400; }
.auth-summary-eur {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

/* CTA */
.auth-cta {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 14px 18px;
  height: auto;
  position: relative;
}
.auth-cta.is-loading { pointer-events: none; opacity: 0.85; }
.auth-cta-spinner {
  width: 14px; height: 14px;
  border: 2px solid color-mix(in oklab, var(--fg) 50%, transparent);
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-cta-sub {
  text-align: center;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  margin-top: -2px;
}

/* Divider */
.auth-divider {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 12px; align-items: center;
  margin: 12px 0 4px;
}
.auth-divider span:not(.auth-divider-text) {
  height: 1px; background: var(--line);
}
.auth-divider-text {
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--fg-mute);
}

/* Social */
.auth-social {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
@media (max-width: 460px) { .auth-social { grid-template-columns: 1fr; } }
.auth-social-btn {
  width: 100%;
  justify-content: center;
  font-size: 12.5px;
  padding: 10px 12px;
}
.auth-social-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--fg);
  margin-right: 4px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
}
.auth-switch .link {
  background: transparent; border: none; padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--sans);
}
.auth-switch .link:hover { color: #d4b3ff; text-decoration: underline; }

.auth-legal {
  font-size: 10.5px;
  color: var(--fg-mute);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.auth-legal a {
  color: var(--fg-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
}
.auth-legal a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ============================================================
   MOBILE SWEEP — additional polish
   ============================================================ */

@media (max-width: 720px) {
  /* Pricing: ensure stack 1 column */
  .plans { grid-template-columns: 1fr !important; }
  /* Pair grid: 1 col already handled, just enforce smaller padding */
  .pair-card { padding: 14px 14px 12px; }
  /* Plan card price should be readable */
  .plan-price .amt { font-size: 38px; }
}

@media (max-width: 540px) {
  /* Topbar sign-in/get-access buttons: hide on small screens (hamburger handles them) */
  .topbar > .btn { display: none; }
  /* Reduce padding so brand fits */
  .topbar { padding: 0 14px; gap: 8px; }
  /* Calendar countdown takes full width */
  .cal-countdown { width: 100%; }
  /* Auth side panel pad */
  .auth-side { padding-top: 16px; }
  .auth-side-title { font-size: 24px; }
}


/* ============================================================
   Mobile fix #1 — Dashboard summary cards stacked label/count
   ============================================================ */
.cal-mobile-section { display: none; }

@media (max-width: 480px) {
  .summary-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .summary-card {
    padding: 12px 10px;
    min-width: 0;
  }
  .summary-card .summary-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .summary-card .label {
    font-size: 10px !important;
    line-height: 1.15;
    letter-spacing: 0.08em;
    white-space: normal;
    word-break: break-word;
  }
  .summary-card .count {
    font-size: 26px !important;
    margin: 0;
  }
  .summary-card .delta {
    font-size: 9.5px;
    line-height: 1.1;
  }
  .summary-card .bar {
    margin-top: 4px;
  }
}

/* ============================================================
   Mobile fix #2 — Calendar grouped card layout
   ============================================================ */
@media (max-width: 720px) {
  .cal-mobile-section {
    display: block;
    padding: 0 14px 24px;
  }
  /* Hide the table layout on mobile */
  .cal-table-section { display: none; }
}

.cal-m-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-1);
  margin-bottom: 12px;
  overflow: hidden;
}
.cal-m-group-head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.005em;
}
.cal-m-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.cal-m-label { color: var(--fg); }
.cal-m-count {
  color: var(--fg-mute);
  font-size: 12px;
  font-weight: 400;
  margin-left: 2px;
}
.cal-m-chev {
  margin-left: auto;
  color: var(--fg-mute);
  font-size: 14px;
  transition: transform 0.15s;
}
.cal-m-group.open .cal-m-chev { transform: none; }

.cal-m-list {
  border-top: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-m-empty {
  padding: 14px;
  color: var(--fg-mute);
  font-size: 12px;
  text-align: center;
}
.cal-m-card {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cal-m-card:hover { border-color: var(--line-bright, rgba(255,255,255,0.18)); }
.cal-m-card.upcoming {
  border-color: rgba(168,85,247,0.45);
  box-shadow: 0 0 0 1px rgba(168,85,247,0.15);
}
.cal-m-card.passed { opacity: 0.55; }
.cal-m-card.expanded { border-color: rgba(168,85,247,0.55); }

.cal-m-card-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cal-m-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 5px;
}
.cal-m-flag { font-size: 16px; line-height: 1; }
.cal-m-day {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cal-m-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.cal-m-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.cal-m-k {
  color: var(--fg-mute);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  margin-right: 4px;
  text-transform: uppercase;
}
.cal-m-chev-row {
  margin-left: auto;
  color: var(--fg-mute);
}
.cal-m-expand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.cal-m-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin: 0 0 10px 0;
}

/* ============================================================
   Mobile fix #3 — Globe city labels: smaller, no overlap
   ============================================================ */
@media (max-width: 640px) {
  .globe-city-label {
    max-width: 120px !important;
    min-width: 0 !important;
    padding: 7px 9px !important;
    font-size: 10.5px;
  }
  .globe-city-label .gcl-name { font-size: 11.5px; }
  .globe-city-label .gcl-time { font-size: 10.5px; }
  .globe-city-label .gcl-status { font-size: 9px; }
  .globe-city-label .gcl-dot { width: 8px; height: 8px; }
  /* Vertical offsets to prevent overlap on small screens */
  .globe-city-label.london   { top: 2% !important; left: 2% !important; }
  .globe-city-label.tokyo    { top: 38% !important; right: 2% !important; }
  .globe-city-label.newyork  { bottom: 2% !important; left: 2% !important; }
}
@media (max-width: 380px) {
  .globe-city-label {
    max-width: 100px !important;
    padding: 6px 8px !important;
  }
  .globe-city-label .gcl-name { font-size: 11px; }
  .globe-city-label .gcl-time { font-size: 10px; }
  .globe-city-label .gcl-status { display: none; }
}


/* ============================================================
   Dashboard asset-category tabs
   ============================================================ */
.dash-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 6px 0 22px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 13px;
  background: transparent;
  border: 0;
  color: var(--fg-mute);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.dash-tab:hover { color: var(--fg-dim); }
.dash-tab.active { color: var(--fg); }
.dash-tab-count {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  padding: 2px 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
  border: 1px solid var(--line);
}
.dash-tab.active .dash-tab-count {
  color: var(--green);
  background: rgba(13,92,58,0.12);
  border-color: rgba(16,185,129,0.28);
}
.dash-tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--green);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
  box-shadow: 0 0 8px rgba(16,185,129,0.45);
}
.dash-tab.active::after { transform: scaleX(1); }

@media (max-width: 540px) {
  .dash-tab { padding: 10px 12px 11px; font-size: 12.5px; }
  .dash-tab-count { font-size: 10px; padding: 1px 5px; }
}

.plan-save-badge {
  display: inline-block;
  background: rgba(192,132,252,0.15);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(192,132,252,0.3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* ─── Legal pages ─────────────────────────────────────────── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-doc-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.legal-doc-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--fg);
}
.legal-meta {
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.legal-body section {
  margin-bottom: 32px;
}
.legal-body h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.legal-body p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(232,239,233,0.75);
  margin: 0 0 10px;
}
.legal-body ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}
.legal-body li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232,239,233,0.75);
  margin-bottom: 6px;
}
.legal-body a {
  color: var(--green);
  text-decoration: none;
}
.legal-body a:hover {
  text-decoration: underline;
}
.legal-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--fg-dim);
}
.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* =========================
   SUCCESS PAGE
   ========================= */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.success-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.success-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  box-shadow: 0 0 60px rgba(16,185,129,0.08), 0 24px 64px rgba(0,0,0,0.4);
}

/* Checkmark animation */
.success-check-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
}

.success-check {
  width: 80px;
  height: 80px;
}

.success-check-svg {
  width: 80px;
  height: 80px;
}

.success-circle {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: successCircle 0.6s ease-out forwards;
}

.success-tick {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successTick 0.4s 0.5s ease-out forwards;
}

.success-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--green-edge);
  animation: successRingPulse 2s 0.9s ease-out infinite;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes successTick {
  to { stroke-dashoffset: 0; }
}
@keyframes successRingPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.success-title {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.success-sub {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 0 0 28px;
  line-height: 1.5;
}

.success-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin-bottom: 24px;
}

/* Steps */
.success-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin-bottom: 28px;
}

.success-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-mute);
}
.success-step.done  { color: var(--green); }
.success-step.active { color: var(--fg); font-weight: 500; }

.success-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--mono);
  flex-shrink: 0;
}
.success-step.done .success-step-num {
  background: var(--green-soft);
  border-color: var(--green);
}
.success-step.active .success-step-num {
  background: var(--bg-3);
  border-color: var(--fg);
}

.success-step-arrow {
  font-size: 13px;
  color: var(--fg-faint);
  padding-left: 6px;
}

/* CTA button */
.success-cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--green-soft);
  border: 1.5px solid var(--green-edge);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  margin-bottom: 14px;
}
.success-cta-btn:hover {
  background: rgba(16,185,129,0.18);
  border-color: var(--green);
  transform: translateY(-1px);
}
.success-cta-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.success-cta-btn > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}
.success-cta-main {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}
.success-cta-sub {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.success-cta-arrow {
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.success-hint {
  font-size: 11.5px;
  color: var(--fg-mute);
  margin: 0 0 28px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.success-hint strong {
  color: var(--fg-dim);
  font-weight: 600;
}

/* Secondary nav */
.success-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.success-nav-btn {
  background: none;
  border: none;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  letter-spacing: 0.02em;
  transition: color 0.1s;
}
.success-nav-btn:hover { color: var(--fg); }

@media (max-width: 520px) {
  .success-card { padding: 36px 24px 32px; }
  .success-title { font-size: 22px; }
}

/* Success page — loading/verifying state */
.success-card--loading {
  min-height: 260px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.success-verifying-label {
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0;
}
.success-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--line-2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: successSpin 0.8s linear infinite;
}
@keyframes successSpin {
  to { transform: rotate(360deg); }
}

/* ── Paywall — LockedPairCard ──────────────────────────────────────────────── */
.pair-card-locked {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.pair-card-locked:hover {
  background: var(--bg-2);
}
.pair-card-locked::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: #F59E0B;
}
.pro-badge {
  background: rgba(245,158,11,0.12);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 4px;
  font-size: 9px;
  padding: 2px 7px;
  letter-spacing: 1.4px;
  white-space: nowrap;
  align-self: flex-start;
  margin-right: 30px; /* leave room for AlertBell */
}

/* ── Paywall — Banner ─────────────────────────────────────────────────────── */
.paywall-banner {
  background: rgba(245,158,11,0.06);
  border-bottom: 1px solid rgba(245,158,11,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  gap: 12px;
  font-size: 13px;
  flex-shrink: 0;
}
.paywall-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}
.paywall-banner-bolt {
  font-size: 14px;
}
.paywall-banner-text {
  color: rgba(255,255,255,0.65);
}
.paywall-banner-cta {
  background: rgba(245,158,11,0.12);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.paywall-banner-cta:hover {
  background: rgba(245,158,11,0.2);
}
.paywall-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  line-height: 1;
  transition: color .15s;
  flex-shrink: 0;
}
.paywall-banner-dismiss:hover {
  color: rgba(255,255,255,0.7);
}

/* ── Paywall — Modal ─────────────────────────────────────────────────────── */
.paywall-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.paywall-modal-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 16px;
  padding: 28px 24px 22px;
  width: min(720px, 94vw);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,158,11,0.12);
}
.paywall-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.paywall-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.paywall-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.paywall-modal-pair {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}
.paywall-modal-title {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.paywall-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.paywall-modal-features li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pm-ico {
  color: #F59E0B;
  font-weight: 700;
  flex-shrink: 0;
}
.paywall-modal-cta {
  width: 100%;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--sans);
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity .15s;
  margin-bottom: 10px;
}
.paywall-modal-cta:hover {
  opacity: .9;
}
.paywall-modal-fine {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-bottom: 14px;
}
.paywall-modal-signin {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin: 0;
}
.paywall-modal-signin-btn {
  background: none;
  border: none;
  color: #F59E0B;
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--sans);
  text-decoration: underline;
  padding: 0;
}

/* PaywallModal — video preview */
.paywall-modal-card {
  padding-top: 0 !important;
  overflow: hidden;
}
.paywall-modal-video-wrap {
  margin: 0 -1px;   /* bleed to card border */
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  background: #080c0a;
}
.paywall-modal-video-wrap + .paywall-modal-close {
  top: 10px; right: 10px;
}
/* Re-add inner padding after video */
.paywall-modal-video-wrap ~ .paywall-modal-header {
  padding-top: 18px;
  padding-left: 24px;
  padding-right: 24px;
}
.paywall-modal-header,
.paywall-modal-title,
.paywall-modal-features,
.paywall-modal-cta,
.paywall-modal-fine,
.paywall-modal-signin {
  padding-left: 24px;
  padding-right: 24px;
}
.paywall-modal-cta,
.paywall-modal-fine,
.paywall-modal-signin {
  padding-bottom: 0;
}
.paywall-modal-signin {
  padding-bottom: 22px;
}
.paywall-modal-card .paywall-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
}

/* SignInModal */
.signin-modal-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: min(420px, 94vw);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.signin-modal-logo {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent, #10b981);
  margin-bottom: 8px;
}
.signin-modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}
.signin-modal-sub {
  margin: 0;
  font-size: 13px;
  color: var(--fg-2, rgba(255,255,255,0.5));
  line-height: 1.5;
}
.signin-modal-msg {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.signin-modal-msg--err { color: #ef4444; }
.signin-modal-msg--ok  { color: #10b981; }
.signin-modal-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-2, rgba(255,255,255,0.5));
}

/* ── User Avatar & Dropdown ─────────────────────────────────────── */
.user-menu { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  color: var(--fg); font-size: 14px; transition: background 0.15s;
  white-space: nowrap;
}
.user-avatar-btn:hover { background: rgba(255,255,255,0.1); }
.user-avatar-initials {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent, #10b981); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: var(--mono);
  flex-shrink: 0;
}
.user-plan-pill {
  font-size: 10px; letter-spacing: 0.08em;
  background: rgba(16,185,129,0.12); color: var(--accent, #10b981);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 4px; padding: 2px 6px; line-height: 1;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #0d1117; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px; min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6); z-index: 600;
  animation: dropIn 0.12s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown-email {
  padding: 8px 10px 4px; font-size: 12px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 204px;
}
.user-dropdown-plan { padding: 2px 10px 8px; }
.user-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.user-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; font-size: 14px; color: var(--fg);
  background: none; border: none; cursor: pointer; border-radius: 8px;
  transition: background 0.12s;
}
.user-dropdown-item:hover { background: rgba(255,255,255,0.06); }
.user-dropdown-signout { color: #ef4444 !important; }
.user-dropdown-signout:hover { background: rgba(239,68,68,0.1) !important; }
/* ── Mobile menu user section ───────────────────────────────────── */
.mobile-menu-user {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: rgba(255,255,255,0.04);
  border-radius: 8px; margin-bottom: 8px;
}
/* ── Account Page ───────────────────────────────────────────────── */
.page-account {
  min-height: calc(100vh - 60px); padding: 40px 20px 60px;
  display: flex; justify-content: center;
}
.account-shell { width: 100%; max-width: 560px; }
.account-header { margin-bottom: 28px; }
.account-title { font-size: 28px; font-weight: 700; color: var(--fg); margin: 0 0 6px; }
.account-subtitle { font-size: 14px; color: rgba(255,255,255,0.45); margin: 0; }
.account-card {
  background: var(--bg-1, #0d1117); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 28px 24px;
}
.account-section-label {
  font-size: 10px; letter-spacing: 1.2px; color: rgba(255,255,255,0.35);
  margin-top: 24px; margin-bottom: 10px;
}
.account-section-label:first-child { margin-top: 0; }
.account-plan-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
}
.account-plan-badge {
  display: inline-block; font-size: 12px; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 6px; margin-bottom: 6px; font-weight: 600;
}
.account-plan-status { font-size: 13px; color: rgba(255,255,255,0.45); margin: 0; }
.account-email { font-size: 14px; color: var(--fg); word-break: break-all; }
.account-features-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.account-features-list li { font-size: 13px; color: rgba(255,255,255,0.65); }
.account-actions {
  margin-top: 32px; display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.account-error { font-size: 13px; color: #ef4444; margin: 0; }
.account-portal-note {
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-align: center; letter-spacing: 0.02em;
}
.account-signout-btn {
  color: rgba(255,255,255,0.35); background: none; border: none;
  font-size: 13px; padding: 8px; cursor: pointer; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.account-signout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.06); }
.account-footer {
  margin-top: 20px; text-align: center; font-size: 12px;
  color: rgba(255,255,255,0.3);
}
/* ── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 420px) {
  .user-avatar-btn .user-plan-pill { display: none; }
  .user-avatar-btn svg { display: none; }
  .account-plan-row { flex-direction: column; }
  .account-card { padding: 20px 16px; }
  .account-title { font-size: 22px; }
}

/* ── Subscription-ended banner ─────────────────────────────── */
.sub-ended-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(239, 68, 68, 0.08);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.sub-ended-banner .btn-sm {
  padding: 6px 14px; font-size: 12px;
}

/* ─── Macro Regime Bar ──────────────────────────────────────────────────── */
.macro-regime-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: 12px;
}
.regime-title {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
  margin-right: 4px;
  flex-shrink: 0;
}
.regime-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 12px;
  border-left: 1px solid rgba(255,255,255,0.07);
}
.regime-dim {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
}
.regime-val {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.regime-warning {
  font-size: 10px;
  color: rgba(245,158,11,0.75);
  padding: 2px 12px;
  border-left: 1px solid rgba(245,158,11,0.3);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .macro-regime-bar { padding: 6px 14px; gap: 8px; }
  .regime-metric { padding: 2px 8px; }
  .regime-warning { display: none; }
}

/* ─── Macro Context Widget ──────────────────────────────────────────────── */
.macro-ctx-widget {
  margin: 0 0 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.macro-ctx-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-2);
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-family: inherit;
}
.macro-ctx-header:hover { background: var(--bg-3); }
.macro-ctx-body {
  padding: 16px;
  background: var(--bg-1);
}
.cb-rates-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .cb-rates-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cb-rates-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.cb-rate-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px 10px 8px;
}
.macro-us-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.macro-us-item {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-direction: column;
}
@media (max-width: 640px) { .macro-us-strip { gap: 16px; } }

/* ─── Pair card CB rate differential ───────────────────────────────────── */
.pair-rate-diff {
  font-size: 10px;
  color: var(--fg-faint);
  margin: 5px 0 2px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}


/* ─── Live price indicator ──────────────────────────────────────────────── */
.price-live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulseRing 1.6s ease-out infinite;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.price-live-time {
  font-size: 9px;
  color: rgba(16,185,129,0.5);
  letter-spacing: 0.02em;
  margin-top: 1px;
  line-height: 1;
}

/* ─── Filter dropdown ───────────────────────────────────────────────────── */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 4px;
  z-index: 200;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.filter-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--fg-dim);
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--sans);
}
.filter-opt:hover { background: var(--bg-3); color: var(--fg); }
.filter-opt.active { color: var(--green); background: var(--green-soft); }


/* Pricing page: Elite card highlight pulse when arriving from upgrade flow */
.plan.highlight-pulse {
  animation: planPulse 2.2s ease-out 1;
}
@keyframes planPulse {
  0%   { box-shadow: 0 0 0 1px var(--green), 0 20px 60px -20px rgba(16,185,129,0.25); }
  20%  { box-shadow: 0 0 0 2px #34D399, 0 0 40px 6px rgba(52,211,153,0.55), 0 24px 80px -10px rgba(16,185,129,0.45); transform: translateY(-2px); }
  60%  { box-shadow: 0 0 0 2px #34D399, 0 0 28px 4px rgba(52,211,153,0.35), 0 22px 70px -12px rgba(16,185,129,0.35); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 1px var(--green), 0 20px 60px -20px rgba(16,185,129,0.25); transform: translateY(0); }
}


/* ─── Premium Signals Row (AV Premium: Yield Curve · Pre-Market · Earnings) ─── */
.premium-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 16px;
}
@media (max-width: 1100px) {
  .premium-row { grid-template-columns: 1fr; }
}
.premium-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.premium-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.premium-card-badge {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 2px 8px;
  border-radius: 4px;
}
/* Yield Curve */
.yield-rows { display: flex; flex-direction: column; gap: 6px; }
.yield-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  gap: 8px;
}
.yield-row:last-of-type { border-bottom: none; }
.yield-label { color: var(--fg-dim); font-size: 11px; }
.yield-value { color: var(--fg); font-size: 14px; font-weight: 600; }
.yield-delta { font-size: 11px; color: var(--fg-dim); text-align: right; }
.yield-delta.up { color: var(--green); }
.yield-delta.down { color: var(--bear); }
.yield-spread {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 4px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 6px;
}
/* Pre-Market */
.premarket-grid { display: flex; flex-direction: column; gap: 4px; }
.premarket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
}
.premarket-bull { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.22); color: var(--green); }
.premarket-bear { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.22);  color: var(--bear); }
.premarket-neut { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); color: var(--fg-dim); }
/* Earnings */
.earnings-list { display: flex; flex-direction: column; gap: 4px; }
.earnings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  gap: 8px;
}
.earnings-today {
  background: rgba(245,194,75,0.08);
  border-color: rgba(245,194,75,0.35);
}
.earnings-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.earnings-symbol { font-size: 12px; font-weight: 700; color: var(--fg); }
.earnings-time { font-size: 10px; color: var(--fg-dim); }
.earnings-today .earnings-time { color: #f5c24b; font-weight: 600; }
.earnings-detail { display: flex; flex-direction: column; gap: 2px; text-align: right; }


/* ─── Drift Tag (bias-staleness indicator) ─── */
.drift-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono, 'Courier New', monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  white-space: nowrap;
}
.drift-warn {
  background: rgba(245,194,75,0.12);
  border: 1px solid rgba(245,194,75,0.35);
  color: #f5c24b;
}
.drift-high {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.40);
  color: #ef4444;
  animation: driftPulse 2s ease-in-out infinite;
}
@keyframes driftPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}


/* ─── Track Record Strip (Landing Page Trust-Builder) ─── */
.track-record-strip {
  max-width: 1200px;
  margin: 32px auto 16px;
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, rgba(16,185,129,0.01) 100%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  text-align: center;
}
.track-record-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 18px;
}
.track-record-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .track-record-grid { grid-template-columns: 1fr; }
}
.track-record-tile {
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.track-record-primary {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.3);
}
.track-record-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.track-record-num-sm {
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.05;
}
.track-record-lbl {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  margin-top: 6px;
}
.track-record-sub {
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 4px;
  opacity: 0.7;
}
.track-record-building {
  padding: 16px;
  font-size: 13px;
  color: var(--fg-dim);
  background: rgba(245,194,75,0.06);
  border: 1px dashed rgba(245,194,75,0.3);
  border-radius: 8px;
  margin: 0 auto 18px;
  max-width: 720px;
}
.track-record-foot {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  opacity: 0.6;
}

/* ── Weekend mode (markets closed Sat/Sun) ─────────────────────────────── */
.live-pill-closed { border-color: rgba(245,194,75,0.45); background: rgba(245,194,75,0.10); color: #f5c24b; }
.session-bar-weekend .session-bar-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.session-weekend-note { font-size: 12px; color: #f5c24b; line-height: 1.5; }
@media (max-width: 880px) { .session-bar-weekend .session-bar-inner { gap: 10px; } }
.session-strip-weekend { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.session-strip-weekend-note { font-size: 13px; color: #f5c24b; line-height: 1.5; text-align: center; padding: 10px 16px; }

/* ── Sprint 1 Trust-Reframe (2026-05-28): How-It-Thinks live-reasoning proof + conditional guarantee ── */
.how-thinks { max-width: 1100px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.how-thinks-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--bull, #10b981); margin-bottom: 14px; }
.how-thinks-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 0 0 14px; line-height: 1.1; }
.how-thinks-sub { max-width: 690px; margin: 0 auto 38px; color: var(--text-dim, #9aa3b2); font-size: 16px; line-height: 1.6; }
.how-thinks-sub strong { color: var(--bull, #10b981); }
.how-thinks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.how-thinks-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.how-thinks-card-head { display: flex; align-items: center; gap: 10px; }
.how-thinks-sym { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.how-thinks-bias { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.how-thinks-bias.bull { color: var(--bull, #10b981); background: rgba(16,185,129,.12); }
.how-thinks-bias.bear { color: var(--bear, #ef4444); background: rgba(239,68,68,.12); }
.how-thinks-bias.neut { color: var(--neut, #f5c24b); background: rgba(245,194,75,.12); }
.how-thinks-conf { margin-left: auto; font-size: 15px; font-weight: 700; }
.how-thinks-conf-u { font-size: 11px; opacity: .5; font-weight: 400; }
.how-thinks-locked { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 6px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.how-thinks-locked .hl-amber { color: #F59E0B; }
.how-thinks-driver { font-size: 12px; color: var(--bull, #10b981); letter-spacing: .02em; line-height: 1.45; }
.how-thinks-reason { font-size: 14px; line-height: 1.62; color: var(--text-dim, #c2c9d6); margin: 0; }
.how-thinks-foot { margin-top: 28px; font-size: 12px; color: var(--text-dim, #6b7280); letter-spacing: .03em; }
@media (max-width: 860px) { .how-thinks-grid { grid-template-columns: 1fr; } }
.final-guarantee { max-width: 640px; margin: 22px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim, #9aa3b2); border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; padding: 14px 18px; }
.final-guarantee strong { color: var(--bull, #10b981); }

/* ── Stat-proof strip + mobile calendly fix (2026-05-28) ── */
.stat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; max-width: 880px; margin: 0 auto 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.stat-num { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--bull, #10b981); line-height: 1; }
.stat-lbl { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim, #8a93a3); }
@media (max-width: 560px) { .stat-strip { gap: 18px 22px; } .stat-item { flex: 0 0 40%; } }
@media (max-width: 560px) { .hero-cta-pill { white-space: normal; height: auto; min-height: 0; overflow: visible; line-height: 1.3; align-items: center; } }

/* ── Interactive reasoning explorer (2026-05-28) ── */
.ht-explorer { max-width: 820px; margin: 0 auto; }
.ht-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.ht-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--text-dim,#c2c9d6); font-size: 13px; cursor: pointer; transition: border-color .15s ease, background .15s ease; font-family: inherit; }
.ht-chip:hover { border-color: rgba(255,255,255,.30); }
.ht-chip.active { background: rgba(16,185,129,.12); border-color: var(--bull,#10b981); color: #fff; }
.ht-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: rgba(16,185,129,0.6); }
.ht-chip-dot.bull { background: var(--bull,#10b981); }
.ht-chip-dot.bear { background: var(--bear,#ef4444); }
.ht-chip-dot.neut { background: var(--neut,#f5c24b); }
.ht-readout { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 26px; text-align: left; }
.ht-readout-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ht-readout-sym { font-size: 22px; font-weight: 700; }
.ht-readout-reason { font-size: 15px; line-height: 1.65; margin: 0; }
@media (max-width: 560px) { .ht-readout { padding: 18px; } .ht-readout-sym { font-size: 18px; } .ht-chip { font-size: 12px; padding: 6px 10px; } }

/* ── Macro Bias Scorecard lead-magnet tool (2026-05-28 Sprint 2) ── */
.scorecard { max-width: 820px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.scorecard-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--bull,#10b981); margin-bottom: 14px; }
.scorecard-title { font-size: clamp(26px,4vw,40px); font-weight: 700; margin: 0 0 12px; line-height: 1.1; }
.scorecard-sub { max-width: 620px; margin: 0 auto 28px; color: var(--text-dim,#9aa3b2); font-size: 16px; line-height: 1.6; }
.scorecard-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.scorecard-verdict { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 22px; margin-bottom: 24px; text-align: left; }
.sv-counts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.sv-count { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.sv-count.bull { color: var(--bull,#10b981); background: rgba(16,185,129,.12); }
.sv-count.bear { color: var(--bear,#ef4444); background: rgba(239,68,68,.12); }
.sv-count.neut { color: var(--neut,#f5c24b); background: rgba(245,194,75,.12); }
.sv-list { display: flex; flex-direction: column; gap: 2px; }
.sv-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; }
.sv-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.sv-sym { font-size: 14px; font-weight: 600; min-width: 92px; }
.sv-bias { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; }
.sv-bias.bull { color: var(--bull,#10b981); background: rgba(16,185,129,.12); }
.sv-bias.bear { color: var(--bear,#ef4444); background: rgba(239,68,68,.12); }
.sv-bias.neut { color: var(--neut,#f5c24b); background: rgba(245,194,75,.12); }
.sv-conf { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--text-dim,#c2c9d6); }
.sv-events { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: var(--neut,#f5c24b); line-height: 1.5; }
.scorecard-form { max-width: 480px; margin: 0 auto; }
.scorecard-done { max-width: 480px; margin: 0 auto; }
.scorecard-fine { margin-top: 14px; font-size: 11.5px; color: var(--text-dim,#6b7280); letter-spacing: .03em; }
@media (max-width: 560px) { .sv-sym { min-width: 76px; } }

/* ── Elite bot showcase + Telegram mock (2026-05-28 Sprint 2) ── */
.elite-bot { max-width: 1100px; margin: 0 auto; padding: 64px 20px; }
.elite-bot-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.elite-bot-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--bull,#10b981); margin-bottom: 14px; }
.elite-bot-title { font-size: clamp(26px,3.4vw,40px); font-weight: 700; line-height: 1.12; margin: 0 0 16px; }
.elite-bot-sub { color: var(--text-dim,#9aa3b2); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.elite-bot-feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.elite-bot-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text,#e6e9ef); }
.ebf-ico { flex: 0 0 auto; }
.elite-bot-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.elite-bot-mock { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tg-mock { width: 100%; max-width: 360px; background: #0e1621; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 16px; }
.tg-mock-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #cfd6e2; margin-bottom: 14px; }
.tg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bull,#10b981); }
.tg-mock-sub { font-size: 10px; color: #6b7280; font-weight: 400; padding: 1px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; }
.tg-bubble { background: rgba(40,120,200,.12); border: 1px solid rgba(80,150,230,.18); border-radius: 12px; border-top-left-radius: 4px; padding: 12px 14px; margin-bottom: 12px; }
.tg-bubble-title { font-size: 12px; font-weight: 700; color: #8fb8ff; letter-spacing: .04em; margin-bottom: 6px; }
.tg-bubble-line { font-size: 14px; color: #e6e9ef; margin-bottom: 5px; }
.tg-bubble-reason { font-size: 12.5px; color: #9aa3b2; line-height: 1.5; font-style: italic; }
.tg-time { font-size: 10px; color: #6b7280; text-align: right; margin-top: 6px; }
.elite-bot-mock-cap { font-size: 11px; color: #6b7280; letter-spacing: .03em; }
.sv-bridge { margin-top: 12px; font-size: 12.5px; color: var(--bull,#10b981); line-height: 1.5; }
@media (max-width: 860px) { .elite-bot-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ── Scorecard gate (2026-05-30): tease aggregate, lock per-market specifics ── */
.sv-blur { filter: blur(7px); -webkit-user-select: none; user-select: none; pointer-events: none; }
.sv-lock { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: var(--text-dim,#9aa3b2); line-height: 1.55; }
.sv-lock strong { color: var(--bull,#10b981); }

/* ── Scorecard unlock overlay (2026-05-30): trial-CTA on the blurred values ── */
.sv-locked-wrap { position: relative; }
.sv-unlock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; background: radial-gradient(ellipse at center, rgba(8,12,16,.5), rgba(8,12,16,.82)); border-radius: 10px; }
.sv-unlock-text { font-size: 12.5px; color: var(--text-dim,#c2c9d6); letter-spacing: .02em; }
.sv-unlock-btn { font-size: 14px; }
.sv-unlock-sub { font-size: 11.5px; color: var(--text-dim,#8a93a3); }

.sv-locked-wrap { min-height: 132px; }

/* ── Glimpse-then-lock: smooth fade to blur + overlay fade-in (2026-05-30) ── */
.sv-bias, .sv-conf { transition: filter .6s ease; }
.sv-unlock-overlay { animation: svFade .55s ease; }
@keyframes svFade { from { opacity: 0; } to { opacity: 1; } }

/* 2026-06-12 mobile dead-zone fix: desktop reserves full-viewport hero for the terminal;
   on mobile the terminal is hidden, so the height reservation left ~290px of empty space
   between the glimpse cards and the proof section. Collapse it. */
@media (max-width: 899px) {
  .hero { min-height: auto; padding-bottom: 48px; }
}
