/* ============================================
   Mahakal Book — Premium Betting UI
   ============================================ */
:root {
  --bg-0: #07070d;
  --bg-1: #0a0a0f;
  --bg-2: #11111c;
  --surface: rgba(20, 20, 35, 0.55);
  --surface-strong: rgba(28, 28, 48, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5fa;
  --text-dim: #b8b8d0;
  --text-muted: #777795;
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-glow: 0 12px 50px -12px rgba(124, 58, 237, 0.55);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
}

[data-theme="dark"] {
  --accent-1: #4f46e5;
  --accent-2: #6366f1;
  --accent-3: #8b5cf6;
}
[data-theme="neon"] {
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
}
[data-theme="emerald"] {
  --accent-1: #10b981;
  --accent-2: #0ea5e9;
  --accent-3: #22d3ee;
}
[data-theme="purple"] {
  --accent-1: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #f43f5e;
}

/* ============================================
   LIGHT MODE
   ============================================ */
body[data-mode="light"] {
  --bg-0: #f4f5fb;
  --bg-1: #f7f8fc;
  --bg-2: #eceef6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 18, 40, 0.08);
  --border-strong: rgba(15, 18, 40, 0.18);
  --text: #15182b;
  --text-dim: #4b5072;
  --text-muted: #7a7f9d;
  --shadow-glow: 0 12px 40px -14px rgba(124, 58, 237, 0.35);
}
body[data-mode="light"] #bg-canvas { opacity: 0.45; mix-blend-mode: multiply; }
body[data-mode="light"] code { background: rgba(15, 18, 40, 0.06); }
body[data-mode="light"] .glass { backdrop-filter: blur(18px) saturate(1.1); }
body[data-mode="light"] input,
body[data-mode="light"] select,
body[data-mode="light"] textarea {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-color: var(--border-strong);
}
body[data-mode="light"] .modal-backdrop { background: rgba(15, 18, 40, 0.32); }
body[data-mode="light"] .status-pill { color: var(--text); }
body[data-mode="light"] .nav-btn { color: var(--text-dim); }
body[data-mode="light"] .nav-btn.active { color: var(--text); }

/* mode toggle in header */
.mode-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s ease;
}
.mode-toggle:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.auth-foot { display: flex; justify-content: center; margin-top: 14px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

a { color: var(--accent-2); text-decoration: none; }
code { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }

.muted { color: var(--text-dim); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.accent { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-gradient {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, color-mix(in oklab, var(--accent-1) 35%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 30%, color-mix(in oklab, var(--accent-2) 28%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, color-mix(in oklab, var(--accent-3) 22%, transparent) 0%, transparent 60%),
    var(--bg-0);
  animation: bg-drift 22s ease-in-out infinite alternate;
  filter: saturate(1.1);
}

@keyframes bg-drift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%; transform: scale(1); }
  50%  { background-position: 20% 30%, 70% 20%, 30% 80%; transform: scale(1.05); }
  100% { background-position: -10% 20%, 90% 40%, 60% 90%; transform: scale(1.02); }
}

#bg-canvas {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================
   GLASS / SURFACES
   ============================================ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.6);
}

.card { padding: 22px; }
.card h3, .card h4 { margin-bottom: 14px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { box-shadow: 0 16px 60px -10px color-mix(in oklab, var(--accent-1) 60%, transparent); transform: translateY(-1px); }

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn-block { width: 100%; }
.btn-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.btn-success { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.18s ease;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.09); }

/* ============================================
   INPUTS / FORMS
   ============================================ */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent-2) 60%, transparent);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2) 18%, transparent);
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 4px;
}
label > input, label > select, label > textarea { margin-top: 6px; }

label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
label.check input { width: auto; margin: 0; }

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }

/* ============================================
   AUTH SCREEN
   ============================================ */
.screen { min-height: 100vh; display: block; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  animation: fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand { text-align: center; margin-bottom: 28px; }
.brand-logo {
  display: inline-flex; gap: 4px; padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent-1) 60%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}
.logo-dot:nth-child(2) { animation-delay: 0.2s; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.logo-dot:nth-child(3) { animation-delay: 0.4s; background: linear-gradient(135deg, var(--accent-3), var(--accent-1)); }
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1; transform: scale(1.1); }
}

