/* ========================================
   ChoppyBet - Client Styles
   Replaces Tailwind CSS for client mockups
   ======================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

/* ── Custom Properties ── */
:root {
  --primary: #135bec;
  --accent: #39ff14;
  --bg-dark: #0a0f18;
  --bg-dark-alt: #101622;
  --surface: #1a2235;
  --surface-darker: #151b2b;
  --border: #2a3655;
  --text-muted: #9da6b9;

  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-900-30: rgba(20, 83, 45, 0.3);
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-900-30: rgba(30, 58, 138, 0.3);
  --amber-400: #fbbf24;
  --amber-900-30: rgba(120, 53, 15, 0.3);
  --red-400: #f87171;
  --red-500: #ef4444;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --teal-600: #0d9488;
  --indigo-600: #4f46e5;
  --cyan-600: #0891b2;
  --orange-600: #ea580c;
  --amber-700-bg: #92400e;

  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --font: 'Lexend', sans-serif;
}

/* Login page overrides */
.page-login {
  --primary: #25f425;
  --bg-dark: #102210;
}

/* ── Base ── */
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--slate-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ── */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-2xs { font-size: 0.625rem; line-height: 0.875rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.015em; }
.tracking-wider { letter-spacing: 0.05em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }

/* ── Colors ── */
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-500 { color: var(--slate-500); }
.text-green-400 { color: var(--green-400); }
.text-green-500 { color: var(--green-500); }
.text-blue-500 { color: var(--blue-500); }
.text-amber-500 { color: var(--amber-500); }
.text-red-500 { color: var(--red-500); }

/* ── Layout ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Spacing ── */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ── Borders ── */
.border-b { border-bottom: 1px solid var(--border); }

/* ── Backgrounds ── */
.bg-primary { background: var(--primary); }

/* ── Shadows ── */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ── Transitions ── */
.transition { transition: all 0.2s ease; }

/* ════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════ */

/* ── Lucide Icon Sizing ── */
[data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--slate-800);
  background: rgba(10, 15, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 0.5rem 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 50;
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 3.5rem;
  padding-bottom: 0.5rem;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 64px;
  color: var(--slate-500);
  transition: color 0.2s;
}
.bottom-nav-item:hover {
  color: var(--slate-300);
}
.bottom-nav-item.active {
  color: var(--accent);
}
.bottom-nav-item [data-lucide] {
  width: 24px;
  height: 24px;
}
.bottom-nav-item.active [data-lucide] {
  stroke-width: 2.5;
}
.bottom-nav-label {
  font-size: 0.625rem;
  font-weight: 500;
}
.bottom-nav-item.active .bottom-nav-label {
  font-weight: 600;
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 40;
}
.page-header-alt {
  background: var(--surface-darker);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.page-header-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  flex: 1;
  text-align: center;
  padding-right: 2.5rem;
}
.header-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  flex: 1;
  text-align: center;
  color: var(--accent);
}
.header-icon-btn {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background 0.2s;
}
.header-icon-btn:hover {
  background: rgba(255,255,255,0.1);
}
.header-icon-btn-bg {
  background: var(--slate-800);
}
.header-icon-btn-bg [data-lucide],
.header-icon-btn [data-lucide] {
  color: var(--slate-300);
  width: 20px;
  height: 20px;
}
.notification-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--red-500);
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.card-lg {
  padding: 1.25rem;
}
.card-muted {
  background: var(--surface-darker);
  border-color: rgba(255,255,255,0.05);
  opacity: 0.8;
}

