/* ============================================================================
   AceForex Signals — Master Stylesheet
   ============================================================================
   Loaded by every page through the global layout. Defines:
     - Design tokens (colors, fonts, spacing)
     - Layout shells (page-shell, top-nav, footer)
     - Components (panels, buttons, forms, alerts, chips)
     - Widget styles (cot rail, hero card, crowd bias, pairs widget, news wire)
     - Chart modal styles
   ============================================================================ */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg-base:       #05080f;
  --bg-panel:      #0f1422;
  --bg-panel-2:    #141b2d;
  --bg-input:      #0a0e1a;
  --border:        rgba(31,41,55,0.85);
  --border-soft:   rgba(31,41,55,0.5);

  --text:          #f5f5f5;
  --text-2:        #cbd5e1;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --text-dimmer:   #475569;

  --money-green:   #10e981;
  --stop-red:      #ff4555;
  --brand-gold:    #ffa502;
  --brand-orange:  #ff7a00;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* --- Reset & base --------------------------------------------------------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html, body { height:100%; }
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans), 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.mono { font-family: var(--font-mono); }

/* --- Aurora backdrop ------------------------------------------------------ */
.aurora {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.aurora-1 {
  top: -300px; right: -300px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(16,233,129,0.10) 0%, rgba(255,165,2,0.05) 35%, transparent 65%);
  animation: drift1 18s ease-in-out infinite;
}
.aurora-2 {
  bottom: -250px; left: -250px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,165,2,0.06) 0%, transparent 60%);
  animation: drift2 22s ease-in-out infinite;
}
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}
@keyframes drift1 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-40px, 40px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor; } 50% { opacity: 0.55; box-shadow: 0 0 4px currentColor; } }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Page shell ----------------------------------------------------------- */
.page-shell {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  flex: 1;
}
.page-main {
  flex: 1; width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 22px;
}
.layout-bare .page-main {
  max-width: 480px;
  padding: 32px 22px;
}
.layout-terminal .page-main {
  max-width: 1320px;
  padding: 14px 18px;
}

/* --- Top nav -------------------------------------------------------------- */
/* --- TOP NAV — GLOBAL, IMMUTABLE CHROME -----------------------------------
 * Premium Apple/Stripe-level header. Identical on every page.
 * The background is FULLY OPAQUE so body theme NEVER bleeds through.
 * Do not override these styles in page-specific or layout-specific blocks.
 * ------------------------------------------------------------------------- */
.top-nav {
  padding: 0;
  background:
    linear-gradient(180deg, #0c1120 0%, #080c18 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  /* Subtle floor shadow for elevation - the "premium" lift */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 8px 24px -8px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(0, 0, 0, 0.5);
}
.top-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- Logo block --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.92; }

.logo-mark {
  position: relative;
  width: 34px; height: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #ffb321 0%, #ff7e02 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 17px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(255, 165, 2, 0.3);
  overflow: hidden;
}
.logo-mark::before {
  /* Inner gloss highlight on top edge */
  content: '';
  position: absolute;
  top: 1px; left: 1px; right: 1px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
.logo-mark-letter {
  position: relative;
  z-index: 1;
  color: #2a1500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.logo-mark.sm {
  width: 26px; height: 26px;
  font-size: 13px;
  border-radius: 7px;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
  color: #f0f4ff;
  letter-spacing: 2.5px;
  background: linear-gradient(180deg, #ffffff 0%, #c9d0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text.sm { font-size: 12px; letter-spacing: 1.8px; }

.logo-sub {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #6b7390;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  padding-left: 12px;
  text-transform: uppercase;
}

/* --- Nav links --- */
.top-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.top-nav-links a {
  position: relative;
  color: #9aa3b5;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 7px;
  transition: color 0.2s ease, background 0.2s ease;
}
.top-nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
/* Active state - subtle underline indicator that grows on hover */
.top-nav-links a.active {
  color: #ffffff;
}
.top-nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1.5px;
  background: linear-gradient(90deg, #ffa502, #ff7e02);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 165, 2, 0.6);
}

/* --- Log in (with lock icon) --- */
.top-nav-links a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #c9d0e0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  margin-left: 6px;
}
.top-nav-links a.nav-login::after { display: none; }
.top-nav-links a.nav-login:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.top-nav-links a.nav-login .lock-icon {
  width: 13px; height: 13px;
  flex-shrink: 0;
  opacity: 0.8;
}
.top-nav-links a.nav-login:hover .lock-icon { opacity: 1; }

/* Secondary nav action (Log out) */
.top-nav-links a.nav-secondary {
  color: #7c8498;
  font-size: 12.5px;
}
.top-nav-links a.nav-secondary:hover { color: #c9d0e0; }

/* --- CTA button --- */
.top-nav-links .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #ffb321 0%, #ff7e02 100%);
  color: #2a1500;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  border-radius: 8px;
  margin-left: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 4px 14px rgba(255, 132, 2, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.top-nav-links .btn-cta::after { display: none; }
.top-nav-links .btn-cta:hover {
  color: #2a1500;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 6px 18px rgba(255, 132, 2, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.3);
}
.top-nav-links .btn-cta:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.top-nav-links .btn-cta .cta-arrow {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.top-nav-links .btn-cta:hover .cta-arrow {
  transform: translateX(2px);
}

/* Mobile - tighter padding, hide some links */
@media (max-width: 768px) {
  .top-nav-inner { padding: 12px 16px; gap: 12px; }
  .logo-sub { display: none; }
  .top-nav-links { gap: 2px; }
  .top-nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .top-nav-links a.nav-login span { display: none; }
  .top-nav-links a.nav-login { padding: 8px 11px; }
  .top-nav-links .btn-cta {
    padding: 8px 12px 8px 13px;
    font-size: 12.5px;
  }
}

/* --- FOOTER — GLOBAL, IMMUTABLE CHROME ------------------------------------
 * Self-contained with solid background. Looks identical on every page.
 * ------------------------------------------------------------------------- */
.page-footer {
  margin-top: auto;
  padding: 36px 22px 24px;
  background: #0a0e1a;  /* solid dark — no transparency */
  border-top: 1px solid rgba(31, 41, 55, 0.6);
}
.footer-divider {
  display: none;  /* superseded by .page-footer border-top */
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #7c8498;
  margin-bottom: 4px;
}
.footer-col a { color: #9aa3b5; font-size: 13px; }
.footer-col a:hover { color: #ffa502; }
.footer-text { font-size: 12px; color: #9aa3b5; line-height: 1.5; }
.footer-text.small { font-size: 11px; }
.footer-text.dim { color: #4a5160; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 0.5px solid rgba(31, 41, 55, 0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #9aa3b5;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
  color: var(--bg-base);
  box-shadow: 0 4px 20px rgba(255,165,2,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255,165,2,0.45); color: var(--bg-base); }
.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 0.5px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(255,165,2,0.4); color: var(--text); }
.btn-block { width: 100%; }
.btn svg { width: 15px; height: 15px; }

/* --- Forms ---------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: rgba(10,14,26,0.7);
  border: 0.5px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { outline: none; border-color: rgba(255,165,2,0.5); background: rgba(10,14,26,0.9); }

/* --- Cards & panels ------------------------------------------------------- */
.card {
  background: linear-gradient(135deg, rgba(20,27,45,0.55), rgba(10,14,26,0.4));
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.card-elevated { box-shadow: 0 0 40px rgba(0,0,0,0.4); }
.card-accent { border-color: rgba(255,165,2,0.3); box-shadow: 0 0 40px rgba(255,165,2,0.08); }
.card-accent::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(to right, transparent, rgba(255,165,2,0.5), transparent);
}

.panel {
  background: linear-gradient(180deg, rgba(15,20,34,0.85), rgba(10,14,26,0.75));
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 14px;
  backdrop-filter: blur(20px);
  margin-bottom: 12px;
}
.panel-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 0.5px solid var(--border-soft);
}
.panel-sub {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 10px;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--money-green);
}
.live-dot::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--money-green);
  box-shadow: 0 0 6px var(--money-green);
  animation: pulse-dot 1.8s infinite;
}

/* --- Chips & badges ------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  backdrop-filter: blur(10px);
}
.chip-green { background: rgba(16,233,129,0.10); border: 0.5px solid rgba(16,233,129,0.3); color: var(--money-green); }
.chip-amber { background: rgba(255,165,2,0.08); border: 0.5px solid rgba(255,165,2,0.25); color: var(--brand-gold); }
.chip-red   { background: rgba(255,69,85,0.08); border: 0.5px solid rgba(255,69,85,0.3); color: var(--stop-red); }
.chip-muted { background: rgba(148,163,184,0.08); border: 0.5px solid rgba(148,163,184,0.25); color: var(--text-muted); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.8s infinite; }

/* --- Alerts --------------------------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(16,233,129,0.08); border: 0.5px solid rgba(16,233,129,0.3); color: var(--money-green); }
.alert-error   { background: rgba(255,69,85,0.08); border: 0.5px solid rgba(255,69,85,0.3); color: var(--stop-red); }
.alert-info    { background: rgba(255,165,2,0.06); border: 0.5px solid rgba(255,165,2,0.25); color: var(--brand-gold); }

/* --- Dummy-proof tips ----------------------------------------------------- */
.dummy-tip {
  margin-top: 11px;
  padding: 10px 12px;
  background: rgba(10,14,26,0.6);
  border-left: 2px solid var(--brand-gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}
.dummy-tip strong {
  color: var(--brand-gold);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* --- Ticker strip --------------------------------------------------------- */
.ticker-strip {
  height: 38px;
  min-height: 38px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(20,27,45,0.95), rgba(15,20,34,0.95));
  border-bottom: 1px solid rgba(31,41,55,0.85);
  border-top: 1px solid rgba(31,41,55,0.4);
  overflow: hidden;
  position: relative;
  z-index: 5;
  display: block;
  width: 100%;
}
.ticker-track {
  display: flex;
  gap: 0;
  height: 100%;
  width: max-content;
  animation: scroll-left 90s linear infinite;
  align-items: center;
}
.ticker-item {
  display: flex; align-items: center; gap: 7px;
  padding: 0 18px;
  height: 100%;
  border-right: 0.5px solid var(--border-soft);
  white-space: nowrap;
}
.ticker-pair { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-2); letter-spacing: 0.5px; }
.ticker-price { font-family: var(--font-mono); font-size: 11px; color: var(--text); font-weight: 500; }
.ticker-change {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
}
.ticker-change.up { background: rgba(16,233,129,0.12); color: var(--money-green); }
.ticker-change.dn { background: rgba(255,69,85,0.12); color: var(--stop-red); }

/* --- Terminal grid -------------------------------------------------------- */
.terminal-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 12px;
}
@media (max-width: 1100px) {
  .terminal-grid { grid-template-columns: 1fr; }
}

/* --- COT rail widget ------------------------------------------------------ */
.cot-row {
  display: grid;
  grid-template-columns: 18px 28px 1fr 28px;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
}
.cot-flag { font-size: 14px; line-height: 1; }
.cot-ccy {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.cot-bar-bg {
  height: 5px;
  background: rgba(20,27,45,0.7);
  border-radius: 3px;
  overflow: hidden;
}
.cot-bar-fill { height: 100%; border-radius: 3px; transition: width .5s; }
.cot-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.up { color: var(--money-green); }
.dn { color: var(--stop-red); }
.amber { color: var(--brand-gold); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* --- Strength meter widget ------------------------------------------------ */
.strength-row {
  display: grid;
  grid-template-columns: 18px 28px 1fr 36px;
  gap: 7px;
  align-items: center;
  padding: 4px 0;
}
.strength-bar-wrap {
  position: relative;
  height: 14px;
  background: rgba(20,27,45,0.4);
  border-radius: 3px;
  overflow: hidden;
}
.strength-center {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(148,163,184,0.4);
}
.strength-fill { position: absolute; top: 1px; bottom: 1px; border-radius: 2px; }
.strength-val {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

/* --- Hero signal card ----------------------------------------------------- */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20,27,45,0.7), rgba(10,14,26,0.5));
  border: 0.5px solid rgba(255,165,2,0.2);
  border-radius: var(--r-lg);
  padding: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,165,2,0.5), transparent);
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-pair-block { display: flex; align-items: center; gap: 11px; }
.hero-flags { font-size: 24px; letter-spacing: -3px; line-height: 1; }
.hero-pair-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.hero-badges { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.hero-dir {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: var(--r-md);
}
.hero-dir.long { background: rgba(16,233,129,0.12); border: 0.5px solid rgba(16,233,129,0.4); color: var(--money-green); }
.hero-dir.short { background: rgba(255,69,85,0.12); border: 0.5px solid rgba(255,69,85,0.4); color: var(--stop-red); }
.hero-conv {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 14px;
}
.hero-conv.high   { color: var(--money-green); border: 0.5px solid rgba(16,233,129,0.4); background: rgba(16,233,129,0.05); }
.hero-conv.medium { color: var(--brand-gold); border: 0.5px solid rgba(255,165,2,0.4); background: rgba(255,165,2,0.05); }
.hero-conv.low    { color: var(--text-muted); border: 0.5px solid rgba(148,163,184,0.4); background: rgba(148,163,184,0.05); }

/* Price ladder (the centerpiece) */
.price-ladder {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  margin: 16px 0;
  min-height: 180px;
}
.ladder-line { position: relative; display: flex; flex-direction: column; align-items: center; }
.ladder-line::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--money-green), var(--brand-gold) 50%, var(--stop-red));
  border-radius: 2px;
}
.ladder-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg-base);
}
.ladder-dot.target { border-color: var(--money-green); box-shadow: 0 0 12px rgba(16,233,129,0.6); margin-bottom: auto; }
.ladder-dot.entry  { border-color: var(--brand-gold); background: var(--brand-gold); box-shadow: 0 0 16px rgba(255,165,2,0.8); width: 16px; height: 16px; margin: auto 0; }
.ladder-dot.stop   { border-color: var(--stop-red); box-shadow: 0 0 12px rgba(255,69,85,0.6); margin-top: auto; }
.ladder-prices { display: flex; flex-direction: column; justify-content: space-between; }
.ladder-row {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 7px 11px;
  border-radius: var(--r-md);
  border: 0.5px solid transparent;
}
.ladder-row.target { background: rgba(16,233,129,0.04); border-color: rgba(16,233,129,0.18); }
.ladder-row.entry  { background: rgba(255,165,2,0.06); border-color: rgba(255,165,2,0.25); }
.ladder-row.stop   { background: rgba(255,69,85,0.04); border-color: rgba(255,69,85,0.18); }
.ladder-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.ladder-label.target { color: var(--money-green); }
.ladder-label.entry  { color: var(--brand-gold); }
.ladder-label.stop   { color: var(--stop-red); }
.ladder-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.ladder-pips {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.ladder-pips .gain { color: var(--money-green); }
.ladder-pips .loss { color: var(--stop-red); }

/* RR bar */
.rr-bar {
  display: flex;
  align-items: center;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(20,27,45,0.6);
  margin-top: 8px;
}
.rr-bar .rr-loss { background: var(--stop-red); box-shadow: 0 0 8px rgba(255,69,85,0.5) inset; height: 100%; }
.rr-bar .rr-gain { background: var(--money-green); box-shadow: 0 0 8px rgba(16,233,129,0.5) inset; height: 100%; }
.rr-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.rr-ratio { color: var(--money-green); font-weight: 700; font-size: 12px; }

/* Intel tiles */
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.intel-tile { padding: 11px 13px; border-radius: var(--r-md); border: 0.5px solid var(--border-soft); background: rgba(10,14,26,0.5); }
.intel-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.intel-value { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.intel-meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.intel-tile.smart .intel-value { color: var(--money-green); }
.intel-tile.smart.bear .intel-value { color: var(--stop-red); }
.intel-tile.retail .intel-value { color: var(--stop-red); }

/* Bolt message */
.bolt-msg {
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(10,14,26,0.5);
  border-radius: var(--r-md);
  border-left: 3px solid var(--brand-gold);
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* --- Crowd Bias widget ---------------------------------------------------- */
.crowd-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(20,27,45,0.4);
  border: 0.5px solid var(--border-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: 7px;
}
.crowd-row.signal {
  border-color: rgba(255,165,2,0.45);
  background: linear-gradient(90deg, rgba(255,165,2,0.06), rgba(20,27,45,0.4) 60%);
  box-shadow: 0 0 16px rgba(255,165,2,0.06);
}
.pair-flags { font-size: 18px; line-height: 1; letter-spacing: -3px; }
.pair-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  min-width: 56px;
}
.crowd-bar {
  position: relative;
  height: 22px;
  background: rgba(10,14,26,0.7);
  border-radius: 5px;
  overflow: hidden;
  border: 0.5px solid var(--border-soft);
}
.crowd-bull {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0a4733;
  background: linear-gradient(to right, var(--money-green), #0f956b);
  overflow: hidden;
  white-space: nowrap;
}
.crowd-bear {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #4a0e15;
  background: linear-gradient(to left, var(--stop-red), #c93544);
  overflow: hidden;
  white-space: nowrap;
}
.action-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 14px;
  white-space: nowrap;
}
.action-pill.long  { color: #0a4733; background: var(--money-green); box-shadow: 0 0 8px rgba(16,233,129,0.4); }
.action-pill.short { color: #4a0e15; background: var(--stop-red); box-shadow: 0 0 8px rgba(255,69,85,0.4); }
.action-pill.skip  { color: var(--text-muted); background: rgba(148,163,184,0.15); border: 0.5px solid rgba(148,163,184,0.3); }
.signal-fire {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 7px;
  border-radius: 10px;
  color: var(--brand-gold);
  background: rgba(255,165,2,0.12);
  border: 0.5px solid rgba(255,165,2,0.4);
  white-space: nowrap;
}
.chart-button {
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,165,2,0.12), rgba(255,165,2,0.05));
  border: 0.5px solid rgba(255,165,2,0.35);
  border-radius: var(--r-md);
  color: var(--brand-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s;
}
.chart-button:hover { background: linear-gradient(135deg, rgba(255,165,2,0.18), rgba(255,165,2,0.08)); }

/* --- Pairs That Move Together widget ------------------------------------- */
.cm-radial {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 0;
}
.cm-node { position: relative; text-align: center; }
.cm-pill {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,165,2,0.18), rgba(255,165,2,0.05));
  border: 1.5px solid rgba(255,165,2,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 4px;
  box-shadow: 0 0 16px rgba(255,165,2,0.15);
  line-height: 1;
}
.cm-pill-name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.cm-rel { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.cm-rel-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: var(--r-md);
  background: rgba(20,27,45,0.4);
  border: 0.5px solid var(--border-soft);
}
.cm-rel-row.danger {
  border-color: rgba(255,69,85,0.35);
  background: linear-gradient(90deg, rgba(255,69,85,0.05), rgba(20,27,45,0.4) 60%);
}
.cm-rel-row.opp {
  border-color: rgba(16,233,129,0.3);
  background: linear-gradient(90deg, rgba(16,233,129,0.04), rgba(20,27,45,0.4) 60%);
}
.cm-pair-tag { font-size: 14px; letter-spacing: -2px; line-height: 1; }
.cm-rel-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
  min-width: 115px;
}
.cm-rel-bar {
  position: relative;
  height: 6px;
  background: rgba(10,14,26,0.7);
  border-radius: 3px;
  overflow: hidden;
}
.cm-rel-bar-fill { height: 100%; border-radius: 3px; }
.cm-rel-action {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 14px;
  white-space: nowrap;
}
.cm-rel-action.danger { color: var(--stop-red); background: rgba(255,69,85,0.12); border: 0.5px solid rgba(255,69,85,0.35); }
.cm-rel-action.opp { color: var(--money-green); background: rgba(16,233,129,0.1); border: 0.5px solid rgba(16,233,129,0.3); }
.cm-rel-action.neutral { color: var(--text-muted); background: rgba(148,163,184,0.08); border: 0.5px solid rgba(148,163,184,0.25); }

/* --- Bob's Desk (news wire) ----------------------------------------------- */
.news-wire-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border-soft);
}
.news-wire-item:last-child { border-bottom: none; }
.bob-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #451a03;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(255,165,2,0.3);
  position: relative;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  overflow: hidden;
}
.bob-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bob-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--money-green);
  border: 2px solid #0a0e1a;
  box-shadow: 0 0 4px var(--money-green);
}
.news-byline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brand-gold);
  letter-spacing: 1px;
  font-weight: 600;
  flex-wrap: wrap;
}
.news-byline .time { color: var(--text-dim); font-weight: 500; }
.news-byline .impact {
  color: var(--stop-red);
  background: rgba(255,69,85,0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
}
.news-byline .impact.mid {
  color: var(--brand-gold);
  background: rgba(255,165,2,0.1);
}
.news-byline .impact.low {
  color: var(--text-muted);
  background: rgba(148,163,184,0.1);
}
.news-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-take {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}
.news-take .verdict {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
}
.verdict.bull  { color: var(--money-green); background: rgba(16,233,129,0.1); }
.verdict.bear  { color: var(--stop-red); background: rgba(255,69,85,0.1); }
.verdict.watch { color: var(--brand-gold); background: rgba(255,165,2,0.1); }
.verdict.neutral { color: var(--text-muted); background: rgba(148,163,184,0.1); }

/* --- Sessions panel ------------------------------------------------------- */
.sessions-list { display: flex; flex-direction: column; gap: 6px; }
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
}
.session-row .name { color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.session-row.active .name::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--money-green);
  box-shadow: 0 0 8px var(--money-green);
  animation: pulse-dot 1.8s infinite;
}
.session-row:not(.active) .name::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dimmer);
}
.session-row .time { font-family: var(--font-mono); color: var(--text-dim); font-size: 11px; }