.brand-name {
  font-size: 2.6rem; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #e0e0ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.brand-name span {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tag { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.brand.small { display: inline-flex; align-items: center; gap: 10px; margin: 0; text-align: left; }
.brand.small .brand-logo { padding: 6px; margin: 0; gap: 3px; }
.brand.small .logo-dot { width: 6px; height: 6px; }
.brand.small strong { font-size: 1.2rem; font-family: 'Space Grotesk', sans-serif; }

.tabs {
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.tab {
  flex: 1; padding: 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim);
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  border-radius: 9px;
  transition: all 0.18s ease;
}
.tab.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 4px 16px -4px color-mix(in oklab, var(--accent-1) 70%, transparent);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
#demo-btn { margin-top: 4px; margin-bottom: 14px; }

/* ============================================
   APP HEADER
   ============================================ */
.app-header {
  position: sticky; top: 12px;
  margin: 12px 16px 0;
  border-radius: var(--radius);
  z-index: 50;
}
.app-header-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  flex-wrap: wrap;
}

.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim); padding: 9px 16px;
  border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  transition: all 0.18s ease;
}
.nav-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-btn.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.user-chip { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: flex; flex-direction: column;
  background: rgba(0,0,0,0.35);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.balance-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.balance-value { font-size: 1rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--accent-1) 70%, transparent);
}

/* ============================================
   APP MAIN
   ============================================ */
.app-main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px 60px;
}

.view { animation: fade-up 0.4s ease; }

.hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 24px;
}
.hero h2 { margin-bottom: 4px; }
.hero-stats { display: flex; gap: 12px; }
.stat-card {
  padding: 12px 18px;
  display: flex; flex-direction: column;
  min-width: 90px;
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.stat-value { font-size: 1.4rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.section-title { margin: 18px 0 14px; font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.match-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.match-card {
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.match-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -25px color-mix(in oklab, var(--accent-1) 60%, transparent); }

.match-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  opacity: 0.8;
}

.match-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.match-name { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.league-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent-1) 20%, transparent), color-mix(in oklab, var(--accent-2) 20%, transparent));
  border: 1px solid color-mix(in oklab, var(--accent-2) 30%, transparent);
  color: var(--text);
}

.deadline {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.deadline .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.5s infinite; }
.deadline.urgent .dot { background: var(--warning); box-shadow: 0 0 10px var(--warning); }
.deadline.closed .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: none; }

.match-actions { display: flex; gap: 10px; }
.match-actions .btn { flex: 1; }

.haar-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.25);
}

.match-result {
  text-align: center; padding: 14px;
  background: rgba(0,0,0,0.3); border-radius: 10px;
  font-weight: 600;
}
.match-result.head { color: #c4b5fd; }
.match-result.tail { color: #67e8f9; }

/* ============================================
   GRID 2
   ============================================ */
.grid-2 {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ============================================
   QR / DEPOSIT
   ============================================ */
.qr-block {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; margin-bottom: 18px;
  background: rgba(0,0,0,0.3); border-radius: 12px;
  border: 1px solid var(--border);
}
.qr-fake {
  width: 92px; height: 92px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 4px, transparent 4px 8px),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background-size: cover;
  background-position: center;
}
.upi-id { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }

/* ============================================
   LIST (history, admin lists)
   ============================================ */
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.list-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}
.list-item .li-main { display: flex; flex-direction: column; gap: 3px; }
.list-item .li-title { font-weight: 600; font-size: 0.95rem; }
.list-item .li-sub { font-size: 0.8rem; color: var(--text-muted); }

.amount-pos { color: #6ee7b7; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.amount-neg { color: #fca5a5; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

.status-pill {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
}
.status-pending  { background: rgba(245,158,11,0.15); color: #fcd34d; }
.status-approved { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.status-rejected { background: rgba(239,68,68,0.15); color: #fca5a5; }
.status-won      { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.status-lost     { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ============================================
   ADMIN
   ============================================ */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab {
  padding: 9px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.85rem;
}
.admin-tab.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white; border-color: transparent;
}

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 10px; }
.theme-swatch {
  position: relative;
  padding: 24px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--p1, #555), var(--p2, #888));
  color: white; font-weight: 700; cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease;
}
.theme-swatch:hover { transform: translateY(-2px); }

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  padding: 28px;
  border-radius: var(--radius-lg);
  animation: fade-up 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.4rem;
}
.modal-card h3 { margin-bottom: 4px; }

.coin-picker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 22px 0 18px;
}
.coin {
  aspect-ratio: 1.4 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.3rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.coin::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05));
  opacity: 0; transition: opacity 0.2s ease;
}
.coin:hover { transform: scale(1.03); border-color: var(--border-strong); color: var(--text); }
.coin:hover::before { opacity: 1; }
.coin.selected {
  border-color: var(--accent-2);
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent-1) 30%, transparent), color-mix(in oklab, var(--accent-2) 30%, transparent));
  color: white;
  box-shadow: 0 0 30px -5px color-mix(in oklab, var(--accent-2) 50%, transparent);
}

