/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080808;
  color: #FFD700;
  font-family: 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 3px; }

/* =============================================
   KEYFRAME ANIMATIONS
============================================= */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.5), 0 0 24px rgba(255,215,0,0.2); }
  50%       { box-shadow: 0 0 24px rgba(255,215,0,0.9), 0 0 48px rgba(255,215,0,0.4); }
}
@keyframes badge-live {
  0%, 100% { box-shadow: 0 0 6px #FF0040, 0 0 12px rgba(255,0,64,0.4); }
  50%       { box-shadow: 0 0 14px #FF0040, 0 0 28px rgba(255,0,64,0.7); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.25) rotate(15deg); }
}
@keyframes fade-slide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes count-pop {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(180deg, #000 0%, #0b0800 100%);
  border-bottom: 1px solid rgba(255,215,0,0.3);
  box-shadow: 0 2px 24px rgba(255,215,0,0.12);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
#navbar .logo img {
  height: 44px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.55));
  transition: filter 0.2s;
}
#navbar .logo img:hover { filter: drop-shadow(0 0 18px rgba(255,215,0,0.9)); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  color: #CCA800; font-weight: 600; font-size: 12px;
  letter-spacing: 0.07em; padding: 10px 14px; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 14px;
  width: 0; height: 2px;
  background: #FFD700; box-shadow: 0 0 6px #FFD700; transition: width 0.3s;
}
.nav-link:hover { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.6); }
.nav-link:hover::after { width: calc(100% - 28px); }

.nav-ctas { display: flex; gap: 10px; align-items: center; }
.btn-login {
  padding: 8px 22px;
  background: transparent; border: 1px solid #FFD700;
  color: #FFD700; font-weight: 700; font-size: 13px;
  border-radius: 4px; letter-spacing: 0.05em;
  box-shadow: 0 0 8px rgba(255,215,0,0.25); transition: all 0.2s; cursor: pointer;
}
.btn-login:hover { background: rgba(255,215,0,0.12); box-shadow: 0 0 18px rgba(255,215,0,0.6); }
.btn-daftar {
  padding: 8px 22px;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #000; font-weight: 800; font-size: 13px;
  border: none; border-radius: 4px; letter-spacing: 0.05em;
  animation: btn-pulse 2.5s ease-in-out infinite; cursor: pointer;
}

#hamburger {
  display: none; background: transparent;
  border: 1px solid rgba(255,215,0,0.4); border-radius: 4px;
  padding: 7px 11px; color: #FFD700; font-size: 20px; cursor: pointer;
}
#mobile-menu {
  display: none;
  background: #050500; border-top: 1px solid rgba(255,215,0,0.2);
  padding: 16px 20px;
}
#mobile-menu a {
  display: block; color: #FFD700; font-weight: 600; font-size: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,215,0,0.08); letter-spacing: 0.07em;
}
.mobile-ctas { display: flex; gap: 10px; margin-top: 16px; }
.mobile-ctas .btn-login,
.mobile-ctas .btn-daftar { flex: 1; text-align: center; padding: 11px; font-size: 14px; }

@media (max-width: 767px) {
  .nav-links, .nav-ctas { display: none !important; }
  #hamburger { display: block; }
}

/* =============================================
   BANNER SLIDER
============================================= */
#slider { position: relative; background: #000; overflow: hidden; width: 100%; }
#slider::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.05) 0%, transparent 70%);
}
.slide { display: none; position: relative; width: 100%; }
.slide.active { display: block; animation: fade-slide 0.35s ease; }

