/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* 🔝 Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}
.logo {
  height: 40px;
}
.search-input {
  width: 400px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
}
.icon {
  width: 28px;
  margin-left: 15px;
  cursor: pointer;
}

/* 🎞️ Banner Slider */
.banner-slider {
  margin: 20px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.banner-slider .slide {
  min-width: 350px;
  height: 150px;
  background-color: #ddd;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔥 Flash Sale */
.flash-sale {
  background: #fff4f4;
  padding: 10px 0;
  margin-bottom: 20px;
  border: 1px solid #f0bebe;
  border-radius: 8px;
}
.flash-sale h2 {
  padding-left: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}
.sale-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 10px;
}
.sale-item {
  min-width: 150px;
  height: 100px;
  background-color: #ffe2e2;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🧭 Navigasi (Capsule Menu Sticky) */
.menu-topup {
  position: sticky;
  top: 70px;
  background-color: white;
  padding: 10px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  z-index: 999;
}
.menu-topup button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-topup button:hover {
  background-color: #eee;
}

/* 🕹️ Game Sections */
.section {
  margin: 20px 0;
}
.section h2 {
  margin-bottom: 10px;
  font-size: 20px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.game-card {
  height: 150px;
  background-color: #eee;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 📥 Footer */
footer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

/* Navbar untuk Desktop (posisi kiri atas, sticky) */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    position: fixed;
    top: 80px; /* Di bawah header */
    left: 10px;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 999;
    display: flex;
    gap: 10px;
    width: auto;
  }

  .mobile-bottom-nav a {
    display: block;
    padding: 8px 12px;
    background: #f3f3f3;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    text-align: left;
    white-space: nowrap;
  }

  .mobile-bottom-nav a:hover {
    background-color: #ddd;
  }
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  text-decoration: none;
  color: #333;
  padding: 8px;
}

.mobile-bottom-nav i {
  font-size: 18px;
  margin-bottom: 4px;
}
.section-title {
  position: relative;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 16px;
  color: #333;
}

.section-title i {
  margin-right: 8px;
  color: #ff6600;
  font-style: normal; /* penting untuk non-icon fallback */
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ff6600;
  margin: 10px auto 0;
  border-radius: 2px;
  animation: growLine 0.6s ease-in-out;
}

@keyframes growLine {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Tombol kapsul Daftar di desktop - update jadi hitam & hijau stabilo */
.capsule-button {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 20px;
  background-color: #000000; /* hitam */
  color: #39FF14; /* hijau stabilo */
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.capsule-button:hover,
.capsule-button:focus {
  background-color: #111111; /* sedikit lebih terang saat hover/fokus */
  color: #32CD32; /* hijau lebih lembut saat hover */
  outline: none;
}

/* Utility */
.hidden {
  display: none !important;
}
.header-right {
  display: flex;
  align-items: center;  /* Vertikal sejajar */
  gap: 15px;            /* Jarak antar ikon dan tombol */
}