.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick-amounts button {
  padding: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  color: var(--text-dim); font-family: inherit; font-weight: 600; font-size: 0.85rem;
}
.quick-amounts button:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.08); }

/* ============================================
   TOAST
   ============================================ */
.toast-stack {
  position: fixed; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200; pointer-events: none;
  max-width: 360px;
}
.toast {
  padding: 14px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  animation: toast-in 0.3s cubic-bezier(0.2,0.8,0.2,1);
  pointer-events: auto;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5);
  font-size: 0.9rem;
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.fade-out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ============================================
   SKELETON
   ============================================ */
.skeleton {
  height: 160px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 720px) {
  .app-header { margin: 8px; top: 8px; }
  .app-header-inner { padding: 10px 12px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-btn { padding: 8px 12px; font-size: 0.85rem; }
  .balance-pill { padding: 4px 10px; }
  .balance-value { font-size: 0.9rem; }
  .hero { flex-direction: column; align-items: stretch; }
  .hero-stats { width: 100%; }
  .stat-card { flex: 1; min-width: 0; padding: 10px; }
  .stat-value { font-size: 1.1rem; }
  h2 { font-size: 1.3rem; }
  .auth-card { padding: 28px 22px; }
  .brand-name { font-size: 2rem; }
  .modal { padding: 12px; }
  .modal-card { padding: 22px 18px; }
  .coin { font-size: 1.05rem; }
}

/* ===== Team labels under HEAD/TAIL bet buttons ===== */
.bet-btn { display:flex; flex-direction:column; align-items:center; gap:2px; padding:14px 12px; line-height:1.15; }
.bet-btn .bet-side { font-weight:700; font-size:13px; letter-spacing:.06em; opacity:.85; }
.bet-btn .bet-team { font-weight:700; font-size:15px; }
.bet-btn .team-abbr { opacity:.7; font-size:12px; font-weight:500; }
.bet-btn .bet-odds { font-size:12px; opacity:.75; margin-top:2px; }

/* ===== Bet filter (admin) ===== */
.bet-filter { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.bet-filter .btn.active { outline:2px solid var(--accent, #7c3aed); }

/* ===== Support ticket thread ===== */
.ticket-thread { display:flex; flex-direction:column; gap:10px; max-height:340px; overflow:auto; padding:6px 2px; }
.ticket-msg { padding:10px 12px; border-radius:12px; max-width:88%; word-wrap:break-word; }
.ticket-msg-user  { background:rgba(124,58,237,.15); align-self:flex-end; border:1px solid rgba(124,58,237,.35); }
.ticket-msg-admin { background:rgba(16,185,129,.12); align-self:flex-start; border:1px solid rgba(16,185,129,.35); }
.ticket-msg-meta  { font-size:11px; opacity:.7; margin-bottom:4px; }
.ticket-msg-body  { white-space:pre-wrap; font-size:14px; }

/* ===== Admin badges ===== */
.badge { display:inline-block; min-width:18px; padding:0 6px; height:18px; line-height:18px;
         border-radius:9px; background:#ef4444; color:#fff; font-size:11px; font-weight:700; margin-left:4px; text-align:center; }
