/* ═══════════════════════════════════════════════
   Statmastr — Dark Sports Theme
   ═══════════════════════════════════════════════ */

:root {
  --bg:          #080b10;
  --bg-card:     #0f1318;
  --bg-card2:    #141920;
  --bg-elevated: #1a2030;
  --border:      #1e2840;
  --border-light:#253050;
  --green:       #22c55e;
  --green-dim:   #16a34a;
  --green-glow:  rgba(34,197,94,0.15);
  --green-subtle:rgba(34,197,94,0.08);
  --white:       #f0f4ff;
  --muted:       #6b7a99;
  --muted2:      #3d4d6a;
  --red:         #ef4444;
  --yellow:      #f59e0b;
  --blue:        #3b82f6;
  --blue-dim:    #1d4ed8;
  --font:        'Inter', system-ui, sans-serif;
  --font-head:   'Space Grotesk', 'Inter', sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: #4ade80; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; }

/* ── Typography ── */
h1,h2,h3 { font-family: var(--font-head); line-height: 1.2; }
.text-accent { color: var(--green); }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  background: rgba(8,11,16,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.logo-text { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.logo-accent { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: var(--bg-elevated); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.5rem; }
.user-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; letter-spacing: 0.05em; }
.badge-pro  { background: var(--green); color: #000; }
.badge-free { background: var(--bg-elevated); color: var(--muted); border: 1px solid var(--border); }
.user-name  { font-size: 0.85rem; color: var(--muted); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .2s; }

/* ═══════════════ FLASH ═══════════════ */
.flash-container { position: fixed; top: 68px; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.flash {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  max-width: 360px;
  box-shadow: var(--shadow);
}
.flash-success { background: #052e16; border: 1px solid var(--green); color: #86efac; }
.flash-error   { background: #1a0a0a; border: 1px solid var(--red);   color: #fca5a5; }
.flash-info    { background: #0c1a3a; border: 1px solid var(--blue);  color: #93c5fd; }
.flash-close { position: absolute; top: 50%; right: 0.75rem; transform: translateY(-50%); background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: 0.6; }
.flash-close:hover { opacity: 1; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .2s; padding: 0.55rem 1.25rem;
  white-space: nowrap;
}
.btn-primary  { background: var(--green); color: #000; }
.btn-primary:hover  { background: #4ade80; color: #000; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(34,197,94,0.3); }
.btn-ghost    { background: transparent; color: var(--white); border: 1px solid var(--border-light); }
.btn-ghost:hover    { background: var(--bg-elevated); border-color: var(--muted2); color: var(--white); }
.btn-sm  { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.btn-lg  { font-size: 1rem; padding: 0.75rem 1.75rem; }
.btn-full { width: 100%; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  padding: 3.5rem 1.5rem 2rem;
  background: radial-gradient(ellipse 80% 50% at 60% 0%, rgba(34,197,94,0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.live-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.hero-refresh { margin-left: auto; font-weight: 400; }
.hero-title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 520px; margin-bottom: 1.5rem; line-height: 1.7; }
.hero-text .btn { margin-right: 0.75rem; margin-bottom: 0.5rem; }
.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
}
.stat-pill-green { border-color: var(--green); background: var(--green-subtle); }
.stat-pill-locked { opacity: 0.5; filter: blur(2px); pointer-events: none; }
.stat-num   { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--white); }
.stat-label { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ═══════════════ GAMES SECTION ═══════════════ */
.games-section { padding: 2rem 0 4rem; }

.upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-elevated));
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.upgrade-banner-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.banner-icon { font-size: 1.25rem; flex-shrink: 0; }
.upgrade-banner-left div { display: flex; flex-direction: column; gap: 0.2rem; }
.upgrade-banner-left strong { color: var(--white); font-size: 0.9rem; }
.upgrade-banner-left span  { color: var(--muted); font-size: 0.82rem; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* ── Game Card ── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-high   { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 20px rgba(34,197,94,0.07); }
.card-medium { border-color: rgba(245,158,11,0.3); }

.card-header {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.matchup-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem;
}
.team-block { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.team-abbrev { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.team-record { font-size: 0.75rem; color: var(--muted); }
.vs-block { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.vs-label { font-size: 0.75rem; color: var(--muted2); font-weight: 600; }
.game-time { font-size: 0.8rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.venue-line { font-size: 0.78rem; color: var(--muted); text-align: center; margin-bottom: 0.5rem; }
.pitchers-preview { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.pitcher-sep { color: var(--muted2); }

/* ── Prediction section ── */
.card-prediction { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.confidence-row { display: flex; align-items: center; gap: 0.75rem; }
.conf-badge {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase;
}
.conf-high   { background: rgba(34,197,94,0.15);  color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.conf-medium { background: rgba(245,158,11,0.12); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.conf-low    { background: rgba(107,119,153,0.1); color: var(--muted); border: 1px solid var(--border); }
.pick-label  { font-size: 0.82rem; color: var(--muted); }
.pick-label strong { color: var(--white); }

/* Win probability */
.prob-section { display: flex; flex-direction: column; gap: 0.45rem; }
.prob-row { display: flex; align-items: center; gap: 0.6rem; }
.prob-team { font-size: 0.78rem; font-weight: 600; color: var(--muted); width: 32px; text-align: right; flex-shrink: 0; }
.prob-bar-wrap { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.prob-bar { height: 100%; background: var(--muted2); border-radius: 3px; transition: width .5s ease; }
.prob-bar-strong { background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.prob-pct { font-size: 0.8rem; font-weight: 600; color: var(--muted); width: 42px; text-align: right; flex-shrink: 0; }
.pct-strong { color: var(--green); }

/* Predicted score */
.score-prediction { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 0.75rem 1rem; }
.score-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); display: block; margin-bottom: 0.4rem; }
.score-display { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.score-team { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.score-num  { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.score-dash { color: var(--muted2); font-size: 1rem; }

/* F5 */
.f5-section { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; }
.f5-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 0.6rem; font-weight: 600; }
.f5-row   { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; font-size: 0.78rem; color: var(--muted); }
.f5-row span:first-child { width: 32px; text-align: right; flex-shrink: 0; font-weight: 600; }
.f5-bar-wrap { flex: 1; height: 4px; background: var(--bg-elevated); border-radius: 2px; overflow: hidden; }
.f5-bar  { height: 100%; background: var(--blue); border-radius: 2px; transition: width .5s ease; }
.f5-pct  { width: 38px; text-align: right; font-size: 0.78rem; flex-shrink: 0; }
.f5-score { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.4rem; font-weight: 500; }

/* Pitcher table */
.pitcher-table { font-size: 0.78rem; }
.pt-header, .pt-row {
  display: grid;
  grid-template-columns: 1fr 52px 52px 48px 40px;
  gap: 0.25rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.pt-header { color: var(--muted2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pt-header span, .pt-row span { text-align: right; }
.pt-header span:first-child, .pt-row span:first-child { text-align: left; }
.pt-name  { color: var(--white); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.era-good { color: var(--green); }
.era-bad  { color: var(--red); }
.sample-flag { color: var(--yellow); margin-left: 2px; }
.sample-note { font-size: 0.68rem; color: var(--muted2); margin-top: 0.35rem; }

/* Weather */
.weather-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.77rem; color: var(--muted); flex-wrap: wrap; padding-top: 0.25rem; }
.weather-label { color: var(--white); font-weight: 500; }
.weather-dome  { color: var(--muted2); }

/* ── Locked card ── */
.card-locked { position: relative; overflow: hidden; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.locked-blur {
  position: absolute; inset: 0;
  padding: 1.25rem;
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 0.6rem; justify-content: center;
}
.fake-prob  { display: flex; align-items: center; gap: 0.5rem; height: 20px; }
.fake-bar   { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--green-dim), var(--green)); }
.fake-bar.short { background: var(--muted2); }
.fake-prob span { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.fake-score { font-size: 0.9rem; color: var(--white); }
.fake-badge { display: inline-block; background: var(--green); color: #000; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.locked-overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: rgba(8,11,16,0.75);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.lock-icon { font-size: 1.5rem; }
.lock-msg  { font-size: 0.85rem; font-weight: 600; color: var(--white); margin: 0; }

/* Empty state */
.empty-state { text-align: center; padding: 5rem 1rem; }
.empty-icon  { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { color: var(--white); margin-bottom: 0.5rem; }
.empty-state p  { color: var(--muted); }

.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 1.25rem; }
.alert-warning { background: #1a1200; border: 1px solid #92400e; color: #fde68a; }

/* ═══════════════ CTA ═══════════════ */
.cta-section { padding: 2rem 0 4rem; }
.cta-card {
  background: linear-gradient(135deg, var(--bg-card2) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(34,197,94,0.08), transparent);
  pointer-events: none;
}
.cta-card h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.cta-card p  { color: var(--muted); max-width: 500px; margin: 0 auto 1.75rem; font-size: 1rem; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ═══════════════ PAGE HERO ═══════════════ */
.page-hero { padding: 3rem 1.5rem 2rem; border-bottom: 1px solid var(--border); text-align: center; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.page-sub   { color: var(--muted); font-size: 1rem; }

/* ═══════════════ PRICING ═══════════════ */
.pricing-section { padding: 3rem 0 5rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-featured {
  border-color: var(--green);
  background: linear-gradient(160deg, var(--bg-card2) 0%, var(--bg-elevated) 100%);
  box-shadow: 0 0 40px rgba(34,197,94,0.1);
}
.featured-ribbon {
  position: absolute; top: 1.5rem; right: -2rem;
  background: var(--green); color: #000;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
  padding: 0.3rem 3rem;
  transform: rotate(40deg);
}
.pricing-header { text-align: center; margin-bottom: 1.75rem; }
.tier-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; letter-spacing: 0.08em; margin-bottom: 1rem; }
.tier-free  { background: var(--bg-elevated); color: var(--muted); border: 1px solid var(--border); }
.tier-pro   { background: var(--green); color: #000; }
.pricing-price { margin-bottom: 0.5rem; }
.price-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--white); }
.price-period { color: var(--muted); font-size: 1rem; }
.pricing-tagline { color: var(--muted); font-size: 0.9rem; }

.pricing-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.pricing-features li { font-size: 0.875rem; padding-left: 0.25rem; }
.feat-yes  { color: var(--white); }
.feat-no   { color: var(--muted); text-decoration: line-through; }
.feat-highlight { color: var(--white); }
.feat-yes  .feat-check { color: var(--green); }

.pricing-action { margin-top: auto; }
.current-plan-badge { text-align: center; padding: 0.75rem; background: var(--green-subtle); border: 1px solid rgba(34,197,94,0.3); border-radius: var(--radius-sm); color: var(--green); font-weight: 600; font-size: 0.875rem; }
.pricing-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.75rem; }

.compare-callout {
  max-width: 780px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.compare-callout h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.model-factors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.factor-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; background: var(--bg-elevated); border-radius: var(--radius-sm); font-size: 0.82rem; }
.factor-icon { font-size: 1rem; }
.factor-name { flex: 1; color: var(--white); }
.factor-pct  { font-weight: 700; color: var(--green); font-size: 0.8rem; }
.model-note { font-size: 0.8rem; color: var(--muted); }

/* ═══════════════ AUTH ═══════════════ */
.auth-section { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 120px); padding: 2rem 1rem; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo  { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.6rem; text-align: center; margin-bottom: 0.4rem; }
.auth-sub   { color: var(--muted); font-size: 0.875rem; text-align: center; margin-bottom: 1.75rem; }
.auth-form  { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--white); }
.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.form-input::placeholder { color: var(--muted2); }
.form-row-inline { display: flex; justify-content: space-between; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1.25rem; }
.auth-benefits { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.benefit-row  { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.benefit-check { color: var(--green); }
.benefit-lock  { font-size: 0.9rem; }

/* ═══════════════ ADMIN ═══════════════ */
.admin-section { padding: 2rem 0 4rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.asc-green { border-color: rgba(34,197,94,0.3); }
.asc-blue  { border-color: rgba(59,130,246,0.3); }
.asc-value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--white); }
.asc-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-table-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.admin-table-header h2 { font-size: 1rem; }
.table-count { font-size: 0.8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th { background: var(--bg-elevated); padding: 0.65rem 1rem; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.admin-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.015); }
.row-paid td { background: rgba(34,197,94,0.025); }
.td-id    { color: var(--muted2); width: 40px; }
.td-email { font-weight: 500; color: var(--white); }
.td-date  { color: var(--muted); white-space: nowrap; }
.td-empty { text-align: center; color: var(--muted); padding: 2rem; }
.tag-admin { font-size: 0.65rem; font-weight: 700; background: var(--blue-dim); color: #93c5fd; padding: 2px 6px; border-radius: 4px; margin-left: 6px; letter-spacing: 0.05em; }
.status-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.06em; }
.status-pro  { background: var(--green-subtle); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.status-free { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--muted); }
.td-actions  { white-space: nowrap; }
.btn-action { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: var(--radius-sm); border: none; cursor: pointer; margin-right: 0.3rem; transition: opacity .2s; }
.btn-action-green { background: var(--green-subtle); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.btn-action-red   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.btn-action-gray  { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--muted); }
.btn-action:hover { opacity: 0.8; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.4rem; }
.footer-tagline { font-size: 0.82rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: 0.72rem; color: var(--muted2); max-width: 480px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.65rem 1rem; }
  .navbar { position: relative; }

  .hero { padding: 2rem 1rem 1.5rem; }
  .hero-inner { flex-direction: column; }
  .hero-stats { width: 100%; justify-content: flex-start; }

  .games-grid { grid-template-columns: 1fr; }
  .upgrade-banner { flex-direction: column; align-items: flex-start; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .auth-card { padding: 1.75rem; }

  .pt-header, .pt-row { grid-template-columns: 1fr 48px 48px 44px 36px; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table th, .admin-table td { padding: 0.55rem 0.65rem; }
  .td-actions .btn-action { margin-bottom: 0.3rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .cta-card { padding: 2rem 1.25rem; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .model-factors { grid-template-columns: 1fr; }
}
