:root {
  --neon: #b026ff;
  --neon-bright: #d633ff;
  --neon-pink: #ff5cf0;
  --neon-cyan: #c77dff;
  --bg: #0a0014;
  --bg-2: #14002a;
  --silver: #d9d2e6;
  --glass: rgba(20, 6, 40, 0.55);
  --glass-strong: rgba(12, 2, 28, 0.85);
  --border: rgba(176, 38, 255, 0.35);
  --border-bright: rgba(214, 51, 255, 0.6);
  --glow: 0 0 12px rgba(176, 38, 255, 0.45), 0 0 28px rgba(176, 38, 255, 0.2);
  --glow-strong: 0 0 16px rgba(214, 51, 255, 0.8), 0 0 40px rgba(176, 38, 255, 0.4);
  --radius: 1.4rem;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a, button { touch-action: manipulation; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: #f3e9ff;
  background: radial-gradient(ellipse at top, #1a0030 0%, #0a0014 55%, #050008 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 64px 16px 96px;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://ik.imagekit.io/tcaifgw9w/download.png') center center / cover no-repeat;
  z-index: -2;
  opacity: 0.25;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 0, 140, 0.4), rgba(10, 0, 20, 0.8));
  z-index: -1;
}

/* ---------- Boot screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.4s ease, visibility 0.4s;
}
.boot.hide { opacity: 0; visibility: hidden; }
.boot-logo { display: flex; align-items: center; gap: 14px; }
.boot-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(176, 38, 255, 0.18);
  border-top-color: var(--neon-bright);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--neon-pink));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Cursor light (desktop) ---------- */
.cursor-light {
  position: fixed;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-light.active { opacity: 1; }
}

/* ---------- Top bar ---------- */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a0080, var(--neon), var(--neon-bright), var(--neon-pink), #fff);
  z-index: 1000;
  box-shadow: 0 0 14px rgba(176, 38, 255, 0.8);
}

/* ---------- Watermark ---------- */
.wm-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex; flex-wrap: wrap;
  align-content: flex-start;
}
.wm-text {
  color: rgba(176, 38, 255, 0.04);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 28px 32px;
  transform: rotate(-30deg);
  user-select: none;
}

/* ---------- Lightning flashes ---------- */
.lightning {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.lightning__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(214, 51, 255, 0.4), rgba(176, 38, 255, 0.15) 40%, transparent 70%);
  opacity: 0;
  animation: flash1 9s ease-in-out infinite;
}
.lightning__flash--2 {
  background: radial-gradient(ellipse at 75% 10%, rgba(255, 255, 255, 0.3), rgba(199, 125, 255, 0.12) 35%, transparent 65%);
  animation: flash2 13s ease-in-out infinite 2s;
}
.lightning__flash--3 {
  background: radial-gradient(ellipse at 20% 5%, rgba(255, 92, 240, 0.35), transparent 60%);
  animation: flash3 17s ease-in-out infinite 5s;
}
@keyframes flash1 {
  0%, 100% { opacity: 0; }
  92% { opacity: 0; }
  93% { opacity: 0.7; }
  94% { opacity: 0.1; }
  95% { opacity: 0.5; }
  96% { opacity: 0; }
}
@keyframes flash2 {
  0%, 100% { opacity: 0; }
  88% { opacity: 0; }
  89% { opacity: 0.5; }
  90% { opacity: 0.08; }
  91% { opacity: 0.35; }
  92% { opacity: 0; }
}
@keyframes flash3 {
  0%, 100% { opacity: 0; }
  82% { opacity: 0; }
  83% { opacity: 0.6; }
  84% { opacity: 0.12; }
  85% { opacity: 0.4; }
  86% { opacity: 0; }
}

/* ---------- Flying stars ---------- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(214, 51, 255, 0.5);
  opacity: 0;
  animation: starFly linear infinite;
}
.star--purple {
  background: var(--neon-bright);
  box-shadow: 0 0 6px rgba(214, 51, 255, 0.9), 0 0 14px rgba(176, 38, 255, 0.6);
}
.star--pink {
  background: var(--neon-pink);
  box-shadow: 0 0 6px rgba(255, 92, 240, 0.9), 0 0 14px rgba(255, 92, 240, 0.5);
}
.star--big {
  width: 4px;
  height: 4px;
}
@keyframes starFly {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(0.3);
    opacity: 0;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 12px 0;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 2, 28, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 30px rgba(80, 0, 140, 0.3);
}
.nav__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__brand img { border-radius: 8px; }
.nav__brand-accent { color: var(--neon-bright); }
.nav__links {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: #d9a8ff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.3s, background 0.3s;
}
.nav__link:hover, .nav__link.active {
  color: #fff;
  background: rgba(176, 38, 255, 0.18);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.nav__cta:active { transform: scale(0.95); }

/* ---------- Container ---------- */
.container { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: linear-gradient(95deg, #6a00cc, var(--neon-bright));
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glow-strong); }
.btn--primary:active { transform: scale(0.96); }
.btn--ghost {
  background: rgba(20, 6, 40, 0.6);
  backdrop-filter: blur(10px);
  color: #f5ecff;
  border-color: var(--border-bright);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--neon-bright); box-shadow: var(--glow); background: rgba(40, 10, 70, 0.7); }