/* --- Chart modal ---------------------------------------------------------- */
.chart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.chart-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,15,0.92);
  backdrop-filter: blur(8px);
}
.chart-modal-card {
  position: absolute;
  top: 24px; left: 24px; right: 24px; bottom: 24px;
  background: var(--bg-panel);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(10,14,26,0.6);
}
.chart-modal-title { display: flex; align-items: center; gap: 11px; }
.chart-pair-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.chart-pair-flags { font-size: 20px; letter-spacing: -3px; line-height: 1; }
.chart-modal-controls { display: flex; align-items: center; gap: 7px; }
.chart-modal-controls button {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color .15s, color .15s;
}
.chart-modal-controls button:hover { border-color: rgba(255,165,2,0.4); color: var(--text); }
.chart-modal-controls button.active {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  background: rgba(255,165,2,0.08);
}
.chart-modal-divider {
  width: 0.5px;
  height: 22px;
  background: var(--border);
}
.chart-close {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  font-size: 22px !important;
  width: 32px; height: 32px;
  padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
}
.chart-close:hover { color: var(--stop-red) !important; }
.chart-canvas { flex: 1; min-height: 0; background: var(--bg-base); }
.chart-rsi-canvas { height: 110px; border-top: 0.5px solid var(--border); background: var(--bg-base); }
.chart-meta {
  display: flex; gap: 18px;
  padding: 9px 18px;
  border-top: 0.5px solid var(--border);
  background: rgba(10,14,26,0.6);
  flex-wrap: wrap;
}
.chart-meta-item { display: flex; gap: 6px; align-items: center; font-family: var(--font-mono); font-size: 11px; }
.chart-meta-item .lbl { color: var(--text-dim); font-size: 10px; }
.chart-meta-item .val { color: var(--text); }
@media (max-width: 768px) {
  .chart-modal-card { top: 8px; left: 8px; right: 8px; bottom: 8px; }
  .chart-modal-controls button:not(.active):not(.chart-close) { display: none; }
}

/* ============================================================================
   V2 — VERTICAL SECTIONS LAYOUT (Bloomberg-article style)
   ============================================================================
   Replaces the dense 3-column terminal grid with stacked full-width sections.
   Each section gets its own header, breathing room, and visual rhythm.
   ========================================================================== */

.layout-terminal .page-main {
  max-width: 1280px;
  padding: 28px 32px 56px;
}

/* Force emoji rendering on flag elements regardless of inherited font */
.flag-emoji, .hero-flag, .cot-flag, .pair-flags, .cm-pair-tag,
.cm-pill, .pair-name, .session-row .name, .ticker-pair {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', var(--font-sans);
}
.pair-name, .ticker-pair, .cot-ccy {
  /* Pair codes use mono — only the flag prefix needs emoji font */
  font-family: var(--font-mono);
}

/* --- Welcome row (v2) ----------------------------------------------------- */
.welcome-v2 {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.welcome-v2 h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 5px;
}
.welcome-v2 .sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Section headers (v2) ------------------------------------------------- */
.section {
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}
.section-sub {
  font-size: 12px;
  color: var(--text-dim);
}
.section-action {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Surface (replaces .panel for v2 sections) ---------------------------- */
.surface {
  background: rgba(15, 20, 34, 0.4);
  border: 0.5px solid rgba(31, 41, 55, 0.6);
  border-radius: 14px;
  padding: 22px;
}
.surface-tight { padding: 18px; }

/* --- Hero band (the full-width signal feature) ---------------------------- */
.hero-band {
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(20,27,45,0.65), rgba(10,14,26,0.4));
  border: 0.5px solid rgba(255,165,2,0.18);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,165,2,0.5), transparent);
}
.hero-band::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle at top right, rgba(255,165,2,0.06), transparent 60%);
  pointer-events: none;
}
.hero-head-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.hero-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.hero-pair-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-flag-v2 {
  font-size: 38px;
  letter-spacing: -4px;
  line-height: 1;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', var(--font-sans);
}
.hero-name-v2 {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1;
}
.hero-dir-v2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 7px 16px;
  border-radius: 8px;
}
.hero-dir-v2.long  { background: rgba(16,233,129,0.10); border: 0.5px solid rgba(16,233,129,0.35); color: var(--money-green); }
.hero-dir-v2.short { background: rgba(255,69,85,0.10); border: 0.5px solid rgba(255,69,85,0.35); color: var(--stop-red); }
.hero-badges-v2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.hero-conv-v2 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 4px 11px;
  border-radius: 14px;
}
.hero-conv-v2.high   { color: var(--money-green); background: rgba(16,233,129,0.06); border: 0.5px solid rgba(16,233,129,0.3); }
.hero-conv-v2.medium { color: var(--brand-gold); background: rgba(255,165,2,0.06); border: 0.5px solid rgba(255,165,2,0.3); }
.hero-conv-v2.low    { color: var(--text-muted); background: rgba(148,163,184,0.06); border: 0.5px solid rgba(148,163,184,0.25); }

.hero-body-v2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-body-v2 { grid-template-columns: 1fr; gap: 28px; }
  .hero-band { padding: 24px; }
  .hero-name-v2 { font-size: 26px; }
  .hero-flag-v2 { font-size: 28px; }
}
.thesis-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.thesis-tile {
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(10,14,26,0.4);
  border: 0.5px solid rgba(31,41,55,0.55);
}
.thesis-tile.smart .thesis-val  { color: var(--money-green); }
.thesis-tile.smart.bear .thesis-val { color: var(--stop-red); }
.thesis-tile.retail .thesis-val { color: var(--stop-red); }
.thesis-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 6px;
}
.thesis-val {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.thesis-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.thesis-rr {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(10,14,26,0.4);
  border: 0.5px solid rgba(31,41,55,0.55);
}
.thesis-rr .bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(20,27,45,0.7);
}
.thesis-rr .bar > div { height: 100%; }
.thesis-rr .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.thesis-rr .ratio { color: var(--money-green); font-weight: 700; }

.hero-bolt-v2 {
  margin-top: 26px;
  padding: 14px 18px;
  background: rgba(10,14,26,0.5);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* --- COT 3×3 grid (replaces the rail) ------------------------------------ */
.cot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .cot-grid { grid-template-columns: repeat(2, 1fr); }
}
.cot-cell {
  padding: 14px;
  border-radius: 10px;
  background: rgba(10,14,26,0.5);
  border: 0.5px solid rgba(31,41,55,0.4);
  position: relative;
  overflow: hidden;
  transition: border-color .15s;
}
.cot-cell:hover { border-color: rgba(31,41,55,0.7); }
.cot-cell.extreme-long {
  border-color: rgba(16,233,129,0.3);
  box-shadow: 0 0 14px rgba(16,233,129,0.06);
}
.cot-cell.extreme-short {
  border-color: rgba(255,69,85,0.3);
  box-shadow: 0 0 14px rgba(255,69,85,0.06);
}
.cot-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cot-cell-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cot-cell .cot-flag {
  font-size: 20px;
  line-height: 1;
}
.cot-cell .cot-ccy {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.5px;
}
.cot-cell .cot-val-big {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}
.cot-cell .cot-track {
  height: 3px;
  background: rgba(20,27,45,0.6);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.cot-cell .cot-track-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .5s;
}
.cot-cell .cot-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Crowd bias rows in v2 surface ---------------------------------------- */
.crowd-row-v2 {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(10,14,26,0.4);
  border: 0.5px solid rgba(31,41,55,0.4);
  margin-bottom: 8px;
}
.crowd-row-v2:last-child { margin-bottom: 0; }
.crowd-row-v2.signal {
  border-color: rgba(255,165,2,0.4);
  background: linear-gradient(90deg, rgba(255,165,2,0.05), rgba(10,14,26,0.4) 60%);
}
.crowd-row-v2 .crowd-bar {
  position: relative;
  height: 18px;
  background: rgba(10,14,26,0.7);
  border-radius: 4px;
  overflow: hidden;
  border: 0.5px solid rgba(31,41,55,0.4);
}

/* --- Tri row at the bottom (Sessions + Bob full width) -------------------- */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .bottom-row { grid-template-columns: 1fr; }
}
.context-tile {
  background: rgba(15,20,34,0.4);
  border: 0.5px solid rgba(31,41,55,0.5);
  border-radius: 12px;
  padding: 20px;
}
.context-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.context-tile-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.context-tile-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Session rows refined (v2 with progress bar + countdown) ------------- */
.session-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.session-row-v2 {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(10,14,26,0.3);
  border-left: 2px solid transparent;
  transition: background .2s, border-color .2s;
}
.session-row-v2.active {
  background: rgba(16,233,129,0.04);
  border-left-color: var(--money-green);
}
.session-row-v2 .session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.session-row-v2 .name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
  font-size: 12px;
  font-family: 'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',var(--font-sans);
}
.session-row-v2 .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.session-row-v2 .dot.on  { background: var(--money-green); box-shadow: 0 0 6px var(--money-green); animation: pulse-dot 1.8s infinite; }
.session-row-v2 .dot.off { background: var(--text-dimmer); }
.session-row-v2 .time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.session-row-v2.active .time {
  color: var(--money-green);
  font-weight: 600;
}
.session-progress {
  height: 3px;
  background: rgba(20,27,45,0.6);
  border-radius: 2px;
  overflow: hidden;
}
.session-progress-fill {
  height: 100%;
  background: linear-gradient(to right, rgba(16,233,129,0.4), var(--money-green));
  border-radius: 2px;
  transition: width .4s;
  box-shadow: 0 0 4px rgba(16,233,129,0.3);
}
.session-row-v2:not(.active) .session-progress-fill {
  background: rgba(148,163,184,0.12);
  box-shadow: none;
}

