.page {
  min-height: 100%;
  animation: pageFade 0.22s var(--ease);
}
@keyframes pageFade {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--px) 14px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 252, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top-bar-logo { height: 34px; width: auto; }

.user-greeting { display: flex; flex-direction: column; gap: 1px; }
.greeting-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.greeting-name { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.15; }

.top-bar-right { display: flex; align-items: center; gap: 10px; }

.notif-btn {
  width: 40px; height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.notif-btn:hover { color: var(--text); border-color: var(--border-2); }

.top-bar-connect {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--r-md);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s var(--ease);
}
.top-bar-connect:hover { background: var(--primary); color: #051612; }

.balance-block {
  margin: 4px var(--px) 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--card-shadow);
}
.balance-solo {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px;
  margin-bottom: 12px;
}
.balance-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 14px;
}
.metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.metric-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric-amount.gold { color: var(--gold); }
.metric-currency {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 4px;
}
.balance-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-deposit {
  background: var(--primary);
  color: #051612;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease);
}
.btn-deposit:hover { background: #00DDD0; box-shadow: var(--primary-glow); }
.btn-deposit:active { transform: scale(0.97); }
.btn-withdraw {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease);
}
.btn-withdraw:hover { background: var(--bg-surface); }
.btn-withdraw:active { transform: scale(0.97); }

.play-cta {
  margin: 16px var(--px) 0;
}
.btn-play-cta {
  width: 100%;
  background: var(--primary);
  color: #051612;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 19px 24px;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s var(--ease);
  box-shadow: 0 6px 28px rgba(0,200,184,0.28);
}
.btn-play-cta:hover {
  background: #00DDD0;
  box-shadow: 0 8px 36px rgba(0,200,184,0.45);
  transform: translateY(-1px);
}
.btn-play-cta:active { transform: scale(0.99); }

.home-section {
  padding: 24px var(--px) 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--card-shadow);
}
.game-card + .game-card { margin-top: 12px; }
.game-card:hover { border-color: var(--primary-border); }

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.game-number-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.game-pot-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.game-pot-big span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-left: 4px;
  letter-spacing: 0;
}
.game-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.game-card-row strong {
  color: var(--text);
  font-weight: 700;
}
.game-card-footer { margin-top: 14px; }

.hero-section {
  padding: 20px var(--px) 0;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-chip-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
.hero-h1 {
  font-size: clamp(38px, 10vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-h1 span { color: var(--primary); }
.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-stats {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px;
  gap: 5px;
}
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-val.gold { color: var(--gold); }
.hero-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
  line-height: 1.3;
}

.how-list { display: flex; flex-direction: column; gap: 10px; }
.how-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.how-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}
.how-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  padding-top: 2px;
  font-weight: 500;
}
.how-text strong { color: var(--text); font-weight: 700; }

.empty-box {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
}
.empty-box svg { margin: 0 auto 12px; opacity: 0.2; }

.page-auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 28px;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,200,184,0.09) 0%, transparent 68%);
  pointer-events: none;
}
.auth-logo-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.auth-logo { height: 60px; width: auto; }
.auth-tagline { font-size: 14px; color: var(--text-3); font-weight: 500; }

.auth-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-bottom: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 28px var(--px) 44px;
  padding-bottom: max(44px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.auth-tabs {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  text-align: center;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-submit { margin-top: 6px; }
.auth-guest {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-auth-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.modal-auth-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 26px;
  line-height: 1.55;
  font-weight: 500;
}
.modal-auth-btns { display: flex; flex-direction: column; gap: 10px; }
.modal-auth-skip {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 14px;
  font-weight: 500;
}
.modal-auth-skip a { color: var(--text-2); }

.recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.recent-row:last-child { border-bottom: none; }
.recent-info { display: flex; flex-direction: column; gap: 3px; }
.recent-id { font-size: 14px; font-weight: 700; color: var(--text); }
.recent-meta { font-size: 12px; color: var(--text-3); font-weight: 500; }
.recent-amount {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.recent-amount.win { color: var(--gold); }
.recent-amount.loss { color: var(--text-3); }

.guide-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.guide-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.guide-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--bg-card);
  text-align: center;
  line-height: 1.25;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.guide-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.guide-tab.active {
  color: var(--primary);
}
.guide-tab.active .guide-tab-icon {
  background: var(--primary-dim);
  color: var(--primary);
}

.guide-panels {
  padding: 20px 18px 22px;
}

.guide-panel {
  display: none;
  animation: panelIn 0.18s var(--ease);
}
.guide-panel.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.guide-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1.5px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.guide-step-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  padding-top: 4px;
  font-weight: 500;
}
.guide-step-text strong {
  color: var(--text);
  font-weight: 700;
}

.guide-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  padding: 16px;
}
.guide-block-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-dim);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.guide-block-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 500;
}
.guide-block-text strong {
  color: var(--text);
  font-weight: 700;
}

