/* ─── MBCtrading — Design Tokens from IBKR capture ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@font-face { font-family:"FA-Brands"; font-weight:400; src:url('assets/fonts/fa-brands-400-60f667.woff2') format('woff2'); }
@font-face { font-family:"FA-Solid"; font-weight:900; src:url('assets/fonts/fa-solid-900-5d0a75.woff2') format('woff2'); }

:root {
  --red:        #D91222;
  --red-dark:   #b50e1c;
  --dark:       #15181E;
  --darker:     #0d0f13;
  --light:      #FCFCFC;
  --muted:      rgba(252,252,252,0.7);
  --muted60:    rgba(252,252,252,0.6);
  --black:      #000;
  --white:      #fff;
  --border:     rgba(255,255,255,0.1);
  --gradient-hero: radial-gradient(circle at 100% 0%, rgb(133,143,159) 1%, rgb(20,20,20) 100%);
  --gradient-panel: radial-gradient(180.62% 113% at 0.96% 2.23%, rgba(88,155,255,0.1) 0%, rgba(88,155,255,0.02) 100%), linear-gradient(0deg,rgba(21,24,30,.4),rgba(21,24,30,.4)), radial-gradient(34.55% 74.25% at 72.71% 84.13%,rgba(21,24,30,0) 0%,rgb(21,24,30) 100%);
  --font: "Inter", Arial, Verdana, sans-serif;
  --container: 1400px;
  --shadow-sm: rgba(0,0,0,.2) 0 1px 2px 0;
  --shadow-md: rgba(0,0,0,.2) 0 1px 5px 0;
  --radius: 6px;
  --radius-pill: 100px;
  --radius-card: 20px;
  /* ── Extended design-system tokens ── */
  --up:         #26C9A3;
  --dn:         #EF5350;
  --bg:         #0B0D11;
  --surface:    #0F1218;
  --s2:         #141820;
  --s3:         #1A1F2A;
  --border2:    rgba(255,255,255,.12);
  --text:       #E8ECF0;
  --t2:         rgba(232,236,240,.55);
  --t3:         rgba(232,236,240,.30);
  --gold:       #F5B843;
  --blue:       #4FA8FF;
  --font-data:  "Courier New", "Roboto Mono", Consolas, monospace;
  --transition-base: .2s cubic-bezier(.22,1,.36,1);
  --transition-fast: .12s cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { overflow-x: hidden; }
body { font-family: var(--font); font-size: 15px; line-height: var(--lh-base, 1.6); color: var(--light); background: var(--dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }

/* ─── CONTAINER ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR TOP ─── */
.nav-top { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-top .container { display: flex; justify-content: flex-end; align-items: center; height: 38px; gap: 20px; }
.nav-top a { font-size: 12px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-top a:hover { color: var(--light); }
.nav-top .btn-login { background: var(--red); color: var(--white); padding: 4px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: background .2s; }
.nav-top .btn-login:hover { background: var(--red-dark); }

/* ─── NAVBAR MAIN ─── */
.nav-main { background: rgba(13,15,19,0.90); backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); position: sticky; top: 0; z-index: 999; border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 2px 12px rgba(0,0,0,.4); transition: background 0.35s ease, box-shadow 0.35s ease; }
.nav-main .container { display: flex; align-items: center; height: 57px; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-text { font-size: 22px; font-weight: 600; color: var(--light); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; gap: 0; flex: 1; }
.nav-links > a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 14px; height: 57px; display: flex; align-items: center; transition: color .2s, border-bottom .2s; border-bottom: 3px solid transparent; }
.nav-links > a:hover { color: var(--light); border-bottom-color: var(--red); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.btn-open-acct { background: var(--red); color: var(--white); padding: 8px 20px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm, 6px); transition: background .2s; white-space: nowrap; }
.btn-open-acct:hover { background: var(--red-dark); }
.nav-hamburger { display: none; background: none; border: none; color: var(--light); font-size: 22px; cursor: pointer; padding: 4px; }

/* ─── HERO ─── */
.hero { background: var(--gradient-hero); min-height: 680px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('assets/images/hero-bg-mbc-home-xl-44331e.jpg'); background-size: cover; background-position: center right; opacity: .45; }
.hero-content { position: relative; z-index: 2; padding: 80px 0 60px; flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 56px; font-weight: 600; line-height: 1.05; color: var(--light); max-width: 560px; margin-bottom: 24px; }
.hero-sub { font-size: 20px; font-weight: 400; color: var(--muted); max-width: 600px; margin-bottom: 40px; line-height: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #e3162a 0%, #D91222 45%, #b01020 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm, 6px);
  transition: background .2s, transform var(--transition-base, .2s cubic-bezier(.22,1,.36,1)),
              box-shadow var(--transition-base, .2s cubic-bezier(.22,1,.36,1));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px -2px rgba(217,18,34,0.45), 0 2px 6px -2px rgba(217,18,34,0.30);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.14) 48%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast, .12s cubic-bezier(.22,1,.36,1));
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f01f30 0%, #e3162a 45%, #c01222 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(217,18,34,0.60), 0 4px 10px -4px rgba(217,18,34,0.40);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: scale(0.98); transition-duration: .08s; }
.btn-secondary { background: transparent; color: var(--light); font-size: 16px; font-weight: 600; padding: 13px 32px; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius-sm, 6px); transition: border-color .2s, background .2s; }
.btn-secondary:hover { border-color: var(--light); background: rgba(255,255,255,.05); }
.hero-img-wrap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 55%; border-radius: 12px 0 0 12px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); }
.hero-platform-img { width: 100%; display: block; }

/* ─── AWARDS BAR ─── */
.awards-bar { background: rgba(255,255,255,0.04); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background-color: var(--dark); }
.awards-bar .container { display: flex; align-items: center; gap: 40px; padding: 24px; flex-wrap: wrap; }
.awards-bar-label { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.awards-list { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.award-item { display: flex; flex-direction: column; align-items: flex-start; }
.award-title { font-size: 12px; font-weight: 600; color: var(--light); line-height: 16px; }
.award-logo { height: 22px; filter: brightness(0) invert(.7); margin-top: 4px; }

/* ─── SECTION BASE ─── */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); }
.section-darker { background: var(--darker); }
.section-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--light);
  margin-bottom: 16px;
}
.section-headline.dark { color: #222; }
.section-sub { font-size: 18px; font-weight: 400; color: var(--muted); line-height: 26px; margin-bottom: 48px; max-width: 680px; }
.section-tag { font-size: 12px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }

/* ─── MARKETS SECTION ─── */
.markets-section { background: var(--dark); background-image: url('assets/images/bg-global-markets-xl-ab414f.jpg'); background-size: cover; background-position: center; position: relative; }
.markets-section::before { content:''; position:absolute; inset:0; background: rgba(21,24,30,.75); }
.markets-section .container { position: relative; z-index: 1; }
.markets-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px; }
.market-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 28px 24px;
  border-radius: var(--radius-card);
  transition: background .25s ease, transform .25s cubic-bezier(.22,1,.36,1),
              box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(14px) saturate(150%);
  position: relative;
  overflow: hidden;
}
.market-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.008) 100%);
  pointer-events: none;
}
.market-card:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(217,18,34,0.30);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -6px rgba(0,0,0,0.65), 0 4px 10px -4px rgba(217,18,34,0.20);
}
.market-card-icon { width: 36px; height: 36px; margin-bottom: 16px; display:flex; align-items:center; justify-content:center; color: var(--red); }
.market-card h3 { font-size: 18px; font-weight: 600; color: var(--light); margin-bottom: 8px; }
.market-card p { font-size: 14px; color: var(--muted60); line-height: 20px; }