/* --- Bob's items refined -------------------------------------------------- */
.bob-item-v2 {
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(31,41,55,0.3);
}
.bob-item-v2:last-child { border-bottom: none; padding-bottom: 0; }
.bob-item-v2:first-child { padding-top: 0; }
.bob-byline-v2 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--brand-gold);
  font-weight: 600;
  margin-bottom: 5px;
}
.bob-byline-v2 .ts { color: var(--text-dim); margin-left: 5px; }
.bob-byline-v2 .imp { margin-left: 7px; padding: 1px 5px; border-radius: 3px; font-size: 8px; }
.bob-byline-v2 .imp.high { color: var(--stop-red); background: rgba(255,69,85,0.1); }
.bob-byline-v2 .imp.med  { color: var(--brand-gold); background: rgba(255,165,2,0.1); }
.bob-byline-v2 .imp.low  { color: var(--text-muted); background: rgba(148,163,184,0.1); }
.bob-title-v2 {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: 5px;
}
.bob-take-v2 {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.55;
}
.bob-take-v2 .verdict {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  display: inline-block;
}
.bob-take-v2 .verdict.bull    { color: var(--money-green); background: rgba(16,233,129,0.1); }
.bob-take-v2 .verdict.bear    { color: var(--stop-red); background: rgba(255,69,85,0.1); }
.bob-take-v2 .verdict.watch   { color: var(--brand-gold); background: rgba(255,165,2,0.1); }
.bob-take-v2 .verdict.neutral { color: var(--text-muted); background: rgba(148,163,184,0.08); }

/* --- Bob's avatar in v2 --------------------------------------------------- */
.bob-row-v2 {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.bob-avatar-v2 {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #451a03;
  font-size: 14px;
  position: relative;
  flex-shrink: 0;
}
.bob-avatar-v2 img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bob-avatar-v2::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--money-green);
  border: 2px solid #0a0e1a;
}

/* --- Empty states --------------------------------------------------------- */
.empty-state {
  padding: 32px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}
.empty-state .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dimmer);
  letter-spacing: 1.2px;
  margin-top: 5px;
}

/* --- Ticker strip — indicative-mode label --------------------------------- */
.ticker-strip {
  position: relative;
}
.ticker-indicative-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dimmer);
  background: rgba(10,14,26,0.95);
  padding: 4px 10px;
  border-radius: 10px;
  border: 0.5px solid rgba(31,41,55,0.6);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================================
   TWEMOJI — SVG flag rendering for cross-browser consistency
   ============================================================================ */
.tw-emoji {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.125em;
  margin: 0 0.5px;
}
/* When two flags appear back-to-back (pair flags), tighten them */
.pair-flags .tw-emoji,
.hero-flag-v2 .tw-emoji,
.cm-pair-tag .tw-emoji {
  margin: 0 -1px;
}
.hero-flag-v2 .tw-emoji {
  height: 0.85em;
  width: 0.85em;
  vertical-align: -0.08em;
}
.cot-flag .tw-emoji {
  height: 0.95em;
  width: 0.95em;
}
.ticker-pair .tw-emoji {
  height: 0.9em;
  width: 0.9em;
  margin-right: 4px;
}

/* ============================================================================
   CHART MODAL — empty state when candles aren't loaded yet
   ============================================================================
   Shows the signal levels as a useful summary instead of "Couldn't load
   chart data." even when the price feed isn't populated.
   ========================================================================== */
.chart-empty-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100%;
  padding: 40px 24px;
  text-align: center;
}
.chart-empty-v2.simple {
  gap: 8px;
}
.chart-empty-v2.simple > div:first-child {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}
.chart-empty-v2.simple .sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.5;
}
.chart-empty-pair {
  display: flex;
  align-items: center;
  gap: 16px;
}
.chart-empty-name {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.chart-empty-dir {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 7px 14px;
  border-radius: 8px;
}
.chart-empty-dir.long  { background: rgba(16,233,129,0.10); border: 0.5px solid rgba(16,233,129,0.35); color: var(--money-green); }
.chart-empty-dir.short { background: rgba(255,69,85,0.10); border: 0.5px solid rgba(255,69,85,0.35); color: var(--stop-red); }
.chart-empty-levels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  max-width: 560px;
  width: 100%;
}
.chart-empty-levels .lvl {
  padding: 16px 14px;
  border-radius: 12px;
  border: 0.5px solid transparent;
}
.chart-empty-levels .lvl.t { background: rgba(16,233,129,0.04); border-color: rgba(16,233,129,0.18); }
.chart-empty-levels .lvl.e { background: rgba(255,165,2,0.06); border-color: rgba(255,165,2,0.28); }
.chart-empty-levels .lvl.s { background: rgba(255,69,85,0.04); border-color: rgba(255,69,85,0.18); }
.lvl-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  margin-bottom: 6px;
}
.lvl.t .lvl-lbl { color: var(--money-green); }
.lvl.e .lvl-lbl { color: var(--brand-gold); }
.lvl.s .lvl-lbl { color: var(--stop-red); }
.lvl-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.lvl-pips {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}
.chart-empty-msg {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 500px;
}

/* ============================================================================
   BOB'S DESK — pending (uncurated) item state
   ============================================================================
   When a wire item exists but Bob hasn't curated it yet, show the raw
   headline with a muted "queue" treatment. Auto-upgrades to full curated
   render on next refresh after Bob processes it.
   ========================================================================== */
.bob-item-v2.pending {
  opacity: 0.78;
}
.bob-item-v2.pending .bob-title-v2.raw {
  color: var(--text-2);
  font-weight: 400;
  font-style: italic;
}
.bob-item-v2.pending .pending-take {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.bob-byline-v2 .imp.wire {
  color: var(--brand-gold);
  background: rgba(255,165,2,0.08);
}
.wire-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(20,27,45,0.55);
  border: 0.5px dashed rgba(255,165,2,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.wire-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 8px rgba(255,165,2,0.6);
  animation: pulse-dot 2s infinite;
}

/* ============================================================================
   CHAT WIDGET — floating bubble bottom-right
   ============================================================================
   Self-contained styles. Loads on every page via app/layout.php.
   ========================================================================== */

#ace-chat-root {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9000;
  font-family: var(--font-sans);
}

/* --- Toggle button -------------------------------------------------------- */
#ace-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
  color: var(--bg-base);
  border: none;
  border-radius: 28px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(255,165,2,0.35),
    0 2px 6px rgba(0,0,0,0.3);
  transition: transform .15s, box-shadow .2s;
}
#ace-chat-toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(255,165,2,0.45),
    0 3px 8px rgba(0,0,0,0.35);
}
#ace-chat-toggle svg { width: 18px; height: 18px; }
#ace-chat-toggle .icon-close { display: none; }
#ace-chat-root.open #ace-chat-toggle .icon-open { display: none; }
#ace-chat-root.open #ace-chat-toggle .icon-close { display: block; }
#ace-chat-root.open #ace-chat-toggle .ace-chat-toggle-label { display: none; }
#ace-chat-root.open #ace-chat-toggle {
  padding: 11px;
  border-radius: 50%;
}

/* --- Panel ---------------------------------------------------------------- */
#ace-chat-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(180deg, rgba(20,27,45,0.97), rgba(10,14,26,0.97));
  border: 0.5px solid rgba(255,165,2,0.25);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 40px rgba(255,165,2,0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform .2s ease-out, opacity .2s ease-out;
}
#ace-chat-root.open #ace-chat-panel {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- Header --------------------------------------------------------------- */
.ace-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(15,20,34,0.5);
  border-bottom: 0.5px solid rgba(31,41,55,0.7);
  flex-shrink: 0;
}
.ace-chat-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ace-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-base);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 15px;
  box-shadow: 0 0 14px rgba(255,165,2,0.25);
  position: relative;
  flex-shrink: 0;
}
.ace-chat-avatar.small {
  width: 26px;
  height: 26px;
  font-size: 11px;
  box-shadow: none;
}
.ace-chat-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}
.ace-chat-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.ace-chat-header-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--money-green);
  box-shadow: 0 0 6px var(--money-green);
  animation: pulse-dot 1.8s infinite;
}
.ace-chat-header-status .dot.offline {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}
.ace-chat-collapse {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ace-chat-collapse:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.ace-chat-collapse svg { width: 18px; height: 18px; }

/* --- Messages ------------------------------------------------------------- */
.ace-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.3) transparent;
}
.ace-chat-messages::-webkit-scrollbar { width: 6px; }
.ace-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.25);
  border-radius: 3px;
}

.ace-msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  animation: ace-msg-in .25s ease-out;
}
@keyframes ace-msg-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ace-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ace-msg-assistant, .ace-msg-system {
  align-self: flex-start;
}
.ace-msg-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  word-wrap: break-word;
}
.ace-msg-user .ace-msg-bubble {
  background: linear-gradient(135deg, rgba(255,165,2,0.12), rgba(255,165,2,0.06));
  border: 0.5px solid rgba(255,165,2,0.25);
  border-bottom-right-radius: 4px;
}
.ace-msg-assistant .ace-msg-bubble {
  background: rgba(15,20,34,0.7);
  border: 0.5px solid rgba(31,41,55,0.7);
  border-bottom-left-radius: 4px;
}
.ace-msg-system .ace-msg-bubble {
  background: rgba(148,163,184,0.08);
  border: 0.5px solid rgba(148,163,184,0.2);
  border-bottom-left-radius: 4px;
  color: var(--text-muted);
  font-style: italic;
}
.ace-msg-system .ace-chat-avatar.small {
  background: rgba(148,163,184,0.25);
  color: var(--text-muted);
  box-shadow: none;
}
.ace-msg-bubble a {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ace-msg-bubble a:hover { text-decoration: none; }

/* --- Typing indicator ----------------------------------------------------- */
.ace-chat-typing {
  padding: 0 16px 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ace-chat-typing-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: calc(100% - 36px);
}
.ace-chat-typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(15,20,34,0.7);
  border: 0.5px solid rgba(31,41,55,0.7);
  border-radius: 14px;
  flex-shrink: 0;
}
.ace-chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ace-typing 1.4s infinite;
}
.ace-chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ace-chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ace-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.ace-chat-typing-label {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  animation: ace-label-fade .3s ease-out;
}
.ace-chat-typing-label:empty {
  display: none;
}
@keyframes ace-label-fade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Input row ------------------------------------------------------------ */
.ace-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 0.5px solid rgba(31,41,55,0.7);
  background: rgba(10,14,26,0.5);
  flex-shrink: 0;
}
#ace-chat-input {
  flex: 1;
  background: rgba(10,14,26,0.7);
  border: 0.5px solid rgba(31,41,55,0.7);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
#ace-chat-input:focus {
  border-color: rgba(255,165,2,0.4);
}
#ace-chat-input::placeholder { color: var(--text-dim); }

.ace-chat-input-row button {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
  border: none;
  color: var(--bg-base);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s;
}
.ace-chat-input-row button:hover { transform: translateY(-1px); }
.ace-chat-input-row button svg { width: 16px; height: 16px; }

/* --- Footer --------------------------------------------------------------- */
.ace-chat-foot {
  font-size: 10px;
  color: var(--text-dimmer);
  padding: 6px 14px 10px;
  text-align: center;
  background: rgba(10,14,26,0.5);
  letter-spacing: 0.2px;
}
.ace-chat-foot a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 480px) {
  #ace-chat-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 90px);
    max-height: calc(100vh - 90px);
    bottom: 70px;
    right: -6px;
  }
  #ace-chat-root {
    bottom: 14px;
    right: 14px;
  }
}


/* ============================================================================
 * Live Activity Feed widget (v2 - polished animations)
 * ----------------------------------------------------------------------------
 * Diff-based row rendering with smooth slide-in/out, per-second time ticks,
 * pulsing live dot that flashes harder on refresh, progress bar showing
 * countdown to next poll, ambient gradient sheen.
 * ========================================================================= */

.activity-feed-card {
  position: relative;
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(255, 165, 2, 0.04), transparent 60%),
    radial-gradient(600px 200px at 80% 100%, rgba(16, 233, 129, 0.03), transparent 60%),
    rgba(15, 20, 34, 0.7);
  border: 1px solid rgba(31, 41, 55, 0.8);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Top progress bar that fills as we approach next refresh */
.activity-progress {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg,
    rgba(16, 233, 129, 0.3) 0%,
    rgba(16, 233, 129, 0.8) 50%,
    rgba(255, 165, 2, 0.8) 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
  pointer-events: none;
}

.activity-progress.refreshing {
  animation: progress-refresh 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progress-refresh {
  0%   { width: 100%; opacity: 1;   box-shadow: 0 0 12px rgba(16, 233, 129, 0.6); }
  60%  { width: 100%; opacity: 0.8; box-shadow: 0 0 8px rgba(16, 233, 129, 0.4); }
  100% { width: 0;    opacity: 1;   box-shadow: none; }
}

.activity-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.4);
  position: relative;
}

.activity-feed-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

.activity-feed-title .title-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(16, 233, 129, 0.7);
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(16, 233, 129, 0.08);
  border: 0.5px solid rgba(16, 233, 129, 0.2);
}

/* Pulsing live dot */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10e981;
  box-shadow: 0 0 6px rgba(16, 233, 129, 0.7);
  animation: live-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(16, 233, 129, 0.35);
  animation: live-pulse-halo 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(0.85); opacity: 0.7; }
}

@keyframes live-pulse-halo {
  0%   { transform: scale(0.5); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Stronger pulse right after a refresh just landed */
.live-dot.just-refreshed {
  animation: live-refresh-burst 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes live-refresh-burst {
  0%   { transform: scale(1);   box-shadow: 0 0 6px rgba(16, 233, 129, 0.7); }
  20%  { transform: scale(1.6); box-shadow: 0 0 18px rgba(16, 233, 129, 1); }
  100% { transform: scale(1);   box-shadow: 0 0 6px rgba(16, 233, 129, 0.7); }
}

.activity-feed-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
}

.activity-feed-count {
  font-size: 18px;
  font-weight: 700;
  color: #10e981;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(16, 233, 129, 0.3);
}

.online-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.activity-feed-list {
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}

.activity-feed-list::-webkit-scrollbar       { width: 4px; }
.activity-feed-list::-webkit-scrollbar-track { background: transparent; }
.activity-feed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 165, 2, 0.25);
  border-radius: 2px;
}

.activity-feed-empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 24px 0;
  text-align: center;
  font-style: italic;
  opacity: 0.7;
}

/* --- Row baseline --- */

.activity-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.25);
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
  will-change: transform, opacity;
}

.activity-row:last-child { border-bottom: none; }

.activity-row:hover {
  background: rgba(31, 41, 55, 0.2);
}

/* --- Entry animation --- */
/*
 * Two-phase animation: a row enters at the top of the list with
 * "entering" class (compressed, hidden), then on next frame the
 * "entered" class triggers expand + fade-in.
 */

.activity-row-entering {
  opacity: 0;
  transform: translateY(-20px) scaleY(0.6);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  overflow: hidden;
}

