/* ============================================================
   FundedX — Prop Trading Firm Website
   Premium Design System v2 — rich duotone, glass, custom type
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Base — deep, slightly blue-violet dark for richness */
  --bg:            #060812;
  --bg-2:          #0a0d1a;
  --surface:       #0e1322;
  --surface-2:     #141a2e;
  --surface-3:     #1b2338;
  --border:        #1d2740;
  --border-2:      #2a3654;

  --text:          #eef2f9;
  --text-dim:      #a3b1cc;
  --text-mut:      #6b7a99;

  /* Muted teal palette (Axcorp-style, calmer — less cyan) */
  --neon:          #2fbdb0;   /* primary teal — muted */
  --neon-2:        #48ccbd;   /* soft aqua */
  --violet:        #2aa9bb;   /* soft cyan-blue */
  --violet-2:      #4fc4d3;
  --neon-soft:     rgba(47,189,176,.09);
  --neon-glow:     rgba(47,189,176,.2);
  --violet-soft:   rgba(42,169,187,.09);
  --danger:        #ef5568;
  --warn:          #e8973f;
  --gold:          #e8b06a;

  /* Offer accent — crispy transparent orange (used sparingly on offers) */
  --orange:        #f2894a;
  --orange-2:      #ff9d5c;
  --orange-soft:   rgba(242,137,74,.1);
  --orange-line:   rgba(242,137,74,.55);
  --orange-glow:   rgba(242,137,74,.3);

  /* Gradients — muted teal (less cyan/blue) */
  --grad-primary:  linear-gradient(105deg, #2fbdb0, #2aa9bb);
  --grad-duo:      linear-gradient(105deg, #48ccbd 0%, #2fbdb0 50%, #2aa9bb 100%);
  --grad-violet:   linear-gradient(105deg, #2aa9bb, #48ccbd);
  --grad-logo:     linear-gradient(150deg, #2f86ff 0%, #24d18a 100%);   /* blue → green (Axcorp mark) */

  /* Radius & shadow */
  --r-sm: 9px;
  --r:    15px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow:      0 18px 50px rgba(0,0,0,.5);
  --shadow-lg:   0 30px 80px rgba(0,0,0,.6);
  --shadow-neon: 0 0 0 1px var(--neon-glow), 0 18px 50px rgba(47,189,176,.16);
  --glass:       rgba(255,255,255,.025);
  --glass-brd:   rgba(255,255,255,.07);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 76px;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(47,189,176,.035), transparent 45%),
    radial-gradient(700px circle at 85% 10%, rgba(42,169,187,.03), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Utilities ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 90px 0; position: relative; z-index: 1; }
.text-center { text-align: center; }
.neon { color: var(--neon); }
.cyan { color: var(--neon-2); }
.dim  { color: var(--text-dim); }
.mut  { color: var(--text-mut); }
.gradient-text {
  background: linear-gradient(100deg, var(--neon), var(--neon-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--neon);
  background: var(--neon-soft);
  border: 1px solid rgba(47,189,176,.25);
  padding: 7px 14px; border-radius: 100px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.section-sub { color: var(--text-dim); font-size: 18px; max-width: 620px; margin: 16px auto 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--neon), var(--violet));
  color: #04140c; box-shadow: 0 8px 24px rgba(47,189,176,.16);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(47,189,176,.28); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: rgba(5,7,13,.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-block; width: 132px; height: 30px; background: url("../img/logo.png") left center / contain no-repeat; font-size: 0; color: transparent; vertical-align: middle; }
/* the brand logo PNG is white (for dark backgrounds); the dashboard's light theme
   has a white sidebar, so darken the logo there to keep it visible */
html[data-theme="light"] .logo { filter: brightness(0); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  /* logo is the plain "Capifront" wordmark — icon box hidden */
  display: none;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; text-align: center; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 74px); font-weight: 850; line-height: 1.04;
  letter-spacing: -.03em; margin-bottom: 22px;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-mut); display:flex; gap:8px; justify-content:center; align-items:center;}

/* Stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 64px; padding: 30px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
}
.stat-strip .s-num { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }
.stat-strip .s-lab { color: var(--text-mut); font-size: 14px; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ic {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--neon-soft); border: 1px solid rgba(47,189,176,.2);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-size: 15px; font-weight: 800; color: var(--neon);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(47,189,176,.3); background: var(--neon-soft); margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Pricing ---------- */
.acct-tabs { display: inline-flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); padding: 6px; border-radius: 100px; margin: 26px auto 0; }
.acct-tabs button {
  padding: 10px 22px; border-radius: 100px; color: var(--text-dim);
  font-weight: 600; font-size: 15px; transition: .2s;
}
.acct-tabs button.active { background: var(--neon); color: #04140c; }

.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 44px; }
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px;
  transition: .22s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--neon); box-shadow: var(--shadow-neon); }
.price-card.featured { border-color: var(--orange-line); box-shadow: 0 0 0 1px var(--orange-line), 0 18px 50px var(--orange-glow); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #1a0d02; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; letter-spacing: .03em;
}
.price-size { font-size: 15px; color: var(--text-dim); font-weight: 600; }
.price-amt { font-size: 40px; font-weight: 850; margin: 6px 0 2px; }
.price-amt small { font-size: 15px; color: var(--text-mut); font-weight: 500; }
.price-fee { color: var(--text-mut); font-size: 14px; margin-bottom: 20px; }
.price-list { display: grid; gap: 12px; margin: 22px 0 26px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.price-list li .tick { color: var(--neon); font-weight: 800; flex-shrink: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(26px,3.5vw,40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 18px; }
.split p { color: var(--text-dim); font-size: 16px; margin-bottom: 14px; }
.check-list { display: grid; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .tick { width: 24px; height: 24px; border-radius: 7px; background: var(--neon-soft); color: var(--neon); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* Visual dashboard mock in split */
.mock-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
}
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.mock-row:last-child { border-bottom: none; }
.mock-bar { height: 8px; border-radius: 100px; background: var(--surface-3); overflow: hidden; }
.mock-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--neon-2)); }