/* ─── MONEY SECTION ─── */
.money-section { background: var(--bg); }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.money-features { display: flex; flex-direction: column; gap: 28px; }
.money-feature { display: flex; gap: 18px; align-items: flex-start; }
.money-feature-icon { width: 40px; height: 40px; background: rgba(217,18,34,.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.money-feature-icon svg { width: 20px; height: 20px; stroke: var(--red); fill: none; }
.money-feature h3 { font-size: 18px; font-weight: 600; color: var(--light); margin-bottom: 6px; }
.money-feature p { font-size: 14px; color: var(--muted60); line-height: 22px; }

/* ─── PRICING ─── */
.pricing-section { background: var(--dark); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 48px auto 0; }
.pricing-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 36px 32px; text-align: center; transition: border-color .2s; }
.pricing-card:hover { border-color: var(--red); }
.pricing-card.featured { border-color: var(--red); background: rgba(217,18,34,.06); }
.pricing-badge { display: inline-block; background: var(--red); color: white; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-card h3 { font-size: 22px; font-weight: 600; color: var(--light); margin-bottom: 8px; letter-spacing: -0.015em; }
.pricing-price { font-size: 40px; font-weight: 300; color: var(--light); margin: 16px 0 4px; }
.pricing-price span { font-size: 16px; }
.pricing-desc { font-size: 14px; color: var(--muted60); margin-bottom: 28px; line-height: 20px; }
.pricing-features { text-align: left; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 10px; }
.pricing-features li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-color: rgba(217,18,34,0.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23D91222' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-position: center;
  background-repeat: no-repeat;
}
.btn-pricing { display: block; width: 100%; padding: 12px; background: var(--red); color: white; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm, 6px); border: none; cursor: pointer; transition: background .2s; }
.btn-pricing:hover { background: var(--red-dark); }

/* ─── TOOLS SECTION ─── */
.tools-section { background: var(--darker); overflow: hidden; }
.tools-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.tools-img { border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.tools-img img { width: 100%; display: block; }
.tools-list { display: flex; flex-direction: column; gap: 22px; }
.tool-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 12px; transition: background .2s; }
.tool-item:hover { background: rgba(255,255,255,.06); }
.tool-item-icon { width: 36px; height: 36px; background: rgba(217,18,34,.07); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.tool-item h4 { font-size: 15px; font-weight: 600; color: var(--light); margin-bottom: 4px; }
.tool-item p { font-size: 13px; color: var(--muted60); line-height: 18px; }

/* ─── AI SECTION ─── */
.ai-section { background: var(--dark); text-align: center; }
.ai-section .section-headline { max-width: 600px; margin: 0 auto 16px; }
.ai-section .section-sub { max-width: 500px; margin: 0 auto 48px; }
.ai-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ai-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px 24px; text-align: left; }
.ai-card-icon { font-size: 28px; margin-bottom: 16px; }
.ai-card h3 { font-size: 17px; font-weight: 600; color: var(--light); margin-bottom: 10px; }
.ai-card p { font-size: 14px; color: var(--muted60); line-height: 21px; }

/* ─── QUOTE BLOCK ─── */
.quote-block { background: var(--darker); padding: 80px 0; text-align: center; }
.quote-text { font-size: 28px; font-weight: 300; color: var(--light); font-style: italic; max-width: 820px; margin: 0 auto 20px; line-height: 38px; }
.quote-attr { font-size: 15px; color: var(--muted60); font-weight: 400; }

/* ─── SECURITY SECTION ─── */
.security-section { background: var(--dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 56px; }
.stat-card { text-align: center; padding: 32px 20px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-card); }
.stat-number { font-size: 44px; font-weight: 300; color: var(--light); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--muted60); line-height: 20px; }