/* Responsive Image Logic */
.slide img { 
  width: 100%; 
  height: auto;
  min-height: 250px; /* Minimum height for mobile visibility */
  max-height: 550px; /* Maximum height for desktop */
  object-fit: cover; /* Ensures image fills area without distortion */
  object-position: center;
  display: block;
}

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.5) 100%);
}
.slide-content {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%); padding: 0 44px; z-index: 2;
  width: 100%;
}
.slider-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.dot {
  height: 8px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255,215,0,0.3); transition: all 0.3s; padding: 0;
}
.dot.active { width: 24px !important; background: #FFD700; box-shadow: 0 0 8px #FFD700; }

/* =============================================
   JACKPOT TICKER (CENTERED)
============================================= */
#jackpot-section {
  background: linear-gradient(90deg, #090600, #120c00, #090600);
  border-top: 1px solid rgba(255,215,0,0.25);
  border-bottom: 1px solid rgba(255,215,0,0.25);
  box-shadow: 0 0 24px rgba(255,215,0,0.08), inset 0 0 40px rgba(255,215,0,0.02);
  overflow: hidden;
  text-align: center; /* Teks rata tengah */
}
.jackpot-header {
  display: flex; 
  align-items: center; 
  justify-content: center; /* KUNCI: Mengatur konten ke tengah */
  padding: 10px 20px; 
  border-bottom: 1px solid rgba(255,215,0,0.15);
  flex-wrap: wrap; /* Agar rapi di HP */
  gap: 10px;
}
.jackpot-left { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  justify-content: center;
}
.jackpot-trophy { font-size: 24px; animation: sparkle 1.8s ease-in-out infinite; }
.jackpot-label {
  font-size: 11px; color: #CCA800; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
#jackpot-amount {
  font-size: 24px; font-weight: 900; color: #FFD700;
  text-shadow: 0 0 10px #FFD700, 0 0 22px rgba(255,215,0,0.4);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.badge-live {
  background: #FF0040; color: #fff; font-weight: 800;
  font-size: 10px; padding: 3px 9px; border-radius: 99px;
  letter-spacing: 0.1em; animation: badge-live 1.4s ease-in-out infinite;
}
.jackpot-right { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.ticker-label { color: #777; font-size: 11px; }
.ticker-wrapper { padding: 10px 0; overflow: hidden; }
#ticker-track {
  display: inline-flex; gap: 0; white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
#ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; border-right: 1px solid rgba(255,215,0,0.12);
}
.ticker-amount {
  font-weight: 800; font-size: 13px; color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
}
.ticker-badge {
  background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.3);
  color: #00FF88; font-size: 10px; padding: 2px 6px; border-radius: 3px;
  font-weight: 700; text-shadow: 0 0 6px #00FF88;
}

/* =============================================
   CONTENT AREA
============================================= */
.content-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 13px; font-weight: 700; color: #CCA800;
  letter-spacing: 0.2em; text-align: center; margin-bottom: 24px;
}
.section-divider {
  height: 1px; margin: 8px 0;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
}

