/* ─────────────────────────────────────────────────────────
   Registration form — design tokens
   ───────────────────────────────────────────────────────── */
:root {
  --bg:                 #000000;
  --card:               #0e0f14;
  --card-elevated:      #1a1c25;

  --content-primary:    #ffffff;
  --content-secondary:  rgba(255, 255, 255, 0.72);
  --content-tertiary:   rgba(255, 255, 255, 0.5);
  --content-disabled:   rgba(255, 255, 255, 0.3);

  --input-bg:           #14161d;
  --input-bg-hover:     #1a1c25;
  --input-border:       rgba(255, 255, 255, 0.10);
  --input-border-hover: rgba(255, 255, 255, 0.20);
  --input-border-focus: #8b5cf6;

  --primary:            #8b5cf6;
  --primary-hover:      #7c3aed;
  --primary-active:     #6d28d9;
  --primary-text:       #ffffff;

  --accent:             #fbbf24;
  --error:              #ef5350;
  --modal-border:       rgba(255, 255, 255, 0.06);
  --night-12:           rgba(255, 255, 255, 0.06);

  --bricolage:          'Bricolage Grotesque', system-ui, sans-serif;
  --base-font:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-input:       999px;
  --radius-dropdown:    20px;
  --radius-item:        12px;
  --radius-shell:       24px;
  --input-height:       48px;
}

/* ─────────────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--content-primary);
  font-family: var(--base-font);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

html { min-height: 100%; }
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 4vw, 32px);
  padding-top: max(env(safe-area-inset-top, 0px), clamp(12px, 4vw, 32px));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), clamp(12px, 4vw, 32px));
}

button { font-family: inherit; cursor: pointer; }
input  { font-family: inherit; }
a      { color: inherit; }

/* ─────────────────────────────────────────────────────────
   Shell — two-column layout
   ───────────────────────────────────────────────────────── */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 480px);
  gap: 24px;
  width: 100%;
  max-width: 920px;
  align-items: stretch;
}

.auth-promo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-promo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.auth-panel {
  background: transparent;
  border: none;
  padding: clamp(16px, 4vw, 28px);
  padding-top: clamp(14px, 3vw, 20px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Tablet & smaller — single column; promo banner sits on top */
@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 0;
  }
  .auth-promo  { width: 100%; }
  .auth-promo-img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block;
  }
  .auth-panel  { padding-top: 12px; }
  .auth-topbar { display: none; }
  .form-header { text-align: center; }
}

/* Landscape phone — hide tall promo to keep form usable */
@media (max-height: 560px) and (orientation: landscape) and (max-width: 900px) {
  .auth-promo { display: none; }
  .auth-shell { max-width: 480px; gap: 0; }
}

/* ─────────────────────────────────────────────────────────
   Top bar (step counter + close)
   ───────────────────────────────────────────────────────── */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.auth-topbar-step {
  font-size: 14px;
  font-weight: 600;
  color: var(--content-primary);
}
.icon-button {
  width: 40px;
  height: 40px;
  margin-right: -8px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--content-tertiary);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.icon-button:hover { color: var(--content-primary); background: var(--night-12); }

/* ─────────────────────────────────────────────────────────
   Step container
   ───────────────────────────────────────────────────────── */
.step                    { display: none; }
.step--active            { display: block; }

.form {
  display: grid;
  gap: 14px;
}

.form-header {
  margin: 4px 0 4px;
  padding: 0;
  font-family: var(--base-font);
  font-weight: 600;
  font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1.2;
  color: var(--content-primary);
}
.form-header--center      { text-align: center; }

.form-description {
  margin: -6px 0 0;
  padding: 0 2px 4px;
  font-size: 14px;
  color: var(--content-tertiary);
  line-height: 1.5;
}
.form-description--center { text-align: center; }

/* Rows */
.row                      { display: grid; gap: 12px; }
.row-country-currency     { grid-template-columns: 1fr 1fr; }
.row-half                 { grid-template-columns: 1fr 1fr; }

@media (max-width: 420px) {
  .row-country-currency,
  .row-half               { grid-template-columns: 1fr; }
}

.field                    { position: relative; }

/* ─────────────────────────────────────────────────────────
   Text inputs
   ───────────────────────────────────────────────────────── */
.text-input {
  width: 100%;
  height: var(--input-height);
  padding: 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--content-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.text-input::placeholder  { color: var(--content-tertiary); }
.text-input:hover         { border-color: var(--input-border-hover); background: var(--input-bg-hover); }
.text-input:focus         { border-color: var(--input-border-focus); }
.text-input.has-error     { border-color: var(--error); }

/* Date */
.text-input--date {
  color-scheme: dark;
  color: transparent;
}
.text-input--date:focus,
.text-input--date.has-value { color: var(--content-primary); }
.text-input--date::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.45);
  cursor: pointer;
}
.date-placeholder {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--content-tertiary);
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.15s;
}
.field--date:has(.text-input--date:focus) .date-placeholder,
.field--date:has(.text-input--date.has-value) .date-placeholder { opacity: 0; }

