:root {
  --bg-deep:  #050818;
  --bg-1:     #0a0e27;
  --bg-2:     #1b1f4a;
  --surface:  rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border:   rgba(255, 255, 255, 0.16);
  --border-2: rgba(255, 255, 255, 0.28);
  --ink:      #f3f5fb;
  --ink-soft: #b5bcd6;
  --ink-mute: #8089a8;

  --primary:    #ff3d71;       /* hot pink */
  --primary-2:  #ff6b9c;
  --accent:     #00e0c7;       /* teal accent */
  --gold:       #ffd166;
  --ok:         #25d186;
  --warn:       #ffb84d;
  --danger:     #ff5b6e;

  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
  --glow-primary: 0 0 30px rgba(255, 61, 113, .45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, #2b1e5a 0%, transparent 55%),
    radial-gradient(ellipse at 100% 30%, #6a1145 0%, transparent 45%),
    radial-gradient(ellipse at 0% 30%, #0c4a6e 0%, transparent 50%),
    linear-gradient(180deg, #050818 0%, #0a0e27 50%, #050818 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

/* ================= Stadium background ================= */
.stadium-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.stadium-svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  opacity: 0.85;
}
.floodlight {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: pulse 4s ease-in-out infinite;
}
.floodlight-1 { background: radial-gradient(circle, #ff3d71 0%, transparent 60%); top: -200px; left: -150px;  animation-delay: 0s; }
.floodlight-2 { background: radial-gradient(circle, #00e0c7 0%, transparent 60%); top: -180px; right: -150px; animation-delay: 1s; }
.floodlight-3 { background: radial-gradient(circle, #ffd166 0%, transparent 60%); top: 30%;     left: 30%;    animation-delay: 2s;  opacity: 0.3; width: 500px; height: 500px; }
.floodlight-4 { background: radial-gradient(circle, #6c5ce7 0%, transparent 60%); top: 10%;     right: 20%;   animation-delay: 1.5s; opacity: 0.35; width: 600px; height: 600px; }

@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 0.40; }
  50%      { transform: scale(1.10); opacity: 0.55; }
}

.bg-ball {
  position: absolute;
  top: 50%; left: 50%;
  width: min(80vw, 720px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 60px rgba(255, 209, 102, 0.25));
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  .bg-ball { width: 110vw; opacity: 0.17; }
}

.firework {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
     0 0 0 2px rgba(255,255,255,.6),
    20px -20px 0 -2px var(--gold),
   -20px -20px 0 -2px var(--primary),
    20px  20px 0 -2px var(--accent),
   -20px  20px 0 -2px #ff6b9c,
     30px   0  0 -2px var(--gold),
    -30px   0  0 -2px var(--accent),
      0   -30px 0 -2px var(--primary),
      0    30px 0 -2px #ff6b9c;
  animation: firework 5s ease-out infinite;
}
.fw1 { top: 12%; left: 18%; animation-delay: 0.5s; }
.fw2 { top: 22%; right: 22%; animation-delay: 2.5s; }
.fw3 { top:  8%; left: 60%;  animation-delay: 4.2s; }

@keyframes firework {
  0%   { transform: scale(0); opacity: 0; }
  10%  { transform: scale(0.4); opacity: 1; }
  60%  { transform: scale(3.5); opacity: 0.7; }
  100% { transform: scale(5);   opacity: 0; }
}

/* ================= Ticker ================= */
.ticker {
  background: linear-gradient(90deg, #c41360, var(--primary) 25%, var(--primary) 75%, #c41360);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  position: relative;
  z-index: 51;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 50s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  padding: 9px 50px;
  white-space: nowrap;
  display: inline-block;
}
.ticker-item a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}
.ticker-item a:hover { text-decoration: underline; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .ticker { font-size: 12px; }
  .ticker-item { padding: 8px 30px; }
  .ticker-track { animation-duration: 40s; }
}

/* ================= Topbar ================= */
.topbar {
  background: rgba(10, 14, 39, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}
.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .ball {
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, .8));
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0)    rotate(0); }
  50%      { transform: translateY(-3px) rotate(-15deg); }
}
.brand-text strong {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 4px;
}
.brand-by {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 400;
  margin: 0 4px 0 8px;
  letter-spacing: 0.5px;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.3));
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: all .18s;
}
.nav-btn:hover  { background: var(--surface-2); }
.nav-btn.active { background: var(--surface-2); color: #fff; }
.nav-btn.ghost  { border-color: var(--border-2); }
.user-badge {
  background: linear-gradient(135deg, var(--primary), #c41360);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--glow-primary);
}
.burger {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px; height: 40px;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

/* ================= Main / views ================= */
main { padding: 32px 16px 80px; min-height: calc(100vh - 68px - 80px); }
.view { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.view-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 1px;
  margin: 0 0 20px;
}
h3.view-title { font-size: 24px; margin: 28px 0 14px; }

/* ================= Landing ================= */
.view-landing { padding-top: 8px; }
.landing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.landing-hero { display: flex; flex-direction: column; gap: 20px; }
.hero-title { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-kicker {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero-main {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 1px;
  background: linear-gradient(120deg, #fff 30%, var(--gold) 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 30px rgba(255, 61, 113, 0.15);
  display: flex;
  flex-direction: column;
}
.hero-line { display: block; white-space: nowrap; }
.hero-lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 460px;
  margin: 0 0 8px;
}

/* ================= Cards / glass ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card.glass {
  background: rgba(15, 19, 50, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg);
}
.card summary {
  cursor: pointer;
  font-weight: 600;
  margin: -4px 0 14px;
  color: #fff;
  list-style: none;
}
.card summary::after {
  content: '＋';
  float: right;
  color: var(--ink-mute);
  font-weight: 400;
}
details[open] > summary::after { content: '−'; }

.auth-card { padding: 24px; }

/* ================= Tabs (exclusive switch) ================= */
.tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
  position: relative;
}
.tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #c41360);
  box-shadow: 0 4px 14px rgba(255, 61, 113, .45);
}

/* ================= Forms ================= */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
}
.form input[type=text],
.form input[type=email],
.form input[type=password],
.form input[type=datetime-local],
.form input[type=number] {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transition: all .18s;
}
.form input::placeholder { color: var(--ink-mute); }
.form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 61, 113, .18);
}

.checkbox-inline {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  color: var(--ink) !important;
  font-size: 14px !important;
}
.checkbox-inline input { width: 18px; height: 18px; accent-color: var(--primary); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 .btn-primary, .grid-2 .checkbox-inline { grid-column: 1 / -1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #c41360);
  color: #fff;
  border: none;
  padding: 13px 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(255, 61, 113, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255, 61, 113, .55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-small {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
}
.btn-small:hover { background: rgba(255,255,255,.18); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #b8313f); border-color: transparent; }
.btn-danger:hover { filter: brightness(1.1); }

.msg { margin: 4px 0 0; font-size: 13px; min-height: 1em; }
.msg.error { color: #ff8499; }
.msg.ok    { color: var(--ok); }
.hint { font-size: 12px; color: var(--ink-mute); margin: 4px 0 0; }

/* ================= Ranking widget ================= */
.ranking-widget { padding: 0; overflow: hidden; }
.rw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.rw-header h2 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1.2px;
  color: #fff;
}
.rw-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.rw-live i {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.rw-body { padding: 6px 8px 14px; max-height: 540px; overflow-y: auto; }
.rw-loading, .rw-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
}
.rw-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 4px 0;
  transition: background .15s;
}
.rw-row:hover { background: rgba(255, 255, 255, 0.05); }
.rw-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  text-align: center;
  color: var(--ink-mute);
}
.rw-row.gold   .rw-rank { color: var(--gold);   text-shadow: 0 0 12px rgba(255, 209, 102, .6); }
.rw-row.silver .rw-rank { color: #d3d8e8;       text-shadow: 0 0 10px rgba(211, 216, 232, .5); }
.rw-row.bronze .rw-rank { color: #cd7f32;       text-shadow: 0 0 10px rgba(205, 127, 50, .5); }
.rw-name { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-pct  { font-size: 12px; color: var(--ink-mute); }
.rw-pts  {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  text-align: right;
}
.rw-row.me { background: linear-gradient(90deg, rgba(255, 61, 113, .25), transparent); }

/* ================= Filters ================= */
.filters {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.filter {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s;
}
.filter:hover { border-color: var(--border-2); }
.filter.active {
  background: linear-gradient(135deg, var(--primary), #c41360);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 61, 113, .35);
}

/* ================= Match list ================= */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match {
  background: rgba(15, 19, 50, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.match:hover { border-color: var(--border-2); transform: translateY(-1px); }

.match-head {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.match-phase { font-weight: 700; color: var(--accent); }
.match-date  { white-space: nowrap; }
.phase-mult {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #e8a53a);
  color: #002654;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.6px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

.flag {
  display: inline-block;
  width: 1.5em;
  height: 1.1em;
  margin-right: 8px;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  background-size: cover;
  background-position: center;
}

.pick-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}
.pick-row.no-draw { grid-template-columns: 1fr 1fr; }

.pick-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: all .18s;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-btn:hover:not(:disabled) { border-color: var(--primary); background: rgba(255, 61, 113, .12); }
.pick-btn.selected {
  background: linear-gradient(135deg, var(--primary), #c41360);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 61, 113, .35);
}
.pick-btn.winner {
  background: linear-gradient(135deg, var(--gold), #e8a53a);
  color: #0a0e27;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(255, 209, 102, .45);
  font-weight: 800;
}
.pick-btn.selected.winner {
  background: linear-gradient(135deg, var(--gold), var(--primary));
  color: #0a0e27;
}
.pick-btn:disabled { cursor: default; opacity: 0.85; }
.pick-btn:disabled:not(.selected):not(.winner) { opacity: 0.55; }

.pick-btn.pick-draw {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
}

.match-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  padding: 0 14px;
  align-self: center;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(255, 209, 102, .4);
  white-space: nowrap;
}
.match-score .dash { color: var(--ink-mute); padding: 0 5px; font-weight: 300; }
.match-vs {
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
  align-self: center;
}

/* ----- Community picks bar ----- */
.pick-stats {
  margin-top: 12px;
}
.ps-bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.ps-bar > span {
  display: block;
  height: 100%;
  transition: width .4s ease;
}
.ps-team1 { background: var(--primary); }
.ps-draw  { background: rgba(255,255,255,0.4); }
.ps-team2 { background: var(--accent); }
.ps-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
}
.ps-labels.no-draw { grid-template-columns: 1fr 1fr; }
.ps-l1 { text-align: left;   color: var(--primary); }
.ps-ld { text-align: center; }
.ps-l2 { text-align: right;  color: var(--accent); }

.match-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 4px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag.locked  { background: rgba(255,255,255,0.08); color: var(--ink-mute); }
.tag.open    { background: rgba(0, 224, 199, .14); color: var(--accent); }
.tag.win     { background: rgba(37, 209, 134, .18); color: var(--ok); }
.tag.lose    { background: rgba(255, 91, 110, .18); color: var(--danger); }
.tag.pending { background: rgba(255, 184, 77, .18); color: var(--warn); }

/* ================= Stats grid ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: rgba(15, 19, 50, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.stat:hover { transform: translateY(-2px); }
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================= Hymn button (L'Étoile des Bleus) ================= */
.hymn-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #002654 0%, #1a3a8f 50%, #ce1126 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(255, 209, 102, 0.15);
  transition: transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.hymn-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: hymnShine 4s ease-in-out infinite;
}
@keyframes hymnShine {
  0%, 100% { left: -100%; }
  50%      { left: 110%; }
}
.hymn-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 209, 102, 0.35);
}
.hymn-cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 12px rgba(255, 209, 102, .25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform .2s;
}
.hymn-btn:hover .hymn-cover { transform: scale(1.04); }
.hymn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hymn-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hymn-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.hymn-cta {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.hymn-btn:hover .hymn-cta {
  background: var(--gold);
  color: #002654;
  border-color: transparent;
}

@media (max-width: 480px) {
  .hymn-btn { padding: 10px 12px; gap: 12px; }
  .hymn-cover { width: 52px; height: 52px; }
  .hymn-title { font-size: 19px; }
  .hymn-sub { font-size: 11px; }
  .hymn-cta { padding: 6px 10px; font-size: 12px; }
}

/* ================= Ranking table ================= */
.table-wrap { overflow-x: auto; padding: 0; }
.ranking {
  width: 100%;
  border-collapse: collapse;
}
.ranking th, .ranking td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.ranking th {
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.ranking tr:last-child td { border-bottom: none; }
.ranking td:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  width: 60px;
}
.ranking tr.me { background: rgba(255, 61, 113, .12); }
.ranking tr.me td:first-child { color: var(--primary); }

/* ================= Sync button ================= */
.sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.sync-btn {
  background: linear-gradient(135deg, var(--accent), #00958d);
  color: #002a2e;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 224, 199, .25);
  transition: all .15s;
}
.sync-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 224, 199, .4); }
.sync-btn:disabled { opacity: 0.6; cursor: wait; }

/* ================= Admin tabs ================= */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.admin-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: 9px;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-tab:hover:not(.active) { color: var(--ink); background: rgba(255,255,255,0.04); }
.admin-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #c41360);
  box-shadow: 0 4px 14px rgba(255, 61, 113, .4);
}
.admin-tab.active .count-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
.at-icon { font-size: 18px; line-height: 1; }

@media (max-width: 480px) {
  .admin-tab { font-size: 13px; padding: 10px 8px; gap: 6px; }
  .at-icon { font-size: 16px; }
}

/* ================= Admin users ================= */
.count-badge {
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-left: 6px;
  color: var(--accent);
  letter-spacing: 0;
}
.admin-users-wrap { padding: 0; }
.admin-users-table { font-size: 14px; }
.admin-users-table td, .admin-users-table th { padding: 10px 12px; }
.admin-users-table td:first-child { width: auto; font-family: inherit; font-size: inherit; color: inherit; }
.admin-users-table .btn-small { padding: 6px 9px; margin-right: 4px; }
.admin-users-table small { color: var(--ink-mute); }

.admin-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  cursor: pointer;
}
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.admin-toggle span {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 22px;
  transition: .2s;
}
.admin-toggle span::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.admin-toggle input:checked + span {
  background: linear-gradient(135deg, var(--ok), #1a9466);
}
.admin-toggle input:checked + span::before { transform: translateX(16px); }
.admin-toggle input:disabled + span { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .admin-users-table { font-size: 13px; }
  .admin-users-table td, .admin-users-table th { padding: 8px 6px; }
}

/* ================= Admin ================= */
.match.admin-row { display: grid; gap: 12px; }
.admin-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-soft);
  margin-top: 8px;
}
.admin-actions input {
  width: 64px; padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.admin-actions select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font: inherit;
  font-size: 13px;
}

/* ================= Footer ================= */
.footer {
  text-align: center;
  color: var(--ink-mute);
  padding: 30px 16px;
  font-size: 12px;
  position: relative;
  z-index: 2;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ================= Scrollbar (webkit) ================= */
.rw-body::-webkit-scrollbar { width: 6px; }
.rw-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ================= Responsive ================= */
@media (max-width: 920px) {
  .landing-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
  .burger { display: flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav-btn { text-align: left; padding: 12px 14px; }
  .user-badge { align-self: flex-start; margin: 6px 0; }

  .grid-2 { grid-template-columns: 1fr; }

  .pick-btn { padding: 10px 8px; font-size: 13px; }
  .pick-btn.pick-draw { padding: 10px 8px; font-size: 12px; }
  .match-score { font-size: 24px; padding: 0 6px; }
  .match-vs { padding: 0 6px; font-size: 12px; }
  .flag { width: 1.3em; height: 0.95em; margin-right: 5px; }

  .view-title { font-size: 26px; }
  .stat-value { font-size: 32px; }
  .brand-text { font-size: 15px; }
  .brand .ball { font-size: 20px; }
  .brand-by { font-size: 10px; margin: 0 3px 0 5px; }
  .brand-logo { height: 40px; }

  .floodlight { filter: blur(60px); }
  .floodlight-1, .floodlight-2 { width: 400px; height: 400px; }
}
