/* ============================================================
   SKILLARENA — Design System
   Dark Futuristic Gaming UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --brand-cyan:        #00E5FF;
  --brand-cyan-dim:    rgba(0, 229, 255, 0.15);
  --brand-cyan-glow:   rgba(0, 229, 255, 0.3);
  --brand-gold:        #FFD700;
  --brand-gold-dim:    rgba(255, 215, 0, 0.15);
  --brand-gold-glow:   rgba(255, 215, 0, 0.3);
  --brand-green:       #00FF87;
  --brand-green-dim:   rgba(0, 255, 135, 0.12);
  --brand-red:         #FF3D5A;
  --brand-red-dim:     rgba(255, 61, 90, 0.15);
  --brand-purple:      #A855F7;
  --brand-purple-dim:  rgba(168, 85, 247, 0.15);

  --bg-base:           #05080F;
  --bg-dark:           #080C14;
  --bg-card:           #0F1623;
  --bg-card-hover:     #141C2E;
  --bg-surface:        #1A2235;
  --bg-surface-2:      #1F2A42;
  --bg-overlay:        rgba(5, 8, 15, 0.85);

  --text-primary:      #F0F4FF;
  --text-secondary:    #8896B3;
  --text-muted:        #4A5568;
  --text-inverse:      #080C14;

  --border-subtle:     rgba(255, 255, 255, 0.06);
  --border-default:    rgba(255, 255, 255, 0.10);
  --border-accent:     rgba(0, 229, 255, 0.25);
  --border-gold:       rgba(255, 215, 0, 0.25);

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    22px;
  --radius-2xl:   32px;
  --radius-full:  9999px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-cyan:  0 0 20px rgba(0,229,255,0.25);
  --shadow-gold:  0 0 20px rgba(255,215,0,0.25);
  --shadow-modal: 0 24px 64px rgba(0,0,0,0.7);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base: 250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 400ms cubic-bezier(0.4,0,0.2,1);

  --nav-height:         64px;
  --bottom-nav-height:  68px;
  --max-content:        480px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh; min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-2); border-radius: 4px; }
::selection { background: var(--brand-cyan-dim); color: var(--brand-cyan); }
:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.text-display  { font-family: var(--font-display); font-size: clamp(2rem,8vw,3.5rem); font-weight: 800; }
.text-heading  { font-size: 1.5rem; font-weight: 700; }
.text-title    { font-size: 1.125rem; font-weight: 600; }
.text-body     { font-size: 0.9375rem; font-weight: 400; }
.text-small    { font-size: 0.8125rem; }
.text-xs       { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.text-mono     { font-family: var(--font-mono); }
.text-cyan     { color: var(--brand-cyan); }
.text-gold     { color: var(--brand-gold); }
.text-green    { color: var(--brand-green); }
.text-red      { color: var(--brand-red); }
.text-muted    { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.gradient-cyan {
  background: linear-gradient(135deg, var(--brand-cyan), #0099FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold), #FFA500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 16px; }
.page {
  min-height: 100vh; min-height: 100dvh;
  padding-top: var(--nav-height);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}
.page--auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Card ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color var(--transition-fast);
}
.card:hover { border-color: var(--border-default); }
.card--glow { border-color: var(--border-accent); box-shadow: 0 0 0 1px var(--brand-cyan-dim), var(--shadow-card); }
.card--gold { border-color: var(--border-gold); box-shadow: 0 0 0 1px var(--brand-gold-dim), var(--shadow-card); }
.card--surface { background: var(--bg-surface); }
.card--sm { padding: 14px 16px; border-radius: var(--radius-md); }
.card--lg { padding: 28px 24px; border-radius: var(--radius-xl); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-display); font-weight: 600;
  font-size: 0.9375rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; user-select: none;
  min-height: 48px; position: relative;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: var(--brand-cyan); color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(0,229,255,0.3);
}
.btn-primary:hover:not(:disabled) { background: #19EAFF; box-shadow: 0 6px 24px rgba(0,229,255,0.45); }
.btn-secondary {
  background: var(--brand-cyan-dim); color: var(--brand-cyan);
  border-color: var(--border-accent);
}
.btn-secondary:hover:not(:disabled) { background: rgba(0,229,255,0.22); border-color: var(--brand-cyan); }
.btn-gold {
  background: var(--brand-gold); color: #1A1000; font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,215,0,0.3);
}
.btn-gold:hover:not(:disabled) { background: #FFE033; box-shadow: 0 6px 24px rgba(255,215,0,0.45); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); border-color: var(--border-default);
}
.btn-ghost:hover:not(:disabled) { background: var(--bg-surface); color: var(--text-primary); }
.btn-danger { background: var(--brand-red-dim); color: var(--brand-red); border-color: rgba(255,61,90,0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(255,61,90,0.25); }
.btn-sm  { font-size: 0.8125rem; padding: 9px 16px; min-height: 36px; border-radius: var(--radius-sm); }
.btn-lg  { font-size: 1.0625rem; padding: 16px 32px; min-height: 56px; border-radius: var(--radius-lg); }
.btn-xl  { font-size: 1.125rem; padding: 18px 36px; min-height: 60px; border-radius: var(--radius-xl); }
.btn-icon { padding: 12px; min-height: 44px; min-width: 44px; }
.btn-full { width: 100%; }
.btn.loading { pointer-events: none; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading::after {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary); font-family: var(--font-body);
  font-size: 0.9375rem; padding: 13px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 48px; -webkit-appearance: none; appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--brand-cyan); box-shadow: 0 0 0 3px var(--brand-cyan-dim);
}
.form-input.error { border-color: var(--brand-red); box-shadow: 0 0 0 3px var(--brand-red-dim); }
.form-input.success { border-color: var(--brand-green); }
.form-input--prefix { padding-left: 44px; }
.form-input--suffix { padding-right: 44px; }
.input-wrapper { position: relative; }
.input-prefix, .input-suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-prefix { left: 14px; }
.input-suffix { right: 14px; }
.form-hint { font-size: 0.8125rem; color: var(--text-muted); }
.form-error { font-size: 0.8125rem; color: var(--brand-red); }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-cyan   { background: var(--brand-cyan-dim);   color: var(--brand-cyan); }
.badge-gold   { background: var(--brand-gold-dim);   color: var(--brand-gold); }
.badge-green  { background: var(--brand-green-dim);  color: var(--brand-green); }
.badge-red    { background: var(--brand-red-dim);    color: var(--brand-red); }
.badge-purple { background: var(--brand-purple-dim); color: var(--brand-purple); }
.badge-gray   { background: var(--bg-surface-2);     color: var(--text-secondary); }

/* ── Avatar ── */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-cyan-dim); color: var(--brand-cyan);
  font-family: var(--font-display); font-weight: 700; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--border-accent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 44px; height: 44px; font-size: 16px; }
