@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0e1a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(30, 58, 138, 0.05) 0%,
    rgba(59, 130, 246, 0.02) 25%,
    rgba(147, 197, 253, 0.04) 50%,
    rgba(30, 58, 138, 0.05) 75%,
    rgba(59, 130, 246, 0.02) 100%
  );
  background-size: 400% 400%;
  animation: waveMove 15s ease-in-out infinite;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(30, 58, 138, 0.2) 1px, transparent 1px);
  background-size: 150px 150px, 200px 200px, 100px 100px;
  animation: floatParticles 20s linear infinite;
}

/* Floating Images */
.floating-image {
  position: fixed;
  pointer-events: none;
  z-index: -2;
  opacity: 0.4;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
  transition: transform 0.1s ease-out, filter 0.5s ease-in-out;
}

@keyframes floatingImageGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(147, 197, 253, 0.8));
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(25px);
  z-index: 1000;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-glow {
  position: relative;
}

.logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  transition: all 0.4s ease;
}

.logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.7), 0 0 60px rgba(59, 130, 246, 0.3);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  padding: 0.8rem 1.5rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 25px;
  border: 2px solid rgba(147, 51, 234, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 0;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(147, 51, 234, 0.3);
  border-color: rgba(147, 51, 234, 0.8);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4), 0 0 20px rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* Neon Effects */
.neon-text {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

.neon-border {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), inset 0 0 15px rgba(59, 130, 246, 0.1);
  position: relative;
}

.neon-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.1));
  border: 2px solid #3b82f6;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.neon-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 197, 253, 0.2));
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}

/* Main Content */
.main-content {
  margin-top: 90px;
  min-height: 100vh;
  padding: 2rem;
  flex: 1;
}

.hero-section {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 30%, #3b82f6 50%, #60a5fa 70%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
  letter-spacing: 2px;
  line-height: 1.1;
  text-align: center;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 3rem;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Content Grid - Stacked Layout */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sign Up Card */
.signup-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  z-index: -1;
}

.rainbet-section {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.rainbet-logo {
  height: 100px;
  filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.1));
  margin-bottom: 1.5rem;
}

.exclusive-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, #9333ea, #a855f7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

.casino-tagline {
  color: #3b82f6;
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(147, 51, 234, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #9333ea, #a855f7);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.benefit-item:hover::before {
  transform: scaleY(1);
}

.benefit-item:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15);
}

.benefit-icon {
  font-size: 1.5rem;
  min-width: 30px;
  color: #9333ea;
  text-align: center;
}

.benefit-text {
  flex: 1;
}

.benefit-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.benefit-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.signup-cta {
  text-align: center;
}

.cta-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.affiliate-btn {

  border-radius: 16px;
  width: 100%;
  padding: 1.2rem;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.affiliate-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%; /* start slightly outside but not entire width */
  width: 40%; /* make it a band instead of full width */
  height: 100%;
  border-radius: inherit; /* clip corners same as button */
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: left 0.6s ease;
}
}

.affiliate-btn:hover::before {
  left: 100%; /* animates across smoothly */
}

.affiliate-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-lightning {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.affiliate-btn:hover .btn-lightning {
  left: 100%;
}

/* CTA Buttons Section */
.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.leaderboard-cta,
.discord-cta {
  text-align: center;
}

.leaderboard-btn,
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.leaderboard-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.1));
  border: 2px solid #3b82f6;
  color: #fff;
}

.leaderboard-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.3), transparent);
  transition: left 0.6s ease;
}

.leaderboard-btn:hover::before {
  left: 100%;
}

.leaderboard-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 197, 253, 0.2));
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 8px 25px rgba(59, 130, 246, 0.3);
  transform: translateY(-3px) scale(1.05);
}

.discord-btn {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.1));
  border: 2px solid #9333ea;
  color: #fff;
}

.discord-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
  transition: left 0.6s ease;
}

.discord-btn:hover::before {
  left: 100%;
}

.discord-btn:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(168, 85, 247, 0.2));
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.4), 0 8px 25px rgba(147, 51, 234, 0.3);
  transform: translateY(-3px) scale(1.05);
}

.btn-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.leaderboard-btn:hover .btn-arrow,
.discord-btn:hover .btn-arrow {
  transform: translateX(8px);
}