/* ---------- Leaderboard ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
table.lb { width: 100%; border-collapse: collapse; min-width: 560px; }
table.lb th, table.lb td { text-align: left; padding: 16px 20px; font-size: 15px; }
table.lb th { color: var(--text-mut); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface); }
table.lb td { border-top: 1px solid var(--border); }
table.lb tr:hover td { background: rgba(255,255,255,.02); }
.rank-badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--surface-3); }
.rank-1 { background: linear-gradient(135deg,#ffd166,#ff9f1c); color:#3a2600; }
.rank-2 { background: linear-gradient(135deg,#dfe6ee,#a9b6c6); color:#1a2230; }
.rank-3 { background: linear-gradient(135deg,#e8a06a,#c47732); color:#301a06; }
.pos { color: var(--neon); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 14px; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; font-size: 16.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq-q .plus { color: var(--neon); font-size: 22px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: 64px 40px; border-radius: var(--r-xl);
  background:
    radial-gradient(500px circle at 50% 0%, rgba(47,189,176,.07), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2);
}
.cta-band h2 { font-size: clamp(28px,4vw,46px); font-weight: 850; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); font-size: 18px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; margin-top: 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mut); margin-bottom: 16px; }
.footer a { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 11px; transition: color .18s; }
.footer a:hover { color: var(--neon); }
.footer .about { color: var(--text-mut); font-size: 14.5px; max-width: 300px; margin-top: 16px; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-mut); font-size: 14px; }
.disclaimer { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--text-mut); font-size: 12.5px; line-height: 1.7; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 40px 24px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.field input, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); font-size: 15px;
  transition: border-color .18s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--neon); }
.auth-alt { text-align: center; margin-top: 22px; color: var(--text-dim); font-size: 14.5px; }
.auth-alt a { color: var(--neon); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-mut); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .logo { padding: 6px 8px 22px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px;
  color: var(--text-dim); font-weight: 500; font-size: 15px; margin-bottom: 4px; transition: .18s;
}
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active { background: var(--neon-soft); color: var(--neon); }
.side-link .ic { font-size: 18px; width: 22px; text-align: center; }
.side-sep { height: 1px; background: var(--border); margin: 16px 8px; }

.dash-main { padding: 26px 34px; position: relative; z-index: 1; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.dash-head h1 { font-size: 26px; font-weight: 800; }
.dash-head .sub { color: var(--text-mut); font-size: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,var(--neon),var(--neon-2)); display:grid; place-items:center; color:#04140c; font-weight:800; }

.acct-banner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 22px 26px; border-radius: var(--r-lg); margin-bottom: 24px;
  background: linear-gradient(100deg, rgba(47,189,176,.08), rgba(47,189,176,.05));
  border: 1px solid var(--border-2);
}
.pill { display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:100px; font-size:13px; font-weight:600; }
.pill-live { background: var(--neon-soft); color: var(--neon); border:1px solid rgba(47,189,176,.3); }
.pill-dot { width:7px; height:7px; border-radius:50%; background: var(--neon); box-shadow:0 0 8px var(--neon); }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.kpi { background: linear-gradient(180deg,var(--surface),var(--bg-2)); border:1px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.kpi .lab { color: var(--text-mut); font-size: 13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.kpi .val { font-size: 28px; font-weight: 800; margin: 8px 0 4px; }
.kpi .delta { font-size: 13px; font-weight:600; }
.up { color: var(--neon); } .down { color: var(--danger); }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 22px; }
.panel { background: linear-gradient(180deg,var(--surface),var(--bg-2)); border:1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 20px; }
.panel-head h3 { font-size: 17px; font-weight: 700; }

/* rule progress */
.rule { margin-bottom: 20px; }
.rule:last-child { margin-bottom: 0; }
.rule-top { display:flex; justify-content:space-between; font-size:14px; margin-bottom:9px; }
.rule-top .r-name { color: var(--text-dim); font-weight:500; }
.rule-top .r-val { font-weight:700; }
.track { height: 9px; background: var(--surface-3); border-radius:100px; overflow:hidden; }
.track > span { display:block; height:100%; border-radius:100px; }
.fill-ok { background: linear-gradient(90deg,var(--neon),var(--neon-2)); }
.fill-warn { background: linear-gradient(90deg,var(--warn),#ff8a00); }
.fill-mut { background: var(--border-2); }

/* chart */
.chart-wrap { position: relative; height: 260px; width: 100%; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }

.trade-row { display:grid; grid-template-columns: 1fr auto auto auto; gap:10px; padding:13px 0; border-bottom:1px solid var(--border); align-items:center; font-size:14px; }
.trade-row:last-child { border-bottom:none; }
.tag { padding: 3px 10px; border-radius: 7px; font-size:12px; font-weight:700; }
.tag-buy { background: var(--neon-soft); color: var(--neon); }
.tag-sell { background: rgba(255,77,94,.12); color: var(--danger); }

.badge-row { display:flex; gap:12px; flex-wrap:wrap; }
.ach { flex:1; min-width:120px; text-align:center; padding:20px 14px; border:1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.ach .em { font-size: 30px; }
.ach .t { font-size: 13px; font-weight:600; margin-top:8px; }
.ach.locked { opacity:.4; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .price-grid, .steps, .stat-strip { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dash { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 16px 24px 24px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 4px; width: 100%; border-bottom: 1px solid var(--border); }
  .section { padding: 64px 0; }
  .stat-strip { grid-template-columns: repeat(2,1fr); gap: 22px; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .price-grid, .steps { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* mobile: collapse 2-col layouts that would otherwise overflow phones */
@media (max-width: 720px) { #checkoutGrid { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   PHASE 5 — Trust, Social, Community, Content pages
   ============================================================ */

/* ---- Press / "As featured in" strip ---- */
.press { display:flex; flex-wrap:wrap; gap:36px; align-items:center; justify-content:center; opacity:.65; }
.press span { font-size:20px; font-weight:800; letter-spacing:.02em; color:var(--text-dim); }
.press .sep { width:1px; height:22px; background:var(--border-2); }

/* ---- Trust badges row ---- */
.trust-row { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.trust-badge { display:flex; gap:12px; align-items:center; padding:18px 20px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); }
.trust-badge .em { font-size:26px; }
.trust-badge b { display:block; font-size:15px; }
.trust-badge small { color:var(--text-mut); font-size:13px; }

/* ---- Reviews / testimonials ---- */
.stars { color:#00b67a; letter-spacing:2px; font-size:16px; }
.review-card { background:linear-gradient(180deg,var(--surface),var(--bg-2)); border:1px solid var(--border); border-radius:var(--r-lg); padding:26px; }
.review-card p { color:var(--text-dim); font-size:15px; margin:12px 0 18px; }
.review-who { display:flex; align-items:center; gap:12px; }
.review-who .av { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--neon),var(--neon-2)); display:grid; place-items:center; color:#04140c; font-weight:800; }
.review-who b { font-size:14px; } .review-who small { color:var(--text-mut); font-size:12px; }
.tp-header { display:flex; align-items:center; gap:14px; justify-content:center; flex-wrap:wrap; }
.tp-badge { display:inline-flex; align-items:center; gap:8px; background:#00b67a; color:#fff; padding:6px 12px; border-radius:8px; font-weight:700; font-size:14px; }

/* ---- Discord community banner ---- */
.discord-band { display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap;
  padding:36px 40px; border-radius:var(--r-xl);
  background:linear-gradient(100deg, rgba(88,101,242,.18), rgba(88,101,242,.06));
  border:1px solid rgba(88,101,242,.35); }
.discord-band h3 { font-size:24px; font-weight:800; }
.discord-band p { color:var(--text-dim); margin-top:6px; }
.btn-discord { background:#5865F2; color:#fff; }
.btn-discord:hover { background:#4752c4; box-shadow:0 10px 30px rgba(88,101,242,.4); }

/* ---- Social icons ---- */
.socials { display:flex; gap:12px; flex-wrap:wrap; }
.socials a { width:42px; height:42px; border-radius:11px; display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--border-2); font-size:18px; transition:.18s; }
.socials a:hover { border-color:var(--neon); transform:translateY(-3px); background:var(--surface-2); }

/* ---- Nav dropdown ---- */
.nav-links li.has-drop { position:relative; }
.nav-drop { position:absolute; top:130%; left:50%; transform:translateX(-50%) translateY(8px);
  min-width:230px; background:var(--surface); border:1px solid var(--border-2); border-radius:var(--r);
  padding:8px; opacity:0; visibility:hidden; transition:.18s; box-shadow:var(--shadow); z-index:120; }
.nav-links li.has-drop:hover .nav-drop { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav-drop a { display:flex !important; gap:10px; padding:10px 12px; border-radius:9px; font-size:14px; color:var(--text-dim); }
.nav-drop a:hover { background:var(--surface-3); color:var(--text); }
@media (max-width:960px){ .nav-drop { position:static; transform:none; opacity:1; visibility:visible; box-shadow:none; border:none; background:transparent; padding:0 0 0 14px; } }

/* ---- Generic content / legal pages ---- */
.page-hero { padding:70px 0 40px; text-align:center; }
.page-hero h1 { font-size:clamp(30px,5vw,50px); font-weight:850; letter-spacing:-.02em; }
.page-hero p { color:var(--text-dim); font-size:18px; max-width:640px; margin:16px auto 0; }
.prose { max-width:820px; margin:0 auto; }
.prose h2 { font-size:24px; font-weight:800; margin:34px 0 12px; }
.prose h3 { font-size:18px; font-weight:700; margin:24px 0 8px; }
.prose p, .prose li { color:var(--text-dim); font-size:15.5px; line-height:1.8; }
.prose ul { margin:10px 0 10px 22px; } .prose li { margin-bottom:8px; list-style:disc; }
.prose .updated { color:var(--text-mut); font-size:14px; margin-bottom:20px; }
.prose a { color:var(--neon); }

/* ---- Steps timeline (scaling) ---- */
.timeline { display:grid; gap:16px; }
.tl-item { display:flex; gap:18px; padding:22px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); }
.tl-item .tl-num { flex-shrink:0; width:46px; height:46px; border-radius:12px; background:var(--neon-soft); color:var(--neon); display:grid; place-items:center; font-weight:800; border:1px solid rgba(47,189,176,.3); }
.tl-item h3 { font-size:18px; } .tl-item p { color:var(--text-dim); font-size:14.5px; margin-top:4px; }

/* ---- Symbol chips ---- */
.sym-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.sym-chip { padding:14px 16px; border:1px solid var(--border); border-radius:var(--r); background:var(--surface); font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.sym-chip small { color:var(--text-mut); font-weight:500; }

/* ---- Blog cards ---- */
.blog-card { border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; background:var(--surface); transition:.2s; }
.blog-card:hover { transform:translateY(-4px); border-color:var(--border-2); }
.blog-thumb { height:160px; background:linear-gradient(135deg,var(--surface-3),var(--bg-2)); display:grid; place-items:center; font-size:40px; }
.blog-body { padding:22px; }
.blog-body .tag2 { font-size:12px; color:var(--neon); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.blog-body h3 { font-size:18px; margin:8px 0; } .blog-body p { color:var(--text-dim); font-size:14px; }

/* ---- Contact form ---- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:860px){ .contact-grid, .trust-row { grid-template-columns:1fr; } .discord-band { flex-direction:column; text-align:center; align-items:center; } }

/* ---- Rich footer socials row ---- */
.footer-social { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-top:30px; padding-top:24px; border-top:1px solid var(--border); }

/* ============================================================
   FTMO-style MEGA MENU nav
   ============================================================ */
.nav-links li.has-drop { position:relative; }
.nav-links li.has-drop > a { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.caret { font-size:10px; opacity:.7; transition:transform .2s; }
.nav-links li.has-drop:hover .caret { transform:rotate(180deg); color:var(--neon); }
/* hover bridge (cursor gap) */
.nav-links li.has-drop::after { content:''; position:absolute; top:100%; left:-20px; right:-20px; height:18px; }

.mega { position:absolute; top:calc(100% + 16px); left:50%; background:var(--surface);
  border:1px solid var(--border-2); border-radius:var(--r-lg); padding:20px; box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transform:translateX(-50%) translateY(10px); transition:.18s; z-index:130;
  max-width:min(760px, 94vw); }
.nav-links li.has-drop:hover .mega { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mega.mega-lg { display:flex; gap:22px; }
.mega-cols { display:flex; gap:28px; }
.mega-col { min-width:215px; }
.mega-h { font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:var(--text-mut); margin:0 0 8px 10px; }
.mega-col a { display:flex !important; gap:12px; align-items:flex-start; padding:9px 10px; border-radius:11px; color:var(--text) !important; transition:.15s; }
.mega-col a:hover { background:var(--surface-3); }
.mega-col a .mi { font-size:18px; width:26px; text-align:center; flex-shrink:0; margin-top:1px; }
.mega-col a b { display:block; font-size:14.5px; font-weight:600; }
.mega-col a small { color:var(--text-mut); font-size:12.5px; }
.mega-feature { display:flex !important; flex-direction:column; justify-content:center; min-width:230px;
  padding:24px !important; border-radius:var(--r) !important;
  background:linear-gradient(160deg, rgba(47,189,176,.13), rgba(47,189,176,.06));
  border:1px solid rgba(47,189,176,.25); color:var(--text) !important; }
.mega-feature:hover { background:linear-gradient(160deg, rgba(47,189,176,.2), rgba(47,189,176,.09)); transform:none; }
.mega-feature .mfb { align-self:flex-start; font-size:11px; font-weight:800; color:#04140c; background:var(--neon); padding:3px 11px; border-radius:100px; }
.mega-feature .mft { font-size:19px; font-weight:850; margin:12px 0 6px; }
.mega-feature .mfd { color:var(--text-dim); font-size:13px; line-height:1.5; }
.mega-feature .mfc { color:var(--neon); font-weight:700; font-size:14px; margin-top:16px; }

@media (max-width:960px){
  .mega { position:static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    border:none; background:transparent; padding:4px 0 8px 10px; }
  .mega.mega-lg { flex-direction:column; gap:10px; }
  .mega-cols { flex-direction:column; gap:12px; }
  .mega-feature { display:none !important; }
  .nav-links li.has-drop > a .caret { margin-left:auto; }
  .mega-h { margin-left:0; }
}

/* ============================================================
   PREMIUM OVERRIDES v2 (rich theme, glass, custom type, icons)
   ============================================================ */

/* ---- Display typography ---- */
h1, h2, h3, .section-title, .hero h1, .logo, .cta-band h2, .page-hero h1,
.split h2, .kpi .val, .s-num, .price-amt, .stat-strip .s-num {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.hero h1 { letter-spacing: -0.045em; font-weight: 800; }
.eyebrow { font-family: var(--font); }
body { font-feature-settings: "cv02","cv03","cv04","ss01"; }

/* ---- Richer ambient background (layered glows + grid) ---- */
body::before {
  background:
    radial-gradient(680px circle at 12% -2%, rgba(47,189,176,.055), transparent 46%),
    radial-gradient(760px circle at 88% 4%, rgba(42,169,187,.05), transparent 46%),
    radial-gradient(600px circle at 50% 120%, rgba(47,189,176,.035), transparent 50%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ---- Gradient text richer ---- */
.gradient-text { background-image: var(--grad-duo); }

/* ---- SVG icon system (replaces emoji) ---- */
.ic svg, .mi svg, .em svg, .tl-num svg { display: block; }
.card .ic { background: linear-gradient(160deg, var(--neon-soft), var(--violet-soft)); border-color: var(--glass-brd); }
.card .ic svg { width: 26px; height: 26px; stroke: var(--neon); stroke-width: 1.8; fill: none; }
.trust-badge .em svg, .tl-num svg { width: 24px; height: 24px; stroke: var(--neon); stroke-width: 1.8; fill: none; }
.i-violet svg { stroke: var(--violet) !important; }
.i-cyan svg { stroke: var(--neon-2) !important; }
.i-gold svg { stroke: var(--gold) !important; }

/* ---- Glassmorphism cards ---- */
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  backdrop-filter: blur(6px);
  border-color: var(--glass-brd);
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(47,189,176,.35), rgba(42,169,187,.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

/* ---- Premium buttons ---- */
.btn-primary {
  background: var(--grad-primary);
  color: #04140c; box-shadow: 0 10px 30px rgba(47,189,176,.16), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { backdrop-filter: blur(8px); background: rgba(255,255,255,.04); }

/* ---- Eyebrow richer ---- */
.eyebrow {
  background: linear-gradient(90deg, var(--neon-soft), var(--violet-soft));
  border-color: var(--glass-brd);
  backdrop-filter: blur(8px);
}

/* ---- Section headings bigger/premium ---- */
.section-title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.hero h1 { font-size: clamp(26px, 3.1vw, 41px); line-height: 1.08; }

/* ---- Nav premium ---- */
.nav { background: rgba(6,8,18,.7); backdrop-filter: blur(18px) saturate(1.3); }
.logo-mark { box-shadow: 0 0 24px rgba(47,134,255,.3); }

/* ---- Stat strip / panels glass ---- */
.stat-strip, .mock-panel, .panel, .kpi, .acct-banner, .price-card, .review-card, .trust-badge, .tl-item, .sym-chip, .blog-card {
  border-color: var(--glass-brd);
  backdrop-filter: blur(6px);
}
.stat-strip { background: linear-gradient(180deg, rgba(255,255,255,.03), var(--bg-2)); }

/* ---- Divider utility ---- */
.hr-soft { height:1px; background:linear-gradient(90deg,transparent,var(--border-2),transparent); border:none; margin:0; }

/* ---- Newsletter ---- */
.newsletter { display:grid; grid-template-columns:1.2fr 1fr; gap:40px; align-items:center; padding:40px 44px;
  border-radius:var(--r-xl); background:linear-gradient(120deg, rgba(47,189,176,.08), rgba(42,169,187,.07));
  border:1px solid var(--glass-brd); }
.newsletter h3 { font-size:28px; font-weight:800; font-family:var(--font-display); letter-spacing:-.02em; }
.newsletter .checks { display:flex; gap:20px; flex-wrap:wrap; margin-top:14px; color:var(--text-dim); font-size:14px; }
.newsletter .checks span { display:inline-flex; gap:7px; align-items:center; }
.nl-form { display:flex; gap:10px; }
.nl-form input { flex:1; padding:15px 18px; border-radius:100px; background:var(--bg-2); border:1px solid var(--border-2); color:var(--text); font-size:15px; }
.nl-form input:focus { outline:none; border-color:var(--neon); }

/* ---- Payment logos ---- */
.pay-logos { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.pay-logo { height:38px; min-width:56px; padding:0 12px; border-radius:9px; background:#fff; color:#0a0d1a;
  display:grid; place-items:center; font-weight:800; font-size:13px; letter-spacing:-.02em; }
.pay-logo.dark { background:var(--surface-2); color:var(--text); border:1px solid var(--border-2); }

/* ---- Award / recognition badges ---- */
.awards { display:flex; gap:28px; flex-wrap:wrap; align-items:center; justify-content:center; }
.award { display:flex; gap:12px; align-items:center; padding:14px 20px; border:1px solid var(--glass-brd); border-radius:var(--r); background:var(--glass); }
.award .aw-em { font-size:24px; }
.award b { font-family:var(--font-display); font-size:15px; } .award small { display:block; color:var(--text-mut); font-size:12px; }

/* ---- Big company stat cards ---- */
.co-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.co-stat { padding:30px; border-radius:var(--r-lg); background:linear-gradient(180deg,var(--surface),var(--bg-2)); border:1px solid var(--glass-brd); }
.co-stat .cs-top { display:flex; align-items:center; gap:10px; color:var(--text-dim); font-size:14px; font-weight:600; }
.co-stat .cs-top svg { width:22px; height:22px; stroke:var(--neon); stroke-width:1.8; fill:none; }
.co-stat .cs-num { font-family:var(--font-display); font-size:46px; font-weight:800; letter-spacing:-.03em; margin-top:14px; }

/* ---- Language chips ---- */
.lang-grid { display:flex; flex-wrap:wrap; gap:10px; }
.lang-chip { padding:9px 15px; border-radius:100px; background:var(--surface); border:1px solid var(--border-2); font-size:14px; font-weight:500; }

@media (max-width:860px){ .newsletter, .co-stats { grid-template-columns:1fr; } .nl-form { flex-direction:column; } }

/* ---- SVG icon sizing across all containers (premium consistency) ---- */
.card .ic svg { width:26px; height:26px; }
.trust-badge .em svg, .tl-num svg { width:24px; height:24px; }
.side-link .ic svg { width:19px; height:19px; stroke:currentColor; stroke-width:1.9; fill:none; }
.ach .em svg { width:30px; height:30px; stroke:var(--neon); stroke-width:1.7; fill:none; }
.aw-em svg { width:24px; height:24px; stroke:var(--gold); stroke-width:1.8; fill:none; }
.mega-col a .mi svg { width:19px; height:19px; stroke:var(--neon); stroke-width:1.8; fill:none; }
.blog-thumb svg { width:46px; height:46px; stroke:var(--neon); stroke-width:1.5; fill:none; }
.blog-card:nth-child(3n+2) .blog-thumb svg { stroke:var(--violet); }
.blog-card:nth-child(3n) .blog-thumb svg { stroke:var(--neon-2); }
.card:nth-child(3n+2) .ic svg { stroke:var(--violet); }
.card:nth-child(3n) .ic svg { stroke:var(--neon-2); }
.grid-2 .card:nth-child(2n) .ic svg { stroke:var(--violet); }
/* social brand icons */
.socials a svg { width:18px; height:18px; fill:currentColor; }
.socials a { color:var(--text-dim); }
.socials a:hover { color:var(--neon); }
.mi { display:inline-flex; }

/* ============================================================
   HUMAN TOUCH — trader cards, verified reviews, avatars
   ============================================================ */
.trader-card { border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--glass-brd); background:var(--surface); transition:transform .22s, box-shadow .22s; }
.trader-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.trader-photo { height:240px; background-size:cover; background-position:center top; position:relative; }
.trader-photo::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 45%, rgba(10,13,26,.92)); }
.trader-play { position:absolute; z-index:2; top:14px; left:14px; background:rgba(0,0,0,.55); backdrop-filter:blur(6px); padding:5px 11px; border-radius:100px; font-size:12px; font-weight:600; display:inline-flex; gap:7px; align-items:center; }
.trader-play .dotr { width:7px; height:7px; border-radius:50%; background:var(--neon); box-shadow:0 0 8px var(--neon); }
.trader-info { padding:20px 22px 22px; }
.trader-info .t-name { font-family:var(--font-display); font-size:20px; font-weight:700; display:flex; gap:9px; align-items:center; letter-spacing:-.02em; }
.trader-info .t-loc { color:var(--text-mut); font-size:13px; margin-top:2px; margin-bottom:18px; }
.trader-meta { display:flex; justify-content:space-between; border-top:1px solid var(--border); padding-top:16px; }
.trader-meta .tm-lab { color:var(--text-mut); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.trader-meta .tm-val { font-weight:700; font-size:16px; margin-top:3px; }

.avatar-stack { display:flex; align-items:center; }
.avatar-stack img { width:48px; height:48px; border-radius:50%; border:2.5px solid var(--bg-2); margin-left:-14px; object-fit:cover; }
.avatar-stack img:first-child { margin-left:0; }
.avatar-stack .more { width:48px; height:48px; border-radius:50%; border:2.5px solid var(--bg-2); margin-left:-14px; background:var(--surface-3); display:grid; place-items:center; font-size:13px; font-weight:700; color:var(--neon); }

.review-v { background:var(--surface); border:1px solid var(--glass-brd); border-radius:var(--r); padding:24px; transition:.2s; }
.review-v:hover { border-color:var(--border-2); transform:translateY(-3px); }
.review-v .rv-top { display:flex; gap:12px; align-items:center; margin-bottom:14px; }
.review-v .rv-top img { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.review-v .rv-name { font-weight:700; font-size:14.5px; display:flex; gap:7px; align-items:center; }
.review-v .rv-verified { color:#00b67a; font-size:11.5px; font-weight:600; display:inline-flex; gap:4px; align-items:center; }
.review-v .rv-time { color:var(--text-mut); font-size:12px; margin-top:2px; }
.review-v h4 { font-size:15.5px; margin:6px 0 6px; font-weight:700; }
.review-v p { color:var(--text-dim); font-size:14px; line-height:1.65; }

.feature-photo { border-radius:var(--r-lg); overflow:hidden; min-height:380px; background-size:cover; background-position:center; position:relative; border:1px solid var(--glass-brd); box-shadow:var(--shadow); }
.feature-photo .fp-cap { position:absolute; left:26px; bottom:26px; right:26px; z-index:2; }
.feature-photo::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,8,18,.1) 40%, rgba(6,8,18,.88)); }
.feature-photo .fp-cap h3 { font-family:var(--font-display); font-size:26px; font-weight:800; }
.feature-photo .fp-cap p { color:var(--text-dim); margin-top:4px; }

/* Section spacing — more breathing room (FTMO-like) */
.section.roomy { padding:110px 0; }
.section-intro { max-width:640px; margin:0 auto 56px; }

/* ============================================================
   Scroll reveal animations (Apple-style, subtle)
   ============================================================ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change:opacity, transform; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1 !important; transform:none !important; transition:none !important; } }

/* ============================================================
   Challenge pricing widget (FTMO-style compact comparison)
   ============================================================ */
.ch-widget { text-align:left; }
.ch-controls { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.ch-right { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.seg { display:inline-flex; gap:4px; background:var(--surface); border:1px solid var(--border-2); border-radius:100px; padding:5px; }
.seg button { padding:9px 18px; border-radius:100px; color:var(--text-dim); font-weight:700; font-size:14px; transition:.15s; display:inline-flex; flex-direction:column; align-items:center; line-height:1.2; }
.seg.ch-steps button span { font-size:11px; font-weight:500; color:var(--text-mut); margin-top:1px; }
.seg button.on { background:var(--grad-primary); color:#1a0d02; }
.seg button.on span { color:rgba(26,13,2,.65); }
.ch-toggle { display:inline-flex; align-items:center; gap:8px; color:var(--text-dim); font-size:14px; font-weight:600; cursor:pointer; user-select:none; }
.ch-toggle input { width:auto; accent-color:var(--neon); }

.ch-scroll { overflow-x:auto; border:1px solid var(--glass-brd); border-radius:var(--r-lg); background:linear-gradient(180deg,var(--surface),var(--bg-2)); }
.ch-table { min-width:820px; display:grid; grid-template-columns:1.15fr repeat(5,1fr); }
.ch-row { display:contents; }
.ch-lab, .ch-cell { padding:15px 16px; border-bottom:1px solid var(--border); }
.ch-lab { color:var(--text-dim); font-weight:600; font-size:14px; display:flex; align-items:center; }
.ch-cell { text-align:center; color:var(--text); font-size:14px; font-weight:500; }
.ch-head .ch-lab, .ch-head .ch-cell { border-bottom:1px solid var(--border-2); padding:26px 16px 18px; position:relative; }
.ch-size-lab { font-size:12px; color:var(--text-mut); }
.ch-size { font-family:var(--font-display); font-size:22px; font-weight:800; letter-spacing:-.02em; margin-top:2px; }
/* Offer highlight = crispy transparent orange */
.ch-col-featured { background:linear-gradient(180deg, var(--orange-soft), rgba(242,137,74,.02)); }
.ch-head .ch-col-featured { border-top:1px solid var(--orange-line); border-left:1px solid rgba(242,137,74,.3); border-right:1px solid rgba(242,137,74,.3); }
.ch-col-featured:not(.ch-head .ch-col-featured) { border-left:1px solid rgba(242,137,74,.3); border-right:1px solid rgba(242,137,74,.3); }
.ch-best { position:absolute; top:0; left:50%; transform:translate(-50%,-52%); background:transparent; color:var(--orange); border:1px solid var(--orange-line); box-shadow:0 0 18px var(--orange-glow); font-size:11px; font-weight:800; padding:3px 12px; border-radius:100px; white-space:nowrap; letter-spacing:.03em; backdrop-filter:blur(4px); }
.ch-price .ch-lab, .ch-price .ch-cell { border-bottom:none; padding-bottom:24px; padding-top:20px; }
.ch-price-val { font-family:var(--font-display); font-size:26px; font-weight:850; }
.ch-price-val .ch-was { display:block; font-family:var(--font); font-size:13px; font-weight:600; color:var(--text-mut); text-decoration:line-through; opacity:.8; margin-bottom:1px; }
.ch-price-val .ch-now { color:var(--neon); }
.ch-offer { text-align:center; font-size:14px; font-weight:700; color:var(--neon); background:var(--neon-soft); border:1px solid rgba(47,189,176,.32); border-radius:100px; padding:8px 18px; margin:0 auto 22px; width:fit-content; max-width:100%; }
.ch-offer b { font-weight:850; }

/* checkout "how to pay" steps */
.pay-steps { background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin:14px 0 4px; }
.pay-steps-h { font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--neon); margin-bottom:8px; }
.pay-steps ol { margin:0; padding-left:20px; }
.pay-steps li { font-size:13px; line-height:1.6; color:var(--text-dim); margin-bottom:5px; }
.pay-steps li b { color:var(--text); }
.ch-price .ch-lab { font-weight:700; color:var(--text); }
.ch-cell .btn { margin-top:12px; }
/* Featured column's Start button = crispy transparent orange (outlined) */
.ch-col-featured .btn-primary { background:var(--orange-soft); color:var(--orange); border:1px solid var(--orange-line); box-shadow:none; }
.ch-col-featured .btn-primary:hover { background:var(--orange); color:#1a0d02; box-shadow:0 8px 22px var(--orange-glow); }
@media (max-width:760px){ .ch-controls { flex-direction:column; align-items:stretch; } .ch-right { justify-content:space-between; } }

/* ---------- Social buttons + modal ---------- */
.social-row { display:flex; gap:12px; }
.social-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.social-btn svg { flex-shrink:0; }
.fx-modal { position:fixed; inset:0; z-index:200; background:rgba(4,6,14,.72); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:20px; }
.fx-modal-card { position:relative; width:100%; max-width:420px; background:var(--surface); border:1px solid var(--glass-brd); border-radius:var(--r-lg); padding:32px 28px; box-shadow:var(--shadow-lg); }
.fx-modal-x { position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:9px; color:var(--text-dim); background:var(--surface-2); font-size:15px; }
.fx-modal-x:hover { color:var(--text); background:var(--surface-3); }

/* ============================================================
   DASHBOARD v2 — light/dark theme, sectioned sidebar, MetriX layout
   ============================================================ */

/* chart grid colour token (dark default; light overridden below) */
:root { --chart-grid: rgba(255,255,255,.06); }

/* ---------- LIGHT THEME (dashboard pages set data-theme="light" on <html>) ----------
   :root stays DARK so marketing pages are unaffected. Overriding the base
   tokens here cascades to .panel/.kpi/.sidebar/etc automatically.        */
html[data-theme="light"] {
  --bg:            #f4f6fb;
  --bg-2:          #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f7f9fc;
  --surface-3:     #eef1f7;
  --border:        #e4e8f0;
  --border-2:      #d4dae6;

  --text:          #0f1526;
  --text-dim:      #4a5570;
  --text-mut:      #8a93a8;

  /* brand accent stays orange in both themes */
  --neon-soft:     rgba(47,189,176,.12);
  --neon-glow:     rgba(47,189,176,.16);
  --violet-soft:   rgba(42,169,187,.10);

  --shadow:        0 10px 30px rgba(20,30,60,.08);
  --shadow-lg:     0 20px 50px rgba(20,30,60,.12);
  --shadow-neon:   0 0 0 1px var(--neon-glow), 0 14px 40px rgba(47,189,176,.14);
  --glass:         rgba(10,14,26,.02);
  --glass-brd:     rgba(10,14,26,.07);
  --chart-grid:    rgba(15,25,45,.08);
}
/* soften ambient glows on white */
html[data-theme="light"] body::before {
  background:
    radial-gradient(600px circle at 15% 0%, rgba(47,189,176,.05), transparent 45%),
    radial-gradient(700px circle at 85% 10%, rgba(42,169,187,.04), transparent 45%);
}
/* white-alpha overlays that vanish on white → give them light-mode values */
html[data-theme="light"] table.lb tr:hover td { background: rgba(15,25,45,.035); }
html[data-theme="light"] .btn-ghost { background: #ffffff; border-color: var(--border-2); }
html[data-theme="light"] .btn-ghost:hover { background: var(--neon-soft); border-color: var(--neon); }
html[data-theme="light"] .nav { background: rgba(255,255,255,.8); }
html[data-theme="light"] .side-link.active { color: var(--violet); }
/* smooth theme flip — NOTE: do NOT transition `background` here. Transitioning a
   var()-based background across a data-theme flip leaves the computed background
   stuck at the old colour in Chrome (esp. the sticky sidebar). Snap background
   instantly; keep colour/border smooth. */
.sidebar, .side-link, .panel, .kpi, .topbar, .info-list li { transition: color .25s, border-color .25s; }

/* ---------- SIDEBAR v2 (sections, collapse, locked, toggle) ---------- */
.sidebar { display: flex; flex-direction: column; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 100px; }

.side-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 4px 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 8px 22px var(--neon-glow); transition: transform .16s, box-shadow .16s;
}
.side-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px var(--neon-glow); color: #fff; }
.side-cta svg { width: 18px; height: 18px; }

.side-sec { margin-bottom: 4px; }
.side-sec-h {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 10px 7px; background: none; border: none; cursor: pointer;
  color: var(--text-mut); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-family: inherit;
}
.side-sec-h:hover { color: var(--text-dim); }
.side-sec-h .chev { width: 15px; height: 15px; transition: transform .22s; }
.side-sec.collapsed .side-sec-h .chev { transform: rotate(-90deg); }
.side-sec-body { display: grid; grid-template-rows: 1fr; overflow: hidden; transition: grid-template-rows .24s ease; }
.side-sec-body > * { min-height: 0; }
.side-sec.collapsed .side-sec-body { grid-template-rows: 0fr; }

/* normalize <button> side-links to match <a> */
.side-link { width: 100%; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; position: relative; }
.side-link .ic { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; width: 22px; }
.side-link.locked { color: var(--text-mut); cursor: default; }
.side-link.locked:hover { background: transparent; color: var(--text-mut); }
.side-link.locked .ic { opacity: .55; }
.side-link .lock { width: 14px; height: 14px; margin-left: auto; opacity: .7; flex: none; }
.side-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-mut); background: var(--surface-3); padding: 2px 7px; border-radius: 6px; }

.side-toggle { align-items: center; }
.side-toggle .tog-label { flex: 1; }
.side-toggle .ic-sun { display: none; }
.switch { width: 38px; height: 22px; border-radius: 100px; background: var(--surface-3); border: 1px solid var(--border-2); position: relative; flex: none; transition: background .2s; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-mut); transition: transform .2s, background .2s; }
html:not([data-theme="light"]) .switch { background: var(--neon-soft); border-color: rgba(47,189,176,.4); }
html:not([data-theme="light"]) .switch .knob { transform: translateX(16px); background: var(--neon); }
html[data-theme="light"] .side-toggle .ic-moon { display: none; }
html[data-theme="light"] .side-toggle .ic-sun  { display: inline-flex; }
.side-logout { color: var(--text-dim); }
.side-logout:hover { color: var(--danger); background: rgba(255,84,104,.08); }
.side-toggle .ic svg { width: 19px; height: 19px; }

/* ---------- TOP BAR ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.acct-switch { display: inline-flex; align-items: center; gap: 9px; }
.acct-switch .mut { font-size: 13px; font-weight: 600; }
.acct-switch select {
  appearance: none; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238a93a8' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border-2); border-radius: 100px; padding: 9px 34px 9px 15px;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; max-width: 320px;
}
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 17px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface-2); }
.user-chip { display: inline-flex; align-items: center; gap: 10px; }
.user-chip .user-name { font-weight: 700; font-size: 14.5px; }
.only-mobile { display: none; }

/* ---------- MetriX head ---------- */
.crumb { font-size: 13px; color: var(--text-mut); margin-bottom: 14px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--neon); }
.metrix-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.metrix-title { display: flex; align-items: center; gap: 14px; }
.metrix-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--neon-soft); color: var(--neon); flex: none; }
.metrix-ic svg { width: 24px; height: 24px; }
.metrix-title h1 { font-size: 23px; font-weight: 850; letter-spacing: -.02em; }
.metrix-title h1 .mut { font-weight: 600; }
.metrix-title .sub { color: var(--text-mut); font-size: 13.5px; margin-top: 2px; }
.metrix-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; gap: 7px; }
.btn-sm svg, .btn-sm .bi svg { width: 15px; height: 15px; }
.btn-sm .bi { display: inline-flex; }

/* ---------- MetriX grid ---------- */
.metrix-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-bottom: 22px; }
.cr-card .panel-head { margin-bottom: 16px; }
.cr-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.cr-stat .lab { color: var(--text-mut); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cr-stat .val { font-size: 25px; font-weight: 850; margin-top: 5px; letter-spacing: -.01em; }
.eye { width: 34px; height: 34px; font-size: 15px; }
.values-hidden .cr-stat .val { filter: blur(9px); user-select: none; }
.cr-empty { text-align: center; padding: 26px 16px; color: var(--text-dim); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.info-card .panel-head { margin-bottom: 8px; }
.info-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-list li:last-child { border-bottom: none; }
.info-list li > span:first-child { color: var(--text-mut); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 100px; }
.badge-ok  { background: rgba(46,204,113,.14); color: #35c977; }
.badge-bad { background: rgba(255,84,104,.14); color: var(--danger); }
.badge-mut { background: var(--neon-soft); color: var(--neon); }
/* light theme: darken status pills to reach readable contrast on white surfaces */
html[data-theme="light"] .badge-ok  { color: #0f7a48; }
html[data-theme="light"] .badge-bad { color: #c0344a; }
html[data-theme="light"] .badge-mut { color: #0f7a6e; }
.mono { font-variant-numeric: tabular-nums; font-weight: 600; }

.pill-warn { background: rgba(255,154,61,.14); color: var(--warn); border: 1px solid rgba(255,154,61,.3); }
.pill-bad  { background: rgba(255,84,104,.14); color: var(--danger); border: 1px solid rgba(255,84,104,.3); }

/* ---------- objectives ---------- */
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.obj-note { margin-top: 20px; padding: 13px 15px; border-radius: 11px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.obj-note .bi { display: inline-flex; } .obj-note .bi svg { width: 18px; height: 18px; }
.obj-note.ok { background: var(--neon-soft); color: var(--neon); border: 1px solid rgba(47,189,176,.22); }
.obj-note.warn { background: rgba(255,84,104,.1); color: var(--danger); border: 1px solid rgba(255,84,104,.28); }

/* open trades */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-mut); margin-left: 6px; vertical-align: middle; }
.live-dot.on { background: #35c977; box-shadow: 0 0 0 0 rgba(53,201,119,.5); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(53,201,119,0); } 100% { box-shadow: 0 0 0 0 rgba(53,201,119,0); } }
.open-tbl td, .open-tbl th { padding: 12px 10px; }

/* discipline gauge */
.gauge-wrap { position: relative; text-align: center; padding: 6px 0 2px; }
.gauge { width: 190px; max-width: 100%; height: auto; }
.gauge-num { margin-top: -18px; }
.gauge-num b { font-size: 30px; font-weight: 850; }
.gauge-num span { color: var(--text-mut); font-size: 14px; }
.gauge-caption { font-size: 12.5px; margin-top: 8px; }
.tag.tag-illus { background: var(--surface-3); color: var(--text-mut); }

.obj-check { display: flex; flex-direction: column; gap: 4px; }
.obj-check li { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.obj-check li:last-child { border-bottom: none; }
.obj-check .ci { font-size: 15px; }
.obj-check .pass { } .obj-check .fail { color: var(--text-dim); }

/* empty hero */
.empty-hero { text-align: center; padding: 66px 30px; border-top: 3px solid var(--neon); }
.empty-hero .empty-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--neon-soft); color: var(--neon); font-size: 30px; }
.empty-hero h2 { font-size: 24px; font-weight: 850; margin-bottom: 10px; }
.empty-hero p { max-width: 460px; margin: 0 auto 24px; }
.empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* mini account cards under MetriX */
.mini-accts { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; margin-top: 4px; }
.mini-acct { text-align: left; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .18s, transform .18s; }
.mini-acct:hover { border-color: var(--neon); transform: translateY(-2px); }
.mini-acct.sel { border-color: var(--neon); box-shadow: var(--shadow-neon); }
.mini-acct .m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mini-acct .m-size { font-weight: 800; font-size: 16px; }
.mini-acct .m-prof { font-weight: 700; font-size: 14px; }

/* ---------- Responsive (dashboard) ---------- */
@media (max-width: 960px) {
  .metrix-grid, .obj-grid, .dash-grid { grid-template-columns: 1fr; }
  .only-mobile { display: inline-grid; }
  .sidebar { position: fixed; z-index: 130; left: 0; top: 0; width: 274px; height: 100vh; transform: translateX(-100%); transition: transform .25s ease; display: flex; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .dash-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 125; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .dash-backdrop.on { opacity: 1; pointer-events: auto; }
  .dash-main { padding: 20px 18px; }
}

/* ---------- Dashboard: small-phone fixes (prevent horizontal overflow) ---------- */
@media (max-width: 600px) {
  .dash-main { padding: 18px 16px; }
  .topbar { gap: 10px; }
  .topbar-left { min-width: 0; flex: 1; }
  .acct-switch { min-width: 0; }
  .acct-switch .mut { display: none; }
  .acct-switch select { max-width: 52vw; }
  .user-chip .user-name { display: none; }
  .metrix-head { flex-direction: column; align-items: flex-start; }
  .metrix-title { flex-wrap: wrap; gap: 10px; }
  .metrix-title h1 { font-size: 19px; }
  .metrix-actions { width: 100%; }
  .metrix-actions .btn-sm { flex: 1; min-width: 130px; justify-content: center; }
  .cr-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cr-stat .val { font-size: 20px; }
  .metrix-grid, .obj-grid { grid-template-columns: 1fr; }
  .metrix-ic { width: 40px; height: 40px; }
}

/* ============================================================
   MINIMAL REFINEMENT v3 — breathing room, calmer teal, badge fix
   ============================================================ */
/* Generous vertical spacing between sections (Axcorp-style distance) */
.section { padding: 132px 0; }
.hero { padding: 104px 0 96px; }
.section-sub { margin-top: 20px; }
.section .section-title, .page-hero .section-title { margin-bottom: 6px; }

/* Big stat numbers -> clean white (removes teal blocks, more minimal) */
.stat-strip .s-num, .stat-strip .s-num.neon, .co-stat .cs-num, .co-stat .cs-num.neon { color: var(--text) !important; }

/* Calmer ambient wash */
body::before { opacity: .5; }

/* FIX: BEST VALUE badge was clipped by the scroll container's overflow */
.ch-scroll { padding-top: 16px; }
.ch-best { top: 3px; }

/* Mobile keeps tighter spacing */
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 56px; }
}

/* Free Trial nav link = crispy orange offer accent */
.nav-links a.nav-trial { color: var(--orange); font-weight: 700; border: 1px solid var(--orange-line); padding: 7px 15px; border-radius: 100px; transition: .18s; }
.nav-links a.nav-trial:hover { background: var(--orange-soft); color: var(--orange); }

/* ============================================================
   CONVERSION HERO — two-column (copy + live product mockup)
   ============================================================ */
.hero-split { text-align: left; padding: 60px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; margin-bottom: 60px; }
.hero-copy { text-align: left; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy .lead { margin: 0 0 30px; max-width: 560px; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .hero-note { justify-content: flex-start; margin-top: 18px; }
.hero-proof { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--text-dim); }
.hp-stars { color: #f5b301; font-size: 16px; letter-spacing: 1px; }
.hero-proof b { color: var(--text); }

.hero-visual { display: flex; justify-content: center; }
.hero-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--glass-brd); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-lg); border-top: 2px solid var(--neon); }
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hc-acct { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.hc-bal { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; }
.hc-lab { color: var(--text-mut); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.hc-val { font-family: var(--font-display); font-size: 30px; font-weight: 850; letter-spacing: -.02em; }
.hc-profit { font-weight: 700; font-size: 15px; }
.hc-profit span { font-size: 12px; }
.hc-chart { height: 110px; margin: 6px 0 14px; }
.hc-chart svg { width: 100%; height: 100%; display: block; }
.hc-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.hc-m { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; }
.hc-mlab { color: var(--text-mut); font-size: 11px; }
.hc-mval { font-weight: 800; font-size: 17px; margin-top: 2px; }
.hc-trade { display: flex; align-items: center; gap: 9px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-cta, .hero-copy .hero-note { justify-content: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: 2; }
  .hero-card { max-width: 400px; }
}

/* ============================================================
   JOURNAL + ANALYTICS  (added features — tokens only, theme-safe)
   ============================================================ */
.jr-title-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.jr-title-row h1 { font-size:26px; font-weight:800; letter-spacing:-.01em; }
.jr-sub { color:var(--text-dim); font-size:14px; margin-bottom:22px; }

.jr-summary { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin-bottom:22px; }
.jr-summary .kpi { padding:16px 18px; }
.jr-summary .kpi .val { font-size:22px; margin:6px 0 0; }
@media (max-width:1100px){ .jr-summary { grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .jr-summary { grid-template-columns:repeat(2,1fr); } }

.jr-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:18px; }
.jr-seg { display:inline-flex; gap:4px; background:var(--surface); border:1px solid var(--border-2); border-radius:100px; padding:5px; }
.jr-seg button { padding:8px 15px; border-radius:100px; color:var(--text-dim); font-weight:700; font-size:13px; transition:.15s; }
.jr-seg button.on { background:var(--neon-soft); color:var(--neon); }
.jr-tools-right { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.jr-select, .jr-search { background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:9px 13px; font-size:14px; font-weight:600; font-family:inherit; }
.jr-search { min-width:210px; }
.jr-select:focus, .jr-search:focus { outline:none; border-color:var(--neon); }
.jr-count { color:var(--text-mut); font-size:13px; font-weight:600; }

.jr-list { display:flex; flex-direction:column; gap:12px; }
.jr-row { background:linear-gradient(180deg,var(--surface),var(--bg-2)); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; transition:border-color .18s; }
.jr-row:hover { border-color:var(--border-2); }
.jr-row.win  { box-shadow:inset 3px 0 0 0 var(--neon); }
.jr-row.loss { box-shadow:inset 3px 0 0 0 var(--danger); }
.jr-head { display:grid; grid-template-columns:1.3fr .8fr .9fr 1.4fr 1fr auto; align-items:center; gap:14px; padding:15px 18px; cursor:pointer; }
.jr-sym { display:flex; align-items:center; gap:10px; }
.jr-sym b { font-size:15px; font-weight:800; letter-spacing:.01em; }
.jr-cell .k { display:block; font-size:11px; color:var(--text-mut); text-transform:uppercase; letter-spacing:.05em; font-weight:600; margin-bottom:3px; }
.jr-cell .v { font-size:14px; font-weight:600; }
.jr-pl { font-size:16px; font-weight:800; text-align:right; }
.jr-meta { display:flex; align-items:center; gap:10px; justify-content:flex-end; }
.jr-when { font-size:12px; color:var(--text-mut); text-align:right; line-height:1.4; }
.jr-note-badge { color:var(--neon); }
.jr-chev { color:var(--text-mut); transition:transform .2s; flex-shrink:0; }
.jr-chev svg { width:18px; height:18px; display:block; }
.jr-row.open .jr-chev { transform:rotate(180deg); }
@media (max-width:820px){
  .jr-head { grid-template-columns:1fr auto; grid-auto-rows:auto; row-gap:10px; }
  .jr-head .jr-cell.hide-sm { display:none; }
  .jr-pl { grid-column:2; }
}

.jr-body { display:none; padding:0 18px 18px; border-top:1px solid var(--border); }
.jr-row.open .jr-body { display:block; }
.jr-body-grid { display:grid; grid-template-columns:1fr; gap:16px; padding-top:16px; }
.jr-field-lab { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text-mut); margin-bottom:9px; display:block; }
.jr-note { width:100%; min-height:78px; resize:vertical; font-family:inherit; font-size:14px; line-height:1.55; background:var(--surface); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:12px 14px; }
.jr-note:focus { outline:none; border-color:var(--neon); }

.jr-chips { display:flex; flex-wrap:wrap; gap:8px; }
.tag-chip { font-size:12.5px; font-weight:700; padding:7px 13px; border-radius:100px; cursor:pointer; background:var(--surface); border:1px solid var(--border); color:var(--text-dim); transition:.15s; user-select:none; }
.tag-chip:hover { border-color:var(--neon); color:var(--neon); }
.tag-chip.on { background:var(--neon-soft); border-color:rgba(47,189,176,.4); color:var(--neon); }
.tag-chip.on.bad { background:rgba(255,84,104,.12); border-color:rgba(255,84,104,.35); color:var(--danger); }
.jr-rate { display:inline-flex; gap:6px; }
.jr-rate button { font-size:12.5px; font-weight:700; padding:7px 14px; border-radius:9px; cursor:pointer; background:var(--surface); border:1px solid var(--border); color:var(--text-dim); transition:.15s; }
.jr-rate button[data-rate="good"].on { background:var(--neon-soft); border-color:rgba(47,189,176,.4); color:var(--neon); }
.jr-rate button[data-rate="bad"].on  { background:rgba(255,84,104,.12); border-color:rgba(255,84,104,.35); color:var(--danger); }
.jr-body-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:2px; }
.jr-saved { font-size:12px; color:var(--neon); font-weight:600; opacity:0; transition:opacity .3s; }
.jr-saved.show { opacity:1; }

.jr-tagline { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.jr-tagline .mini { font-size:11px; font-weight:700; padding:3px 9px; border-radius:100px; background:var(--neon-soft); color:var(--neon); }
.jr-tagline .mini.mini-acct-tag { background:var(--surface-3); color:var(--text-mut); }

/* ---------- ANALYTICS ---------- */
.mx-kpis { display:grid; grid-template-columns:repeat(6,1fr); gap:14px; margin-bottom:22px; }
.mx-kpis .kpi { padding:16px 16px; }
.mx-kpis .kpi .val { font-size:22px; margin:6px 0 2px; }
.mx-kpis .kpi .sub { color:var(--text-mut); font-size:12px; font-weight:600; }
@media (max-width:1100px){ .mx-kpis { grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){  .mx-kpis { grid-template-columns:repeat(2,1fr); } }
.ls-split { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ls-card { border:1px solid var(--border); border-radius:var(--r); padding:18px 20px; background:var(--surface); }
.ls-card .ls-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.ls-card .ls-row { display:flex; justify-content:space-between; font-size:14px; padding:6px 0; }
.ls-card .ls-row span:first-child { color:var(--text-mut); }
@media (max-width:560px){ .ls-split { grid-template-columns:1fr; } }
.cons-note { margin-top:12px; font-size:13px; display:flex; gap:8px; align-items:flex-start; line-height:1.5; }
.cons-note.ok   { color:#35c977; }
html[data-theme="light"] .cons-note.ok { color:#0f7a48; }
.cons-note.warn { color:var(--warn); }
.cons-note.mut  { color:var(--text-mut); }
.cons-note svg  { width:16px; height:16px; flex:none; margin-top:1px; }
table.lb td.num { text-align:right; font-variant-numeric:tabular-nums; }
table.lb th.num { text-align:right; }
.mx-sec { margin-top:22px; }
.mx-cap { color:var(--text-mut); font-size:12px; text-align:center; margin-top:10px; }

/* Checkout add-on rows */
.addon-row { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--border); border-radius:12px; margin-bottom:10px; cursor:pointer; transition:.15s; }
.addon-row:hover { border-color:var(--border-2); }
.addon-row.on { border-color:var(--neon); background:var(--neon-soft); }
.addon-row input { width:auto; accent-color:var(--neon); flex:none; }
.addon-info { flex:1; } .addon-info b { display:block; font-size:14.5px; } .addon-info small { color:var(--text-mut); font-size:12.5px; }
.addon-price { font-weight:800; color:var(--neon); }

/* ===== Hub pages (dashboard-shell content pages) ===== */
.topbar-title{ font-family:'Sora',Inter,sans-serif; font-size:19px; font-weight:800; letter-spacing:-.01em; margin:0; }
.hub-body > .panel, .hub-body > section.panel, .hub-body > section, .hub-body > .card{ margin-bottom:22px; }
.hub-body > *:last-child{ margin-bottom:0; }
.hub-body .crumb{ margin-bottom:16px; }
.hub-h{ font-family:'Sora',Inter,sans-serif; font-size:23px; font-weight:800; margin:0 0 4px; letter-spacing:-.015em; }
.hub-sub{ color:var(--text-dim); font-size:14.5px; margin:0 0 22px; max-width:620px; }
.tv-wrap{ border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface-2); }

/* ===== Pro trading terminal layout (trade.html) — chart center, order panel right ===== */
.term-grid { display:grid; grid-template-columns: 234px minmax(0,1fr) 336px; gap:16px; align-items:start; margin-top:18px; }
.term-grid > .panel { margin:0; }
.term-chart { padding:0; overflow:hidden; }
.term-chart .panel-head { padding:13px 17px 9px; }
.term-chart #tradeChart { height:524px; background:var(--surface-2); }
.term-wl { max-height:600px; overflow-y:auto; }
.term-wl .wl-cat:first-child { margin-top:0; }
.term-order { position:sticky; top:16px; }
.term-order .ord-symsel { width:100%; margin:2px 0 14px; font-weight:700; appearance:none; -webkit-appearance:none; padding:10px 12px; border-radius:8px; background:var(--surface-2); color:var(--text); border:1px solid var(--border-2); }
.term-bottom { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.term-bottom > .panel { margin:0; }
@media (max-width:1180px){ .term-grid { grid-template-columns: 210px minmax(0,1fr); } .term-order { grid-column:1 / -1; position:static; } }
@media (max-width:820px){ .term-grid, .term-bottom { grid-template-columns:1fr; } .term-chart #tradeChart { height:360px; } .term-wl { max-height:280px; } }

/* ===== Trade terminal: clean top status + account switch + Buy/Sell action buttons ===== */
.fx-live { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-dim); background:var(--surface-2); border:1px solid var(--border); padding:5px 12px; border-radius:100px; white-space:nowrap; }
.term-acct { display:inline-flex; align-items:center; gap:10px; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:6px 8px 6px 14px; }
.term-acct .mut { font-size:11px; font-weight:800; letter-spacing:.05em; }
.term-acct select { margin:0; min-width:220px; padding:9px 12px; font-weight:600; border-radius:8px; appearance:none; -webkit-appearance:none; background:var(--surface-2); color:var(--text); border:1px solid var(--border-2); }
.ord-sides { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:16px; }
.ord-sides button { padding:13px 8px; border-radius:11px; font-weight:800; font-size:15px; letter-spacing:.02em; border:1.5px solid transparent; cursor:pointer; transition:.15s; }
.ord-sides .buy { color:#12b877; background:rgba(22,185,121,.10); border-color:rgba(22,185,121,.38); }
.ord-sides .buy:hover { background:rgba(22,185,121,.18); }
.ord-sides .buy.on { color:#04140d; background:linear-gradient(180deg,#33d693,#15b978); border-color:transparent; box-shadow:0 6px 16px rgba(22,185,121,.28); }
.ord-sides .sell { color:#ff5c6c; background:rgba(255,77,94,.10); border-color:rgba(255,77,94,.38); }
.ord-sides .sell:hover { background:rgba(255,77,94,.18); }
.ord-sides .sell.on { color:#fff; background:linear-gradient(180deg,#ff5f6e,#e63950); border-color:transparent; box-shadow:0 6px 16px rgba(255,77,94,.28); }
/* light theme: darken resting Buy/Sell label text for readable contrast (leave .on gradients) */
html[data-theme="light"] .ord-sides .buy  { color:#0e8f5c; }
html[data-theme="light"] .ord-sides .sell { color:#d83a4a; }

/* ---- "Coming soon" social icons (no real account yet) ---- */
.soc-soon { opacity:.38; cursor:not-allowed; pointer-events:none; filter:grayscale(1); }

/* ---- Notifications dropdown (bell) ---- */
.notif-panel { position:fixed; z-index:200; width:min(320px, calc(100vw - 24px));
  background:var(--surface); border:1px solid var(--border-2); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:8px; animation:notifIn .15s ease; }
@keyframes notifIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.notif-head { font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-mut); padding:8px 10px 6px; }
.notif-item { font-size:13.5px; line-height:1.45; padding:10px 12px; border-radius:9px; margin-bottom:2px; }
.notif-item.notif-bad  { background:rgba(255,84,104,.12); color:var(--danger); }
.notif-item.notif-warn { background:rgba(242,137,74,.12); color:var(--warn); }
html[data-theme="light"] .notif-item.notif-bad  { color:#c0344a; }
.notif-empty { font-size:13.5px; color:var(--text-dim); padding:12px 12px 14px; }

/* ---- Tiny toast (coming-soon stubs) ---- */
.fx-toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%, 20px);
  max-width:min(520px, calc(100vw - 32px)); background:var(--surface); color:var(--text);
  border:1px solid var(--border-2); border-radius:12px; padding:13px 18px; font-size:14px; font-weight:500;
  box-shadow:var(--shadow-lg); z-index:300; opacity:0; transition:opacity .28s, transform .28s; text-align:center; }
.fx-toast.on { opacity:1; transform:translate(-50%, 0); }