.activity-row-entered {
  animation: row-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes row-enter {
  0% {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.6);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    background: rgba(255, 165, 2, 0.15);
  }
  60% {
    background: rgba(255, 165, 2, 0.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: 80px;
    padding-top: 11px;
    padding-bottom: 11px;
    background: transparent;
  }
}

/* --- Exit animation --- */

.activity-row-leaving {
  animation: row-leave 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes row-leave {
  0%   { opacity: 1; transform: translateX(0)    scale(1); max-height: 60px; }
  100% { opacity: 0; transform: translateX(-12px) scale(0.95); max-height: 0; padding-top: 0; padding-bottom: 0; }
}

/* --- Icon with subtle glow effect --- */

.activity-icon {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.activity-icon svg {
  width: 13px;
  height: 13px;
  position: relative;
  z-index: 1;
}

.activity-icon .icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.4;
  z-index: 0;
}

.activity-icon.tone-up      { background: rgba(16, 233, 129, 0.14); color: #10e981; }
.activity-icon.tone-down    { background: rgba(255, 69, 85, 0.14);  color: #ff4555; }
.activity-icon.tone-amber   { background: rgba(255, 165, 2, 0.14);  color: #ffa502; }
.activity-icon.tone-neutral { background: rgba(124, 132, 152, 0.10); color: #9aa3b5; }

/* When a row is newly entered, the icon does a brief pop */
.activity-row-entered .activity-icon {
  animation: icon-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Body content --- */

.activity-body {
  min-width: 0;
  overflow: hidden;
}

.activity-label {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* Time label transitions smoothly when text changes */
.activity-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

.activity-row:hover .activity-time {
  color: rgba(16, 233, 129, 0.8);
}

/* Mobile tighten */
@media (max-width: 640px) {
  .activity-feed-header { padding: 14px 14px 12px; }
  .activity-row {
    padding: 10px 14px;
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
  }
  .activity-feed-list { max-height: 300px; }
  .activity-label    { font-size: 11.5px; }
  .activity-feed-count { font-size: 16px; }
  .title-sub { display: none; }
}


/* ============================================================================
 * Crowd Bias liveness (v1.1.19 - DRAMATIC)
 * ----------------------------------------------------------------------------
 * Bloomberg-Terminal-meets-Stripe energy:
 *   - Flowing animated gradient fills on bars
 *   - Multiple shimmer beams always running
 *   - Glowing inner shadows that pulse
 *   - Flash burst on number updates
 *   - Dramatic LIVE badge with gradient + halo
 *   - SIGNAL pill big multi-layer glow pulse
 * ========================================================================= */

/* === LIVE BADGE in section header ===================================== */

.section-action-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(16, 233, 129, 0.12) 0%,
    rgba(16, 233, 129, 0.04) 100%);
  border: 1px solid rgba(16, 233, 129, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 12px rgba(16, 233, 129, 0.15),
    inset 0 0 8px rgba(16, 233, 129, 0.06);
}

/* Animated gradient sheen across the badge */
.section-action-live::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16, 233, 129, 0.18) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: badge-sheen 4s ease-in-out infinite;
}

@keyframes badge-sheen {
  0%, 30%, 100% { transform: translateX(-100%); }
  60%           { transform: translateX(100%); }
}

.section-action-live .live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10e981;
  box-shadow:
    0 0 8px rgba(16, 233, 129, 1),
    0 0 16px rgba(16, 233, 129, 0.6);
  animation: live-pulse-strong 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
  z-index: 2;
}

.section-action-live .live-dot::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 233, 129, 0.5);
  animation: live-pulse-halo-strong 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}

@keyframes live-pulse-strong {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 8px rgba(16, 233, 129, 1), 0 0 16px rgba(16, 233, 129, 0.6); }
  50%      { transform: scale(0.78); box-shadow: 0 0 4px rgba(16, 233, 129, 0.7); }
}

@keyframes live-pulse-halo-strong {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.section-action-live .live-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #10e981;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px rgba(16, 233, 129, 0.4);
}

/* === BAR CONTAINER + RAIL ============================================ */

.crowd-bias-surface .crowd-bar {
  /* Stronger background, more depth */
  background: rgba(4, 8, 18, 0.85) !important;
  border: 1px solid rgba(31, 41, 55, 0.6) !important;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.4),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.03);
}

/* === BULL bar - flowing green gradient with glow ===================== */

.crowd-bias-surface .crowd-bull {
  /* DO NOT touch position - originals are absolute (left:0/right:0) */
  transition: width 1.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  background:
    linear-gradient(90deg,
      #0a8654 0%,
      #10e981 25%,
      #2ef0a0 50%,
      #10e981 75%,
      #0a8654 100%) !important;
  background-size: 200% 100% !important;
  animation: bar-flow-green 4s linear infinite;
  box-shadow:
    inset 0 0 12px rgba(16, 233, 129, 0.4),
    0 0 8px rgba(16, 233, 129, 0.3);
  color: #042818 !important;
  font-weight: 800 !important;
}

@keyframes bar-flow-green {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

/* === BEAR bar - flowing red gradient with glow ======================= */

.crowd-bias-surface .crowd-bear {
  transition: width 1.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  background:
    linear-gradient(90deg,
      #8a1d28 0%,
      #ff4555 25%,
      #ff6878 50%,
      #ff4555 75%,
      #8a1d28 100%) !important;
  background-size: 200% 100% !important;
  animation: bar-flow-red 4.5s linear infinite reverse;
  box-shadow:
    inset 0 0 12px rgba(255, 69, 85, 0.4),
    0 0 8px rgba(255, 69, 85, 0.3);
  color: #2a0608 !important;
  font-weight: 800 !important;
}

@keyframes bar-flow-red {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

/* === Multiple shimmer beams that always run ========================== */

.crowd-bias-surface .crowd-bull::before,
.crowd-bias-surface .crowd-bull::after,
.crowd-bias-surface .crowd-bear::before,
.crowd-bias-surface .crowd-bear::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  pointer-events: none;
  filter: blur(1px);
}

.crowd-bias-surface .crowd-bull::before {
  animation: bar-shimmer 3.5s linear infinite;
}
.crowd-bias-surface .crowd-bull::after {
  animation: bar-shimmer 3.5s linear infinite;
  animation-delay: 1.8s;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
}
.crowd-bias-surface .crowd-bear::before {
  animation: bar-shimmer 4s linear infinite;
  animation-delay: 0.5s;
}
.crowd-bias-surface .crowd-bear::after {
  animation: bar-shimmer 4s linear infinite;
  animation-delay: 2.3s;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%);
}

@keyframes bar-shimmer {
  0%   { left: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* === Pct labels - bright white, no shadow ============================ */

.crowd-pct-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  color: #ffffff !important;
  text-shadow: none !important;
  transition: transform 0.4s ease;
}

.crowd-pct-label.flash {
  animation: pct-flash 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pct-flash {
  0%   { transform: scale(1);    }
  30%  { transform: scale(1.18); }
  100% { transform: scale(1);    }
}

/* === Row hover - dramatic lift ======================================= */

.crowd-bias-surface .crowd-row-v2 {
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease;
  border-radius: 8px;
}

.crowd-bias-surface .crowd-row-v2:hover {
  background: rgba(31, 41, 55, 0.25);
  transform: translateX(4px) scale(1.005);
  box-shadow:
    -3px 0 0 rgba(16, 233, 129, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(16, 233, 129, 0.08);
}

.crowd-bias-surface .crowd-row-v2.signal:hover {
  box-shadow:
    -3px 0 0 rgba(255, 165, 2, 0.7),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 165, 2, 0.12);
}

/* === Signal row gets stronger ambient glow =========================== */

.crowd-bias-surface .crowd-row-v2.signal {
  animation: signal-row-breathe 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes signal-row-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 2, 0); }
  50%      { box-shadow: 0 0 24px rgba(255, 165, 2, 0.12), inset 0 0 0 1px rgba(255, 165, 2, 0.15); }
}

/* === SIGNAL pill - DRAMATIC multi-layer glow ========================= */

.action-pill.has-signal-pulse {
  position: relative;
  animation: signal-pill-glow 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes signal-pill-glow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(16, 233, 129, 0.6),
      0 0 0 0 rgba(16, 233, 129, 0.3),
      0 0 8px rgba(16, 233, 129, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(16, 233, 129, 0),
      0 0 0 16px rgba(16, 233, 129, 0),
      0 0 20px rgba(16, 233, 129, 0.8);
  }
}

/* Outer ring expanding effect */
.action-pill.has-signal-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(16, 233, 129, 0.6);
  animation: signal-pill-ring 2.2s cubic-bezier(0.2, 0, 0.4, 1) infinite;
  pointer-events: none;
}

@keyframes signal-pill-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}


/* ============================================================================
 * LIGHT LAYOUT (marketing pages: /performance and future light pages)
 * ----------------------------------------------------------------------------
 * Scoped to body.layout-light so it doesn't bleed into dark dashboard surfaces.
 * Theme: warm cream background, Inter typography, deep emerald/brick accents,
 *        bronze gold highlight. Editorial-but-modern fintech feel.
 * ========================================================================= */

body.layout-light {
  /* Override theme variables so ANY class inheriting var(--text) etc.
   * automatically gets dark-on-cream colours. This is the master defence
   * against light-mode text-bleed bugs (e.g. .pair-name was invisible
   * before this catch-all was added). */
  --text:        #1a1612;
  --text-2:      #2a2218;
  --text-muted:  #6b5d4a;
  --text-dim:    #8e8270;
  --text-dimmer: #9a8b75;
  --border:      rgba(74, 60, 36, 0.18);
  --border-soft: rgba(74, 60, 36, 0.10);

  background:
    radial-gradient(1400px 700px at 10% 0%, rgba(202,158,67,0.05), transparent 60%),
    radial-gradient(1200px 600px at 90% 100%, rgba(56,142,90,0.04), transparent 60%),
    #faf8f4 !important;
  color: #1a1612;
  -webkit-font-smoothing: antialiased;
}

/* Hide dark-theme background layers on light pages */
body.layout-light .aurora,
body.layout-light .grid-bg {
  display: none !important;
}

/* ============================================================================
 * PERFORMANCE PAGE — scoped to body.layout-light
 * ========================================================================= */

body.layout-light .perf-hero {
  padding: 24px 0 32px;
  position: relative;
}
body.layout-light .perf-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
body.layout-light .perf-hero-text { flex: 1; min-width: 280px; }

body.layout-light .perf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #0f7a4c;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 11px 5px 9px;
  border-radius: 12px;
  background: rgba(15, 122, 76, 0.08);
  border: 1px solid rgba(15, 122, 76, 0.25);
}

body.layout-light .perf-eyebrow .live-dot {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #0f7a4c;
  box-shadow: 0 0 6px rgba(15, 122, 76, 0.5);
  animation: live-pulse 2.4s infinite;
}
body.layout-light .perf-eyebrow .live-dot::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(15, 122, 76, 0.35);
  animation: live-pulse-halo 2.4s infinite;
  z-index: -1;
}

body.layout-light .perf-headline {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  color: #1a1612;
}
body.layout-light .perf-headline .amber { color: #b67800; }
body.layout-light .perf-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #6b5d4a;
  max-width: 680px;
  margin: 0;
}

