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

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --blue:      #0066ff;
  --blue-dk:   #0052cc;
  --blue-mid:  #1a7fff;
  --blue-lt:   #b3d4ff;
  --blue-xlt:  #e6f0ff;
  --navy:      #141B2E;
  --navy-mid:  #1e2d4a;
  --bg:        #f1f5f9;
  --surface:   #ffffff;
  --border:    #e2e8f0;
  --text:      #0f172a;
  --muted:     #64748b;
  --green:     #22c55e;
  --green-dk:  #16a34a;
  --red:       #ef4444;
  --red-dk:    #dc2626;
  --gold:      #f59e0b;
  --gold-dk:   #d97706;
  --purple:    #8b5cf6;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
  --nav-h:     58px;
  --font:      'Inter', system-ui, sans-serif;

  /* Legacy aliases — keep so existing rules don't break */
  --cyan:          var(--blue);
  --cyan-dk:       var(--blue-dk);
  --cyan-lt:       var(--blue-lt);
  --cyan-xlt:      var(--blue-xlt);
  --accent:        var(--blue);
  --accent-hover:  var(--blue-dk);
  --accent-light:  var(--blue-lt);
  --accent-alt:    var(--gold);
  --accent-alt-dk: var(--gold-dk);
  --text-muted:    var(--muted);
  --surface-2:     var(--bg);
  --r:             var(--radius);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.08), 0 10px 30px rgba(0,0,0,0.10);
  --shadow-hover:  0 8px 25px rgba(0,102,255,0.15);
  --shadow-glow:   0 0 28px rgba(0,102,255,0.15);
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes pageFadeIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes slideUp     { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes popIn       { 0% { opacity:0; transform:scale(0.85); } 60% { transform:scale(1.06); } 100% { opacity:1; transform:scale(1); } }
@keyframes shake       { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
@keyframes firebeat    { 0%,100%{transform:scale(1);} 50%{transform:scale(1.25) rotate(5deg);} }
@keyframes mascotIn    { from{transform:translateY(120px);opacity:0;} to{transform:translateY(0);opacity:1;} }
@keyframes mascotIdle  { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
@keyframes bubblePop   { 0%{transform:scale(0);opacity:0;} 70%{transform:scale(1.1);} 100%{transform:scale(1);opacity:1;} }
@keyframes ballBounce  { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-20px) rotate(180deg);} }
@keyframes floatBall   { 0%,100%{transform:translateY(0) rotate(-12deg);} 50%{transform:translateY(-18px) rotate(-5deg);} }
@keyframes pulseLive   { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
@keyframes spinSlow    { to{transform:rotate(360deg);} }
@keyframes scoreBump   { 0%,100%{transform:scale(1);} 40%{transform:scale(1.35);} }
@keyframes celBounce   { 0%,100%{transform:translateY(0);} 40%{transform:translateY(-18px);} }
@keyframes xpPop       { 0%{transform:scale(0.7) translateY(0);opacity:0;} 40%{transform:scale(1.15) translateY(-12px);opacity:1;} 100%{transform:scale(1) translateY(-28px);opacity:0;} }

/* ── Nunito headings ───────────────────────────────────────────── */
h1, h2, h3, .stat-val, .stat-value, .navbar-brand {
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  font-weight: 800;
}

/* ── Base Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dk); }

img { max-width: 100%; }

/* ── Scrollbars ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Bootstrap Navbar Override ─────────────────────────────────── */
.navbar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  height: var(--nav-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container { height: 100%; flex-wrap: nowrap; }

.navbar-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff !important;
  letter-spacing: -0.3px;
}

.brand-badge {
  color: var(--gold);
  font-weight: 900;
  margin-left: 1px;
}

.brand-ball {
  width: 1.55em;
  height: 1.55em;
  vertical-align: -0.4em;
  margin-right: 6px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.navbar-dark .navbar-toggler { border-color: rgba(255,255,255,0.2); }
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c 255%2c 255%2c 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Dropdown Override ─────────────────────────────────────────── */
.dropdown-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  min-width: 200px;
}

.dropdown-item {
  color: var(--text);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.12s;
}

.dropdown-item:hover { background: var(--bg); color: var(--text); }
.dropdown-item.text-danger:hover { background: #fff1f1; }
.dropdown-divider { border-color: var(--border); }

/* ── Main Content ──────────────────────────────────────────────── */
main.container { animation: pageFadeIn 0.4s ease both; }

/* ── Utility ───────────────────────────────────────────────────── */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.sec-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.sec-link { font-size: 0.8rem; color: var(--cyan); font-weight: 600; }
.sec-link:hover { color: var(--cyan-dk); }

/* ── Bootstrap Card Override ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--text);
}

.card-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0 !important;
  font-weight: 600;
  color: var(--text);
}

.card-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: 0 0 calc(var(--r) - 1px) calc(var(--r) - 1px) !important;
  color: var(--muted);
}

/* ── Bootstrap Button Overrides ────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 0.35rem;
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 0 var(--cyan-dk);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--cyan-dk);
  color: #fff;
  box-shadow: 0 2px 0 #003d99;
  transform: translateY(2px);
}
.btn-primary:active { transform: translateY(4px); box-shadow: none; }

.btn-success {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-dk);
}
.btn-success:hover, .btn-success:focus {
  background: var(--green-dk);
  color: #fff;
  box-shadow: 0 2px 0 #047857;
  transform: translateY(2px);
}

.btn-warning {
  background: var(--gold);
  color: #0f172a;
  box-shadow: 0 4px 0 var(--gold-dk);
}
.btn-warning:hover, .btn-warning:focus {
  background: var(--gold-dk);
  color: #0f172a;
  box-shadow: 0 2px 0 #b45309;
  transform: translateY(2px);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 0 #b91c1c;
}
.btn-danger:hover, .btn-danger:focus {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 0 #991b1b;
  transform: translateY(2px);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
  box-shadow: 0 4px 0 #cbd5e1;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #cbd5e1;
  color: var(--text);
  box-shadow: 0 2px 0 #94a3b8;
  transform: translateY(2px);
}

.btn-outline-primary { border: 2px solid var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline-primary:hover { background: var(--cyan); color: #fff; }
.btn-outline-secondary { border: 2px solid #94a3b8; color: var(--muted); background: transparent; }
.btn-outline-secondary:hover { background: #94a3b8; color: #fff; }
.btn-outline-danger { border: 2px solid var(--red); color: var(--red); background: transparent; }
.btn-outline-danger:hover { background: var(--red); color: #fff; }
.btn-outline-success { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-success:hover { background: var(--green); color: #fff; }
.btn-outline-warning { border: 2px solid var(--gold); color: var(--gold-dk); background: transparent; }
.btn-outline-warning:hover { background: var(--gold); color: #0f172a; }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.3); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Generic button classes from mockup */
.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-dk);
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-green:hover { background: var(--green-dk); transform: translateY(2px); box-shadow: 0 2px 0 #047857; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.78rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Bootstrap Form Overrides ──────────────────────────────────── */
.form-control, .form-select {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
  background: var(--surface);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
  color: var(--text);
  outline: none;
}

.form-control::placeholder { color: #94a3b8; }
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 0.35rem; }
.form-text { color: var(--muted); font-size: 0.78rem; }

.form-check-input:checked {
  background-color: var(--cyan);
  border-color: var(--cyan);
}

/* ── Bootstrap Table Override ──────────────────────────────────── */
.table {
  color: var(--text);
  border-color: var(--border);
}

.table thead th {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
  padding: 0.75rem 1rem;
}

.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: rgba(0,102,255,0.03); }
.table tbody td { border-color: var(--border); padding: 0.75rem 1rem; vertical-align: middle; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(241,245,249,0.6); }
.table-dark { --bs-table-bg: var(--navy); color: #fff; }

/* ── Bootstrap Alert Override ──────────────────────────────────── */
.alert { border-radius: var(--r); border: none; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.alert-dismissible .btn-close { filter: none; opacity: 0.5; }

/* ── Bootstrap Badge Override ──────────────────────────────────── */
.badge {
  font-family: var(--font);
  font-weight: 700;
  border-radius: 6px;
  padding: 0.25em 0.55em;
}
.bg-primary   { background: var(--cyan) !important; }
.bg-success   { background: var(--green) !important; }
.bg-warning   { background: var(--gold) !important; color: #0f172a !important; }
.bg-danger    { background: var(--red) !important; }
.bg-secondary { background: #94a3b8 !important; }
.bg-info      { background: #38bdf8 !important; }
.text-warning { color: var(--gold) !important; }
.text-success { color: var(--green) !important; }
.text-danger  { color: var(--red) !important; }
.text-muted   { color: var(--muted) !important; }
.text-primary { color: var(--cyan) !important; }

/* ── Bootstrap List Group Override ────────────────────────────── */
.list-group-item {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.list-group-item:hover { background: var(--bg); }
.list-group-item.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

/* ── Bootstrap Progress Override ──────────────────────────────── */
.progress {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.78rem;
  margin-top: 3rem;
}

/* ── Auth Pages ────────────────────────────────────────────────── */
.auth-center {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.bg-deco {
  position: fixed;
  pointer-events: none;
  font-size: 5rem;
  opacity: 0.07;
  animation: floatBall 4s ease-in-out infinite;
}

.auth-box, .auth-card, .login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.4s ease both;
  position: relative;
  z-index: 1;
}

.auth-logo {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-title, .login-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.login-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.social-proof {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 1.5rem;
}

.login-divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1rem 0;
  position: relative;
}
.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

.login-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.auth-footer-link { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.auth-footer-link a { color: var(--cyan); font-weight: 600; }

.login-ball {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.75rem;
  animation: ballBounce 1.8s ease-in-out infinite;
  display: block;
}

.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 0; font-size: 1rem; line-height: 1;
}

/* ── New Nav Components ─────────────────────────────────────────── */
.streak-pill {
  display: flex; align-items: center; gap: 4px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  white-space: nowrap;
}

.streak-fire {
  display: inline-block;
  animation: firebeat 1.2s ease-in-out infinite;
}

.level-pill {
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.level-pill.tier-gold   { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #d97706; }
.level-pill.tier-legend { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.3); color: #7c3aed; }
.level-pill.tier-silver { background: rgba(148,163,184,0.15); border-color: rgba(148,163,184,0.3); color: #475569; }

.avatar-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.25);
  transition: transform 0.15s;
}
.avatar-btn:hover { transform: scale(1.08); }

/* ── XP Strip ──────────────────────────────────────────────────── */
#xp-strip {
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  padding: 7px 0;
}

.xp-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-label { font-size: 0.68rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.xp-val   { font-size: 0.68rem; font-weight: 900; color: var(--cyan); white-space: nowrap; }
.xp-track { flex: 1; height: 9px; background: #EBEBEB; border-radius: 999px; overflow: hidden; }
.xp-fill  { height: 100%; background: linear-gradient(90deg, var(--cyan) 0%, #3390ff 100%); border-radius: 999px; width: 0; transition: width 1.4s cubic-bezier(.25,.5,.25,1); }

/* ── Bottom Tabs (mobile) ──────────────────────────────────────── */
.bottom-nav, .bottom-tabs {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  padding-bottom: env(safe-area-inset-bottom);
}

.bnav-item, .tab-btn {
  flex: 1;
  display: flex;
  touch-action: manipulation;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.38);
  font-size: 0.625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  position: relative;
}

.bnav-item i, .tab-btn i { font-size: 1.375rem; }

.bnav-item.active, .tab-btn.active { color: var(--blue); }
.bnav-item:hover:not(.active), .tab-btn:hover:not(.active) { color: rgba(255,255,255,0.65); }

.bnav-item.active i, .tab-btn.active i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 7px rgba(0,102,255,0.7));
}

.bnav-item.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

/* FAB champion center tab */
.bnav-fab-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bnav-fab-link {
  width: 54px; height: 54px;
  background: var(--blue);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 -4px 20px rgba(0,102,255,0.5), 0 4px 0 var(--blue-dk);
  margin-bottom: 8px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.bnav-fab-link i { font-size: 1.625rem; color: #fff; }

.bnav-fab-link.active,
.bnav-fab-link:hover {
  box-shadow: 0 -6px 28px rgba(0,102,255,0.75), 0 4px 0 var(--blue-dk);
  transform: scale(1.05);
  color: #fff;
}

/* ── Dashboard: Streak Alert ───────────────────────────────────── */
.streak-alert {
  background: linear-gradient(135deg, #FFF9E1 0%, #FFFBF0 100%);
  border: 2px solid #FFE57A;
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease both;
}
.streak-alert-icon { font-size: 2rem; animation: firebeat 1.2s ease-in-out infinite; }
.streak-alert-text { flex: 1; }
.streak-alert-title { font-weight: 900; font-size: 0.9rem; color: #9A7000; }
.streak-alert-sub   { font-size: 0.75rem; font-weight: 700; color: #B8940A; }

/* ── Dashboard: Daily Banner ───────────────────────────────────── */
.daily-banner {
  background: linear-gradient(135deg, var(--cyan) 0%, #0052cc 100%);
  border-radius: var(--r);
  padding: 20px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.35s ease both;
  cursor: pointer;
  transition: transform 0.15s;
  text-decoration: none;
  display: block;
}
.daily-banner:hover { transform: translateY(-2px); color: #fff; }
.daily-banner::after {
  content: '⚽';
  position: absolute;
  right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 3.8rem; opacity: 0.18;
  animation: spinSlow 9s linear infinite;
}
.daily-tag {
  background: rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 0.63rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.daily-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 4px; }
.daily-sub   { font-size: 0.8rem; opacity: 0.88; font-weight: 700; margin-bottom: 14px; }
.daily-dots  { display: flex; gap: 5px; margin-bottom: 14px; }
.daily-dot   { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.30); transition: background 0.3s; }
.daily-dot.done    { background: #fff; }
.daily-dot.partial { background: rgba(255,255,255,0.65); }

/* ── Dashboard: Missions ───────────────────────────────────────── */
.missions-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  animation: slideUp 0.4s 0.06s ease both;
}
.missions-title {
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mission-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
}
.mission-row:last-child { border-bottom: none; }

.mission-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.mission-check.done { background: var(--green); border-color: var(--green); color: #fff; }

.mission-label { flex: 1; }
.mission-label.done { text-decoration: line-through; color: var(--muted); }
.mission-xp { font-size: 0.72rem; font-weight: 900; color: var(--cyan); }

/* ── Dashboard: Stat Grid ──────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: popIn 0.4s ease both;
}

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.ic-gold   { background: #fef3c7; }
.ic-blue   { background: #dbeafe; }
.ic-cyan   { background: var(--cyan-xlt); }
.ic-purple { background: #ede9fe; }
.ic-green  { background: #d1fae5; }

.vc-gold   { color: var(--gold-dk); }
.vc-blue   { color: #2563eb; }
.vc-cyan   { color: var(--cyan); }
.vc-purple { color: var(--purple); }
.vc-green  { color: var(--green-dk); }

.stat-val, .stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}
.stat-lbl, .stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}

/* Legacy stat card variants */
.stat-value--blue   { color: #2563eb; }
.stat-value--green  { color: var(--green-dk); }
.stat-value--gold   { color: var(--gold-dk); }
.stat-value--purple { color: var(--purple); }

.stage-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

/* ── Dashboard: Badges Strip ───────────────────────────────────── */
.badges-strip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  animation: slideUp 0.4s 0.30s ease both;
}
.badges-strip::-webkit-scrollbar { display: none; }
.badges-title { font-weight: 900; font-size: 0.82rem; white-space: nowrap; }

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F5F5F5;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.74rem;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}
.badge-chip:hover { transform: scale(1.07); box-shadow: 0 2px 8px rgba(0,0,0,.10); }

/* ── Dashboard: Two-col layout ─────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  align-items: start;
}

.main-col, .side-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slideUp 0.4s ease both;
}

.panel-hd {
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  font-size: 0.88rem;
}
.panel-hd-sub { font-size: 0.68rem; font-weight: 700; color: var(--muted); }

.see-all {
  display: block;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--blue);
  text-decoration: none;
  border-top: 1.5px solid var(--border);
  width: 100%;
  background: none;
  cursor: pointer;
}
.see-all:hover { background: #F0F8FF; color: var(--blue); }

/* ── Match List / Match Card ───────────────────────────────────── */
.match-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.match-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  animation: slideUp 0.4s ease both;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.match-card:hover { border-color: var(--cyan-lt); box-shadow: 0 4px 16px rgba(0,102,255,.10); transform: translateY(-1px); }
.match-card.done  { border-color: #C9F0A8; background: #FAFFF6; }
.match-card:nth-child(1){animation-delay:.08s} .match-card:nth-child(2){animation-delay:.16s} .match-card:nth-child(3){animation-delay:.24s}

.match-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 0.67rem; font-weight: 800; color: var(--muted); }

.stage-tag { background: #e6f0ff; color: #0052cc; padding: 2px 7px; border-radius: 6px; font-size: 0.63rem; font-weight: 900; }
.done-tag  { background: #E6F9D5; color: var(--green-dk); padding: 2px 7px; border-radius: 6px; font-size: 0.63rem; font-weight: 900; }
.live-tag  { background: var(--red); color: #fff; padding: 2px 7px; border-radius: 6px; font-size: 0.63rem; font-weight: 900; animation: pulseLive 1.4s ease-in-out infinite; }

.match-teams { display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }

.team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.team .team-name { font-weight: 800; font-size: 0.76rem; text-align: center; }

.flag { font-size: 2rem; line-height: 1; }

.vs-sep { padding: 0 8px; font-weight: 900; color: var(--muted); font-size: 0.9rem; }

.match-actions { display: flex; gap: 8px; justify-content: center; }

.pred-score {
  font-size: 1.45rem;
  font-weight: 900;
  padding: 0 6px;
  white-space: nowrap;
}

.top5-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.top5-row:last-child { border-bottom: none; }
.top5-row:hover { background: var(--bg); }

.result-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.result-row:last-child { border-bottom: none; }
.result-flags { display: flex; gap: 3px; flex-shrink: 0; }
.result-match { flex: 1; font-size: 0.78rem; font-weight: 700; color: var(--text); }
.result-match span { color: var(--muted); font-weight: 600; }

.result-badge {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.result-badge.correct  { background: #d1fae5; color: #065f46; }
.result-badge.wrong    { background: #fee2e2; color: #991b1b; }
.result-badge.pending  { background: var(--bg); color: var(--muted); }
.result-badge.exact    { background: #fef3c7; color: #92400e; }
.result-badge.rb-exact   { background: #FFF8D0; color: var(--gold-dk); }
.result-badge.rb-correct { background: #E6F9D5; color: var(--green-dk); }
.result-badge.rb-wrong   { background: #FFE8E8; color: var(--red); }

/* ── Matches Page: Filter Chips ────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  margin-bottom: 1.25rem;
}
.filter-row::-webkit-scrollbar { display: none; }

.f-chip {
  flex-shrink: 0;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.f-chip:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-xlt); }
.f-chip.active { border-color: var(--cyan); background: var(--cyan); color: #fff; }

.match-date-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.5rem;
}

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

/* ── Leaderboard: Podium ───────────────────────────────────────── */
.podium-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 1.5rem 0 0;
  margin-bottom: 1.5rem;
  animation: slideUp 0.4s ease both;
}

.podium-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
}

.podium-entry.p1 { order: 2; }
.podium-entry.p2 { order: 1; }
.podium-entry.p3 { order: 3; }

.podium-av {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  width: 48px; height: 48px; font-size: 1.1rem;
}

.p1 .podium-av { width: 64px; height: 64px; font-size: 1.4rem; background: linear-gradient(135deg, #FFD700, #FFA500); }
.p2 .podium-av { width: 54px; height: 54px; font-size: 1.2rem; background: linear-gradient(135deg, #BDC3C7, #95A5A6); }
.p3 .podium-av { width: 48px; height: 48px; font-size: 1rem;   background: linear-gradient(135deg, #CD7F32, #A0522D); }

.podium-crown {
  position: absolute;
  top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 1.1rem;
}

.podium-name { font-size: 0.72rem; font-weight: 900; color: var(--text); text-align: center; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; margin-top: 6px; }
.podium-pts  { font-size: 0.68rem; font-weight: 800; color: var(--cyan); margin-bottom: 5px; }

.podium-bar {
  width: 74px;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.25, 0.5, 0.25, 1) 0.4s;
  height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-weight: 900;
  font-size: 0.72rem;
  color: #fff;
}

.p1 .podium-bar { background: linear-gradient(0deg, #FFD700, #FFEC6E); }
.p2 .podium-bar { background: linear-gradient(0deg, #BDC3C7, #D5D8DB); }
.p3 .podium-bar { background: linear-gradient(0deg, #CD7F32, #E8A96A); }

.p1 .podium-bar.grown { height: 108px !important; }
.p2 .podium-bar.grown { height: 80px !important; }
.p3 .podium-bar.grown { height: 58px !important; }

/* Legacy podium (Bootstrap card style) */
.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.podium-medal { font-size: 1.8rem; margin-bottom: 0.25rem; }
.podium-pts--1 { color: var(--gold-dk); font-weight: 800; }
.podium-pts--2 { color: var(--cyan); font-weight: 800; }
.podium-pts--3 { color: #a0522d; font-weight: 800; }
.podium-card--1 { border-top: 3px solid var(--gold); }
.podium-card--2 { border-top: 3px solid var(--cyan); }
.podium-card--3 { border-top: 3px solid #cd7f32; }

/* Leaderboard table */
.col-heads {
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-radius: var(--r) var(--r) 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--bg); }

.cell-rank {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.cell-rank.rank-1 { color: var(--gold-dk); }
.cell-rank.rank-2 { color: var(--cyan); }
.cell-rank.rank-3 { color: #a0522d; }

.cell-player { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.player-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; font-weight: 700; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.player-name { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-streak { font-size: 0.65rem; color: var(--muted); }

.you-tag {
  font-size: 0.6rem; font-weight: 700;
  background: var(--cyan-xlt); color: var(--cyan);
  border-radius: 4px; padding: 1px 5px;
  margin-left: 4px;
}

/* ── Predictions Reveal ─────────────────────────────────────────── */
.locked-banner {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--cyan-xlt); color: var(--cyan-dk);
  border: 1px solid var(--cyan-lt);
  border-radius: var(--radius-sm); padding: 0.55rem 0.85rem;
  font-size: 0.82rem; font-weight: 700;
}

.reveal-details { margin-bottom: 0.5rem; font-family: inherit; }
.reveal-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.6rem; border-radius: 8px; font-size: 0.8rem; font-weight: 900; font-family: inherit; }
.reveal-details summary::-webkit-details-marker { display: none; }
.reveal-details summary::after { content: '▶'; font-size: 0.6rem; color: var(--muted); transition: transform 0.2s; margin-left: auto; }
details[open].reveal-details summary::after { transform: rotate(90deg); }

.av-stack { display: flex; }
.av-stack .player-av + .player-av { margin-left: -8px; border: 2px solid var(--surface); }

.pick-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.pick-row:last-child { border-bottom: none; }

.cell-pts    { font-weight: 700; color: var(--cyan); font-size: 0.88rem; }
.cell-exact  { font-weight: 600; color: var(--gold-dk); font-size: 0.82rem; }
.cell-correct{ font-weight: 600; color: var(--green-dk); font-size: 0.82rem; }

.lb-highlight { background: rgba(0,102,255,0.04) !important; }
.lb-rank { font-weight: 700; color: var(--muted); }
.lb-pts  { font-weight: 700; color: var(--cyan); }

/* ── Champion Page ─────────────────────────────────────────────── */
.champ-wrap { max-width: 480px; margin: 0 auto 2rem; }

.champ-pick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.champ-flag { font-size: 3.5rem; margin-bottom: 0.5rem; }
.champ-name { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.champ-sub  { font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; }

.search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.search-input, .champ-search-input {
  width: 100%;
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus, .champ-search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
}

.search-icon, .champ-search-icon {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.team-list-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.tg-head {
  padding: 0.5rem 1rem;
  background: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.t-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.t-item:last-child { border-bottom: none; }
.t-item:hover { background: var(--bg); }

.t-flag { font-size: 1.2rem; }
.t-name { font-size: 0.85rem; font-weight: 600; color: var(--text); flex: 1; }
.t-check { color: var(--cyan); font-size: 1rem; opacity: 0; transition: opacity 0.15s; }
.t-item.selected .t-check { opacity: 1; }
.t-item.selected { background: var(--cyan-xlt); }

/* Legacy champion components */
.champion-pick-card, .champ-picker-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.champ-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow-y: auto;
}

.champ-group-header {
  padding: 0.5rem 1rem;
  background: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.champ-team-option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.875rem;
}
.champ-team-option:hover { background: var(--bg); }
.champ-team-option.selected { background: var(--cyan-xlt); color: var(--cyan); }

.champ-pinned {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--cyan);
  border-radius: var(--r);
  background: var(--cyan-xlt);
  margin-bottom: 0.75rem;
}

.champ-pinned-flag { font-size: 2rem; }
.champ-pinned-name { font-size: 1rem; font-weight: 700; color: var(--cyan); }
.champ-pinned-group{ font-size: 0.75rem; color: var(--muted); }

/* Champion summary (distribution bar chart) */
.champ-summary { }
.champ-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.champ-summary-row:last-child { border-bottom: none; }
.champ-summary-team { font-size: 0.82rem; font-weight: 600; color: var(--text); min-width: 120px; display: flex; align-items: center; gap: 0.4rem; }
.champ-summary-bar-wrap { flex: 1; background: var(--border); border-radius: 100px; height: 8px; overflow: hidden; }
.champ-summary-bar { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 100px; transition: width 0.6s ease; }
.champ-summary-cnt { font-size: 0.78rem; font-weight: 700; color: var(--muted); min-width: 30px; text-align: right; }

/* ── Prediction Overlay ─────────────────────────────────────────── */
.predict-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--surface);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.predict-overlay.open { display: flex; animation: pageFadeIn 0.2s ease; }

.predict-sheet { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }

.flow-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}

.flow-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.flow-close:hover { background: var(--border); }

.flow-prog-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.flow-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 100px;
  transition: width 0.4s ease;
}

.flow-hearts { display: flex; gap: 4px; }
.heart { font-size: 0.9rem; opacity: 0.25; }
.heart.active { opacity: 1; }

.flow-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 24px; overflow-y: auto; }

.flow-step { display: none; width: 100%; max-width: 460px; }
.flow-step.active { display: flex; flex-direction: column; align-items: center; animation: slideUp 0.3s ease; }

.flow-q  { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.flow-mi { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.25rem; }

/* Score Picker */
.score-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.6rem 0;
}

.score-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.score-team-flag { font-size: 2rem; }
.score-team-name { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-align: center; max-width: 80px; }

/* Horizontal stepper: [−] score [+] */
.score-ctrl {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.s-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  touch-action: manipulation;
  background: var(--bg);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.s-btn:hover { background: var(--cyan-xlt); border-color: var(--cyan); color: var(--cyan); }
.s-btn:active { transform: scale(0.93); }

.score-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  min-width: 46px;
  text-align: center;
  line-height: 1;
  transition: transform 0.15s;
}
.score-num.bump { animation: scoreBump 0.3s ease; }

.score-sep { font-size: 1.4rem; font-weight: 900; color: var(--muted); }

.flow-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--border);
  flex-shrink: 0;
}

.flow-btn-area { max-width: 460px; margin: 0 auto; }

/* Celebrate step */
.celebrate {
  text-align: center;
  padding: 1.5rem 1rem;
}

.cel-icon { font-size: 4rem; animation: celBounce 0.8s ease infinite; margin-bottom: 0.5rem; }
.cel-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.cel-sub   { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

.xp-pop {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cyan);
  background: var(--cyan-xlt);
  border-radius: 10px;
  padding: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.cel-pred {
  background: var(--bg);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ── Daily Complete Overlay ─────────────────────────────────────── */
.daily-complete {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dc-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: popIn 0.5s ease both;
}

.dc-trophy { font-size: 4rem; margin-bottom: 0.75rem; animation: celBounce 1.2s ease-in-out infinite; }
.dc-title  { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.dc-sub    { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }

.dc-stats { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.dc-stat  { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dc-sv    { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.dc-sl    { font-size: 0.65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── XP Toast ──────────────────────────────────────────────────── */
.xp-toast {
  position: fixed;
  bottom: 80px;
  right: 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  z-index: 2500;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.xp-toast.show { transform: translateY(0); opacity: 1; }
.xp-toast-icon { font-size: 1.2rem; }
.xp-toast-val  { font-size: 1rem; font-weight: 800; color: var(--cyan-lt); }

/* ── Mascot ────────────────────────────────────────────────────── */
.mascot {
  position: fixed;
  bottom: 80px;
  left: 1.5rem;
  z-index: 2400;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: mascotIn 0.6s ease both;
}

.mascot.show { display: flex; }

.mascot-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  max-width: 160px;
  text-align: center;
  animation: bubblePop 0.4s ease both;
}

.mascot-ball {
  font-size: 2.5rem;
  animation: mascotIdle 2s ease-in-out infinite;
}

/* ── Existing Match Card Components (Group Stage) ──────────────── */
.match-tabs-wrap { overflow-x: auto; scrollbar-width: none; }
.match-tabs-wrap::-webkit-scrollbar { display: none; }

.match-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  min-width: max-content;
}

.mtab {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-family: var(--font);
}
.mtab:hover { color: var(--cyan); }
.mtab.active { color: var(--cyan); border-bottom-color: var(--cyan); font-weight: 700; }

.mtab-badge {
  background: var(--cyan);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
}

.mtab-prog { background: rgba(255,255,255,0.15); }

.date-scroll-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-scroll-outer::-webkit-scrollbar { display: none; }

.date-filter-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  width: max-content;
  min-width: 100%;
}

.date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  min-width: 56px;
}
.date-pill:hover { border-color: var(--cyan); }
.date-pill--today { border-color: var(--cyan); background: var(--cyan-xlt); }
.date-pill--today .date-pill-wd { color: var(--cyan); }
.date-pill--today .date-pill-dt { color: var(--cyan); }

.date-pill-wd { font-size: 0.62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.date-pill-dt { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.date-pill-cnt { font-size: 0.6rem; color: var(--muted); }

.ms-day-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

/* ── Group Stage Match Card ─────────────────────────────────────── */
.gs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.gs-card:hover { box-shadow: var(--shadow-hover); }

.gs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.gs-group-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--cyan-xlt);
  color: var(--cyan);
  border-radius: 5px;
  padding: 2px 6px;
  text-transform: uppercase;
}

.gs-kickoff { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.gs-teams-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 0.9rem;
  gap: 0.5rem;
}

.gs-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.gs-team:last-child { justify-content: flex-end; }

.gs-flag { font-size: 1.4rem; flex-shrink: 0; }
.gs-team-name { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gs-center { display: flex; align-items: center; justify-content: center; min-width: 60px; }

.gs-final-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.gs-vs {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  background: var(--bg);
  border-radius: 6px;
}

.gs-predict-row {
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.gs-pred-btn {
  width: 100%;
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  box-shadow: 0 3px 0 var(--cyan-dk);
}
.gs-pred-btn:hover { background: var(--cyan-dk); transform: translateY(1px); box-shadow: 0 2px 0 #003d99; }

.gs-pred-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--cyan-xlt);
  border: 1.5px solid var(--cyan-lt);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}
.gs-pred-edit:hover { background: var(--cyan-lt); color: var(--cyan-dk); }

.gs-pred-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gs-pred-tag        { font-size: 0.72rem; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; }
.gs-pred-tag-locked,
.gs-pred-tag--locked  { font-size: 0.72rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.gs-pred-tag-exact,
.gs-pred-tag--exact   { color: var(--gold-dk); font-weight: 700; }
.gs-pred-tag-correct,
.gs-pred-tag--correct { color: #16a34a; font-weight: 700; }
.gs-pred-tag-wrong,
.gs-pred-tag--wrong   { color: var(--red); font-weight: 700; }
.gs-pred-tag-pending,
.gs-pred-tag--saved   { color: var(--cyan); }
.gs-pred-tag--missed  { color: var(--muted); }

.gs-lock-warn {
  font-size: 0.68rem;
  color: var(--gold-dk);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.4rem 0.9rem;
  border-top: 1px solid var(--border);
  background: #fffbeb;
}

.gs-save-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.gs-score-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.gs-score-dash { color: var(--muted); font-weight: 700; }

.gs-save-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  box-shadow: 0 3px 0 var(--green-dk);
}
.gs-save-btn:hover { background: var(--green-dk); transform: translateY(1px); }

/* ── Bracket Match Card ─────────────────────────────────────────── */
.ko-round-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.ko-round-tabs::-webkit-scrollbar { display: none; }

.ko-rtab {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: var(--font);
}
.ko-rtab:hover { color: var(--cyan); }
.ko-rtab.active { color: var(--cyan); border-bottom-color: var(--cyan); font-weight: 700; }

.ko-pane { display: none; }
.ko-pane.active { display: block; }

.pred-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.pred-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.bkt-scroll-hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}

.bkt-scroll-wrap { overflow-x: auto; padding-bottom: 1rem; }

.bkt-tree {
  display: flex;
  gap: 0;
  min-width: max-content;
}

.bkt-col {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
}

.bkt-col-hd {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.bkt-col-body {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

.bkt-pair { padding: 0.25rem 0.5rem; }
.bkt-slot { padding: 0.25rem 0; }

.bkt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.bkt-card:hover { box-shadow: var(--shadow-hover); }

.bkt-team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.bkt-team-row:last-of-type { border-bottom: none; }
.bkt-team-row.winner { background: var(--cyan-xlt); }

.bkt-flag { font-size: 1rem; flex-shrink: 0; }
.bkt-name { font-size: 0.78rem; font-weight: 600; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkt-score { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.bkt-meta { padding: 0.35rem 0.65rem; background: var(--bg); display: flex; align-items: center; justify-content: space-between; }
.bkt-time { font-size: 0.62rem; color: var(--muted); }
.bkt-locked { font-size: 0.62rem; color: var(--gold-dk); }

.bkt-score-box {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bkt-save-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  box-shadow: 0 2px 0 var(--green-dk);
}

.bkt-act-btn {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  font-family: var(--font);
  box-shadow: 0 2px 0 var(--cyan-dk);
}

.pm-wager-pill {
  padding: 0.2rem 0.55rem;
  touch-action: manipulation;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font);
}
.pm-wager-pill:hover:not(:disabled) { border-color: #f59e0b; color: var(--text); }
.pm-wager-pill.active { border-color: #f59e0b; background: #fffbeb; color: #d97706; }
.pm-wager-pill:disabled { opacity: 0.38; cursor: not-allowed; }

.bkt-pts {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-dk);
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 5px;
}

.bkt-tbd { color: var(--muted); font-style: italic; font-size: 0.78rem; }

.bkt-conn { display: flex; align-items: stretch; }
.bkt-conn-body { display: flex; flex-direction: column; }
.bkt-conn-cell { flex: 1; border-right: 2px solid var(--border); }

/* ── Empty State ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.empty-state p { color: var(--muted); font-size: 0.9rem; }

/* ── Predict Page (standalone) ─────────────────────────────────── */
.predict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 0 auto;
}

.predict-card-header {
  background: var(--navy);
  padding: 1.25rem;
  text-align: center;
  color: #fff;
}

.predict-card-body { padding: 1.5rem; }

.predict-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.predict-flag { font-size: 2.5rem; }
.predict-team-name { font-size: 0.875rem; font-weight: 700; color: var(--text); text-align: center; }
.predict-team-grp { font-size: 0.72rem; color: var(--muted); }
.predict-vs { font-size: 1.2rem; font-weight: 800; color: var(--muted); }

.pm-score-box { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin: 1rem 0; }
.predict-score-input {
  width: 70px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
}
.predict-score-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }

.score-stepper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stepper-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
}
.stepper-btn:hover { background: var(--cyan-xlt); border-color: var(--cyan); }
.stepper-inc { }

.predict-info-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.predict-dash { color: var(--muted); font-size: 1.2rem; font-weight: 800; }

/* ── My Predictions ─────────────────────────────────────────────── */
.pred-filter-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.pred-filter-tabs::-webkit-scrollbar { display: none; }

.pred-ftab {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pred-ftab:hover { color: var(--cyan); }
.pred-ftab.active { color: var(--cyan); border-bottom-color: var(--cyan); font-weight: 700; }

.pred-ftab-cnt {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
}
.pred-ftab.active .pred-ftab-cnt { background: var(--cyan); border-color: var(--cyan); color: #fff; }

.pred-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.pred-stat-val { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.pred-stat-lbl { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.pred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
  margin-bottom: 0.75rem;
}
.pred-card:hover { box-shadow: var(--shadow-hover); }

.pred-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.pred-card-stage { font-size: 0.65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pred-card-date  { font-size: 0.72rem; color: var(--muted); }

.pred-card-match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
}

.pred-card-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pred-card-scores {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  padding: 0 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.pred-card-pick   { font-size: 0.72rem; color: var(--muted); }
.pred-card-result { font-size: 0.72rem; color: var(--text); font-weight: 600; }

.pred-card-pts { font-size: 0.78rem; font-weight: 700; padding: 0.4rem 0.9rem; display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--border); }
.pred-card-pts--exact   { color: var(--gold-dk); }
.pred-card-pts--correct { color: var(--green-dk); }
.pred-card-pts--wrong   { color: var(--red); }
.pred-card-pts--pending { color: var(--muted); }

.pred-card-action {
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.more-days-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1rem 0;
}

/* Mascot widget (floating bottom-right) */
.mascot-wrap {
  position: fixed;
  bottom: 80px;
  right: 1.25rem;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  animation: mascotIn 0.6s ease both;
}

.mascot-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  max-width: 180px;
  text-align: center;
  position: relative;
}

.mascot-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 6px;
  padding: 0;
  line-height: 1;
}
.mascot-close:hover { color: var(--text); }

.mascot-ball {
  font-size: 2.5rem;
  cursor: pointer;
  animation: mascotIdle 2s ease-in-out infinite;
  align-self: flex-end;
}

/* Daily complete overlay */
.daily-complete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(6px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.daily-complete-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-md);
  animation: popIn 0.5s ease both;
}

/* ── Admin Overrides ────────────────────────────────────────────── */
.admin-header {
  background: var(--navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r) var(--r) 0 0;
}
.admin-header h1, .admin-header h2 { color: #fff; }

/* ── Responsive: tablet ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive: mobile (768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  body { padding-bottom: 80px; }
  main.container { padding-top: 0.75rem; padding-bottom: 1rem; }

  /* Layout */
  .two-col { grid-template-columns: 1fr; }
  .side-col { order: 3; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat-val, .stat-value { font-size: 1.3rem; }
  .stat-card { border-radius: 16px; min-height: 100px; }

  /* ── Login ── */
  .auth-center {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    min-height: 100vh;
    padding: 0;
    align-items: flex-start;
  }
  .auth-box, .auth-card, .login-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 100%;
  }
  .bg-deco { display: none; }
  .login-ball {
    font-size: 72px;
    animation: floatBall 3s ease-in-out infinite;
    display: block;
    text-align: center;
    margin-bottom: 14px;
  }
  .login-title {
    display: none;
  }
  .login-sub {
    display: none;
  }
  .login-hero-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  .login-headline {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.65rem;
    color: #fff;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
  }
  .login-headline-blue { color: var(--blue-mid); }
  .login-social-proof {
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #fde68a;
    text-align: center;
  }
  .social-proof { display: none; }
  .auth-footer-link, .login-note {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
  }
  .auth-footer-link a { color: rgba(255,255,255,0.85); }
  .form-label { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
  .form-control {
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.12);
    color: #fff;
  }
  .form-control::placeholder { color: rgba(255,255,255,0.3); }
  .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0,102,255,0.25);
  }
  .pw-toggle { color: rgba(255,255,255,0.4); }
  .pw-toggle:hover { color: rgba(255,255,255,0.8); }
  .btn-primary, .btn.btn-primary {
    box-shadow: 0 5px 0 var(--blue-dk);
    transition: transform 0.1s, box-shadow 0.1s;
  }
  .btn-primary:active, .btn.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--blue-dk);
  }

  /* ── Dashboard hero ── */
  .home-hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 0 0 20px 20px;
    padding: 14px 20px 20px;
    margin: -12px -12px 16px;
  }
  .home-greeting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .home-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
  }
  .home-greeting-text { flex: 1; }
  .home-greeting {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
  }
  .home-sub { font-size: 0.73rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
  .home-notif {
    font-size: 1.3rem;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
  }
  .home-chips {
    display: flex;
    gap: 8px;
  }
  .home-chip {
    flex: 1;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
  }
  .chip-val {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.1;
  }
  .chip-val.gold { color: var(--gold); }
  .chip-val.green { color: #4ade80; }
  .chip-lbl { font-size: 0.66rem; color: rgba(255,255,255,0.5); margin-top: 2px; font-weight: 600; }

  /* ── Dashboard: horizontal match scroll ── */
  .match-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .match-list::-webkit-scrollbar { height: 3px; }
  .match-card { min-width: 160px; flex-shrink: 0; border-radius: 14px; }

  /* ── Daily banner pain-point fix ── */
  .daily-banner { border-radius: 18px; }

  /* ── Matches ── */
  .match-grid { grid-template-columns: 1fr; }
  .predict-sheet {
    border-radius: 24px 24px 0 0;
    position: relative;
  }
  .predict-sheet::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(0,0,0,.15);
    border-radius: 2px;
    margin: 0 auto 12px;
  }
  .score-stepper-btn { min-width: 48px; min-height: 48px; font-size: 1.4rem; }
  .bkt-col { width: 170px; }

  /* ── Leaderboard ── */
  .podium-wrap { overflow-x: auto; min-width: 280px; }
  .podium-entry { width: 90px; }
  .podium-av { width: 40px; height: 40px; font-size: 0.9rem; }

  /* Leaderboard mobile card list */
  .lb-mobile-list {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .lb-mobile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 52px;
  }
  .lb-mobile-row:last-child { border-bottom: none; }
  .lb-mobile-row.me {
    background: var(--blue-xlt);
    border-left: 3px solid var(--blue);
  }
  .lb-mobile-rank {
    min-width: 28px;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
  }
  .lb-mobile-av {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text);
    flex-shrink: 0;
  }
  .lb-mobile-info { flex: 1; min-width: 0; }
  .lb-mobile-name {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lb-mobile-sub { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }
  .lb-mobile-pts {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--text);
    flex-shrink: 0;
  }

  /* ── Champion ── */
  .champ-group-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 14px 0 8px;
  }
  .champ-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
  }
  .champ-team-tile {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
  }
  .champ-team-tile:hover { background: var(--blue-xlt); border-color: var(--blue-lt); }
  .champ-team-tile.selected {
    background: var(--blue-xlt);
    border-color: var(--blue);
    color: var(--blue);
  }
  .champ-tile-check { margin-left: auto; color: var(--blue); font-weight: 900; }
  .champ-mobile-current {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--blue-xlt);
    border: 1.5px solid var(--blue-lt);
    border-radius: 14px;
    padding: 12px 16px;
  }
  .champ-mobile-current .champ-pinned-name { font-weight: 700; font-size: 0.9rem; color: var(--blue); }
  .champ-mobile-current .champ-pinned-group { font-size: 0.72rem; color: var(--muted); }

  /* ── My Picks ── */
  .pred-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pred-card { border-radius: 16px; border: 1.5px solid var(--border); padding: 14px 16px; margin-bottom: 10px; }
  .pred-filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .pred-filter-tabs::-webkit-scrollbar { height: 3px; }

  /* ── Profile ── */
  .profile-mobile-header {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 0 0 24px 24px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: -12px -12px 20px;
  }
  .profile-mobile-av {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.65rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,102,255,.35);
    margin-bottom: 12px;
  }
  .profile-mobile-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .profile-mobile-email { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
  .profile-rank-pill {
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fde68a;
  }
  .profile-menu {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.12s;
  }
  .profile-menu-item:last-child { border-bottom: none; }
  .profile-menu-item:hover { background: var(--bg); color: var(--text); }
  .profile-menu-icon { font-size: 1.15rem; width: 24px; text-align: center; }
  .profile-menu-label { flex: 1; }
  .profile-menu-arrow { color: var(--muted); font-size: 1.15rem; }
  .btn-logout-mobile {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    background: rgba(239,68,68,.08);
    border: 1.5px solid rgba(239,68,68,.2);
    border-radius: var(--radius);
    color: var(--red);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
  }
  .btn-logout-mobile:hover { background: rgba(239,68,68,.14); color: var(--red-dk); }

  /* ── How to Play ── */
  .htp-step-card {
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .htp-num {
    width: 36px; height: 36px;
    background: var(--blue);
    border-radius: 11px;
    box-shadow: 0 3px 0 var(--blue-dk);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
  }
  .htp-score-table { border-radius: 16px; overflow: hidden; }
  .htp-score-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    font-size: 0.85rem;
  }
  .htp-score-row:last-child { border-bottom: none; }
  .badge-list-item { min-height: 52px; }

  /* How to Play — polish existing cards */
  .col-lg-8 .card { border-radius: 16px; margin-bottom: 12px; }
  .col-lg-8 .card-header { border-radius: 14px 14px 0 0 !important; font-size: 0.9rem; }
  .col-lg-8 .list-group-item { font-size: 0.85rem; }
}

/* ── Mobile predict cards (Matches page) ────────────────────────── */
.predict-card-m {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.predict-card-m.pcm-done { border-color: var(--green); background: #f0fdf4; }

.pcm-header { margin-bottom: 12px; }
.pcm-stage {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pcm-live { color: #ef4444; font-weight: 900; }
.pcm-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

.pcm-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pcm-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pcm-flag {
  width: 52px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.pcm-team-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
}
.pcm-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 6px;
}
.pcm-vs { font-size: 13px; font-weight: 900; color: var(--muted); }
.pcm-result {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}
.pcm-result-pred {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--blue);
}

.pcm-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.pcm-stepper { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.pcm-stepper-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pcm-stepper-ctrl { display: flex; align-items: center; gap: 8px; }
.pcm-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  color: var(--text);
  transition: background .1s, transform .1s;
}
.pcm-step:active { background: var(--bg); transform: scale(0.91); }
.pcm-score-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}
.pcm-sep { font-size: 22px; font-weight: 900; color: var(--muted); flex-shrink: 0; padding: 0 2px; }

.pcm-confirm-btn {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--blue-dk);
  touch-action: manipulation;
  transition: transform .1s, box-shadow .1s;
}
.pcm-confirm-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-dk); }
.pcm-confirm-btn:disabled { background: var(--muted); box-shadow: none; cursor: default; }

/* Mobile extras: joker + wager */
.pcm-extras {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 0 4px;
}
.pcm-joker-lbl {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7c3aed;
  cursor: pointer;
  white-space: nowrap;
}
.pcm-joker-lbl input { accent-color: #7c3aed; width: 15px; height: 15px; }
.pcm-wager-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.pcm-wager-lbl { font-size: 0.72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pcm-wager-pill {
  padding: 0.18rem 0.5rem;
  touch-action: manipulation;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.12s;
}
.pcm-wager-pill.active { border-color: #f59e0b; background: #fffbeb; color: #d97706; }
.pcm-wager-pill:disabled { opacity: 0.38; cursor: not-allowed; }

.pcm-locked-row {
  text-align: center;
  padding: 10px 0 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.pcm-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.pcm-pick-lbl { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.pcm-missed { color: var(--red); }
.pcm-pts-badge {
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
}
.pcm-pts-badge.exact   { background: rgba(245,158,11,.15); color: var(--gold); }
.pcm-pts-badge.correct { background: rgba(34,197,94,.15);  color: var(--green-dk); }
.pcm-pts-badge.wrong   { background: rgba(239,68,68,.1);   color: var(--red); }

/* ── Dashboard compact match teasers (mobile) ───────────────────── */
.mt-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.mt-scroll::-webkit-scrollbar { display: none; }

.match-teaser {
  min-width: 128px;
  max-width: 148px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: transform .12s;
}
.match-teaser:active { transform: scale(0.97); }
.match-teaser.needs-pick {
  background: var(--blue-xlt);
  border-color: var(--blue);
}
.match-teaser.picked {
  background: #f0fdf4;
  border-color: var(--green);
}
.mt-group {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.mt-teams {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mt-flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
}
.mt-vs {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
}
.mt-cta {
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
}
.mt-cta--predict { color: var(--blue); background: rgba(0,102,255,.1); }
.mt-cta--picked  { color: var(--green-dk); background: rgba(34,197,94,.1); }
.mt-cta--locked  { color: var(--muted); background: var(--bg); }

/* ── Responsive: small phones (400px) ───────────────────────────── */
@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .daily-banner { padding: 16px; }
  .daily-banner::after { display: none; }
}

/* ── Insights — Betting Floor ──────────────────────────────────── */
/* Additive only. Mobile-first; reuses --cyan/--red/--gold/--muted tokens
   and the existing .panel / .panel-hd / .stat-card / .btn vibe.
   Never introduces a 3-column .two-col variant. */

.insights-intro { margin-bottom: 14px; }
.insights-title {
  font-family: 'Nunito', var(--font);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--text);
}
.insights-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

/* Shared empty state for sparse early-tournament data */
.insights-empty { text-align: center; padding: 26px 18px; }
.insights-empty-emoji { font-size: 2rem; line-height: 1; }
.insights-empty-text {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
}

/* (a) Action Feed — the hero */
.insights-hero {
  border-color: var(--cyan-lt);
  box-shadow: var(--shadow-glow), var(--shadow);
}
.insights-hero .panel-hd {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  border-bottom: none;
}
.insights-hero .panel-hd-sub { color: rgba(255,255,255,0.6); }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulseLive 1.2s ease-in-out infinite;
}

.action-feed { display: flex; flex-direction: column; }
.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  animation: slideUp 0.35s ease both;
  transition: background 0.15s;
}
.action-item:last-child { border-bottom: none; }
.action-item:hover { background: var(--cyan-xlt); }
.action-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
  width: 30px;
  text-align: center;
}
.action-text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.35;
}
.insights-cta { flex: 0 0 auto; white-space: nowrap; font-weight: 800; }

/* (b) Roast of the Day — flat divider-separated rows, no boxes */
.roast-list { display: flex; flex-direction: column; }
.roast-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.roast-card:last-child { border-bottom: none; }
.roast-icon { font-size: 1.1rem; line-height: 1.35; flex: 0 0 auto; }
.roast-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

/* (c) Archetypes — compact cell grid, hairline separators (no nested boxes) */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}
.archetype-card {
  --ac: #64748b;                       /* accent, overridden per archetype below */
  background: var(--surface);
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.archetype-card:hover { background: var(--cyan-xlt); }
.archetype-emoji { font-size: 1.55rem; line-height: 1; }
.archetype-player {
  margin-top: 5px;
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
}
.archetype-name {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: 'Nunito', var(--font);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ac);
}
.archetype-sheet {
  margin-top: 5px;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
/* Per-archetype accent colors — variety carried by the pill. */
.arch-oracle       { --ac: #8b5cf6; }
.arch-statistician { --ac: #0066ff; }
.arch-gambler      { --ac: #16a34a; }
.arch-chaos        { --ac: #ef4444; }
.arch-patriot      { --ac: #0891b2; }
.arch-sheep        { --ac: #94a3b8; }
.arch-rookie       { --ac: #f59e0b; }

/* (d) Tactics leaderboards — flat lists, no per-card box */
.tactics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 22px;
  padding: 6px 16px 14px;
}
.tactics-card { padding: 10px 0 2px; }
.tactics-hd {
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.tactics-empty {
  padding: 10px 2px;
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--muted);
}
.tactics-list { list-style: none; margin: 0; padding: 0; }
.tactics-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.tactics-row:last-child { border-bottom: none; }
.tactics-rank {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan-xlt);
  color: var(--cyan-dk);
  font-weight: 900;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tactics-row:first-child .tactics-rank { background: var(--gold); color: #0f172a; }
.tactics-player {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tactics-value {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--cyan-dk);
}

/* (e) Crowd vs Reality — flat divider rows, no boxes */
.crowd-list { display: flex; flex-direction: column; }
.crowd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.crowd-item:last-child { border-bottom: none; }
.crowd-icon { font-size: 1.1rem; line-height: 1.35; flex: 0 0 auto; }
.crowd-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

/* Desktop / wider screens */
@media (min-width: 640px) {
  .insights-title { font-size: 1.7rem; }
  .archetype-grid { grid-template-columns: repeat(3, 1fr); }
  .tactics-grid   { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .archetype-grid { grid-template-columns: repeat(4, 1fr); }
}
