:root {
  --bg: #070b14;
  --elev: #0c1220;
  --line: rgba(142, 176, 255, .16);
  --text: #f2f5fb;
  --muted: #9aa8c0;
  --blue: #2f6bff;
  --blue-2: #4d8fff;
  --green: #00d68f;
  --red: #ff4757;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; }
.bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  width: 640px; height: 640px; border-radius: 50%; filter: blur(80px);
}
.orb-a { top: -180px; left: -120px; background: rgba(47, 107, 255, .22); }
.orb-b { top: 20%; right: -200px; background: rgba(0, 214, 143, .08); }
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(142, 176, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 176, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

.nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  width: 100%; max-width: none; margin: 0;
  padding: 18px max(24px, calc((100% - 1120px) / 2));
  background: rgba(7, 11, 20, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(142, 176, 255, .08);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em;
  line-height: 1; color: #f2f5fb;
}
.nav-brand img {
  display: block; width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 9px; object-fit: contain;
}
.nav-brand span {
  display: flex; align-items: center; line-height: 1;
}
.nav-brand em { font-style: normal; color: #6ea0ff; }
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-drawer-auth { display: none; }
button.nav-drawer-auth {
  width: 100%; font: inherit; color: inherit; background: none;
  border: 0; cursor: pointer; text-align: left;
}
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(12, 18, 32, .6);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .18s ease, opacity .18s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 800;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 24px rgba(47, 107, 255, .32);
}
.btn.ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(12, 18, 32, .6);
}
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.full { width: 100%; }
.btn:hover { filter: brightness(1.06); }

