:root {
  --primary-color: #4A148C; /* Deep Purple */
  --secondary-color: #FFD700; /* Gold */
  
  /* Dynamic Neon Colors based on site scheme and common synthwave/cyberpunk palette */
  --neon-primary: #FF00FF; /* Magenta */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FFFF00; /* Yellow */
  
  /* For theme-flow animation, using site colors */
  --neon-theme-1: #667eea; /* Lighter purple from a common gradient */
  --neon-theme-2: #764ba2; /* Darker purple */
  --neon-theme-3: #f093fb; /* Pinkish purple */
  
  /* Backgrounds */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
}

/* Base Neon Glow Effect - General purpose */
.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);
}

/* Animations for Dynamic Colors and Glows */
@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-theme-1);
    box-shadow: 
      0 0 10px var(--neon-theme-1),
      0 0 20px var(--neon-theme-1),
      inset 0 0 10px rgba(102, 126, 234, 0.3);
  }
  33% {
    border-color: var(--neon-theme-2);
    box-shadow: 
      0 0 10px var(--neon-theme-2),
      0 0 20px var(--neon-theme-2),
      inset 0 0 10px rgba(118, 75, 162, 0.3);
  }
  66% {
    border-color: var(--neon-theme-3);
    box-shadow: 
      0 0 10px var(--neon-theme-3),
      0 0 20px var(--neon-theme-3),
      inset 0 0 10px rgba(240, 147, 251, 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-theme-1), 0 0 10px var(--neon-theme-1), 0 0 15px var(--neon-theme-1); color: #ffffff; }
  50% { text-shadow: 0 0 5px var(--neon-theme-2), 0 0 10px var(--neon-theme-2), 0 0 15px var(--neon-theme-2); color: #ffffff; }
  100% { text-shadow: 0 0 5px var(--neon-theme-3), 0 0 10px var(--neon-theme-3), 0 0 15px var(--neon-theme-3); color: #ffffff; }
}

/* --- General Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Arial', sans-serif; background-color: #000; color: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Site Header (Desktop First) --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px; /* Base height */
  display: flex; /* Use flex for desktop layout */
  flex-direction: column; /* Stacks header-top and main-nav */
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border glow for entire header */
}

/* Header Top Area - Logo and Desktop Buttons */
.header-top {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
  box-shadow: 
    0 0 8px var(--neon-accent), /* Brighter glow for top section */
    0 0 15px var(--neon-accent),
    inset 0 0 10px rgba(255, 255, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
  /* Applying a glow style to the logo */
  position: relative;
  display: inline-block;
  padding: 5px 0;
  /* Example: Classic Neon Tube effect */
  border: 2px solid transparent; /* Placeholder for animated border */
  animation: text-glow-flow 3s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; /* Glow for lines */
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

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

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 15px;
  align-items: center;
}

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

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  overflow: hidden;
  /* Dynamic button glow */
  border: 2px solid transparent; /* Placeholder for animated border */
  animation: theme-colors 4s ease-in-out infinite; /* Theme color dynamic border */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  background: linear-gradient(135deg, var(--neon-theme-1), var(--neon-theme-2)); /* Gradient background */
}

.btn:hover {
  transform: translateY(-2px);
  animation-duration: 2s; /* Faster animation on hover */
  box-shadow: 
    0 0 15px var(--neon-theme-1),
    0 0 30px var(--neon-theme-1),
    0 0 45px var(--neon-theme-1),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}


/* Main Navigation (Desktop First) */
.main-nav {
  width: 100%;
  background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4)); /* Different darker gradient */
  padding: 10px 0;
  border-top: 2px solid var(--neon-secondary); /* Different neon color for contrast */
  box-shadow: 
    0 0 8px var(--neon-secondary), 
    0 0 15px var(--neon-secondary),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
  display: flex; /* Visible on desktop */
  justify-content: center;
  align-items: center;
}

