/* ================= CSS VARIABLES & RESET ================= */
:root {
  --bg-dark: #0a0a0a;
  --bg-surface: #141414;
  --bg-card: #1c1c1c;
  --gold: #ffcc00;
  --gold-glow: rgba(255, 204, 0, 0.2);
  --green: #00ff00;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --border-color: #2a2a2a;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --transition: 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= TOP BAR ================= */
.top-bar {
  background-color: #000;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-links {
  display: flex;
  gap: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--gold);
}
.social-links .wa:hover {
  color: #25d366;
}
.social-links .tg:hover {
  color: #0088cc;
}

.auth-buttons-top {
  display: flex;
  gap: 10px;
}
.btn {
  padding: 6px 20px;
  font-weight: 700;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  transition: var(--transition);
}
.btn-daftar {
  background-color: var(--gold);
  color: #000;
}
.btn-daftar:hover {
  box-shadow: 0 0 15px var(--gold-glow);
  transform: scale(1.05);
}
.btn-login {
  background-color: var(--green);
  color: #000;
}
.btn-login:hover {
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  transform: scale(1.05);
}

/* ================= NAVBAR ================= */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Logo Constraint */
.logo-wrapper {
  display: flex;
  align-items: center;
}
.main-logo {
  width: 100%;
  max-width: 300px;
  height: 90px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  text-transform: uppercase;
}
.nav-link i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= HERO BANNER ================= */
.hero-section {
  padding: 20px 20px 0;
  max-width: 1240px;
  margin: 0 auto;
}
.banner-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================= LIVE JACKPOT ================= */
.jackpot-section {
  padding: 30px 20px;
}
.jackpot-container {
  max-width: 1000px;
  margin: 0 auto;
}
.jackpot-box {
  background: linear-gradient(to bottom, #111, #000);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px var(--gold-glow);
  overflow: hidden;
}
.jackpot-decor {
  position: absolute;
  width: 40px;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><circle cx="5" cy="5" r="2" fill="%23ffcc00"/></svg>')
    repeat-y;
  top: 0;
  opacity: 0.3;
}
.jackpot-decor.left {
  left: 10px;
}
.jackpot-decor.right {
  right: 10px;
}
.jackpot-content {
  text-align: center;
  position: relative;
  z-index: 2;
}
.jackpot-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.jackpot-counter {
  font-family: var(--font-mono);
  font-size: 4rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 20px var(--gold);
  letter-spacing: 3px;
  line-height: 1;
}

/* ================= GAMES GRID ================= */
.games-section {
  padding: 40px 0;
}
.game-category {
  margin-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 10px;
}
.category-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 25px;
}
.category-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.text-green {
  color: var(--green);
  margin-right: 8px;
}

.grid-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.game-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: block;
}
.game-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.card-img {
  width: 100%;
  height: 160px;
  background-color: #000;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.game-card:hover .card-img img {
  opacity: 0.8;
}
.card-title {
  padding: 12px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.game-card:hover .card-title {
  color: #fff;
}

/* ================= SEO ARTICLE ================= */
.article-section {
  padding: 40px 0;
}
.seo-content-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 10px;
}
.seo-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.seo-text p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 1rem;
  text-align: justify;
}
.seo-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin: 30px 0 15px;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}
.seo-text ul {
  margin: 20px 0 20px 20px;
  color: #ccc;
}
.seo-text li {
  margin-bottom: 10px;
}
.seo-text strong {
  color: var(--gold);
}

.single-article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================= FOOTER ================= */
.main-footer {
  background-color: #050505;
  border-top: 2px solid var(--border-color);
  padding: 60px 0 30px;
}
.footer-block {
  margin-bottom: 40px;
}
.footer-block-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Providers */
.provider-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}
.prov-img img {
  width: 100%;
  height: 40px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}
.prov-img:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Payments */
.payment-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  align-items: center;
}
.payment-row:last-child {
  border-bottom: none;
}
.pay-category {
  width: 120px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}
.pay-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}
.pay-tag {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #aaa;
  border-left: 3px solid var(--green);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= FLOATING & STICKY ================= */
.floating-livechat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--gold);
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 5px 20px var(--gold-glow);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.floating-livechat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

.mobile-sticky-cta {
  display: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .jackpot-counter {
    font-size: 3rem;
  }
  .payment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .pay-category {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  } /* Space for sticky bottom */
  .top-bar {
    display: none;
  }
  .main-logo {
    max-width: 200px;
    height: 60px;
  }
  .jackpot-counter {
    font-size: 2rem;
  }
  .grid-games {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .card-img {
    height: 130px;
  }
  .seo-content-box {
    padding: 25px 15px;
  }
  .seo-title {
    font-size: 1.4rem;
  }
  .floating-livechat {
    bottom: 85px;
    right: 15px;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  /* Mobile Sticky CTA */
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    padding: 10px;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
  }
  .m-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.95rem;
  }
  .m-login {
    background-color: var(--green);
    color: #000;
  }
  .m-daftar {
    background-color: var(--gold);
    color: #000;
  }

  /* Mobile Menu Drawer (Simple JS toggle via CSS) */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    padding: 20px;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.active .nav-link {
    flex-direction: row;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
  }
  .nav-menu.active .nav-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
  }
}
.faq-block {
  background-color: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-top: 35px;
}

.faq-box {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.faq-box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-q {
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 8px;
}
.art-intro {
  background: linear-gradient(
    135deg,
    rgba(12, 165, 233, 0.1),
    rgba(45, 212, 191, 0.05)
  );
  border: 1px solid rgba(12, 165, 233, 0.2);
  padding: 26px;
  border-radius: 12px;
  font-size: 15.5px;
  color: #f1f5f9;
  margin-bottom: 35px;
}
.faq-a {
  color: var(--text-muted);
  font-size: 15px;
}