/* ─── CTA SECTION ─── */
.cta-section { background: var(--dark); background-size: cover; background-position: center; position: relative; text-align: center; }
.cta-section::before { content:''; position:absolute; inset:0; background: rgba(10,12,16,.78); }
.cta-section .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.cta-section h2 { font-size: clamp(28px, 4.5vw, 52px); font-weight: 600; color: var(--light); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-section p { font-size: 18px; color: var(--muted); margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.account-types { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.account-card { background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px 28px; min-width: 200px; text-align: left; transition: border-color .2s, background .2s; cursor: pointer; }
.account-card:hover { border-color: var(--red); background: rgba(217,18,34,.06); }
.account-card h4 { font-size: 16px; font-weight: 600; color: var(--light); margin-bottom: 6px; }
.account-card p { font-size: 13px; color: var(--muted60); line-height: 18px; }

/* ─── DISCLOSURE ─── */
.disclosure { background: #08090d; border-top: 1px solid rgba(255,255,255,.06); padding: 36px 0; }
.disclosure p { font-size: 11px; color: rgba(252,252,252,.28); line-height: 19px; }
.disclosure a { color: var(--red) !important; }

/* ─── FOOTER ─── */
.footer { background: #08090d; }

/* Pre-footer CTA strip */
.footer-cta-strip {
  background: linear-gradient(90deg, #0f1118 0%, #141720 50%, #0f1118 100%);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.footer-cta-strip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-cta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.footer-cta-headline {
  font-size: 26px;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.footer-cta-sub {
  font-size: 14px;
  color: rgba(252,252,252,.45);
  max-width: 520px;
  line-height: 1.6;
}
.footer-cta-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 100%;
}
@media (max-width: 600px) {
  .footer-cta-btns { width: 100%; justify-content: center; }
  .footer-cta-btns .btn-red,
  .footer-cta-btns .btn-ghost-sm { flex: 1; text-align: center; }
}
.footer-cta-btns .btn-red {
  background: var(--red);
  color: #fff;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.footer-cta-btns .btn-red:hover { background: #b80e1c; transform: translateY(-1px); }
.footer-cta-btns .btn-ghost-sm {
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(252,252,252,.7);
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.footer-cta-btns .btn-ghost-sm:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* Main footer body */
.footer-main { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(5,1fr); gap: 32px; }
.footer-logo { font-size: 22px; font-weight: 700; color: var(--light); display: inline-block; margin-bottom: 14px; letter-spacing: -.3px; }
.footer-logo span { color: var(--red); }
.footer-brand p { font-size: 13px; color: rgba(252,252,252,.38); line-height: 1.65; max-width: 210px; margin-bottom: 20px; }

/* Regulated by badges */
.footer-regulated { margin-bottom: 22px; }
.footer-regulated > span { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(252,252,252,.25); display: block; margin-bottom: 8px; }
.footer-reg-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-reg-badges span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(252,252,252,.38);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  padding: 3px 7px;
  letter-spacing: .5px;
  transition: border-color .2s, color .2s;
}
.footer-reg-badges span:hover { border-color: rgba(255,255,255,.3); color: rgba(252,252,252,.7); }

/* Social icons */
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(252,252,252,.4);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer columns */
.footer-col { }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(252,252,252,.42);
  margin-bottom: 11px;
  transition: color .2s, transform .15s;
  position: relative;
}
.footer-col a:hover { color: var(--light); transform: translateX(4px); padding-left: 0; }

/* Bottom bar */
.footer-bottom-bar { padding: 22px 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.28); }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ─── FORM PAGES ─── */
.auth-page { min-height: 100vh; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: rgba(21,24,30,.95); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 48px 44px; width: 100%; max-width: 480px; box-shadow: 0 32px 80px rgba(0,0,0,.6); backdrop-filter: blur(10px); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h2 { font-size: 28px; font-weight: 600; color: var(--light); letter-spacing: -0.02em; }
.auth-logo h2 span { color: var(--red); }
.auth-logo p { font-size: 14px; color: var(--muted60); margin-top: 6px; }
.auth-card h2 { font-size: 22px; font-weight: 600; color: var(--light); margin-bottom: 6px; text-align: center; }
.auth-card .auth-sub { font-size: 14px; color: var(--muted60); text-align: center; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group select { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 11px 14px; font-family: var(--font); font-size: 14px; color: var(--light); transition: border-color .2s, background .2s; }
.form-group input::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.08); }
.form-group select option { background: var(--dark); color: var(--light); }
.form-group .field-error { font-size: 12px; color: #ff6b6b; margin-top: 5px; display: none; }
.form-group.has-error input { border-color: #ff6b6b; }
.form-group.has-error .field-error { display: block; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.form-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid rgba(255,255,255,.25); border-radius: 3px;
  background: rgba(255,255,255,.06); cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
}
.form-check input[type="checkbox"]:checked {
  background: var(--red); border-color: var(--red);
}
.form-check input[type="checkbox"]:checked::after {
  content: ''; position: absolute;
  left: 4px; top: 1px; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}
.form-check label { font-size: 13px; color: var(--muted60); line-height: 18px; }
.form-check a { color: var(--red); }
.btn-submit { width: 100%; padding: 14px; background: var(--red); color: white; font-size: 16px; font-weight: 700; border-radius: 6px; border: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; margin-top: 4px; }
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px -4px rgba(217,18,34,0.50); }
.btn-submit:active { transform: scale(0.98); transition-duration: .08s; }
.btn-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content:''; position:absolute; top:50%; left:0; right:0; height:1px; background:rgba(255,255,255,.1); }
.auth-divider span { position: relative; background: rgba(21,24,30,.95); padding: 0 14px; font-size: 13px; color: var(--muted60); }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted60); margin-top: 20px; }
.auth-alt a { color: var(--red); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; display: none; }
.alert-success { background: rgba(1,135,64,.15); border: 1px solid rgba(1,135,64,.3); color: #5dde8a; }
.alert-error { background: rgba(217,18,34,.12); border: 1px solid rgba(217,18,34,.3); color: #ff8080; }
.steps-bar { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.step { width: 32px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); transition: background .3s; }
.step.active { background: var(--red); }
.step.done { background: var(--up); }
.strength-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; width: 0; }

/* ─── ADMIN PANEL ─── */
.admin-layout { display: flex; min-height: 100vh; background: #0b0d11; }
.admin-sidebar { width: 240px; background: #0d0f13; border-right: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; flex-shrink: 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-sidebar-logo h2 { font-size: 18px; font-weight: 600; color: var(--light); letter-spacing: -0.01em; }
.admin-sidebar-logo h2 span { color: var(--red); }
.admin-sidebar-logo p { font-size: 11px; color: var(--muted60); margin-top: 3px; }
.admin-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: 14px; color: var(--muted60); transition: color .2s, background .2s; }
.admin-nav a:hover, .admin-nav a.active { color: var(--light); background: rgba(255,255,255,.05); }
.admin-nav a.active { border-left: 3px solid var(--red); }
.admin-nav .nav-icon { width: 18px; text-align: center; }
.admin-content { margin-left: 240px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar { background: #0d0f13; border-bottom: 1px solid rgba(255,255,255,.07); padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.admin-topbar h1 { font-size: 18px; font-weight: 600; color: var(--light); letter-spacing: -0.01em; }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted60); }
.admin-avatar { width: 32px; height: 32px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: white; }
.admin-body { padding: 32px; overflow-y: auto; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-box { background: #0d0f13; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 24px; }
.stat-box .stat-label { font-size: 12px; color: var(--muted60); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.stat-box .stat-value { font-size: 36px; font-weight: 300; color: var(--light); line-height: 1; }
.stat-box .stat-change { font-size: 12px; color: #5dde8a; margin-top: 8px; }
.stat-box .stat-change.down { color: #ff6b6b; }
.admin-card { background: #0d0f13; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.admin-card-header { padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h3 { font-size: 15px; font-weight: 600; color: var(--light); }
.admin-card-body { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-toolbar { display: flex; gap: 12px; align-items: center; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }
.admin-search { flex: 1; min-width: 200px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 8px 14px; font-family: var(--font); font-size: 14px; color: var(--light); }
.admin-search:focus { outline: none; border-color: var(--red); }
.admin-search::placeholder { color: rgba(255,255,255,.3); }
.admin-filter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 8px 12px; font-family: var(--font); font-size: 13px; color: var(--light); cursor: pointer; }
.admin-filter option { background: var(--dark); }
.btn-admin { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: background .2s; }
.btn-admin.primary { background: var(--red); color: white; }
.btn-admin.primary:hover { background: var(--red-dark); }
.btn-admin.ghost { background: rgba(255,255,255,.06); color: var(--light); border: 1px solid rgba(255,255,255,.1); }
.btn-admin.ghost:hover { background: rgba(255,255,255,.1); }
.btn-admin.danger { background: rgba(217,18,34,.12); color: #ff8080; border: 1px solid rgba(217,18,34,.2); }
.btn-admin.danger:hover { background: rgba(217,18,34,.22); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted60); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.data-table td { padding: 14px 16px; font-size: 13px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table tr:last-child td { border-bottom: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-green { background: rgba(1,135,64,.15); color: #5dde8a; }
.badge-yellow { background: rgba(255,193,7,.1); color: #ffc107; }
.badge-red { background: rgba(217,18,34,.12); color: #ff8080; }
.badge-blue { background: rgba(107,158,244,.1); color: #6b9ef4; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: white; flex-shrink: 0; }
.user-name { font-size: 14px; font-weight: 600; color: var(--light); line-height: 1; margin-bottom: 2px; }
.user-email-sm { font-size: 12px; color: var(--muted60); }
.action-btns { display: flex; gap: 6px; }
.action-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 6px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background .2s; }
.action-btn.view { background: rgba(107,158,244,.1); color: #6b9ef4; }
.action-btn.view:hover { background: rgba(107,158,244,.2); }
.action-btn.del { background: rgba(217,18,34,.1); color: #ff8080; }
.action-btn.del:hover { background: rgba(217,18,34,.2); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted60); }
.empty-state .empty-icon { font-size: 42px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 15px; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.05); }
.pagination-info { font-size: 13px; color: var(--muted60); }
.pagination-btns { display: flex; gap: 6px; }
.page-btn { width: 36px; height: 36px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.page-btn.active { background: var(--red); border-color: var(--red); color: white; }
.page-btn:hover:not(.active) { background: rgba(255,255,255,.08); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: #0d0f13; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 32px; max-width: 480px; width: 100%; transform: scale(.95); transition: transform .2s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal h3 { font-size: 18px; font-weight: 600; color: var(--light); margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--muted60); margin-bottom: 24px; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.admin-login { min-height: 100vh; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; }

/* ─── MOBILE NAV ─── */
.mobile-menu { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark); z-index: 9998; padding: 80px 32px 32px; opacity: 0; pointer-events: none; transform: translateX(100%); transition: opacity .28s cubic-bezier(.22,1,.36,1), transform .28s cubic-bezier(.22,1,.36,1); }
.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--light); font-size: 26px; cursor: pointer; }
.mobile-menu a { font-size: 20px; font-weight: 600; color: var(--muted); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s; }
.mobile-menu a:hover { color: var(--light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .section-headline { font-size: 30px; line-height: 38px; }
  .platform-cards { grid-template-columns: 1fr 1fr; }
  .rates-grid, .pricing-tiles { grid-template-columns: 1fr; }
  .security-stats { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .markets-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .money-grid, .tools-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-img-wrap { display: none; }
  .hero-content-split { padding-right: 24px; }
  .ai-cards { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .nav-actions { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero h1 { font-size: 32px; }
  .section-headline { font-size: 28px; line-height: 36px; }
  .markets-grid, .ai-cards, .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════ MEGAMENU ═══════════════════════ */
.nav-item { position: relative; }
.nav-item > .nav-link { font-size: 14px; font-weight: 600; color: rgba(252,252,252,.65); padding: 0 14px; height: 57px; display: flex; align-items: center; transition: color .2s; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-item > .nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link { color: var(--light); border-bottom-color: var(--red); }
.mega-panel { position: fixed; left: 0; right: 0; top: 95px; background: #0d0f13; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 24px 48px rgba(0,0,0,.7); z-index: 998; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s ease 90ms, transform .2s ease 90ms; }
.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel,
.nav-item.mega-open .mega-panel { opacity: 1; pointer-events: all; transform: translateY(0); transition: opacity .18s ease 0s, transform .18s ease 0s; }
/* Hover bridge — invisible strip that keeps nav-item:hover alive while cursor crosses the vertical gap */
.nav-item::after { content: ''; position: absolute; bottom: -40px; left: 0; right: 0; height: 40px; }
.mega-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 40px; display: flex; gap: 0; }
.mega-cols { flex: 1; display: flex; gap: 0; padding-right: 24px; }
.mega-col { flex: 1; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.05); }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; }
.mega-col-header { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.mega-link { display: block; padding: 7px 0; font-size: 13px; color: rgba(252,252,252,.65); line-height: 1.4; transition: color .15s; }
.mega-link:hover { color: var(--light); }
.mega-link span { display: block; font-size: 11px; color: rgba(252,252,252,.35); margin-top: 2px; line-height: 1.3; }
.mega-link hr { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 8px 0; }
.mega-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 8px 0; }
.mega-cta-panel { width: 220px; flex-shrink: 0; padding: 24px; background: rgba(255,255,255,.02); border-left: 1px solid rgba(255,255,255,.07); border-radius: 0 0 8px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.mega-cta-title { font-size: 16px; font-weight: 600; color: var(--light); line-height: 1.3; margin-bottom: 8px; }
.mega-cta-body { font-size: 13px; color: rgba(252,252,252,.5); line-height: 1.5; }
.mega-cta-rate { color: var(--red); font-weight: 700; }
.mega-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: white; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 4px; transition: background .2s; }
.mega-cta-btn:hover { background: var(--red-dark); color: white; }
.mega-cta-sublink { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(252,252,252,.55); padding: 6px 0; transition: color .15s; }
.mega-cta-sublink:hover { color: var(--light); }
/* Product pills */
.product-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0 20px; }
.product-pill { font-size: 14px; font-weight: 600; color: rgba(252,252,252,.7); padding: 8px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 100px; transition: all .2s; cursor: pointer; }
.product-pill:hover { color: var(--light); border-color: var(--red); background: rgba(217,18,34,.08); }
/* Platform cards */
.platform-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.platform-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color .25s cubic-bezier(.22,1,.36,1),
              background .25s ease,
              transform .25s cubic-bezier(.22,1,.36,1),
              box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.platform-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217,18,34,0.60), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.platform-card:hover {
  border-color: rgba(217,18,34,0.42);
  background: rgba(217,18,34,0.055);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -6px rgba(0,0,0,0.60), 0 0 0 1px rgba(217,18,34,0.12);
}
.platform-card:hover::after { opacity: 1; }
.platform-card-icon { font-size: 28px; margin-bottom: 12px; }
.platform-card h4 { font-size: 15px; font-weight: 600; color: var(--light); margin-bottom: 8px; }
.platform-card p { font-size: 13px; color: rgba(252,252,252,.5); line-height: 1.5; }
.platform-card-link { font-size: 12px; font-weight: 600; color: var(--red); margin-top: 12px; display: inline-block; }
/* Platform links row */
.platform-links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 12px; }
.platform-links a { font-size: 14px; font-weight: 600; color: rgba(252,252,252,.7); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.platform-links a:after { content: '›'; color: var(--red); font-size: 18px; }
.platform-links a:hover { color: var(--light); }
/* Section eyebrow */
.section-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
/* Markets BG section  */
.markets-bg-section { position: relative; overflow: hidden; padding: 72px 0; background: var(--dark); }
.markets-bg-section .markets-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; pointer-events: none; }
.markets-bg-section .container { position: relative; z-index: 1; }
/* Pricing tiles */
.pricing-tiles { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 1040px; margin: 40px auto 0; }
.pricing-tile { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 28px 24px; text-align: center; cursor: pointer; transition: border-color .2s; }
.pricing-tile:hover { border-color: rgba(217,18,34,.4); }
.pricing-tile-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px; margin-bottom: 12px; }
.pricing-tile-lite .pricing-tile-badge { border: 1px solid rgba(107,158,244,.4); background: rgba(107,158,244,.08); color: #6b9ef4; }
.pricing-tile-pro .pricing-tile-badge  { border: 1px solid rgba(217,18,34,.4); background: rgba(217,18,34,.08); color: #ff8080; }
.pricing-tile h3 { font-size: 18px; font-weight: 700; color: var(--light); margin-bottom: 16px; }
.pricing-tile-lite h3 span { color: #6b9ef4; }
.pricing-tile-pro  h3 span { color: var(--red); }
.pricing-tile ul { list-style: none; text-align: left; margin: 0; padding: 0; }
.pricing-tile ul li { font-size: 13px; color: rgba(252,252,252,.65); padding: 5px 0; padding-left: 18px; position: relative; }
.pricing-tile ul li:before { content: '✓'; position: absolute; left: 0; color: #5dde8a; font-weight: 700; }
.pricing-tile-link { font-size: 13px; font-weight: 600; color: var(--red); margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; }
/* Money rates grid */
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1040px; margin: 40px auto 0; }
.rate-tile { background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 28px 24px; text-align: center; transition: border-color .2s; }
.rate-tile:hover { border-color: rgba(217,18,34,.3); }
.rate-tile-label { font-size: 13px; color: rgba(252,252,252,.5); margin-bottom: 6px; }
.rate-tile-amount { font-size: 38px; font-weight: 300; color: var(--light); line-height: 1; }
.rate-tile-amount .denom { font-size: 16px; font-weight: 600; color: rgba(252,252,252,.6); margin-right: 4px; vertical-align: middle; }
.rate-tile-desc { font-size: 12px; color: rgba(252,252,252,.4); margin-top: 8px; line-height: 1.5; }
.rate-tile-cta { font-size: 13px; font-weight: 600; color: var(--red); margin-top: 16px; display: inline-flex; align-items: center; gap: 4px; }
/* Security stats styled like IBKR */
.security-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; max-width: 1280px; margin: 48px auto 0; }
.security-stats + .security-stats { margin-top: 0; }
.security-stat { text-align: center; padding: 24px 16px; }
.security-stat p { font-size: 13px; color: rgba(252,252,252,.55); margin: 0; line-height: 1.4; }
.security-stat h3 { font-size: 32px; font-weight: 300; color: var(--light); margin: 8px 0 6px; line-height: 1; font-family: var(--font-data); letter-spacing: -0.5px; }
/* Footer multi-column enhancement */
.footer-brand p { font-size: 13px; color: rgba(252,252,252,.4); line-height: 1.6; max-width: 220px; margin-top: 12px; }
/* Mobile megamenu */
.mobile-menu a { font-size: 15px; color: rgba(252,252,252,.75); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
@media (max-width: 960px) {
  .platform-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .platform-cards { grid-template-columns: 1fr; }
  .security-stats { grid-template-columns: 1fr 1fr; }
  .rates-grid, .pricing-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-pills .product-pill { font-size: 12px; padding: 6px 14px; }
}

/* ══════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM v2 — MBC Trading Premium Upgrade
   All sections below are ADDITIVE — existing rules above are unchanged
   ══════════════════════════════════════════════════════════════════════ */

/* ── GLOBAL POLISH ADDITIONS ──────────────────────────────────────── */

/* Scroll margin — prevents sticky nav from obscuring anchor targets */
.section, [id] { scroll-margin-top: 57px; }
@media (max-width: 1024px) { .section, [id] { scroll-margin-top: 52px; } }

/* Section padding mobile reduction */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .footer-cta-strip { padding: 32px 0; }
}
@media (max-width: 480px) {
  .section { padding: 40px 0; }
}

/* Mobile hero CTA stack */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary { width: 100%; justify-content: center; padding: 13px 24px; }
}

/* Quote text mobile scaling */
@media (max-width: 768px) {
  .quote-text { font-size: 20px; line-height: 30px; }
}
@media (max-width: 480px) {
  .quote-text { font-size: 18px; line-height: 28px; }
}

/* iOS input zoom prevention */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Prefers-reduced-motion — smooth scroll & animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Focus-visible — global catch-all */
a:focus-visible, button:focus-visible, [tabindex='0']:focus-visible {
  outline: 2px solid rgba(217,18,34,0.70);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nav focus-visible */
.nav-links > a:focus-visible, .nav-item > .nav-link:focus-visible {
  outline: 2px solid rgba(217,18,34,0.70);
  outline-offset: -2px;
  color: var(--light);
  border-bottom-color: var(--red);
}

/* Footer link focus-visible */
.footer-col a:focus-visible, .footer-social a:focus-visible, .footer-bottom-links a:focus-visible {
  outline: 2px solid rgba(217,18,34,0.60);
  outline-offset: 2px;
  color: var(--light);
}

/* Nav-top login button focus-visible */
.nav-top .btn-login:focus-visible {
  outline: 2px solid rgba(217,18,34,0.70);
  outline-offset: 2px;
}

/* Card focus-visible */
.market-card:focus-visible, .account-card:focus-visible, .platform-card:focus-visible, .pricing-card:focus-visible {
  outline: 2px solid rgba(217,18,34,0.60);
  outline-offset: 2px;
}

/* Button focus-visible on red backgrounds */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-open-acct:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}

/* Btn-submit focus-visible */
.btn-submit:focus-visible {
  outline: 2px solid rgba(217,18,34,0.70);
  outline-offset: 3px;
}

/* Skeleton cells for data table */
.skeleton-row td { pointer-events: none; }
.skeleton-cell {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Disclosure block polish */
.disclosure { padding: 32px 0; background: var(--darker); border-top: 1px solid rgba(255,255,255,.06); }
.disclosure p { font-size: 12px; color: rgba(252,252,252,.35); line-height: 1.7; max-width: 900px; }

/* ══ DESIGN SYSTEM v2 — TRANSITION TOKENS ════════════════════════════ */
:root {
  --transition-fast: .12s cubic-bezier(.22,1,.36,1);
  --transition-base: .2s  cubic-bezier(.22,1,.36,1);
  --transition-slow: .35s cubic-bezier(.22,1,.36,1);
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --t-fast:  .12s cubic-bezier(.22,1,.36,1);
  --t-base:  .2s  cubic-bezier(.22,1,.36,1);
  --t-slow:  .35s cubic-bezier(.22,1,.36,1);
}

/* ══ DESIGN SYSTEM v2 — TYPOGRAPHY SCALE ════════════════════════════ */
:root {
  /* Fluid clamp() type scale */
  --text-xs:   clamp(10px, 1vw,    11px);
  --text-sm:   clamp(12px, 1.1vw,  13px);
  --text-base: clamp(14px, 1.3vw,  15px);
  --text-md:   clamp(15px, 1.4vw,  17px);
  --text-lg:   clamp(17px, 1.6vw,  20px);
  --text-xl:   clamp(20px, 2vw,    24px);
  --text-2xl:  clamp(24px, 2.5vw,  30px);
  --text-3xl:  clamp(28px, 3vw,    38px);
  --text-4xl:  clamp(32px, 4vw,    52px);
  --text-5xl:  clamp(40px, 5.5vw,  72px);
  --text-6xl:  clamp(44px, 5.5vw,  80px);
  /* Line heights */
  --lh-tight:   1.1;
  --lh-snug:    1.3;
  --lh-base:    1.6;
  --lh-relaxed: 1.75;
  /* Letter spacing */
  --ls-tight:   -0.03em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
  --ls-wider:   0.08em;
  --ls-widest:  0.12em;
  /* Font weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;
}

/* Hero heading — large, commanding */
.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  line-height: 1.0;
}
/* Hero sub — readable, airy */
.hero-sub {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: var(--fw-regular);
  line-height: 1.65;
}
/* Section sub */
.section-sub {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.65;
}
/* Section eyebrow / tag */
.section-tag {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
/* Nav links */
.nav-links > a,
.nav-item > .nav-link {
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}
/* Number / data display */
.num-display {
  font-feature-settings: "tnum", "lnum";
  letter-spacing: -0.03em;
}
/* Monospace data */
.mono-data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

/* ══ DESIGN SYSTEM v2 — TYPOGRAPHY UTILITIES ════════════════════════ */
/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, rgba(252,252,252,0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
/* Muted text — primary (~70% opacity) */
.text-muted   { color: rgba(252,252,252,0.70); }
/* Muted text — secondary (~45% opacity) */
.text-muted-2 { color: rgba(252,252,252,0.45); }
.text-white   { color: #ffffff; }
.text-red     { color: var(--red); }

/* ══ DESIGN SYSTEM v2 — SHADOW SCALE ════════════════════════════════ */
:root {
  --shadow-xs:  0 1px 2px 0 rgba(0,0,0,0.45), 0 1px 1px 0 rgba(0,0,0,0.30);
  --shadow-sm:  0 2px 4px -1px rgba(0,0,0,0.55), 0 1px 3px 0 rgba(0,0,0,0.40);
  --shadow-md:  0 4px 10px -2px rgba(0,0,0,0.60), 0 2px 6px -2px rgba(0,0,0,0.45), 0 0 2px 0 rgba(0,0,0,0.30);
  --shadow-lg:  0 10px 25px -3px rgba(0,0,0,0.65), 0 4px 10px -4px rgba(0,0,0,0.50), 0 0 4px 0 rgba(0,0,0,0.25);
  --shadow-xl:  0 18px 40px -4px rgba(0,0,0,0.70), 0 8px 18px -6px rgba(0,0,0,0.55), 0 0 6px 0 rgba(0,0,0,0.30);
  --shadow-2xl: 0 32px 80px -8px rgba(0,0,0,0.80), 0 16px 40px -12px rgba(0,0,0,0.60), 0 4px 12px 0 rgba(0,0,0,0.35);
  --shadow-red:    0 4px 14px -2px rgba(217,18,34,0.45), 0 2px 6px -2px rgba(217,18,34,0.30);
  --shadow-red-lg: 0 8px 24px -4px rgba(217,18,34,0.55), 0 2px 8px 0 rgba(217,18,34,0.35);
  --shadow-blue:   0 8px 24px -4px rgba(79,168,255,0.45), 0 2px 8px 0 rgba(79,168,255,0.28);
  --shadow-gold:   0 8px 24px -4px rgba(245,184,67,0.45), 0 2px 8px 0 rgba(245,184,67,0.28);
}

/* ══ DESIGN SYSTEM v2 — GRADIENT LIBRARY ════════════════════════════ */
:root {
  --gradient-red:     linear-gradient(135deg, #e3162a 0%, #D91222 45%, #b01020 100%);
  --gradient-gold:    linear-gradient(135deg, #ffd060 0%, #F5B843 45%, #d4922a 100%);
  --gradient-blue:    linear-gradient(135deg, #74bfff 0%, #4FA8FF 45%, #2a7fd4 100%);
  --gradient-green:   linear-gradient(135deg, #3fe8c5 0%, #26C9A3 45%, #1a9a7c 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%);
  --gradient-shine:   linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.18) 48%, transparent 100%);
  --gradient-card:    linear-gradient(145deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.008) 100%);
}

/* ══ DESIGN SYSTEM v2 — GLASS EFFECTS ═══════════════════════════════ */
.glass-card {
  backdrop-filter: blur(16px) saturate(160%);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 20px;
}
.glass-card-dark {
  backdrop-filter: blur(20px) saturate(140%);
  background: rgba(10,12,18,0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
}
.glass-panel {
  backdrop-filter: blur(24px) saturate(150%) brightness(0.9);
  background: rgba(15,18,24,0.65);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
}
.glass-nav {
  backdrop-filter: blur(14px) saturate(180%);
  background: rgba(13,15,19,0.84);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.glass-card-red {
  backdrop-filter: blur(14px);
  background: rgba(217,18,34,0.08);
  border: 1px solid rgba(217,18,34,0.22);
  border-radius: 20px;
}

/* ══ DESIGN SYSTEM v2 — BACKGROUND PATTERNS ═════════════════════════ */
/* Subtle dot grid */
.bg-dots {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
  background-size: 20px 20px;
}
/* Line grid */
.bg-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
/* Noise overlay */
.bg-noise { position: relative; }
.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Diagonal lines */
.bg-lines {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cline x1='0' y1='10' x2='10' y2='0' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 10px 10px;
}

/* ══ DESIGN SYSTEM v2 — GLOW EFFECTS ════════════════════════════════ */
.glow-red   { box-shadow: 0 8px 24px -4px rgba(217,18,34,0.55),  0 2px 8px 0 rgba(217,18,34,0.35); }
.glow-gold  { box-shadow: 0 8px 24px -4px rgba(245,184,67,0.45),  0 2px 8px 0 rgba(245,184,67,0.28); }
.glow-blue  { box-shadow: 0 8px 24px -4px rgba(79,168,255,0.45),  0 2px 8px 0 rgba(79,168,255,0.28); }
.glow-green { box-shadow: 0 8px 24px -4px rgba(38,201,163,0.45), 0 2px 8px 0 rgba(38,201,163,0.28); }
/* Accent top line */
.accent-line-top { position: relative; }
.accent-line-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-red);
  border-radius: 2px 2px 0 0;
}
/* Gradient border ring */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(217,18,34,0.70) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ══ DESIGN SYSTEM v2 — SPACING & RADIUS TOKENS ═════════════════════ */
:root {
  --space-1:  4px;  --space-2:  8px;  --space-3:  12px; --space-4:  16px;
  --space-5:  20px; --space-6:  24px; --space-8:  32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 100px;
}

/* ══ DESIGN SYSTEM v2 — BUTTON SYSTEM ═══════════════════════════════ */
/* Base button — shared across all variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  line-height: 1;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base),
              border-color var(--t-base), color var(--t-fast);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
/* Ripple layer */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
  pointer-events: none;
}
.btn:active::before { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98) !important; }

/* Secondary ghost variant */
.btn-secondary {
  background: transparent;
  color: var(--light);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  padding: 13px 32px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm, 6px);
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
}
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-base);
}
.btn-secondary:hover {
  border-color: var(--light);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(255,255,255,0.12);
}
.btn-secondary:active { transform: scale(0.98); }

/* White button */
.btn-white {
  background: #ffffff;
  color: #0d0f13;
  font-weight: var(--fw-bold);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(0,0,0,0.40);
}

/* Ghost red */
.btn-ghost-red {
  background: rgba(217,18,34,0.08);
  color: var(--red);
  border: 1px solid rgba(217,18,34,0.28);
  font-weight: var(--fw-semibold);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.btn-ghost-red:hover {
  background: rgba(217,18,34,0.14);
  border-color: rgba(217,18,34,0.55);
  box-shadow: 0 4px 14px -2px rgba(217,18,34,0.25);
}

/* Gold variant */
.btn-gold {
  background: var(--gradient-gold);
  color: #0d0f13;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 14px -2px rgba(245,184,67,0.40);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(245,184,67,0.55);
}

/* Pill modifier */
.btn-pill { border-radius: var(--radius-pill); }

/* Size modifiers */
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 17px; padding: 16px 38px; }

/* Icon-only circular button */
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--light);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.btn-icon:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}
.btn-icon.btn-sm { width: 32px; height: 32px; }
.btn-icon.btn-lg { width: 52px; height: 52px; }

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: 0.72; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Disabled state */
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

/* ══ DESIGN SYSTEM v2 — CARD SYSTEM ══════════════════════════════════ */
/* Base card */
.card {
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base), background var(--t-base);
}
/* Hover lift variant */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.18);
}
/* Featured — red accent top */
.card-featured {
  border-top: 3px solid var(--red);
  background: rgba(217,18,34,0.04);
  position: relative;
  overflow: hidden;
}
.card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top, rgba(217,18,34,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.card-featured:hover {
  box-shadow: 0 0 0 1px rgba(217,18,34,0.22), var(--shadow-red);
}
/* Glass card */
.card-glass {
  backdrop-filter: blur(16px) saturate(160%);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
}
.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.055) 0%, transparent 100%);
  pointer-events: none;
}
.card-glass:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.16);
}
/* Dark card */
.card-dark { background: var(--s3); border-color: rgba(255,255,255,0.08); }
/* Blue accent card */
.card-blue  { border-top: 2px solid var(--blue);  background: rgba(79,168,255,0.04); }
/* Gold accent card */
.card-gold  { border-top: 2px solid var(--gold);  background: rgba(245,184,67,0.04); }

/* Card inner layout helpers */
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: var(--space-4); }
.card-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
}
.card-icon-wrap.ci-red   { background: rgba(217,18,34,0.07); color: var(--red); }
.card-icon-wrap.ci-blue  { background: rgba(79,168,255,0.07); color: var(--blue); }
.card-icon-wrap.ci-gold  { background: rgba(245,184,67,0.07); color: var(--gold); }
.card-icon-wrap.ci-up    { background: rgba(38,201,163,0.07); color: var(--up); }
.card-title  { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--light); line-height: var(--lh-snug); }
.card-body   { font-size: var(--text-base); color: var(--t2); line-height: var(--lh-base); flex: 1; }
.card-footer { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.06); }

/* ══ DESIGN SYSTEM v2 — BADGE & TAG SYSTEM ════════════════════════== */
/* Base badge — override the existing .badge for premium styling */
.badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}
/* Filled variants */
.badge-v2.badge-red    { background: rgba(217,18,34,0.14); color: #ff8080; border-color: rgba(217,18,34,0.28); }
.badge-v2.badge-green  { background: rgba(38,201,163,0.12); color: #3fe8c5; border-color: rgba(38,201,163,0.28); }
.badge-v2.badge-blue   { background: rgba(79,168,255,0.12); color: #74bfff; border-color: rgba(79,168,255,0.28); }
.badge-v2.badge-gold   { background: rgba(245,184,67,0.12); color: #ffd060; border-color: rgba(245,184,67,0.28); }
.badge-v2.badge-muted  { background: rgba(255,255,255,0.07); color: rgba(252,252,252,0.55); border-color: rgba(255,255,255,0.12); }
/* Live indicator dot */
.badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Tag — tighter, smaller */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border: 1px solid transparent;
}
.tag.tag-red   { background: rgba(217,18,34,0.12); color: var(--red);  border-color: rgba(217,18,34,0.22); }
.tag.tag-green { background: rgba(38,201,163,0.12); color: var(--up);  border-color: rgba(38,201,163,0.22); }
.tag.tag-blue  { background: rgba(79,168,255,0.12); color: var(--blue); border-color: rgba(79,168,255,0.22); }
.tag.tag-gold  { background: rgba(245,184,67,0.12); color: var(--gold); border-color: rgba(245,184,67,0.22); }

/* ══ DESIGN SYSTEM v2 — SECTION HEADER PATTERN ══════════════════════ */
/* Container */
.sh { max-width: 640px; margin-bottom: var(--space-12); }
.sh.sh-center, .sh--center { text-align: center; margin-left: auto; margin-right: auto; }
.sh.sh-left   { text-align: left; margin-left: 0; margin-right: 0; }
/* Eyebrow */
.sh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: var(--fw-black);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: var(--space-3);
}
.sh.sh-left .sh-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--red);
  border-radius: 1px;
}
.sh-eyebrow.ey-blue  { color: var(--blue); }
.sh-eyebrow.ey-blue::before  { background: var(--blue); }
.sh-eyebrow.ey-gold  { color: var(--gold); }
.sh-eyebrow.ey-gold::before  { background: var(--gold); }
.sh-eyebrow.ey-green { color: var(--up); }
.sh-eyebrow.ey-green::before { background: var(--up); }
.sh-eyebrow.ey-muted { color: var(--t2); }
.sh-eyebrow.ey-muted::before { background: var(--t2); }
/* Title */
.sh-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  color: var(--light);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.sh-title em   { font-style: normal; color: var(--red); }
.sh-title span { font-style: normal; opacity: 0.65; }
/* Lead / sub text */
.sh-lead {
  font-size: 17px;
  font-weight: var(--fw-regular);
  line-height: 1.65;
  color: var(--t2);
  max-width: 560px;
  margin-bottom: var(--space-6);
}
.sh.sh-center .sh-lead, .sh--center .sh-lead { margin-left: auto; margin-right: auto; }
/* CTA row */
.sh-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh.sh-center .sh-cta, .sh--center .sh-cta { justify-content: center; }
/* Responsive */
@media (max-width: 768px) {
  .sh-title { font-size: clamp(24px, 6vw, 36px); }
  .sh-lead  { font-size: 15px; }
}
@media (max-width: 480px) {
  .sh-title { font-size: 26px; }
}

/* ══ DESIGN SYSTEM v2 — STAT DISPLAY ════════════════════════════════ */
/* Stat block container */
.stat-block { }
.stat-block.sb-center { text-align: center; }
.stat-block.sb-right  { text-align: right; }
/* Big number */
.stat-num {
  font-size: 44px;
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--light);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "lnum";
}
.stat-num.stat-num-sm { font-size: 28px; }
.stat-num.stat-num-lg { font-size: 64px; }
.stat-num.stat-num-xl { font-size: 80px; font-weight: 900; }
/* Unit / suffix */
.stat-unit   { font-size: 0.45em; font-weight: var(--fw-semibold); vertical-align: super; color: var(--t2); }
.stat-suffix { font-size: 0.45em; font-weight: var(--fw-semibold); vertical-align: baseline; color: var(--t2); }
/* Label */
.stat-label-v2 {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
  margin-top: 6px;
}
/* Delta */
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}
.stat-delta.up      { color: var(--up); background: rgba(38,201,163,0.12); }
.stat-delta.up::before  { content: '▲'; font-size: 8px; }
.stat-delta.dn      { color: var(--dn); background: rgba(239,83,80,0.12); }
.stat-delta.dn::before  { content: '▼'; font-size: 8px; }
.stat-delta.neutral { color: var(--t2); background: rgba(255,255,255,0.07); }
/* Supplementary text */
.stat-desc { font-size: 13px; color: var(--t2); margin-top: 4px; line-height: 1.5; }

/* ══ DESIGN SYSTEM v2 — ICON SYSTEM ══════════════════════════════════ */
:root {
  --icon-xs:   14px;
  --icon-sm:   16px;
  --icon-md:   20px;
  --icon-base: 24px;
  --icon-lg:   32px;
  --icon-xl:   40px;
  --icon-2xl:  48px;
  --icon-color-default: rgba(252,252,252,0.70);
  --icon-color-muted:   rgba(252,252,252,0.35);
  --icon-color-white:   #ffffff;
  --icon-color-red:     #D91222;
  --icon-color-blue:    #4FA8FF;
  --icon-color-gold:    #F5B843;
  --icon-color-green:   #26C9A3;
}
/* Base icon element */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-base);
  height: var(--icon-base);
  color: var(--icon-color-default);
  flex-shrink: 0;
}
.icon svg, .icon img { width: 100%; height: 100%; display: block; }
/* Size variants */
.icon-xs   { width: var(--icon-xs);   height: var(--icon-xs); }
.icon-sm   { width: var(--icon-sm);   height: var(--icon-sm); }
.icon-md   { width: var(--icon-md);   height: var(--icon-md); }
.icon-lg   { width: var(--icon-lg);   height: var(--icon-lg); }
.icon-xl   { width: var(--icon-xl);   height: var(--icon-xl); }
.icon-2xl  { width: var(--icon-2xl);  height: var(--icon-2xl); }
/* Colour variants */
.icon-white { color: var(--icon-color-white); }
.icon-muted { color: var(--icon-color-muted); }
.icon-red   { color: var(--icon-color-red); }
.icon-blue  { color: var(--icon-color-blue); }
.icon-gold  { color: var(--icon-color-gold); }
.icon-green { color: var(--icon-color-green); }
/* Container rings */
.icon-ring {
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}
.icon-ring.ring-red   { background: rgba(217,18,34,0.06); border-color: rgba(217,18,34,0.12); color: var(--red); }
.icon-ring.ring-blue  { background: rgba(79,168,255,0.06); border-color: rgba(79,168,255,0.12); color: var(--blue); }
.icon-ring.ring-gold  { background: rgba(245,184,67,0.06); border-color: rgba(245,184,67,0.12); color: var(--gold); }
.icon-ring.ring-green { background: rgba(38,201,163,0.06); border-color: rgba(38,201,163,0.12); color: var(--up); }
/* Filter invert helper (for PNG icons on dark bg) */
.icon-invert { filter: invert(1); }
.icon-invert-muted { filter: invert(1) opacity(0.65); }

/* ══ DESIGN SYSTEM v2 — ANIMATION KEYFRAMES ═════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ DESIGN SYSTEM v2 — ANIMATION UTILITIES ═════════════════════════ */
.anim-fade-up    { animation: fadeUp    .6s cubic-bezier(.22,1,.36,1) both; }
.anim-fade-in    { animation: fadeIn    .5s ease both; }
.anim-slide-right{ animation: slideRight .5s cubic-bezier(.22,1,.36,1) both; }
.anim-scale-in   { animation: scaleIn   .4s cubic-bezier(.34,1.56,.64,1) both; }
.anim-float      { animation: float     3s  ease-in-out infinite; }
/* Stagger delays */
.stagger-1 { animation-delay: .10s; }
.stagger-2 { animation-delay: .20s; }
.stagger-3 { animation-delay: .30s; }
.stagger-4 { animation-delay: .40s; }
.stagger-5 { animation-delay: .50s; }
.stagger-6 { animation-delay: .60s; }
.stagger-7 { animation-delay: .70s; }
.stagger-8 { animation-delay: .80s; }
/* Shimmer skeleton */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-in,
  .anim-slide-right,
  .anim-scale-in,
  .anim-float,
  .shimmer {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ══ DESIGN SYSTEM v2 — HOVER & MICRO-INTERACTIONS ══════════════════ */
/* Link underline draw */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width var(--transition-base, .2s cubic-bezier(.22,1,.36,1));
}
.link-underline:hover::after { width: 100%; }

/* Card tilt on hover */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  will-change: transform;
}
.card-tilt:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}

