/* ============================================================
   FOOTBALL CHAMPION — Complete CSS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;500;600;700&display=swap');

:root {
  --pitch-dark: #07231A;
  --pitch: #0F4A34;
  --pitch-light: #1B7A54;
  --chalk: #F3EFDF;
  --chalk-dim: #CFC9AE;
  --gold: #D9A441;
  --gold-bright: #F0C05C;
  --electric: #FF5A36;
  --ink: #081912;
  --line: rgba(243, 239, 223, 0.14);
  --radius: 10px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --font-display: 'Bebas Neue', sans-serif;
  --font-data: 'Space Mono', monospace;
  --font-body: 'Inter', 'Noto Sans Ethiopic', sans-serif;
  --glow-gold: 0 0 30px rgba(217, 164, 65, 0.25);
  --glow-electric: 0 0 30px rgba(255, 90, 54, 0.2);
  --card-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1A4A36 0%, #0F3A28 45%, #0A2A1C 100%);
  color: var(--chalk);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.03) 0 60px, rgba(0, 0, 0, 0.02) 60px 120px),
    radial-gradient(circle at 30% 40%, rgba(27, 122, 84, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(217, 164, 65, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: pitchPulse 8s ease-in-out infinite;
}

@keyframes pitchPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(255, 255, 255, 0.05), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.08), transparent),
    radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.06), transparent);
  background-size: 200% 200%;
  animation: floatParticles 25s linear infinite;
}

@keyframes floatParticles {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(10px, -10px) scale(1.05);
  }
  50% {
    transform: translate(-5px, 15px) scale(0.95);
  }
  75% {
    transform: translate(15px, 5px) scale(1.02);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-smooth);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  margin: 0 0 .4em;
  text-transform: uppercase;
  color: var(--chalk);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: .95;
  background: linear-gradient(135deg, var(--chalk) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%,
  100% {
    opacity: 1;
    width: 60px;
  }
  50% {
    opacity: 0.5;
    width: 40px;
  }
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  transition: var(--transition-smooth);
}

p {
  margin: 0 0 1em;
  color: var(--chalk-dim);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.eyebrow {
  font-family: var(--font-data);
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  position: relative;
  display: inline-block;
  padding: 0 12px;
}

.eyebrow::before,
.eyebrow::after {
  content: "✦";
  color: var(--electric);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
}

.eyebrow::before {
  left: -8px;
}

.eyebrow::after {
  right: -8px;
}

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

/* ============================================================
   SCOREBOARD SLIDESHOW - WORKING VERSION
   ============================================================ */
.scoreboard {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 400px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow), var(--glow-gold);
  width: 100%;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay on top of slideshow */
.scoreboard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.15) 0%, 
    rgba(0, 0, 0, 0.35) 25%, 
    rgba(0, 0, 0, 0.65) 55%, 
    rgba(0, 0, 0, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 24px;
  border-radius: 12px;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.scoreboard-content {
  width: 100%;
  max-width: 520px;
  text-align: center;
  pointer-events: auto;
}

/* Slide indicators/dots */
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
  pointer-events: auto;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slide-dot.active {
  background: var(--gold);
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(217, 164, 65, 0.5);
  transform: scale(1.2);
}

.slide-dot:hover {
  background: rgba(217, 164, 65, 0.5);
  border-color: var(--gold-bright);
  transform: scale(1.1);
}

/* Responsive adjustments for slideshow */
@media(max-width: 768px) {
  .scoreboard {
    min-height: 350px;
  }
  
  .slide-dots {
    bottom: 12px;
    gap: 8px;
  }
  
  .slide-dot {
    width: 8px;
    height: 8px;
  }
}

@media(max-width: 480px) {
  .scoreboard {
    min-height: 300px;
    border-radius: 10px;
  }
  
  .slide-dots {
    bottom: 8px;
    gap: 6px;
  }
  
  .slide-dot {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
}

/* ============================================================
   SCOREBOARD CONTENT
   ============================================================ */
.scoreboard-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.scoreboard-cta .btn {
  flex: 1 1 180px;
  min-width: 140px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  padding: 14px 24px;
}

.countdown-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.countdown-unit {
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 56px;
  text-align: center;
}

.countdown-unit .n {
  font-family: var(--font-data);
  font-size: 1.3rem;
  color: var(--gold-bright);
  font-weight: 700;
  transition: all 0.2s ease;
}

.countdown-unit:hover .n {
  transform: scale(1.1);
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(217, 164, 65, 0.3);
}

.countdown-unit .u {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--chalk-dim);
}

/* ============================================================
   PARTICLE CONTAINER
   ============================================================ */
.particle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  color: var(--gold-bright);
  padding: 6px 0;
  position: relative;
  z-index: 2;
  width: 100%;
  box-shadow: 0 2px 20px rgba(217, 164, 65, 0.1);
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  display: inline-block;
  padding: 0 30px;
  position: relative;
}