/* Stream Section */
.stream-section {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stream-header h3 {
  color: #3b82f6;
  font-size: 1.5rem;
  font-weight: 700;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: livePulse 1s ease-in-out infinite;
}
.dot-offline {
  animation: none !important;
  background-color: gray !important;
}

.embed-container {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #111827;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.embed-container iframe {
  width: 100%;
  height: 100%;
}

.stream-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.viewer-count {
  color: #3b82f6;
  font-weight: 700;
}

/* Leaderboard Page */
.leaderboard-main {
  margin-top: 90px;
  padding: 2rem;
  min-height: 100vh;
  flex: 1;
}

.leaderboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.leaderboard-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}

.prize-amount {
  margin-bottom: -1rem;
  font-size: 4rem;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Timer */
.timer-container {
  text-align: center;
  margin-bottom: 3rem;
  transition: all 0.5s ease;
}

.timer-container.hidden {
  opacity: 0;
  transform: translateY(-50px);
  height: 0;
  margin: 0;
  overflow: hidden;
}

.timer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem 3rem;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.timer-label {
  color: #3b82f6;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.timer-display {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Controls */
.leaderboard-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 4rem;
}

.control-btn {
  padding: 1rem 2.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid rgba(147, 51, 234, 0.3);
  color: #cbd5e1;
  font-weight: 600;
}

.control-btn.active {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border-color: rgba(147, 51, 234, 0.8);
  color: #fff;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.control-btn:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

/* Podium Section */
.podium-section {
  margin-bottom: 4rem;
}

.podium-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-end;
  perspective: 1000px;
}

/* Dramatic 3D hover animations for top 3 cards */
.podium-card {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(147, 51, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.podium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.05));
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.podium-card:hover::before {
  opacity: 1;
}

.podium-card:hover {
  transform: translateY(-15px) scale(1.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

.first-place {
  transform: scale(1.1);
  background: rgba(251, 191, 36, 0.1) !important;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
  min-height: 400px;
}

.first-place:hover {
  transform: scale(1.13) translateY(-15px);
  box-shadow: 0 25px 50px rgba(251, 191, 36, 0.4), 0 0 80px rgba(251, 191, 36, 0.2);
}

.second-place {
  background: rgba(156, 163, 175, 0.1) !important;
  border: 2px solid #9ca3af;
  box-shadow: 0 0 20px rgba(156, 163, 175, 0.2);
  min-height: 350px;
}

.second-place:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(156, 163, 175, 0.3), 0 0 60px rgba(156, 163, 175, 0.1);
}

.third-place {
  background: rgba(205, 127, 50, 0.1) !important;
  border: 2px solid #cd7f32;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
  min-height: 300px;
}

.third-place:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 35px rgba(205, 127, 50, 0.3), 0 0 50px rgba(205, 127, 50, 0.1);
}

.rank-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.5rem;
  background: #00bfff;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.rank-badge.champion {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.player-avatar {
  margin-bottom: 1.5rem;
  position: relative;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #00bfff;
  margin: 0 auto;
  position: relative;
  animation: avatarSpin 10s linear infinite;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}

.champion-ring {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.avatar-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #00bfff, #40e0ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.player-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.champion-name {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.player-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-stat {
  background: rgba(0, 206, 209, 0.1);
  border-color: rgba(0, 206, 209, 0.3);
}

.champion-prize {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
}

.stat-label {
  font-size: 0.8rem;
  color: #ccc;
  font-weight: 700;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
}

.champion-prize .stat-value {
  color: #ffd700;
}

/* Leaderboard Table */
.leaderboard-table {
  background: linear-gradient(135deg, rgba(10, 10, 30, 0.9), rgba(20, 20, 50, 0.9));
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.table-header {
  background: linear-gradient(45deg, #00bfff, #40e0ff);
  padding: 1.5rem;
  text-align: center;
}

.table-header h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.leaderboard-table table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  background: rgba(0, 191, 255, 0.2);
  padding: 1.5rem;
  text-align: left;
  color: #00bfff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(0, 191, 255, 0.5);
}

.leaderboard-table td {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  transition: all 0.3s ease;
}

.leaderboard-table tr:hover {
  background: rgba(0, 191, 255, 0.1);
  transform: scale(1.02);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #00bfff;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
}

.username {
  color: #00bfff;
  font-weight: 700;
}

.wagered {
  color: #fff;
  font-weight: 700;
}

.prize {
  color: #00ced1;
  font-weight: 900;
}

/* Footer - Improved and Cleaner */
.footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid rgba(0, 191, 255, 0.2);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.social-icon {
  color: #fff;
  font-size: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.1);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.social-icon:hover {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.2);
  border-color: #00bfff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
}