body.layout-light .perf-hero-toggle {
  display: inline-flex;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 10px;
  padding: 4px; gap: 2px;
}
body.layout-light .period-btn {
  padding: 7px 16px;
  background: transparent;
  border: none;
  color: #6b5d4a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
body.layout-light .period-btn:hover { color: #1a1612; }
body.layout-light .period-btn.active {
  background: rgba(182, 120, 0, 0.10);
  color: #8a5a00;
  box-shadow: inset 0 0 0 1px rgba(182, 120, 0, 0.3);
}

/* Hero stat tiles */
body.layout-light .perf-hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
body.layout-light .perf-hero-tile {
  position: relative;
  padding: 24px 26px 22px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
body.layout-light .perf-hero-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.06);
}
body.layout-light .perf-tile-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
body.layout-light .perf-tile-green .perf-tile-glow {
  background: radial-gradient(400px 200px at 0% 100%, rgba(15, 122, 76, 0.10), transparent 60%);
}
body.layout-light .perf-tile-amber .perf-tile-glow {
  background: radial-gradient(400px 200px at 0% 100%, rgba(182, 120, 0, 0.10), transparent 60%);
}
body.layout-light .perf-tile-neutral .perf-tile-glow { background: none; }

body.layout-light .perf-tile-label {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b5d4a;
  margin-bottom: 12px;
  font-weight: 500;
}
body.layout-light .perf-tile-big {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
body.layout-light .perf-tile-green .perf-tile-big { color: #0f7a4c; }
body.layout-light .perf-tile-amber .perf-tile-big { color: #8a5a00; }
body.layout-light .perf-tile-neutral .perf-tile-big { color: #1a1612; }
body.layout-light .perf-tile-meta {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #6b5d4a;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
body.layout-light .metric-up { color: #0f7a4c; font-weight: 600; }
body.layout-light .metric-divider { opacity: 0.4; }

body.layout-light .dim { color: #6b5d4a; }
body.layout-light .amber { color: #b67800; }
body.layout-light .green { color: #0f7a4c; }
body.layout-light .red { color: #c43a3a; }

/* Section wrappers */
body.layout-light .perf-section { margin-bottom: 36px; }
body.layout-light .perf-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
body.layout-light .perf-section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: #1a1612;
}
body.layout-light .perf-section-sub {
  font-size: 13px;
  color: #6b5d4a;
  margin-top: 4px;
  max-width: 720px;
  line-height: 1.55;
}
body.layout-light .perf-section-meta { display: flex; gap: 8px; }
body.layout-light .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}
body.layout-light .badge-green {
  color: #0f7a4c;
  background: rgba(15, 122, 76, 0.08);
  border: 1px solid rgba(15, 122, 76, 0.25);
}
body.layout-light .badge-dim {
  color: #6b5d4a;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(74, 60, 36, 0.12);
}
body.layout-light .perf-surface {
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Equity chart */
body.layout-light .equity-chart { width: 100%; height: auto; display: block; }
body.layout-light .perf-chart-card { padding: 18px 10px 6px; }

/* Secondary stats */
body.layout-light .perf-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
body.layout-light .perf-stat-tile {
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 10px;
  padding: 16px 18px;
  transition: background 0.25s;
}
body.layout-light .perf-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6b5d4a;
  margin-bottom: 8px;
  font-weight: 500;
}
body.layout-light .perf-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #1a1612;
}
body.layout-light .perf-stat-num.green { color: #0f7a4c; }
body.layout-light .perf-stat-num.red { color: #c43a3a; }
body.layout-light .perf-stat-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #6b5d4a;
  letter-spacing: 0.3px;
}

/* Heatmap */
body.layout-light .heatmap-wrapper { width: 100%; }
body.layout-light .heatmap-grid { display: flex; flex-direction: column; gap: 6px; }
body.layout-light .heatmap-header,
body.layout-light .heatmap-row {
  display: grid;
  grid-template-columns: 56px repeat(12, minmax(0, 1fr)) 90px;
  gap: 6px;
}
body.layout-light .heatmap-corner,
body.layout-light .heatmap-year-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b5d4a;
  display: flex; align-items: center;
}
body.layout-light .heatmap-mon-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #6b5d4a;
  text-align: center;
}
body.layout-light .heatmap-total-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: #6b5d4a;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
body.layout-light .heatmap-cell {
  aspect-ratio: 1.4 / 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
body.layout-light .heatmap-cell:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
body.layout-light .heatmap-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #1a1612;
  font-variant-numeric: tabular-nums;
}
body.layout-light .heatmap-year-total {
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(74, 60, 36, 0.12);
}
body.layout-light .heatmap-year-total.green { color: #0f7a4c; }
body.layout-light .heatmap-year-total.red { color: #c43a3a; }

/* Conviction cards */
body.layout-light .perf-conv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.layout-light .perf-conv-card {
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
body.layout-light .perf-conv-card:hover { transform: translateY(-3px); }
body.layout-light .perf-conv-card.conv-high {
  border-color: rgba(15, 122, 76, 0.3);
  background: linear-gradient(180deg, rgba(15, 122, 76, 0.025), rgba(255, 253, 248, 0.95));
}
body.layout-light .perf-conv-card.conv-medium {
  border-color: rgba(182, 120, 0, 0.3);
  background: linear-gradient(180deg, rgba(182, 120, 0, 0.025), rgba(255, 253, 248, 0.95));
}
body.layout-light .conv-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
body.layout-light .conv-tier-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 6px;
}
body.layout-light .conv-tier-badge.conv-high {
  background: rgba(15, 122, 76, 0.08);
  color: #0f7a4c;
  border: 1px solid rgba(15, 122, 76, 0.3);
}
body.layout-light .conv-tier-badge.conv-medium {
  background: rgba(182, 120, 0, 0.10);
  color: #8a5a00;
  border: 1px solid rgba(182, 120, 0, 0.3);
}
body.layout-light .conv-tier-badge.conv-low {
  background: rgba(0, 0, 0, 0.04);
  color: #6b5d4a;
  border: 1px solid rgba(74, 60, 36, 0.12);
}
body.layout-light .conv-trades-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6b5d4a;
}
body.layout-light .conv-card-body {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 16px;
}
body.layout-light .conv-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #6b5d4a;
  margin-bottom: 6px;
}
body.layout-light .conv-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a1612;
}
body.layout-light .conv-stat-val.green { color: #0f7a4c; }
body.layout-light .conv-stat-val.amber { color: #8a5a00; }
body.layout-light .conv-card-footer {
  font-size: 12px;
  color: #6b5d4a;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 60, 36, 0.12);
  line-height: 1.55;
}

/* Tables */
body.layout-light .perf-table { width: 100%; border-collapse: collapse; }
body.layout-light .perf-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #6b5d4a;
  text-align: left;
  padding: 16px 16px 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(74, 60, 36, 0.12);
}
body.layout-light .perf-table thead th.num { text-align: right; }
body.layout-light .perf-table tbody tr {
  border-bottom: 1px solid rgba(74, 60, 36, 0.08);
  transition: background 0.2s;
}
body.layout-light .perf-table tbody tr:hover { background: rgba(0, 0, 0, 0.02); }
body.layout-light .perf-table tbody td {
  padding: 13px 16px;
  font-size: 13px;
  color: #1a1612;
}
body.layout-light .perf-table tbody td.num { text-align: right; }
body.layout-light .perf-table tbody td.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
body.layout-light .perf-table tbody td.green { color: #0f7a4c; font-weight: 600; }
body.layout-light .perf-table tbody td.amber { color: #8a5a00; font-weight: 600; }
body.layout-light .perf-table tbody td.red { color: #c43a3a; font-weight: 600; }
body.layout-light .perf-table tbody td.dim { color: #6b5d4a; }
body.layout-light .perf-table-tight tbody td { padding: 10px 16px; font-size: 12.5px; }
body.layout-light .pair-cell { display: flex; align-items: center; gap: 9px; }
body.layout-light .pair-cell .pair-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 12px;
}
body.layout-light .bar-cell { width: 30%; min-width: 160px; }
body.layout-light .perf-bar-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  overflow: hidden;
}
body.layout-light .perf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f7a4c 0%, #b67800 100%);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(15, 122, 76, 0.3);
}
body.layout-light .mini-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
}
body.layout-light .mini-pill.green { background: rgba(15, 122, 76, 0.08); color: #0f7a4c; }
body.layout-light .mini-pill.red { background: rgba(196, 58, 58, 0.08); color: #c43a3a; }
body.layout-light .status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
}
body.layout-light .status-pill.win {
  background: rgba(15, 122, 76, 0.08);
  color: #0f7a4c;
  border: 1px solid rgba(15, 122, 76, 0.25);
}
body.layout-light .status-pill.loss {
  background: rgba(196, 58, 58, 0.08);
  color: #c43a3a;
  border: 1px solid rgba(196, 58, 58, 0.25);
}
body.layout-light .trade-row.trade-loss { opacity: 0.85; }

/* R-dist */
body.layout-light .r-dist-wrapper { width: 100%; padding: 20px 10px 0; }
body.layout-light .r-dist-bars {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
  height: 240px;
  align-items: end;
}
body.layout-light .r-dist-col {
  display: flex; flex-direction: column;
  align-items: center; height: 100%; position: relative;
}
body.layout-light .r-dist-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #1a1612;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
body.layout-light .r-dist-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: filter 0.2s, transform 0.2s;
}
body.layout-light .r-dist-bar:hover { filter: brightness(1.1); transform: scaleY(1.02); }
body.layout-light .r-dist-bar-green {
  background: linear-gradient(180deg, #0f7a4c 0%, rgba(15, 122, 76, 0.7) 100%);
  box-shadow: 0 0 12px rgba(15, 122, 76, 0.15);
}
body.layout-light .r-dist-bar-red {
  background: linear-gradient(180deg, #c43a3a 0%, rgba(196, 58, 58, 0.7) 100%);
  box-shadow: 0 0 12px rgba(196, 58, 58, 0.15);
}
body.layout-light .r-dist-bar-amber {
  background: linear-gradient(180deg, #b67800 0%, rgba(182, 120, 0, 0.7) 100%);
}
body.layout-light .r-dist-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #6b5d4a;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

/* Methodology */
body.layout-light .perf-method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.layout-light .perf-method-card {
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 14px;
  padding: 28px 26px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body.layout-light .perf-method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
body.layout-light .method-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
body.layout-light .method-icon svg { width: 20px; height: 20px; }
body.layout-light .method-icon-green {
  background: rgba(15, 122, 76, 0.08);
  color: #0f7a4c;
}
body.layout-light .method-icon-red {
  background: rgba(196, 58, 58, 0.08);
  color: #c43a3a;
}
body.layout-light .method-icon-amber {
  background: rgba(182, 120, 0, 0.10);
  color: #8a5a00;
}
body.layout-light .method-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b5d4a;
  margin-bottom: 8px;
  font-weight: 600;
}
body.layout-light .method-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #1a1612;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
body.layout-light .method-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #6b5d4a;
  margin: 0 0 16px;
}
body.layout-light .method-body strong { color: #1a1612; font-weight: 600; }
body.layout-light .method-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #9a8b75;
  letter-spacing: 0.3px;
  padding-top: 12px;
  border-top: 1px solid rgba(74, 60, 36, 0.12);
}

/* Disclaimer */
body.layout-light .perf-disclaimer {
  margin: 40px 0 24px;
  padding: 22px 26px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(74, 60, 36, 0.12);
  border-radius: 12px;
}
body.layout-light .perf-disclaimer-inner { max-width: 920px; margin: 0 auto; }
body.layout-light .disc-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #6b5d4a;
  text-transform: uppercase;
  margin-bottom: 10px;
}
body.layout-light .perf-disclaimer p {
  font-size: 11.5px;
  line-height: 1.7;
  color: #6b5d4a;
  margin: 0 0 8px;
}
body.layout-light .disc-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #9a8b75;
  letter-spacing: 0.3px;
  margin-top: 12px !important;
}

/* Mobile breakpoints — light layout */
@media (max-width: 980px) {
  body.layout-light .perf-headline    { font-size: 32px; letter-spacing: -0.8px; }
  body.layout-light .perf-hero-grid   { grid-template-columns: repeat(2, 1fr); }
  body.layout-light .perf-stat-grid   { grid-template-columns: repeat(3, 1fr); }
  body.layout-light .perf-conv-grid,
  body.layout-light .perf-method-grid { grid-template-columns: 1fr; }
  body.layout-light .perf-tile-big    { font-size: 30px; }
  body.layout-light .perf-hero-grid > *,
  body.layout-light .perf-stat-grid > *,
  body.layout-light .perf-conv-grid > *,
  body.layout-light .perf-method-grid > * { min-width: 0; }
}
@media (max-width: 640px) {
  body.layout-light .perf-headline    { font-size: 26px; line-height: 1.2; letter-spacing: -0.6px; }
  body.layout-light .perf-hero-grid   { grid-template-columns: 1fr; gap: 10px; }
  body.layout-light .perf-hero-tile   { padding: 16px 18px; }
  body.layout-light .perf-stat-grid   { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  body.layout-light .perf-tile-big    { font-size: 26px; }
  body.layout-light .heatmap-header,
  body.layout-light .heatmap-row {
    grid-template-columns: 30px repeat(12, minmax(0, 1fr)) 48px;
    gap: 2px;
  }
  body.layout-light .heatmap-cell     { aspect-ratio: 1 / 1; }
  body.layout-light .heatmap-val      { font-size: 7px; }
  body.layout-light .heatmap-year-total { font-size: 9px; letter-spacing: 0; }
  body.layout-light .heatmap-year-label,
  body.layout-light .heatmap-mon-label { font-size: 8px; }
  body.layout-light .r-dist-bars      { height: 160px; gap: 4px; }
  body.layout-light .r-dist-label     { font-size: 8px; }
  body.layout-light .perf-surface:has(table) { padding: 0 !important; overflow-x: auto; }
  body.layout-light .perf-table thead th,
  body.layout-light .perf-table tbody td { padding: 8px 7px; font-size: 11px; }
  body.layout-light .bar-cell         { display: none; }
  body.layout-light .conv-tier-badge  { font-size: 8.5px; padding: 2px 6px; }
  body.layout-light .perf-section-header { flex-direction: column; align-items: flex-start; }
}


/* ============================================================================
 * NAV GREETING — "Hello, [name] 👋"
 * Friendly personalised greeting in the global nav for logged-in users.
 * ========================================================================= */
.nav-greeting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 11px;
  margin-left: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.10), rgba(255, 165, 2, 0.04));
  border: 1px solid rgba(255, 165, 2, 0.18);
  color: #e8c97a;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.nav-greeting::before {
  /* Subtle inner gloss */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.nav-greeting-text strong {
  font-weight: 700;
  color: #ffd483;
}
.nav-greeting-wave {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform-origin: 70% 70%;
  animation: nav-wave 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes nav-wave {
  0%, 70%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0); }
}

.nav-signout {
  margin-left: 4px;
  color: #7c8498 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.3px;
}
.nav-signout:hover { color: #c9d0e0 !important; }
.nav-signout::after { display: none !important; }

@media (max-width: 768px) {
  .nav-greeting-text { display: none; }
  .nav-greeting { padding: 7px 9px; }
}


/* ============================================================================
 * LOGOUT CONFIRMATION PAGE
 * ========================================================================= */
.logout-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.logout-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: rgba(15, 20, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 48px 36px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 12px 24px -8px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.logout-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 165, 2, 0.4), transparent);
}

.logout-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
  display: inline-block;
  animation: logout-wave 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: 70% 70%;
}
@keyframes logout-wave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(18deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(18deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(12deg); }
}

.logout-headline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #f0f4ff;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 0%, #c9d0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logout-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #9aa3b5;
  margin: 0 0 32px;
}

.logout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.logout-btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #ffb321 0%, #ff7e02 100%);
  color: #2a1500;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(255, 132, 2, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.logout-btn-confirm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #2a1500;
}
.logout-btn-confirm:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.logout-btn-confirm svg {
  width: 14px; height: 14px;
}

.logout-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: transparent;
  color: #9aa3b5;
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.logout-btn-cancel:hover {
  color: #f0f4ff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.logout-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6b7390;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: 0.3px;
}
.logout-meta strong {
  color: #9aa3b5;
  font-weight: 500;
}

@media (max-width: 480px) {
  .logout-card { padding: 36px 24px 28px; }
  .logout-headline { font-size: 22px; }
  .logout-sub { font-size: 13.5px; }
  .logout-emoji { font-size: 44px; }
}


/* ============================================================================
 * HOMEPAGE — built per May 2026 deep research findings
 * ----------------------------------------------------------------------------
 * Mixed dark/light section flow. Hardcoded chrome (nav/footer) preserved.
 * GPU-only animations (transform/opacity). prefers-reduced-motion respected.
 * ========================================================================= */

body.layout-home { background: #0B1426; color: #F5F0E8; }
body.layout-home .aurora,
body.layout-home .grid-bg { display: none !important; }

/* Reset main constraints for full-bleed sections on home page.
   Sections go edge-to-edge; .home-container inside each section
   keeps the inner content at max 1280px. */
body.layout-home .page-main {
  padding: 0;
  max-width: none;
  width: 100%;
}

.home-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 768px) {
  .home-container { padding-left: 18px; padding-right: 18px; }
}

.home-flash {
  max-width: 600px;
  margin: 16px auto;
  padding: 12px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: #10B981;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.home-flash svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Section wrappers */
.home-section {
  padding: 96px 0;
  position: relative;
}
.home-section-dark { background: #0B1426; color: #F5F0E8; }
.home-section-light {
  background: #FAFAF7;
  color: #0B1426;
}
@media (max-width: 768px) {
  .home-section { padding: 64px 0; }
}

.home-section-head { max-width: 720px; margin-bottom: 56px; }
.home-section-head-center { text-align: center; margin-left: auto; margin-right: auto; }

.home-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #D4A574;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.home-section-light .home-section-eyebrow { color: #B8860B; }

.home-h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: #F5F0E8;
}
.home-h2-dark { color: #0B1426; }
.home-section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #8B95A8;
  margin: 0;
}
.home-section-sub-dark { color: #4a5568; }

.home-body {
  font-size: 17px;
  line-height: 1.7;
  color: #B8C2D5;
  margin: 0 0 16px;
}
.home-section-light .home-body { color: #3a4253; }
.home-body-emphasis {
  font-size: 19px;
  font-weight: 600;
  color: #F5F0E8;
}
.home-section-light .home-body-emphasis { color: #0B1426; }

/* =================================================================
 * 1. HERO
 * ============================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(212, 165, 116, 0.06), transparent 60%),
    radial-gradient(1000px 500px at 15% 80%, rgba(14, 165, 233, 0.05), transparent 60%),
    linear-gradient(180deg, #0B1426 0%, #0A1020 100%);
  padding: 96px 0 120px;
}
.home-hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.home-hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 165, 116, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 116, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .home-hero { padding: 56px 0 80px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: 22px;
}
.home-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.home-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: home-pulse 2.4s ease-in-out infinite;
}
@keyframes home-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.6; }
  50%      { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-pulse-dot::after { animation: none; }
}

.home-h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0;          /* parent contributes no line box */
  line-height: 0.9;
  letter-spacing: -1.6px;
  margin: 0 0 22px;
  color: #F5F0E8;
}
.home-h1-accent {
  background: linear-gradient(135deg, #D4A574 0%, #B8860B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 800;
}

.home-sub {
  font-size: 18px;
  line-height: 1.65;
  color: #B8C2D5;
  margin: 0 0 32px;
  max-width: 560px;
}
.home-sub strong { color: #F5F0E8; font-weight: 700; }

.home-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-cta-row-center { justify-content: center; }

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(135deg, #D4A574 0%, #B8860B 100%);
  color: #1a1000;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 8px 24px -6px rgba(184, 134, 11, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.home-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #1a1000;
}
.home-btn-primary:active { transform: translateY(0); filter: brightness(0.97); }
.home-btn-primary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.home-btn-primary:hover svg { transform: translateX(2px); }

.home-btn-primary-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.home-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  background: transparent;
  color: #B8C2D5;
  font-weight: 500;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.home-btn-ghost:hover {
  color: #F5F0E8;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.home-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  background: transparent;
  color: #F5F0E8;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(212, 165, 116, 0.4);
  transition: all 0.2s;
}
.home-btn-outline:hover {
  background: rgba(212, 165, 116, 0.06);
  border-color: rgba(212, 165, 116, 0.7);
  color: #D4A574;
}

.home-hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-stars { display: inline-flex; gap: 2px; }
.home-stars svg {
  width: 16px; height: 16px;
  fill: #D4A574;
}
.home-trust-line {
  font-size: 13.5px;
  color: #8B95A8;
}
.home-trust-line strong { color: #F5F0E8; font-weight: 600; }

/* Hero widget */
.home-hero-widget {
  background: rgba(15, 25, 45, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 12px 24px -8px rgba(0, 0, 0, 0.4);
  position: relative;
}
.home-hero-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
}
.home-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.home-widget-title {
  font-weight: 700;
  font-size: 14px;
  color: #F5F0E8;
}
.home-widget-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #6b7390;
}
.home-widget-row {
  display: grid;
  grid-template-columns: 100px 1fr 130px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.home-widget-row:last-of-type { border-bottom: none; }
.home-widget-pair { display: flex; align-items: center; gap: 7px; }
.home-widget-flag { font-size: 17px; line-height: 1; }
.home-widget-pair-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #F5F0E8;
}
.home-widget-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.home-widget-bar {
  height: 100%;
  width: var(--w, 50%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.home-widget-bar-long {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
.home-widget-bar-short {
  background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.home-widget-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: home-widget-shimmer 2.6s ease-in-out infinite;
}
@keyframes home-widget-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}
@media (prefers-reduced-motion: reduce) {
  .home-widget-bar::after { animation: none; opacity: 0; }
}
.home-widget-meta-cell {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.home-widget-dir {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: block;
}
.home-widget-dir-long { color: #10B981; }
.home-widget-dir-short { color: #F87171; }
.home-widget-note {
  font-size: 10px;
  color: #8B95A8;
  display: block;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}
.home-widget-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #8B95A8;
}
.home-widget-fresh {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}
.home-widget-link {
  color: #D4A574;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}
.home-widget-link:hover { color: #E5C195; }

/* =================================================================
 * 2. SOCIAL PROOF BAR
 * ============================================================== */
.home-proof-bar {
  padding: 64px 0;
  border-top: 1px solid rgba(11, 20, 38, 0.06);
  border-bottom: 1px solid rgba(11, 20, 38, 0.06);
}
.home-proof-eyebrow {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #8B95A8;
  text-transform: uppercase;
  margin: 0 0 32px;
}
.home-proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .home-proof-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.home-proof-stat { padding: 0 12px; }
.home-proof-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #0B1426;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.home-proof-pct { font-size: 0.6em; color: #8B95A8; margin-left: 2px; }
.home-proof-label {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 0.2px;
}
.home-proof-foot {
  margin-top: 36px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.home-proof-foot a {
  color: #B8860B;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(184, 134, 11, 0.4);
}
.home-proof-foot a:hover { color: #8a5a00; }

/* =================================================================
 * 3. PROBLEM
 * ============================================================== */
.home-problem-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .home-problem-inner { grid-template-columns: 1fr; gap: 32px; }
}
.home-prob-chart {
  background: rgba(15, 25, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
}
.home-prob-chart svg { width: 100%; height: auto; display: block; }
.home-prob-caption {
  margin-top: 12px;
  font-size: 12px;
  color: #8B95A8;
  line-height: 1.5;
}
.home-prob-caption a {
  color: #D4A574;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
}

/* =================================================================
 * 4. MECHANISM
 * ============================================================== */
.home-mech-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .home-mech-steps { grid-template-columns: 1fr; }
}
.home-mech-step {
  background: rgba(15, 25, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-mech-step:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 165, 116, 0.25);
}
.home-mech-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #D4A574;
  margin-bottom: 18px;
}
.home-mech-title {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #F5F0E8;
}
.home-mech-body {
  font-size: 15px;
  line-height: 1.65;
  color: #B8C2D5;
  margin: 0 0 16px;
}
.home-mech-body strong { color: #F5F0E8; font-weight: 600; }
.home-mech-cite {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #6b7390;
  letter-spacing: 0.3px;
}
.home-mech-cite a {
  color: #D4A574;
  text-decoration: none;
}
.home-mech-cite a:hover { text-decoration: underline; }

/* =================================================================
 * 5. FEATURE BENTO
 * ============================================================== */
.home-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .home-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .home-bento { grid-template-columns: 1fr; }
}
.home-bento-tile {
  background: #FFFFFF;
  border: 1px solid rgba(11, 20, 38, 0.06);
  border-radius: 16px;
  padding: 28px 26px;
  grid-column: span 2;
  box-shadow: 0 1px 3px rgba(11, 20, 38, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(11, 20, 38, 0.08);
}
.home-bento-lg { grid-column: span 3; }
@media (max-width: 980px) {
  .home-bento-tile, .home-bento-lg { grid-column: span 1; }
}
.home-bento-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.10), rgba(212, 165, 116, 0.06));
  color: #B8860B;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.home-bento-icon svg { width: 22px; height: 22px; }
.home-bento-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #0B1426;
  margin: 0 0 10px;
}
.home-bento-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

/* =================================================================
 * 6. TRACK RECORD
 * ============================================================== */
.home-track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .home-track-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.home-track-tile {
  background: rgba(15, 25, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px 24px;
}
.home-track-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8B95A8;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.home-track-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: #F5F0E8;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.home-track-num-green { color: #10B981; }
.home-track-num-red   { color: #F87171; }
.home-track-pct { font-size: 0.6em; opacity: 0.85; margin-left: 1px; }
.home-track-foot {
  font-size: 12px;
  color: #8B95A8;
  letter-spacing: 0.2px;
}
.home-track-cta { text-align: center; margin-bottom: 32px; }

/* Disclaimer block - immediate proximity to performance figures */
.home-disclaimer-block {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.20);
  border-radius: 12px;
  padding: 20px 24px;
}
.home-disclaimer-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #F59E0B;
  font-weight: 700;
  margin-bottom: 10px;
}
.home-disclaimer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.6;
  color: #B8C2D5;
  letter-spacing: 0.2px;
  margin: 0;
}

/* =================================================================
 * 7. TESTIMONIALS
 * ============================================================== */
.home-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 980px) {
  .home-testi-grid { grid-template-columns: 1fr; }
}
.home-testi-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 20, 38, 0.06);
  border-radius: 14px;
  padding: 28px;
  margin: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(11, 20, 38, 0.04);
}
.home-testi-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.home-testi-stars svg { width: 16px; height: 16px; fill: #D4A574; }
.home-testi-quote {
  font-size: 15.5px;
  line-height: 1.65;
  color: #1f2937;
  font-style: italic;
  margin: 0 0 22px;
  flex: 1;
}
.home-testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 20, 38, 0.05);
}
.home-testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4A574 0%, #B8860B 100%);
  color: #1a1000;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.home-testi-name {
  font-weight: 600;
  font-size: 14px;
  color: #0B1426;
}
.home-testi-role {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.home-testi-foot {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto;
}

/* =================================================================
 * 8. PRICING
 * ============================================================== */
.home-pricing-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: #FFFFFF;
  border: 1px solid rgba(11, 20, 38, 0.08);
  border-radius: 20px;
  padding: 44px;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(11, 20, 38, 0.05), 0 8px 32px rgba(11, 20, 38, 0.06);
  position: relative;
  overflow: hidden;
}
.home-pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #D4A574 25%, #B8860B 75%, transparent);
}
@media (max-width: 768px) {
  .home-pricing-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
.home-pricing-left { padding-right: 28px; border-right: 1px solid rgba(11, 20, 38, 0.06); }
@media (max-width: 768px) {
  .home-pricing-left { padding-right: 0; border-right: none; padding-bottom: 24px; border-bottom: 1px solid rgba(11, 20, 38, 0.06); }
}
.home-pricing-strike { margin-bottom: 14px; }
.home-pricing-anchor {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 18px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}
.home-pricing-anchor-label {
  font-size: 12px;
  color: #6b7280;
  margin-left: 8px;
}
.home-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.home-pricing-dollar {
  font-size: 28px;
  font-weight: 700;
  color: #0B1426;
  font-family: 'JetBrains Mono', monospace;
}
.home-pricing-num {
  font-size: 64px;
  font-weight: 800;
  color: #0B1426;
  letter-spacing: -2px;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.home-pricing-period {
  font-size: 16px;
  color: #6b7280;
  margin-left: 4px;
}
.home-pricing-annual {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 20px;
}
.home-pricing-annual strong { color: #0B1426; font-weight: 700; }
.home-pricing-fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}
.home-pricing-features-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #B8860B;
  font-weight: 600;
  margin-bottom: 16px;
}
.home-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-pricing-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 14.5px;
  color: #1f2937;
  line-height: 1.5;
  border-bottom: 1px solid rgba(11, 20, 38, 0.04);
}
.home-pricing-features li:last-child { border-bottom: none; }
.home-pricing-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  background: rgba(16, 185, 129, 0.10);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* =================================================================
 * 9. FAQ
 * ============================================================== */
.home-faq-inner { max-width: 820px; margin: 0 auto; }
.home-faq-list {
  background: #FFFFFF;
  border: 1px solid rgba(11, 20, 38, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.home-faq-item {
  border-bottom: 1px solid rgba(11, 20, 38, 0.05);
}
.home-faq-item:last-child { border-bottom: none; }
.home-faq-item summary {
  padding: 22px 24px;
  font-weight: 600;
  font-size: 16px;
  color: #0B1426;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary:hover { background: rgba(11, 20, 38, 0.02); }
.home-faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: #B8860B;
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.home-faq-item[open] summary::after { transform: rotate(45deg); }
.home-faq-answer {
  padding: 4px 24px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
}
.home-faq-answer a {
  color: #B8860B;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.4);
}

/* =================================================================
 * 10. AUTHOR / E-E-A-T
 * ============================================================== */
.home-author-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) {
  .home-author-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}
.home-author-photo {
  width: 200px; height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.25);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  .home-author-photo { margin: 0 auto; }
}
.home-author-photo-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a2238 0%, #0B1426 100%);
}
.home-author-photo svg { width: 100%; height: 100%; display: block; }
.home-author-photo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-author-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 600px) {
  .home-author-credentials { grid-template-columns: 1fr; gap: 16px; }
}
.home-cred-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8B95A8;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-cred-value {
  font-size: 14px;
  color: #F5F0E8;
  font-weight: 500;
}
.home-body a {
  color: #D4A574;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
}

/* =================================================================
 * 11. FINAL CTA
 * ============================================================== */
.home-finalcta {
  padding: 96px 0 64px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(212, 165, 116, 0.06), transparent 60%),
    #0B1426;
}
.home-finalcta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.home-finalcta-h2 {
  font-size: clamp(28px, 4.2vw, 48px);
}
.home-finalcta-sub {
  font-size: 17px;
  color: #B8C2D5;
  line-height: 1.6;
  margin: 0 0 32px;
}
.home-finalcta-fine {
  margin-top: 16px;
  font-size: 13px;
  color: #8B95A8;
}
.home-finalcta-fine a {
  color: #D4A574;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
}

/* =================================================================
 * 12. RISK BLOCK + sticky risk warning bar
 * ============================================================== */
.home-risk-block {
  background: #050810;
  padding: 28px 0;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}
.home-risk-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}
.home-risk-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  color: #F59E0B;
  margin-top: 2px;
}
.home-risk-icon svg { width: 28px; height: 28px; }
.home-risk-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: #9CA3AF;
}
.home-risk-text strong { color: #F59E0B; font-weight: 700; }
.home-risk-text a {
  color: #D4A574;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.4);
}

/* Sticky risk warning - FCA-style fixed top bar */
.home-sticky-risk {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(245, 158, 11, 0.96);
  color: #1a1000;
  z-index: 200;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.home-sticky-risk-hidden { transform: translateY(100%); }
.home-sticky-risk-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 32px;
  font-size: 12.5px;
  line-height: 1.4;
}
.home-sticky-risk-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.home-sticky-risk-text { flex: 1; }
.home-sticky-risk-text strong { font-weight: 700; }
.home-sticky-risk-close {
  background: transparent;
  border: none;
  color: #1a1000;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.home-sticky-risk-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .home-sticky-risk-inner { padding: 10px 14px; font-size: 11.5px; }
}


/* =================================================================
 * HERO H1 multi-line layout
 * ============================================================== */
.home-h1-line1 {
  display: block;
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B8C2D5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  padding-bottom: 6px; /* room for the gradient descender on "g" */
}
.home-h1-line2 {
  display: block;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: #B8C2D5;
  margin-top: -8px; /* pull up against line1's descender padding */
}

/* =================================================================
 * HERO ACTIVE-SIGNAL PREVIEW
 * Wraps the existing /dashboard hero-band classes for embed on home.
 * Subscribers see this EXACT layout post-login - same hero-band,
 * same price-ladder, same thesis-stack, same bolt summary.
 * ============================================================== */

.home-signal-preview {
  position: relative;
}

.home-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px 6px 10px;
  background: rgba(212, 165, 116, 0.10);
  border: 1px solid rgba(212, 165, 116, 0.28);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: #D4A574;
  font-weight: 600;
}

