/* VOX Casino — tokens from DESIGN.md (design_system.css_variables) + lobby layout */

:root {
  /* ---------- Primitives ---------- */
  --brand-primary: #d67414;
  --brand-primary-hover: #ff9832;
  --brand-background: #171a28;
  --brand-tab-bar: #1b1f2e;
  --brand-bage-primary: #2b2f42;

  --neutral-1000: #0d1520;
  --neutral-900: #212535;
  --neutral-900-85: #212535d8;
  --neutral-800: #33374c;
  --neutral-700: #3d4353;
  --neutral-600: #6a7e8b;
  --neutral-500: #a7b4d5;
  --neutral-400: #95b6c9;

  --white: #fff;
  --black: #000;

  --system-red: #fb4b4b;
  --system-green: #06b85a;
  --system-blue: #00a0ff;
  --system-orange: #d67414;

  /* ---------- Semantic: background ---------- */
  --bg-main: var(--brand-background);
  --bg-tabbar: var(--brand-tab-bar);
  --bg-surface: var(--brand-bage-primary);
  --bg-surface-2: var(--neutral-900);
  --bg-tooltip: var(--neutral-800);
  --bg-hover: var(--neutral-700);
  --bg-input: var(--neutral-1000);
  --bg-light-opacity: #ffffff1a;
  --bg-tag: rgba(255, 255, 255, .15);
  --backdrop: #000000b3;

  /* ---------- Semantic: text ---------- */
  --text-primary: var(--white);
  --text-secondary: var(--neutral-400);
  --text-brand: var(--brand-primary);
  --text-success: var(--system-green);
  --text-error: var(--system-red);
  --text-warning: var(--system-orange);
  --text-link: var(--system-blue);
  --input-placeholder: color-mix(in srgb, var(--text-secondary), #0000 50%);

  /* ---------- Semantic: icon / border ---------- */
  --icon-default: var(--neutral-500);
  --icon-brand: var(--brand-primary);
  --border-default: var(--brand-bage-primary);
  --border-secondary: var(--neutral-700);
  --border-tertiary: var(--neutral-500);
  --border-input: var(--brand-bage-primary);
  --border-input-focused: var(--neutral-600);
  --border-input-error: var(--system-red);
  --border-ghost-hover: var(--white);

  /* ---------- Gradients ---------- */
  --gradient-hero: linear-gradient(180deg, #1b244c, #171a28);
  --gradient-purple: linear-gradient(180deg, #48358d, #302162);
  --gradient-purple-h: linear-gradient(90deg, #48358d, #302162);
  --gradient-bonus-blue: linear-gradient(90deg, #001745, #2a6acb 50%, #001745);
  --gradient-bonus-welcome: linear-gradient(90deg, #2a0132, #ae29ba 50%, #2a0132);
  --gradient-gold: linear-gradient(270deg, #f3e700, #c38300 6%, #aa4f00 22%, #c78b00 43%, #f5eb00 60%, #c28000 86%, #c78b00);
  --gradient-progress: linear-gradient(90deg, #875726, #fbefa5);
  --gradient-popup: linear-gradient(180deg, #101625, #171631 25%, #25122a 65%, #0d1520);
  --gradient-vip: linear-gradient(180deg, #101625, #25122a 50%, #0d1520);
  --gradient-fade-right: linear-gradient(270deg, #171a28 0, rgba(23, 26, 40, .75) 50%, transparent 100%);

  --vip-gold: #d3d77c;
  --vip-platinum: #e8e8e8;
  --vip-diamond: #38d5f8;

  /* ---------- Typography ---------- */
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Rubik", "Roboto", sans-serif;

  --fs-promo: 48px;
  --fs-display: 40px;
  --fs-modal-title: 24px;
  --fs-h2: 22px;
  --fs-lg: 18px;
  --fs-input: 16px;
  --fs-md: 15px;
  --fs-base: 14px;
  --fs-sm: 12px;
  --fs-xs: 10px;

  /* ---------- Radius ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-input: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 99px;
  --radius-round: 50%;
  --radius: 14px;

  /* ---------- Shadow ---------- */
  --shadow-popover: 0 8px 16px rgba(0, 0, 0, .25);

  /* ---------- Layout ---------- */
  --header-h: 74px;
  --content-max: 1104px;
  --game-card: 164px;
  --grid-gap: 24px;
  --tabbar-h: 73px;

  /* ---------- Motion ---------- */
  --t-fast: .2s;
  --t-base: .3s;

  /* ---------- Aliases used by lobby layout ---------- */
  --bg: var(--bg-main);
  --surface: var(--bg-surface);
  --surface-2: var(--bg-surface-2);
  --border: var(--border-default);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --accent: var(--brand-primary);
  --container: var(--content-max);
}

@media (max-width: 768px) {
  :root {
    --header-h: 61px;
    --game-card: 124px;
    --grid-gap: 8px;
    --fs-display: 28px;
    --fs-h2: 18px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-primary);
  font: 400 var(--fs-base)/normal var(--font-primary);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-primary-hover); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-primary); color: var(--text-primary);
  padding: 10px 16px; border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--content-max) + 32px); margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-pill);
  font: 400 var(--fs-lg) var(--font-primary); color: var(--text-primary);
  padding: 13px 30px; height: 44px; white-space: nowrap;
  cursor: pointer; text-decoration: none; transition: background-color var(--t-base), border-color var(--t-base);
}
.btn--md { font-size: var(--fs-md); padding: 9.5px 24px; height: 34px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand-primary); }
.btn--primary:hover:not([disabled]) { background: var(--brand-primary-hover); }
.btn--secondary { background: var(--bg-surface); }
.btn--secondary:hover:not([disabled]) { background: var(--bg-hover); }
.btn--ghost { background: transparent; border: 1px solid var(--border-input-focused); }
.btn--ghost:hover:not([disabled]) { border-color: var(--border-ghost-hover); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); background: var(--bg-main);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { width: 72px; height: 32px; }
.nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.nav a {
  position: relative; display: flex; align-items: center; height: 100%;
  font-size: var(--fs-base); text-transform: uppercase; text-decoration: none;
  color: var(--text-primary); transition: color var(--t-fast);
}
.nav a:hover { color: var(--brand-primary-hover); }
.nav a[aria-current="page"] { color: var(--brand-primary); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px;
  height: 2px; border-radius: 2px; background: var(--brand-primary);
}
.header__actions { margin-left: auto; display: flex; gap: 8px; }
.menu-toggle {
  display: none; width: 34px; height: 34px; border: 0; border-radius: var(--radius-pill);
  background: var(--bg-surface); color: var(--icon-default); cursor: pointer; font-size: 16px;
}
.mobile-menu { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; order: -1; }
  .header__inner { gap: 12px; }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    background: var(--bg-main); border-top: 1px solid var(--border-default);
    padding: 8px 16px 20px; box-shadow: var(--shadow-popover);
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a {
    display: block; padding: 14px 4px; font-size: var(--fs-md); text-decoration: none;
    border-bottom: 1px solid var(--border-default);
  }
  .mobile-menu a[aria-current="page"] { color: var(--brand-primary); }
}
@media (max-width: 768px) {
  .header .btn { height: 34px; padding: 9.5px 16.5px; font-size: var(--fs-md); }
}
@media (max-width: 576px) {
  .header__actions { display: none; }
}

/* Mobile sticky Login + Register (tab-bar surface) */
.mobile-cta {
  display: none;
  position: fixed; inset: auto 0 0; z-index: 48;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-tabbar); border-top: 1px solid var(--border-default);
  gap: 8px;
}
.mobile-cta .btn { flex: 1; height: 44px; font-size: var(--fs-md); }
@media (max-width: 576px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }
}

/* ---------- Hero (full-bleed background) ---------- */
.hero {
  position: relative; isolation: isolate;
  background-color: var(--bg-main);
  background-image:
    linear-gradient(90deg, var(--bg-main) 0%, rgba(23, 26, 40, .82) 38%, rgba(23, 26, 40, .25) 75%, rgba(23, 26, 40, .1) 100%),
    linear-gradient(0deg, var(--bg-main) 0%, rgba(23, 26, 40, 0) 35%),
    url("/media/banner.webp");
  background-size: cover; background-position: center right;
  min-height: 380px; display: flex; align-items: center;
}
.hero__content { padding-top: 48px; padding-bottom: 56px; }
.hero h1 {
  font: 900 var(--fs-display)/1.1 var(--font-secondary);
  margin-bottom: 12px;
}
.hero p { font-size: var(--fs-lg); line-height: 1.45; max-width: 520px; color: var(--text-primary); margin-bottom: 24px; }
.hero__bonus { color: var(--brand-primary-hover); }
@media (max-width: 768px) {
  .hero {
    min-height: 300px; align-items: flex-end;
    background-image:
      linear-gradient(0deg, var(--bg-main) 8%, rgba(23, 26, 40, .7) 55%, rgba(23, 26, 40, .35) 100%),
      url("/media/banner.webp");
    background-position: center;
  }
  .hero__content { padding-top: 96px; padding-bottom: 28px; }
  .hero p { font-size: var(--fs-md); }
}

/* Inner page head (no banner image) */
.page-head { background: var(--gradient-hero); }
.page-head__inner { padding-top: 28px; padding-bottom: 28px; }
.page-head h1 { font: 900 var(--fs-display)/1.15 var(--font-secondary); }
.page-head p { margin-top: 10px; font-size: var(--fs-md); line-height: 1.5; color: var(--text-secondary); max-width: 680px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: var(--fs-sm); color: var(--text-secondary); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--neutral-600); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }

/* ---------- Continuous lobby column ---------- */
.lobby-body { padding-top: 8px; padding-bottom: 48px; }
.lobby-body > * + * { margin-top: 36px; }
.flow > * + * { margin-top: 14px; }
.flow h2 + *, .flow h3 + * { margin-top: 10px; }
.flow * + h2 { margin-top: 32px; }
.flow * + h3 { margin-top: 22px; }

.section-title, .flow h2, .lobby-body h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.25; }
.flow h3 { font-size: var(--fs-lg); font-weight: 500; }
.prose p, .prose li { font-size: var(--fs-md); line-height: 1.65; color: #dfe7ee; }
.prose { max-width: 820px; }
.prose a, .text-link { color: var(--brand-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover, .text-link:hover { color: var(--text-primary); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.lead-title { font-size: var(--fs-h2); }
.muted { color: var(--text-secondary); }
.small { font-size: var(--fs-sm); }

/* ---------- Tabs ---------- */
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.tabs {
  display: flex; gap: 4px; padding: 2px; margin-bottom: 16px;
  background: var(--bg-surface); border-radius: var(--radius-pill);
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 32px; padding: 6px 18px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-secondary);
  font: 400 var(--fs-base) var(--font-primary); cursor: pointer;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.tab i { font-size: 14px; }
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { background: var(--brand-primary); color: var(--text-primary); }
.tab-panel[hidden] { display: none; }

/* Mobile: wrap the category tabs instead of clipping them at the edge */
@media (max-width: 576px) {
  .tabs { flex-wrap: wrap; width: 100%; overflow-x: visible; row-gap: 4px; }
  .tab { flex: 0 0 auto; padding: 6px 14px; }
}

/* ---------- Game grid ---------- */
.game-grid {
  display: grid; gap: var(--grid-gap) 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; } }
@media (max-width: 576px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; } }

.game-card { display: block; text-decoration: none; min-width: 0; }
.game-card__cover {
  position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-surface-2); transition: transform var(--t-fast);
}
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card__overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity var(--t-fast);
}
.game-card__play {
  width: 48px; height: 48px; border-radius: var(--radius-round); display: grid; place-items: center;
  background: var(--brand-primary); font-size: 18px; padding-left: 3px;
}
.game-card:hover .game-card__cover, .game-card:focus-visible .game-card__cover { transform: translateY(-4px); }
.game-card:hover .game-card__overlay, .game-card:focus-visible .game-card__overlay { opacity: 1; }
.game-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 8px; font-size: var(--fs-base); color: var(--text-primary);
  line-height: 1.3; min-height: 2.6em;
}
.game-card__provider { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.see-all { font-size: var(--fs-base); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.see-all:hover { color: var(--text-primary); }
.see-all i { font-size: 11px; margin-left: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; vertical-align: middle; }
.data-table thead th { font-weight: 400; font-size: var(--fs-sm); color: var(--text-secondary); background: var(--bg-surface-2); white-space: nowrap; }
.data-table tbody tr { background: var(--bg-surface-2); }
.data-table tbody tr:nth-child(even) { background: #1d2131; }
.data-table tbody td { border-top: 1px solid var(--border-default); line-height: 1.45; }
.data-table tbody th { font-weight: 400; color: var(--text-secondary); width: 38%; border-top: 1px solid var(--border-default); }
.data-table td.desc { color: #dfe7ee; min-width: 280px; }
.facts-table { max-width: 820px; }
.facts-table tbody th { white-space: nowrap; }
.cell-logo { width: 140px; }
.cell-logo img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.cell-logo--pay img { height: 26px; }

.nameplate {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--bg-tag); font-size: var(--fs-sm); color: var(--text-primary); white-space: nowrap;
}

/* ---------- Logo strips ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.logo-strip li {
  display: flex; align-items: center; justify-content: center;
  height: 56px; min-width: 120px; padding: 0 16px;
  border-radius: var(--radius-md); background: var(--bg-surface-2);
}
.logo-strip img { height: 28px; width: auto; max-width: 128px; object-fit: contain; opacity: .9; transition: opacity var(--t-fast); }
.logo-strip li:hover img { opacity: 1; }
.logo-strip--pay li { min-width: 96px; height: 52px; }
.logo-strip--pay img { height: 26px; max-width: 96px; }

/* ---------- How-to list ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: 820px; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; font-size: var(--fs-md); line-height: 1.6; color: #dfe7ee; }
.steps li + li { margin-top: 12px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: var(--radius-round);
  display: grid; place-items: center; background: var(--bg-surface); color: var(--text-primary);
  font-size: var(--fs-base); line-height: 1;
}
.steps strong { color: var(--text-primary); font-weight: 500; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-md); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-radius: var(--radius-md); background: var(--bg-surface-2); }
.faq details + details { margin-top: 8px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; font-size: var(--fs-md); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--icon-default); transition: transform var(--t-fast); flex-shrink: 0; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; font-size: var(--fs-md); line-height: 1.6; color: #dfe7ee; }

/* ---------- App block ---------- */
.app-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: center; }
.app-teaser__img { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface-2); }
.app-teaser__img img { width: 100%; height: auto; }
@media (max-width: 768px) { .app-teaser { grid-template-columns: 1fr; gap: 20px; } .app-teaser__img { order: -1; } }

.app-visual { border-radius: var(--radius-lg); overflow: hidden; }
.app-visual img { width: 100%; height: auto; }
.app-cols { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.pwa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pwa-cols h3 { margin-bottom: 12px; }
@media (max-width: 768px) { .pwa-cols { grid-template-columns: 1fr; gap: 20px; } }
.app-cols__phone img { width: 180px; height: auto; }
@media (max-width: 640px) { .app-cols { grid-template-columns: minmax(0, 1fr); } .app-cols__phone { display: none; } }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px 0 14px; min-width: 164px;
  border-radius: var(--radius-md); background: var(--black); color: var(--white);
  border: 1px solid var(--neutral-600); text-decoration: none;
  transition: border-color var(--t-base);
}
.store-badge:hover { border-color: var(--border-ghost-hover); }
.store-badge i { font-size: 24px; width: 24px; text-align: center; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: var(--fs-xs); letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.store-badge strong { font-size: 17px; font-weight: 500; }

.spec-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; max-width: 820px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-surface-2); font-size: var(--fs-base); line-height: 1.5; color: #dfe7ee; }
.spec-list i { color: var(--icon-brand); margin-top: 3px; width: 16px; text-align: center; }
.spec-list strong { display: block; color: var(--text-primary); font-weight: 500; }

/* ---------- Bonus cards (/bonuses/ only) ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
@media (max-width: 400px) { .bonus-grid { grid-template-columns: 1fr; } }
.bonus-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius-lg); background: var(--bg-surface-2); overflow: hidden;
}
.bonus-card--welcome { background: var(--gradient-bonus-welcome); }
.bonus-card--blue { background: var(--gradient-bonus-blue); }
.bonus-card--purple { background: var(--gradient-purple); }
.bonus-card .tag { align-self: flex-start; }
.bonus-card h3 { font-size: var(--fs-lg); font-weight: 400; }
.bonus-card__amount { font: 900 30px/1.1 var(--font-secondary); }
.bonus-card__terms { list-style: none; padding: 0; display: grid; gap: 6px; font-size: var(--fs-base); line-height: 1.45; }
.bonus-card__terms li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bonus-card__terms span { color: rgba(255, 255, 255, .75); white-space: nowrap; }
.bonus-card__terms b { font-weight: 500; text-align: right; }
.bonus-card__note { font-size: var(--fs-sm); line-height: 1.5; color: rgba(255, 255, 255, .78); }
.bonus-card .btn { margin-top: auto; }

.tag { display: inline-block; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--bg-tag); font-size: var(--fs-base); }

/* ---------- Auth forms (modal component as page block) ---------- */
.auth-box {
  display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 444px);
  border-radius: var(--radius-lg); overflow: hidden; max-width: 914px;
  border: 1px solid var(--border-default);
}
.auth-box__promo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 40px 32px; min-height: 100%;
  background: linear-gradient(0deg, #302162 0%, rgba(48, 33, 98, .55) 45%, rgba(72, 53, 141, 0) 100%), url("/media/banner.webp") center / cover;
}
.auth-box__promo .tag { margin-bottom: 12px; }
.auth-box__amount { font: 700 var(--fs-promo)/1.05 var(--font-secondary); }
.auth-box__sub { margin-top: 8px; font-size: var(--fs-lg); }
.auth-box__fine { margin-top: 14px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); }
.auth-form { background: var(--bg-main); padding: 40px 40px 26px; display: flex; flex-direction: column; gap: 16px; }
.auth-form__title { font-size: var(--fs-modal-title); font-weight: 700; text-align: center; }
@media (max-width: 860px) {
  .auth-box { grid-template-columns: 1fr; }
  .auth-box__promo { min-height: 200px; padding: 28px 16px; }
  .auth-box__amount { font-size: 36px; }
  .auth-form { padding: 24px 16px; }
}

