
* {
  box-sizing: border-box;
}

body {
  background-color: #0e0e0e; /* fallback hitam */
  background-image: url('https://g.top4top.io/p_3447fwx2e0.png'); /* ⬅️ tukar ikut path fail kau */
  background-repeat: repeat;
  background-size: 180px; /* adjust spacing symbol sini */
  background-position: top center;
  background-attachment: fixed;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 70px;
}

.transition-fade {
  height: 80px;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 1), #151B54);
  box-shadow: 0 -5px 15px rgba(59,130,246,0.3);
}

.trusted-section {
  padding: 60px 20px;
  background-color: #151B54;
  color: white;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.stat-box {
  flex: 1 1 150px;
  max-width: 200px;
  background: #13132a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
  transition: transform 0.3s;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box h2 {
  font-size: 32px;
  margin: 0;
  color: #00aaff;
}

.stat-box p {
  margin-top: 8px;
  font-size: 16px;
  color: #ccc;
}

.highlight-text {
  color: #ffc107;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.main-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.4;
}

.main-title span {
  color: #ffffff;
}


.topup-popular {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dua kolum */
  gap: 10px;
  padding: 10px 15px;
}

.card-game {
  display: flex;
  align-items: center;
  justify-content: start;
  background: linear-gradient(135deg, #1e62ff, #174acc);
  border-radius: 12px;
  padding: 8px 10px;
  position: relative;
  text-decoration: none;
  height: 60px; /* Leper */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

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

.card-icon img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.card-text {
  margin-left: 10px;
  color: white;
}

.card-text .game-title {
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
}

.card-text .game-subtitle {
  font-size: 11px;
  margin: 0;
  color: #ccc;
}

.card-logo {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 20px 10px;
  animation: fadeInDown 0.6s ease;
}

.section-logo {
  width: 36px;
  height: auto;
}

.section-title h2 {
  font-size: 24px;
  color: white;
  margin: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efek langit dengan bintang jatuh */
/* Bintang Jatuh ke Kanan */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* supaya tak ganggu klik */
  overflow: hidden;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -10px; /* mula di atas viewport */
  background-color: white;
  border-radius: 50%;
  opacity: 0.7;
  filter: drop-shadow(0 0 1px #fff);
  animation-name: fallAndDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

/* Animasi salji jatuh ke bawah dan drift ke kanan */
@keyframes fallAndDrift {
  0% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  100% {
    transform: translate(50vw, 100vh);
    opacity: 0;
  }
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Garis bawah gradient */
.sticky-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #38bdf8, #60a5fa);
  z-index: -1;
}


.logo img {
  width: 135px;
  height: 40px;
  border-radius: 8px;
  animation: fadeSlideIn 1s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Search bar */
.search-container {
  position: relative;
}

.search-container input {
  padding: 10px 35px 10px 14px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #334155;
  color: #f1f5f9;
  font-size: 14px;
  width: 180px;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 0 0px rgba(56, 189, 248, 0.5);
}

.search-container input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.search-container input::placeholder {
  color: #cbd5e1;
  transition: all 0.3s ease;
}

/* Ikon search */
.search-container .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #007BFF;
  border-top: none;
  width: 100%;
  max-height: 160px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.suggestions-list li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e6f0ff;
  background-color: #f5faff;
  color: #004080;
  transition: background-color 0.2s;
}

.suggestions-list li:hover {
  background-color: #007BFF;
  color: white;
}

.title {
  text-align: center;
  margin: 20px 0;
  font-size: 1.5rem;
  color: #f1f5f9;
}

.topup-grid {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
position: relative;
  gap: 25px;
  max-width: 950px;
  margin: 40px auto;
  padding: 0 20px;
}


.topup-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 950 / 1410;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 -60px 80px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
  /* buang border default */
 border: 2px solid #3b82f6;
}


.topup-card .game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
  pointer-events: none;
}

.topup-card.show-name .game-name {
  opacity: 1;
  transform: translateY(0);
}

.topup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.topup-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px #3b82f6;
}

  
.topup-card.active {
  border: 2px solid #3b82f6; /* Biru terang */
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  background-color: rgba(59, 130, 246, 0.1);
}

.topup-card.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59,130,246,0.25), transparent 60%);
  pointer-events: none;
  z-index: 1;
  border-radius: 16px;
}

.title-left {
  text-align: left;
  margin: 20px 20px 10px;
  font-size: 1.5rem;
  color: #f1f5f9;
}

.modal {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);

  /* FLEX CENTER */
  display: none;
  justify-content: center;
  align-items: center;
}


.modal-content {
  background: #111827;
  color: white;
  margin: 10% auto;
  padding: 20px;
  border: 2px solid #38bdf8;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 10px #38bdf8;
}

.region-btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background: #1e3a8a;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.region-btn:hover {
  background: #2563eb;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
}

.swiper {
  width: 90%; /* Atau berapa yang kau nak, contoh: 800px */
  max-width: 960px;
  margin: 20px auto; /* Auto untuk center */
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); /* Efek glow biru */
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 12px;
}

.nav-buttons {
  display: flex;
  justify-content: flex-start; /* susun kiri */
  gap: 8px;
  margin: 20px 20px; /* jarak dari tepi kiri dan atas */
  flex-wrap: wrap;
}

.nav-buttons button {
  background-color: transparent;
  border: 1px solid #00bfff;
  color: white;
  padding: 4px 10px; /* kecilkan padding */
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #00bfff;
  color: #000;
  box-shadow: 0 0 5px #00bfff;
}