.ticker-track span::after {
  content: "⚽";
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  z-index: 50;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(217, 164, 65, 0.12);
  border-radius: 0 0 20px 20px;
  padding: 14px 24px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@media(min-width:768px) {
  .navbar {
    margin: 0;
    border-radius: 0 0 20px 20px;
    padding: 14px 32px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media(max-width:767px) {
  .navbar {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0 0 16px 16px;
    padding: 12px 16px;
    margin: 0 -8px;
    border-bottom: 2px solid rgba(217, 164, 65, 0.1);
    position: relative;
    z-index: 9999;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  letter-spacing: .04em;
  color: var(--chalk);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.brand .ball {
  width: clamp(26px, 6vw, 30px);
  height: clamp(26px, 6vw, 30px);
  border-radius: 50%;
  background: conic-gradient(from 45deg, var(--chalk) 0 60deg, var(--ink) 60deg 120deg, var(--chalk) 120deg 180deg, var(--ink) 180deg 240deg, var(--chalk) 240deg 300deg, var(--ink) 300deg 360deg);
  box-shadow: 0 0 0 2px var(--ink), 0 0 20px rgba(243, 239, 223, 0.15);
  flex-shrink: 0;
  animation: ballSpin 10s linear infinite;
}

@keyframes ballSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.brand .ball {
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.brand:hover .ball {
  transform: rotate(200deg) scale(1.15);
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  cursor: pointer;
  z-index: 9999;
  background: none;
  border: none;
  position: relative;
  pointer-events: auto !important;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--chalk);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.hamburger:hover span {
  background: var(--gold-bright);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================================
   NAV LINKS - LANDING PAGE (DESKTOP)
   ============================================================ */
.navlinks {
  display: flex;
  flex-direction: row;
  gap: clamp(12px, 3vw, 26px);
  font-size: clamp(0.75rem, 2vw, 0.92rem);
  width: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: static;
  margin-top: 0;
  max-height: none;
  overflow-y: visible;
  align-items: center;
}

.navlinks a {
  padding: 4px 0;
  position: relative;
  background: none !important;
  border: none !important;
  font-size: clamp(0.75rem, 2vw, 0.92rem);
  gap: 6px;
  display: flex;
  align-items: center;
  color: var(--chalk);
  opacity: 0.85;
  font-weight: 600;
}

.navlinks a .nav-icon {
  font-size: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.navlinks a:hover .nav-icon,
.navlinks a.active .nav-icon {
  opacity: 1;
  color: var(--gold-bright);
}

.navlinks a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.navlinks a:hover::after,
.navlinks a.active::after {
  width: 100%;
}

.navlinks a:hover,
.navlinks a.active {
  opacity: 1;
  color: var(--gold-bright);
  background: none !important;
  border-color: transparent !important;
}

.navlinks a.active {
  color: var(--gold-bright);
}

/* ============================================================
   MOBILE - DROPDOWN MENU (SCROLLS WITH PAGE)
   ============================================================ */
@media(max-width:767px) {
  .hamburger {
    display: flex !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    padding: 8px 4px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .hamburger span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: var(--chalk) !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px) !important;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px) !important;
  }

  /* Landing Page Nav - Mobile DROPDOWN */
  .navlinks {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    background: rgba(7, 35, 26, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(217, 164, 65, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: var(--shadow), var(--glow-gold) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .navlinks.open {
    display: flex !important;
  }

  .navlinks a {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--chalk) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .navlinks a .nav-icon {
    font-size: 1.1rem !important;
    opacity: 0.6 !important;
  }

  .navlinks a:hover,
  .navlinks a.active {
    background: rgba(217, 164, 65, 0.12) !important;
    border-color: rgba(217, 164, 65, 0.2) !important;
    color: var(--gold-bright) !important;
  }

  .navlinks a.active {
    background: rgba(217, 164, 65, 0.15) !important;
    border-color: var(--gold) !important;
  }

  .navlinks a::after {
    display: none !important;
  }

  /* App Sidebar Nav - Mobile DROPDOWN */
  #app-navlinks {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9998 !important;
    background: rgba(7, 35, 26, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 2px solid rgba(217, 164, 65, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: var(--shadow), var(--glow-gold) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  #app-navlinks.open {
    display: flex !important;
  }

  #app-navlinks a {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--chalk) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  #app-navlinks a .nav-icon {
    font-size: 1.1rem !important;
    opacity: 0.6 !important;
  }

  #app-navlinks a:hover,
  #app-navlinks a.active {
    background: rgba(217, 164, 65, 0.12) !important;
    border-color: rgba(217, 164, 65, 0.2) !important;
    color: var(--gold-bright) !important;
  }

  #app-navlinks a.active {
    background: rgba(217, 164, 65, 0.15) !important;
    border-color: var(--gold) !important;
  }

  #app-navlinks a:last-child {
    border-top: 1px solid var(--line) !important;
    padding-top: 14px !important;
    margin-top: 4px !important;
  }

  .sidebar {
    position: relative !important;
    z-index: 9999 !important;
  }

  .sidebar-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* ============================================================
   DESKTOP - HIDE HAMBURGER
   ============================================================ */
@media(min-width:768px) {
  .hamburger {
    display: none !important;
  }

  #app-navlinks {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow-y: visible !important;
    flex-direction: column !important;
    width: auto !important;
  }

  .navlinks {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow-y: visible !important;
    flex-direction: row !important;
    width: auto !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(12px, 3vw, 14px) clamp(20px, 4vw, 28px);
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: clamp(44px, 10vh, 52px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

@media(min-width:480px) {
  .btn {
    width: auto;
  }
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.btn:active {
  animation: kickBounce .3s ease;
}

@keyframes kickBounce {
  0% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.06) translateY(-3px);
  }
  60% {
    transform: scale(0.97) translateY(1px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.btn-primary {
  background: var(--electric);
  color: var(--chalk);
  box-shadow: 0 4px 15px rgba(255, 90, 54, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 90, 54, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 15px rgba(217, 164, 65, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(217, 164, 65, 0.4);
}

.btn-gold:active {
  transform: scale(0.97);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--chalk);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.1);
  box-shadow: 0 0 30px rgba(217, 164, 65, 0.1);
}

.btn-outline:active {
  transform: scale(0.97);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   ENHANCED GLOW BUTTONS
   ============================================================ */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 8px;
  padding: clamp(10px, 1.5vw, 14px) clamp(16px, 3vw, 28px);
  min-height: 48px;
  width: 100%;
  justify-content: center;
  gap: 12px;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
}

.btn-glow .btn-icon {
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-glow:hover .btn-icon {
  transform: translateX(4px) scale(1.1);
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 60%, transparent 80%);
  background-size: 300% 300%;
  animation: borderGlow 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(217, 164, 65, 0.3);
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(217, 164, 65, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 164, 65, 0);
  }
}

.btn-primary.btn-glow {
  background: linear-gradient(135deg, #FF5A36, #FF3D1F);
  color: var(--chalk);
  box-shadow: 0 4px 20px rgba(255, 90, 54, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

.btn-primary.btn-glow:hover {
  box-shadow: 0 8px 40px rgba(255, 90, 54, 0.6);
  transform: translateY(-3px) scale(1.03);
}

.btn-primary.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  animation: shine 3s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.btn-gold.btn-glow {
  background: linear-gradient(135deg, #D9A441, #F0C05C);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(217, 164, 65, 0.4);
  font-weight: 800;
}

.btn-gold.btn-glow:hover {
  box-shadow: 0 8px 40px rgba(217, 164, 65, 0.6);
  transform: translateY(-3px) scale(1.03);
}

.btn-gold.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: shineGold 3s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shineGold {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.btn-outline.btn-glow {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--chalk);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline.btn-glow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 40px rgba(217, 164, 65, 0.15);
  transform: translateY(-3px) scale(1.03);
}

.btn-outline.btn-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
  background-size: 300% 300%;
  animation: borderPulse 3s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-outline.btn-glow:hover::after {
  opacity: 1;
}

@keyframes borderPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data) !important;
  font-size: .72rem !important;
  letter-spacing: .05em;
  color: var(--gold-bright) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px !important;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

@media(min-width:768px) {
  .lang-switch {
    margin-top: 0;
    margin-left: 6px;
  }
}

.lang-switch b {
  color: var(--gold-bright);
}

.lang-switch span {
  opacity: .5;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(30px, 8vw, 70px) 0 clamp(30px, 6vw, 60px);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 50px);
  align-items: center;
}

@media(min-width:768px) {
  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--chalk-dim);
  max-width: 480px;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-cta .btn {
  flex: 1 1 200px;
  animation: floatButton 3s ease-in-out infinite;
}

.hero-cta .btn:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes floatButton {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media(min-width:768px) {
  .hero-cta {
    display: none !important;
  }
}

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.timer-ring {
  position: relative;
  width: clamp(60px, 12vw, 70px);
  height: clamp(60px, 12vw, 70px);
  flex-shrink: 0;
}

.timer-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-ring circle {
  fill: none;
  stroke-width: 6;
}

.timer-ring .bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.timer-ring .fg {
  stroke: var(--gold-bright);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.3));
}

.timer-ring .num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--chalk);
  font-weight: 700;
  transition: color 0.3s ease;
}

.quiz-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.quiz-progress .dot {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.quiz-progress .dot.done {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 20px rgba(217, 164, 65, 0.3);
}

.quiz-progress .dot.current {
  background: var(--electric);
  box-shadow: 0 0 20px rgba(255, 90, 54, 0.4);
  animation: dotPulse 0.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(2);
  }
}

.quiz-progress .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: dotShine 2s ease-in-out infinite;
}

@keyframes dotShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: clamp(14px, 3vw, 16px) 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: clamp(44px, 10vh, 52px);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: attr(data-letter);
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  margin-right: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.option-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.option-btn:hover::after {
  transform: translateX(100%);
}

.option-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.08);
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 4px 20px rgba(217, 164, 65, 0.15);
}

.option-btn:active {
  transform: scale(0.95) translateX(2px);
}

.option-btn.selected {
  border-color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.15);
  box-shadow: 0 0 30px rgba(217, 164, 65, 0.1);
}

.option-btn.correct {
  border-color: #7CD9A3;
  background: rgba(124, 217, 163, 0.15);
  box-shadow: 0 0 30px rgba(124, 217, 163, 0.1);
}

.option-btn.correct::after {
  content: "✓";
  position: absolute;
  right: 16px;
  color: #7CD9A3;
  font-size: 1.2rem;
}

.option-btn.wrong {
  border-color: #FF5A36;
  background: rgba(255, 90, 54, 0.15);
  box-shadow: 0 0 30px rgba(255, 90, 54, 0.1);
}

.option-btn.wrong::after {
  content: "✗";
  position: absolute;
  right: 16px;
  color: #FF5A36;
  font-size: 1.2rem;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.option-btn:disabled:hover {
  transform: none;
}

.quiz-stadium .card {
  background: rgba(4, 10, 7, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quiz-stadium .sb-clock,
.quiz-stadium .timer-ring {
  position: relative;
  z-index: 2;
}

.q-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(217, 164, 65, 0.15);
  border: 1px solid rgba(217, 164, 65, 0.3);
  color: var(--gold-bright);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-data);
  margin-bottom: 8px;
}

.q-text {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--chalk);
}

.q-counter {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--chalk-dim);
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
  display: grid;
  gap: 16px;
}

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

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

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

@media(min-width:480px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 24px);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform, box-shadow;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.05), transparent 70%);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(217, 164, 65, 0.03) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--card-hover), 0 0 40px rgba(217, 164, 65, 0.08);
  border-color: rgba(217, 164, 65, 0.3);
}

