/* ============================================================
   VirtualsAI — Main Stylesheet
   Clean Flat Dark · Mobile-First · Inspired by Instant Virtuals
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:          #E8353B;
  --red-dark:     #C0392B;
  --red-bright:   #FF4444;
  --gold:         #F5A623;
  --gold-dark:    #D4891A;
  --bg:           #0A0A0A;
  --bg2:          #111111;
  --card:         #1A1A1A;
  --card2:        #222222;
  --input:        #242424;
  --input-border: rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --text:         #FFFFFF;
  --text-muted:   #888888;
  --text-faint:   #555555;
  --success:      #22C55E;
  --warning:      #F5A623;
  --danger:       #E8353B;
  --info:         #3B82F6;
  --radius:       14px;
  --radius-sm:    10px;
  --radius-xs:    8px;
  --radius-pill:  50px;
  --nav-height:   60px;
  --bottom-height: 64px;
  --shadow-red:   0 4px 24px rgba(232,53,59,0.45);
  --shadow-card:  0 2px 16px rgba(0,0,0,0.5);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

::selection { background: rgba(232,53,59,0.35); color: #fff; }

/* ── Layout ─────────────────────────────────────────────────── */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.page-content {
  padding: calc(var(--nav-height) + 16px) 16px calc(var(--bottom-height) + 24px);
}

/* ── Logo / Brand Component ──────────────────────────────────── */
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(232,53,59,.5);
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.brand-text span {
  color: var(--red);
}

.sub-brand {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 6px;
}

/* ── Top Navigation ──────────────────────────────────────────── */
.nav-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(232,53,59,.4);
}