.btn--ghost:active { transform: scale(0.96); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 32px 16px 28px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/29506609/pexels-photo-29506609.jpeg?auto=compress&cs=tinysrgb&w=1600') center center / cover no-repeat;
  z-index: -3;
  opacity: 0.55;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(8, 0, 18, 0.78) 0%, rgba(8, 0, 18, 0.45) 35%, rgba(10, 0, 20, 0.2) 65%, transparent 100%),
    linear-gradient(180deg, rgba(10, 0, 20, 0.5), rgba(10, 0, 20, 0.75));
  z-index: -2;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero__glow {
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 280px;
  background: radial-gradient(ellipse, rgba(176, 38, 255, 0.35), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: glowFloat 8s ease-in-out infinite alternate;
}
@keyframes glowFloat {
  from { transform: translateY(0) scale(1); opacity: 0.7; }
  to { transform: translateY(-20px) scale(1.1); opacity: 1; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(176, 38, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
}
.hero__title-grad {
  background: linear-gradient(135deg, var(--neon-bright), var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__subtitle {
  max-width: 480px;
  margin: 0 auto 24px;
  color: #d9c8f5;
  font-size: 0.95rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease), filter 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 35px rgba(80, 0, 140, 0.3);
  background: rgba(12, 2, 28, 0.6);
}
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  position: relative;
  line-height: 0;
}
.carousel__slide a { display: block; line-height: 0; }
.carousel__slide img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel__dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 2;
}
.carousel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.carousel__dot.active {
  background: var(--neon-bright);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--neon-bright);
}
.carousel__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.carousel__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon), var(--neon-pink));
  transition: width 0.1s linear;
}

/* ---------- Link box ---------- */
.link-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.link-box a {
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: 44px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  color: #f5ecff;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.link-box a:hover {
  border-color: var(--neon-bright);
  transform: translateX(6px) scale(1.02);
  box-shadow: var(--glow);
}
.link-box a:active { transform: scale(0.97); }
.link-box a i:first-child {
  width: 22px; text-align: center;
  font-size: 1rem;
  color: var(--neon-bright);
}
.link-box a span { flex: 1; }
.link-box__arrow { font-size: 0.7rem; color: var(--neon-cyan); opacity: 0.6; transition: transform 0.3s; }
.link-box a:hover .link-box__arrow { transform: translateX(4px); opacity: 1; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--glass);
  border-radius: 56px;
  margin: 0 0 18px;
  padding: 10px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.marquee__track {
  display: flex;
  animation: scroll 22s linear infinite;
  white-space: nowrap;
  width: fit-content;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--neon-bright), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ---------- Tabs ---------- */
.tabs-section { margin-bottom: 24px; }
.tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  background: var(--glass);
  padding: 5px;
  border-radius: 60px;
  border: 1px solid var(--border);
}
.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #d9a8ff;
  font-family: inherit;
  font-weight: 600;
  padding: 10px 0;
  border-radius: 60px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.35s var(--ease);
}
.tab:hover { color: #fff; background: rgba(176, 38, 255, 0.18); }
.tab:active { transform: scale(0.95); }
.tab.active {
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  color: #fff;
  box-shadow: var(--glow);
  animation: tabPulse 2.4s ease-in-out infinite;
}
@keyframes tabPulse {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: var(--glow-strong); }
}

