:root {
  --bg-dark: #0a0a0c;
  --bg-card: #121217;
  --bg-input: #18181f;
  --accent-gold: #ffb703;
  --accent-gold-gradient: linear-gradient(180deg, #ffe066 0%, #d4af37 50%, #aa7c11 100%);
  --accent-purple: #8a2be2;
  --text-main: #ffffff;
  --text-muted: #a0a0ab;
  --border-color: #22222e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
}

/* HEADER */
header {
  background-color: #000000;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  display: flex;
  justify-content: center;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Mengumpulkan elemen ke kiri */
  gap: 30px; /* Atur jarak antar elemen di sini (misal: 20px - 40px) */
}
header, .site-header, .header-container {
  padding-top: 0px !important;    /* Kurangi jarak atas (misal: 5px - 10px) */
  padding-bottom: 0px !important; /* Kurangi jarak bawah (misal: 5px - 10px) */
  min-height: 0px !important;     /* Agar tinggi menyesuaikan isi */
  height: 90px !important;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px;
  width: 100%;
  max-width: 1200px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin: 0 !important
}

/* Mengatur tinggi logo menjadi 55px agar besar dan jelas */
.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}
.site-logo img {
  height: 18px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}
.nav-menu {
  margin-left: 0 !important;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: 0.3s;
}

.nav-links a i {
  font-size: 25px;
  color: var(--accent-gold);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
}

.login-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-form input {
  background: #000;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  width: 130px;
}

.btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-login {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-register {
  background: var(--accent-gold-gradient);
  color: #000;
}

/* BANNER HERO */
.hero-swiper {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #2d1847;
  margin-top: 15px;
  overflow: hidden;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-content {
  max-width: 50%;
  z-index: 2;
}

.hero-title-sub {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-title-main {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin: 10px 0;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

.hero-title-main span {
  color: #a855f7;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-subtitle span {
  color: #c084fc;
}

.btn-hero {
  background: var(--accent-gold-gradient);
  color: #000;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-hero:hover {
  transform: scale(1.05);
}

/* FEATURE BAR */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 22px;
  color: var(--accent-gold);
}

.feature-text h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.feature-text p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* SECTION TITLE & SWIPER NAV */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px 0;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.swiper-nav-buttons {
  display: flex;
  gap: 8px;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  font-size: 12px;
  user-select: none;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background: var(--accent-gold);
  color: #000;
}

/* SWIPER GAME CARDS FIX */
.games-swiper {
  width: 100%;
  padding-bottom: 10px;
  overflow: hidden;
}

.swiper-slide {
  height: auto;
}

.game-card {
      position: relative;
      background-color: #0b0e14;
      border: 1px solid #1e2530;
      border-radius: 8px;
      overflow: hidden;
      text-align: center;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .game-card:hover {
      transform: translateY(-4px);
      border-color: #ffd700;
    }

    /* Badge HOT Presisi di Pojok Kiri Atas */
   img.badge-hot {
  position: absolute !important;
  top: 6px !important;
  left: 6px !important;
  
  /* Batasi ukuran gambar GIF agar kecil & pas di pojok */
  width: 35px !important;       /* Sesuaikan lebar (contoh: 30px - 35px) */
  height: auto !important;      /* Rasio tinggi menyesuaikan otomatis */
  
  z-index: 10 !important;
  display: block !important;
  pointer-events: none;         /* Agar GIF tidak mengganggu klik mouse */
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.6)); /* Bayangan tipis */
}
    /* Pembungkus Gambar Persegi Panjang (308 x 218) */
    .game-img-wrapper {
      width: 100%;
      aspect-ratio: 308 / 218 !important; /* Disesuaikan ke 308x218 px */
      overflow: hidden;
      background-color: #161b22;
    }

    .game-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Info Teks Game & Provider */
    .game-info {
      padding: 8px 4px;
    }

    .game-title {
      color: #ffffff;
      font-size: 11px;
      font-weight: bold;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }

    .game-provider {
      color: #8b949e;
      font-size: 9px;
      text-transform: uppercase;
      font-weight: 600;
    }

/* BOTTOM ROW: JACKPOT & WINNERS */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  margin-top: 20px;
}

.jackpot-box {
  background: linear-gradient(180deg, #181204 0%, #0a0a0c 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jackpot-title {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.jackpot-amount {
  color: #22c55e;
  font-size: 20px;
  font-weight: 900;
  margin-top: 8px;
  font-family: monospace;
}

.winners-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 15px;
}

.winners-title {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.winners-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.winner-card {
  background: #181822;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.winner-thumb {
  width: 50px;
  height: 50px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.winner-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.winner-user {
  font-size: 10px;
  color: var(--text-muted);
}

.winner-game {
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-amount {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: bold;
}

/* Responsif Sederhana */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-row { grid-template-columns: 1fr; }
  .winners-list { grid-template-columns: repeat(2, 1fr); }
  .hero-content { max-width: 100%; }
}
/* =========================================================
   PERBAIKAN HEADER RESPONSIVE / MOBILE
   Mencegah form login melebar keluar viewport.
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.logo-link,
.nav-links,
.login-form {
  min-width: 0;
}

@media (max-width: 900px) {
  header,
  .site-header,
  .header-container {
    height: auto !important;
    min-height: 0 !important;
  }

  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
  }

  .logo-img {
    width: 145px;
    max-width: 100%;
    height: auto;
    max-height: 62px;
  }

  .nav-links {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: clamp(10px, 3vw, 22px);
  }

  .nav-links a {
    font-size: 9px;
    gap: 2px;
  }

  .nav-links a i {
    font-size: 20px;
  }

  .login-form {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: stretch;
  }

  .login-form input {
    width: 100%;
    min-width: 0;
    height: 34px;
  }

  .login-form .btn {
    min-width: 70px;
    height: 34px;
    padding: 6px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .nav-container {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }

  .logo-img {
    width: min(210px, 70vw);
    max-height: 58px;
  }

  .nav-links {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-content: space-around;
    gap: 4px;
  }

  .nav-links li {
    flex: 1 1 0;
  }

  .nav-links a {
    width: 100%;
  }

  .login-form {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .login-form input,
  .login-form .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .login-form {
    grid-template-columns: 1fr;
  }
}

/* ===== LAS VEGAS PROGRESSIVE JACKPOT V2 ===== */
.casino-jackpot{
  position:relative; isolation:isolate; overflow:hidden;
  min-height:138px; padding:11px !important;
  border:0 !important; border-radius:28px !important;
  background:linear-gradient(145deg,#fff3a5 0%,#b56b08 13%,#4b2100 25%,#f7c74b 39%,#6a3303 54%,#ffd96a 72%,#7a3b00 88%,#ffe997 100%) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.65),0 0 22px rgba(255,184,28,.35),inset 0 2px 2px rgba(255,255,255,.9),inset 0 -5px 10px rgba(71,26,0,.8) !important;
}
.casino-jackpot::before{
  content:""; position:absolute; inset:5px; border-radius:23px;
  background:repeating-conic-gradient(from 0deg,#fff8c9 0 2.2deg,#ffb000 2.2deg 4.4deg,#7a2500 4.4deg 6.6deg);
  filter:drop-shadow(0 0 5px #ffb000); animation:jackpotChase 2.8s linear infinite; z-index:-2;
}
.casino-jackpot::after{
  content:""; position:absolute; inset:10px; border-radius:19px;
  background:radial-gradient(circle at 25% 15%,rgba(255,220,112,.22),transparent 24%),linear-gradient(135deg,#140a0c,#030305 45%,#1a0903);
  border:2px solid #7d4a12; box-shadow:inset 0 0 30px #000,inset 0 0 10px rgba(255,179,0,.45); z-index:-1;
}
.jackpot-bulbs{position:absolute;inset:7px;border-radius:21px;box-shadow:inset 0 0 0 2px rgba(255,241,171,.35);pointer-events:none}
.jackpot-crown{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:3;color:#fff3a3;font-size:18px;text-shadow:0 0 5px #fff,0 0 12px #ffb000,0 2px 2px #4b1800}
.jackpot-inner{position:relative;height:100%;min-height:116px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px 10px 8px}
.jackpot-title{margin:0 0 6px !important;line-height:.95;text-align:center;text-transform:uppercase;text-shadow:0 2px 0 #4b1d00,0 0 8px rgba(255,192,45,.75)}
.jackpot-title span{display:block;color:#fff2ad;font-size:10px;font-weight:800;letter-spacing:3.2px}
.jackpot-title strong{display:block;color:#ffc83d;font-family:Georgia,serif;font-size:23px;letter-spacing:1.5px}
.jackpot-screen{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 9px;border-radius:12px;background:linear-gradient(180deg,#020202,#111 52%,#020202);border:1px solid #c98516;box-shadow:inset 0 0 14px #000,0 0 10px rgba(255,174,0,.3)}
.jackpot-screen .currency{font-size:10px;font-weight:900;color:#ffe99b;letter-spacing:1px}
.casino-jackpot .jackpot-amount{margin:0 !important;color:#fff7c6 !important;font-family:"Courier New",monospace !important;font-size:clamp(15px,1.55vw,22px) !important;font-weight:900 !important;white-space:nowrap;letter-spacing:.4px;text-shadow:0 0 5px #fff,0 0 12px #ffb000,0 2px 0 #8a3900;font-variant-numeric:tabular-nums}
.jackpot-shine{position:absolute;inset:-50% auto -50% -35%;width:28%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);animation:jackpotShine 3.6s ease-in-out infinite}
@keyframes jackpotChase{to{transform:rotate(360deg)}}
@keyframes jackpotShine{0%,55%{left:-40%}85%,100%{left:120%}}
@media(max-width:760px){.bottom-row{grid-template-columns:1fr}.casino-jackpot{min-height:128px}.jackpot-title strong{font-size:21px}.casino-jackpot .jackpot-amount{font-size:clamp(14px,4.7vw,20px)!important}}
@media(prefers-reduced-motion:reduce){.casino-jackpot::before,.jackpot-shine{animation:none}}

/* =========================================================================
   HALAMAN REGISTER / LOGIN  (Registers/Register287.aspx)
   -------------------------------------------------------------------------
   Register287.aspx ditulis untuk tema Default287 yang style.css-nya memuat
   kelas .login-screen / .login-frame / .login-field / .login-input-shell /
   .login-ribbon-mark. Pada WL ini style.css adalah tema Default291 dan
   kelas-kelas itu tidak ada, sehingga:
     - <img class="login-ribbon-mark" width="1871"> tampil pada ukuran asli
       dan menjebol lebar dokumen;
     - <form class="login-form"> justru kena aturan BILAH LOGIN HEADER
       (display:flex + .login-form input{width:130px}) sehingga seluruh field
       register berbaris menyamping.
   Semua aturan di bawah di-scope ke .page-login (dipakai <body> halaman
   register saja) agar bilah login pada Default291.aspx tidak terpengaruh.
   ========================================================================= */
body.page-login {
  display: block;
  align-items: stretch;
  padding-bottom: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #1d1433 0%, var(--bg-dark) 60%) fixed;
}

.page-login .login-screen {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

/* Dekorasi latar: position fixed supaya tidak pernah menambah lebar dokumen. */
.page-login .login-bg-orb,
.page-login .login-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-login .login-bg-orb-a {
  background: radial-gradient(circle at 15% 12%, rgba(138, 43, 226, 0.28) 0, transparent 42%);
}

.page-login .login-bg-orb-b {
  background: radial-gradient(circle at 85% 88%, rgba(255, 183, 3, 0.18) 0, transparent 42%);
}

.page-login .login-bg-grid {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 36px);
  opacity: 0.5;
}

.page-login .login-canvas {
  width: 100%;
  max-width: 560px;
  min-width: 0;
}

.page-login .login-stage {
  width: 100%;
  min-width: 0;
}

.page-login .login-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: clamp(0.9rem, 3vw, 1.5rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.page-login .login-frame-header {
  display: flex;
  margin-bottom: 0.35rem;
}

.page-login .login-ribbon {
  width: 100%;
  text-align: center;
}

/* Logo memakai atribut width="1871" height="442" - wajib dibatasi di sini. */
.page-login .login-ribbon-mark {
  width: 230px;
  max-width: 100%;
  height: auto;
}

/* Satu kolom bertumpuk, sama seperti tema Default287 (Images_VARSLOT /
   Images_UTAMASLOT88: .login-form{display:flex;flex-direction:column}).
   display:flex juga membatalkan .login-form{display:grid;...} pada
   @media(max-width:900px) milik bilah login header tema 291. */
.page-login .login-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
}

/* Netralkan .login-form input{width:130px;background:#000;...} milik bilah header. */
.page-login .login-form input,
.page-login .login-form select {
  width: 100%;
  min-width: 0;
  height: auto; /* batalkan .login-form input{height:34px} pada @media 900px */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.page-login .login-form input[type="checkbox"] {
  width: auto;
}

.page-login .login-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

/* Tombol "Check Availability" tidak ikut melebar penuh. */
.page-login .cu-check-btn {
  align-self: flex-start;
}

.page-login .login-field > label {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 700;
}

.page-login .login-input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 10px;
}

.page-login .login-input-shell:focus-within {
  border-color: var(--accent-gold);
}

.page-login .login-input-shell > i {
  flex: 0 0 auto;
  color: var(--accent-gold);
  font-size: 14px;
}

.page-login .login-input {
  flex: 1 1 auto;
  color: var(--text-main);
  font-size: 13px;
  padding: 9px 0;
  outline: none;
}

.page-login .login-input::placeholder {
  color: var(--text-muted);
}

.page-login .login-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.page-login .login-select option {
  color: #000;
}

.page-login .login-remember {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-login .login-remember input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 2px;
}

.page-login .login-submit-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 0.2rem;
  background: var(--accent-gold-gradient);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.page-login .login-submit-rail:hover {
  filter: brightness(1.1);
}
