* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

:root {
  --primary-bg: #0b0f1f;
  --secondary-bg: #121833;
  --accent-blue: #7c5cff;
  --accent-green: #22d3ee;
  --accent-orange: #a855f7;
  --glass-bg: rgba(18, 24, 51, 0.70);
  --glass-border: rgba(124, 92, 255, 0.25);
}

body {
  background: linear-gradient(135deg, #0b0f1f 0%, #1b2145 50%, #0b0f1f 100%);
  color: #ffffff;
  overflow-x: hidden;
}

.font-orbitron { font-family: 'Orbitron', monospace; }

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite;
}

@keyframes float {
  0%,100% { transform: translateY(100%) translateX(0); opacity: 0; }
  10%,90% { opacity: 0.3; }
  100% { transform: translateY(-100%) translateX(100px); opacity: 0; }
}

/* Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.glass-card:hover {
  border-color: var(--accent-blue);
  box-shadow:
    0 0 40px rgba(124,92,255,0.25),
    inset 0 0 40px rgba(124,92,255,0.08);
  transform: translateY(-5px);
}

/* Neon Glow */
.neon-blue {
  box-shadow:
    0 0 20px rgba(124,92,255,0.6),
    0 0 40px rgba(124,92,255,0.35),
    0 0 60px rgba(124,92,255,0.15);
}
.neon-green {
  box-shadow:
    0 0 20px rgba(34,211,238,0.6),
    0 0 40px rgba(34,211,238,0.35);
}
.neon-orange {
  box-shadow:
    0 0 20px rgba(168,85,247,0.6),
    0 0 40px rgba(168,85,247,0.35);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg,#7c5cff 0%,#4f46e5 100%);
  color: #0b0f1f;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:100%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);
  transition:left 0.5s ease;
}
.btn-primary:hover::before { left:100%; }

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124,92,255,0.7);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(124,92,255,0.12);
  box-shadow: 0 0 20px rgba(124,92,255,0.35);
  transform: scale(1.05);
}

/* Pulse */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 20px rgba(124,92,255,0.6); }
  50% { box-shadow: 0 0 40px rgba(124,92,255,0.9),0 0 60px rgba(124,92,255,0.45); }
}

/* Bounce */
.scroll-indicator { animation: bounce 2s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Fade In */
.fade-in-up {
  opacity:0;
  transform:translateY(30px);
  animation:fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  to { opacity:1; transform:translateY(0); }
}

.delay-100{animation-delay:.1s;}
.delay-200{animation-delay:.2s;}
.delay-300{animation-delay:.3s;}
.delay-400{animation-delay:.4s;}
.delay-500{animation-delay:.5s;}

/* Ticker */
.ticker-wrapper {
  overflow:hidden;
  background: linear-gradient(
    90deg,
    rgba(124,92,255,0.12),
    rgba(34,211,238,0.12),
    rgba(168,85,247,0.12)
  );
}
.ticker-content { display:flex; animation:ticker 30s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Game Card */
.game-card { position:relative; overflow:hidden; }
.game-card::before {
  content:'';
  position:absolute;
  top:-50%; left:-50%;
  width:200%; height:200%;
  background: conic-gradient(from 0deg,transparent,var(--accent-blue),transparent 30%);
  animation: rotate 4s linear infinite;
  opacity:0;
  transition:opacity .3s ease;
}
.game-card:hover::before { opacity:1; }

.game-card-inner {
  position:relative;
  z-index:1;
  background: var(--glass-bg);
  border-radius:18px;
  height:100%;
}

@keyframes rotate { to { transform:rotate(360deg);} }

/* Modal */
.modal-backdrop {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}

/* Nav */
.nav-link { position:relative; padding:8px 16px; transition:all .3s ease; }
.nav-link::after {
  content:'';
  position:absolute;
  bottom:0; left:50%;
  width:0; height:2px;
  background: var(--accent-blue);
  transition:all .3s ease;
  transform:translateX(-50%);
}
.nav-link:hover::after { width:80%; }
.nav-link:hover { color:var(--accent-blue); }

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg,#121833 0%,#0b0f1f 100%);
  border-right:1px solid rgba(124,92,255,0.15);
}
.sidebar-item { transition:all .3s ease; border-left:3px solid transparent; }
.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(124,92,255,0.12);
  border-left-color: var(--accent-blue);
}