.btn-social {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px 0 6px;
  border: 1px solid var(--border-secondary); border-radius: var(--radius-md);
  background: transparent; color: var(--text-primary); font: 400 var(--fs-base) var(--font-primary); text-decoration: none;
}
.btn-social i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-round); background: var(--white); color: #4285f4; }
.divider-text { display: flex; align-items: center; gap: 16px; color: var(--text-secondary); font-size: var(--fs-base); }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--border-secondary); }

.segmented { display: flex; padding: 2px; border-radius: var(--radius-pill); background: var(--bg-surface); }
.segmented__item {
  flex: 1; text-align: center; padding: 6px 20px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-secondary); font: 400 var(--fs-base) var(--font-primary); cursor: pointer;
}
.segmented__item.is-active { background: var(--brand-primary); color: var(--text-primary); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); color: var(--text-secondary); }
.input {
  width: 100%; height: 46px; padding: 13px 12px 12px;
  background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-input); border-radius: var(--radius-input);
  font: 400 var(--fs-input) var(--font-primary); outline: none; transition: border-color var(--t-base);
}
textarea.input { height: 140px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2395b6c9' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder { color: var(--input-placeholder); }
.input:focus { border-color: var(--border-input-focused); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-base); line-height: 1.45; color: var(--text-secondary); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-primary); flex-shrink: 0; }
.form-row-end { display: flex; justify-content: flex-end; }
.link-muted { color: var(--text-secondary); font-size: var(--fs-base); text-decoration: none; }
.link-muted:hover { color: var(--text-primary); }
.link-muted strong { color: var(--text-primary); font-size: 16px; font-weight: 500; }
.auth-form__bottom { text-align: center; }

