/* 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-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: 9.5px;
  color: var(--green);
  background: var(--green-soft);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.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(180deg, #10b981 0%, #0d5c3a 120%);
  -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-cta-center {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 16px;
}

.hero-globe-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-globe-stage .globe-wrap {
  width: 70vw;
  max-width: 760px;
  min-width: 320px;
  aspect-ratio: 1 / 1;
  position: relative;
}

/* 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;
}
.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;
  min-height: 16px;
  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; }
}

/* 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); } }

.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; transform: none; } }


/* ============================================================ */
/* 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; gap: 8px;
}
.mobile-menu .mobile-menu-cta .btn { flex: 1; justify-content: center; }

@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; }
}