.ticker {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8, 12, 22, .72);
}
.ticker-track {
  display: flex; gap: 28px; width: max-content;
  padding: 10px 24px;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.tick .sym { color: #c9d6ee; }
.tick .px { color: #fff; }
.tick .chg { font-size: 12px; }
.tick .up { color: var(--green); }
.tick .dn { color: #ff8b96; }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero, .panel, .foot, .legal-main, .dl-main {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 28px 24px;
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center;
  padding-top: 48px; padding-bottom: 72px;
}
.eyebrow {
  color: #8eb0ff; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05;
  letter-spacing: -.04em; font-weight: 800; max-width: 16ch;
}
.lede { margin-top: 18px; max-width: 54ch; color: var(--muted); font-size: 17px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 40px;
}
.hero-stats div {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(12, 18, 32, .55);
}
.hero-stats b { display: block; font-size: 18px; }
.hero-stats span { color: var(--muted); font-size: 13px; font-weight: 600; }

.hero-stage { display: flex; justify-content: center; }
.desk {
  width: min(100%, 460px);
  background: linear-gradient(180deg, #10182a, #0a1220);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(110, 160, 255, .08);
  animation: deskIn .8s ease both;
}
@keyframes deskIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.desk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.desk-dot { width: 8px; height: 8px; border-radius: 50%; background: #2a3650; }
.desk-dot:nth-child(1) { background: #ff5f57; }
.desk-dot:nth-child(2) { background: #febc2e; }
.desk-dot:nth-child(3) { background: #28c840; }
.desk-pair { margin-left: 8px; font-weight: 800; font-size: 13px; }
.desk-live {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: var(--green); border: 1px solid rgba(0, 214, 143, .35);
  border-radius: 999px; padding: 2px 7px;
}
.desk-px {
  margin-left: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700; color: var(--green);
}
.desk-chart { display: block; width: 100%; height: 210px; background: #070b14; }
.desk-area { fill: url(#areaFill); }
.desk-line {
  fill: none; stroke: #6ea0ff; stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: drawLine 1.8s ease forwards .2s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.desk-ticket {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 14px 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(7, 11, 20, .55);
}
.desk-ticket small { color: var(--muted); font-size: 11px; font-weight: 700; }
.desk-ticket b { display: block; }
.desk-sides { display: flex; gap: 8px; }
.desk-sides span {
  padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 800;
}
.desk-sides .up { background: rgba(0, 214, 143, .16); color: var(--green); }
.desk-sides .dn { background: rgba(255, 71, 87, .16); color: #ff8b96; }

.panel h2, .legal-doc h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 8px; }
.legal-doc h1 { font-size: clamp(32px, 5vw, 44px); }
.sub { color: var(--muted); margin-bottom: 22px; max-width: 60ch; }
.market-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.market-grid article, .steps li, details, .legal-doc, .dl-card {
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.market-grid article { transition: transform .2s ease, border-color .2s ease; }
.market-grid article:hover { transform: translateY(-3px); border-color: rgba(110, 160, 255, .4); }
.m-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  margin-bottom: 12px;
}
.m-icon.fx { background: rgba(47, 107, 255, .16); color: #8eb0ff; }
.m-icon.cr { background: rgba(0, 214, 143, .12); color: var(--green); }
.m-icon.cm { background: rgba(255, 176, 32, .12); color: #ffc14d; }
.m-icon.sh { background: rgba(168, 140, 255, .14); color: #c4b4ff; }
.market-grid h3 { margin-bottom: 6px; }
.market-grid p, .steps li, details p { color: var(--muted); font-size: 14px; }

.store-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.store-badge {
  display: block; line-height: 0; min-width: 0;
  border-radius: 8px;
  transition: transform .18s ease, filter .18s ease;
}
.store-badge img,
.store-badge img.play-badge {
  display: block; width: 100%; height: auto; max-width: none;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store-badge.is-disabled { opacity: .8; cursor: pointer; }
.store-install {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #111827; color: #fff;
  font-size: 14px; font-weight: 800; text-decoration: none;
}
.store-install:hover { transform: translateY(-2px); border-color: rgba(110, 160, 255, .4); }
.store-note { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.pwa-help {
  margin-top: 4px; padding: 12px 14px; border-radius: 12px;
  background: rgba(47, 107, 255, .12); border: 1px solid rgba(110, 160, 255, .28);
  color: #d7e4ff; font-size: 14px; font-weight: 600;
}

.steps { list-style: none; display: grid; gap: 10px; }
.steps b { display: block; color: var(--text); margin-bottom: 4px; }
.step-n {
  display: inline-block; margin-bottom: 8px;
  color: #8eb0ff; font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
details { margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; }
details a { color: #8eb0ff; font-weight: 700; }

.foot {
  color: var(--muted); font-size: 13px; font-weight: 600;
  border-top: 1px solid var(--line); margin-top: 40px;
  padding-bottom: 36px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.foot-brand .nav-brand {
  display: inline-flex; align-items: center; color: #f2f5fb;
}
.foot-brand .nav-brand img { width: 28px; height: 28px; flex-basis: 28px; }
.foot-brand p { margin-top: 12px; max-width: 32ch; font-weight: 500; }
.foot h3 {
  color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.foot-grid a { display: block; text-decoration: none; margin-bottom: 8px; }
.foot-grid a:hover { color: #fff; }
.foot-risk {
  margin-top: 28px; padding: 14px 16px;
  border: 1px solid rgba(255, 176, 32, .22);
  background: rgba(255, 176, 32, .06);
  border-radius: 14px; color: #d8c8a0; font-weight: 500;
}
.foot-risk a { color: #ffd27a; }
.foot-copy {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 18px; flex-wrap: wrap;
}

.legal-main { padding-top: 20px; padding-bottom: 60px; }
.legal-doc { padding: 36px 32px; }
.legal-kicker {
  color: #8eb0ff; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.legal-updated, .legal-contact { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal-contact { margin-bottom: 22px; }
.legal-contact a, .legal-doc a { color: #8eb0ff; font-weight: 700; }
.legal-doc h2 {
  font-size: 18px; margin: 26px 0 8px; letter-spacing: -.02em;
}
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 15px; }
.legal-doc ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }

.hero.dl-hero, .dl-hero {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 36px;
  padding-bottom: 16px;
}
.dl-hero h1 {
  max-width: none;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 800;
}
.dl-hero .lede { max-width: 54ch; }
.dl-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 0 24px 60px;
  position: relative; z-index: 1;
}
.dl-card, .dl-aside {
  min-width: 0;
  overflow-wrap: break-word;
  padding: 22px;
}
.dl-card ol { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.dl-card b { color: var(--text); }
.dl-aside {
  background: linear-gradient(180deg, #121a2c, #0c1220);
  border: 1px solid var(--line); border-radius: 16px;
}
.dl-aside p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
.dl-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  margin: 4px 0 8px;
  width: 100%;
}
.dl-actions img {
  display: block; width: 100%; max-width: 100%; height: auto;
}
.dl-actions .btn { width: 100%; }

/* auth */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; color-scheme: dark; }
body.auth-page { display: block; min-height: 100%; color-scheme: dark; }
.auth-main { position: relative; z-index: 1; padding: 28px 16px 48px; display: grid; place-items: center; }
body.auth-page .auth-badge { margin-top: 0; }
body.auth-split {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(380px, 520px);
  place-items: stretch;
  padding: 0;
}
.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0a1220;
}
.auth-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,.25) 0%, rgba(7,11,20,.82) 78%);
}
.auth-visual-copy {
  position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 40px;
  max-width: 420px;
}
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8eb0ff; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.auth-visual-copy h2 {
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.15;
}
.auth-visual-copy p { color: #c9d6ee; margin-top: 10px; }
.auth-pane {
  display: grid; place-items: center;
  padding: 32px 24px;
  background: var(--bg);
}
.auth-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: var(--elev); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-card h1 { font-size: 24px; letter-spacing: -.03em; margin: 10px 0 6px; }
.auth-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: #8eb0ff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.auth-badge.partner { color: var(--green); border-color: rgba(0, 214, 143, .28); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #070b14; color: var(--text);
  font: inherit; outline: none;
}
.field-box {
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #070b14;
}
.field-box > i { color: #7f93b5; width: 16px; text-align: center; flex: none; }
.field-box input, .field-box select {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0;
}
.field-box:focus-within { border-color: rgba(77, 143, 255, .7); }
.field input:focus, .field select:focus { border-color: rgba(77, 143, 255, .7); }
.field select, .field-box select { color-scheme: dark; }
.field select option, .field-box select option {
  background: #0c1220; color: #f2f5fb;
}

.cc-picker { position: relative; }
.cc-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #070b14; color: var(--text);
  font: inherit; cursor: pointer; text-align: left;
}
.cc-btn i { margin-left: auto; color: #7f93b5; }
.cc-btn-label { flex: 1; min-width: 0; }
.cc-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 240px; overflow: auto;
  background: #0c1220; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.cc-opt {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; background: transparent; color: #f2f5fb;
  font: inherit; cursor: pointer; text-align: left;
}
.cc-opt:hover { background: rgba(47, 107, 255, .16); }
.cc-flag { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex: none; }
.cc-globe { width: 20px; text-align: center; flex: none; }
.cc-locked { pointer-events: none; }
.cc-locked input { color: var(--text); }
.pw-btn {
  border: 0; background: none; color: #7f93b5; cursor: pointer; padding: 6px;
}
.btn i { margin-right: 8px; }
.err {
  display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 71, 87, .12); color: #ff8b96; font-size: 13px; font-weight: 600;
}
.err.show { display: block; }
.ok {
  display: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 214, 143, .12); color: var(--green); font-size: 13px; font-weight: 600;
}
.ok.show { display: block; }
.auth-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-alt.muted { opacity: .92; }

.partner-hero { padding-top: 40px; }
.partner-hero h1 { max-width: 14ch; }
.partner-photo {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  min-height: 320px;
}
.partner-photo img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.partner-steps, .partner-perks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.partner-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partner-steps article, .partner-perks article {
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.p-icon, .partner-perks > article > i {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(47, 107, 255, .14); color: #8eb0ff; margin-bottom: 14px;
}
.partner-perks article { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.partner-perks article > i { margin: 0; }
.partner-steps h3, .partner-perks h3 { margin-bottom: 6px; }
.partner-steps p, .partner-perks p { color: var(--muted); font-size: 14px; }
.partner-cta {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 8px auto 72px;
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,107,255,.16), rgba(12,18,32,.9));
}
.partner-cta p { color: var(--muted); margin-top: 6px; }

.aff-wrap { position: relative; z-index: 1; width: min(1080px, calc(100% - 32px)); margin: 28px auto 64px; }
.aff-rank {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--elev); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.aff-rank-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: grid; place-items: center; font-size: 28px;
  background: rgba(0, 214, 143, .12); color: var(--green);
}
.aff-rank-icon.bronze { background: rgba(205, 127, 50, .16); color: #d7924c; }
.aff-rank-icon.silver { background: rgba(192, 200, 214, .16); color: #d5dce8; }
.aff-rank-icon.gold { background: rgba(245, 193, 74, .16); color: #f5c14a; }
.aff-rank-icon.platinum { background: rgba(184, 196, 255, .16); color: #b8c4ff; }
.aff-rank-icon.diamond { background: rgba(126, 232, 255, .16); color: #7ee8ff; }
.aff-rank-copy small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.aff-rank-copy h1 { font-size: 32px; letter-spacing: -.04em; }
.aff-rank-copy p { color: var(--muted); margin: 6px 0 14px; max-width: 70ch; }
.aff-progress { height: 6px; border-radius: 99px; background: #121a2c; overflow: hidden; }
.aff-progress div { height: 100%; background: linear-gradient(90deg, var(--blue-2), var(--green)); }
.aff-progress-label { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.aff-h2 { font-size: 22px; letter-spacing: -.03em; margin: 28px 0 4px; }
.aff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.aff-card {
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.aff-card-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 10px; background: rgba(47, 107, 255, .14); color: #8eb0ff;
}
.aff-card-icon.bronze { background: rgba(205, 127, 50, .16); color: #d7924c; }
.aff-card-icon.silver { background: rgba(192, 200, 214, .16); color: #d5dce8; }
.aff-card-icon.gold { background: rgba(245, 193, 74, .16); color: #f5c14a; }
.aff-card-icon.platinum { background: rgba(184, 196, 255, .16); color: #b8c4ff; }
.aff-card-icon.diamond { background: rgba(126, 232, 255, .16); color: #7ee8ff; }
.aff-card b { display: block; font-size: 18px; letter-spacing: -.03em; }
.aff-card .rate { color: var(--green); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 22px; }
.aff-card span { color: var(--muted); font-size: 13px; }
.aff-card.current { border-color: rgba(0, 214, 143, .55); box-shadow: 0 0 0 1px rgba(0, 214, 143, .35); }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.aff-stat { background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.aff-stat small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.aff-stat strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; }
.dash-emoji { font-size: 22px; line-height: 1; margin-right: 6px; }
.dash-card h1 { display: flex; align-items: center; gap: 8px; }
.aff-client-list { display: grid; gap: 10px; margin: 12px 0 24px; }
.aff-client-empty {
  background: var(--elev); border: 1px dashed var(--line); border-radius: 14px;
  padding: 18px; color: var(--muted); font-size: 14px;
}
.aff-client {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.aff-client b { display: block; }
.aff-client span { color: var(--muted); font-size: 13px; }
.aff-client em {
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
}
.aff-client.pending em { color: #f5c16c; background: rgba(245, 193, 108, .12); }
.aff-client.active em { color: var(--green); background: rgba(0, 214, 143, .12); }
.aff-share {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: var(--elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 8px 0 8px;
  min-width: 0;
}
.aff-share small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.aff-share p { color: var(--muted); font-size: 13px; }
.aff-link { display: flex; gap: 8px; flex: 1; min-width: 0; max-width: 560px; }
.aff-link input {
  flex: 1 1 auto; min-width: 0; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #070b14; color: var(--text);
  font: inherit;
}
.aff-link .btn { flex: 0 0 auto; white-space: nowrap; }
.aff-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.dash-card { width: 100%; }
.dash-card h1 { font-size: 20px; }
@media (max-width: 900px) {
  body.auth-split { grid-template-columns: 1fr; }
  .auth-visual { min-height: 220px; }
  .auth-visual-copy { left: 20px; right: 20px; bottom: 20px; }
  .partner-steps, .partner-perks, .aff-grid, .aff-panels { grid-template-columns: 1fr; }
  .aff-stats { grid-template-columns: 1fr 1fr; }
  .aff-client { grid-template-columns: 1fr auto; }
  .aff-client strong { grid-column: 2; grid-row: 1; }
  .aff-share, .partner-cta, .aff-rank { grid-template-columns: 1fr; display: grid; min-width: 0; }
  .aff-link { max-width: none; width: 100%; flex-wrap: wrap; }
  .aff-link input { flex: 1 1 160px; }
  .aff-link .btn { flex: 1 1 100%; }
}
.auth-alt a, .auth-alt .linkish { color: #8eb0ff; font-weight: 700; text-decoration: none; }
.auth-alt .linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.auth-brand em { font-style: normal; color: #6ea0ff; }

@media (max-width: 1200px) {
  .dl-grid { grid-template-columns: 1fr; }
  .store-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .aff-share { flex-wrap: wrap; }
  .aff-link { max-width: none; width: 100%; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px max(24px, calc((100% - 1120px) / 2)) 20px;
    background: rgba(12, 18, 32, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 4px; }
  .nav-drawer-auth { display: flex; align-items: center; }
  .nav-links a.nav-drawer-auth:last-child,
  .nav-links button.nav-drawer-auth:last-child {
    margin-top: 8px;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-2), var(--blue));
  }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .market-grid, .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats, .market-grid, .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn.ghost { display: none; }
  .legal-doc { padding: 24px 18px; }
  .hero, .dl-hero, .dl-grid, .panel, .foot, .partner-cta { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-links { padding-left: 16px; padding-right: 16px; }
  .store-row { grid-template-columns: 1fr; }
  .store-badge img, .store-badge img.play-badge { width: 100%; height: auto; }
  .dl-actions .btn, .dl-actions img { width: 100%; }
}
