:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Neon dynamic colors - derived from primary/secondary */
  --neon-primary: var(--primary-color); /* #FFD700 */
  --neon-secondary: #FF4500; /* OrangeRed for vibrant contrast */
  --neon-accent: #00FFFF; /* Cyan for another vibrant contrast */
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #e0e0e0;
  background-color: var(--dark-bg-1);
  line-height: 1.6;
  padding-top: 90px; /* Desktop: header-top + main-nav height */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* General Neon Glow Mixins (from prompt) */
.neon-glow {
  box-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor,
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dynamic color animations (from prompt) */
@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); 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 #ff0000, 0 0 20px #ff8000; }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@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(255, 215, 0, 0.3); /* Gold primary */
  }
  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, 69, 0, 0.3); /* OrangeRed secondary */
  }
  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(0, 255, 255, 0.3); /* Cyan accent */
  }
}

@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 - Desktop First */
.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 */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
  padding: 10px 0;
  min-height: 50px;
  display: flex; /* For logo and desktop buttons */
  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;
}

.logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto; /* Push buttons to the right */
}

/* Main Navigation Area */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 5s linear infinite reverse; /* Different animation for contrast */
  padding: 10px 0;
  display: flex; /* Desktop: visible, horizontal */
  justify-content: center;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 25px;
}

.nav-link {
  color: #e0e0e0;
  font-size: 1.1em;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

/* Buttons */
.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;
  cursor: pointer;
  white-space: nowrap;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above other elements */
  animation: theme-colors 3s ease-in-out infinite alternate; /* Dynamic glow for hamburger */
}

.hamburger-menu .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-primary);
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary); /* Glow for bars */
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Buttons Container (Hidden on Desktop) */
.mobile-buttons-container {
  display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay (Hidden on Desktop) */
.mobile-menu-overlay {
  display: none; /* Hidden on desktop */
}

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

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

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

.footer-col h4 {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  color: #aaa;
  word-wrap: break-word; /* Ensure full display */
  overflow-wrap: break-word;
}

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

.footer-col ul li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-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 icons */
  width: 100%;
}

/* Placeholder for icons, system will replace with actual <img> tags */
.payment-icons img,
.game-providers-icons img,
.social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.game-providers-section,
.social-media-section {
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 1px solid #333;
}

.game-providers-section h4,
.social-media-section h4 {
  color: var(--primary-color);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #888;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Mobile: header-top + mobile-buttons height */
  }

  .site-header {
    flex-direction: column;
    align-items: center; /* Center items in column for overall header */
  }

  .header-top {
    width: 100%;
    padding: 10px 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Space between hamburger and logo */
    animation: none; /* Remove desktop animation for performance/clarity */
    border-bottom: none; /* Remove border for cleaner mobile top */
  }

  .header-container {
    padding: 0; /* Remove container padding as header-top has it */
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    justify-content: center; /* Center logo by default */
    position: relative; /* For hamburger positioning */
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1; /* Allows logo to take available space and center */
    text-align: center;
    order: 2; /* Puts logo in the middle visually */
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1; /* Puts hamburger on the left */
    margin-right: auto; /* Push hamburger to the left */
  }

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

  .mobile-buttons-container {
    display: flex; /* Show mobile buttons */
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3)); /* Dark background for buttons */
    border-bottom: 2px solid;
    animation: theme-colors 3s ease-in-out infinite alternate; /* Dynamic glow for mobile buttons container */
  }

  .mobile-buttons-container .btn {
    flex: 1; /* Make buttons take equal space */
    max-width: 160px; /* Limit button width for smaller screens */
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    flex-direction: column;
    background: rgba(0,0,0,0.95); /* Dark semi-transparent background */
    z-index: 999;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    animation: none; /* Remove desktop animation */
    border: none; /* Remove borders for cleaner mobile menu */
    padding-top: 100px; /* Space for logo/hamburger in overlay */
  }

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

  .nav-container {
    flex-direction: column; /* Stack menu items vertically */
    padding: 20px 15px;
    align-items: flex-start; /* Align menu items to the left */
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator for menu items */
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr; /* Single column layout for footer */
  }

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

  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 15px;
  }

  .footer-col ul li {
    margin-bottom: 0; /* Remove extra margin */
  }

  .footer-col ul li a {
    white-space: nowrap;
  }

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

  .payment-methods,
  .game-providers-section,
  .social-media-section {
    text-align: center;
  }

  .payment-icons,
  .game-providers-icons,
  .social-media-icons {
    justify-content: center;
  }
}

/* Body no-scroll for mobile menu */
body.no-scroll {
  overflow: hidden;
}