:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --ink: #101418;
  --muted: #596672;
  --line: #e8edf2;
  --cta: #075fe4;
  --cta-strong: #064bb5;
  --reward: #b36a00;
  --success: #0b7a45;
  --danger: #b4232e;
  --blue: var(--cta);
  --mint: var(--success);
  --gold: var(--reward);
  --focus: 0 0 0 3px rgba(7, 95, 228, .18);
  --shadow: 0 14px 38px rgba(17, 24, 39, 0.06);
  --shadow-soft: 0 8px 18px rgba(17, 24, 39, 0.04);
  --radius: 8px;
  --ease-fast: 180ms cubic-bezier(.2, .8, .2, 1);
  --ease-smooth: 280ms cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 320px),
    var(--bg);
  font-family: var(--font-sans);
  letter-spacing: 0;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
button, a, input { transition: color var(--ease-fast), background-color var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast), opacity var(--ease-fast); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 0; box-shadow: var(--focus); }

.app-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(22px);
}
.brand, .topbar, .hero-actions, .copy-row, .side-card-top, .hero-proof { display: flex; align-items: center; }
.brand { gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: var(--ink); font-weight: 850;
}
.brand strong, .brand span { display: block; }
.brand span { color: var(--muted); font-size: 13px; }
.nav-list { display: grid; gap: 8px; }
.nav-item {
  min-height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border: 0; border-radius: var(--radius);
  color: var(--muted); background: transparent; text-align: left;
}
.nav-item span { width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.nav-item b { font-size: 14px; }
.nav-item:hover, .nav-item.active { color: var(--ink); background: var(--surface-2); }
.nav-item.active span { border-color: var(--blue); background: var(--blue); }
.side-card { margin-top: auto; padding: 16px; border-radius: var(--radius); color: #fff; background: var(--ink); }
.side-card-top { justify-content: space-between; gap: 10px; }
.side-card-top span { color: rgba(255,255,255,.64); font-size: 12px; font-weight: 750; }
.side-card p { margin: 10px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.xp-track { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.xp-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); }
.legal-links { display: flex; gap: 12px; flex-wrap: wrap; }
.legal-links a { color: var(--muted); font-size: 12px; font-weight: 750; text-decoration: none; }

.main { min-width: 0; padding: 20px 28px 96px; }
.topbar {
  position: sticky; top: 0; z-index: 5; gap: 12px; min-height: 64px; padding-bottom: 16px;
  background: linear-gradient(180deg, var(--bg) 72%, rgba(246,248,249,0));
}
.icon-button, .primary-button, .secondary-button, .text-button, .lang-switch button { border-radius: var(--radius); }
.icon-button {
  width: 44px; height: 44px; display: none; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
}
.icon-button span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 99px; background: var(--ink); }
.search-box {
  min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.82);
}
.search-box i { width: 14px; height: 14px; position: relative; border: 2px solid var(--muted); border-radius: 50%; }
.search-box i::after {
  content: ""; position: absolute; right: -6px; bottom: -4px; width: 7px; height: 2px;
  background: var(--muted); transform: rotate(45deg);
}
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.lang-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.lang-switch button {
  min-width: 38px; min-height: 34px; border: 0; color: var(--muted);
  background: transparent; font-size: 12px; font-weight: 850;
}
.lang-switch button.active { color: #fff; background: var(--ink); }
.top-pulse {
  min-height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); white-space: nowrap;
}
.top-pulse span { color: var(--muted); font-size: 12px; font-weight: 850; }
.top-pulse strong { font-size: 15px; }
.primary-button, .secondary-button {
  min-height: 44px; padding: 0 18px; border: 0; font-weight: 800; white-space: nowrap;
}
.primary-button { color: #fff; background: var(--cta); }
.primary-button:hover { background: var(--cta-strong); transform: translateY(-1px); }
.primary-button.light { color: var(--ink); background: #fff; }
.secondary-button { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.secondary-button:hover, .mini-action:hover, .queue-actions button:hover { border-color: rgba(7,95,228,.35); transform: translateY(-1px); }
.compact { padding-inline: 14px; }
.text-button { border: 0; color: var(--cta); background: transparent; font-weight: 800; }

.screen { display: none; }
.screen.active { display: block; }
.command-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.hero-panel, .panel, .metric-card, .price-card, .module-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.86);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast);
}
.metric-card:hover, .module-card:hover, .price-card:hover { border-color: rgba(7,95,228,.24); box-shadow: 0 12px 32px rgba(18,31,44,.08); transform: translateY(-1px); }
.hero-panel {
  min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px; align-items: center; padding: 34px; box-shadow: var(--shadow);
}
.eyebrow, .status-chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px;
  border-radius: 99px; color: var(--muted); background: var(--surface-2);
  font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.status-chip { color: #063c22; background: #dff8ea; }
.status-chip.live { color: #8a121c; background: #ffe7e9; }
.hero-panel h1 { max-width: 780px; margin: 18px 0 16px; font-size: clamp(42px, 6vw, 78px); line-height: .96; letter-spacing: 0; }
.hero-panel p, .section-title p, .price-card li, .fine-print { color: var(--muted); line-height: 1.65; }
.hero-panel p { max-width: 680px; font-size: 17px; }
.hero-actions { gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-proof { gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-proof span {
  min-height: 54px; min-width: 118px; display: grid; gap: 2px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7);
}
.hero-proof b { font-size: 20px; }
.hero-proof small { color: var(--muted); font-size: 11px; font-weight: 800; }
.score-card {
  min-height: 246px; display: grid; place-items: center; text-align: center;
  padding: 18px; border-radius: var(--radius); background: var(--ink); color: #fff;
}
.ring {
  --angle: calc(var(--score) * 3.6deg); width: 138px; height: 138px; display: grid; place-items: center;
  border-radius: 50%; background: conic-gradient(var(--mint) var(--angle), rgba(255,255,255,.14) 0);
}
.ring span {
  width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); font-size: 38px; font-weight: 900;
}
.score-card p { margin: 14px 0 4px; color: rgba(255,255,255,.62); }
.score-card small { margin-top: 10px; color: rgba(255,255,255,.68); font-weight: 750; }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel h2, .section-title h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: 0; }
.streak-panel { min-height: 390px; }
.streak-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 32px; }
.streak-days span {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); background: var(--surface-2); font-weight: 850;
}
.streak-days .done { color: #fff; background: var(--ink); }
.reward-box {
  margin-top: 26px; padding: 16px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1); background: #f8fafb;
}
.reward-box span { color: var(--muted); font-size: 12px; font-weight: 850; }
.reward-box strong { display: block; margin: 6px 0 12px; font-size: 18px; }
.reward-box p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.metrics-grid, .module-grid, .pricing-grid, .referral-stats, .signal-grid, .rank-layout { display: grid; gap: 14px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 18px 0; }
.metric-card { min-height: 126px; padding: 18px; }
.metric-card span, .metric-card p, .referral-stats span, .signal-grid span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin-top: 12px; font-size: 34px; }
.metric-card.dark { color: #fff; background: var(--ink); }
.metric-card.dark span, .metric-card.dark p { color: rgba(255,255,255,.64); }
.challenge-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px;
  align-items: center; margin: 18px 0;
  color: #fff; background: linear-gradient(135deg, #111417, #26313a);
}
.challenge-panel h2 { margin: 10px 0 8px; font-size: clamp(24px, 4vw, 42px); line-height: 1.05; }
.challenge-panel p { margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; }
.challenge-meter {
  min-height: 132px; display: grid; place-items: center; text-align: center;
  border-radius: var(--radius); background: rgba(255,255,255,.1);
}
.challenge-meter strong { display: block; font-size: 38px; }
.challenge-meter span { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 850; }
.community-panel { margin: 18px 0; }
.community-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 12px;
}
.room-stack, .proof-feed { display: grid; gap: 10px; }
.community-room, .proof-item {
  min-height: 74px; display: grid; align-content: center;
  padding: 14px; border: 1px solid rgba(228,233,238,.72); border-radius: var(--radius);
  background: #f5f7f9;
}
.community-room {
  grid-template-columns: 72px 1fr; column-gap: 12px;
}
.community-room span {
  grid-row: span 2; min-height: 44px; display: grid; place-items: center;
  border-radius: var(--radius); color: #fff; background: var(--ink); font-size: 12px; font-weight: 900;
}
.community-room small, .proof-item small {
  display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35;
}
.feed-heading {
  color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.proof-item {
  grid-template-columns: 38px 1fr; gap: 10px; align-items: center;
}
.proof-item b {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--cta);
}
.split-layout, .referral-layout, .signals-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 18px;
}
.task-list, .loop-list, .mission-stack, .leaderboard { display: grid; gap: 10px; }
.task-row, .loop-list div, .mission-row, .leader-row { border-radius: var(--radius); background: var(--surface-2); }
.task-row {
  min-height: 78px; display: grid; grid-template-columns: 24px 1fr auto;
  gap: 12px; align-items: start; padding: 14px;
}
.task-row input { width: 20px; height: 20px; accent-color: var(--ink); }
.task-row small { display: block; margin-top: 5px; color: var(--muted); }
.task-row em { color: var(--blue); font-style: normal; font-weight: 850; }
.loop-list div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 14px; }
.loop-list b {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--ink);
}
.section-title { max-width: 850px; margin: 20px 0 24px; }
.module-grid { grid-template-columns: repeat(5, minmax(180px, 1fr)); }
.academy-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.academy-strip article {
  min-height: 118px; display: grid; gap: 5px; align-content: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.academy-strip span, .academy-strip small { color: var(--muted); font-size: 12px; font-weight: 800; }
.academy-strip strong { font-size: 18px; line-height: 1.2; }
.module-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.module-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2); font-weight: 900;
}
.module-card p { color: var(--muted); line-height: 1.55; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint), var(--gold)); }
.certification-panel, .launchpad-panel { margin: 14px 0; }
.certification-layout, .launchpad-layout {
  display: grid; grid-template-columns: minmax(320px, .95fr) minmax(320px, 1fr) minmax(280px, .82fr);
  gap: 12px; align-items: stretch;
}
.cert-card, .proof-submit-grid, .proof-vault, .launch-steps, .script-vault, .funnel-board {
  display: grid; gap: 10px; align-content: start;
}
.cert-card {
  min-height: 100%; padding: 18px; border-radius: var(--radius); color: #fff; background: var(--ink);
}
.cert-card .eyebrow { color: rgba(255,255,255,.68); }
.cert-card h3 { margin: 10px 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; }
.cert-card p { color: rgba(255,255,255,.68); line-height: 1.55; }
.cert-progress-row {
  display: grid; gap: 8px; padding: 10px; border-radius: var(--radius); background: rgba(255,255,255,.08);
}
.cert-progress-row div:first-child {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.cert-progress-row span { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 850; }
.cert-progress-row .progress-track { background: rgba(255,255,255,.12); }
.cert-progress-row.complete .progress-fill { background: linear-gradient(90deg, var(--success), var(--reward)); }
.proof-section-label {
  color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.proof-submit-card {
  min-height: 92px; display: grid; gap: 5px; text-align: left;
  padding: 14px; border: 1px solid rgba(228,233,238,.72); border-radius: var(--radius);
  background: #f7f9fb;
}
.proof-submit-card span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.proof-submit-card b { color: var(--cta); }
.proof-submit-card:hover { border-color: rgba(7,95,228,.22); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17,24,39,.045); }
.proof-vault-row {
  min-height: 64px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 12px; border-radius: var(--radius); border: 1px solid rgba(228,233,238,.72); background: #f7f9fb;
}
.proof-vault-row b {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--ink);
}
.proof-vault-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.proof-vault-row em { color: var(--success); font-style: normal; font-weight: 900; }
.mini-action {
  min-height: 36px; width: 100%; margin-top: 12px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); background: #fff; font-size: 12px; font-weight: 850;
}
.referral-layout { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
.referral-card h3 { margin: 16px 0; font-size: clamp(24px, 4vw, 48px); overflow-wrap: anywhere; }
.referral-card > p { color: var(--muted); line-height: 1.6; }
.copy-row { gap: 8px; }
.copy-row input {
  min-width: 0; width: 100%; height: 48px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.referral-stats { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 16px; }
.referral-stats div, .signal-grid div { padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.referral-stats strong, .signal-grid strong { display: block; margin-top: 6px; }
.commission-callout {
  margin-top: 14px; padding: 16px; border-radius: var(--radius);
  color: #fff; background: var(--ink);
}
.commission-callout strong, .commission-callout span { display: block; }
.commission-callout span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 13px; }
.mission-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px; }
.mission-row small { display: block; margin-top: 5px; color: var(--muted); }
.referral-studio { margin-top: 18px; }
.launchpad-panel { margin-top: 18px; }
.launch-step {
  min-height: 72px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 12px; border: 1px solid rgba(228,233,238,.72); border-radius: var(--radius); background: #f7f9fb;
}
.launch-step input { width: 20px; height: 20px; accent-color: var(--cta); }
.launch-step small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }
.launch-step.done { border-color: rgba(11,122,69,.18); background: #ecf9f2; }
.script-card {
  display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(228,233,238,.72);
  border-radius: var(--radius); background: #f7f9fb;
}
.script-card span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.script-card p { margin: 0; color: #394650; font-size: 13px; line-height: 1.55; }
.script-card .secondary-button { width: 100%; min-height: 38px; }
.funnel-board {
  padding: 16px; border-radius: var(--radius); color: #fff; background: var(--ink);
}
.funnel-board .studio-section-label { color: rgba(255,255,255,.68); }
.funnel-row {
  min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius); background: rgba(255,255,255,.08);
}
.funnel-row span, .launch-score span { color: rgba(255,255,255,.68); font-size: 12px; font-weight: 850; }
.funnel-row strong { font-size: 22px; }
.funnel-row.reward strong { color: #ffd58a; }
.launch-score { display: grid; gap: 8px; margin-top: 4px; }
.launch-score .progress-track { background: rgba(255,255,255,.12); }
.studio-layout {
  display: grid; grid-template-columns: minmax(240px, .82fr) minmax(320px, 1.1fr) minmax(260px, .72fr);
  gap: 12px; align-items: stretch;
}
.clip-vault, .studio-steps, .link-bio-card {
  display: grid; gap: 10px; align-content: start;
}
.studio-section-label {
  color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.clip-card {
  display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center;
  min-height: 108px; padding: 12px; border: 1px solid rgba(228,233,238,.72);
  border-radius: var(--radius); background: #f5f7f9;
}
.video-tile {
  aspect-ratio: 9 / 13; display: grid; place-items: center; position: relative; overflow: hidden;
  border-radius: var(--radius); color: #fff; background: linear-gradient(180deg, #101418, #27313a);
}
.video-tile span { font-size: 22px; font-weight: 950; }
.video-tile small {
  position: absolute; right: 7px; bottom: 7px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 900;
}
.clip-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.studio-step {
  min-height: 78px; display: grid; grid-template-columns: 22px 34px 1fr; gap: 10px; align-items: start;
  padding: 12px; border: 1px solid rgba(228,233,238,.72); border-radius: var(--radius); background: #f5f7f9;
}
.studio-step input { width: 20px; height: 20px; accent-color: var(--cta); }
.studio-step b {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--ink);
}
.studio-step small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }
.studio-step.done { background: #ecf9f2; border-color: rgba(11,122,69,.18); }
.link-bio-card {
  padding: 16px; border-radius: var(--radius); color: #fff; background: var(--ink);
}
.link-bio-card .eyebrow { color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); }
.link-bio-card h3 { margin: 4px 0 0; font-size: 28px; line-height: 1.06; }
.link-bio-card p { color: rgba(255,255,255,.68); line-height: 1.5; }
.bio-preview {
  display: grid; gap: 5px; padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.1);
}
.bio-preview span { color: rgba(255,255,255,.64); font-size: 12px; font-weight: 850; }
.bio-preview strong { overflow-wrap: anywhere; }
.link-bio-card .secondary-button { margin-top: auto; }
.rank-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.leader-row {
  min-height: 68px; display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center; padding: 12px;
}
.leader-row b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.leader-row small { display: block; margin-top: 3px; color: var(--muted); }
.leader-row strong:last-child { color: var(--blue); }
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.badge-grid div {
  min-height: 112px; display: grid; place-items: center; text-align: center;
  padding: 12px; border-radius: var(--radius); background: var(--surface-2);
}
.badge-grid b { font-size: 28px; }
.badge-grid span { color: var(--muted); font-weight: 800; }
.rank-next {
  margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface-2);
}
.rank-next span { color: var(--muted); font-size: 12px; font-weight: 850; }
.rank-next strong { display: block; margin-top: 6px; font-size: 20px; }
.rank-next p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.signals-layout { grid-template-columns: 1fr .78fr; }
.signal-ticket { color: #fff; background: var(--ink); }
.signal-ticket h3 { margin: 18px 0; font-size: clamp(30px, 4vw, 46px); }
.signal-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 22px; }
.signal-ticket .signal-grid div { background: rgba(255,255,255,.1); }
.rules-list { margin: 18px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.85; }
.fine-print { margin: 18px 0 0; font-size: 12px; }
.potential-panel {
  display: grid; grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr);
  gap: 22px; align-items: center; margin-bottom: 18px; overflow: hidden;
}
.potential-copy h2 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; }
.potential-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.potential-tool {
  display: grid; gap: 16px; padding: 18px; border-radius: var(--radius);
  color: #fff; background: var(--ink);
}
.potential-main {
  display: flex; align-items: end; justify-content: space-between; gap: 14px;
}
.potential-main span, .potential-results span, .potential-assumptions span {
  color: rgba(255,255,255,.68); font-size: 12px; font-weight: 850;
}
.potential-main strong { font-size: clamp(54px, 10vw, 88px); line-height: .88; }
.potential-tool input[type="range"] {
  --slider-progress: 5%;
  width: 100%; height: 30px; appearance: none; border: 0; outline: 0; background: transparent;
}
.potential-tool input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--reward) var(--slider-progress), rgba(255,255,255,.16) 0);
}
.potential-tool input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 28px; height: 28px; margin-top: -10px;
  border: 4px solid #fff; border-radius: 50%; background: var(--reward); box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.potential-tool input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 99px; background: rgba(255,255,255,.16);
}
.potential-tool input[type="range"]::-moz-range-progress {
  height: 8px; border-radius: 99px; background: var(--reward);
}
.potential-tool input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: var(--reward);
}
.potential-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.potential-results div {
  min-height: 88px; display: grid; gap: 6px; align-content: center;
  padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.1);
}
.potential-results strong { font-size: clamp(18px, 3vw, 28px); overflow-wrap: anywhere; }
.potential-assumptions { display: flex; gap: 8px; flex-wrap: wrap; }
.potential-assumptions span {
  min-height: 28px; display: inline-flex; align-items: center;
  padding: 0 9px; border-radius: 99px; background: rgba(255,255,255,.1);
}
.pricing-grid { grid-template-columns: repeat(2, minmax(260px,1fr)); max-width: 900px; }
.price-card { min-height: 430px; display: flex; flex-direction: column; padding: 24px; }
.price-card.featured { color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.price-card h3 { margin: 18px 0 14px; font-size: 48px; }
.price-card h3 span { color: var(--muted); font-size: 18px; }
.price-card ul { display: grid; gap: 12px; margin: 10px 0 26px; padding-left: 18px; }
.price-card.featured li, .price-card.featured h3 span { color: rgba(255,255,255,.72); }
.price-card button { margin-top: auto; }
.mobile-nav { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 18px);
  max-width: min(520px, calc(100vw - 32px)); padding: 13px 16px;
  border-radius: var(--radius); color: #fff; background: var(--ink);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 800; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.streak-alert {
  display: grid; gap: 4px; margin: 4px 0 18px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.streak-alert strong { font-size: 14px; }
.streak-alert span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.streak-alert.safe { border-color: rgba(11,122,69,.22); background: #e9f8f0; }
.streak-alert.risk { border-color: rgba(179,106,0,.26); background: #fff5df; }
.reward-metric { border-color: rgba(179,106,0,.28); background: #fffaf0; }
.reward-metric strong, .badge-grid .reward-badge b { color: var(--reward); }
.task-row.done { background: #e9f8f0; }
.task-row { position: relative; overflow: hidden; }
.milestone-burst {
  position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; pointer-events: none;
  border-radius: 50%; background: var(--reward); box-shadow: 0 0 0 0 rgba(179,106,0,.36);
  animation: burst 760ms ease-out forwards;
}
@keyframes burst {
  to { transform: translate(-50%, -50%) scale(28); opacity: 0; box-shadow: 0 0 0 18px rgba(179,106,0,0); }
}
.ledger-card {
  display: grid; gap: 8px; margin-top: 14px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.ledger-head, .ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ledger-head span {
  min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px;
  border-radius: 99px; color: #fff; background: var(--reward); font-size: 12px; font-weight: 900;
}
.ledger-row {
  min-height: 48px; padding: 9px 10px; border-radius: var(--radius); background: var(--surface-2);
}
.ledger-row small, .badge-grid small, .founder-row small, .queue-note {
  display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35;
}
.ledger-row b { white-space: nowrap; }
.ledger-row.active b { color: var(--success); }
.ledger-row.trial b, .ledger-row.held b { color: var(--reward); }
.ledger-row.refunded b, .ledger-row.chargeback b { color: var(--danger); }
.badge-grid div {
  align-content: center; gap: 4px;
  border: 1px solid transparent;
}
.badge-grid .unlocked {
  border-color: rgba(11,122,69,.18); background: #e9f8f0;
}
.badge-grid .locked {
  color: var(--muted); background: #f1f4f6;
}
.badge-grid .locked b { opacity: .42; }
.founder-queue {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
}
.compact-heading { margin-bottom: 10px; }
.compact-heading h2 { font-size: 22px; line-height: 1.1; }
#founderQueue { display: grid; gap: 9px; }
.founder-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--radius); background: var(--surface-2);
}
.founder-row.featured {
  border: 1px solid rgba(179,106,0,.28); background: #fff5df;
}
.founder-row.skipped { opacity: .58; }
.queue-actions { display: flex; gap: 6px; }
.queue-actions button {
  min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 850;
}
.queue-actions button:first-child { color: #fff; border-color: var(--cta); background: var(--cta); }
.leader-row.me {
  border: 1px solid rgba(7,95,228,.22); background: #eaf2ff;
}
.skeleton {
  min-height: 56px; border-radius: var(--radius);
  background: linear-gradient(90deg, #eef2f4, #f8fafb, #eef2f4);
  background-size: 200% 100%; animation: skeleton 950ms ease-in-out infinite;
}
.skeleton.short { min-height: 38px; width: 72%; }
@keyframes skeleton {
  to { background-position: -200% 0; }
}

/* Premium smoothness pass */
.main {
  max-width: 1480px;
  margin: 0 auto;
}
.sidebar {
  background: rgba(255,255,255,.78);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.72);
}
.brand-mark {
  box-shadow: 0 8px 20px rgba(16,20,24,.12);
}
.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item span {
  width: 6px; height: 6px; border: 0; background: currentColor; opacity: .28;
}
.nav-item:hover {
  transform: translateX(2px);
}
.nav-item.active {
  color: var(--ink);
  background: #eef4ff;
}
.nav-item.active span {
  background: var(--cta);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(7,95,228,.12);
}
.topbar {
  padding-top: 2px;
  background: linear-gradient(180deg, rgba(247,248,250,.96) 72%, rgba(247,248,250,0));
}
.search-box, .top-pulse, .lang-switch {
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset;
}
.primary-button, .secondary-button, .mini-action, .queue-actions button {
  transform: translateZ(0);
}
.primary-button {
  box-shadow: 0 10px 22px rgba(7,95,228,.18);
}
.primary-button:active, .secondary-button:active, .mini-action:active, .queue-actions button:active {
  transform: translateY(0) scale(.985);
}
.screen.active {
  animation: screenIn var(--ease-smooth) both;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-panel, .panel, .metric-card, .price-card, .module-card {
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.hero-panel {
  border-color: rgba(228,233,238,.88);
  box-shadow: var(--shadow);
}
.hero-panel h1 {
  max-width: 720px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: .99;
}
.hero-panel p {
  max-width: 640px;
  color: #4f5d69;
}
.hero-proof span, .referral-stats div, .signal-grid div, .task-row, .loop-list div, .mission-row, .leader-row, .academy-strip article, .ledger-row, .rank-next, .reward-box {
  background: #f5f7f9;
  border: 1px solid rgba(228,233,238,.72);
}
.hero-proof span {
  min-width: 128px;
}
.score-card, .challenge-panel, .signal-ticket, .price-card.featured, .potential-tool {
  background: #101418;
  box-shadow: var(--shadow-soft);
}
.ring {
  background: conic-gradient(var(--success) var(--angle), rgba(255,255,255,.12) 0);
}
.metric-card, .module-card, .price-card {
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset;
}
.metric-card:hover, .module-card:hover, .price-card:hover {
  border-color: rgba(7,95,228,.16);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.metric-card strong {
  letter-spacing: 0;
}
.reward-metric {
  background: #fffaf1;
}
.task-row, .mission-row, .leader-row, .founder-row {
  transition: background-color var(--ease-fast), border-color var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
}
.task-row:hover, .mission-row:hover, .leader-row:hover, .founder-row:hover, .community-room:hover, .proof-item:hover, .clip-card:hover, .studio-step:hover, .launch-step:hover, .script-card:hover, .proof-vault-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17,24,39,.045);
}
.progress-track, .xp-track {
  height: 6px;
}
.progress-fill {
  background: linear-gradient(90deg, var(--cta), var(--success), var(--reward));
}
.streak-alert {
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset;
}
.copy-row input {
  background: #f6f8fa;
}
.badge-grid .unlocked, .task-row.done {
  background: #ecf9f2;
}
.leader-row.me {
  background: #eef5ff;
}
.potential-panel {
  box-shadow: var(--shadow-soft);
}
.potential-main strong, .price-card h3, .metric-card strong {
  font-variant-numeric: tabular-nums;
}
.mobile-nav {
  box-shadow: 0 18px 48px rgba(17,24,39,.16);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Clean minimal finish */
.panel, .metric-card, .price-card, .module-card, .hero-panel {
  border-color: rgba(232,237,242,.86);
}
.panel, .metric-card, .price-card, .module-card {
  box-shadow: none;
}
.hero-panel {
  box-shadow: 0 18px 44px rgba(17,24,39,.055);
}
.section-title {
  margin-top: 28px;
}
.section-title h2, .panel h2 {
  letter-spacing: 0;
}
.eyebrow {
  background: transparent;
  padding-inline: 0;
}
.status-chip {
  min-height: 26px;
}
.top-pulse, .search-box, .lang-switch, .hero-proof span, .referral-stats div, .signal-grid div, .academy-strip article, .community-room, .proof-item, .clip-card, .studio-step, .ledger-row, .rank-next, .reward-box {
  background: #f7f9fb;
}
.challenge-panel, .potential-tool, .signal-ticket, .price-card.featured, .score-card, .link-bio-card {
  background: #101418;
}
.metric-card:hover, .module-card:hover, .price-card:hover {
  box-shadow: 0 12px 26px rgba(17,24,39,.045);
}
.pricing-grid {
  margin-inline: auto;
}
.price-card.featured {
  transform: none;
}
.price-card.featured:hover {
  transform: translateY(-2px);
}
.price-card h3 {
  font-size: clamp(42px, 5vw, 54px);
}
.potential-copy h2 {
  max-width: 620px;
}
.potential-copy p {
  max-width: 540px;
}
.potential-results div {
  background: rgba(255,255,255,.085);
}
.potential-assumptions span {
  background: rgba(255,255,255,.085);
}

.legal-page { max-width: 860px; margin: 0 auto; padding: 48px 18px 80px; }
.legal-page h1 { margin: 14px 0 18px; font-size: clamp(38px, 7vw, 68px); line-height: 1; }
.legal-page section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.75; }
.legal-page a { color: var(--blue); font-weight: 750; }

@media (max-width: 1180px) {
  .command-grid, .split-layout, .referral-layout, .signals-layout, .rank-layout, .potential-panel, .community-grid, .studio-layout, .certification-layout, .launchpad-layout { grid-template-columns: 1fr; }
  .module-grid, .metrics-grid, .academy-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(330px, 86vw);
    transform: translateX(-104%); transition: transform 180ms ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .main { padding: 12px 14px 88px; }
  .icon-button { display: grid; }
  .compact { display: none; }
  .top-pulse { display: none; }
  .hero-panel { grid-template-columns: 1fr; padding: 26px; }
  .challenge-panel { grid-template-columns: 1fr; }
  .mobile-nav {
    position: fixed; inset: auto 12px 12px; z-index: 10; display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; padding: 6px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: var(--shadow);
  }
  .mobile-nav-item {
    min-height: 42px; border: 0; border-radius: var(--radius); color: var(--muted);
    background: transparent; font-size: 12px; font-weight: 850;
  }
  .mobile-nav-item.active { color: #fff; background: var(--ink); }
}
@media (max-width: 560px) {
  .search-box { display: none; }
  .hero-panel h1 { font-size: 42px; }
  .metrics-grid, .module-grid, .referral-stats, .signal-grid, .badge-grid, .academy-strip { grid-template-columns: 1fr; }
  .potential-results { grid-template-columns: 1fr; }
  .hero-actions, .copy-row { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
  .task-row { grid-template-columns: 24px 1fr; }
  .task-row em { grid-column: 2; }
}