/* ── Stat Card ── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat-card-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.25;
}
.stat-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all 0.2s;
}
.btn [data-lucide] {
  width: 20px;
  height: 20px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: rgba(19, 91, 236, 0.9); }
.btn-accent {
  background: var(--accent);
  color: var(--slate-900);
  font-weight: 700;
  letter-spacing: 0.025em;
  height: 2.75rem;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}
.btn-accent:hover { transform: scale(1.02); }
.btn-accent:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
}
.btn-secondary:hover { background: var(--surface-darker); }
.btn-saved {
  background: var(--surface-darker);
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.3);
  cursor: default;
}
.btn-outline-danger {
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red-500);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-xl);
  padding: 1rem;
  font-weight: 700;
}
.btn-outline-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-lg);
}
.btn-outline-primary:hover { background: rgba(19, 91, 236, 0.1); }

/* ── Badge / Tag ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}
.badge-primary { background: rgba(19, 91, 236, 0.2); color: var(--primary); }
.badge-muted { background: rgba(157, 166, 185, 0.2); color: var(--text-muted); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--red-400); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-accent { background: rgba(57, 255, 20, 0.1); color: var(--accent); }
.badge-green { background: rgba(34, 197, 94, 0.1); color: var(--green-500); }
.badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--blue-500); }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber-500); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: var(--red-500); }
.badge-pill { border-radius: var(--radius-full); padding: 0.25rem 0.625rem; }
.badge-live { background: rgba(239, 68, 68, 0.2); color: var(--red-400); }
.badge-live::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--red-400);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── Points Badge (history) ── */
.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
}
.points-green { background: var(--green-900-30); color: var(--green-400); }
.points-blue { background: var(--blue-900-30); color: var(--blue-400); }
.points-amber { background: var(--amber-900-30); color: var(--amber-400); }
.points-muted { background: var(--slate-800); color: var(--slate-400); }

/* ── Form Input ── */
.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  outline: none;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}
.form-input::placeholder {
  color: var(--slate-500);
}
.form-input-icon {
  padding-left: 3rem;
}
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-500);
}
.input-icon [data-lucide] {
  width: 20px;
  height: 20px;
}