.card:hover::before {
  transform: scale(1.5);
}

.card:hover::after {
  opacity: 1;
}

.card:active {
  transform: scale(0.98);
}

.card h3 {
  margin-bottom: 8px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
}

.card h3::before {
  content: "🏆 ";
  font-size: 1.2rem;
}

.card p {
  font-size: clamp(0.85rem, 1.8vw, 0.92rem);
  margin-bottom: 0;
}

.card .tag {
  font-family: var(--font-data);
  font-size: clamp(0.6rem, 1.2vw, 0.65rem);
  color: var(--gold-bright);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
  background: rgba(217, 164, 65, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(217, 164, 65, 0.15);
  animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {
  0%,
  100% {
    background: rgba(217, 164, 65, 0.08);
    border-color: rgba(217, 164, 65, 0.15);
  }
  50% {
    background: rgba(217, 164, 65, 0.15);
    border-color: rgba(217, 164, 65, 0.3);
  }
}

section {
  padding: clamp(30px, 6vw, 56px) 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 600px;
  margin-bottom: clamp(24px, 5vw, 36px);
}

/* ============================================================
   PRICING
   ============================================================ */
.ticket-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  border: 2px dashed rgba(217, 164, 65, .4);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 32px);
  text-align: center;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  perspective: 800px;
}

.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--pitch-dark);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 2px rgba(217, 164, 65, .4);
}

.ticket-card::before {
  left: -14px;
}

.ticket-card::after {
  right: -14px;
}

.ticket-card .ticket-divider {
  border-top: 2px dashed rgba(217, 164, 65, .3);
  margin: 16px 0;
}

.ticket-card.featured {
  border-color: var(--gold);
  border-style: solid;
  animation: borderGlow 3s ease-in-out infinite;
}

.ticket-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(217, 164, 65, 0.03) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ticket-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--card-hover), 0 0 40px rgba(217, 164, 65, 0.08);
}

.ticket-card:hover::after {
  opacity: 1;
}

.ticket-card.featured:hover {
  box-shadow: var(--card-hover), 0 0 60px rgba(217, 164, 65, 0.15);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.2rem);
  color: var(--gold-bright);
  margin: 8px 0;
  text-shadow: 0 0 30px rgba(217, 164, 65, 0.2);
}

.price-amount small {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--chalk-dim);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
  font-size: clamp(0.85rem, 1.8vw, 0.9rem);
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-features li::before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* ============================================================
   LEADERBOARD TABLE
   ============================================================ */
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
}

.lb-table th {
  text-align: left;
  font-family: var(--font-data);
  font-size: clamp(0.6rem, 1.2vw, 0.68rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 8px 16px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.lb-table th::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: tableGlow 2s ease-in-out infinite;
}

@keyframes tableGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.lb-table td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.lb-table tr {
  transition: all 0.3s ease;
  position: relative;
}

.lb-table tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: all 0.3s ease;
}