.main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for many links */
  justify-content: center;
  gap: 25px; /* Spacing between menu items */
  padding: 0 20px;
}

.nav-link {
  color: #e0e0e0; /* Regular text color for menu links */
  font-size: 1em;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-accent); /* Highlight with neon accent color */
}

/* --- Site Footer (Regular style, no neon) --- */
.site-footer {
  background-color: var(--dark-bg-1);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

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

.footer-col h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
}

.footer-about .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

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

.footer-links ul, .footer-legal ul {
  padding: 0;
}

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

.footer-links a, .footer-legal a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
  color: #fff;
}

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

.payment-methods .payment-icons img,
.social-media-section .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme, optional */
  transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.social-media-section .social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%); /* Color on hover */
}

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

.social-media-section h4 {
  text-align: center;
  margin-bottom: 15px;
}

.social-media-section .social-media-icons {
  justify-content: center; /* Center social media icons */
}

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

/* --- Mobile Specific Styles --- */
@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    flex-direction: column; /* Stack header-top, mobile-buttons, main-nav */
    min-height: auto;
  }

  .header-top {
    padding: 10px 0;
    display: flex; /* Enable flex for mobile header-top */
    align-items: center;
    justify-content: flex-start; /* Adjust alignment for hamburger */
    position: relative; /* For logo centering */
  }
  
  .header-container {
    width: 100%; /* Important: mobile container width 100% */
    max-width: none; /* Remove max-width for mobile */
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: flex-start; /* Adjust alignment for hamburger */
    position: relative; /* For logo centering */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place hamburger first */
    margin-right: 15px; /* Space between hamburger and logo */
  }

  .logo {
    order: 2; /* Place logo second */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center logo within its flex item */
    font-size: 1.8em; /* Smaller font for mobile logo */
    margin-right: 45px; /* Push logo left by hamburger width + margin */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* IMPORTANT: Must be flex for mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Padding for the button container */
    gap: 10px; /* Gap between buttons */
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one line */
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3)); /* Same as header-top background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
    box-shadow: 
      0 0 8px var(--neon-accent), /* Glow for mobile button bar */
      0 0 15px var(--neon-accent),
      inset 0 0 10px rgba(255, 255, 0, 0.1);
    z-index: 999; /* Below main nav but above content */
  }

  .mobile-nav-buttons .btn {
    flex: 1; /* Equal width for buttons */
    min-width: 0; /* Allow shrinking */
    max-width: calc(50% - 5px); /* Max width considering gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation Mobile (Hamburger menu content) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Will be adjusted by JS to be below header-top + mobile-buttons */
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--dark-bg-4), var(--dark-bg-3)); /* Darker background for side menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay, below hamburger */
    border-right: 2px solid var(--neon-secondary); /* Neon border for side menu */
    box-shadow: 
      5px 0 15px rgba(0, 255, 255, 0.3), /* Side shadow */
      10px 0 30px rgba(0, 255, 255, 0.2);
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 15px;
    width: 100%; /* Ensure container fills menu width */
  }

  .nav-link {
    width: 100%; /* Full width for menu items */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .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 content */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

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

  /* Footer adjustments */
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
  .social-media-section .social-media-icons {
    justify-content: flex-start; /* Align social icons left on mobile */
  }
}

/* Content area padding to prevent fixed header overlap */
body {
  padding-top: 140px; /* Default padding, will be adjusted by JS */
}
@media (min-width: 769px) {
  body {
    padding-top: 100px; /* Approximate height of desktop header (header-top + main-nav) */
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 130px; /* Approximate height of mobile header (header-top + mobile-buttons) */
  }
}

/* Specific glow styles (examples from prompt, applied as classes) */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, rainbow-border 3s linear infinite;
}
.cyber-grid {
  background: 
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}
.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, 
    #ff0000, #ff8000, #ffff00, #00ff00, 
    #00ffff, #0000ff, #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;
}
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