/* ── Score Input ── */
.score-input-wrap {
  border-radius: var(--radius-lg);
  background: var(--bg-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 3.5rem;
  height: 4rem;
  transition: all 0.2s;
}
.score-input-wrap:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: transparent;
}
.score-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  outline: none;
  padding: 0;
}
.score-input:focus { outline: none; box-shadow: none; }
.score-input::placeholder { color: var(--text-muted); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ── Flag Circle ── */
.flag { border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.flag-sm { width: 2.5rem; height: 2.5rem; background: rgba(255,255,255,0.1); border: 1px solid var(--border); }
.flag-md { width: 3rem; height: 3rem; background: rgba(255,255,255,0.1); }
.flag-lg { width: 3.5rem; height: 3.5rem; background: var(--surface-darker); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.flag-xl { width: 4rem; height: 4rem; background: rgba(255,255,255,0.1); }
.flag-emoji { font-size: 2rem; line-height: 1; }
.flag-emoji-lg { font-size: 2.5rem; }
.flag-grayscale { filter: grayscale(1); background: rgba(255,255,255,0.05); }

/* ── Avatar ── */
.avatar {
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.avatar-2xl { width: 8rem; height: 8rem; font-size: 2.25rem; }
.avatar-ring { box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.5); }

/* ── Result Row (history) ── */
.result-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background 0.2s;
}
.result-row:hover { background: rgba(30, 41, 59, 0.2); }
.result-row-faded { opacity: 0.75; }
.result-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Ranking Row ── */
.ranking-row {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(26, 34, 53, 0.5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(42, 54, 85, 0.5);
}
.ranking-row-self {
  background: rgba(19, 91, 236, 0.1);
  border-color: rgba(19, 91, 236, 0.3);
}
.ranking-pos {
  width: 2rem;
  display: flex;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ranking-row-self .ranking-pos { color: var(--primary); font-weight: 700; }

/* ── Settings Menu ── */
.settings-list {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: rgba(16, 22, 34, 0.5); }
.settings-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: rgba(19, 91, 236, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.settings-icon [data-lucide] {
  width: 14px;
  height: 14px;
}
.settings-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
}
.settings-chevron [data-lucide] {
  width: 20px;
  height: 20px;
}

/* ── Expandable section (profile) ── */
.expand-section {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 22, 34, 0.3);
  padding: 1rem;
}
.expand-section.open { display: block; }
.expand-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.expand-input {
  width: 100%;
  background: var(--bg-dark-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
}
.expand-input:focus {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}

/* ── Prediction row (match-detail) ── */
.prediction-row {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(26, 34, 53, 0.5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(42, 54, 85, 0.5);
}
.prediction-row-self {
  background: rgba(19, 91, 236, 0.1);
  border-color: rgba(19, 91, 236, 0.3);
}
.prediction-row-exact {
  border-color: var(--green-500);
  background: rgba(34, 197, 94, 0.06);
}
.prediction-row-diff {
  border-color: var(--amber-500);
  background: rgba(245, 158, 11, 0.06);
}
.prediction-row-winner {
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, 0.06);
}
.prediction-row-faded { opacity: 0.75; }

/* ── Distribution Bar ── */
.dist-bar {
  display: flex;
  width: 100%;
  height: 1rem;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dist-bar .green { background: var(--green-500); }
.dist-bar .blue { background: var(--blue-500); }
.dist-bar .red { background: var(--red-500); }

/* ── Countdown ── */
.countdown-box {
  background: var(--surface-darker);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
}
.countdown-unit {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}
.countdown-sep {
  color: var(--slate-500);
  padding: 0.25rem 0;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ── Podium (ranking) ── */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; margin-top: 1.5rem; }
.podium-col { display: flex; flex-direction: column; align-items: center; width: 33.333%; }
.podium-col-1 { margin-top: -1.5rem; z-index: 10; }
.podium-avatar { position: relative; margin-bottom: 0.5rem; }
.podium-crown { position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.podium-number {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.podium-name { font-size: 0.6875rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.podium-pts { font-size: 0.625rem; font-weight: 700; padding: 0.125rem 0.375rem; border-radius: var(--radius); }
.podium-bar {
  width: 100%;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podium-bar-num { font-weight: 900; opacity: 0.5; }

/* ── Toast (created dynamically) ── */
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.toast [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }
.toast-success { background: rgba(57,255,20,0.2); border-color: rgba(57,255,20,0.4); color: var(--accent); }
.toast-warning { background: rgba(234,179,8,0.2); border-color: rgba(234,179,8,0.4); color: var(--yellow-400); }
.toast-error { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: var(--red-400); }
.toast-info { background: rgba(19,91,236,0.2); border-color: rgba(19,91,236,0.4); color: var(--blue-400); }

/* ── Toast Container ── */
.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

/* ── Login Form Animations ── */
.form-section { transition: opacity 0.3s ease, transform 0.3s ease; }
.form-section.hidden-form { opacity: 0; transform: translateY(10px); pointer-events: none; position: absolute; width: 100%; }
.form-section.active-form { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }

/* ── Animations ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease-in-out; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 0.8s linear infinite; }

/* ── Accent glow card ── */
.card-accent-glow {
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.06);
}
.card-pending {
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: 0 4px 20px -5px rgba(57, 255, 20, 0.15);
}
.glow-bg {
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 10rem;
  height: 10rem;
  background: rgba(57, 255, 20, 0.1);
  border-radius: var(--radius-full);
  filter: blur(48px);
  pointer-events: none;
}

/* ── User highlight card (ranking) ── */
.user-highlight-card {
  position: fixed;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border);
  z-index: 10;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

/* ── Misc ── */
.grayscale { filter: grayscale(1); }
.score-separator { color: var(--text-muted); font-weight: 700; font-size: 1.125rem; }
.match-grid { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.team-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 0.5rem; }

/* ── Toggle Switch ── */
.switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--slate-600);
  transition: 0.3s;
  border-radius: var(--radius-full);
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  transition: 0.3s;
  border-radius: var(--radius-full);
}
.switch input:checked + .switch-slider {
  background-color: var(--primary);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(1.25rem);
}