.lb-table tr:hover {
  transform: scale(1.01);
  background: rgba(217, 164, 65, 0.06);
}

.lb-table tr:hover::before {
  opacity: 1;
}

.lb-table tr.you {
  background: rgba(217, 164, 65, .12);
  border-left: 3px solid var(--gold);
  position: relative;
}

.lb-table tr.you td:first-child {
  padding-left: calc(16px - 3px);
}

.lb-table tr.you::after {
  content: "👤 YOU";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(217, 164, 65, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.medal {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.3));
  animation: medalGlow 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes medalGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(217, 164, 65, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(217, 164, 65, 0.6));
  }
}

.rank-pill {
  font-family: var(--font-data);
  font-weight: 700;
  color: var(--chalk-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ============================================================
   ADMIN TABLES WITH PAGINATION
   ============================================================ */

/* Admin Table Container */
.admin-table-container {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
}

.admin-table thead {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--gold);
}

.admin-table th {
  text-align: left;
  font-family: var(--font-data);
  font-size: clamp(0.6rem, 1.2vw, 0.68rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding: 12px 16px;
  border-bottom: 2px solid var(--gold);
  position: relative;
  white-space: nowrap;
}

.admin-table th::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: tableGlow 2s ease-in-out infinite;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table tbody tr {
  transition: all 0.3s ease;
  position: relative;
}

.admin-table tbody tr:hover {
  background: rgba(217, 164, 65, 0.05);
  transform: scale(1.01);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Admin Actions Buttons */
.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-actions .btn-sm {
  padding: 4px 12px;
  font-size: 0.7rem;
  min-height: 28px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.admin-actions .btn-sm.btn-edit {
  background: rgba(217, 164, 65, 0.15);
  color: var(--gold-bright);
  border-color: rgba(217, 164, 65, 0.2);
}

.admin-actions .btn-sm.btn-edit:hover {
  background: rgba(217, 164, 65, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(217, 164, 65, 0.15);
}

.admin-actions .btn-sm.btn-delete {
  background: rgba(255, 90, 54, 0.15);
  color: var(--electric);
  border-color: rgba(255, 90, 54, 0.2);
}

.admin-actions .btn-sm.btn-delete:hover {
  background: rgba(255, 90, 54, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(255, 90, 54, 0.15);
}

.admin-actions .btn-sm.btn-view {
  background: rgba(124, 217, 163, 0.15);
  color: #7CD9A3;
  border-color: rgba(124, 217, 163, 0.2);
}

.admin-actions .btn-sm.btn-view:hover {
  background: rgba(124, 217, 163, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(124, 217, 163, 0.15);
}

.admin-actions .btn-sm.btn-active {
  background: rgba(124, 217, 163, 0.15);
  color: #7CD9A3;
  border-color: rgba(124, 217, 163, 0.2);
}

.admin-actions .btn-sm.btn-active:hover {
  background: rgba(124, 217, 163, 0.25);
  transform: translateY(-1px);
}

.admin-actions .btn-sm.btn-inactive {
  background: rgba(255, 90, 54, 0.15);
  color: var(--electric);
  border-color: rgba(255, 90, 54, 0.2);
}

.admin-actions .btn-sm.btn-inactive:hover {
  background: rgba(255, 90, 54, 0.25);
  transform: translateY(-1px);
}

.admin-actions .btn-sm:active {
  transform: scale(0.95);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--chalk);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.pagination .page-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(217, 164, 65, 0.1);
}

.pagination .page-btn:active {
  transform: scale(0.95);
}

.pagination .page-btn.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(217, 164, 65, 0.3);
  font-weight: 700;
}

.pagination .page-btn.active:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(217, 164, 65, 0.4);
}

.pagination .page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .page-btn .page-icon {
  font-size: 1rem;
  line-height: 1;
}

.pagination .page-info {
  font-size: 0.8rem;
  color: var(--chalk-dim);
  padding: 0 8px;
  font-family: var(--font-data);
}

.pagination .page-ellipsis {
  color: var(--chalk-dim);
  padding: 0 4px;
  font-size: 0.9rem;
}

/* Pagination - Mobile Responsive */
@media(max-width: 768px) {
  .pagination {
    gap: 4px;
    padding: 12px 0 4px;
  }
  
  .pagination .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.75rem;
  }
  
  .pagination .page-info {
    font-size: 0.7rem;
  }
}

@media(max-width: 480px) {
  .pagination {
    gap: 3px;
    padding: 10px 0 4px;
  }
  
  .pagination .page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.65rem;
    border-radius: 4px;
  }
  
  .pagination .page-btn .page-icon {
    font-size: 0.8rem;
  }
  
  .pagination .page-info {
    font-size: 0.6rem;
    padding: 0 4px;
  }
  
  .pagination .page-ellipsis {
    font-size: 0.7rem;
  }
}

/* ============================================================
   ADMIN TABLE - RESPONSIVE
   ============================================================ */
@media(max-width: 768px) {
  .admin-table-container {
    padding: 12px;
    overflow-x: auto;
  }
  
  .admin-table {
    font-size: 0.75rem;
    min-width: 600px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
  
  .admin-table th {
    font-size: 0.55rem;
  }
  
  .admin-actions .btn-sm {
    padding: 2px 8px;
    font-size: 0.6rem;
    min-height: 24px;
  }
}

@media(max-width: 480px) {
  .admin-table-container {
    padding: 8px;
  }
  
  .admin-table {
    font-size: 0.65rem;
    min-width: 500px;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 6px 8px;
  }
  
  .admin-table th {
    font-size: 0.5rem;
  }
  
  .admin-actions {
    gap: 3px;
  }
  
  .admin-actions .btn-sm {
    padding: 2px 6px;
    font-size: 0.5rem;
    min-height: 20px;
    border-radius: 3px;
  }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 7, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: modalFade 0.3s ease-out;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-box {
  background: linear-gradient(160deg, #0F3527, #071B14);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 32px);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow), var(--glow-gold);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(217, 164, 65, 0.05), transparent 70%);
  pointer-events: none;
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.6rem);
  margin-bottom: 4px;
  color: var(--gold-bright);
}

.modal-sub {
  font-size: clamp(0.8rem, 1.8vw, 0.85rem);
  color: var(--chalk-dim);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: clamp(0.75rem, 1.5vw, 0.8rem);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--chalk-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select {
  width: 100%;
  padding: clamp(10px, 2.5vw, 12px) 16px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--chalk);
  font-size: clamp(0.95rem, 2vw, 1rem);
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
  transition: var(--transition-smooth);
}

.field select {
  color-scheme: light;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(217, 164, 65, 0.1);
}

.field select option {
  background: #FFFFFF;
  color: #101B14;
}

.error-msg {
  color: #FF8A70;
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  margin-top: 4px;
}

.success-msg {
  color: #7CD9A3;
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  margin-top: 4px;
}

.plan-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-opt {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: clamp(12px, 2.5vw, 14px);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: manipulation;
  background: rgba(255, 255, 255, .02);
}

.plan-opt:hover {
  border-color: var(--gold-bright);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 30px rgba(217, 164, 65, 0.15);
}

.plan-opt.selected {
  border-color: var(--gold);
  background: rgba(217, 164, 65, .12);
  box-shadow: var(--glow-gold);
  animation: planSelect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes planSelect {
  0% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.plan-opt .amt {
  font-family: var(--font-data);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--gold-bright);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 2px solid var(--gold);
  padding: 24px 0 16px;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  color: var(--chalk-dim);
  text-align: center;
  position: relative;
  margin-top: 40px;
}

footer::before {
  content: "⚽ 🏆 ⚽";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: 10px;
  opacity: 0.3;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

footer .footer-links a {
  color: var(--chalk-dim);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

footer .footer-links a:hover {
  color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.08);
}

footer .footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto;
  opacity: 0.3;
}

footer .copyright {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-top: 8px;
}

/* ============================================================
   APP SHELL - SIDEBAR
   ============================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media(min-width:768px) {
  .app-shell {
    flex-direction: row;
  }
}

@media(max-width:767px) {
  .app-shell {
    flex-direction: column;
  }
}

.sidebar {
  width: 100%;
  background: linear-gradient(180deg, var(--ink), #0A1F15);
  border-bottom: 2px solid var(--gold);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  max-height: 100vh;
  overflow-y: auto;
}

@media(min-width:768px) {
  .sidebar {
    width: 230px;
    border-right: 2px solid var(--gold);
    border-bottom: none;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 16px 24px 16px;
    position: sticky;
    top: 0;
    min-height: 100vh;
    flex-shrink: 0;
  }

  .sidebar nav {
    padding-bottom: 20px;
  }

  .sidebar nav a:last-child {
    margin-bottom: 0;
  }
}

@media(max-width:767px) {
  .sidebar {
    position: relative;
    padding: 10px 12px;
    z-index: 9999;
  }

  .sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar .brand {
    font-size: 1.1rem;
  }

  .sidebar .brand img {
    max-width: 120px;
  }

  .sidebar .hamburger {
    display: flex !important;
  }
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media(min-width:768px) {
  .sidebar-top {
    display: block;
  }
}

.sidebar .brand {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 3vw, 1.25rem);
}

@media(min-width:768px) {
  .sidebar .brand {
    margin-bottom: 24px;
  }
}

.sidebar .hamburger {
  display: flex;
}

@media(min-width:768px) {
  .sidebar .hamburger {
    display: none !important;
  }
}

#app-navlinks {
  display: none !important;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: rgba(7, 35, 26, 0.98);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  border: 2px solid rgba(217, 164, 65, 0.3);
  box-shadow: var(--shadow), var(--glow-gold);
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
}

#app-navlinks.open {
  display: flex !important;
}

@media(min-width:768px) {
  #app-navlinks {
    display: block !important;
    position: static;
    width: auto;
    padding: 0;
    margin-top: 0;
    background: none;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow-y: visible;
  }
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 2vw, 11px) 16px;
  border-radius: 8px;
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  font-weight: 600;
  color: var(--chalk-dim);
  margin-bottom: 4px;
  white-space: nowrap;
  transition: var(--transition-smooth);
  position: relative;
}

.sidebar nav a .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.sidebar nav a:hover .nav-icon,
.sidebar nav a.active .nav-icon {
  opacity: 1;
  color: var(--gold-bright);
}

.sidebar nav a.active .nav-icon {
  color: var(--gold-bright);
}

.sidebar nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.sidebar nav a:hover::before,
.sidebar nav a.active::before {
  transform: scaleX(1);
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, .06);
  color: var(--chalk);
}

.sidebar nav a.active {
  color: var(--gold-bright);
  background: rgba(217, 164, 65, 0.08);
}

.sidebar nav a[href="logout.php"] .nav-icon {
  color: var(--electric);
  opacity: 0.7;
}

.sidebar nav a[href="logout.php"]:hover .nav-icon {
  opacity: 1;
  color: var(--electric);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  padding: clamp(16px, 4vw, 32px);
  max-width: 100%;
  width: 100%;
}

@media(min-width:768px) {
  .main-content {
    padding: 32px 40px;
    max-width: calc(100% - 230px);
    width: calc(100% - 230px);
    margin-left: 230px;
  }

  .container {
    max-width: 100%;
    padding: 0 24px;
  }
}

@media(min-width:1200px) {
  .main-content {
    padding: 40px 60px;
  }
  
  .container {
    padding: 0 40px;
  }
}

@media(max-width:767px) {
  .main-content {
    padding: 16px 12px;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }

  .container {
    max-width: 100%;
    padding: 0 8px;
  }
}

/* ============================================================
   DASHBOARD STATS
   ============================================================ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-item {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 0;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover);
  border-color: rgba(217, 164, 65, 0.2);
}

.stat-icon {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 164, 65, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: rgba(217, 164, 65, 0.15);
  transform: scale(1.05);
}

.stat-data {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.stat-number {
  font-family: var(--font-data);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
  word-break: break-word;
}

.stat-label {
  font-size: clamp(0.45rem, 1.2vw, 0.6rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  opacity: 0.7;
  margin-top: 1px;
  line-height: 1.2;
  word-break: break-word;
}

/* Mobile responsive stats */
@media(max-width: 768px) {
  .dash-stats {
    gap: 10px;
  }
  
  .stat-item {
    padding: 12px 8px;
    gap: 4px;
    border-radius: 8px;
  }
  
  .stat-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  
  .stat-number {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
  
  .stat-label {
    font-size: clamp(0.4rem, 1vw, 0.5rem);
  }
}

@media(max-width: 480px) {
  .dash-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 0 2px;
  }
  
  .stat-item {
    padding: 8px 4px;
    gap: 3px;
    border-radius: 6px;
    border-width: 1px;
  }
  
  .stat-icon {
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(217, 164, 65, 0.06);
  }
  
  .stat-number {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    line-height: 1.1;
  }
  
  .stat-label {
    font-size: clamp(0.35rem, 1.2vw, 0.45rem);
    letter-spacing: 0.03em;
    opacity: 0.6;
    margin-top: 0;
  }
}

@media(max-width: 380px) {
  .dash-stats {
    gap: 4px;
    padding: 0;
  }
  
  .stat-item {
    padding: 6px 3px;
    gap: 2px;
    border-radius: 4px;
    border-width: 1px;
  }
  
  .stat-icon {
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 3px;
  }
  
  .stat-number {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
  }
  
  .stat-label {
    font-size: clamp(0.3rem, 1vw, 0.38rem);
    letter-spacing: 0.02em;
  }
}

/* ============================================================
   DASHBOARD ORGANIZED
   ============================================================ */
.dash-section {
  margin-bottom: 28px;
}

.dash-section:last-child {
  margin-bottom: 0;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-greeting {
  flex: 1;
  min-width: 200px;
}

.dash-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 4px 0 6px 0;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--chalk), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-subtitle {
  margin: 0;
  color: var(--chalk-dim);
  font-size: 0.95rem;
  opacity: 0.8;
}

.dash-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.rank-up {
  color: #7CD9A3;
  font-size: 0.7rem;
  margin-left: 4px;
}

.rank-down {
  color: #FF5A36;
  font-size: 0.7rem;
  margin-left: 4px;
}

/* ============================================================
   ACTION CARDS
   ============================================================ */
.dash-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width:768px) {
  .dash-actions {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
  }
}

.dash-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media(min-width:480px) {
  .dash-secondary {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.action-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
  border-color: rgba(217, 164, 65, 0.2);
}

.action-primary {
  min-height: 240px;
  border-color: rgba(217, 164, 65, 0.2);
}

.action-primary:hover {
  border-color: var(--gold);
}

.action-mini {
  min-height: 180px;
}

.action-card[style*="background-image"] .action-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.action-card[style*="background-image"]:hover .action-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.action-card[style*="background-image"] .action-body {
  position: relative;
  z-index: 2;
  color: var(--chalk);
}

.action-card[style*="background-image"] .action-title,
.action-card[style*="background-image"] .action-heading {
  color: var(--chalk);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.action-card[style*="background-image"] .action-desc {
  color: rgba(255, 255, 255, 0.8);
}

.action-card[style*="background-image"] .action-tag {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-color: rgba(217, 164, 65, 0.3);
}

.action-body {
  padding: 24px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  min-height: 200px;
}

.action-primary .action-body {
  padding: 30px 32px;
  min-height: 240px;
}

.action-mini .action-body {
  padding: 20px 24px;
  min-height: 180px;
}

.action-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: clamp(0.5rem, 0.9vw, 0.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.2);
  color: var(--gold-bright);
  align-self: flex-start;
  margin-bottom: 4px;
}

.action-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  margin: 4px 0 6px 0;
  letter-spacing: 0.02em;
}

.action-heading {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  margin: 4px 0 6px 0;
  text-transform: none;
  letter-spacing: 0;
}

.action-desc {
  font-size: clamp(0.8rem, 1.3vw, 0.85rem);
  margin: 0 0 12px 0;
  opacity: 0.8;
}

.action-body .btn {
  width: 100%;
  max-width: 240px;
  margin-top: 8px;
  padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 32px);
  min-height: 48px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
}

@media(min-width:480px) {
  .action-body .btn {
    width: auto;
    min-width: 160px;
  }
}

.progress-wrap {
  margin: 8px 0 12px 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--chalk-dim);
  margin-bottom: 4px;
}

.progress-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(217, 164, 65, 0.2);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 12px 0;
}

.mini-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--line);
}