/* CATEGORIES */
#categories { padding: 36px 0; }
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 10px;
  background: linear-gradient(135deg, #0a0a0a, #121200);
  border: 1px solid rgba(255,215,0,0.12); border-radius: 8px;
  cursor: pointer; transition: all 0.3s; text-align: center;
}
.cat-card:hover { transform: translateY(-4px) scale(1.03); }
.cat-icon { font-size: 32px; }
.cat-label { font-weight: 700; font-size: 11px; letter-spacing: 0.07em; }
.cat-sub   { color: #666; font-size: 10px; margin-top: 2px; }

/* HOT GAMES */
#hot-games { padding-bottom: 32px; }
.hot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hot-title {
  font-size: 16px; font-weight: 800; color: #FFD700;
  text-shadow: 0 0 12px rgba(255,215,0,0.4); letter-spacing: 0.06em;
}
.see-all { color: #CCA800; font-size: 12px; letter-spacing: 0.05em; transition: color 0.2s; }
.see-all:hover { color: #FFD700; }
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.game-card {
  background: linear-gradient(135deg, #0d0d0d, #150b00);
  border: 1px solid rgba(255,215,0,0.12); border-radius: 8px;
  overflow: hidden; transition: all 0.3s; cursor: pointer; display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255,215,0,0.4), 0 0 40px rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.4);
}
.game-thumb {
  height: 100px; position: relative;
  background: linear-gradient(135deg, #1a1000, #0d0800);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,215,0,0.08); font-size: 38px;
}
.game-badge {
  position: absolute; top: 8px; left: 8px; color: #fff;
  font-weight: 800; font-size: 9px; padding: 2px 6px;
  border-radius: 3px; letter-spacing: 0.1em;
}
.game-rtp {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,255,136,0.12); border: 1px solid rgba(0,255,136,0.3);
  color: #00FF88; font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700;
}
.game-info { padding: 10px 12px; }
.game-name {
  color: #FFD700; font-weight: 700; font-size: 12px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-provider { color: #666; font-size: 10px; }

/* =============================================
   PROMOS SECTION
============================================= */
#promos { background: linear-gradient(180deg, #050500, #080800); padding: 36px 0; }
.promo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.promo-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a, #100c00);
  border: 1px solid rgba(255,215,0,0.12); border-radius: 10px;
  padding: 22px 20px; transition: all 0.3s;
}
.promo-card:hover { transform: translateY(-4px); border-color: rgba(255,215,0,0.4); }
.promo-glow-corner {
  position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%; pointer-events: none;
}
.promo-icon { font-size: 28px; margin-bottom: 12px; }
.promo-title { font-weight: 800; font-size: 14px; margin-bottom: 8px; letter-spacing: 0.04em; }
.promo-desc { color: #888; font-size: 12px; line-height: 1.65; margin-bottom: 16px; }
.promo-btn {
  display: inline-block; padding: 7px 20px; border: 1px solid; border-radius: 4px;
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em; transition: all 0.2s;
}

/* STATS */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.stat-card {
  text-align: center; padding: 24px 16px;
  background: #0a0a0a; border: 1px solid rgba(255,215,0,0.1); border-radius: 8px;
}
.stat-icon { font-size: 28px; margin-bottom: 10px; }
.stat-val  { font-size: 24px; font-weight: 900; color: #FFD700; margin-bottom: 4px; text-shadow: 0 0 10px rgba(255,215,0,0.4); }
.stat-lbl  { font-size: 10px; color: #666; letter-spacing: 0.15em; font-weight: 600; }

/* TESTIMONIALS */
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.testi-card {
  background: #0a0a0a; border: 1px solid rgba(255,215,0,0.1);
  border-radius: 10px; padding: 20px;
}
.testi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.testi-name  { color: #FFD700; font-weight: 700; font-size: 13px; }
.testi-amount { color: #00FF88; font-weight: 800; font-size: 15px; text-shadow: 0 0 8px rgba(0,255,136,0.5); }
.testi-game  { color: #666; font-size: 10px; margin-top: 2px; }
.testi-text  { color: #888; font-size: 12px; line-height: 1.65; font-style: italic; }

/* =============================================
   FOOTER
============================================= */
footer { background: linear-gradient(180deg, #050500, #000); border-top: 1px solid rgba(255,215,0,0.18); }
.footer-cta-bar {
  background: linear-gradient(90deg, #0d0800, #1a1000, #0d0800);
  border-bottom: 1px solid rgba(255,215,0,0.18); padding: 30px 20px; text-align: center;
}
.footer-cta-title {
  font-size: clamp(18px, 4vw, 28px); font-weight: 900; letter-spacing: 0.04em; margin-bottom: 12px;
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFF8DC, #FFD700, #B8860B);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.footer-cta-sub { color: #777; font-size: 13px; margin-bottom: 22px; }
.footer-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-body { max-width: 1280px; margin: 0 auto; padding: 36px 20px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-logo img { height: 40px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 0 6px rgba(255,215,0,0.35)); }
.footer-desc { color: #555; font-size: 12px; line-height: 1.7; max-width: 240px; }
.footer-col-title { color: #FFD700; font-weight: 700; font-size: 12px; letter-spacing: 0.15em; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: #666; font-size: 12px; transition: color 0.2s; }
.footer-link:hover { color: #FFD700; }
.payment-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-pill {
  padding: 4px 10px; background: #0d0d0d;
  border: 1px solid rgba(255,215,0,0.18); border-radius: 3px;
  color: #777; font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
}
.contact-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.contact-link { display: flex; align-items: center; gap: 6px; color: #666; font-size: 12px; transition: color 0.2s; }
.contact-link:hover { color: #FFD700; }
.footer-bottom {
  border-top: 1px solid rgba(255,215,0,0.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-copy { color: #444; font-size: 11px; }

@media (max-width: 600px) {
  .slide-content { padding: 0 20px; }
}