:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --accent-color-login: #EA7C07; /* Đăng nhập màu cam */

  /* Neon colors based on primary: #26A9E0 */
  --neon-primary: #26A9E0; /* Vibrant Blue */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */
  --neon-glow-color1: #26A9E0;
  --neon-glow-color2: #00FFFF;
  --neon-glow-color3: #FF00FF;
  --neon-glow-color4: #FFFF00;
  --neon-glow-color5: #FF6600;
  --neon-glow-color6: #FF0000;

  --header-offset: 155px; /* Desktop: Marquee(45px) + Header-top(60px) + Main-nav(50px) = 155px */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 125px; /* Mobile: Marquee(25px) + Header-top(50px) + Mobile-buttons(50px) = 125px */
  }
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #000000; /* Default background */
  line-height: 1.6;
  padding-top: var(--header-offset); /* Ensure content is not hidden by fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color); /* White for headings in dark background */
}

/* Animations for Neon Effects */
@keyframes rainbow-border {
  0% { border-color: var(--neon-glow-color1); box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1); }
  16.6% { border-color: var(--neon-glow-color2); box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2); }
  33.3% { border-color: var(--neon-glow-color3); box-shadow: 0 0 10px var(--neon-glow-color3), 0 0 20px var(--neon-glow-color3); }
  50% { border-color: var(--neon-glow-color4); box-shadow: 0 0 10px var(--neon-glow-color4), 0 0 20px var(--neon-glow-color4); }
  66.6% { border-color: var(--neon-glow-color5); box-shadow: 0 0 10px var(--neon-glow-color5), 0 0 20px var(--neon-glow-color5); }
  83.3% { border-color: var(--neon-glow-color6); box-shadow: 0 0 10px var(--neon-glow-color6), 0 0 20px var(--neon-glow-color6); }
  100% { border-color: var(--neon-glow-color1); box-shadow: 0 0 10px var(--neon-glow-color1), 0 0 20px var(--neon-glow-color1); }
}

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

@keyframes theme-colors {
  0%, 100% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  33% { border-color: var(--neon-glow-color3); box-shadow: 0 0 10px var(--neon-glow-color3), 0 0 20px var(--neon-glow-color3); }
  66% { border-color: var(--neon-glow-color2); box-shadow: 0 0 10px var(--neon-glow-color2), 0 0 20px var(--neon-glow-color2); }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
  33% { text-shadow: 0 0 5px var(--neon-glow-color3), 0 0 10px var(--neon-glow-color3), 0 0 15px var(--neon-glow-color3); color: var(--secondary-color); }
  66% { text-shadow: 0 0 5px var(--neon-glow-color2), 0 0 10px var(--neon-glow-color2), 0 0 15px var(--neon-glow-color2); color: var(--secondary-color); }
  100% { text-shadow: 0 0 5px var(--neon-glow-color1), 0 0 10px var(--neon-glow-color1), 0 0 15px var(--neon-glow-color1); color: var(--secondary-color); }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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(38, 169, 224, 0.1);
  z-index: 1001;
  padding: 10px 0; /* Adjust padding for marquee height calculation */
  min-height: 25px; /* Base height for calculation */
  display: flex;
  align-items: center;
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; /* Reduced width */
  height: 28px; /* Reduced height */
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px; /* Reduced font size */
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
}

@keyframes marquee-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
  line-height: 1; /* Ensure text fits */
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), 0 0 30px var(--neon-primary), 0 0 40px var(--neon-primary);
  transform: scale(1.05);
  color: var(--secondary-color);
}

.marquee-separator {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 0 0 3px var(--neon-primary), 0 0 6px var(--neon-primary);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Site Header */
.site-header {
  position: fixed;
  top: 45px; /* Marquee height is approx 45px (25px min-height + 2*10px padding) */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: var(--secondary-color);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  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(38, 169, 224, 0.1);
}

.site-header .header-top {
  min-height: 60px; /* Desktop Header-top height */
  display: flex;
  align-items: center;
  padding: 10px 0;
}

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

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* White, no neon effect */
  text-transform: uppercase;
  text-decoration: none;
  display: block; /* Ensure it's not hidden */
}

.site-header .logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 50px; /* Desktop logo height */
}

.site-header .desktop-nav-buttons {
  display: flex; /* Always visible for desktop */
  gap: 10px;
}

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

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap; /* Prevent text wrapping initially */
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.btn.theme-flow {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-glow-color3));
  animation: theme-colors 4s ease-in-out infinite;
}

.btn.alternate-glow {
  background: linear-gradient(135deg, var(--neon-glow-color4), var(--neon-glow-color5));
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--neon-primary);
}

/* Main Navigation */
.site-header .main-nav {
  min-height: 50px; /* Desktop Main-nav height */
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Different animation for contrast */
  box-shadow: 0 0 10px var(--neon-glow-color4), 0 0 20px var(--neon-glow-color4), 0 0 30px var(--neon-glow-color4), inset 0 0 20px rgba(255, 255, 0, 0.1);
  display: flex; /* Desktop default */
  align-items: center;
  justify-content: center;
  width: 100%;
}

.site-header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
  gap: 20px;
}

.site-header .nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-color);
  padding: 8px 15px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.site-header .nav-link:hover {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default on desktop, shown by media query */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002; /* Above logo on mobile */
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: transform 0.3s ease;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary); /* Neon glow for hamburger */
}

.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 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: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

/* Footer */
.site-footer {
  background: #1a1a2e; /* Darker background for footer, no neon */
  color: #c0c0c0;
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer h4 {
  color: var(--primary-color); /* Use primary color for footer headings */
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
}

.site-footer .footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Four columns */
  gap: 30px;
}

.site-footer .footer-col {
  word-wrap: break-word; /* Ensure text wraps */
  overflow-wrap: break-word;
}

.site-footer .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.site-footer .footer-description {
  line-height: 1.6;
  color: #a0a0a0;
  font-size: 13px;
}

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

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

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

.site-footer .payment-icons,
.site-footer .game-providers-icons,
.site-footer .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%;
}

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

.site-footer .payment-icons img:hover,
.site-footer .game-providers-icons img:hover,
.site-footer .social-media-icons img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

.site-footer .footer-middle {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.site-footer .game-providers-section,
.site-footer .social-media-section {
  margin-bottom: 20px;
}

.site-footer .footer-bottom {
  text-align: center;
  color: #808080;
  font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Marquee */
  .marquee-section {
    padding: 0px 0; /* Reduced padding for mobile */
    min-height: 25px; /* Mobile height */
  }
  .marquee-container {
    gap: 10px;
    padding: 0 10px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 14px;
  }
  .marquee-separator {
    font-size: 14px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation-duration: 25s;
  }

  /* Header */
  .site-header {
    top: 25px; /* Mobile marquee height is 25px */
    border-bottom: none; /* No border for mobile header */
    box-shadow: none; /* No box-shadow for mobile header */
    background: #0a0a0a; /* Simpler background */
    animation: none; /* No animation */
  }

  .site-header .header-top {
    min-height: 50px; /* Mobile Header-top height */
    padding: 0;
    position: relative; /* For logo absolute positioning */
  }

  .site-header .header-container {
    padding: 0 15px; /* Smaller padding */
    width: 100%;
    max-width: none; /* Crucial for mobile container width */
    justify-content: flex-start; /* Align hamburger to start */
  }

  .site-header .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 22px; /* Smaller font size */
    padding-right: 40px; /* Offset for hamburger space */
  }

  .site-header .logo img {
    max-height: 40px; /* Mobile logo height */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    order: 0; /* Place hamburger first */
  }

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

  .site-header .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Padding for the button row */
    overflow: hidden;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
    background: #1a1a2e; /* Dark background for mobile button row */
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Half width minus half gap */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }

  .site-header .main-nav {
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column;
    position: fixed;
    top: 125px; /* Marquee(25px) + Header-top(50px) + Mobile-buttons(50px) = 125px */
    left: 0;
    width: 80%; /* Sidebar width */
    height: calc(100% - 125px); /* Full height below header */
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 20px rgba(38, 169, 224, 0.1);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1000; /* Above overlay */
    overflow-y: auto; /* Scrollable if many items */
  }

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

  .site-header .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile container width */
  }

  .site-header .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }
  .site-header .nav-link:last-child {
    border-bottom: none;
  }

  /* Footer */
  .site-footer .footer-container {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }
  .site-footer .footer-col:first-child {
    margin-bottom: 20px; /* Add space below logo/description */
  }

  /* Mobile overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}

/* No scroll for body when menu is open */
body.no-scroll {
  overflow: hidden;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