/* Button open account — upgrade */
.btn-open-acct {
  background: linear-gradient(135deg, #e3162a 0%, #D91222 45%, #b01020 100%);
  color: var(--white);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), background .2s;
  box-shadow: 0 3px 12px -2px rgba(217,18,34,0.42);
  white-space: nowrap;
}
.btn-open-acct:hover {
  background: linear-gradient(135deg, #f01f30 0%, #e3162a 45%, #c01222 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -3px rgba(217,18,34,0.55);
}
.btn-open-acct:active,
.btn-primary:active,
.btn-secondary:active { transform: scale(0.98); transition-duration: .08s; }

/* Focus ring — accessibility */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-open-acct:focus-visible {
  outline: 2px solid rgba(217,18,34,0.70);
  outline-offset: 2px;
}

/* ══ DESIGN SYSTEM v2 — DIVIDERS & SPACERS ══════════════════════════ */
.divider { width: 100%; height: 1px; background: rgba(255,255,255,0.07); margin: var(--space-8) 0; }
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 30%, rgba(255,255,255,0.14) 70%, transparent);
  border: none;
  margin: var(--space-8) 0;
}
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,18,34,0.55) 50%, transparent);
  margin: var(--space-6) 0;
}
.divider-v { width: 1px; height: 100%; background: rgba(255,255,255,0.08); }
.divider-labeled {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.28); font-size: 12px;
  margin: var(--space-6) 0;
}
.divider-labeled::before,
.divider-labeled::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.spacer-sm { height: var(--space-6); }
.spacer-md { height: var(--space-12); }
.spacer-lg { height: var(--space-20); }

