/* ================= RESET ================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f1a, #141428, #1c1c3a);
  background-attachment: fixed;
  color: #ffffff;
}

/* ================= GLOBAL ================= */
a {
  text-decoration: none;
  color: inherit;
}

.section {
  padding: 16px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ================= HEADER ================= */
header {
  padding: 16px;
  font-weight: 800;
  font-size: 20px;
}

.search {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1c222b;
  color: #fff;
}

/* ================= GAME GRID ================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ⬅️ dari 2 jadi 3 */
  gap: 14px;
  padding: 0 16px 24px;
}

.game-card {
  background: #0f1220;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1; /* biar kotak */
  object-fit: cover;
  border-radius: 12px;
}

.game-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card:hover,
.nominal-card:hover,
.checkout-btn:hover {
  animation-duration: 1.5s;
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* efek emas kiri & kanan */
.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  top: 10%;
  width: 6px;
  height: 80%;
  background: linear-gradient(
    180deg,
    transparent,
    #f5c97a,
    #ffdd9a,
    #f5c97a,
    transparent
  );
  opacity: 0;
  transition: opacity .12s ease;
}

/* kiri */
.game-card::before {
  left: 0;
  border-radius: 0 8px 8px 0;
}

/* kanan */
.game-card::after {
  right: 0;
  border-radius: 8px 0 0 8px;
}

/* SAAT DITEKAN */
.game-card:active::before,
.game-card:active::after {
  opacity: 1;
}

/* sedikit efek tekan */
.game-card.active {
  transform: scale(0.96);
  opacity: 0.7;
}

/* ================= TOPUP HEADER ================= */
.topup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0f141a;
  border-bottom: 1px solid #1f2630;
}

.topup-header img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.game-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.game-info p {
  font-size: 13px;
  color: #9aa4b2;
}

.back {
  font-size: 20px;
  margin-right: 4px;
}

/* ================= INPUT ================= */
.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #1c222b;
  color: #fff;
}