/* Make the embedded hero-band fit inside the column on home */
.home-hero-band-embed {
  margin: 0;
  width: 100%;
  /* let layout.css/dashboard.css drive the rest - we're reusing those classes */
}

/* Soft surface upgrade for the home embed - slightly more luxurious */
.home-hero-band-embed.hero-band {
  background: linear-gradient(180deg, rgba(20, 30, 55, 0.92) 0%, rgba(10, 18, 38, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    0 12px 28px -8px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.home-hero-band-embed.hero-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
}

.home-preview-foot {
  margin-top: 12px;
  padding: 10px 4px;
  font-size: 12px;
  color: #8B95A8;
  text-align: center;
}
.home-preview-foot-text a {
  color: #D4A574;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.home-preview-foot-text a:hover { color: #E5C195; }

/* Mobile: ensure the embedded hero-band scales properly */
@media (max-width: 980px) {
  .home-signal-preview { margin-top: 8px; }
}

/* RETAIL CROWD tile override on home: positive/green framing
   ("76% SHORT - WE FADE" instead of red "WRONG-FOOTED")
   Reads as a GOOD thing - the crowd is on the wrong side, we benefit. */
.home-hero-band-embed .home-thesis-tile-good {
  border-color: rgba(16, 185, 129, 0.30) !important;
  background: linear-gradient(180deg,
    rgba(16, 185, 129, 0.08) 0%,
    rgba(16, 185, 129, 0.02) 100%) !important;
}
.home-hero-band-embed .home-thesis-tile-good .thesis-lbl {
  color: #10B981 !important;
}
.home-hero-band-embed .home-thesis-val-good {
  color: #34D399 !important;
}

/* =================================================================
 * PRICING SECTION - DARK THEME OVERRIDE
 * When the pricing section runs against a dark background, flip the
 * pricing card from white-on-cream to glassy-dark-on-navy.
 * ============================================================== */

.home-pricing-dark .home-pricing-card {
  background: linear-gradient(180deg,
    rgba(20, 30, 55, 0.85) 0%,
    rgba(12, 20, 40, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    0 12px 28px -8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-pricing-dark .home-pricing-card::before {
  background: linear-gradient(90deg,
    transparent,
    #D4A574 25%,
    #B8860B 75%,
    transparent);
  opacity: 0.7;
}

.home-pricing-dark .home-pricing-left {
  border-right-color: rgba(255, 255, 255, 0.06);
}
@media (max-width: 768px) {
  .home-pricing-dark .home-pricing-left {
    border-right: none;
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
}

.home-pricing-dark .home-pricing-anchor {
  color: #6b7390;
}
.home-pricing-dark .home-pricing-anchor-label {
  color: #8B95A8;
}

.home-pricing-dark .home-pricing-dollar,
.home-pricing-dark .home-pricing-num {
  color: #F5F0E8;
}
.home-pricing-dark .home-pricing-period {
  color: #8B95A8;
}

.home-pricing-dark .home-pricing-annual {
  color: #B8C2D5;
}
.home-pricing-dark .home-pricing-annual strong {
  color: #F5F0E8;
}

.home-pricing-dark .home-pricing-fine {
  color: #8B95A8;
}

.home-pricing-dark .home-pricing-features-title {
  color: #D4A574;
}

.home-pricing-dark .home-pricing-features li {
  color: #B8C2D5;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.home-pricing-dark .home-pricing-features li::before {
  background-color: rgba(16, 185, 129, 0.15);
}

/* =================================================================
 * "HOW YOU GET YOUR FOREX SIGNALS" SECTION
 * Two side-by-side delivery channel cards with realistic UI mockups.
 * Section sits between hero and social proof, full-bleed dark.
 * ============================================================== */

.home-delivery {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(212, 165, 116, 0.05), transparent 60%),
    radial-gradient(900px 500px at 10% 80%, rgba(14, 165, 233, 0.04), transparent 60%),
    linear-gradient(180deg, #0A1020 0%, #0B1426 100%);
}
.home-delivery-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.home-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .home-delivery-grid { grid-template-columns: 1fr; gap: 22px; }
}

.home-delivery-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 30, 55, 0.55) 0%, rgba(10, 18, 38, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.home-delivery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
  opacity: 0.6;
}
.home-delivery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 165, 116, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 12px 24px -8px rgba(212, 165, 116, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .home-delivery-card { transition: none; }
  .home-delivery-card:hover { transform: none; }
}

.home-delivery-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.home-delivery-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #D4A574;
  background: rgba(212, 165, 116, 0.10);
  border: 1px solid rgba(212, 165, 116, 0.28);
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.home-delivery-channel-name {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #F5F0E8;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.home-delivery-channel-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #10B981;
  letter-spacing: 0.3px;
}

/* ----------- Mockup base ----------- */
.home-delivery-mock {
  margin-bottom: 22px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -12px rgba(0, 0, 0, 0.6),
    0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

/* ----------- Browser mockup ----------- */
.home-delivery-mock-browser {
  background: #0d1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home-mock-browser-bar {
  background: linear-gradient(180deg, #1a2138 0%, #131a2e 100%);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.home-mock-dot-r { background: #ff5f57; }
.home-mock-dot-y { background: #febc2e; }
.home-mock-dot-g { background: #28c840; }
.home-mock-url {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #8B95A8;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 5px;
  flex: 1;
  text-align: center;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-mock-browser-body {
  padding: 18px;
  position: relative;
  min-height: 200px;
  background:
    linear-gradient(0deg, rgba(11, 20, 38, 0.6) 0%, rgba(11, 20, 38, 0) 60%),
    #0d1426;
}

/* Toast notification - slides in from the right */
.home-mock-dash-toast {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.18) 0%, rgba(184, 134, 11, 0.10) 100%);
  border: 1px solid rgba(212, 165, 116, 0.45);
  border-radius: 8px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #F5F0E8;
  white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgba(212, 165, 116, 0.3);
  animation: home-toast-slide 4.5s ease-in-out infinite;
}
.home-mock-toast-text strong { color: #D4A574; font-weight: 700; }
.home-mock-toast-dot {
  width: 6px; height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
  animation: home-pulse-soft 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes home-toast-slide {
  0%       { transform: translateX(120%); opacity: 0; }
  6%, 30%  { transform: translateX(0);   opacity: 1; }
  35%, 100%{ transform: translateX(120%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-mock-dash-toast { animation: none; transform: none; opacity: 1; }
  .home-mock-toast-dot { animation: none; }
}

/* Mock signal card inside the browser */
.home-mock-dash-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
  margin-top: 36px;
}
.home-mock-dash-row1 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.home-mock-pair {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #F5F0E8;
  letter-spacing: 0.3px;
}
.home-mock-dir {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 5px;
}
.home-mock-conv {
  background: rgba(212, 165, 116, 0.14);
  color: #D4A574;
  border: 1px solid rgba(212, 165, 116, 0.28);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: 5px;
}
.home-mock-dash-ladder {
  display: grid;
  gap: 4px;
}
.home-mock-rung {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
}
.home-mock-rung-tp { background: rgba(16, 185, 129, 0.10); color: #34D399; }
.home-mock-rung-en { background: rgba(212, 165, 116, 0.10); color: #D4A574; }
.home-mock-rung-sl { background: rgba(248, 113, 113, 0.10); color: #F87171; }
.home-mock-rung > span:first-child { letter-spacing: 0.6px; opacity: 0.85; }

/* ----------- Email mockup ----------- */
.home-delivery-mock-email {
  background: #ffffff;
  color: #0B1426;
  font-family: 'Inter', sans-serif;
}
.home-mock-email-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eef0f3;
}
.home-mock-email-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4A574 0%, #B8860B 100%);
  color: #1a1000;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.home-mock-email-from {
  font-weight: 700;
  font-size: 14px;
  color: #0B1426;
}
.home-mock-email-time {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
}
.home-mock-email-subject {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0B1426;
}
.home-mock-email-tag {
  background: #0B1426;
  color: #D4A574;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.home-mock-email-body {
  padding: 8px 16px 14px;
}
.home-mock-email-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed #eef0f3;
}
.home-mock-email-row:last-of-type { border-bottom: none; }
.home-mock-email-row > span { color: #6b7280; }
.home-mock-email-row > strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #0B1426;
  font-variant-numeric: tabular-nums;
}
.home-mock-email-row-rr {
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid #eef0f3;
  border-bottom: none;
}
.home-mock-loss { color: #DC2626 !important; }
.home-mock-gain { color: #059669 !important; }
.home-mock-email-cta {
  margin: 4px 16px 16px;
  padding: 11px;
  background: linear-gradient(135deg, #D4A574 0%, #B8860B 100%);
  color: #1a1000;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 7px;
  box-shadow: 0 4px 12px -2px rgba(184, 134, 11, 0.3);
}

/* ----------- Card body text + delivery strip ----------- */
.home-delivery-card-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #B8C2D5;
  margin: 0;
}

.home-delivery-strip {
  margin-top: 36px;
  padding: 20px 28px;
  background: rgba(212, 165, 116, 0.04);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .home-delivery-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 18px; }
}
@media (max-width: 480px) {
  .home-delivery-strip { grid-template-columns: 1fr; }
}
.home-delivery-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #B8C2D5;
}
.home-delivery-strip-item svg {
  color: #34D399;
  flex-shrink: 0;
}

/* =================================================================
 * CONTACT PAGE — premium "let's talk" experience (cx- namespace)
 * ============================================================== */
.cx-page {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px 100px;
  overflow: hidden;
}

/* Atmosphere: gold aurora glow + faint grid */
.cx-aurora {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side, rgba(255,165,2,0.16), transparent 70%),
    radial-gradient(closest-side, rgba(255,122,0,0.10), transparent 70%);
  filter: blur(20px);
  animation: cx-float 14s ease-in-out infinite;
}
@keyframes cx-float {
  0%,100% { transform: translateX(-50%) translateY(0) scale(1); }
  50%     { transform: translateX(-46%) translateY(20px) scale(1.06); }
}
.cx-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
}
.cx-page > *:not(.cx-aurora):not(.cx-grid) { position: relative; z-index: 1; }

/* HERO */
.cx-hero { text-align: center; max-width: 680px; margin: 0 auto 52px; padding-top: 0; }
.cx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--brand-gold); font-weight: 600; margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid rgba(255,165,2,0.25);
  border-radius: 100px; background: rgba(255,165,2,0.06);
}
.cx-eyebrow-sm { margin-bottom: 16px; }
.cx-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold); animation: cx-pulse 1.8s ease-in-out infinite;
}
@keyframes cx-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.cx-title {
  font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(48px, 9vw, 88px); line-height: 0.98; letter-spacing: -3px;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #b9c2d0 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cx-lede { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: var(--text-muted); margin: 0; }

/* CHANNEL CARDS */
.cx-channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px;
}
@media (max-width: 760px) { .cx-channels { grid-template-columns: 1fr; } }
.cx-channel {
  display: block; text-decoration: none; padding: 24px;
  background: linear-gradient(180deg, rgba(20,27,45,0.7), rgba(15,20,34,0.7));
  border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
  border-radius: 18px; backdrop-filter: blur(12px);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
}
.cx-channel:not(.cx-channel-static):hover {
  transform: translateY(-4px); border-color: rgba(255,165,2,0.35);
  box-shadow: 0 20px 50px -24px rgba(255,165,2,0.4);
}
.cx-channel-ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,165,2,0.16), rgba(255,122,0,0.08));
  border: 1px solid rgba(255,165,2,0.2); color: var(--brand-gold);
}
.cx-channel-ic svg { width: 22px; height: 22px; }
.cx-channel-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; font-family: var(--font-mono); }
.cx-channel-val { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 14px; word-break: break-word; }
.cx-channel-go { font-size: 13px; color: var(--brand-gold); font-weight: 600; }
.cx-channel-go.cx-muted { color: var(--text-dim); font-weight: 500; }

/* SPLIT: form + faq */
.cx-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cx-split { grid-template-columns: 1fr; gap: 36px; } }

/* FORM */
.cx-formwrap {
  background: linear-gradient(180deg, rgba(20,27,45,0.75), rgba(12,17,30,0.8));
  border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
  border-radius: 22px; padding: 34px; backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.cx-form-head h2 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 6px; letter-spacing: -0.5px; }
.cx-form-head p { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; }

.cx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .cx-row { grid-template-columns: 1fr; } }