.guide-section-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.guide-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0 12px;
}

.page-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--px) 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247,247,252,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.back-btn {
  width: 36px; height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.back-btn:hover { background: var(--bg-elevated); }
.page-inner-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.modal-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.country-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 0 8px;
}
.country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: var(--text);
  transition: background 0.15s;
  cursor: pointer;
}
.country-item:hover { background: var(--bg-surface); }
.country-item:active { background: var(--bg-elevated); }
.country-flag-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-2);
}
.country-flag-code {
  width: 36px; height: 36px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.country-flag-sm {
  width: 28px; height: 28px;
  font-size: 9px;
}
.country-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.country-item svg { color: var(--text-3); flex-shrink: 0; }

.deposit-country-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.deposit-country-chip .country-flag-img {
  width: 28px;
  height: 28px;
}

.deposit-section-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.operator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.operator-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.operator-card:hover { border-color: var(--primary-border); }
.operator-card.selected {
  border-color: var(--primary);
  background: var(--primary-dim);
}
.operator-logo {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.operator-info { flex: 1; }
.operator-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.operator-fee { font-size: 12px; font-weight: 500; color: var(--text-2); }

.operator-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  position: relative;
}
.operator-radio.checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.amount-input-wrap {
  position: relative;
}
.amount-input {
  padding-right: 60px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.amount-currency {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  pointer-events: none;
}

.fee-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.fee-row .fee-lbl { flex: 1; }
.fee-row .fee-val { font-weight: 700; color: var(--text); }
.fee-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.fee-divider { height: 1px; background: var(--border); }

.nalacoin-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 10px;
}

.withdraw-balance-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.withdraw-balance-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.withdraw-balance-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.withdraw-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(214, 50, 80, 0.06);
  border: 1px solid rgba(214, 50, 80, 0.15);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 14px;
  color: var(--error);
}
.withdraw-disclaimer p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--error);
}

.notif-btn {
  position: relative;
}
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg);
  pointer-events: none;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { }

.notif-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
}
.notif-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}
.notif-unread-pip {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.settings-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 24px;
  gap: 8px;
}
.settings-avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 2px solid var(--primary-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.settings-username {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.settings-phone {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.settings-section {
  margin-bottom: 20px;
}
.settings-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.settings-item:last-child { border-bottom: none; }
.settings-item svg { color: var(--text-2); flex-shrink: 0; }
.settings-val {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.settings-item-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.settings-item-btn:hover { background: var(--bg-surface); }

.auth-page { padding-bottom: 40px; }
.auth-logo { display:flex; justify-content:center; padding: 40px 0 28px; }
.auth-logo-img { height: 40px; object-fit:contain; }

.auth-tabs {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin: 0 var(--px) 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}
.auth-tab.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--card-shadow);
}

.auth-form { padding: 0 var(--px); display:flex; flex-direction:column; gap:0; }
.auth-section-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.country-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.country-select-btn:hover { border-color: var(--primary-border); }
.country-flag-sm { width: 24px; height: 17px; border-radius: 3px; object-fit:cover; flex-shrink:0; }
.country-dial { color: var(--text-3); font-size: 13px; font-weight: 500; margin-left:auto; margin-right:4px; }

.operator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.op-chip {
  padding: 9px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.op-chip.active, .op-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.phone-input-wrap:focus-within { border-color: var(--primary-border); }
.phone-dial-prefix {
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  border-right: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  flex-shrink: 0;
  white-space: nowrap;
}
.phone-input-field {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font);
  outline: none;
}

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.pw-wrap:focus-within { border-color: var(--primary-border); }
.pw-wrap .form-input {
  flex: 1;
  padding: 14px 48px 14px 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  height: 52px;
  box-sizing: border-box;
}
.pw-wrap .form-input::placeholder { color: var(--text-3); font-weight: 500; }
.pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-3);
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s;
}
.pw-eye:hover { background: var(--bg-surface); }

.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(212,137,10,0.08);
  border: 1px solid rgba(212,137,10,0.2);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.4;
  margin-top: 16px;
}
.auth-notice svg { flex-shrink: 0; margin-top: 1px; }


.country-picker-inline { position: relative; }
.country-drop {
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.country-drop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.country-drop-row:last-child { border-bottom: none; }
.country-drop-row:hover { background: var(--bg-surface); }
.country-drop-row:active { background: var(--bg-elevated); }
.country-drop-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.country-drop-dial { font-size: 13px; font-weight: 600; color: var(--text-3); }

.soon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 32px;
}
.soon-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.soon-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.soon-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 280px;
}

.auth-legal {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 16px;
  text-align: center;
}
.auth-legal a {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.legal-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}
.legal-p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.legal-p:last-child { margin-bottom: 0; }