/* Password */
.password-wrap            { position: relative; }
.text-input--password     { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--content-tertiary);
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: color 0.15s;
}
.pw-toggle:hover          { color: var(--content-primary); }

/* ─────────────────────────────────────────────────────────
   Select buttons (country / currency) — floating label
   ───────────────────────────────────────────────────────── */
.select-button {
  width: 100%;
  height: var(--input-height);
  padding: 0 14px 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--content-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: border-color 0.18s, background 0.18s;
}
.select-button:hover                    { border-color: var(--input-border-hover); background: var(--input-bg-hover); }
.select-button[aria-expanded="true"]    { border-color: var(--input-border-focus); }
.select-button.has-error                { border-color: var(--error); }

.select-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  gap: 2px;
}
.select-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--content-tertiary);
  line-height: 1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.15s, max-height 0.15s;
}
.select-button.has-value .select-label {
  opacity: 1;
  max-height: 14px;
}
.select-value {
  font-size: 14px;
  color: var(--content-tertiary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-button.has-value .select-value { color: var(--content-primary); }

.select-chevron {
  flex-shrink: 0;
  color: var(--content-tertiary);
  transition: transform 0.2s;
}
.select-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }

/* ─────────────────────────────────────────────────────────
   Phone field — two separate pills (code button + number input)
   ───────────────────────────────────────────────────────── */
.phone-input {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.phone-code-button {
  height: var(--input-height);
  padding: 0 14px 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--content-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s;
}
.phone-code-button:hover                  { border-color: var(--input-border-hover); background: var(--input-bg-hover); }
.phone-code-button[aria-expanded="true"]  { border-color: var(--input-border-focus); }
.phone-code-button .flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}
.phone-code-button .select-chevron { color: var(--content-tertiary); }
.phone-code-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }

.phone-number {
  flex: 1;
  min-width: 0;
  height: var(--input-height);
  padding: 0 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--content-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.phone-number::placeholder { color: var(--content-tertiary); }
.phone-number:hover        { border-color: var(--input-border-hover); background: var(--input-bg-hover); }
.phone-number:focus        { border-color: var(--input-border-focus); }

/* ─────────────────────────────────────────────────────────
   Dropdown panel
   ───────────────────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--card-elevated);
  border: 1px solid var(--modal-border);
  border-radius: var(--radius-dropdown);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  max-height: 300px;
  overflow: hidden;
}
.dropdown[hidden]         { display: none; }
.dropdown--phone          { min-width: 280px; }

.dropdown-search {
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--modal-border);
}
.dropdown-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--content-primary);
  font-size: 13px;
  outline: none;
}
.dropdown-search-input::placeholder { color: var(--content-tertiary); }
.dropdown-search-input:focus        { border-color: var(--input-border-focus); }

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.dropdown-list::-webkit-scrollbar        { width: 6px; }
.dropdown-list::-webkit-scrollbar-track  { background: transparent; }
.dropdown-list::-webkit-scrollbar-thumb  { background: rgba(255, 255, 255, 0.18); border-radius: 3px; }

.country-item {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-item);
  color: var(--content-primary);
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
}
.country-item:hover,
.country-item.is-selected { background: var(--night-12); }

.country-item .flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.country-item .name       { flex: 1; }
.country-item .phone-code { color: var(--content-tertiary); font-size: 13px; }

.no-results {
  text-align: center;
  color: var(--content-tertiary);
  padding: 16px;
  font-size: 13px;
}

/* Mobile dropdown overlay */
.dropdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  z-index: 999;
}
.dropdown-overlay[hidden] { display: none; }

@media (max-width: 600px) {
  .dropdown {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    border-radius: 16px 16px 0 0;
    max-height: min(75vh, 75dvh);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1000;
  }
  .dropdown--phone { min-width: 0; }
  .country-item { min-height: 48px; }
}
@media (min-width: 601px) {
  .dropdown-overlay { display: none !important; }
}

/* ─────────────────────────────────────────────────────────
   Welcome Bonus selector row
   ───────────────────────────────────────────────────────── */
.welcome-pack {
  display: flex;
  align-items: center;
  gap: 10px;
}
.welcome-pack-info {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--content-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.welcome-pack-info:hover { color: var(--content-primary); background: var(--night-12); }

.welcome-pack-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--input-height);
  padding: 8px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  min-width: 0;
}
.welcome-pack-card:hover { border-color: var(--input-border-hover); background: var(--input-bg-hover); }

