 /* CSS INDEX.HTML */
   body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient( #0a0a0a, #0a0a0a);
      color: white;
    }

    .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid #444;

  background-color: #000; /* awal solid */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: translateY(0);

  transition:
    background-color 0.3s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.header.hide {
  transform: translateY(-100%);
}

.page-content {
  padding-top: 54px; /* atau sesuai tinggi header kamu */
}
    
    .logo img.logo-gif {
  height: 42px;
  margin-left: -15px;
  object-fit: contain;
  display: block;
}

    .header-icons {
      display: flex;
      gap: 10px;
    }

    .icon-button {
      background: transparent;
      border: 1px solid #fff;
      color: white;
      padding: 5px 10px;
      border-radius: 10px;
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: white;
}

.banner-bg {
  position: relative;
  width: 100vw;             /* ⬅️ gunakan lebar penuh layar */
  left: 0;
  right: 0;
  margin-top: 5px;
  background: #0a0a0a url(ramadhan.jpg);
  background-size:100%;
  padding: 16px 0;
  overflow: hidden;
  z-index: 0;
  border-radius: 0 0 0px 0px;
}

.banner-wrapper {
  position: relative;
  width: 90%;
  max-width: 100%;
  aspect-ratio: 135 / 55;
  margin: 0 auto;
  border-radius: 20px;
  z-index: 2;
  overflow: hidden;
}

.banner-static {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.popular-section {
  padding: 16px;
}

.popular-section h2 {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: bold;
}

.popular-section p {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 12px;
}

.popular-title-group {
  text-align: left;
}

.popular-title-group h2 {
  margin-bottom: 2px;
}

.popular-title-group p {
  padding-left: 27px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Baris dua kotak */
.popular-row {
  display: flex;
  flex-wrap: wrap;         /* ➜ biar item bisa turun ke baris berikut */
  justify-content: space-between;
  gap: 12px;
}

/* Kotak produk */
.popular-box {
  display: flex;
  width: calc(50% - 8px);
  height: 70px;
  background: #272727 url(puasa.jpg);
  background-size: 125%;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  border: 1px solid #707070; /* ✅ Tambahan border hijau */
}

.popular-box img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Teks dalam kotak */
.popular-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 8px;
}

.game-title {
  font-weight: bold;
  color: white;
  font-size: 9px;
}

.game-subtitle {
  font-size: 7px;
  color: #b5b5b5;
}

.category-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}