/* container input */
.input-row input {
  width: 100%;
  background: #1f2333;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 215, 140, .25);
  color: #fff;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}

/* SAAT DIKLIK / FOKUS */
.input-row input:focus {
  border: 1px solid #f5c97a;
  box-shadow:
    0 0 0 1px rgba(245, 201, 122, .6),
    0 0 12px rgba(245, 201, 122, .35);
}

/* placeholder */
.input-row input::placeholder {
  color: rgba(255,255,255,.45);
}

/* ================= NOMINAL ================= */
.nominal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.nominal-card {
  background: linear-gradient(145deg, #1c222b, #151b23);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.nominal-card:hover {
  transform: translateY(-2px);
}

.nominal-card.active {
  border-color: #4da3ff;
  background: linear-gradient(145deg, #203049, #1a2333);
}

.nominal-card .item {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.nominal-card .price {
  font-size: 13px;
  color: #9ecbff;
}

/* ================= SUMMARY ================= */
.summary {
  background: #151b23;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.summary span {
  color: #9aa4b2;
}

/* ================= BUTTON ================= */
.checkout-btn {
  margin: 16px;
  width: calc(100% - 32px);
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #4da3ff, #2c7be5);
  color: #fff;
  cursor: pointer;
  transition: 0.25s ease;
}

.checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkout-btn:not(:disabled):hover {
  transform: translateY(-2px);
}

/* ================= FOOTER ================= */
.footer {
  background: #0e1218;
  padding: 32px 20px 20px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: #9aa4b2;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: #7c6cff;
  margin-top: 6px;
  border-radius: 4px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #9aa4b2;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1f2630;
  margin-top: 30px;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #7d8796;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* FOOTER SUPPORT ICONS */
.support-icons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.support-icons a {
  width: 38px;
  height: 38px;
  background: #1a2029;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.support-icons img {
  width: 20px;
  height: 20px;
}

.support-icons a:hover {
  background: #7c6cff;
  transform: translateY(-2px);
}

.badge-pass {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffb347, #ff7a18);
  color: #000;
}

.footer a {
  cursor: pointer;
  text-decoration: none;
}

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

/* ================= NEON PULSE ================= */
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 8px rgba(130, 90, 255, 0.4),
      0 0 16px rgba(80, 160, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 16px rgba(170, 120, 255, 0.8),
      0 0 32px rgba(100, 180, 255, 0.6);
  }
  100% {
    box-shadow:
      0 0 8px rgba(130, 90, 255, 0.4),
      0 0 16px rgba(80, 160, 255, 0.2);
  }
}

/* ================= SEARCH BAR ================= */
.search-wrapper {
  position: relative;
}

.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(140, 100, 255, 0.45);
  outline: none;
  background: rgba(20, 10, 40, 0.92);
  color: #fff;
  font-size: 14px;

  box-shadow:
    0 0 10px rgba(120, 80, 255, 0.45),
    inset 0 0 6px rgba(80, 160, 255, 0.25);

  animation: neonPulse 4s ease-in-out infinite;
  transition: 0.3s ease;
}

.search::placeholder {
  color: rgba(200, 170, 255, 0.6);
}

.search:focus {
  border-color: #9a7cff;
  box-shadow:
    0 0 16px rgba(170, 120, 255, 0.9),
    0 0 32px rgba(100, 180, 255, 0.6),
    inset 0 0 8px rgba(120, 200, 255, 0.25);
  animation-duration: 1.8s;
}

/* ================= SEARCH RESULT OVERLAY ================= */
.search-result {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;

  background: rgba(28, 18, 58, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-radius: 18px;
  padding: 6px;
  display: none;
  z-index: 999;

  box-shadow:
    0 0 24px rgba(150, 100, 255, 0.55),
    inset 0 0 14px rgba(100, 180, 255, 0.25);
}

/* ================= SEARCH ITEM ================= */
.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.25s ease;
}

.search-item img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(120, 80, 255, 0.6);
}

.search-item span {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.search-item:hover {
  background: linear-gradient(
    135deg,
    rgba(130, 90, 255, 0.65),
    rgba(80, 160, 255, 0.55)
  );
  transform: translateX(4px);
}

/* ================= SCROLLBAR (NEON) ================= */
.search-result::-webkit-scrollbar {
  width: 6px;
}

.search-result::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9b7cff, #5bbcff);
  border-radius: 10px;
}

/* ================= NEON PULSE ================= */
@keyframes neonPulse {
  0% {
    box-shadow:
      0 0 10px rgba(140, 100, 255, 0.5),
      0 0 20px rgba(80, 160, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 22px rgba(190, 140, 255, 1),
      0 0 44px rgba(120, 200, 255, 0.8);
  }
  100% {
    box-shadow:
      0 0 10px rgba(140, 100, 255, 0.5),
      0 0 20px rgba(80, 160, 255, 0.35);
  }
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {
  .search-result {
    max-height: 300px;
  }

  .search-item span {
    font-size: 14px;
  }
}

/* ================= SEARCH NEON PULSE FIX ================= */
.search-neon {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(160, 120, 255, 0.6);
  outline: none;

  background: rgba(25, 10, 50, 0.95);
  color: #fff;
  font-size: 15px;

  box-shadow:
    0 0 14px rgba(150, 100, 255, 0.7),
    0 0 28px rgba(100, 180, 255, 0.5),
    inset 0 0 10px rgba(120, 200, 255, 0.25);

  animation: neonPulse 3s ease-in-out infinite;
  transition: 0.3s ease;
}

.search-neon::placeholder {
  color: rgba(210, 180, 255, 0.7);
}

.search-neon:focus {
  border-color: #b18cff;
  box-shadow:
    0 0 20px rgba(190, 140, 255, 1),
    0 0 40px rgba(120, 200, 255, 0.8),
    inset 0 0 12px rgba(140, 220, 255, 0.35);
}

/* ================= SEARCH ICON NEON ================= */
.search-icon-wrapper {
  width: 54px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: radial-gradient(
    circle at top,
    #3c1b5a,
    #1a082b
  );

  border: 1px solid rgba(170, 130, 255, 0.35);

  box-shadow:
    inset 0 0 10px rgba(120, 80, 255, 0.25),
    0 0 14px rgba(120, 80, 255, 0.4);

  animation: iconPulse 3s ease-in-out infinite;
  transition: 0.25s ease;
}

.search-icon-wrapper:hover {
  box-shadow:
    inset 0 0 14px rgba(160, 120, 255, 0.45),
    0 0 24px rgba(150, 120, 255, 0.7);
}

.search-icon {
  font-size: 20px;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(180, 140, 255, 0.9));
}

/* ================= ICON PULSE ================= */
@keyframes iconPulse {
  0% {
    box-shadow:
      inset 0 0 8px rgba(120, 80, 255, 0.25),
      0 0 12px rgba(120, 80, 255, 0.35);
  }
  50% {
    box-shadow:
      inset 0 0 14px rgba(170, 120, 255, 0.5),
      0 0 26px rgba(160, 120, 255, 0.8);
  }
  100% {
    box-shadow:
      inset 0 0 8px rgba(120, 80, 255, 0.25),
      0 0 12px rgba(120, 80, 255, 0.35);
  }
}

/* ================= SEARCH OVERLAY ================= */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 25, 0.85);
  backdrop-filter: blur(14px);
  display: none;
  z-index: 9999;
  padding: 80px 16px 16px;
}

.search-overlay.active {
  display: block;
}

.search-overlay-box {
  max-width: 520px;
  margin: 0 auto;
}

/* ICON */
.search-icon-wrapper{
  width:54px;height:44px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  background:radial-gradient(circle at top,#3c1b5a,#1a082b);
  border:1px solid rgba(170,130,255,.35);
  box-shadow:inset 0 0 10px rgba(120,80,255,.25),0 0 14px rgba(120,80,255,.4);
  animation:iconPulse 3s ease-in-out infinite;
}
.search-svg{
  width:20px;height:20px;fill:none;
  stroke:#fff;stroke-width:2;
  filter:drop-shadow(0 0 6px rgba(180,140,255,.9));
}

/* OVERLAY */
.search-overlay{
  position:fixed;inset:0;display:none;z-index:9999;
  background:rgba(10,5,25,.85);backdrop-filter:blur(14px);
  padding:80px 16px 16px;
}
.search-overlay.active{display:block;}
.search-overlay-box{max-width:520px;margin:0 auto;}

/* INPUT */
.search-neon{
  width:100%;padding:14px 16px;border-radius:16px;
  border:1px solid rgba(160,120,255,.6);
  background:rgba(25,10,50,.95);color:#fff;font-size:15px;
  box-shadow:0 0 14px rgba(150,100,255,.7),0 0 28px rgba(100,180,255,.5),
             inset 0 0 10px rgba(120,200,255,.25);
  animation:neonPulse 3s ease-in-out infinite;
}
.search-neon::placeholder{color:rgba(210,180,255,.7);}

/* RESULT */
.search-result{
  margin-top:12px;display:none;max-height:340px;overflow:auto;
  background:rgba(28,18,58,.88);backdrop-filter:blur(16px);
  border-radius:18px;padding:6px;
  box-shadow:0 0 24px rgba(150,100,255,.55),
             inset 0 0 14px rgba(100,180,255,.25);
}
.search-item{
  display:flex;gap:14px;align-items:center;
  padding:14px;border-radius:16px;cursor:pointer;
}
.search-item img{width:52px;height:52px;border-radius:14px;object-fit:cover;}
.search-item:hover{
  background:linear-gradient(135deg,rgba(130,90,255,.65),rgba(80,160,255,.55));
}

/* ANIMATIONS */
@keyframes neonPulse{
  0%{box-shadow:0 0 10px rgba(140,100,255,.5),0 0 20px rgba(80,160,255,.35);}
  50%{box-shadow:0 0 22px rgba(190,140,255,1),0 0 44px rgba(120,200,255,.8);}
  100%{box-shadow:0 0 10px rgba(140,100,255,.5),0 0 20px rgba(80,160,255,.35);}
}
@keyframes iconPulse{
  0%{box-shadow:inset 0 0 8px rgba(120,80,255,.25),0 0 12px rgba(120,80,255,.35);}
  50%{box-shadow:inset 0 0 14px rgba(170,120,255,.5),0 0 26px rgba(160,120,255,.8);}
  100%{box-shadow:inset 0 0 8px rgba(120,80,255,.25),0 0 12px rgba(120,80,255,.35);}
}

/* ================= BANNER ================= */
/* === BANNER === */
  .banner-container {
    padding: 0 16px 16px;
  }

.banner-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 28px;
  -webkit-overflow-scrolling: touch;
}

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.banner-slide img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* hover halus (desktop) */
.banner-slide img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 45px rgba(0,0,0,.6);
}