.mini-number {
  display: block;
  font-family: var(--font-data);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.mini-label {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--chalk-dim);
  opacity: 0.6;
  margin-top: 2px;
}

/* ============================================================
   PREVIEW CARDS
   ============================================================ */
.preview-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0C2A1F;
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--card-hover), 0 0 40px rgba(217, 164, 65, 0.08);
  border-color: rgba(217, 164, 65, 0.3);
}

.preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  transition: all 0.5s ease;
}

.preview-card:hover::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.5) 100%);
}

.preview-card-overlay {
  position: absolute;
  inset: 0;
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  z-index: 2;
  transition: all 0.4s ease;
}

.preview-card-overlay .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 164, 65, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  align-self: flex-start;
}

.preview-card-overlay h3 {
  color: var(--chalk);
  margin-bottom: 4px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.preview-card-overlay h3::before {
  content: none;
}

.preview-card-overlay p {
  color: var(--chalk);
  margin-bottom: 12px;
  font-size: clamp(0.8rem, 1.5vw, 0.85rem);
  opacity: 0.85;
}

.preview-card-overlay .btn {
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 6px;
  min-height: 44px;
}

.preview-card:hover .preview-card-overlay .btn {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(217, 164, 65, 0.3);
}

.preview-card-overlay .btn-glow {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  letter-spacing: 0.06em;
  padding: 14px 28px;
  min-height: 50px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 4px clamp(8px, 2vw, 10px);
  border-radius: 20px;
  font-size: clamp(0.65rem, 1.2vw, 0.72rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.badge-active {
  background: rgba(124, 217, 163, .15);
  color: #7CD9A3;
  border: 1px solid rgba(124, 217, 163, 0.3);
  box-shadow: 0 0 20px rgba(124, 217, 163, 0.15);
  animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 217, 163, 0.15);
    border-color: rgba(124, 217, 163, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 217, 163, 0.3);
    border-color: rgba(124, 217, 163, 0.6);
  }
}

.badge-expired {
  background: rgba(255, 90, 54, .15);
  color: #FF8A70;
  border: 1px solid rgba(255, 90, 54, 0.3);
}

.badge-pending {
  background: rgba(217, 164, 65, .15);
  color: var(--gold-bright);
  border: 1px solid rgba(217, 164, 65, 0.3);
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF5A36, #FF8A50);
  color: var(--chalk);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(255, 90, 54, .35);
  animation: streakPulse 2s ease-in-out infinite;
}

@keyframes streakPulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 90, 54, .35);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 90, 54, .6);
  }
}

