:root {
  --primary-color: #003366; /* Base dark blue */
  --secondary-color: #FFCC00; /* Base yellow/gold */

  /* Derived neon colors - high saturation, high brightness */
  --neon-primary: #00FFFF; /* Cyan */
  --neon-secondary: #FF00FF; /* Magenta */
  --neon-accent: #FFFF00; /* Bright Yellow */

  /* Dynamic color cycles for animations */
  --neon-cycle-1: #00FFFF, #FF00FF, #FFFF00, #00FF00, #FF1493, #00BFFF;
  --neon-cycle-2: #FF00FF, #FFFF00, #00FFFF, #FF69B4, #00FF7F, #FFD700;
  --neon-cycle-3: #FFFF00, #00FFFF, #FF00FF, #FF4500, #ADFF2F, #8A2BE2;

  /* Header specific background/border colors */
  --header-bg-dark1: #0a0a0a;
  --header-bg-dark2: #1a1a2e;
  --header-bg-dark3: #16213e;
  --header-top-border-color: var(--neon-accent); /* Yellow */
  --main-nav-border-color: var(--neon-secondary); /* Magenta */
}

/* Animations for dynamic colors and effects */
@keyframes rainbow-border {
  0% { border-color: var(--neon-cycle-1, #ff0000); box-shadow: 0 0 10px var(--neon-cycle-1, #ff0000), 0 0 20px var(--neon-cycle-1, #ff0000); }
  16.6% { border-color: var(--neon-cycle-1, #ff8000); box-shadow: 0 0 10px var(--neon-cycle-1, #ff8000), 0 0 20px var(--neon-cycle-1, #ff8000); }
  33.3% { border-color: var(--neon-cycle-1, #ffff00); box-shadow: 0 0 10px var(--neon-cycle-1, #ffff00), 0 0 20px var(--neon-cycle-1, #ffff00); }
  50% { border-color: var(--neon-cycle-1, #00ff00); box-shadow: 0 0 10px var(--neon-cycle-1, #00ff00), 0 0 20px var(--neon-cycle-1, #00ff00); }
  66.6% { border-color: var(--neon-cycle-1, #0000ff); box-shadow: 0 0 10px var(--neon-cycle-1, #0000ff), 0 0 20px var(--neon-cycle-1, #0000ff); }
  83.3% { border-color: var(--neon-cycle-1, #8000ff); box-shadow: 0 0 10px var(--neon-cycle-1, #8000ff), 0 0 20px var(--neon-cycle-1, #8000ff); }
  100% { border-color: var(--neon-cycle-1, #ff0000); box-shadow: 0 0 10px var(--neon-cycle-1, #ff0000), 0 0 20px var(--neon-cycle-1, #ff0000); }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}

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

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-accent); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
}

@keyframes random-glow {
  0% { border-color: var(--neon-cycle-1, #ff00ff); box-shadow: 0 0 20px var(--neon-cycle-1, #ff00ff); }
  20% { border-color: var(--neon-cycle-1, #00ffff); box-shadow: 0 0 20px var(--neon-cycle-1, #00ffff); }
  40% { border-color: var(--neon-cycle-1, #ffff00); box-shadow: 0 0 20px var(--neon-cycle-1, #ffff00); }
  60% { border-color: var(--neon-cycle-1, #00ff00); box-shadow: 0 0 20px var(--neon-cycle-1, #00ff00); }
  80% { border-color: var(--neon-cycle-1, #ff0000); box-shadow: 0 0 20px var(--neon-cycle-1, #ff0000); }
  100% { border-color: var(--neon-cycle-1, #ff00ff); box-shadow: 0 0 20px var(--neon-cycle-1, #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(0, 255, 255, 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, 0, 255, 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, 255, 0, 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;
  }
  33% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    color: #ffffff;
  }
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #0d0d0d; /* Dark background for overall page */
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: 110px; /* Desktop header height: header-top (60px) + main-nav (50px) */
}

body.no-scroll {
  overflow: hidden;
}

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stacks header-top and main-nav vertically */
}

/* Header Top Area (Logo + Buttons) - Desktop */
.header-top {
  background: linear-gradient(135deg, var(--header-bg-dark1), var(--header-bg-dark2));
  border-bottom: 2px solid var(--header-top-border-color);
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  padding: 15px 0;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for logo and buttons from container edges */
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* Base color for neon text */
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  display: block; /* Ensure logo is visible */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex; /* Always flex for multiple buttons */
  gap: 12px;
}

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

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

/* Main Navigation (Desktop) */
.main-nav {
  background: linear-gradient(135deg, var(--header-bg-dark2), var(--header-bg-dark3));
  border-top: 2px solid var(--main-nav-border-color);
  border-bottom: 2px solid var(--main-nav-border-color);
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic border glow, reversed for contrast */
  padding: 10px 0;
  display: flex; /* Default to flex for desktop */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center; /* Center navigation links */
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow nav links to wrap if screen is too narrow on desktop */
  gap: 15px; /* Spacing between nav links */
}

.nav-link {
  color: #c0c0c0; /* Regular text color for nav links */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  padding: 5px 10px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap; /* Prevent nav links from wrapping on desktop */
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001; /* Above mobile menu */
  animation: neon-flicker 2s infinite alternate; /* Dynamic glow */
  color: var(--neon-accent); /* Color for hamburger lines */
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: currentColor; /* Use neon-accent color */
  border-radius: 5px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

.hamburger-menu.active span:nth-child(1) { top: 11px; transform: rotate(135deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger-menu.active span:nth-child(3) { top: 11px; transform: rotate(-135deg); }

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none; /* Hidden by default on desktop */
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #b0b0b0;
  padding: 40px 0 20px;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  padding-bottom: 30px;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color); /* Use a base color for footer logo */
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: justify;
}

.footer-nav {
  list-style: none;
}

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

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

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

.payment-icons,
.game-providers-icons,
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* Consistent gap for all icon sections */
  width: 100%;
}

.payment-icons img,
.game-providers-icons img,
.social-media-icons img {
  max-height: 40px; /* Reduced height for better visual balance */
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(80%) brightness(120%); /* Subtle effect for footer icons */
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

.footer-middle {
  padding: 20px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-top: 30px;
}

.footer-middle .footer-container {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Spacing between game providers and social media */
}

.game-providers-section h4,
.social-media-section h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-align: center; /* Center titles for full-width sections */
}

.game-providers-icons,
.social-media-icons {
  justify-content: center; /* Center icons within their full-width container */
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
}

.copyright {
  color: #888;
  font-size: 0.85em;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Adjust for mobile header height (header-top ~60px + mobile-nav-buttons ~80px) */
  }

  /* Header Top Area - Mobile */
  .header-top {
    padding: 10px 0;
  }

  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    max-width: none; /* Allow container to take full width */
    justify-content: space-between; /* Hamburger left, Logo center, empty right */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
    flex: 0 0 auto; /* Don't grow/shrink */
  }

  .logo {
    order: 2; /* Place logo second */
    flex: 1; /* Allow logo to take available space and center */
    text-align: center; /* Centers the text within its flex item */
    font-size: 1.8em;
  }
  
  /* To visually balance the space on the right, create an empty pseudo-element matching hamburger's width */
  .header-container::after {
    content: '';
    display: block;
    width: 30px; /* Match hamburger-menu width */
    order: 3; /* Right */
  }

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

  /* Mobile Navigation Buttons */
  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Padding for the button container */
    overflow: hidden; /* Prevent overflow */
    flex-wrap: wrap; /* Allow buttons to wrap */
    gap: 10px;
    justify-content: center;
    background: linear-gradient(135deg, var(--header-bg-dark3), var(--header-bg-dark1)); /* Different background for button area */
    border-top: 1px solid var(--neon-primary); /* Small border for separation */
    border-bottom: 2px solid var(--neon-secondary); /* Small border for separation */
    animation: theme-colors 5s ease-in-out infinite alternate; /* Dynamic border glow */
  }

  .mobile-nav-buttons .btn {
    max-width: calc(50% - 5px); /* Max 2 buttons per row, with gap */
    flex: 1 1 auto; /* Allow buttons to grow/shrink */
    min-width: 120px; /* Minimum width for buttons */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    padding: 8px 12px;
    font-size: 0.9em;
  }

  /* Main Navigation (Mobile - Hidden by default, shown by JS) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; /* Full height overlay */
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    background: linear-gradient(180deg, var(--header-bg-dark1), var(--header-bg-dark3)); /* Dark background for mobile menu */
    flex-direction: column;
    padding-top: 80px; /* Space for fixed header content */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Above overlay */
    overflow-y: auto; /* Scrollable if many items */
  }

  .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; /* Align links to the left */
    padding: 20px 15px;
    max-width: none; /* Full width for mobile container */
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0; /* Brighter color for visibility in dark menu */
    white-space: normal; /* Allow text to wrap */
  }

  .nav-link:last-child {
    border-bottom: none;
  }

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

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

  /* Footer - Mobile */
  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-description {
    text-align: center;
  }

  .footer-nav {
    padding: 0; /* Remove default list padding */
  }

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

  .footer-middle .footer-container {
    padding: 0 15px;
  }

  .game-providers-icons,
  .social-media-icons {
    gap: 5px; /* Smaller gap for mobile icons */
  }

  .payment-methods {
    order: 4; /* Ensure payment methods stays at the bottom of the 4-col layout */
  }
}