:root {
  --site-primary: #FFD700; /* Gold */
  --site-secondary: #DC143C; /* Crimson */
  --neon-primary: var(--site-primary); /* Default to site primary */
  --neon-secondary: var(--site-secondary); /* Default to site secondary */
  --neon-accent: #00FFFF; /* Cyan for contrast */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #e0e0e0;
  --link-color: #c0c0c0;
  --hover-color: var(--neon-primary);
  --header-height-desktop: 120px; /* Approximate combined height of header-top and main-nav */
  --header-height-mobile: 150px; /* Approximate combined height of header-top and mobile-buttons-area */
}

/* Base styles for the entire page to ensure dark background */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color);
  line-height: 1.6;
}

/* Prevent scrolling when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Universal container styles */
.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------------------------------ */
/* Neon Glow & Dynamic Color Animations (CRITICAL - MUST BE PRESENT AND APPLIED)       */
/* ------------------------------------------------------------------------------------ */

/* Dynamic color variables (used in animations) */
:root {
  --neon-cycle-1: #ff00ff, #00ffff, #ffff00, #ff0000, #00ff00, #0000ff;
  --neon-cycle-2: #00ffff, #ffff00, #ff00ff, #00ff00, #ff0000, #0000ff;
  --neon-cycle-3: #ffff00, #ff00ff, #00ffff, #ff0000, #00ff00, #0000ff;
}

/* Basic neon glow effect */
.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);
}

/* Style 1: Classic Neon Tube Effect (dynamic color) */
.neon-tube {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite alternate;
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}

/* Style 2: Cyberpunk Grid Glow (dynamic color) */
.cyber-grid {
  position: relative;
  background: var(--dark-bg-1);
  border: 1px solid;
  animation: theme-colors 4s linear infinite;
}
.cyber-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  opacity: 0.1;
  animation: hue-spin 8s linear infinite;
}

/* Style 3: Pulse Breathing Effect (dynamic color) */
.neon-pulse {
  border: 2px solid;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 4: Rainbow Cycle Gradient (dynamic color) */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* Style 5: Hue Rotate (dynamic color) */
.hue-rotate {
  border: 2px solid;
  animation: hue-spin 4s linear infinite;
}

/* Style 6: Alternate Glow (dynamic color) */
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

/* Style 7: Color Stream (dynamic color) */
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg,
    #ff0000, #ff8000, #ffff00, #00ff00,
    #00ffff, #0000ff, #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

/* Style 8: Random Colors (dynamic color) */
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

/* Style 9: Website Theme Color Dynamic Change (dynamic color, recommended) */
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* Style 10: LED Matrix Effect (dynamic color) */
.led-matrix {
  border: 2px solid;
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor;
  position: relative;
  animation: random-glow 5s linear infinite;
}

.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background:
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}

/* Dynamic Color 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); 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); /* Using site-primary for inset glow */
  }
  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(220, 20, 60, 0.3); /* Using site-secondary for inset glow */
  }
  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); /* Using neon-accent for inset glow */
  }
}

/* Original animation definitions (for compatibility and specific effects) */
@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; }
}

/* Dynamic neon text glow */
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

@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;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stack 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 var(--neon-primary);
  box-shadow:
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1); /* Gold glow for top area */
  padding: 10px 0;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  display: block; /* Ensure logo is always visible */
  text-align: left; /* Desktop default */
  /* Neon text glow applied via .neon-text-dynamic class */
}

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

/* Main Navigation Area */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  box-shadow:
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(220, 20, 60, 0.1); /* Crimson glow for nav area */
  padding: 10px 0;
  display: flex; /* Desktop default: visible */
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic border glow, reversed for contrast */
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  transition: all 0.3s ease;
  /* Dynamic glow applied via classes like .theme-flow */
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* Speed up glow on hover */
  transform: translateY(-2px) scale(1.02);
  text-shadow:
    0 0 8px #ffffff,
    0 0 15px var(--neon-primary),
    0 0 25px var(--neon-secondary);
}

/* Mobile specific elements (hidden on desktop) */
.hamburger-menu,
.mobile-buttons-area,
.mobile-menu-overlay {
  display: none;
}

/* Adjust body padding for fixed header */
body {
  padding-top: var(--header-height-desktop);
}

/* ------------------------------------------------------------------------------------ */
/* Footer Styles                                                                        */
/* ------------------------------------------------------------------------------------ */
.site-footer {
  background-color: var(--dark-bg-2);
  color: var(--text-color);
  padding-top: 40px;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main-content {
  padding-bottom: 30px;
}

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

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

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--neon-primary);
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #b0b0b0;
}

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

.footer-nav li a,
.footer-legal-nav li a {
  color: #b0b0b0;
  text-decoration: none;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

.footer-nav li a:hover,
.footer-legal-nav li a:hover {
  color: var(--neon-primary);
}

.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;
  object-fit: contain;
  filter: grayscale(80%) brightness(120%); /* Subtle effect for 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%);
}

.game-providers-section, .social-media-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: var(--dark-bg-1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-providers-section h4, .social-media-section h4 {
  color: var(--neon-primary);
  margin-bottom: 15px;
  text-align: center;
}

.footer-bottom {
  background-color: var(--dark-bg-3);
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.copyright {
  margin: 0;
  color: #999;
}

.footer-legal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-legal-nav li {
  display: inline;
}

/* ------------------------------------------------------------------------------------ */
/* Mobile Styles (Max-width 768px)                                                      */
/* ------------------------------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --header-height-desktop: 0; /* Reset desktop header height for mobile */
  }

  body {
    padding-top: var(--header-height-mobile);
  }

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

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

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    order: 1; /* Left side */
    filter: drop-shadow(0 0 5px var(--neon-primary)); /* Neon effect for hamburger */
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--neon-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
  }

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

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

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

  .logo {
    order: 2; /* Centered */
    flex-grow: 1;
    text-align: center;
    font-size: 2em;
    padding-right: 30px; /* Offset for hamburger space */
  }

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

  /* Mobile Buttons Area (below logo) */
  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--dark-bg-1);
    border-bottom: 2px solid var(--neon-accent);
    box-shadow: 0 0 8px var(--neon-accent), 0 0 15px var(--neon-accent);
    animation: theme-colors 4s ease-in-out infinite alternate;
  }

  .mobile-buttons-area .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  /* Main Navigation (Mobile Menu) */
  .main-nav {
    display: none; /* Default hidden on mobile */
    position: fixed;
    top: var(--header-height-mobile); /* Position below header + mobile buttons */
    left: 0;
    width: 70%; /* Adjust width as needed */
    height: calc(100% - var(--header-height-mobile));
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    flex-direction: column; /* Vertical menu */
    padding: 20px 0;
    transform: translateX(-100%); /* Slide out of view initially */
    transition: transform 0.3s ease-out;
    border-right: 2px solid var(--neon-secondary);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 999;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 20px;
  }

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

  .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-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }

  .mobile-menu-overlay.active {
    display: block; /* Show when active */
    opacity: 1;
  }

  /* Footer Responsive */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .footer-nav,
  .footer-legal-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .game-providers-section, .social-media-section {
    padding: 15px;
  }

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

  .footer-bottom {
    padding: 15px;
  }
}

/* Ensure main content is not hidden by fixed header */
main {
  padding-top: var(--header-height-desktop);
}

@media (max-width: 768px) {
  main {
    padding-top: var(--header-height-mobile);
  }
}