.category-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.category-button {
  white-space: nowrap;
  border: 1px solid #fff500;
  background-color: transparent;
  color: #fff500;
  padding: 10px 30px;
  border-radius: 12px; /* INI YANG MIRIP SEPERTI GAMBAR */
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.category-button.active {
  background-color: #fff500;
  color: #0a0a0a;
}

.category-nav {
  background-color: #fff500;
  border: 1px solid #fff500;
  color: black;
  font-size: 15px;
  padding: 4px 4px;
  border-radius: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.topup-products {
  padding: 20px 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card {
  background-color: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.9);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* TOMBOL TAMPILKAN LAINNYA */
.product-more-section {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.show-more-btn {
  background-color: #fff500;
  color: black;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-btn:hover {
  background-color: #00cc00;
}

.footer {
  background: linear-gradient(to bottom, #000, #0a0a0a);
  padding: 40px 20px 20px;
  color: white;
  font-size: 14px;
  margin-top: -4px;
}

.footer-logo {
  max-width: 50px;
  margin-bottom: 1px;
}

.footer-desc {
  margin-bottom: 30px;
  line-height: 1.6;
  color: #ccc;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-column h4 {
  color: #fff500;
  font-weight: bold;
  margin-bottom: 10px;
  text-decoration: underline;
}

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

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

.footer-column ul li a {
  color: white;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #fff500;
  padding-top: 30px;
  margin-top: 30px;
}

.footer-icon {
  margin-right: 10px;
  color: red;
  font-size: 16px;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.footer-wave-img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 100px;
}

.banner-slider {
  display: flex;
  width: 100%; /* 3 gambar = 300% */
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.banner-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 16px;
}

.banner-slide.active {
  opacity: 1;
}

/* tombol di tengah */
.show-more-btn {
  background: #00ff00;
  color: black;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}
.show-more-btn:hover {
  filter: brightness(1.1);
}

/* produk tambahan tersembunyi dulu */
.product-card.hidden {
  display: none;
}

/* ===== SIDE MENU STYLE ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  max-width: 300px;
  height: 100%;
  background: #000;
  z-index: 9999;
  padding: 20px;
  box-shadow: 5px 0 15px rgba(0,0,0,.4);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.side-menu.show {
  transform: translateX(0);
}
.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-logo {
  height: 42px;
}
.side-close {
  background: transparent;
  color: #fff;
  font-size: 22px;
  border: none;
  cursor: pointer;
}
.side-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}
.side-links a:hover {
  color: #00ff00;
}

.blur-background {
  filter: blur(10px);
  transition: filter 0s ease;
}

.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 80px;
}

.search-box {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  color: white;
  position: relative;
  border: 1px solid #707070;
}

.search-box input {
  width: 80%;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #2a2a2a;
  color: white;
}

.close-search {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
}

.search-results {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-text {
  font-size: 13px;
  line-height: 1.4;
}

.search-result-text b {
  display: block;
  font-size: 14px;
}

.no-results {
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

.language-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.language-box {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  color: white;
  border: 1px solid #707070;
}
.language-box h3 {
  margin-top: 2;
}
.lang-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.lang-option {
  flex: 1;
  background: #2c2c2c;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
}
.lang-option:hover {
  background: #444;
}
.lang-option.active {
  border: 1px solid #00ff00;
}
.lang-option.active::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 16px;
  color: #00ff00;
}

.submenu-kalkulator a {
  font-size: 15px;
  color: #fff;
  display: block;
  padding: 15px 0;
  border-bottom: 1px dashed #333;
}

.submenu-kalkulator a:hover {
  color: #00ff00;
}

/* =====================================================
   DESKTOP FINAL ENHANCEMENT (LEVEL AKHIR)
   ===================================================== */
@media (min-width: 992px) {

  /* ========== HEADER SEARCH DESKTOP ========== */
  .header {
    gap: 24px;
  }

  /* sembunyikan popup-style search */
  .icon-button.search-btn {
    display: none;
  }

  /* search jadi inline */
  .desktop-search {
    display: flex;
    flex: 1;
    max-width: 520px;
    margin: 0 32px;
  }

  .desktop-search input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 15px;
    outline: none;
  }

  .desktop-search input::placeholder {
    color: #aaa;
  }

  /* ========== BANNER FIX (ANTI KEPOONG) ========== */
  .banner-wrapper {
    aspect-ratio: unset;
    height: 360px; /* tinggi aman desktop */
  }

  .banner-slide,
  .banner-static {
    object-fit: contain; /* gambar aman */
    background: #000;
  }

  /* ========== POPULAR ROW STABIL ========== */
  .popular-row {
    align-items: stretch;
  }

  /* ========== PRODUCT CARD DESKTOP DETAIL ========== */
  .product-card::after {
    content: attr(alt);
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: white;
  }

  /* ========== ULTRA WIDE (1440px+) ========== */
  @media (min-width: 992px) {

    .page-content,
    .popular-section,
    .topup-products,
    .footer {
      max-width: 1400px;
    }

    .product-grid {
      grid-template-columns: repeat(6, 1fr);
    }

    .banner-wrapper {
      height: 420px;
    }

  }
}

/* =====================================================
   DESKTOP CENTER FIX — AGAR TIDAK MENTOK SAMPING
   ===================================================== */
@media (min-width: 992px) {

  /* wrapper utama */
  .page-content,
  .popular-section,
  .topup-products,
  .footer,
  .banner-bg {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* padding konsisten */
  .page-content,
  .popular-section,
  .topup-products,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* banner tetap center */
  .banner-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

}

#fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;           /* di belakang konten */
  pointer-events: none;  /* tidak mengganggu klik */
}

@keyframes blinker {
    50% {
        opacity: 0; /* Pada 50% durasi animasi, emoji menjadi tidak terlihat */
    }
}