:root {
  --header-top-height: 60px;
  --main-nav-height: 50px;
  --mobile-buttons-height: 80px;
  --desktop-header-total-height: calc(var(--header-top-height) + var(--main-nav-height));
  --mobile-header-total-height: calc(var(--header-top-height) + var(--mobile-buttons-height));

  /* Site base colors */
  --site-primary-dark: #1A202C;
  --site-accent-gold: #FFD700;

  /* Neon glow colors - derived from site colors and vibrant palette */
  --neon-glow-primary: #FFD700; /* Vibrant gold */
  --neon-glow-secondary: #00FFFF; /* Electric blue/cyan */
  --neon-glow-accent: #FF00FF; /* Vibrant magenta */
  --neon-glow-red: #FF3366; /* Hot pink/red */
  --neon-glow-green: #39FF14; /* Electric green */
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll from fixed elements/animations */
  padding-top: var(--desktop-header-total-height); /* Default for desktop */
}

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

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

h4 {
  color: var(--site-accent-gold);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
}

/* Animations for dynamic colors and glows */
@keyframes rainbow-border {
  0% { border-color: var(--neon-glow-red); box-shadow: 0 0 10px var(--neon-glow-red), 0 0 20px var(--neon-glow-red); }
  16.6% { border-color: var(--neon-glow-primary); box-shadow: 0 0 10px var(--neon-glow-primary), 0 0 20px var(--neon-glow-primary); }
  33.3% { border-color: var(--neon-glow-green); box-shadow: 0 0 10px var(--neon-glow-green), 0 0 20px var(--neon-glow-green); }
  50% { border-color: var(--neon-glow-secondary); box-shadow: 0 0 10px var(--neon-glow-secondary), 0 0 20px var(--neon-glow-secondary); }
  66.6% { border-color: var(--neon-glow-accent); box-shadow: 0 0 10px var(--neon-glow-accent), 0 0 20px var(--neon-glow-accent); }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: var(--neon-glow-red); box-shadow: 0 0 10px var(--neon-glow-red), 0 0 20px var(--neon-glow-red); }
}

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

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

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

@keyframes random-glow {
  0% { border-color: var(--neon-glow-primary); box-shadow: 0 0 20px var(--neon-glow-primary); }
  20% { border-color: var(--neon-glow-secondary); box-shadow: 0 0 20px var(--neon-glow-secondary); }
  40% { border-color: var(--neon-glow-accent); box-shadow: 0 0 20px var(--neon-glow-accent); }
  60% { border-color: var(--neon-glow-green); box-shadow: 0 0 20px var(--neon-glow-green); }
  80% { border-color: var(--neon-glow-red); box-shadow: 0 0 20px var(--neon-glow-red); }
  100% { border-color: var(--neon-glow-primary); box-shadow: 0 0 20px var(--neon-glow-primary); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-primary);
    box-shadow: 0 0 10px var(--neon-glow-primary), 0 0 20px var(--neon-glow-primary), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-glow-secondary);
    box-shadow: 0 0 10px var(--neon-glow-secondary), 0 0 20px var(--neon-glow-secondary), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-glow-accent);
    box-shadow: 0 0 10px var(--neon-glow-accent), 0 0 20px var(--neon-glow-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-glow-primary), 0 0 10px var(--neon-glow-primary), 0 0 15px var(--neon-glow-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-glow-secondary), 0 0 10px var(--neon-glow-secondary), 0 0 15px var(--neon-glow-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-glow-accent), 0 0 10px var(--neon-glow-accent), 0 0 15px var(--neon-glow-accent);
    color: #ffffff;
  }
}

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

/* Specific glow styles */
.neon-tube { border: 2px solid; animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite; }
.cyber-grid {
  position: relative;
  background-color: transparent;
  border: 1px solid transparent;
  animation: hue-spin 4s linear infinite;
}
.cyber-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    linear-gradient(90deg, transparent 95%, var(--neon-glow-primary) 100%),
    linear-gradient(180deg, transparent 95%, var(--neon-glow-primary) 100%);
  background-size: 20px 20px;
  opacity: 0.3;
  animation: hue-spin 4s linear infinite;
  z-index: -1;
}
.neon-pulse { border: 2px solid; animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite; }
.rainbow-flow { border: 2px solid; animation: rainbow-border 3s linear infinite; }
.hue-rotate { border: 2px solid; filter: hue-rotate(0deg); animation: hue-spin 4s linear infinite; }
.alternate-glow { border: 2px solid; animation: alternate-colors 2s ease-in-out infinite alternate; }
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--neon-glow-red), var(--neon-glow-primary), var(--neon-glow-green), var(--neon-glow-secondary), var(--neon-glow-accent), #8000ff, #ff0080);
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}
.random-colors { border: 2px solid; animation: random-glow 5s linear infinite; }
.theme-flow { border: 2px solid; animation: theme-colors 4s ease-in-out infinite; }
.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;
}
.neon-text-dynamic { animation: text-glow-flow 3s ease-in-out infinite alternate; }

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--desktop-header-total-height);
  display: flex;
  flex-direction: column;
}

.header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px; /* Base padding for desktop containers */
  box-sizing: border-box;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  height: var(--header-top-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent; /* Placeholder for animation */
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example font for tech/neon */
  font-size: 2.5em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  padding: 5px 0;
  /* Neon glow applied via neon-text-dynamic class */
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-glow-primary), var(--neon-glow-secondary));
  padding: 12px 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Placeholder for animation */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-glow-primary);
}

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

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  height: var(--main-nav-height);
  display: flex;
  align-items: center;
  border-top: 2px solid transparent; /* Placeholder for animation */
  border-bottom: 2px solid transparent; /* Placeholder for animation */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: #fff;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

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

.hamburger-menu, .mobile-menu-overlay, .mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

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

.footer-main .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-col h4 {
  color: var(--site-accent-gold);
  margin-bottom: 15px;
  font-size: 1.1em;
}

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 2em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-nav a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--site-accent-gold);
}

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

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
}

.game-providers-section,
.social-media-section {
  padding: 20px 0;
  text-align: center;
}

.game-providers-section .footer-container,
.social-media-section .footer-container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.game-providers-section {
  border-bottom: 1px solid #333;
}

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

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

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--mobile-header-total-height); /* Override for mobile */
  }

  .header-container, .nav-container, .footer-container {
    max-width: none; /* Remove max-width on mobile */
    padding: 0 15px; /* Smaller padding for mobile */
  }

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

  .header-top {
    height: var(--header-top-height);
  }

  .header-top .header-container {
    justify-content: space-between;
    position: relative;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
    color: var(--neon-glow-primary);
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-menu:hover {
    box-shadow: 0 0 8px currentColor, 0 0 15px currentColor;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .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 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e, #0a0a0a);
    padding-top: var(--header-top-height); /* Space for header-top */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    border-right: 2px solid transparent; /* Placeholder for animation */
  }

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

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

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

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

  .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;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

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

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #16213e, #0a0a0a);
    padding: 15px;
    height: var(--mobile-buttons-height);
    width: 100%;
    box-sizing: border-box;
    border-top: 2px solid transparent; /* Placeholder for animation */
    border-bottom: 2px solid transparent; /* Placeholder for animation */
    animation: theme-colors 4s ease-in-out infinite; /* Apply dynamic glow */
  }

  .mobile-buttons-area .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.95em;
    text-align: center;
  }

  .footer-main .footer-container {
    grid-template-columns: 1fr;
  }

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

  .footer-col.footer-about .footer-logo,
  .footer-col.footer-about .footer-description {
    text-align: center;
  }

  .footer-nav {
    align-items: center;
  }

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