:root {
  --primary-color: #0A2E5B; /* Main site color */
  --secondary-color: #FFD700; /* Auxiliary site color */

  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: #FF00FF; /* A vibrant pink for accent */
  --neon-header-glow-color: #FFFF00; /* Neon yellow for header top */
  --neon-nav-glow-color: #FF1744; /* Neon red for main nav */
  --neon-button-glow-color-1: #00FFFF; /* Cyan */
  --neon-button-glow-color-2: #FF00FF; /* Magenta */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
}

/* Base styles for the page to ensure header visibility */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg-1);
  color: #e0e0e0;
  padding-top: 120px; /* Initial adjustment for header height, JS will fine-tune */
  position: relative;
}

/* Dynamic Neon Glow Animations */
@keyframes rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes alternate-colors {
  0% { border-color: var(--neon-button-glow-color-1); box-shadow: 0 0 10px var(--neon-button-glow-color-1), 0 0 20px var(--neon-button-glow-color-1); }
  100% { border-color: var(--neon-button-glow-color-2); box-shadow: 0 0 10px var(--neon-button-glow-color-2), 0 0 20px var(--neon-button-glow-color-2); }
}

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

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 10px rgba(10, 46, 91, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor; }
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary); color: #ffffff; }
  50% { text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary); color: #ffffff; }
  100% { text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent); color: #ffffff; }
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px; /* Base height, adjusted by padding */
  display: flex;
  flex-direction: column; /* Default for desktop to stack top and nav */
}

.header-top, .main-nav {
  width: 100%;
  color: #fff;
  padding: 10px 0;
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Padding for content inside container */
  display: flex;
  align-items: center;
}

/* Header Top Section - Neon Style */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-header-glow-color);
  box-shadow:
    0 0 10px var(--neon-header-glow-color),
    0 0 20px var(--neon-header-glow-color),
    0 0 30px var(--neon-header-glow-color),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  animation: theme-colors 8s linear infinite; /* Dynamic color for header top */
  position: relative;
  z-index: 1001; /* Ensure header-top is above main-nav in stacking context */
  display: flex; /* Flex container for header-container and mobile-buttons-area */
  flex-direction: column;
}

.header-top .header-container {
  justify-content: space-between;
  padding-top: 5px;
  padding-bottom: 5px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  position: relative;
  display: inline-block;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px var(--neon-header-glow-color),
    0 0 10px var(--neon-header-glow-color),
    0 0 15px var(--neon-header-glow-color);
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

/* Mobile-specific buttons area (hidden on desktop) */
.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
  background-color: var(--dark-bg-1); /* Match header-top background */
}

/* Main Navigation Section - Neon Style (different color) */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--primary-color));
  border-top: 2px solid var(--neon-nav-glow-color);
  border-bottom: 2px solid var(--neon-nav-glow-color);
  box-shadow:
    0 0 10px var(--neon-nav-glow-color),
    0 0 20px var(--neon-nav-glow-color),
    0 0 30px var(--neon-nav-glow-color),
    inset 0 0 20px rgba(255, 0, 0, 0.1);
  animation: theme-colors 8s linear infinite reverse; /* Dynamic color for main nav */
  display: flex; /* Default for desktop */
  flex-direction: row; /* Default for desktop */
  position: static; /* Default for desktop */
  z-index: 999; /* Below header-top */
}

.main-nav .nav-container {
  justify-content: center;
  padding: 10px 20px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 8px 15px;
  font-size: 1.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-nav-glow-color);
  text-shadow: 0 0 5px var(--neon-nav-glow-color), 0 0 10px var(--neon-nav-glow-color);
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-button-glow-color-1), var(--neon-button-glow-color-2));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-button-glow-color-1);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap; /* Prevent button text from wrapping */
}

.btn:hover {
  animation-duration: 2s; /* Faster animation on hover */
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo and buttons */
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-header-glow-color);
  margin-bottom: 5px;
  position: relative;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-header-glow-color), 0 0 10px var(--neon-header-glow-color);
}
.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Hamburger active state (X icon) */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below menu, above content */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-2);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-top-section, .footer-middle-section, .footer-bottom-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom-section {
  border-bottom: none;
  padding-bottom: 0;
}

.site-footer h4 {
  color: var(--neon-secondary);
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--neon-secondary);
}

.footer-container {
  justify-content: space-between;
  align-items: flex-start;
}

.footer-top-section .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col {
  padding: 10px 0;
}

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 5px var(--neon-secondary); /* Simple glow for footer logo */
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 0.9em;
}

.footer-nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-links li {
  margin-bottom: 8px;
}

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: brightness(0.8) grayscale(100%); /* Dim and grayscale for footer icons */
  transition: filter 0.3s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  filter: brightness(1) grayscale(0%); /* Full color on hover */
}

.copyright {
  text-align: center;
  margin: 0;
  padding-top: 15px;
  color: #888;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 160px; /* Adjust for mobile header + mobile buttons */
  }

  .site-header {
    min-height: auto;
  }

  .header-top {
    flex-wrap: wrap; /* Allow hamburger/logo line and buttons line to wrap */
    padding-bottom: 0; /* No extra padding at bottom of header-top */
  }

  .header-top .header-container {
    padding: 0 15px;
    justify-content: space-between;
    flex-wrap: nowrap; /* Keep hamburger and logo on one line */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* Place hamburger first */
    box-shadow: 0 0 5px var(--neon-header-glow-color), 0 0 10px var(--neon-header-glow-color); /* Neon glow for hamburger */
    animation: neon-flicker 2s infinite alternate; /* Flicker effect */
  }

  .logo {
    order: 2; /* Place logo second */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center the logo */
    font-size: 1.8em;
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .mobile-buttons-area {
    display: flex; /* Show on mobile */
    order: 3; /* Place below hamburger/logo line */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--dark-bg-1); /* Match header-top background */
  }

  .mobile-buttons-area .btn {
    padding: 10px 20px; /* Slightly smaller buttons for mobile */
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Full height from top */
    left: 0;
    width: 70%; /* Side menu width */
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 60px; /* Space for fixed header content */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-out;
    border-right: 2px solid var(--neon-nav-glow-color);
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, var(--dark-bg-2), var(--dark-bg-3)); /* Simpler background for mobile menu */
    animation: none; /* No dynamic border animation for mobile menu itself */
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    height: 100%;
    overflow-y: auto;
    max-width: none; /* No max-width for mobile container */
    width: 100%; /* Full width of the menu */
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2em;
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }

  .site-footer h4 {
    font-size: 1.1em;
  }

  .footer-top-section .footer-container {
    grid-template-columns: 1fr; /* Single column layout for footer on mobile */
  }
  .footer-col {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-about .footer-logo {
    font-size: 1.5em;
  }
  .footer-description {
    font-size: 0.85em;
  }

  .game-providers-section, .social-media-section {
    padding: 15px 0;
  }
  .game-providers-icons, .social-media-icons {
    gap: 5px;
  }
  .game-providers-icons img, .social-media-icons img {
    max-height: 40px;
  }

  .copyright {
    font-size: 0.8em;
  }
}