:root {
  --primary-color: #0A2463; /* Website primary color */
  --secondary-color: #FFD700; /* Website secondary color */

  /* Dynamic Neon Colors - smart choice based on website colors */
  --neon-primary: #00ffff; /* Cyan */
  --neon-secondary: #ff00ff; /* Magenta */
  --neon-accent: #ffff00; /* Yellow */

  /* Fallback colors for animations if variables aren't set */
  --neon-cycle-1-a: #ff00ff; /* Magenta */
  --neon-cycle-1-b: #00ffff; /* Cyan */
  --neon-cycle-1-c: #ffff00; /* Yellow */
  --neon-cycle-1-d: #ff0000; /* Red */
  --neon-cycle-1-e: #00ff00; /* Green */
  --neon-cycle-1-f: #0000ff; /* Blue */

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;
  --text-color-light: #ffffff;
  --text-color-dark: #cccccc;
}

/* Base styles for the page to ensure header/footer fit */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg-1);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure main content is not hidden by fixed header */
main {
    padding-top: 150px; /* Adjust based on actual header height + mobile button height */
}

/* Animations - Dynamic Neon Glows */
@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 {
  0% {
    box-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor;
  }
  100% {
    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 rainbow-border {
  0% { border-color: var(--neon-cycle-1-a); box-shadow: 0 0 10px var(--neon-cycle-1-a), 0 0 20px var(--neon-cycle-1-a); }
  16.6% { border-color: var(--neon-cycle-1-b); box-shadow: 0 0 10px var(--neon-cycle-1-b), 0 0 20px var(--neon-cycle-1-b); }
  33.3% { border-color: var(--neon-cycle-1-c); box-shadow: 0 0 10px var(--neon-cycle-1-c), 0 0 20px var(--neon-cycle-1-c); }
  50% { border-color: var(--neon-cycle-1-d); box-shadow: 0 0 10px var(--neon-cycle-1-d), 0 0 20px var(--neon-cycle-1-d); }
  66.6% { border-color: var(--neon-cycle-1-e); box-shadow: 0 0 10px var(--neon-cycle-1-e), 0 0 20px var(--neon-cycle-1-e); }
  83.3% { border-color: var(--neon-cycle-1-f); box-shadow: 0 0 10px var(--neon-cycle-1-f), 0 0 20px var(--neon-cycle-1-f); }
  100% { border-color: var(--neon-cycle-1-a); box-shadow: 0 0 10px var(--neon-cycle-1-a), 0 0 20px var(--neon-cycle-1-a); }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@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%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes random-glow {
  0% { border-color: var(--neon-cycle-1-a); box-shadow: 0 0 20px var(--neon-cycle-1-a); }
  20% { border-color: var(--neon-cycle-1-b); box-shadow: 0 0 20px var(--neon-cycle-1-b); }
  40% { border-color: var(--neon-cycle-1-c); box-shadow: 0 0 20px var(--neon-cycle-1-c); }
  60% { border-color: var(--neon-cycle-1-d); box-shadow: 0 0 20px var(--neon-cycle-1-d); }
  80% { border-color: var(--neon-cycle-1-e); box-shadow: 0 0 20px var(--neon-cycle-1-e); }
  100% { border-color: var(--neon-cycle-1-a); box-shadow: 0 0 20px var(--neon-cycle-1-a); }
}

@keyframes theme-colors {
  0%, 100% { border-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), inset 0 0 10px rgba(10, 36, 99, 0.3); }
  33% { border-color: var(--secondary-color); box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color), inset 0 0 10px rgba(255, 215, 0, 0.3); }
  66% { 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); }
}

@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: var(--text-color-light);
  }
  33% {
    text-shadow: 
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-color-light);
  }
  66% {
    text-shadow: 
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-color-light);
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    color: var(--text-color-light);
  }
}

/* Header - Desktop Styles (Global) */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 100px; /* Base min-height for header */
    display: flex;
    flex-direction: column; /* Stack header-top and main-nav */
}

.header-top {
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    padding: 15px 0;
    min-height: 50px;
    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;
}

.logo {
    font-size: 2.2em;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color-light);
    animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
    position: relative;
    padding: 5px 0;
    display: block; /* Ensure logo is block for proper sizing and text-shadow */
}
.logo.neon-pulse { animation: text-glow-flow 3s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite alternate; }

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

.btn {
    position: relative;
    padding: 12px 25px;
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid; /* For dynamic border effect */
    transition: all 0.3s ease;
    text-shadow: 
      0 0 5px var(--text-color-light),
      0 0 10px var(--neon-primary);
    display: inline-block; /* Ensure padding works as expected */
    cursor: pointer;
}

.btn.theme-flow { animation: theme-colors 4s ease-in-out infinite; }
.btn.alternate-glow { animation: alternate-colors 2s ease-in-out infinite alternate; }
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 0 15px currentColor,
      0 0 30px currentColor,
      0 0 45px currentColor;
    animation-duration: 2s; /* Speed up glow on hover */
}

.main-nav {
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
    border-top: 2px solid;
    border-bottom: 2px solid;
    animation: rainbow-border 3s linear infinite; /* Different dynamic border color */
    padding: 10px 0;
    min-height: 40px;
    display: flex; /* Desktop: visible and flex */
    flex-direction: row; /* Desktop: horizontal */
    align-items: center;
    justify-content: center; /* Center nav links */
}