.rank-change {
  font-family: var(--font-data);
  font-size: .75rem;
  font-weight: 700;
  margin-left: 6px;
}

.rank-change.up {
  color: #7CD9A3;
}

.rank-change.down {
  color: #FF5A36;
}

.rank-change.same {
  color: var(--chalk-dim);
}

/* ============================================================
   CR7 VS MESSI VOTE BARS
   ============================================================ */
.vote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media(min-width: 600px) {
  .vote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.vote-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  transition: all 0.3s ease;
}

.vote-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover);
  border-color: rgba(217, 164, 65, 0.2);
}

.vote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.vote-category {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--chalk);
}

.vote-total {
  font-size: clamp(0.6rem, 1vw, 0.7rem);
  color: var(--chalk-dim);
  opacity: 0.6;
  font-family: var(--font-data);
}

.vote-bar-container {
  width: 100%;
  margin-bottom: 10px;
}

.vote-bar {
  height: clamp(28px, 4vw, 36px);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  border: 1px solid var(--line);
}

.vote-cr7 {
  background: linear-gradient(90deg, #C8102E, #E0173D);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  min-width: 30px;
  position: relative;
  overflow: hidden;
}

.vote-cr7::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  animation: voteShine 3s ease-in-out infinite;
}

.vote-messi {
  background: linear-gradient(90deg, #75AADB, #5B9BD5);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
  min-width: 30px;
  position: relative;
  overflow: hidden;
}

.vote-messi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(100%);
  animation: voteShine 3s ease-in-out infinite 1.5s;
}