.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-surface-2); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; max-width: 820px; }

.soft-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.soft-cta p { font-size: var(--fs-md); color: var(--text-secondary); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-tabbar); border-top: 1px solid var(--border-default); margin-top: 24px; }
.footer__inner { padding-top: 36px; padding-bottom: 28px; }
.footer__top { display: grid; grid-template-columns: 200px repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer__brand img { width: 72px; height: 32px; }
.footer__brand p { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-secondary); }
.footer h2 { font-size: var(--fs-base); text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: var(--fs-base); text-decoration: none; }
.footer ul a:hover { color: var(--brand-primary-hover); }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; list-style: none; padding: 24px 0 0; margin-top: 28px; border-top: 1px solid var(--border-default); }
.trust img { height: 34px; width: auto; opacity: .85; transition: opacity var(--t-fast); }
.trust a:hover img { opacity: 1; }
.footer__legal { margin-top: 20px; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-secondary); }
.footer__legal p + p { margin-top: 6px; }
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Top CTA banner (inner pages) ---------- */
.cta-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 28px; padding: 26px 30px; border-radius: var(--radius-lg);
  background: var(--gradient-purple);
}
.cta-banner--hero { background: var(--gradient-hero); }
.cta-banner--welcome { background: var(--gradient-bonus-welcome); }
.cta-banner__text { min-width: 0; max-width: 660px; }
.cta-banner h2 { font-size: var(--fs-lg); line-height: 1.3; margin-bottom: 6px; }
.cta-banner p { font-size: var(--fs-base); line-height: 1.55; color: rgba(255, 255, 255, .82); }
.cta-banner .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .cta-banner { padding: 20px; }
  .cta-banner .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 16px 88px; }
.notfound__code { font: 900 96px/1 var(--font-secondary); color: var(--brand-primary); }
.notfound h1 { font: 700 var(--fs-modal-title) var(--font-primary); margin-top: 12px; }
.notfound p { margin: 12px auto 24px; max-width: 460px; font-size: var(--fs-md); line-height: 1.6; color: var(--text-secondary); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