/* ══ DESIGN SYSTEM v2 — CHECK & FEATURE LISTS ═══════════════════════ */
/* Check list with SVG checkmark */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  background-color: rgba(38,201,163,0.14);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%2326C9A3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-position: center;
  background-repeat: no-repeat;
}
/* Red variant */
.check-list.cl-red li::before {
  background-color: rgba(217,18,34,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23D91222' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ══ DESIGN SYSTEM v2 — MOBILE RESPONSIVE ═══════════════════════════ */
/* Visibility utilities */
.hide-mobile  { } /* visible by default */
.hide-desktop { display: none; } /* hidden on desktop */

@media (max-width: 1200px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  /* Hero */
  .hero { min-height: 580px; }
  .hero h1 { font-size: 48px; max-width: 500px; }
  .hero-sub { font-size: 18px; max-width: 440px; }
  .hero-img-wrap { width: 50%; }
  .hero-content-split { padding-right: 504px; }
  .hero-content { padding: 70px 0 50px; }
  /* Grids */
  .markets-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .platform-cards { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .security-stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ai-cards { grid-template-columns: repeat(3,1fr); gap: 16px; }
  /* Typography */
  .section-headline { font-size: 36px; line-height: 44px; }
  .section-sub { font-size: 17px; }
  .cta-section h2 { font-size: 42px; }
  .pricing-price { font-size: 36px; }
  .stat-number { font-size: 40px; }
  .quote-text { font-size: 24px; line-height: 34px; }
}

@media (max-width: 960px) {
  .nav-top { display: none; }
  .nav-main .container { gap: 12px; height: 52px; }
  .nav-links > a,
  .nav-item > .nav-link { padding: 0 8px; font-size: 12.5px; }
  .mega-panel { top: 52px !important; }
  .btn-open-acct { padding: 7px 12px; font-size: 13px; }
  /* Typography */
  .section-headline { font-size: 30px; line-height: 38px; }
  .section-sub { font-size: 16px; line-height: 24px; margin-bottom: 32px; }
  .section-tag { font-size: 11px; letter-spacing: 1px; }
  /* Hero */
  .hero { min-height: 500px; }
  .hero h1 { font-size: 42px; max-width: 460px; }
  .hero-sub { font-size: 17px; max-width: 400px; margin-bottom: 32px; }
  .hero-img-wrap { width: 45%; opacity: 0.7; }
  .hero-content-split { padding-right: calc(504px - 10vw); }
  .hero-content { padding: 60px 0 40px; }
  .hero-ctas { gap: 12px; }
}

@media (max-width: 1024px) {
  /* Hamburger — hide nav links, live-trading badge, and open account btn */
  .nav-links { display: none !important; }
  .nav-actions { display: none; }
  .nav-main .container > a.nav-link { display: none !important; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    padding: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 8px;
    gap: 5px;
    transition: background var(--t-base);
  }
  .nav-hamburger:hover { background: rgba(255,255,255,0.10); }
  .nav-hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--light);
    border-radius: 1px;
    transition: transform var(--t-base), opacity var(--t-base);
  }
  /* Hero */
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-img-wrap { display: none; }
  /* Visibility utils */
  .hide-mobile  { display: none !important; }
  .hide-desktop { display: block !important; }
  .hide-desktop.flex        { display: flex !important; }
  .hide-desktop.inline      { display: inline !important; }
  .hide-desktop.inline-flex { display: inline-flex !important; }
}

/* ══ DESIGN SYSTEM v2 — UTILITY CLASSES ══════════════════════════════ */
/* Display */
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.d-block    { display: block; }
.d-none     { display: none; }
.d-inline-flex { display: inline-flex; }
/* Flex helpers */
.flex-center   { display: flex; align-items: center; justify-content: center; }
.flex-between  { display: flex; align-items: center; justify-content: space-between; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }
.gap-1  { gap: var(--space-1); }  .gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }  .gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }  .gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); } .gap-12 { gap: var(--space-12); }
/* Overflow */
.overflow-hidden { overflow: hidden; }
/* Border radius */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }
/* Cursor */
.cursor-pointer { cursor: pointer; }
/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
/* Opacity helpers */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
/* Width helpers */
.w-full  { width: 100%; }
.h-full  { height: 100%; }
/* Max-width centers */
.mx-auto { margin-left: auto; margin-right: auto; }
/* Truncate */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Visually hidden (accessible) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══ SCROLL REVEAL — Global override (overrides per-page inline rules) ════ */
/* Visible by default; .js-scroll-active is added by scroll-reveal.js once JS is confirmed.
   This ensures content is NEVER invisible without JavaScript. */