.welcome-pack-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.18);
  color: var(--primary);
  flex-shrink: 0;
}
.welcome-pack-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.welcome-pack-label {
  font-size: 11px;
  color: var(--content-tertiary);
  line-height: 1;
}
.welcome-pack-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--content-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .welcome-pack-icon { width: 32px; height: 32px; }
  .welcome-pack-value {
    white-space: normal;
    font-size: 12.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
.welcome-pack-chevron {
  color: var(--content-tertiary);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   Checkboxes
   ───────────────────────────────────────────────────────── */
.checkboxes { display: grid; gap: 10px; margin-top: 2px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--content-secondary);
  line-height: 1.45;
  user-select: none;
}
.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  flex-shrink: 0;
  position: relative;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
}
.checkbox input:checked + .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--primary-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.checkbox-text .link {
  color: var(--content-primary);
  text-decoration: underline;
}
.checkbox.has-error .checkbox-box { border-color: var(--error); }

/* ─────────────────────────────────────────────────────────
   Primary button
   ───────────────────────────────────────────────────────── */
.primary-button {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  background: var(--primary);
  color: var(--primary-text);
  font-family: var(--base-font);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-input);
  transition: background 0.18s, opacity 0.18s, transform 0.05s;
}
.primary-button:hover:not(:disabled)  { background: var(--primary-hover); }
.primary-button:active:not(:disabled) { background: var(--primary-active); transform: translateY(1px); }
.primary-button:disabled              { opacity: 0.5; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────────
   Language switcher (fixed top-right)
   ───────────────────────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: max(env(safe-area-inset-top, 0px), 16px);
  right: max(env(safe-area-inset-right, 0px), 16px);
  z-index: 500;
}
.lang-switcher-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 999px;
  color: var(--content-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: border-color 0.18s, background 0.18s;
}
.lang-switcher-button:hover                 { border-color: var(--input-border-hover); background: var(--input-bg-hover); }
.lang-switcher-button[aria-expanded="true"] { border-color: var(--input-border-focus); }
.lang-switcher-button .lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-switcher-button .select-chevron { color: var(--content-tertiary); transition: transform 0.2s; }
.lang-switcher-button[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--card-elevated);
  border: 1px solid var(--modal-border);
  border-radius: var(--radius-dropdown);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: 6px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-dropdown[hidden] { display: none; }

.lang-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-item);
  color: var(--content-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
}
.lang-option:hover,
.lang-option.is-selected { background: var(--night-12); }
.lang-option .lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-option .lang-name { flex: 1; }

@media (max-width: 480px) {
  .lang-switcher-button { height: 36px; padding: 0 10px 0 8px; font-size: 12px; }
  .lang-switcher-button .lang-flag { width: 20px; height: 14px; }
}

/* Field error message */
.field-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  padding: 0 6px;
}

/* Global form-level error */
.reg-global-error {
  background: rgba(239, 83, 80, 0.10);
  border: 1px solid rgba(239, 83, 80, 0.32);
  color: var(--error);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
}
.reg-global-error[hidden] { display: none; }

/* ─────────────────────────────────────────────────────────
   Welcome-pack modal
   ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--card-elevated);
  border: 1px solid var(--modal-border);
  border-radius: 20px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--content-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--content-primary); background: var(--night-12); }

.modal-title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--content-primary);
  font-family: var(--bricolage);
}
.modal-desc {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--content-secondary);
  text-align: center;
}

.bonus-list {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bonus-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-align: left;
  font: inherit;
  color: inherit;
}
.bonus-item:hover                  { background: var(--input-bg-hover); }
.bonus-item.is-selected            { border-color: var(--primary); }
.bonus-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--content-primary);
}
.bonus-item.is-selected .bonus-item-icon { background: rgba(139, 92, 246, 0.18); color: var(--primary); }
.bonus-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bonus-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--content-primary);
  line-height: 1.3;
}
.bonus-item-desc {
  font-size: 12px;
  color: var(--content-tertiary);
  line-height: 1.3;
}
.bonus-radio {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bonus-item.is-selected .bonus-radio { background: var(--primary); }
.bonus-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.bonus-item.is-selected .bonus-radio::after { opacity: 1; }

.bonus-promo-input {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  padding: 0 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  color: var(--content-primary);
  font-size: 14px;
  outline: none;
}
.bonus-promo-input::placeholder { color: var(--content-tertiary); }
.bonus-promo-input:focus        { border-color: var(--primary); }

@media (max-width: 480px) {
  .modal-card  { padding: 22px 18px 18px; gap: 12px; }
  .modal-title { font-size: 20px; }
  .bonus-item  { padding: 12px 14px; }
}

/* Loader overlay shown during registration */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-overlay[hidden] { display: none; }
.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.footer-text {
  font-size: 14px;
  color: var(--content-tertiary);
}
.footer-link,
a.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--content-primary);
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────
   Success
   ───────────────────────────────────────────────────────── */
.success {
  text-align: center;
  padding: 20px 0 8px;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