@keyframes voteShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.vote-label {
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  font-weight: 700;
  color: var(--chalk);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.vote-btn {
  padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 16px);
  border-radius: 6px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--chalk);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  min-height: clamp(36px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  touch-action: manipulation;
}

.vote-btn:active {
  transform: scale(0.95);
}

.vote-btn.cr7-btn {
  border-color: rgba(200, 16, 46, 0.4);
  color: #E0173D;
}

.vote-btn.cr7-btn:hover {
  background: rgba(200, 16, 46, 0.15);
  border-color: #C8102E;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.2);
}

.vote-btn.messi-btn {
  border-color: rgba(91, 155, 213, 0.4);
  color: #5B9BD5;
}

.vote-btn.messi-btn:hover {
  background: rgba(91, 155, 213, 0.15);
  border-color: #75AADB;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91, 155, 213, 0.2);
}

.vote-btn.voted {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.vote-btn.voted.cr7-btn {
  background: rgba(200, 16, 46, 0.2);
  border-color: #C8102E;
}

.vote-btn.voted.messi-btn {
  background: rgba(91, 155, 213, 0.2);
  border-color: #75AADB;
}

@media(max-width: 480px) {
  .vote-grid {
    gap: 12px;
  }

  .vote-card {
    padding: 12px 14px;
  }

  .vote-bar {
    height: 24px;
    border-radius: 4px;
  }

  .vote-cr7,
  .vote-messi {
    min-width: 20px;
  }

  .vote-label {
    font-size: 0.45rem;
    padding: 0 4px;
  }

  .vote-actions {
    gap: 6px;
  }

  .vote-btn {
    font-size: 0.65rem;
    padding: 6px 10px;
    min-height: 32px;
    border-radius: 4px;
  }

  .vote-header {
    margin-bottom: 6px;
  }

  .vote-category {
    font-size: 0.75rem;
  }

  .vote-total {
    font-size: 0.55rem;
  }

  .vote-bar-container {
    margin-bottom: 6px;
  }
}

@media(max-width: 360px) {
  .vote-actions {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .vote-btn {
    min-height: 28px;
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .vote-card {
    padding: 10px 10px;
  }

  .vote-bar {
    height: 20px;
  }
}

@keyframes votePop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.vote-card.voted {
  animation: votePop 0.3s ease;
  border-color: var(--gold);
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti-piece {
  position: fixed;
  top: -20px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 500;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(540deg);
    opacity: 0.3;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--pitch-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 100% 200%;
  border-radius: 4px;
  animation: scrollbarPulse 3s ease-in-out infinite;
}

@keyframes scrollbarPulse {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

::placeholder {
  color: rgba(243, 239, 223, 0.3);
}

@media(max-width:600px) {
  .lb-table th,
  .lb-table td {
    padding: 8px 4px;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  }

  .lb-table .hide-mobile {
    display: none;
  }

  .lb-table tr.you::after {
    content: "👤";
    right: 4px;
    font-size: 0.8rem;
    background: none;
    padding: 0;
  }
}

@media(min-width:768px) {
  .preview-card-overlay .btn-glow {
    width: auto;
    min-width: 200px;
  }

  .card .btn-glow {
    width: auto;
    min-width: 200px;
  }
}

@media print {
  .particle-container {
    display: none;
  }

  .card::after,
  .ticket-card::after {
    display: none;
  }

  .btn-primary::after,
  .btn-gold::after {
    display: none;
  }
}

/* ============================================================
   NAV-ACTIONS
   ============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   APP MOBILE MENU
   ============================================================ */
.app-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-menu-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  .sidebar {
    position: relative !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid var(--gold) !important;
    z-index: 99999 !important;
  }

  .sidebar-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  #app-navlinks {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 80vw !important;
    z-index: 100000 !important;
    background: linear-gradient(180deg, #071B14 0%, #0A2A1C 100%) !important;
    border-right: 2px solid var(--gold) !important;
    padding: 20px 0 !important;
    flex-direction: column !important;
    gap: 2px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5) !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  #app-navlinks.open {
    transform: translateX(0) !important;
  }

  #app-navlinks a {
    padding: 14px 24px !important;
    font-size: 1rem !important;
    border-radius: 0 !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: var(--chalk) !important;
    background: transparent !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
  }

  #app-navlinks a .nav-icon {
    font-size: 1.2rem !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s !important;
  }

  #app-navlinks a:hover,
  #app-navlinks a.active {
    background: rgba(217, 164, 65, 0.1) !important;
    border-color: transparent !important;
    color: var(--gold-bright) !important;
  }

  #app-navlinks a:hover .nav-icon,
  #app-navlinks a.active .nav-icon {
    opacity: 1 !important;
  }

  #app-navlinks a.active {
    background: rgba(217, 164, 65, 0.15) !important;
    border-left: 3px solid var(--gold) !important;
  }

  #app-navlinks a::after {
    display: none !important;
  }

  #app-navlinks .logout-link {
    border-top: 1px solid var(--line) !important;
    margin-top: 8px !important;
    padding-top: 16px !important;
    color: var(--electric) !important;
  }

  #app-navlinks .lang-switch {
    margin: 8px 24px 0 !important;
  }

  #app-hamburger,
  .sidebar .hamburger {
    display: flex !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 100001 !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    padding: 8px 4px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  #app-hamburger span,
  .sidebar .hamburger span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: var(--chalk) !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
  }

  #app-hamburger.active span:nth-child(1),
  .sidebar .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px) !important;
  }

  #app-hamburger.active span:nth-child(2),
  .sidebar .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  #app-hamburger.active span:nth-child(3),
  .sidebar .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px) !important;
  }

  .main-content {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (min-width: 768px) {
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 220px !important;
    z-index: 50 !important;
    background: linear-gradient(180deg, var(--ink), #0A1F15) !important;
    border-right: 2px solid var(--gold) !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .sidebar-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .sidebar-top-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  #app-navlinks {
    display: flex !important;
    position: static !important;
    flex-direction: column !important;
    gap: 2px !important;
    transform: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow-y: visible !important;
    width: auto !important;
  }

  #app-navlinks a {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--chalk) !important;
    background: transparent !important;
    font-size: 0.9rem !important;
  }

  #app-navlinks a:hover {
    background: rgba(217, 164, 65, 0.1) !important;
    color: var(--gold-bright) !important;
  }

  #app-navlinks a.active {
    background: rgba(217, 164, 65, 0.15) !important;
    border-color: var(--gold) !important;
    color: var(--gold-bright) !important;
  }

  #app-navlinks a::after {
    display: none !important;
  }

  #app-navlinks .logout-link {
    border-top: 1px solid var(--line) !important;
    padding-top: 14px !important;
    margin-top: 8px !important;
    color: var(--electric) !important;
  }

  #app-navlinks .lang-switch {
    margin: 12px 16px 0 !important;
  }

  #app-hamburger,
  .sidebar .hamburger {
    display: none !important;
  }

  .app-menu-backdrop {
    display: none !important;
  }

  .main-content {
    margin-left: 220px !important;
    min-height: 100vh;
  }
}