.popup {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 50, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Kotak popup */
.popup-content {
  background-color: #111132;
  border: 2px solid #1a8cff;
  border-radius: 10px;
  box-shadow: 0 0 15px #1a8cff;
  padding: 10px;
  width: 300px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

/* Gambar */
.popup-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}

/* Butang tutup */
.popup .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.footer-credit {
  text-align: center;
  padding: 20px 0;
}

.credit-btn {
  background-color: #0f0f0f;
  color: #38bdf8;
  padding: 8px 16px;
  border: 2px solid #38bdf8;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
  display: inline-block;
}

.credit-btn:hover {
  background-color: #1e293b;
  box-shadow: 0 0 10px #38bdf8;
}

footer {
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding: 50px 20px;
  font-family: 'Segoe UI', sans-serif;
  border-top: 4px solid #00bfff; /* Garisan biru branding */
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.about {
  flex: 1 1 100%;
  margin-bottom: 30px;
  text-align: center;
}

.about h2 {
  color: #00bfff;
  font-size: 28px;
  margin-bottom: 10px;
}

.about p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  max-width: 800px;
  margin: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.column {
  flex: 1 1 200px;
  margin-bottom: 20px;
}

.column h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #00bfff;
  padding-bottom: 5px;
  display: inline-block;
}

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

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

.column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.column ul li a:hover {
  color: #00bfff;
}

.column p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 8px;
}

.logo-footer {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

/* Burger menu styling */
.burger {
  width: 25px;
  height: 20px;
  margin-top: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100; /* above sidebar */
}

.burger div {
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

/* Sidebar styling */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  box-shadow: -5px 0 20px rgba(56, 189, 248, 0.3);
  padding: 80px 20px 20px;
  transition: right 0.4s ease-in-out;
  z-index: 1050;
  overflow-y: auto;
  border-left: 1px solid #334155;
}

.sidebar.active {
  right: 0;
}

.sidebar h2 {
  color: #93c5fd;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

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

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  display: block;
  padding: 12px 15px;
  background-color: #1e293b;
  border-radius: 8px;
  color: #bfdbfe;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar ul li a:hover {
  background-color: #3b82f6;
  color: white;
  transform: translateX(5px);
}

/* Tombol bulat di bawah kiri */
.floating-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #38bdf8;
  color: white;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 1200;
  transition: background 0.3s ease;
}

.floating-button:hover {
  background-color: #0ea5e9;
}

/* Sidebar Dashboard */
.dashboard-sidebar {
  position: fixed;
  left: -260px; /* Tersembunyi awal */
  top: 0;
  width: 260px;
  height: 100%;
  background-color: #1e293b;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
  padding: 60px 20px;
  transition: left 0.3s ease;
  z-index: 1150;
}

.dashboard-sidebar.active {
  left: 0;
}

.dashboard-sidebar h2 {
  color: #38bdf8;
  margin-bottom: 20px;
  font-size: 22px;
}

.dashboard-sidebar ul {
  list-style: none;
  padding: 0;
}

.dashboard-sidebar ul li {
  margin: 15px 0;
}

.dashboard-sidebar ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.dashboard-sidebar ul li a:hover {
  color: #60a5fa;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.topup-card:nth-child(1) { animation-delay: 0.2s; }
.topup-card:nth-child(2) { animation-delay: 0.4s; }
.topup-card:nth-child(3) { animation-delay: 0.6s; }
.topup-card:nth-child(4) { animation-delay: 0.8s; }
.topup-card:nth-child(5) { animation-delay: 1s; }

.faq-section {
  padding: 40px 20px;
  background: linear-gradient(to bottom, #151B54, #0d0d1f);
  color: white;
  max-width: 700px;
  margin: auto;
}

.faq-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.faq-question {
  width: 100%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;
  border: none;
  padding: 15px 20px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.faq-question:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #12122a;
  transition: max-height 0.4s ease, padding 0.4s;
  padding: 0 20px;
  border-radius: 0 0 10px 10px;
}

.faq-answer.open {
  padding: 15px 20px;
  max-height: 300px;
}

.floating-help {
  position: fixed;
  bottom: 20px;
  right: 8px;
  z-index: 9999;
  width: 90px;
  height: auto;
  cursor: pointer;
  animation: floaty 2.5s ease-in-out infinite;
}

.floating-help img {
  width: 70%;
  border-radius: 10px;
}

/* Animasi lembut naik-turun */
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px 10px 0 0;
}

.footer-deco {
  width: 100%;
  text-align: center;
  margin-bottom: -5px;
}

.footer-effect {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.footer-deco .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.suggestions-list {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  position: absolute;
  background: white;
  width: 100%;
  z-index: 100;
}

.suggestions-list li {
  padding: 10px;
  cursor: pointer;
}

.suggestions-list li:hover {
  background-color: #f0f0f0;
}

/* Styling dropdown */
.dashboard-sidebar .dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
}

.dashboard-sidebar .dropdown-menu li {
  margin: 10px 0;
}

.dashboard-sidebar .dropdown-menu li a {
  color: #93c5fd;
  font-size: 15px;
  font-weight: 500;
}

.dashboard-sidebar .dropdown-toggle.open .dropdown-menu {
  display: block;
}

.dashboard-sidebar .dropdown-toggle > a {
  cursor: pointer;
}