[data-anim].is-visible,
[data-anim].anim-visible,
[data-anim].anim-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ══ ICON SYSTEM v2 — Professional Fintech Style ══════════════════════════ */

/* ── The core icon element ─────────────────────────────── */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.ico svg { width: 100%; height: 100%; display: block; }

/* ── Size scale ────────────────────────────────────────── */
.ico-16  { width: 16px;  height: 16px; }
.ico-18  { width: 18px;  height: 18px; }
.ico-20  { width: 20px;  height: 20px; }
.ico-24  { width: 24px;  height: 24px; }
.ico-28  { width: 28px;  height: 28px; }
.ico-32  { width: 32px;  height: 32px; }

/* ── Color tokens ──────────────────────────────────────── */
.ico-red    { color: var(--red); }
.ico-blue   { color: var(--blue); }
.ico-gold   { color: var(--gold); }
.ico-green  { color: var(--up); }
.ico-muted  { color: var(--t2); }
.ico-white  { color: #ffffff; }

/* ── Refined container (the key upgrade — no more heavy boxes) ─ */
.ico-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .2s;
}
/* Container sizes */
.ico-wrap-32 { width: 32px; height: 32px; }
.ico-wrap-36 { width: 36px; height: 36px; }
.ico-wrap-40 { width: 40px; height: 40px; }
.ico-wrap-44 { width: 44px; height: 44px; }
.ico-wrap-circle { border-radius: 50%; }