/* ── Bottom Navigation ───────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-height);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 200;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-faint);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .2s;
  padding: 8px 0;
  position: relative;
}

.bottom-nav-icon {
  font-size: 1.2rem;
  transition: all .2s;
  line-height: 1;
}

.bottom-nav-item.active {
  color: var(--red);
}

.bottom-nav-item.active .bottom-nav-icon {
  filter: drop-shadow(0 0 5px rgba(232,53,59,.7));
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: .9rem;
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .25s ease;
  letter-spacing: .2px;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled, .btn.btn-loading {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 30px rgba(232,53,59,.6);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background: rgba(232,53,59,.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34,197,94,.35);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232,53,59,.35);
}

.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245,166,35,.35);
}

.btn-sm    { padding: 8px 16px; font-size: .78rem; border-radius: var(--radius-sm); }
.btn-xs    { padding: 5px 12px; font-size: .72rem; border-radius: var(--radius-xs); }
.btn-lg    { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .78rem;
  margin-left: 4px;
}

.form-label .required-note {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .78rem;
  margin-left: 4px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--red);
  font-size: .85rem;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

.form-control,
.form-select {
  width: 100%;
  background: var(--input);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px 13px 40px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.form-control.no-icon { padding-left: 14px; }

.form-control:focus,
.form-select:focus {
  border-color: var(--red);
  background: #2a2a2a;
}

.form-control::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.form-select option { background: var(--card); color: var(--text); }

.input-suffix-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px;
  z-index: 1;
  transition: color .2s;
}

.input-suffix-btn:hover { color: var(--red); }

.form-text {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
}

/* ── Referral Banner ─────────────────────────────────────────── */
.referral-banner {
  background: rgba(232,53,59,.12);
  border: 1px solid rgba(232,53,59,.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .84rem;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-banner strong {
  color: var(--red-bright);
  letter-spacing: .5px;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2px;
}

.badge-success { background: rgba(34,197,94,.12);  color: #22C55E; border: 1px solid rgba(34,197,94,.2); }
.badge-warning { background: rgba(245,166,35,.12); color: #F5A623; border: 1px solid rgba(245,166,35,.2); }
.badge-danger  { background: rgba(232,53,59,.12);  color: #FF6B6B; border: 1px solid rgba(232,53,59,.2); }
.badge-info    { background: rgba(59,130,246,.12); color: #60A5FA; border: 1px solid rgba(59,130,246,.2); }
.badge-primary { background: rgba(232,53,59,.12);  color: var(--red); border: 1px solid rgba(232,53,59,.2); }
.badge-dark    { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border); }
.badge-gold    { background: rgba(245,166,35,.12); color: var(--gold); border: 1px solid rgba(245,166,35,.2); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  font-size: .84rem;
  align-items: flex-start;
  animation: fadeIn .3s ease;
  line-height: 1.5;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.25);  color: #22C55E; }
.alert-error   { background: rgba(232,53,59,.08);  border: 1px solid rgba(232,53,59,.3);   color: #FF6B6B; }
.alert-warning { background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.25); color: #F5A623; }
.alert-info    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25); color: #60A5FA; }

/* ── Section Title ───────────────────────────────────────────── */
.section-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}

/* ── Stat Cards ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}

.stat-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: block;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
}

.stat-label {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 3px;
  font-weight: 600;
}

/* ── Match Cards ─────────────────────────────────────────────── */
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  animation: slideUp .35s ease both;
  transition: border-color .2s, transform .2s;
}

.match-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
}

.match-card:hover {
  border-color: rgba(232,53,59,.35);
  transform: translateY(-1px);
}

.match-league {
  font-size: .65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.match-team {
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.match-team.away { text-align: right; }

.match-vs {
  font-size: .68rem;
  color: var(--text-faint);
  font-weight: 600;
  flex-shrink: 0;
  background: var(--input);
  padding: 3px 8px;
  border-radius: 20px;
}

.match-odds {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.odd-btn {
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-xs);
  padding: 7px 4px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.odd-btn:hover, .odd-btn.selected {
  border-color: var(--red);
  background: rgba(232,53,59,.1);
}

.odd-label {
  font-size: .58rem;
  color: var(--text-faint);
  display: block;
  letter-spacing: .2px;
  font-weight: 600;
  text-transform: uppercase;
}

.odd-value {
  font-size: .9rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-top: 1px;
  font-family: 'Inter', sans-serif;
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.match-time {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.match-live-badge {
  background: rgba(232,53,59,.12);
  color: var(--red);
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(232,53,59,.25);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Skeleton */
.match-skeleton .sk-line {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 12px;
  margin-bottom: 8px;
}
.match-skeleton .sk-line.short { width: 55%; }
.match-skeleton .sk-line.tall  { height: 30px; }

/* ── Plan Cards ──────────────────────────────────────────────── */
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
  animation: slideUp .35s ease both;
}

.plan-card:hover {
  border-color: rgba(232,53,59,.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.plan-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(232,53,59,.15), var(--shadow-card);
}

.plan-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.plan-price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-price-ngn {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-validity {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.plan-features {
  list-style: none;
  margin-bottom: 16px;
}

.plan-feature-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .82rem;
  padding: 3px 0;
  color: var(--text-muted);
}

.plan-feature-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-current {
  text-align: center;
  color: var(--success);
  font-size: .8rem;
  font-weight: 600;
}

/* ── Upload Zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(232,53,59,.3);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  background: rgba(232,53,59,.03);
}

.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--red);
  background: rgba(232,53,59,.07);
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.upload-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.upload-sub {
  font-size: .74rem;
  color: var(--text-muted);
}

.upload-preview {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 220px;
  display: none;
}

.upload-preview img {
  width: 100%;
  object-fit: cover;
  max-height: 220px;
  display: block;
}

/* ── Prediction Results ──────────────────────────────────────── */
.prediction-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  animation: slideUp .35s ease both;
  position: relative;
  overflow: hidden;
}

.prediction-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.prediction-teams {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
}

.prediction-outcome {
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.prediction-outcome.home_win { background: rgba(34,197,94,.12);  color: #22C55E; border: 1px solid rgba(34,197,94,.25); }
.prediction-outcome.draw     { background: rgba(245,166,35,.12); color: #F5A623; border: 1px solid rgba(245,166,35,.25); }
.prediction-outcome.away_win { background: rgba(232,53,59,.12);  color: #FF6B6B; border: 1px solid rgba(232,53,59,.25); }

.prediction-score {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: rgba(232,53,59,.15);
  border: 1px solid rgba(232,53,59,.25);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.confidence-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.confidence-label { font-size: .7rem; color: var(--text-muted); white-space: nowrap; font-weight: 500; }

.confidence-bar-wrap {
  flex: 1;
  background: var(--input);
  border-radius: 10px;
  height: 4px;
  overflow: hidden;
}

.confidence-bar {
  height: 4px;
  border-radius: 10px;
  background: var(--red);
  width: 0;
  transition: width 1.2s ease;
}

.confidence-pct {
  font-size: .72rem;
  font-weight: 700;
  color: var(--red);
  min-width: 32px;
  text-align: right;
}

.prediction-reasoning {
  font-size: .76rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
}

/* ── Country Toggle ───────────────────────────────────────────── */
.country-toggle {
  display: flex;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.country-btn {
  flex: 1;
  padding: 9px;
  text-align: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .25s;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.country-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,53,59,.4);
}

/* ── Payment Info Cards ───────────────────────────────────────── */
.payment-cards-grid { display: grid; gap: 12px; margin-bottom: 20px; }

.payment-info-card {
  background: var(--card);
  border: 1px solid rgba(232,53,59,.3);
  border-radius: var(--radius);
  padding: 16px;
  transition: opacity .25s, transform .25s;
}

.payment-network-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 8px;
}

.payment-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.payment-number {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.payment-account-name {
  font-size: .78rem;
  color: var(--text-muted);
}

.payment-amount-display {
  text-align: center;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.payment-amount-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
  font-weight: 600;
}

.payment-amount-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.copy-btn {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: .73rem;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover { background: rgba(232,53,59,.1); color: var(--red); border-color: rgba(232,53,59,.3); }

/* ── Steps ───────────────────────────────────────────────────── */
.steps-bar { display: flex; align-items: center; margin-bottom: 24px; }

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--input);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .3s;
  z-index: 1;
}

.step-item.active .step-circle {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(232,53,59,.5);
}

.step-item.done .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.step-label {
  font-size: .6rem;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 4px;
  margin-top: -14px;
}

.step-line.done { background: var(--red); }

/* ── Profile ─────────────────────────────────────────────────── */
.profile-avatar-lg {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,53,59,.4);
  margin: 0 auto 12px;
  font-family: 'Inter', sans-serif;
}

.profile-name { font-size: 1.1rem; font-weight: 800; text-align: center; }
.profile-meta { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 2px; }

.plan-progress-bar {
  background: var(--input);
  border-radius: 10px;
  height: 5px;
  overflow: hidden;
  margin-top: 8px;
}

.plan-progress-fill {
  height: 5px;
  border-radius: 10px;
  background: var(--red);
  transition: width 1s ease;
}

/* ── History ─────────────────────────────────────────────────── */
.history-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }

.history-thumb {
  width: 46px; height: 34px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--input);
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-info { flex: 1; min-width: 0; }
.history-matches { font-size: .82rem; font-weight: 600; }
.history-date    { font-size: .7rem; color: var(--text-muted); margin-top: 1px; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  transform: scale(.92);
  transition: transform .25s;
}
.modal-overlay.active .modal-box { transform: scale(1); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 1.1rem;
  cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text); }

/* ── Loader ──────────────────────────────────────────────────── */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  flex-direction: column;
  gap: 14px;
}
.loader-overlay.active { opacity: 1; pointer-events: all; }

.loader {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.loader-text { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ── FAB (Floating Action Button) ────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-height) + 16px);
  right: 16px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  z-index: 150;
  border: none;
  transition: all .25s;
}
.fab:hover { transform: scale(1.05); background: var(--red-bright); }

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 0 0 40px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.auth-back {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.auth-content {
  padding: 28px 20px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.auth-hero {
  text-align: center;
  margin-bottom: 28px;
}

.auth-sub-brand {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.auth-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.auth-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .84rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

/* ── Live Dot ────────────────────────────────────────────────── */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulseGlow 1.5s ease-in-out infinite;
}

/* ── Referral Link Box ────────────────────────────────────────── */
.referral-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  word-break: break-all;
}

.referral-link {
  flex: 1;
  font-family: monospace;
  font-size: .78rem;
  color: var(--gold);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 2.8rem; margin-bottom: 12px; opacity: .35; display: block; }
.empty-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-sub   { font-size: .8rem; line-height: 1.6; }

/* ── Locked State ────────────────────────────────────────────── */
.locked-card {
  text-align: center;
  padding: 30px 20px;
  border: 1.5px dashed rgba(232,53,59,.3);
  border-radius: var(--radius);
  background: rgba(232,53,59,.03);
  margin-bottom: 20px;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  width: 90%;
  max-width: 440px;
  pointer-events: none;
}

.toast {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .83rem;
  font-weight: 500;
  animation: slideDown .3s ease;
  pointer-events: all;
  box-shadow: var(--shadow-card);
}

/* ── Countdown chip ──────────────────────────────────────────── */
.countdown-chip {
  background: rgba(232,53,59,.1);
  border: 1px solid rgba(232,53,59,.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .68rem;
  color: var(--red);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-gold    { color: var(--gold); }
.text-red     { color: var(--red); }

.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }

.divider { height: 1px; background: var(--border); margin: 14px 0; }
.w-full  { width: 100%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,53,59,.6); opacity: 1; }
  50%       { box-shadow: 0 0 0 5px rgba(232,53,59,0); opacity: .7; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.fade-in    { animation: fadeIn  .4s ease; }
.slide-up   { animation: slideUp .35s ease; }
.float-anim { animation: float 3s ease-in-out infinite; }