.email-icon:hover {
  color: #00ced1;
  border-color: #00ced1;
  box-shadow: 0 10px 25px rgba(0, 206, 209, 0.3);
}

.footer-text {
  text-align: center;
}

.footer-text p {
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.gamble-aware-link {
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.gamble-aware-link:hover {
  color: #40e0ff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.made-by {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-weight: 500;
}

.heart {
  color: #ff4757;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

.creator {
  color: #00bfff;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.creator:hover {
  color: #40e0ff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

/* Animations */
@keyframes waveMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatParticles {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(-40px) translateX(-5px);
  }
}

@keyframes championGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: brightness(1.2) saturate(1.3);
  }
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(-60px) rotate(240deg);
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes avatarSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
  }
  100% {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
  }
  50% {
    filter: brightness(1.3) saturate(1.4);
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3), 0 0 120px rgba(139, 92, 246, 0.2);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .podium-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .first-place {
    order: -1;
    transform: none;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo-group {
    gap: 0.5rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .logo {
    height: 50px;
    width: 50px;
  }

  .main-content,
  .leaderboard-main {
    padding: 1rem;
  }

  .signup-card,
  .stream-section {
    padding: 2rem;
    max-width: 100%;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .social-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
  }

  .footer-text p {
    font-size: 0.8rem;
  }

  .timer {
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
  }

  .timer-label {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
  }

  .timer-display {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .leaderboard-table {
    margin: 0 -0.5rem 1rem -0.5rem;
    border-radius: 15px;
    margin: 0.5%;
  }

  .leaderboard-container {
    padding-bottom: 1rem;
  }

  .leaderboard-main {
    margin-top: 90px;
    padding: 1rem 1rem 1rem 1rem;
    min-height: auto;
    flex: 1;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.8rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .table-header {
    padding: 1.2rem 1rem;
  }

  .podium-section {
    margin-bottom: 1.5rem;
  }

  .timer-container {
    margin-bottom: 1.5rem;
  }

  .leaderboard-controls {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .control-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .timer-container {
    margin-bottom: 2rem;
  }

  .leaderboard-title {
    font-size: 2.5rem;
    padding: 0 0.5rem;
  }

  .prize-amount {
    font-size: 2.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .leaderboard-btn,
  .discord-btn {
    padding: 1.2rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-main {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  }

  .leaderboard-container {
    padding-bottom: 0.5rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.7rem 0.3rem;
    line-height: 1.5;
  }

  .timer-display {
    font-size: 1.5rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 1rem 0.3rem;
    font-size: 0.7rem;
  }

  .rank-number {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }

  .username,
  .wagered,
  .prize {
    font-size: 0.75rem;
  }

  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    width: 30%;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 27.5%;
  }

  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    width: 27.5%;
  }

  .brand-text {
    display: none;
  }

  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .leaderboard-title {
    font-size: 1.8rem;
    padding: 0 0.25rem;
    margin-bottom: 2rem;
  }

  .prize-amount {
    font-size: 2rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 360px) {
  .leaderboard-title {
    font-size: 1.8rem;
  }

  .prize-amount {
    font-size: 2rem;
  }
}
.affiliate-btn,
.leaderboard-btn,
.discord-btn {
  position: relative;
  overflow: hidden;       /* keeps shine inside */
    /* or 50px for round ones */
}

.nav-link {
  position: relative;
  overflow: hidden;       /* keeps shine inside */
  display: inline-block;
  padding: 0.5rem 1rem;      /* optional, matches shine shape */
}

.nav-link span {
  position: relative;
  z-index: 1; /* keep text above shine */
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: left 0.6s ease;
  border-radius: inherit; /* clip corners */
}

.nav-link:hover::before {
  left: 100%;
}