/* Container color variants — very subtle, professional */
.ico-wrap-red   { background: rgba(217,18,34,.08);   color: var(--red);  border: 1px solid rgba(217,18,34,.14); }
.ico-wrap-blue  { background: rgba(79,168,255,.08);  color: var(--blue); border: 1px solid rgba(79,168,255,.14); }
.ico-wrap-gold  { background: rgba(245,184,67,.08);  color: var(--gold); border: 1px solid rgba(245,184,67,.14); }
.ico-wrap-green { background: rgba(38,201,163,.08);  color: var(--up);   border: 1px solid rgba(38,201,163,.14); }
.ico-wrap-ghost { background: rgba(255,255,255,.05); color: var(--t2);   border: 1px solid rgba(255,255,255,.08); }

/* Hover states for interactive containers */
a:hover .ico-wrap-red,
button:hover .ico-wrap-red { background: rgba(217,18,34,.14); }

/* ── Feature row (inline icon + text — the IBKR pattern) ── */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-row .feature-text h3  { font-size: 15px; font-weight: 700; color: var(--light); margin-bottom: 5px; line-height: 1.3; }
.feature-row .feature-text p   { font-size: 13px; color: var(--muted60); line-height: 1.65; margin: 0; }

/* ── Card icon header (card with icon top-left) ──────── */
.card-ico-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.card-ico-header .card-ico-title { font-size: 15px; font-weight: 700; color: var(--light); line-height: 1.3; }
.card-ico-header .card-ico-sub   { font-size: 12px; color: var(--t2); margin-top: 2px; }

/* ── Override heavy old classes to be refined ──────── */
.community-card-icon-wrap,
.course-card-icon,
.ai-card-icon,
.platform-card-icon,
.academy-cert-icon {
  font-size: 0 !important; /* hide emoji text */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important; height: 36px !important;
  border-radius: 8px !important;
  background: rgba(217,18,34,.08) !important;
  border: 1px solid rgba(217,18,34,.12) !important;
  color: var(--red) !important;
  margin-bottom: 14px !important;
  transform: none !important;
}
.community-card-icon-wrap svg,
.course-card-icon svg,
.ai-card-icon svg,
.platform-card-icon svg,
.academy-cert-icon svg {
  width: 18px !important; height: 18px !important;
  display: block !important;
}

/* ── market card icon (invert PNG → SVG) ─────────── */
.market-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  filter: none;
}
.market-card-icon svg { width: 20px; height: 20px; }

/* ══ ICON SYSTEM — D: Multi-Colour (applied globally) ══════════════════════
   Every icon container picks its colour from data-color="red|blue|gold|green"
   Sizes every old container class down to the refined 36px standard.         */

/* ── Size/shape reset for all legacy icon container classes ─────────────── */
.community-card-icon-wrap,
.course-card-icon,
.ai-card-icon,
.platform-card-icon,
.money-feature-icon,
.market-card-icon,
.academy-cert-icon,
.ico-wrap {
  font-size: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  transition: opacity .15s, transform .15s;
}
.community-card-icon-wrap { margin-bottom: 14px !important; transform: none !important; }
.course-card-icon   { margin-bottom: 12px !important; }
.ai-card-icon       { margin-bottom: 14px !important; }
.platform-card-icon { margin-bottom: 12px !important; }
.money-feature-icon { margin-bottom: 0 !important; }
.market-card-icon   { margin-bottom: 16px !important; }

/* ── SVG inside any icon container ─────────────────────────────────────── */
.community-card-icon-wrap svg,
.course-card-icon svg,
.ai-card-icon svg,
.platform-card-icon svg,
.money-feature-icon svg,
.market-card-icon svg,
.academy-cert-icon svg,
.ico-wrap svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  flex-shrink: 0;
}

/* ── D: Multi-Colour semantic tokens via data-color ─────────────────────── */
[data-color="red"] {
  background: rgba(217,18,34,.12) !important;
  border: 1px solid rgba(217,18,34,.22) !important;
  color: #ff6670 !important;
}
[data-color="blue"] {
  background: rgba(79,168,255,.12) !important;
  border: 1px solid rgba(79,168,255,.22) !important;
  color: #4FA8FF !important;
}
[data-color="gold"] {
  background: rgba(245,184,67,.12) !important;
  border: 1px solid rgba(245,184,67,.22) !important;
  color: #F5B843 !important;
}
[data-color="green"] {
  background: rgba(38,201,163,.12) !important;
  border: 1px solid rgba(38,201,163,.22) !important;
  color: #26C9A3 !important;
}

/* ── Hover: subtle lift ──────────────────────────────────────────────────── */
.community-card:hover [data-color],
.ai-card:hover [data-color],
a:hover [data-color] {
  opacity: .85;
}

/* ══ END MULTI-COLOUR ICON SYSTEM ═══════════════════════════════════════════ */

/* ══ END ICON SYSTEM v2 ════════════════════════════════════════════════════ */

/* ══ END — DESIGN SYSTEM v2 ══════════════════════════════════════════ */

/* ══ POLISH ADDITIONS — Responsive, Accessibility, Interactions ══════ */

/* Mobile section header button stack */
@media (max-width: 600px) {
  .sh-cta { flex-direction: column; align-items: stretch; }
  .sh-cta .btn { width: 100%; justify-content: center; }
}

/* Stat number responsive scaling */
@media (max-width: 768px) {
  .stat-num    { font-size: 36px; }
  .stat-num.stat-num-lg { font-size: 48px; }
  .stat-num.stat-num-xl { font-size: 60px; }
}
@media (max-width: 480px) {
  .stat-num    { font-size: 28px; }
  .stat-num.stat-num-lg { font-size: 38px; }
  .stat-num.stat-num-xl { font-size: 48px; }
}

/* Touch hover guard — prevents sticky hover on touch devices */
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,.18);
  }
  .btn-primary:hover, .btn-gold:hover, .btn-secondary:hover {
    transform: translateY(-2px);
  }
  .market-card:hover, .pricing-card:hover, .platform-card:hover {
    transform: translateY(-4px);
  }
}

/* Touch active states for cards */
.market-card:active, .pricing-card:active, .platform-card:active {
  transform: translateY(-1px);
  transition: transform 0.08s ease;
}

/* Additional focus-visible for interactive cards */
.card-hover:focus-visible {
  outline: 2px solid rgba(217,18,34,0.60);
  outline-offset: 2px;
}

/* Mobile btn-sm and btn-icon responsive */
@media (max-width: 600px) {
  .btn-sm { padding: 11px 16px; min-height: 40px; }
  .btn-icon { width: 44px; height: 44px; }
  .btn-icon.btn-sm { width: 40px; height: 40px; }
}

/* data-color icon system (products.html, platforms.html) — ensure non-!important fallback */
[data-color='blue']:not([class*='ico-wrap']) { background: rgba(79,168,255,.1); border-color: rgba(79,168,255,.2); color: var(--blue); }
[data-color='green']:not([class*='ico-wrap']) { background: rgba(38,201,163,.1); border-color: rgba(38,201,163,.2); color: var(--up); }
[data-color='gold']:not([class*='ico-wrap']) { background: rgba(245,184,67,.1); border-color: rgba(245,184,67,.2); color: var(--gold); }

/* Transition consistency tokens */
.market-card, .pricing-card, .platform-card, .tool-item, .account-card, .rate-tile {
  transition: background var(--transition-base), transform var(--transition-base),
              box-shadow var(--transition-base), border-color var(--transition-base);
}

/* Hero h1 responsive breakpoint chain */
@media (max-width: 768px) { .hero h1 { font-size: 36px; } }
@media (max-width: 480px) { .hero h1 { font-size: 32px; } }

/* Glow hover utility completions */
.glow-gold-hover:hover  { box-shadow: var(--shadow-gold); }
.glow-green-hover:hover { box-shadow: 0 8px 24px -4px rgba(38,201,163,0.45), 0 2px 8px 0 rgba(38,201,163,0.28); }

/* Card-hover base cursor + will-change */
.card-hover { cursor: pointer; will-change: transform; }

/* Page-load entrance utilities */
.fade-in     { animation: fade-in-anim 0.6s cubic-bezier(.22,1,.36,1) both; }
.fade-in-up  { animation: fade-in-up-anim 0.65s cubic-bezier(.22,1,.36,1) both; }
.scale-in    { animation: scale-in-anim 0.5s cubic-bezier(.22,1,.36,1) both; }
@keyframes fade-in-anim    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-up-anim { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scale-in-anim   { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-up, .scale-in { animation: none; opacity: 1; transform: none; }
}

/* Extended stagger — supports grids with 7–10 items */
.stagger > *:nth-child(7)  { transition-delay: 0.48s; }
.stagger > *:nth-child(8)  { transition-delay: 0.56s; }
.stagger > *:nth-child(9)  { transition-delay: 0.64s; }
.stagger > *:nth-child(10) { transition-delay: 0.72s; }

/* Skeleton loading component */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 400% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm, 6px);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
@keyframes skeleton-pulse {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.skeleton-text  { height: 1em; margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 0.75em; }
.skeleton-block { height: 120px; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: rgba(255,255,255,0.06); }
}

/* Additional utility classes */
.flex-wrap     { flex-wrap: wrap; }
.flex-nowrap   { flex-wrap: nowrap; }
.min-w-0       { min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.pointer       { cursor: pointer; }

/* ══ END POLISH ADDITIONS ══════════════════════════════════════════════ */