.avatar-lg { width: 60px; height: 60px; font-size: 22px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }
.rank-bronze   { border-color: #CD7F32; background: rgba(205,127,50,0.15); color: #CD7F32; }
.rank-silver   { border-color: #C0C0C0; background: rgba(192,192,192,0.15); color: #C0C0C0; }
.rank-gold     { border-color: var(--brand-gold); background: var(--brand-gold-dim); color: var(--brand-gold); }
.rank-diamond  { border-color: var(--brand-cyan); background: var(--brand-cyan-dim); color: var(--brand-cyan); }
.rank-legend   { border-color: var(--brand-purple); background: var(--brand-purple-dim); color: var(--brand-purple); }

/* ── Top Nav ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(8,12,20,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-dot {
  width: 8px; height: 8px; background: var(--brand-cyan);
  border-radius: 50%; box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
.nav-wallet-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--brand-gold-dim); border: 1px solid var(--border-gold);
  border-radius: var(--radius-full); padding: 6px 12px;
  font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500;
  color: var(--brand-gold); cursor: pointer; transition: all var(--transition-fast);
}
.nav-wallet-badge:hover { background: rgba(255,215,0,0.22); box-shadow: var(--shadow-gold); }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  background: rgba(8,12,20,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle); z-index: 100;
  display: flex; align-items: flex-start; padding: 8px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-inner {
  display: flex; align-items: flex-start; justify-content: space-around;
  width: 100%; max-width: var(--max-content); margin: 0 auto;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 12px 6px; cursor: pointer; text-decoration: none;
  min-width: 52px; transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent; position: relative;
}
.nav-item .nav-icon { width: 24px; height: 24px; color: var(--text-muted); transition: color var(--transition-fast), transform var(--transition-fast); }
.nav-item .nav-label { font-size: 0.625rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; transition: color var(--transition-fast); }
.nav-item.active .nav-icon, .nav-item.active .nav-label { color: var(--brand-cyan); }
.nav-item:active .nav-icon { transform: scale(0.85); }
.nav-item--play { margin-top: -16px; }
.nav-item--play .nav-play-btn {
  width: 52px; height: 52px; background: var(--brand-cyan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,229,255,0.5), 0 0 0 4px var(--brand-cyan-dim);
  transition: all var(--transition-fast);
}
.nav-item--play:active .nav-play-btn { transform: scale(0.9); }
.nav-badge {
  position: absolute; top: 2px; right: 10px;
  width: 8px; height: 8px; background: var(--brand-red);
  border-radius: 50%; border: 2px solid var(--bg-dark);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: var(--bg-overlay);
  backdrop-filter: blur(8px); z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: var(--max-content); max-height: 92vh; overflow-y: auto;
  transform: translateY(100%); transition: transform var(--transition-slow);
  box-shadow: var(--shadow-modal);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal--center {
  border-radius: var(--radius-xl); align-self: center;
  margin: 16px; max-width: 400px;
  transform: scale(0.95) translateY(8px); opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.modal-overlay.active .modal--center { transform: scale(1) translateY(0); opacity: 1; }
.modal-handle { width: 36px; height: 4px; background: var(--border-default); border-radius: var(--radius-full); margin: 12px auto 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle); }
.modal-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; background: var(--bg-surface); border: none; border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.modal-close:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-subtle); display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; }

/* ── Toast ── */
.toast-container { position: fixed; top: calc(var(--nav-height) + 12px); left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-card); pointer-events: all; transform: translateY(-8px) scale(0.96); opacity: 0; transition: all var(--transition-base); }
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.hide { transform: translateY(-4px) scale(0.98); opacity: 0; }
.toast-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-success .toast-icon { background: var(--brand-green-dim); color: var(--brand-green); }
.toast-error   .toast-icon { background: var(--brand-red-dim);   color: var(--brand-red); }
.toast-info    .toast-icon { background: var(--brand-cyan-dim);  color: var(--brand-cyan); }
.toast-warning .toast-icon { background: var(--brand-gold-dim);  color: var(--brand-gold); }
.toast-success { border-left: 3px solid var(--brand-green); }
.toast-error   { border-left: 3px solid var(--brand-red); }
.toast-info    { border-left: 3px solid var(--brand-cyan); }
.toast-warning { border-left: 3px solid var(--brand-gold); }
.toast-content { flex: 1; }
.toast-title   { font-weight: 600; font-size: 0.875rem; }
.toast-message { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.toast-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: var(--radius-sm); transition: color var(--transition-fast); }
.toast-dismiss:hover { color: var(--text-secondary); }

/* Inline Alert */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 0.875rem; }
.alert-success { background: var(--brand-green-dim); border-color: rgba(0,255,135,0.25); color: #00e87a; }
.alert-error   { background: var(--brand-red-dim);   border-color: rgba(255,61,90,0.25);  color: var(--brand-red); }
.alert-info    { background: var(--brand-cyan-dim);  border-color: rgba(0,229,255,0.25);  color: var(--brand-cyan); }
.alert-warning { background: var(--brand-gold-dim);  border-color: rgba(255,215,0,0.25);  color: #e0b800; }

/* ── Loader ── */
.loader-overlay { position: fixed; inset: 0; background: var(--bg-overlay); backdrop-filter: blur(6px); z-index: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); }
.loader-overlay.active { opacity: 1; pointer-events: all; }
.loader-spinner { width: 48px; height: 48px; border: 3px solid var(--border-default); border-top-color: var(--brand-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loader-text { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border-default); border-top-color: var(--brand-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 14px; height: 14px; }
.skeleton { background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-2) 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
.skeleton-text  { height: 14px; }
.skeleton-title { height: 20px; }
.skeleton-card  { height: 100px; border-radius: var(--radius-lg); }

/* ── Progress ── */
.progress-bar { width: 100%; height: 6px; background: var(--bg-surface-2); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand-cyan), #0099FF); border-radius: var(--radius-full); transition: width var(--transition-slow); box-shadow: 0 0 8px rgba(0,229,255,0.4); }
.progress-fill--gold { background: linear-gradient(90deg, var(--brand-gold), #FFA500); box-shadow: 0 0 8px rgba(255,215,0,0.4); }

/* ── Divider ── */
.divider { width: 100%; height: 1px; background: var(--border-subtle); }
.divider--label { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.8125rem; }
.divider--label::before, .divider--label::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

/* ── Stat Card ── */
.stat-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.stat-change { font-size: 0.75rem; font-weight: 500; }
.stat-change.up { color: var(--brand-green); }
.stat-change.down { color: var(--brand-red); }

/* ── List Item ── */
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); transition: all var(--transition-fast); cursor: pointer; -webkit-tap-highlight-color: transparent; text-decoration: none; color: inherit; }
.list-item:hover { background: var(--bg-card-hover); border-color: var(--border-default); }
.list-item:active { transform: scale(0.99); }

/* ── OTP Input ── */
.otp-group { display: flex; gap: 10px; justify-content: center; }
.otp-input { width: 52px; height: 60px; background: var(--bg-surface); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); text-align: center; font-family: var(--font-mono); font-size: 1.375rem; font-weight: 700; color: var(--text-primary); transition: all var(--transition-fast); -webkit-appearance: none; }
.otp-input:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px var(--brand-cyan-dim); outline: none; }
.otp-input.filled { border-color: var(--brand-cyan); background: var(--brand-cyan-dim); }

/* ── Stake Selector ── */
.stake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stake-btn { background: var(--bg-surface); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; cursor: pointer; text-align: center; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
.stake-btn:hover  { border-color: var(--brand-cyan); background: var(--brand-cyan-dim); }
.stake-btn.active { border-color: var(--brand-cyan); background: var(--brand-cyan-dim); box-shadow: var(--shadow-cyan); }
.stake-btn .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
.stake-btn.active .amount { color: var(--brand-cyan); }
.stake-btn .pot { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Tab Bar ── */
.tab-bar { display: flex; gap: 4px; background: var(--bg-surface); border-radius: var(--radius-md); padding: 4px; }
.tab-item { flex: 1; padding: 9px; text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
.tab-item.active { background: var(--bg-card); color: var(--brand-cyan); box-shadow: var(--shadow-card); }

/* ── Confirm Dialog ── */
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-icon--danger  { background: var(--brand-red-dim); color: var(--brand-red); }
.confirm-icon--warning { background: var(--brand-gold-dim); color: var(--brand-gold); }
.confirm-icon--info    { background: var(--brand-cyan-dim); color: var(--brand-cyan); }

/* ── Glow decorations ── */
.glow-bg { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: 0.07; z-index: 0; }
.glow-cyan   { background: var(--brand-cyan);   width: 600px; height: 600px; top: -200px; right: -200px; }
.glow-purple { background: var(--brand-purple); width: 500px; height: 500px; bottom: -100px; left: -200px; }

/* ── Animations ── */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse-dot   { 0%,100%{opacity:1;box-shadow:0 0 8px var(--brand-cyan)} 50%{opacity:0.6;box-shadow:0 0 4px var(--brand-cyan)} }
@keyframes shimmer     { to { background-position: -200% 0; } }
@keyframes fadeIn      { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp    { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes scaleIn     { from{opacity:0;transform:scale(0.92)} to{opacity:1;transform:scale(1)} }
@keyframes pulse-glow  { 0%,100%{box-shadow:0 0 20px rgba(0,229,255,0.25)} 50%{box-shadow:0 0 36px rgba(0,229,255,0.5)} }
@keyframes slide-up    { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes winner-flash { 0%,100%{opacity:1} 50%{opacity:0.6} }

.animate-fadeIn    { animation: fadeIn 0.3s ease forwards; }
.animate-fadeInUp  { animation: fadeInUp 0.4s ease forwards; }
.animate-scaleIn   { animation: scaleIn 0.25s ease forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

.stagger-children > * { opacity: 0; animation: fadeInUp 0.4s ease forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.30s; }

/* ── Utilities ── */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.no-scroll { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px}
.mt-4{margin-top:16px} .mt-6{margin-top:24px} .mt-8{margin-top:32px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px}
.mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px} .mb-8{margin-bottom:32px}
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }