/* Base Styles */
:root {
  --primary-color: #f96d00;
  --secondary-color: #0f0f1a;
  --accent-color: #ffe600;
  --card-bg: #1b1b3a;
  --border-color: #ffffff;
  --text-color: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #bebebe;
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Header Styles */
header {
  background: #888888;
  padding: 0px 20px;
  width: 100%;
  position: fixed;   /* Changed from relative to fixed */
  top: 0;            /* Aligns header to top */
  left: 0;           /* Aligns header to left edge */
  z-index: 1000;     /* Ensures header stays above content */
}

/* Optional: add shadow for depth */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 15px;
}

/* Prevent content from being hidden under fixed header */
body {
  padding-top: 70px; /* Adjust based on actual header height */
}


.header-logo {
  width: 70px;
  height: 100%;
  object-fit: contain;
}

.header-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 2.0rem;
  font-weight: 400;
  margin: 0;
  color: #ffffff;
}


/* Main Content Styles */
main {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px;
  flex: 1;
}

/* Game Selection Section */
.homepage-section {
  padding: 2px 0;
  text-align: center;
}

.section-title {
  font-size: 24px;
  margin-bottom: 5px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 3fr));
  gap: 6px;
  margin-top: 20px;
  justify-content: center;
}

.game-card {
  background-color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 15px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgb(255, 255, 255);
}

.game-image-container {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps it square and consistent */
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-image {
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.game-title {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #000000;
  text-align: center;
}


/* Mobile Legends Topup Section */
#mlTopupSection, #ffTopupSection {
  display: none;
}

.banner {
  margin-bottom: 25px;
}

.banner-content {
  padding: 15px;
}

.game-title-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.game-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.frame {
  background-color: #888888;
  border: 2px solid #FFFF00;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px;
  box-shadow: 0 0 5px #ffeb3b; /* glowing yellow border */
  animation: glowPulse 1.5s infinite alternate;
}
@keyframes glowPulse {
  from {
    box-shadow: 0 0 5px #ffeb3b;
  }
  to {
    box-shadow: 0 0 20px #ffff66; /* brighter yellow at max glow */
  }
}
.frame-agreement {
  border: 2px solid var(#0f0f1a);
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px;
}

.frame-banner {
  background-color: #888888;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

input[type="number"] {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  background-color: #ffffff;
  color: #000000;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
}

.card {
  background-color: #bebebe;
  border: 2px solid #FFFF00;
  border-radius: 8px;
  padding: 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 5px #ffeb3b; /* glowing yellow border */
}

.card:hover {
  transform: scale(1.03);
}

.card.selected {
  border: 2px solid #FFFF00;
  background-color: #444444;
  animation: glowPulse 1.5s infinite alternate;
}
@keyframes glowPulse {
  from {
    box-shadow: 0 0 5px #ffeb3b;
  }
  to {
    box-shadow: 0 0 10px #ffff66; /* brighter yellow at max glow */
  }
}

.card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 6px;
}

.new-price {
  color: #FFFF00;
  font-weight: bold;
  font-size: 1.1rem;
}

/* KHQR Payment Section */
.khqr-card {
  background-color: #bebebe;
  border: 2px solid #bebebe;
  border-radius: 12px;
  padding: 18px 18px 18px 90px;
  margin-top: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.khqr-card:hover {
  border-color: #444444;
}

.khqr-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-image: url('/static/images/khqr.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(1.1);
}

.khqr-card .text-group {
  flex: 1;
  min-width: 180px;
}

.khqr-card label {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f96d00;
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.khqr-card p {
  font-size: 0.95rem;
  color: #a0a0ff;
  margin: 0;
  line-height: 1.4;
}

.khqr-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #444444;
  margin-left: 15px;
}

/* Banner Section */
.banner.frame {
  border: 2px solid #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin: 25px 0;
  background: linear-gradient(135deg, #101e76 0%, #007cb5 100%);
}

.banner-content {
  padding: 20px;
}

.banner .game-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.banner .ml-logo, .banner .ff-logo, .banner .pubg-logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.banner h3.khmer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.banner h4.khmer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #a0a0ff;
  line-height: 1.4;
  margin: 10px 0 0 0;
  text-align: center;
}

/* Improved Khmer Heading Styles */
.khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}

.step1-khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-top: 10px;
  margin-bottom: 10px;
}
.step2-khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-top: 10px;
  margin-bottom: 10px;
}
.step3-khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-top: 10px;
  margin-bottom: 10px;
}
.home-english-heading {
  font-family: 'Vampire Wars', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}

.home-title-khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-top: 10px;
}
.pay-khmer-heading {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #101e76;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-content {
  background-color: #bebebe;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  position: relative;
  margin: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.qr-container {
  background-color: #ffffff;   /* white card like KHQR */
  padding: 5px;
  border-radius: 16px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 300px;
}

.qr-header {
  background-color: #e30613;   /* Bakong red */
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  font-size: 18px;
}

.qr-details {
  margin: 0px 0;
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  text-align: left;
}

.qr-image {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
}

#bakongQR {
  width: 100%;
  height: auto;
  max-width: 220px;
  display: block;
  margin: 0 auto;
}

.qr-line {
  border: none;
  border-top: 1px dashed #000000; /* dashed line */
  margin: 8px 0;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.bakong-btn {
  padding: 10px 15px;
  min-width: 100px;
}

/* Invoice Styles */
.invoice-details {
  margin: 15px 0;
  font-size: 0.9rem;
}

.invoice-row {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.invoice-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  min-width: 25px;
}

.invoice-label {
  min-width: 100px;
  color: #8fff8f;
  margin-right: 10px;
}

.invoice-value {
  flex: 1;
  word-break: break-word;
}

.topup-button {
  background: #444444;
  color: #FFDC00;
  border: #fb00be;
  padding: 2px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 70%;
}

.topup-button:hover {
  background: #444444;
}

.check-name-button {
  background: #444444;
  color: #FFDC00;
  border: 1px solid #1e0808; /* specify a proper border style */
  padding: 8px 16px; /* add some padding for better sizing */
  border-radius: 8px;
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block; /* lets the button size to content */
  width: auto; /* auto-fit content */
}


.check-name-button:hover {
  background: #444444;
}

/* Buttons */
button {
  background: #444444;
  color: #ffdc00;
  border: 1px solid rgb(252, 252, 252); /* golden border */
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

button:hover {
  background: #444444;
}

#buyNowBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100% - 40px);
  z-index: 999;
}

/* Footer Styles */
.site-footer {
  background-color: #007cb5;
  color: white;
  padding: 30px 15px 20px;
  border-top: 2px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-section {
  margin-bottom: 5px;
}

.footer-section h3 {
  margin-bottom: 5px;
  color: #0f3472;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* Hide footer when in topup section */
#mlTopupSection[style*="display: block"] ~ #mainFooter,
#ffTopupSection[style*="display: block"] ~ #mainFooter {
  display: none;
}

/* Responsive Design */
@media (max-width: 320px) {
  .header-title {
    font-size: 1.5rem;
  }

  .header-logo {
    width: 60px;
    height: 60px;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .modal-content {
    width: 90%;
  }
}

@media (max-width: 320px) {
  .header-content {
    padding: 10px 0;
  }

  .game-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .input-row {
    flex-direction: column;
  }

  input[type="number"] {
    width: 100%;
  }

  .khmer-heading {
    font-size: 0.9rem;
  }

  .khqr-card {
    padding: 12px 12px 12px 70px;
    flex-direction: column;
    align-items: flex-start;
  }

  .khqr-card input[type="checkbox"] {
    margin-left: 0;
    margin-top: 10px;
    align-self: flex-end;
  }

  .khqr-card::before {
    width: 45px;
    height: 45px;
  }

  .banner .ml-logo, .banner .ff-logo, .banner .pubg-logo  {
    width: 50px;
    height: 50px;
  }

  .invoice-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-label {
    margin-bottom: 5px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}
/* Updated Home Banner Styles */
.home-banner {
  margin: 1px 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.banner-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  color: white;
}

.banner-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1px;
  color: var(--accent-color);
}

.banner-text p {
  font-size: 1.1rem;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .banner-text h3 {
    font-size: 1.3rem;
  }
  
  .banner-text p {
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  .banner-text {
    padding: 1px;
    bottom: 1px;
  }
  
  .banner-text h3 {
    font-size: 1.1rem;
  }
}
.ff-check-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.ff-input-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ff-input {
  flex: 1;
  min-width: 160px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: #2a2a55;
  color: var(--text-color);
  font-size: 1rem;
}

.ff-check-button {
  background: #444444;
  color: #FFDC00;
  border: 1px solid #1e0808; /* specify a proper border style */
  padding: 8px 16px; /* add some padding for better sizing */
  border-radius: 8px;
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block; /* lets the button size to content */
  width: auto; /* auto-fit content */
}

.ff-check-button:hover {
  background: #444444;
}
.ml-check-button {
  background-color: #00deff;
  color: #0f3472;
  border: 1px solid rgb(255, 255, 255); /* golden border */
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Vampire Wars', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.ml-check-button:hover {
  background-color: #00deff;
}

.ff-username-result {
  font-family: 'Anton', sans-serif;
  color: #FFDC00 !important;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
/* Footer Center Section */
.footer-center {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.footer-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);       /* Slight zoom */
  filter: brightness(1.15);     /* Slightly brighter */
}

@media (max-width: 320px) {
  .footer-logo {
    width: 150px;
    max-height: 140px;
  }
}

.footer-text {
  font-size: 1.1rem;
  color: #FFFF00;
  margin-top: 10px;
  line-height: 1.4;
}

/* Footer Content Sections */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0px px;
  justify-content: flex-start;
  text-align: left;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 15px;
  border-top: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .footer-logo {
    width: 80px;
  }
  
  .footer-text {
    font-size: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .footer-section {
    min-width: 100%;
  }
}

@media (max-width: 320px) {
  .footer-logo {
    width: 70px;
  }
  
  .footer-text {
    font-size: 0.9rem;
  }
}
/* Telegram link styling */
  .telegram-link {
    color: #FFFF00; /* Telegram blue */
    font-weight: bold;
    text-decoration: none;
  }

  .telegram-link:hover {
    text-decoration: underline;
  }

  /* Facebook link styling */
  .facebook-link {
    color: #FFFF00; /* Facebook blue */
    font-weight: bold;
    text-decoration: none;
  }

  .facebook-link:hover {
    text-decoration: underline;
  }
  /* Banner Container */
.banner-container.frame {
  border: 0px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
  padding: 0;
}

.banner-container-frame.frame-banner {
  border: 0px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
  padding: 0;
}

/* Banner Slider */
.banner-slider {
  position: relative;
  width: 100%;
}

.banner-slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.banner-slide {
  min-width: 100%;
  position: relative;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Special Offers Container */
.offers-container.frame {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px 0;
  display: none;
}

.homepage-section.active ~ .offers-container {
  display: block;
}

/* Slider Navigation (for both banners and offers) */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

.slider-prev, .slider-next {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-prev:hover, .slider-next:hover {
  background: #e65c00;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.homepage-section.active ~ .offers-container {
  display: block;
}

/* Offer Slide Container */
.offer-slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.offer-slide {
  min-width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
}

.special-offers-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 10px;
  transition: transform 0.4s ease;
}

.offer-image-container {
  width: 45%;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.offer-image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.section-title {
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-size: 1.5rem;
  text-align: left;
  margin-bottom: 10px;
}



/* Slider Navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 0 0;
  margin-top: 10px;
}
.offer-slide img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 320px) {
  .banner-container.frame {
    border-radius: 6px;
  }
  
  .slider-prev, .slider-next {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 320px) {
  .slider-nav {
    gap: 10px;
    padding: 8px 0;
  }
  
  .slider-prev, .slider-next {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  
  .slider-dot {
    width: 8px;
    height: 8px;
  }
}
/* Lucky Popup Styles */
.lucky-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lucky-popup-content {
  position: relative;
  width: 300px;
  max-width: 90%;
  animation: popupFadeIn 0.3s ease-out;
}

.lucky-popup-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lucky-popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.lucky-popup-close:hover {
  color: var(--accent-color);
  background: rgba(0, 0, 0, 0.8);
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* Special Offers Section */
.special-offers-section {
  margin: 20px 0;
}

.special-offers-section h3 {
  color: #ffe600;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
}

/* Special Offer Cards */
.special-offer {
  position: relative;
  border: 2px solid #4d4dff;
  background: rgba(30, 30, 60, 0.7);
}

.special-offer:hover {
  border-color: #ffe600;
}

.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff3366;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
}

.offer-price {
  color: #4dff4d;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 5px;
}

.special-offer.selected {
  border-color: #f96d00;
  background: rgba(249, 109, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 320px) {
  .special-offer {
    margin-bottom: 15px;
  }
}
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.special-offers-section {
    margin: 25px 0;
}

.special-offers-section h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.special-offer {
    position: relative;
    border: 2px solid #FFD700;
}

.offer-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.special-offer.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(249, 109, 0, 0.5);
}

.special-offer .offer-price {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.alert.success {
    background-color: #4CAF50;
}

.alert.error {
    background-color: #F44336;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #c62828;
    display: none;
}
/* Left-aligned Section Header */
.section-step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 5px;
    color: #fff;
    font-size: 1.5rem;
    padding-left: 10px;
    position: relative;
    justify-content: flex-start; /* Align to left */
    width: 100%;
}

.section-step::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 10px; /* Align with text */
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ffffff, #943adb);
    border-radius: 3px;
    transform: none; /* Remove center alignment */
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(360deg, #101e76, #007cb5);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
    flex-shrink: 0;
}

/* Animation on hover */
.section-step:hover .step-number {
    transform: rotate(15deg) scale(1.1);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .section-step {
        font-size: 1.3rem;
        padding-left: 5px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .section-step::after {
        left: 5px;
        width: 60px;
    }
}
.support-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 10px #ffffff, 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: pulseButton 1.5s infinite ease-in-out;
}

/* Outer glow effect using pseudo-element */
.support-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
  box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff, 0 0 60px #ffffff;
  opacity: 0.6;
  animation: glowPulse 1.5s infinite ease-in-out;
  z-index: -1;
}


.support-button img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.support-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px #ffffff, 0 0 40px #ffffff;
}


.coming-soon {
  color: #ff5050;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
}
.special-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.game-title-english-heading { 
  font-family: 'Open Sans', sans-serif;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-bottom: 10px;
}
.english-heading { 
  font-family: 'Anton', sans-serif;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}
/* Feature list container */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center items horizontally */
  gap: 2px; /* space between items */
  padding: 0;
  list-style: none;
}

/* Each item */
.feature-list .item {
  display: inline-flex; /* hugs content */
  align-items: center;
  padding: 4px 8px; /* tight padding around text */
  background: #0f3472;
  border: none;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap; /* prevent text wrap */
}

.feature-list .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Text */
.feature-list .text {
  font-family: 'Dangrek', cursive;
  font-size: 12px; /* small but readable */
  line-height: 1;
}

/* Mobile: screens ≤360px */
@media (max-width: 320px) {
  .feature-list {
    flex-direction: column; /* stack items vertically */
    gap: 4px;
    align-items: center; /* center items on mobile */
  }

  .feature-list .item {
    padding: 3px 6px;
    font-size: 11px;
  }
}
.special-section-step {
    text-align: center;
    gap: 12px;
    margin: 25px 0 15px 0;
    color: #FFD700;
    font-size: 1.5rem;
    justify-content: flex-start; /* Align to left */
}
.special-offer-Khmer-heading { 
  font-family: 'Kdam Thmor Pro', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
  margin-top: 10px;
  margin-bottom: 10px;
}
.heart-anime {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: inline-block;
  animation: heartFloat 1.6s ease-in-out infinite;
}

/* optional smooth floating/pulsing effect */
@keyframes heartFloat {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-3px) scale(1.06); }
  80%  { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.transactions-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid gold;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.transactions-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}
/* Transactions Modal Styles */
.transactions-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.transactions-controls select,
.transactions-controls input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: #2a2a55;
    color: var(--text-color);
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
}

.transactions-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.transaction-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transaction-id {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.transaction-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-completed {
    background: #4caf50;
    color: white;
}

.status-pending {
    background: #ff9800;
    color: white;
}

.status-expired {
    background: #f44336;
    color: white;
}

.transaction-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    font-size: 0.85rem;
}

.transaction-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.transaction-label {
    color: #a0a0ff;
    font-weight: bold;
}

.transaction-value {
    color: white;
}

.no-transactions {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-style: italic;
}
.header-content {
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 15px;
    position: relative;
}
.transactions-btn {
    background: #ffffff;
    border: 1px solid gold;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transactions-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
}

.transactions-icon {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}
.khqr-inline {
  height: 40px;            /* fits nicely with text */
  vertical-align: middle;
  margin-left: 6px;
}

.khqr-img {
  width: 120px;             /* for standalone logo under text */
  margin-top: 8px;
  border-radius: 8px;
}
/* Container for particles */
.meng-topup-text {
    font-family: 'Cabin Condensed', sans-serif;
    font-size: 40px;
    white-space: nowrap;
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FF4500);
    
    /* Compatibility */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Neon glow */
    text-shadow: 
        0 0 5px #FFD700,
        0 0 10px #FF8C00,
        0 0 20px #FF4500,
        0 0 40px #FF8C00,
        0 0 60px #FFD700;
    
    transition: all 0.2s ease-in-out;
    position: relative;
    cursor: pointer;
    display: inline-block;

    /* Flicker animation */
    animation: flicker 2s infinite alternate;
}

/* Floating glowing particles */
.meng-topup-text::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 120%;
    height: 120%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: particles 4s linear infinite;
}

/* Flicker effect */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 
            0 0 5px #FFD700,
            0 0 10px #FF8C00,
            0 0 20px #FF4500,
            0 0 40px #FF8C00,
            0 0 60px #FFD700;
    }
    20%, 22%, 24%, 55% {
        opacity: 0.8;
        text-shadow: 
            0 0 2px #FFD700,
            0 0 4px #FF8C00,
            0 0 8px #FF4500,
            0 0 16px #FF8C00,
            0 0 30px #FFD700;
    }
}

/* Particle floating animation */
@keyframes particles {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Optional hover glitch effect */
.meng-topup-text::before {
    content: "MENG TOPUP";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    color: #fff;
    clip: rect(0, 0, 0, 0);
}

.meng-topup-text:hover::before {
    animation: glitchTop 0.5s infinite linear alternate-reverse;
}

.meng-topup-text:hover::after {
    animation: glitchBottom 0.5s infinite linear alternate-reverse;
}

@keyframes glitchTop {
    0% { clip: rect(0, 100%, 5%, 0); transform: translate(-2px, -2px); }
    25% { clip: rect(5%, 100%, 10%, 0); transform: translate(2px, 2px); }
    50% { clip: rect(10%, 100%, 15%, 0); transform: translate(-1px, 1px); }
    75% { clip: rect(15%, 100%, 20%, 0); transform: translate(1px, -1px); }
    100% { clip: rect(20%, 100%, 25%, 0); transform: translate(0, 0); }
}

@keyframes glitchBottom {
    0% { clip: rect(25%, 100%, 30%, 0); transform: translate(1px, 1px); }
    25% { clip: rect(30%, 100%, 35%, 0); transform: translate(-1px, -1px); }
    50% { clip: rect(35%, 100%, 40%, 0); transform: translate(2px, -2px); }
    75% { clip: rect(40%, 100%, 45%, 0); transform: translate(-2px, 2px); }
    100% { clip: rect(45%, 100%, 50%, 0); transform: translate(0, 0); }
}
@font-face {
  font-family: 'Open Sans';
  src: url('/static/fonts/OpenSans-ExtraBoldItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* Footer Styles */
.site-footer {
  background-color: #bebebe;
  color: white;
  padding: 30px 15px 20px;
  border-top: 2px solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Contact Section */
.contact-section {
  margin-bottom: 25px;
}

.contact-section h3 {
  margin-bottom: 15px;
  color: #000000;
  font-size: 1.3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-icon {
  width: 50px;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Payment Section */
.payment-section {
  margin-bottom: 25px;
}

.payment-section h3 {
  margin-bottom: 15px;
  color: #000000;
  font-size: 1.3rem;
}

.payment-methods {
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-logo {
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

/* Footer Bottom */
.footer-bottom {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-links {
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .payment-logo {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 20px 10px 15px;
  }
  
  .contact-section h3,
  .payment-section h3 {
    font-size: 1.1rem;
  }
  
  .social-links {
    gap: 12px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .payment-logo {
    height: 30px;
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
  }
}
/* CSS */
.full-width-banner {
  width: 100%;       /* Takes full width of the container */
  height: auto;      /* Maintains aspect ratio */
  display: block;    /* Removes inline spacing */
  border-radius: 10px; /* Optional rounded corners */
  margin-top: 10px;
  margin-bottom: 10px;
}
.username-row {
  display: flex;
  align-items: center; /* vertical alignment */
  gap: 10px; /* spacing between button and display */
}
.username { 
  font-family: 'Anton', sans-serif;
  color: #FFDC00 !important;
  font-weight: 100;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-rendering: optimizeLegibility;
}