/* Floating-label fields */
.cx-field { position: relative; margin-bottom: 16px; }
.cx-field input, .cx-field textarea {
  width: 100%; box-sizing: border-box; padding: 22px 16px 8px;
  background: rgba(5,8,15,0.55); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: var(--text); font-size: 15px; font-family: var(--font-sans);
  transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.cx-field textarea { padding-top: 26px; min-height: 130px; line-height: 1.6; }
.cx-field input:focus, .cx-field textarea:focus {
  outline: none; border-color: var(--brand-gold);
  background: rgba(5,8,15,0.8); box-shadow: 0 0 0 3px rgba(255,165,2,0.12);
}
.cx-field label {
  position: absolute; left: 16px; top: 15px; font-size: 15px; color: var(--text-dim);
  pointer-events: none; transition: all .18s ease; font-family: var(--font-sans);
}
.cx-field input:focus + label, .cx-field input:not(:placeholder-shown) + label,
.cx-field textarea:focus + label, .cx-field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 11px; letter-spacing: 0.4px; color: var(--brand-gold); font-weight: 600; text-transform: uppercase;
}
.cx-opt { color: var(--text-dimmer); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* honeypot */
.cx-hp { position: absolute; left: -9999px; top: -9999px; }

/* Buttons */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  padding: 15px 26px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.cx-btn svg { width: 16px; height: 16px; }
.cx-btn-primary {
  width: 100%; color: #1a1000;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
  box-shadow: 0 12px 30px -10px rgba(255,165,2,0.5);
}
.cx-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255,165,2,0.6); }
.cx-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.cx-btn-ghost { color: var(--text-2); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.cx-btn-ghost:hover { background: rgba(255,255,255,0.09); }

.cx-fineprint {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: var(--text-dim); margin: 16px 0 0; text-align: center;
}
.cx-fineprint svg { width: 13px; height: 13px; flex-shrink: 0; }

.cx-alert {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-bottom: 18px;
  background: rgba(255,69,85,0.1); border: 1px solid rgba(255,69,85,0.3);
  border-radius: 12px; color: #ffb3ba; font-size: 13.5px; line-height: 1.5;
}
.cx-alert svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--stop-red); }

/* Success state */
.cx-success { text-align: center; padding: 24px 12px; }
.cx-success h2 { font-size: 26px; font-weight: 700; color: var(--text); margin: 6px 0 8px; letter-spacing: -0.5px; }
.cx-success p { font-size: 15px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.6; }
.cx-success-ring { width: 72px; height: 72px; margin: 0 auto 18px; }
.cx-success-ring svg { width: 72px; height: 72px; }
.cx-sr-c { fill: none; stroke: rgba(16,233,129,0.25); stroke-width: 2.5; }
.cx-sr-p {
  fill: none; stroke: var(--money-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48; animation: cx-check .6s .2s ease forwards;
}
@keyframes cx-check { to { stroke-dashoffset: 0; } }

/* FAQ */
.cx-faq-head h2 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 6px; letter-spacing: -0.5px; }
.cx-faq-head p { font-size: 14px; color: var(--text-muted); margin: 0 0 22px; line-height: 1.55; }
.cx-faq-list { display: flex; flex-direction: column; gap: 10px; }
.cx-faq-item {
  background: rgba(20,27,45,0.5); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden; transition: border-color .2s, background .2s;
}
.cx-faq-item[open] { border-color: rgba(255,165,2,0.25); background: rgba(20,27,45,0.75); }
.cx-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none; outline: none;
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.cx-faq-item summary::-webkit-details-marker { display: none; }
.cx-chev { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; transition: transform .25s; }
.cx-faq-item[open] .cx-chev { transform: rotate(180deg); color: var(--brand-gold); }
.cx-faq-a { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.cx-faq-a a { color: var(--brand-gold); }
.cx-faq-all { display: inline-block; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--brand-gold); text-decoration: none; }
.cx-faq-all:hover { text-decoration: underline; }

/* Staggered entrance */
.cx-hero, .cx-channels, .cx-split { animation: cx-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.cx-channels { animation-delay: .08s; }
.cx-split { animation-delay: .16s; }
@keyframes cx-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .cx-aurora, .cx-eyebrow-dot, .cx-hero, .cx-channels, .cx-split, .cx-sr-p { animation: none; }
}

/* =================================================================
 * BLOG ARTICLE TYPOGRAPHY (.blog-body)
 * Proper reading rhythm: paragraph spacing, heading hierarchy, lists.
 * ============================================================== */
.blog-body > *:first-child { margin-top: 0; }
.blog-body > *:last-child { margin-bottom: 0; }

.blog-body p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}

.blog-body h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--text);
}

.blog-body h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.blog-body ul,
.blog-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.blog-body li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  padding-left: 4px;
}

.blog-body li::marker { color: var(--brand-gold); }

.blog-body strong { color: var(--text); font-weight: 600; }

.blog-body a {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.blog-body a:hover { color: var(--brand-orange); }

.blog-body blockquote {
  margin: 28px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--brand-gold);
  background: rgba(255,165,2,0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-style: italic;
}

.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 28px 0;
}

.blog-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--brand-gold);
}

.blog-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 36px 0;
}

/* Blog image alignment (set in the admin editor, honoured on the live post) */
.blog-body img.img-left   { float: left;  margin: 6px 22px 16px 0; }
.blog-body img.img-right  { float: right; margin: 6px 0 16px 22px; }
.blog-body img.img-center { display: block; float: none; margin: 20px auto; }
.blog-body p::after { content: ""; display: table; clear: both; }  /* contain floats */

/* =================================================================
 * HOMEPAGE SHOWCASE — trader + phone (LIGHT band, clean floating phone)
 * ============================================================== */
.home-showcase {
  padding: 80px 0;
  background: #ffffff;            /* pure white — trader photo's studio bg blends seamlessly */
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.home-showcase-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .home-showcase-inner { grid-template-columns: 1fr; gap: 48px; } }

/* copy — dark text on the light band */
.home-showcase .home-section-eyebrow { color: var(--brand-orange); }
.home-showcase-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #0b1220;
  letter-spacing: -1px; line-height: 1.1; margin: 12px 0 16px;
}
.home-showcase-text { font-size: 16px; line-height: 1.7; color: #4b5563; margin: 0 0 22px; }
.home-showcase-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.home-showcase-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #1f2937; }
.home-showcase-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(16,185,129,0.15); color: #059669; font-size: 12px; font-weight: 700;
}

/* visual: photo as the anchor, phone floats off the bottom-right corner */
.home-showcase-visual { position: relative; padding: 0 64px 40px 0; }
@media (max-width: 900px) { .home-showcase-visual { padding: 0 48px 56px 0; max-width: 460px; margin: 0 auto; } }

.home-showcase-photo {
  border-radius: 18px; overflow: hidden;
}
.home-showcase-photo img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 11; object-fit: cover; }