/* hilangkan scrollbar */
.banner-slider::-webkit-scrollbar {
  display: none;
}

/* indicator bawah (kalau dipakai) */
.banner-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.banner-indicator span {
  width: 18px;
  height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  transition: .3s;
}

.banner-indicator span.active {
  width: 28px;
  background: linear-gradient(90deg,#a855f7,#6366f1);
}

.banner-heading {
  margin-bottom: 12px;
  text-align: center;
}

.banner-heading h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-heading p {
  font-size: 14px;
  color: #777;
}

/* ================= FEATURE ================= */
.features.compact {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.features.compact .feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
}

.features.compact .icon {
  font-size: 14px;
  animation: pulse 2.5s infinite;
}

/* Warna Icon */
.fast   { color: #facc15; }
.chat   { color: #3b82f6; }
.secure { color: #22c55e; }

/* Animasi Halus */
@keyframes pulse {
  0%   { opacity: 1; }
  50%  { opacity: .65; }
  100% { opacity: 1; }
}

/* Mobile */
@media (max-width: 480px) {
  .features.compact {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #0b0b0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.loader-box {
  text-align: center;
  color: #fff;
  font-family: Arial, sans-serif;
}

.loader-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  border-radius: 16px;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #00e5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

/* ================= TOPBAR BARU ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(90deg, #3c1b5a, #1a082b);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-left .logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(160,120,255,.5);
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right i {
  font-size: 18px;
  color: #fff;
  cursor: pointer;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;

  background: rgba(140,100,255,.18);
  border: 1px solid rgba(160,120,255,.35);

  box-shadow:
    inset 0 0 6px rgba(120,80,255,.25),
    0 0 10px rgba(120,80,255,.35);
}

.lang img {
  width: 18px;
  height: 18px;
}

/* ================= HERO BARU ================= */
.hero {
  padding: 0 16px 16px;
}

.hero img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 28px;

  box-shadow:
    0 12px 35px rgba(0,0,0,.45),
    0 0 22px rgba(140,100,255,.35);

  transition: transform .35s ease, box-shadow .35s ease;
}

.hero img:hover {
  transform: scale(1.02);
  box-shadow:
    0 16px 45px rgba(0,0,0,.6),
    0 0 30px rgba(170,120,255,.55);
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 13px;
  }

  .hero img {
    height: 150px;
  }
}

/* ================= PREMIUM ================= */
body {
  opacity: 0;
  transform: translateY(10px);
  animation: pageFade 0.6s ease forwards;
}

@keyframes pageFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 15, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero img {
  width: 100%;
  transition: transform 0.8s ease;
}

.hero img:hover {
  transform: scale(1.03);
}

.game-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 14px;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.25);
}

.game-card img {
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-card.active {
  animation: clickPulse 0.4s ease;
}

@keyframes clickPulse {
  0% { box-shadow: 0 0 0 rgba(0,255,255,0); }
  50% { box-shadow: 0 0 20px rgba(0,255,255,0.6); }
  100% { box-shadow: 0 0 0 rgba(0,255,255,0); }
}

.search-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-card {
  position: relative;
}

.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(0,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 12px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger span {
  transition: 0.3s;
}
/* =========================
   SIDEBAR
========================= */

.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 220px;
  height: 100%;
  background: #0f172a;
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: 0.3s ease;
  z-index: 999;
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  opacity: 0.8;
  transition: 0.2s;
}

.side-menu a:hover {
  opacity: 1;
  transform: translateX(5px);
}

/* ACTIVE STATE */
.side-menu.active {
  left: 0;
}

/* ============================= */
/*        RAMADHAN THEME         */
/* ============================= */

body {
  background: linear-gradient(135deg, #0f3d2e, #14532d, #064e3b);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ornamen bulan & bintang */
body::before {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(255,215,0,0.25), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "☪";
  position: fixed;
  top: 30px;
  left: 20px;
  font-size: 60px;
  color: rgba(255, 215, 0, 0.12);
  z-index: 0;
  pointer-events: none;
}

/* Supaya konten tetap di atas background */
.topbar,
.hero,
.game-grid,
.footer {
  position: relative;
  z-index: 2;
}

.topbar {
  background: linear-gradient(90deg, #14532d, #166534);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.brand-name {
  color: gold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

@keyframes sparkle {
  0% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.8; }
  100% { opacity: 0.2; transform: translateY(-10px); }
}

body::marker {
  content: "✦";
  animation: sparkle 3s infinite;
}

/* ============================= */
/*      LENTERA GANTUNG FIX      */
/* ============================= */

.lantern {
  position: fixed;
  top: 0;
  width: 60px;
  z-index: 9999; /* supaya pasti di atas */
  pointer-events: none;
}

.lantern img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 0 20px gold);
}

/* Tali */
.lantern::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 70px;
  background: gold;
}

/* Animasi goyang */
@keyframes swing {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

.lantern {
  transform-origin: top center;
  animation: swing 3s ease-in-out infinite;
}

/* POSISI */
.l1 { left: 10px; }
.l2 { left: 10px; top: 150px; }

.r1 { right: 10px; }
.r2 { right: 10px; top: 150px; }

/* ============================= */
/*        HERO RAMADHAN          */
/* ============================= */

.ramadhan-hero {
  position: relative;
  text-align: center;
}

.ramadhan-hero img {
  width: 100%;
  border-radius: 0 0 30px 30px;
  filter: brightness(0.7);
}

.ramadhan-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: gold;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.ramadhan-text h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.ramadhan-text p {
  font-size: 18px;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {

  body::before {
    width: 200px;
    height: 200px;
    right: -60px;
  }

  body::after {
    font-size: 45px;
  }

}

.ramadhan-greeting {
  text-align: center;
  padding: 25px 15px;
  background: linear-gradient(135deg, #0f3d2e, #14532d);
  color: #fff;
  border-radius: 12px;
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeRamadhan 1s ease-in-out;
}

.ramadhan-greeting h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffd700;
}

.ramadhan-greeting p {
  font-size: 14px;
  line-height: 1.6;
}

.ramadhan-highlight {
  margin-top: 10px;
  font-weight: bold;
  color: #ffdd57;
}

@keyframes fadeRamadhan {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HEADER DENGAN BANNER */
.topup-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  color: white;
}

/* Banner Background */
.topup-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--banner-url) center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 0;
}

/* Pastikan isi di atas banner */
.topup-header > * {
  position: relative;
  z-index: 1;
}

/* Logo Game */
#gameImage {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  object-fit: cover;
  border: 2px solid white;
}

/* ================= HEADER ================= */

.topup-header {
  position: relative;
  padding: 70px 20px 40px;
  border-radius: 0 0 25px 25px;
  overflow: hidden;
  color: white;
}

/* Banner */
.topup-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--banner-url) center/cover no-repeat;
  filter: brightness(0.6);
  z-index: 0;
}

.topup-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  z-index: 1;
}

/* ===== LOGO (LEBIH POJOK) ===== */
.logo-wrapper {
  position: absolute;
  top: 0;
  left: 0;

  width: 50px;
  height: 50px;

  border-radius: 0;      /* hilangkan lengkungan */
  background: none;      /* hilangkan warna */
  box-shadow: none;      /* hilangkan bayangan */
  overflow: visible;     /* jangan potong gambar */
  padding: 0;
}

#gameImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== BACK BUTTON ===== */
.back {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  font-weight: bold;
  color: white;

  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  cursor: pointer;

  z-index: 4;
}

/* ===== NAMA GAME SAMPING LOGO ===== */
.header-content {
  position: absolute;
  top: 8px;
  left: 60px;
  z-index: 2;
}

.game-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.game-info p {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.85;
}