/* ============================================================
   SLIDESHOW BASE (scoreboard background crossfade)
   ============================================================ */
.slideshow-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slide-dot.active {
  background: var(--gold-bright);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(217, 164, 65, 0.5);
}

/* ============================================================
   PRIZE STRIP: small boxes
   Default = swipe by hand (works in Opera Mini, data saver,
   reduced-motion). Auto-drift is added only where supported.
   ============================================================ */

/* Stops the grid column from stretching to fit the boxes */
.hero-grid > * { min-width: 0; }

.prize-strip {
  margin-top: 20px;
  width: 100%;
  max-width: 560px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.prize-strip::-webkit-scrollbar { display: none; }

.prize-row {
  display: flex;
  width: max-content;
  padding: 4px 0;
}

.prize-card {
  flex: 0 0 auto;
  width: 108px;
  margin-right: 10px;          /* margin, not gap, so the -50% loop is exact */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 6px 8px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1.5px solid rgba(217,164,65,.35);
  border-radius: 10px;
}

.prize-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, #0F4A34, #07231A);
}

.prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prize-thumb.no-img img { display: none; }

.prize-badge {
  font-family: var(--font-data);
  font-size: .5rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-bright);
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.prize-name {
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.25;
  color: var(--chalk);
}

@media (max-width: 480px) {
  .prize-card { width: 96px; }
}

/* Enhancement: auto-drift only where CSS animation is supported */
@supports (animation-name: none) {
  .prize-strip { overflow: hidden; }

  .prize-row {
    -webkit-animation: prizeScroll 35s linear infinite;   /* bigger number = slower */
            animation: prizeScroll 35s linear infinite;
    will-change: transform;
  }

  @-webkit-keyframes prizeScroll {
    to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
  }
  @keyframes prizeScroll {
    to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
  }

  .prize-strip:hover .prize-row,
  .prize-strip:active .prize-row {
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
  }
}

/* Lighter background animation on phones, to avoid lag */
@media (max-width: 767px) {
  body::before, body::after { animation: none; }
}

/* Keep this LAST: if the phone says "reduce motion", stop drifting and let people swipe */
@media (prefers-reduced-motion: reduce) {
  .prize-strip { overflow-x: auto; }
  .prize-row { -webkit-animation: none; animation: none; }
}

/* ============================================================
   LEADERBOARD: prize tiles, tabs, admin archive picker
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.lb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lb-tabs .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 8px;
  min-height: 40px;
  font-size: .75rem;
}

/* Prize tiles: very small, 3 per row on phones, 4 on larger screens */
.prize-list {
  margin-bottom: 12px;
  border: 1px solid rgba(217,164,65,.3);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.prize-list-head {
  padding: 5px 8px;
  font-family: var(--font-data);
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(217,164,65,.1);
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
}
@media (min-width: 640px) {
  .prize-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
}

.prize-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 4px 3px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  min-width: 0;
}

.prize-rank {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: .55rem;
  line-height: 1.2;
  color: var(--ink);
  background: var(--gold-bright);
  padding: 1px 6px;
  border-radius: 20px;
  white-space: nowrap;
}
.prize-desc {
  color: var(--chalk);
  font-weight: 600;
  font-size: .58rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.prize-val {
  color: var(--chalk-dim);
  font-size: .52rem;
  line-height: 1.1;
}
/* Admin archive date picker */
.archive-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.archive-form input[type="date"] {
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--chalk);
  color-scheme: dark;
  font-size: .9rem;
}
.archive-nav {
  width: auto;
  min-height: 40px;
  padding: 8px 14px;
}

/* Previous winners (player page) */
.win-period {
  font-family: var(--font-data);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 8px 0 4px;
}
.win-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  font-size: .7rem;
}
.win-phone { color: var(--chalk-dim); white-space: nowrap; }
.win-prize { flex: 1; min-width: 0; color: var(--chalk); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* Previous winners button + date chips */
.prev-winners { margin-top: 20px; }
.prev-winners summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
}
.prev-winners summary::-webkit-details-marker { display: none; }
.prev-body {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(217,164,65,.3);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.prev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.prev-chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  color: var(--chalk-dim);
  background: rgba(255,255,255,.04);
}
.prev-chip.active {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}
.prev-date { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .75rem; color: var(--chalk-dim); }
.prev-date input[type="date"] {
  min-height: 32px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--chalk);
  color-scheme: dark;
  font-size: .8rem;
}