.update-time {
  font-size: 0.72rem;
  text-align: right;
  color: var(--neon-bright);
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ---------- API toolbar ---------- */
.api-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.api-status { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: #d9c0ff; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 10px #4ade80;
}
.status-dot.loading { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; animation: pulse 1s infinite; }
.status-dot.error { background: #fb7185; box-shadow: 0 0 10px #fb7185; }
@keyframes pulse { 50% { opacity: 0.4; } }
.refresh-btn {
  border: 1px solid var(--border-bright);
  background: linear-gradient(95deg, #2a0a4d, #6a00cc);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.refresh-btn:disabled { opacity: 0.55; cursor: wait; }
.refresh-btn:active { transform: scale(0.93); }

/* ---------- Date nav ---------- */
.date-nav { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.date-nav::-webkit-scrollbar { display: none; }
.date-btn {
  flex: 1; min-width: 100px;
  padding: 9px;
  border-radius: 999px;
  border: 1px solid rgba(176, 38, 255, 0.28);
  background: var(--glass);
  color: #d9a8ff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform 0.2s;
}
.date-btn.active {
  color: #fff;
  border-color: var(--neon);
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  box-shadow: var(--glow);
}
.date-btn:active { transform: scale(0.93); }

/* ---------- Panel ---------- */
.panel {
  display: none;
  background: rgba(18, 4, 36, 0.82);
  border-radius: var(--radius);
  padding: 16px 14px;
  max-height: 540px;
  overflow-y: auto;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.panel.show { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel::-webkit-scrollbar { width: 5px; }
.panel::-webkit-scrollbar-track { background: rgba(176, 38, 255, 0.08); border-radius: 4px; }
.panel::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--neon), #6a00cc); border-radius: 4px; }

/* ---------- Match card ---------- */
.match-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(176, 38, 255, 0.12);
  border-radius: 13px;
  transition: background 0.25s, transform 0.25s;
}
.match-card:hover { background: rgba(176, 38, 255, 0.09); transform: translateX(3px); }
.match-card:active { background: rgba(176, 38, 255, 0.14); transform: scale(0.98); }
.match-time { color: var(--neon-cyan); font-size: 0.72rem; font-weight: 700; }
.match-main { min-width: 0; }
.league-line {
  display: flex; align-items: center; gap: 7px;
  color: #cfa8f7;
  font-size: 0.62rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 700;
}
.league-line img { width: 16px; height: 16px; object-fit: contain; }
.team-line { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 650; }
.team-line + .team-line { margin-top: 6px; }
.team-line img { width: 20px; height: 20px; object-fit: contain; }
.score-box { min-width: 54px; text-align: center; }
.score-value {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(176, 38, 255, 0.25);
  border: 1px solid rgba(176, 38, 255, 0.35);
  border-radius: 10px;
  padding: 5px 8px;
}
.live-badge {
  display: inline-block; margin-top: 5px;
  color: #fff; background: #e11d48;
  border-radius: 999px; padding: 2px 6px; font-size: 0.55rem;
}
.status-badge { display: inline-block; margin-top: 5px; color: var(--neon-cyan); font-size: 0.55rem; }

/* ---------- Prediction card ---------- */
.prediction-card {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(176, 38, 255, 0.13);
  border-radius: 14px;
  margin-bottom: 6px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.prediction-card:hover { transform: translateY(-3px); box-shadow: var(--glow); }
.prediction-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.prediction-teams { font-weight: 750; font-size: 0.83rem; }
.prediction-league { color: var(--neon-cyan); font-size: 0.6rem; margin-top: 4px; }
.winner-chip {
  white-space: nowrap; padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  color: #fff; font-size: 0.6rem; font-weight: 800;
  height: max-content;
}
.prob-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prob {
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.2);
  border-radius: 10px; padding: 7px 5px; text-align: center;
}
.prob b { display: block; color: #fff; font-size: 0.78rem; }
.prob span { color: #bda2d9; font-size: 0.56rem; }
.prediction-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: #d7c0ec; font-size: 0.59rem; }
.meta-chip { border: 1px solid rgba(176, 38, 255, 0.22); background: rgba(20, 6, 40, 0.65); border-radius: 999px; padding: 4px 7px; }

/* ---------- Loading / empty / error ---------- */
.loading-state, .empty-state, .error-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 180px; text-align: center;
  color: var(--neon-cyan); font-size: 0.76rem;
}
.loader {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(176, 38, 255, 0.18);
  border-top-color: var(--neon-bright);
  animation: spin 0.8s linear infinite;
}
.error-state button {
  margin-top: 8px; padding: 8px 16px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(95deg, #2a0a4d, #6a00cc);
  color: #fff; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700;
}
.api-note { text-align: center; color: #8e70a6; font-size: 0.6rem; padding: 10px 0 4px; }

/* ---------- All button ---------- */
.all-btn {
  background: linear-gradient(95deg, #2a0a4d, #1a063a);
  border: 1px solid var(--neon);
  display: block; text-align: center;
  padding: 12px;
  border-radius: 60px;
  color: #f7f0ff;
  font-family: inherit;
  font-weight: 700;
  margin-top: 18px;
  cursor: pointer;
  width: 100%;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.all-btn::before {
  content: "";
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 51, 255, 0.4), transparent);
  transition: left 0.6s;
}
.all-btn:hover { border-color: var(--neon-bright); background: linear-gradient(95deg, #4a1080, #2a0a4d); transform: translateY(-3px); box-shadow: var(--glow-strong); }
.all-btn:hover::before { left: 100%; }
.all-btn:active { transform: scale(0.97); }
.all-btn i { transition: transform 0.35s; }
.all-btn:hover i { transform: rotate(20deg) scale(1.2); }

/* ---------- Service marquee ---------- */
.service-marquee {
  background: var(--glass);
  border-radius: 56px;
  margin: 18px 0 20px;
  padding: 5px 0;
  overflow: hidden;
  border: 1px solid var(--border);
}
.service-track {
  display: flex;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  width: fit-content;
}
.service-track:hover { animation-play-state: paused; }
.service-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 20px;
  background: rgba(30, 8, 55, 0.9);
  border-radius: 50px; margin: 0 8px;
  text-decoration: none; color: #f5ecff;
  font-weight: 500; font-size: 0.8rem;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.service-item:hover {
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  border-color: var(--neon-bright);
  transform: scale(1.08) translateY(-2px);
  box-shadow: var(--glow);
}
.service-item:active { transform: scale(0.95); }
.service-item i { transition: transform 0.3s; }
.service-item:hover i { transform: scale(1.2); }

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

/* ---------- Services grid ---------- */
.services { margin-bottom: 24px; content-visibility: auto; }
.services__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  text-decoration: none;
  color: #f3e9ff;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--neon-bright);
  box-shadow: var(--glow);
}
.service-card:active { transform: scale(0.97); }
.service-card i {
  font-size: 1.4rem;
  color: var(--neon-bright);
  transition: transform 0.3s;
}
.service-card:hover i { transform: scale(1.15); }
.service-card span { font-size: 0.78rem; font-weight: 600; }
.service-card small { font-size: 0.6rem; color: #bda2d9; }

/* ---------- Promo ---------- */
.promo {
  margin-bottom: 24px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.promo a { display: block; line-height: 0; }
.promo img { width: 100%; display: block; }
.promo:hover { transform: scale(1.01); box-shadow: var(--glow); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--neon-cyan);
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(6, 0, 16, 0.96);
  backdrop-filter: blur(18px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-box {
  background: linear-gradient(145deg, #1a063a, #10022a);
  border-radius: 1.6rem;
  max-width: 450px; width: 88%;
  padding: 24px;
  border: 1px solid var(--neon);
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 0 40px rgba(176, 38, 255, 0.4);
  animation: modalIn 0.4s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--neon-bright), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.close-modal {
  float: right; font-size: 1.4rem;
  border: none; background: none;
  color: var(--neon-cyan);
  cursor: pointer; line-height: 1;
  transition: all 0.3s;
}
.close-modal:hover { color: #fff; transform: rotate(90deg) scale(1.2); }
.close-modal:active { transform: rotate(90deg) scale(0.9); }
.modal-menu { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.modal-menu a {
  background: #1a063a;
  padding: 12px 16px;
  border-radius: 1.2rem;
  text-decoration: none; color: #f3ecff;
  border: 1px solid #6a00cc;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}
.modal-menu a:hover {
  background: linear-gradient(95deg, #4a1080, #6a00cc);
  border-color: var(--neon-bright);
  transform: translateX(6px);
  box-shadow: var(--glow);
}
.modal-menu a:active { transform: scale(0.97); }
.modal-menu a i { font-size: 1.1rem; width: 24px; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.mobnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 2, 28, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  z-index: 900;
}
.mobnav__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #9a7fb8;
  font-size: 0.58rem;
  font-weight: 600;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  transition: color 0.3s, transform 0.3s;
}
.mobnav__item i { font-size: 1.05rem; }
.mobnav__item.active { color: #fff; }
.mobnav__item.active i { color: var(--neon-bright); filter: drop-shadow(0 0 6px var(--neon-bright)); }
.mobnav__item:active { transform: scale(0.9); }
.mobnav__item--cta {
  background: linear-gradient(95deg, #6a00cc, var(--neon));
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--glow);
}
.mobnav__item--cta i { color: #fff; }

/* ---------- Ripple ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* ---------- Magnetic (desktop) ---------- */
.magnetic { transition: transform 0.2s ease; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 24px 40px; }
}

@media (max-width: 500px) {
  .match-card { grid-template-columns: 60px 1fr auto; }
  .team-line { font-size: 0.76rem; }
  .carousel__slide img { max-height: 180px; }
  .hero__title { font-size: 2rem; }
  body { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
}
@media (max-width: 768px) {
  .hero__bg {
    background-image: url('https://images.pexels.com/photos/29506609/pexels-photo-29506609.jpeg?auto=compress&cs=tinysrgb&w=900');
    opacity: 0.4;
  }
}
@media (min-width: 1024px) {
  .container { max-width: 880px; }
  .hero__title { font-size: 3.2rem; }
}

@media (min-width: 1280px) {
  .container { max-width: 960px; }
}