.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: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap; /* Prevent wrapping */
}

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

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

/* Footer - Regular Styles */
.site-footer {
    background-color: #1a1a2e;
    color: #cccccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
    line-height: 1.8;
}

.site-footer a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

.footer-top-section {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

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

.footer-col h4 {
    color: var(--text-color-light);
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 5px;
}

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

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

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

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

.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; /* Consistent gap for all icon sections */
    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;
}

.footer-middle-section {
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.game-providers-section, .social-media-section {
    margin-bottom: 20px;
}
.game-providers-section:last-child, .social-media-section:last-child {
    margin-bottom: 0;
}

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

.footer-bottom-section .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copyright {
    margin: 0;
}

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
    /* Adjust main content padding for mobile header + buttons */
    main {
        padding-top: 200px; /* Increased for mobile header (approx 70px) + mobile buttons (approx 80px) + some buffer */
    }

    .site-header {
        min-height: auto; /* Allow header to shrink */
    }

    .header-top {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .header-container {
        padding: 0 15px; /* Smaller padding for mobile */
        width: 100%; /* Must be 100% on mobile */
        max-width: none; /* Must not have max-width on mobile */
        justify-content: space-between;
    }

    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        padding: 5px;
        position: relative;
        z-index: 1001; /* Above logo and buttons */
        border: 2px solid;
        animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
        border-radius: 3px;
    }

    .hamburger-menu .bar1,
    .hamburger-menu .bar2,
    .hamburger-menu .bar3 {
        width: 100%;
        height: 3px;
        background-color: var(--text-color-light);
        transition: all 0.3s ease;
        box-shadow: 0 0 5px var(--text-color-light), 0 0 10px var(--text-color-light); /* Glow for bars */
    }

    .hamburger-menu.active .bar1 { transform: translateY(11px) rotate(45deg); }
    .hamburger-menu.active .bar2 { opacity: 0; }
    .hamburger-menu.active .bar3 { transform: translateY(-11px) rotate(-45deg); }

    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center logo */
        font-size: 1.8em; /* Smaller logo on mobile */
    }

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

    .main-nav {
        display: none; /* Default hidden on mobile */
        position: fixed;
        top: 0; /* Full height from top */
        left: 0;
        width: 70%; /* Side menu width */
        height: 100%;
        background-color: var(--dark-bg-3); /* Darker background for menu */
        flex-direction: column; /* Vertical menu */
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 80px; /* Space for logo/buttons when menu is open */
        transform: translateX(-100%); /* Hidden off-screen */
        transition: transform 0.3s ease;
        z-index: 999; /* Below hamburger, above overlay */
        border-right: 2px solid;
        animation: rainbow-border 3s linear infinite; /* Neon glow for menu border */
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

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

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
        gap: 15px;
        width: 100%; /* Must be 100% on mobile */
        max-width: none; /* Must not have max-width on mobile */
    }

    .nav-link {
        width: 100%; /* Full width for menu items */
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-overlay {
        display: none; /* Default hidden */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 998; /* Below menu, above page content */
    }
    .mobile-menu-overlay.active {
        display: block; /* Show when active */
    }

    .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-3), var(--dark-bg-4));
        border-bottom: 2px solid;
        animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
        position: relative; /* Relative to header-top, not fixed */
        z-index: 900; /* Below header-top and main-nav */
        min-height: 60px;
    }
    .mobile-buttons-container .btn {
        flex: 1; /* Distribute buttons evenly */
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9em;
    }

    /* Footer adjustments for mobile */
    .footer-top-section .footer-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .footer-bottom-section .footer-container {
        flex-direction: column;
    }
    .footer-legal-nav {
        flex-direction: column;
        gap: 8px;
    }
}

/* Utility classes for dynamic glow styles (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);
}

/* Style 1: Classic Neon Tube */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, rainbow-border 3s linear infinite;
}

/* Style 2: Cyberpunk Grid (background effect) */
.cyber-grid {
  position: relative;
  overflow: hidden;
}
.cyber-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  animation: hue-spin 4s linear infinite;
  opacity: 0.1;
  pointer-events: none;
}

/* Style 3: Pulse Glow (already integrated into pulse-glow animation) */
.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 4: Rainbow Flow (already integrated into rainbow-border animation) */
.rainbow-flow {
  animation: rainbow-border 3s linear infinite;
}

/* Style 5: Hue Rotate (filter effect) */
.hue-rotate {
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

/* Style 6: Alternate Glow (already integrated into alternate-colors animation) */

/* Style 7: Color Stream (background gradient animation) */
.color-stream {
  position: relative;
  border: 2px solid transparent; /* Transparent border for background to show */
  background: linear-gradient(45deg, 
    var(--neon-cycle-1-d), var(--neon-cycle-1-b), var(--neon-cycle-1-c), var(--neon-cycle-1-e), 
    var(--neon-cycle-1-f), var(--neon-cycle-1-a), var(--neon-cycle-1-f), var(--neon-cycle-1-d)
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}
.color-stream::before { /* Add a subtle glow for the border */
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: inherit;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: random-glow 5s linear infinite;
  z-index: -1;
}

/* Style 8: Random Colors (already integrated into random-glow animation) */

/* Style 9: Theme Flow (already integrated into theme-colors animation) */

/* Style 10: LED Matrix (complex, simplified for now) */
.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;
  opacity: 0.5;
  pointer-events: none;
}