/* phone — floats over the bottom-right CORNER only, with a white ring so it pops */
.home-showcase-phone {
  position: absolute; right: 0; bottom: 0; width: 188px;
  background: #0b0f1a; border-radius: 30px; padding: 9px;
  border: 5px solid #ffffff;
  box-shadow: 0 26px 60px -16px rgba(15,23,42,0.55);
}
@media (max-width: 480px) { .home-showcase-phone { width: 160px; } }
.home-phone-notch { width: 60px; height: 5px; background: rgba(255,255,255,0.18); border-radius: 3px; margin: 3px auto 9px; }
.home-phone-screen {
  background: linear-gradient(180deg, #0f1422, #080c16); border-radius: 22px;
  padding: 13px; border: 1px solid rgba(255,255,255,0.05);
}
.home-phone-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.home-phone-brand { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--brand-gold); font-weight: 700; }
.home-phone-live { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; color: var(--money-green); letter-spacing: 1px; }
.home-phone-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--money-green); box-shadow: 0 0 6px var(--money-green); animation: pulse-dot 1.8s ease-in-out infinite; }
.home-phone-signal {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 11px; margin-bottom: 9px;
}
.home-phone-signal-dim { opacity: 0.55; margin-bottom: 0; }
.home-phone-pair { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.home-phone-flag { font-size: 12px; }
.home-phone-sym { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text); }
.home-phone-dir { margin-left: auto; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 5px; letter-spacing: 0.5px; }
.home-phone-long { background: rgba(16,233,129,0.15); color: var(--money-green); }
.home-phone-short { background: rgba(255,69,85,0.15); color: var(--stop-red); }
.home-phone-rows { display: flex; flex-direction: column; gap: 5px; }
.home-phone-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); }
.home-phone-row b { color: var(--text-2); font-family: var(--font-mono); }
.home-phone-green { color: var(--money-green) !important; }
.home-phone-red { color: var(--stop-red) !important; }
.home-phone-tag { margin-top: 9px; font-size: 9px; color: var(--brand-gold); line-height: 1.4; }

/* ===== ALL PAIRS MONITOR ===== */
.pairs-monitor { display: flex; flex-direction: column; }
.pm-row {
  display: grid;
  grid-template-columns: 52px 78px 96px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
}
.pm-row:last-child { border-bottom: none; }
.pm-link { cursor: pointer; transition: background .15s ease; }
.pm-link:hover { background: rgba(255,255,255,0.03); }
.pm-signal {
  background: linear-gradient(90deg, rgba(255,165,2,0.06), transparent 60%);
  border-left: 2px solid var(--brand-gold);
}
/* The RUNNING / ACTIVE signal stands out — bigger than the watch rows below */
.pm-row.pm-signal {
  padding: 18px 16px;
  grid-template-columns: 64px 100px 130px 1fr auto;
  background: linear-gradient(90deg, rgba(255,165,2,0.10), transparent 65%);
  border-left: 3px solid var(--brand-gold);
}
.pm-row.pm-signal .pm-flags { font-size: 22px; }
.pm-row.pm-signal .pm-pair { font-size: 18px; letter-spacing: 0.8px; }
.pm-row.pm-signal .pm-price { font-size: 16px; color: var(--text); }
.pm-row.pm-signal .pm-pl { font-size: 14px; }
.pm-row.pm-signal .pm-bias { font-size: 14px; font-weight: 600; }
.pm-row.pm-signal .pm-status { font-size: 13px; letter-spacing: 1px; }
.pm-flags { font-size: 15px; line-height: 1; }
.pm-pair {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.pm-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.pm-await { font-size: 10px; color: var(--text-dimmer); font-style: italic; }
.pm-bias { font-size: 12px; font-weight: 500; }
.pm-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pm-signal .pm-status { color: var(--brand-gold); }
.pm-building .pm-status, .pm-status.pm-building { color: var(--brand-orange); }
.pm-watching .pm-status, .pm-status.pm-watching { color: var(--text-muted); }
.pm-monitoring .pm-status, .pm-status.pm-monitoring { color: var(--text-dimmer); }
.pm-dot { display: none !important; }

@media (max-width: 640px) {
  .pm-row { grid-template-columns: 30px 64px 1fr auto; gap: 8px; padding: 10px 10px; }
  .pm-bias { display: none; }
  .pm-price { font-size: 11px; }
  .pm-row.pm-signal { grid-template-columns: 38px 80px 1fr auto; padding: 14px 10px; }
  .pm-row.pm-signal .pm-flags { font-size: 19px; }
  .pm-row.pm-signal .pm-pair { font-size: 16px; }
  .pm-row.pm-signal .pm-price { font-size: 14px; }
}

/* ===== LIVE P/L + ENTRY-WINDOW GUARD ===== */
.pm-pl { font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-left: 6px; }
.pm-entry-flag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: 0.2px;
  font-family: var(--font-mono);
  text-transform: none;
}
.pm-entry-bad  { color: var(--stop-red); }
.pm-entry-warn { color: var(--brand-orange); }
.pm-warn { background: linear-gradient(90deg, rgba(255,69,85,0.07), transparent 60%); border-left-color: var(--stop-red); }

/* Hero entry-window banner */
.hero-entry-flag {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.hero-entry-flag .hef-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-entry-flag.entry-good {
  background: rgba(16,233,129,0.10);
  border: 1px solid rgba(16,233,129,0.30);
  color: #10e981;
}
.hero-entry-flag.entry-good .hef-icon { background: rgba(16,233,129,0.25); color: #10e981; }
.hero-entry-flag.entry-warn {
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.30);
  color: var(--brand-orange);
}
.hero-entry-flag.entry-warn .hef-icon { background: rgba(255,122,0,0.25); color: var(--brand-orange); }
.hero-entry-flag.entry-bad {
  background: #ffd400;            /* bright yellow highlight */
  border: 1px solid #e0b400;
  color: #0a0a0a;                /* black text */
  font-weight: 700;
}
.hero-entry-flag.entry-bad .hef-label { color: #0a0a0a; }
.hero-entry-flag.entry-bad .hef-icon { background: #ff2d2d; color: #ffffff; }  /* red X, white glyph */

/* ===== LIVE ENTRY BANNER — pulse + hide states ===== */
.hef-hidden, .pm-entry-hidden { display: none !important; }

/* Eye-catching pulse on the hero entry banner so users watch it */
.hero-entry-flag {
  position: relative;
  overflow: hidden;
  animation: hef-attention 2.4s ease-in-out infinite;
}
@keyframes hef-attention {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}
/* sweeping shine */
.hero-entry-flag::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  animation: hef-sweep 3.2s ease-in-out infinite;
}
@keyframes hef-sweep {
  0%   { left: -60%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
/* the icon gets its own steady pulse glow */
.hero-entry-flag .hef-icon { animation: hef-icon-pulse 1.6s ease-in-out infinite; }
@keyframes hef-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 4px transparent; opacity: 0.75; }
}
.hero-entry-flag.entry-bad  { animation: hef-attention 1.6s ease-in-out infinite; } /* faster when it's a warning */
.hero-entry-flag.entry-bad::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent); } /* dark shine reads on yellow */

/* P/L value subtle update flash */
.pm-pl, .hero-live-pl .gain, .hero-live-pl .loss { transition: color .3s ease; }

/* ===== HERO LIVE P/L BADGE ===== */
.hero-pl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  padding: 6px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  position: relative;
  z-index: 1;
}
.hero-pl-hidden { display: none !important; }
.hero-pl-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-pl-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  transition: color .3s ease;
}
.hero-pl-val.up { color: var(--money-green); }
.hero-pl-val.dn { color: var(--stop-red); }
.hero-pl-r {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
/* brief flash when the value updates */
.hero-pl-flash { animation: hero-pl-flash 0.6s ease; }
@keyframes hero-pl-flash {
  0%   { background: rgba(255,165,2,0.18); border-color: var(--brand-gold); }
  100% { background: rgba(255,255,255,0.03); border-color: var(--border-soft); }
}
@media (max-width: 640px) {
  .hero-pl { padding: 5px 12px; }
  .hero-pl-val { font-size: 20px; }
}

/* ===== COPY-TO-CLIPBOARD (price levels) ===== */
.ladder-row { position: relative; }
.copy-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  border-radius: 6px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  position: relative;
}
.copy-btn:hover { background: rgba(255,165,2,0.12); color: var(--brand-gold); border-color: var(--brand-gold); }
.copy-btn.copied { background: rgba(16,233,129,0.15); color: var(--money-green); border-color: var(--money-green); }
.copy-toast {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #0f1422;
  color: var(--money-green);
  border: 1px solid var(--money-green);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-mono);
  z-index: 20;
  animation: copy-toast-in .15s ease;
}
@keyframes copy-toast-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Confirm modal */
.copy-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: copy-modal-fade .15s ease;
}
@keyframes copy-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.copy-modal {
  background: #0f1422;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  max-width: 380px; width: 100%;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.copy-modal-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffd400; color: #0a0a0a;
  font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.copy-modal-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.copy-modal-msg { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin-bottom: 20px; }
.copy-modal-actions { display: flex; gap: 10px; }
.copy-modal-btn {
  flex: 1; padding: 11px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: background .15s ease;
}
.copy-modal-no { background: transparent; color: var(--text-muted); }
.copy-modal-no:hover { background: rgba(255,255,255,0.05); }
.copy-modal-yes { background: var(--brand-orange); color: #0b0f1a; border-color: var(--brand-orange); }
.copy-modal-yes:hover { filter: brightness(1.08); }

/* ===== LIVE CONNECTION STATUS — 3-dot ping indicator ===== */
.af-conn {
  bottom: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16,233,129,0.30);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: color .2s ease, border-color .2s ease;
}
.af-conn-dots { display: inline-flex; align-items: center; gap: 5px; }
.af-conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dimmer);
  transition: background .25s ease, box-shadow .25s ease;
}
.af-conn-dot.dot-ok   { background: var(--money-green); box-shadow: 0 0 7px var(--money-green); animation: af-dot-pulse 2s ease-in-out infinite; }
.af-conn-dot.dot-wait { background: var(--brand-orange); box-shadow: 0 0 6px var(--brand-orange); animation: af-dot-blink 0.9s ease-in-out infinite; }
.af-conn-dot.dot-bad  { background: var(--stop-red); box-shadow: 0 0 6px var(--stop-red); animation: af-dot-blink 0.6s ease-in-out infinite; }
.af-conn-dot[data-dot="server"].dot-ok   { animation-delay: 0s; }
.af-conn-dot[data-dot="internet"].dot-ok { animation-delay: .25s; }
.af-conn-dot[data-dot="feed"].dot-ok     { animation-delay: .5s; }

.af-conn-live { color: var(--money-green) !important; border-color: rgba(16,233,129,0.30) !important; }
.af-conn-warn { color: var(--brand-orange) !important; border-color: rgba(255,122,0,0.40) !important; }
.af-conn-down { color: var(--stop-red) !important; border-color: rgba(255,69,85,0.50) !important; }

@keyframes af-dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes af-dot-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.15; } }

/* MOBILE: a small, clearly-a-STATUS pill (single steady dot + short label),
   tucked bottom-left. Avoids the "3 pulsing dots = page loading" look. */
@media (max-width: 640px) {
  .af-conn {
    bottom: 10px; left: 10px; top: auto; transform: none;
    gap: 7px; padding: 5px 10px 5px 9px;
    border-radius: 999px;
    font-size: 9.5px; letter-spacing: .5px;
    background: rgba(15,20,34,0.92) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  }
  /* collapse the 3 dots into ONE steady status dot (no sequential pulse) */
  .af-conn .af-conn-dot[data-dot="internet"],
  .af-conn .af-conn-dot[data-dot="feed"] { display: none; }
  .af-conn .af-conn-dot[data-dot="server"] {
    width: 7px; height: 7px;
    animation: none !important;          /* steady when healthy -> not "loading" */
  }
  /* but a problem state should still grab attention */
  .af-conn.af-conn-warn .af-conn-dot[data-dot="server"],
  .af-conn.af-conn-down .af-conn-dot[data-dot="server"] { animation: af-dot-blink 0.7s ease-in-out infinite !important; }
  .af-conn .af-conn-text { display: inline; }   /* keep the label so it reads as status */
}

/* ===== RECONNECT OVERLAY (full-page blur) ===== */
body.af-blurred .page-main,
body.af-blurred .ticker-strip,
body.af-blurred .top-nav,
body.af-blurred .page-footer { filter: blur(5px); pointer-events: none; user-select: none; transition: filter .3s ease; }

.af-reconnect {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,8,15,0.55);
}
.af-reconnect.show { display: flex; animation: af-rc-fade .25s ease; }
@keyframes af-rc-fade { from { opacity: 0; } to { opacity: 1; } }
.af-reconnect-card {
  background: #0f1422; border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 32px 36px; text-align: center;
  max-width: 380px; width: 90%;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.af-reconnect-spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 3px solid rgba(255,165,2,0.2);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: af-rc-spin 0.8s linear infinite;
}
@keyframes af-rc-spin { to { transform: rotate(360deg); } }
.af-reconnect-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.af-reconnect-sub { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.af-reconnect-rows { display: flex; flex-direction: column; gap: 9px; text-align: left; max-width: 220px; margin: 0 auto; }
.af-rc-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); font-family: var(--font-mono); }
.af-rc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-orange); box-shadow: 0 0 6px var(--brand-orange); animation: af-dot-blink 0.8s ease-in-out infinite; }
.af-rc-dot.dot-ok  { background: var(--money-green); box-shadow: 0 0 6px var(--money-green); animation: af-dot-pulse 2s ease-in-out infinite; }
.af-rc-dot.dot-bad { background: var(--stop-red); box-shadow: 0 0 6px var(--stop-red); }
.af-rc-dot.dot-wait{ background: var(--brand-orange); }

/* Reconnect overlay — mobile sizing */
@media (max-width: 640px) {
  .af-reconnect-card { padding: 26px 22px; border-radius: 14px; }
  .af-reconnect-title { font-size: 16px; }
  .af-reconnect-sub { font-size: 12.5px; }
  .af-reconnect-spinner { width: 38px; height: 38px; }
}

/* ===== NEW SIGNAL — hero highlight + badge ===== */
.hero-band.hero-fresh {
  box-shadow: 0 0 0 2px var(--brand-gold), 0 0 40px rgba(255,165,2,0.25);
  animation: hero-fresh-glow 1.4s ease-in-out infinite;
}
@keyframes hero-fresh-glow {
  0%,100% { box-shadow: 0 0 0 2px var(--brand-gold), 0 0 30px rgba(255,165,2,0.20); }
  50%     { box-shadow: 0 0 0 2px var(--brand-gold), 0 0 55px rgba(255,165,2,0.40); }
}
.hero-new-badge {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-gold); color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255,165,2,0.5);
  animation: hero-new-pop 0.4s cubic-bezier(.2,1.4,.4,1);
}
.hero-new-badge .hero-new-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0a0a0a; animation: af-conn-pulse 1s ease-in-out infinite;
}
.hero-new-out { animation: hero-new-fade 0.5s ease forwards; }
@keyframes hero-new-pop { from { transform: translateX(-50%) scale(0.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes hero-new-fade { to { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

/* NEW SIGNAL toast (appears just before the in-place refresh) */
.af-newsig-toast {
  position: fixed; left: 50%; top: 80px; transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand-gold); color: #0a0a0a;
  font-family: var(--font-mono); font-size: 14px; font-weight: 800; letter-spacing: 1.2px;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 10px 40px rgba(255,165,2,0.5);
  animation: af-newsig-drop 0.45s cubic-bezier(.2,1.4,.4,1);
}
.af-newsig-toast .af-newsig-dot { width: 9px; height: 9px; border-radius: 50%; background: #0a0a0a; animation: af-conn-pulse 0.8s ease-in-out infinite; }
@keyframes af-newsig-drop { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