/* Table */
.data-table tr {
  transition:all .3s ease;
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.data-table tr:hover { background: rgba(124,92,255,0.08); }

/* Countdown */
.countdown-digit {
  background: linear-gradient(135deg,rgba(124,92,255,0.25),rgba(124,92,255,0.08));
  border:1px solid rgba(124,92,255,0.35);
}

/* Bet */
.bet-option { transition:all .4s cubic-bezier(0.4,0,0.2,1); cursor:pointer; }
.bet-option:hover { transform:scale(1.02); }
.bet-option.selected {
  border-color: var(--accent-blue);
  box-shadow:
    0 0 40px rgba(124,92,255,0.45),
    inset 0 0 60px rgba(124,92,255,0.12);
}

/* Range */
input[type="range"] {
  -webkit-appearance:none;
  width:100%;
  height:8px;
  background: linear-gradient(90deg,#7c5cff,#22d3ee);
  border-radius:4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none;
  width:24px; height:24px;
  background: var(--accent-blue);
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 20px rgba(124,92,255,0.7);
}

/* Scrollbar */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius:4px;
}

/* Mobile Menu */
.mobile-menu {
  transform:translateX(-100%);
  transition:transform .4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform:translateX(0); }

/* Chart */
.chart-bar { animation: chartGrow 1s ease forwards; transform-origin:bottom; }
@keyframes chartGrow { from{transform:scaleY(0);} }

/* Glow text */
.glow-text {
  text-shadow:
    0 0 20px rgba(124,92,255,0.6),
    0 0 40px rgba(124,92,255,0.35);
}

.main-container { min-height:100%; overflow-y:auto; }

/* Match cards */
.match-ticker-card {
  min-width:220px;
  padding:16px;
  border-radius:18px;
  background: var(--glass-bg);
  border:1px solid rgba(124,92,255,0.15);
  backdrop-filter:blur(12px);
  transition:.3s ease;
}
.match-ticker-card:hover {
  border-color:var(--accent-blue);
  box-shadow:0 0 20px rgba(124,92,255,0.3);
  transform:translateY(-3px);
}

/* Live badge */
.live-badge {
  background:#ef4444;
  color:#fff;
  font-weight:700;
  padding:3px 12px;
  border-radius:999px;
  font-size:11px;
  animation:pulseLive 1.5s infinite;
}
@keyframes pulseLive {
  0%,100% { box-shadow:0 0 6px rgba(239,68,68,0.6); }
  50% { box-shadow:0 0 14px rgba(239,68,68,1); }
}

/* Live big card */
.live-match-card {
  min-width:260px;
  padding:20px;
  border-radius:22px;
  background: var(--glass-bg);
  border:1px solid rgba(124,92,255,0.15);
  backdrop-filter:blur(16px);
  transition:.3s ease;
}
.live-match-card:hover {
  transform:translateY(-6px) scale(1.02);
  border-color:var(--accent-blue);
  box-shadow:0 0 30px rgba(124,92,255,0.35);
}

/* Teams */
.team { font-weight:800; font-size:16px; }
.team.red { color:#f43f5e; }
.team.orange { color:#a855f7; }
.team.cyan { color:#22d3ee; }
.team.purple { color:#7c5cff; }
.team.green { color:#4ade80; }

.vs { color:#6b7280; font-weight:600; }
/* ================= FOOTER ================= */

footer {
  position: relative;
  color: #ffffff;
}

/* Top gradient fade */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(11, 15, 31, 0.6) 60%,
    rgba(11, 15, 31, 0.95) 100%
  );
  z-index: -1;
}

/* Brand icon glow */
footer .bg-gradient-to-br {
  background: linear-gradient(135deg, #7c5cff, #4f46e5);
  box-shadow:
    0 0 12px rgba(124, 92, 255, 0.6),
    0 0 24px rgba(124, 92, 255, 0.3);
}

/* Section headings */
footer h4 {
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Footer links */
footer a {
  position: relative;
  transition: all 0.3s ease;
}

/* Neon underline hover */
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #7c5cff, #22d3ee);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Link hover color */
footer a:hover {
  color: #7c5cff !important;
}

/* Social buttons */
footer .flex a[aria-label] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Social hover neon */
footer .flex a[aria-label]:hover {
  background: rgba(124, 92, 255, 0.15);
  border-color: #7c5cff;
  box-shadow:
    0 0 12px rgba(124, 92, 255, 0.5),
    0 0 24px rgba(124, 92, 255, 0.25);
  transform: translateY(-2px);
}

/* Divider line */
footer .border-t {
  border-color: rgba(124, 92, 255, 0.15) !important;
}

/* Bottom text styling */
footer p {
  color: #9ca3af;
}

/* 18+ warning glow */
footer p:last-child {
  color: #f43f5e;
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

/* Responsive spacing polish */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer .flex.items-center {
    justify-content: center;
  }

  footer .flex.gap-3 {
    justify-content: center;
  }
}
/* ================= MOBILE ================= */
@media (max-width: 640px) {

html {
  font-size: 14px;
}

/* containers */
.max-w-6xl,
.max-w-7xl {
  padding-left: 16px;
  padding-right: 16px;
}

/* navbar */
nav {
  padding: 10px 16px;
}

/* logo */
nav img {
  height: 40px;
}

/* buttons */
.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
}

/* cards */
.glass-card,
.live-match-card,
.match-ticker-card {
  border-radius: 16px;
  padding: 16px;
}

/* game cards */
.game-card-inner {
  padding: 16px;
}

/* text sizes */
h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
}

/* tables */
.data-table {
  display: block;
  overflow-x: auto;
}

/* bet options */
.bet-option {
  padding: 12px;
  font-size: 14px;
}

/* ticker */
.ticker-content {
  animation-duration: 45s;
}

/* match cards */
.live-match-card {
  min-width: 100%;
}

/* sidebar */
.sidebar {
  width: 260px;
}

/* footer */
footer .grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

}
/* ================= TABLET ================= */
@media (min-width: 641px) and (max-width: 1024px) {

html {
  font-size: 15px;
}

/* cards */
.glass-card {
  padding: 20px;
}

/* game cards */
.game-card-inner {
  padding: 20px;
}

/* navbar spacing */
nav {
  padding: 12px 20px;
}

/* buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
}

/* live cards */
.live-match-card {
  min-width: 240px;
}

/* ticker */
.ticker-content {
  animation-duration: 35s;
}

/* footer grid */
footer .grid {
  grid-template-columns: repeat(2, 1fr);
}

}
/* ================= SMALL LAPTOP ================= */
@media (min-width:1025px) and (max-width:1280px){

.max-w-7xl {
  padding-left: 24px;
  padding-right: 24px;
}

.live-match-card {
  min-width: 250px;
}

}
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
}
@media (max-width:768px){

.desktop-nav {
  display:none;
}

.mobile-toggle {
  display:block;
}

}
@media (max-width:768px){
table{
display:block;
width:100%;
}
}