/* --- VARIABLES & RESET --- */
:root {
  --bg-body: #0a0e17;
  --bg-surface: #121826;
  --gold-primary: #d4af37;
  --gold-gradient: linear-gradient(
    135deg,
    #bf953f,
    #fcf6ba,
    #b38728,
    #fbf5b7,
    #aa771c
  );
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0a0e17;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
header {
  background-color: rgba(18, 24, 38, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: var(--gold-primary);
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.btn-login:hover {
  background: var(--gold-gradient);
  color: #000;
  border-color: transparent;
}

.btn-pola {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  border: none;
  z-index: 5;
}

/* --- HERO SLIDER --- */
.hero-section {
  margin-top: 20px;
}
.hero-slider {
  width: 100%;
  height: 595px;
  border-radius: 16px;
  overflow: hidden;
}
.hero-slide {
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  background-image:
    linear-gradient(rgba(10, 14, 23, 0.5), rgba(10, 14, 23, 0.8)),
    url("https://placehold.co/1200x400/121a2f/d4af37?text=PROMO+BANNER+PREMIUM");
  background-size: cover;
  background-position: center;
}

/* --- HOT GAMES --- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 20px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.hot-slider {
  padding-top: 15px;
  padding-right: 15px;
  padding-bottom: 20px;
}
.hot-slider .swiper-slide {
  width: 280px;
}

.hot-game-card {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 12px;
  gap: 15px;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.hot-game-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.hot-game-img-wrapper {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.hot-game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-game-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hot-game-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  max-width: 130px;

  /* SAMAIN BIAR SLIDERNYA JUGA ADA TITIK-TITIKNYA COK */
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-badge {
  position: absolute;
  top: -15px;
  right: 5px;
  z-index: 10;

  /* HAPUS BACKGROUND & BORDER KOTAKNYA COK */
  background: none !important;
  border: none !important;
  box-shadow: none !important;

  /* BIKIN ICON APINYA GEDE DAN MENYALA EMAS-ORANYE */
  font-size: 20px;
  color: #ff9f43; /* Warna oranye api premium */
  filter: drop-shadow(0 0 8px rgba(255, 159, 67, 0.8)); /* Efek neon menyala */
}

/* --- GAME CARD COMPONENT --- */
.game-card {
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.game-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.game-card:hover .btn-pola {
  opacity: 1;
}
.game-img-wrapper {
  position: relative;
  height: 140px;
}
.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-card:hover .game-img {
  filter: brightness(0.4);
}

.game-info {
  padding: 15px;
  text-align: center;
}
.game-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);

  /* TRICK TITIK-TITIK (...) SEHAT DI CSS COK */
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- RTP BAR STYLE --- */
.rtp-bar {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  height: 18px;
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.rtp-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtp-text {
  font-size: 10px;
  font-weight: 900;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* --- PROVIDER MENU (DESKTOP & MOBILE DROPDOWN) --- */
.mobile-provider-menu {
  display: none;
  margin-bottom: 20px;
}

.provider-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.provider-grid::-webkit-scrollbar {
  display: none;
}

.provider-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.provider-item:hover,
.provider-item.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* --- MAIN CONTENT & TABLES --- */
.games-content {
  margin-top: 40px;
  margin-bottom: 20px;
}
.games-content .btn-login {
  margin: 0 auto;
}
.games-content .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.games-content .section-title {
  margin: 0;
}
.games-content .search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  width: 100%;
  max-width: 300px;
  outline: none;
  box-sizing: border-box;
}
.games-content .search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.pola-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  color: #fff;
  font-size: 12px;
}
.pola-table th,
.pola-table td {
  padding: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
}
.pola-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
}
.icon-yes {
  color: #2ecc71;
  font-weight: bold;
}
.icon-no {
  color: #e74c3c;
  font-weight: bold;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.btn-modal {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  border: none;
  transition: 0.3s;
}
.btn-play {
  background: var(--gold-gradient);
  color: #000;
}
.btn-cs {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

/* --- BLOG & FOOTER --- */
.blog-section {
  margin-top: 60px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--bg-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}
.blog-card:hover {
  border-color: var(--gold-primary);
}
.blog-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.blog-info {
  padding: 15px;
}
.blog-info h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #fff;
}
.blog-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
}

/* --- HAMBURGER MENU --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--gold-primary);
  border-radius: 3px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.8);
  z-index: 999;
}
.mobile-menu.active {
  display: block;
}
.mobile-menu ul li {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}
.mobile-menu ul li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.mobile-menu ul li a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  display: block;
}
.mobile-menu ul li a:hover {
  color: var(--gold-primary);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 998;
}
.menu-overlay.active {
  display: block;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}
body.no-scroll header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
}

/* --- RESPONSIVE MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .btn-login {
    padding: 8px 12px;
    font-size: 11px;
  }
  .hero-slider {
    height: 220px;
  }

  /* Sembunyikan menu kapsul, ganti dropdown di mobile */
  .desktop-provider-menu {
    display: none !important;
  }
  .mobile-provider-menu {
    display: block !important;
  }

  .provider-dropdown {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .provider-dropdown option {
    background-color: var(--bg-surface);
    color: #fff;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  .search-input {
    width: 100%;
    max-width: 100%;
  }

  .main-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .btn-pola {
    font-size: 10px;
    white-space: nowrap;
    padding: 5px 10px;
  }
  .game-img-wrapper {
    height: 90px;
  }
  .game-info {
    padding: 8px;
  }
  .game-title {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .games-content .section-title {
    font-size: 30px;
    text-align: center;
    line-height: 1;
    letter-spacing: 1px;
  }
  .games-content .section-title::before {
    display: none;
  }

  .rtp-bar {
    height: 14px;
  }
  .rtp-text {
    font-size: 8px;
    text-align: left;
    padding: 5px;
    white-space: nowrap;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .blog-grid .blog-card:nth-child(3) {
    display: none;
  }
  .blog-card img {
    height: 90px;
  }
  .blog-info {
    padding: 10px;
  }
  .blog-info h3 {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .blog-info p {
    font-size: 9px;
  }
}

/* --- MODAL SYSTEM --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--gold-primary);
  position: relative;
}
.close-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.close-btn:hover {
  color: var(--gold-primary);
}
