/* SEMPURNA JP — layout inspired by common ID slot-portal skins (dark + green/gold)
   Brand: SEMPURNA JP only. Not affiliated with any third-party casino brand. */

:root {
  --bg: #0a0c10;
  --bg2: #12151c;
  --card: #161a22;
  --line: #2a3140;
  --text: #eef2f7;
  --muted: #9aa3b5;
  --green: #1faa59;
  --green2: #148a45;
  --yellow: #f5c518;
  --yellow2: #d4a017;
  --blue: #1e88e5;
  --danger: #e53935;
  --radius: 8px;
  --header-h: 56px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
img, video, iframe, canvas {
  max-width: 100%;
}
a { color: var(--yellow); text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; height: auto; }

.hide { display: none !important; }
.screen { display: none; }
.screen.active { display: block; }

/* Demo strip */
#demo-banner {
  background: linear-gradient(90deg, #5c1010, #8a6a00, #5c1010);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ===== STICKY HEADER (logo + marquee + menu) ===== */
.site-sticky-head {
  position: sticky;
  top: 0;
  z-index: 260;
  background: linear-gradient(180deg, #151922 0%, #0d1016 100%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid #222833;
}

/* ===== TOP NAVBAR ===== */
.top_navbar {
  background: transparent;
  border-bottom: 1px solid #222833;
}
.main-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(200px, 2fr) minmax(160px, 1fr);
  align-items: center;
  gap: 12px 16px;
}
.main-header .logo-wrap {
  justify-self: start;
}
.main-header .header-mid {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  min-width: 0;
}
.main-header .header-actions {
  justify-self: end;
  justify-content: flex-end;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px #000a);
  border-radius: 6px;
  background: transparent;
}
.logo-img-sm {
  display: none;
  height: 44px;
  width: 44px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 10px #f5c51855);
  border-radius: 10px;
  border: 1px solid #f5c51844;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f5c518, #8a6a00);
  display: none;
  place-items: center;
  font-weight: 900; color: #1a1200; font-size: 14px;
  box-shadow: 0 0 16px #f5c51855;
}
.logo-text {
  display: none;
  flex-direction: column; line-height: 1.1;
}
.logo-text strong {
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 12px #f5c51866;
}
.logo-text small { color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.footer-logo {
  height: 56px;
  max-width: 220px;
  margin-bottom: 6px;
  border-radius: 8px;
}
.slot-title-ico {
  width: 28px !important;
  height: 28px !important;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 520px) {
  .logo-img { display: none; }
  .logo-img-sm { display: block; }
}

.header-mid {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ann-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0c10;
  border: 1px solid #2a3140;
  border-radius: 999px;
  padding: 4px 10px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.ann-bar .ico { color: var(--yellow); flex-shrink: 0; }
.marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}
.marquee span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 0;
  /* Mulai dari kiri (teks langsung kelihatan), lalu geser */
  animation: marquee 30s linear infinite;
  font-size: 12px;
  color: #c5cddd;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  15% { transform: translateX(0); } /* jeda baca sebentar */
  100% { transform: translateX(-100%); }
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.meta-icons {
  display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px;
}
.meta-icons .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e53935;
  display: inline-block; margin-right: 4px;
}

.btn {
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: filter .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-green {
  background: linear-gradient(180deg, #2ecc71, #1e8449);
  color: #fff;
  min-width: 88px;
  box-shadow: 0 2px 0 #0e5c2f;
}
.btn-yellow {
  background: linear-gradient(180deg, #ffd54f, #f0b400);
  color: #1a1200;
  min-width: 88px;
  box-shadow: 0 2px 0 #a67c00;
}
/* Header LOGIN / DAFTAR — gaya totoslot (green_over / yellow_over) */
.btn-hdr-login {
  min-width: 92px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #33d17a 0%, #1faa59 55%, #178a47 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 #0e5c2f, inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid #148a45;
}
.btn-hdr-login:hover { filter: brightness(1.08); }
.btn-hdr-daftar {
  min-width: 92px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 55%, #d4a017 100%);
  color: #1a1200;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 #a67c00, inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid #c9a00e;
}
.btn-hdr-daftar:hover { filter: brightness(1.06); }
.btn-dark {
  background: #232a36;
  color: var(--text);
  border: 1px solid #3a4456;
}
.btn-red {
  background: linear-gradient(180deg, #ef5350, #c62828);
  color: #fff;
}
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12px; min-width: 0; }

.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: #0a0c10;
  border: 1px solid #2a3140;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font-size: 12px;
}
.user-pill .avatar,
.user-pill .pp-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e2430;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #111;
  font-size: 11px;
  overflow: hidden;
  border: 2px solid #f5c51899;
  flex: 0 0 32px;
  padding: 0;
}
.user-pill .avatar img,
.user-pill .pp-avatar-wrap img,
.pp-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.pp-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3a4456;
  vertical-align: middle;
  flex: 0 0 28px;
}
.pp-avatar-lg,
.pp-avatar-wrap.pp-avatar-lg {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f5c518;
  box-shadow: 0 0 0 3px #f5c51833, 0 8px 20px #0008;
  background: #1e2430;
  display: block;
}
.pp-avatar-lg img,
.pp-avatar-wrap.pp-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ud-profile-pp {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ud-pp-sub {
  margin: 2px 0 4px !important;
  font-size: 12px !important;
  color: #9aa5b8 !important;
  font-weight: 700;
}
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-user-cell .pp-avatar-sm {
  box-shadow: 0 0 0 1px #f5c51844;
}
.user-pill .bal { color: var(--yellow); font-weight: 800; }

/* ===== CATEGORY NAV (menu di tengah) + MEGA DROPDOWN ===== */
.main-nav-wrap {
  background: #0f1218;
  border-bottom: 1px solid #1a2030;
  position: relative;
  z-index: 40;
  max-width: 100%;
  overflow: visible; /* mega menu jangan ter-clip */
  display: block;
}
/* rail: panah kiri | scroller menu | panah kanan */
.main-nav-rail {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  width: 100%;
  min-height: 72px;
}
.main-nav-scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox — pakai panah, hide bar */
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.main-nav-scroller::-webkit-scrollbar {
  height: 0;
  display: none;
}
.nav-scroll-btn {
  flex: 0 0 40px;
  width: 40px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #f5c518;
  background: linear-gradient(180deg, #1e2636, #121820);
  z-index: 3;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  position: relative;
}
.nav-scroll-btn::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: #2a3344;
}
.nav-scroll-left::after { right: 0; }
.nav-scroll-right::after { left: 0; }
.nav-scroll-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #2a2410, #1a1510);
  color: #fff;
}
.nav-scroll-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.nav-scroll-btn:disabled {
  opacity: 0.28;
  cursor: default;
  color: #6b7588;
}
.nav-scroll-btn svg {
  display: block;
  pointer-events: none;
}
/* bayangan di tepi panah biar rapi */
.nav-scroll-left {
  box-shadow: 6px 0 14px #0008;
}
.nav-scroll-right {
  box-shadow: -6px 0 14px #0008;
}
/* jika semua menu muat di layar: panah disembunyikan */
.main-nav-rail.nav-no-scroll .nav-scroll-btn {
  display: none;
}
.main-nav-rail.nav-no-scroll .main-nav-scroller {
  mask-image: none;
  -webkit-mask-image: none;
}
@media (max-width: 720px) {
  .nav-scroll-btn {
    flex: 0 0 34px;
    width: 34px;
  }
  .main-nav-rail {
    min-height: 64px;
  }
}
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  width: max-content;
  min-width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
}
.main-nav::-webkit-scrollbar { height: 0; display: none; }
.nav-item {
  flex: 0 0 auto;
  min-width: 82px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: #c5cddd;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-item .ni {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px #0008);
}
.nav-item .ni-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px #000a);
  image-rendering: -webkit-optimize-contrast;
}
.nav-item:hover, .nav-item.active {
  background: linear-gradient(180deg, #1e2633, #141920);
  border-color: #3a4456;
  color: var(--yellow);
}
.nav-item.active .ni-img {
  transform: scale(1.06);
}
.main-nav-full {
  gap: 3px;
  padding: 8px 16px 10px;
}
.main-nav-full .nav-item {
  min-width: 72px;
  padding: 6px 8px;
  position: relative;
}
.main-nav-full .nav-item span {
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1.15;
  max-width: 78px;
  text-align: center;
}
.main-nav-full .ni-img {
  width: 36px;
  height: 36px;
}
.nav-item.nav-hot {
  background: linear-gradient(180deg, #3b1515, #1a0c0c);
  border-color: #7f1d1d55;
}
.nav-fire {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  background: #ef4444;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
  animation: pulseLive 1.2s infinite;
}
.nav-item.has-mega::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #6b7588;
  opacity: 0.7;
}
.nav-item.has-mega.mega-open,
.nav-item.has-mega:hover {
  background: linear-gradient(180deg, #2a2210, #1a1510);
  border-color: #f5c51855;
  color: var(--yellow);
}
.nav-item.has-mega.mega-open::after {
  border-top-color: var(--yellow);
}

/* Mega panel — pilihan provider seperti OrientalPlay */
.nav-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  background: linear-gradient(180deg, #141a24 0%, #0c1018 100%);
  border-bottom: 2px solid #f5c51855;
  box-shadow: 0 16px 40px #000c;
  padding: 14px 16px 18px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  animation: navMegaIn 0.18s ease;
}
.nav-mega[hidden] {
  display: none !important;
}
@keyframes navMegaIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-mega-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #243044;
}
.nav-mega-head strong {
  display: block;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav-mega-sub {
  display: block;
  font-size: 11px;
  color: #8b95a8;
  margin-top: 2px;
}
.nav-mega-close {
  border: 1px solid #3a4456;
  background: #1a2030;
  color: #c8d0dc;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-mega-close:hover {
  border-color: #f5c51888;
  color: #fff;
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.nav-mega-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid #2a3344;
  background: linear-gradient(180deg, #1a2030, #12161f);
  cursor: pointer;
  transition: 0.15s ease;
  color: #e8edf5;
}
.nav-mega-item:hover {
  border-color: #f5c51899;
  background: linear-gradient(180deg, #2a2410, #1a1510);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #0008;
}
.nav-mega-item.nav-mega-all {
  border-color: #f5c51844;
  background: linear-gradient(180deg, #2a2208, #18140a);
}
.nav-mega-logo-wrap {
  width: 72px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #0a0d12;
  border-radius: 8px;
  border: 1px solid #243044;
  padding: 6px;
}
.nav-mega-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px #0008);
}
.nav-mega-name {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: #c8d0dc;
  max-width: 96px;
}
.nav-mega-item:hover .nav-mega-name {
  color: var(--yellow);
}
.nav-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: #0006;
}
.nav-mega-backdrop[hidden] {
  display: none !important;
}
.site-sticky-head {
  z-index: 100;
  position: sticky;
  top: 0;
}
@media (max-width: 720px) {
  .nav-mega-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
  }
  .nav-mega-logo-wrap {
    width: 60px;
    height: 40px;
  }
  .nav-mega-name {
    font-size: 9px;
  }
  .nav-mega {
    max-height: min(58vh, 360px);
    padding: 12px 10px 14px;
  }
}

/* Category pages */
.cat-hero {
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 16px;
  border: 1px solid #2a3140;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #0a0c10ee 10%, #0a0c1088 60%, transparent);
}
.cat-hero > div { position: relative; z-index: 1; }
.cat-hero h2 { margin: 6px 0; font-size: 1.4rem; }
.cat-hero p { margin: 0; color: #c5cddd; font-size: 13px; }
.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #f5c518, #d4a017);
  color: #1a1200;
  padding: 4px 10px;
  border-radius: 999px;
}
.cat-hot { background-image: linear-gradient(120deg,#1a0505cc,#0008), url("banner/banner1.jpg"); }
.cat-live { background-image: linear-gradient(120deg,#050a1acc,#0008), url("banner/banner3.jpg"); }
.cat-sports { background-image: linear-gradient(120deg,#051a0ccc,#0008), url("banner/banner2.jpg"); }
.cat-casino { background-image: linear-gradient(120deg,#1a0514cc,#0008), url("banner/banner4.jpg"); }
.cat-p2p { background-image: linear-gradient(120deg,#0a051acc,#0008), url("banner/banner1.jpg"); }
.cat-sabung { background-image: linear-gradient(120deg,#1a1005cc,#0008), url("banner/banner2.jpg"); }
.cat-fish { background-image: linear-gradient(120deg,#05141acc,#0008), url("banner/banner3.jpg"); }
.cat-lotre { background-image: linear-gradient(120deg,#14051acc,#0008), url("banner/banner4.jpg"); }
.cat-egames { background-image: linear-gradient(120deg,#051a18cc,#0008), url("banner/banner2.jpg"); }
.cat-promo { background-image: linear-gradient(120deg,#1a1405cc,#0008), url("banner/banner1.jpg"); }
.cat-ref { background-image: linear-gradient(120deg,#051a14cc,#0008), url("banner/banner3.jpg"); }
.cat-togel { background-image: linear-gradient(120deg,#1a050fcc,#0008), url("banner/banner4.jpg"); }

.g-thumb { position: relative; overflow: hidden; }
.g-ribbon {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 900; letter-spacing: .06em;
  background: #ef4444; color: #fff; padding: 2px 6px; border-radius: 4px; z-index: 2;
}
.g-ribbon.live { background: #16a34a; }
.g-ribbon.new { background: #2563eb; }
.live-thumb .live-dot {
  position: absolute; top: 8px; right: 8px; z-index: 2;
}

/* Kartu game pro — mirip portal asli */
.g-card-pro { position: relative; }
.g-card-pro .g-thumb {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #0a0c10;
}
.g-card-pro .g-thumb img {
  max-height: none !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.g-card-pro:hover .g-thumb img { transform: scale(1.07); }
.g-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 35%, #000b 100%);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .1em;
  opacity: 0;
  transition: opacity .2s;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 2px 8px #000;
}
.g-card-pro:hover .g-play-overlay { opacity: 1; }
.g-card-pro .g-body h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sports */
.sports-board { display: grid; gap: 10px; margin-bottom: 14px; }
.sport-match {
  background: #12161f; border: 1px solid #2a3140; border-radius: 12px; padding: 12px 14px;
}
.sm-league { font-size: 11px; color: var(--yellow); font-weight: 800; margin-bottom: 6px; }
.sm-teams {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-weight: 800; margin-bottom: 10px;
}
.sm-teams b { color: var(--muted); font-size: 12px; }
.sm-odds { display: flex; flex-wrap: wrap; gap: 8px; }
.odd-btn {
  flex: 1; min-width: 90px; padding: 10px; border-radius: 8px;
  border: 1px solid #3a4456; background: #0a0c10; color: #e2e8f0;
  font-weight: 800; cursor: pointer;
}
.odd-btn:hover, .odd-btn.on {
  border-color: #f5c518; background: #2a2208; color: #fde68a;
}
.sports-slip {
  background: #12161f; border: 1px solid #f5c51844; border-radius: 12px; padding: 14px;
}
.sports-slip h3 { margin: 0 0 10px; color: var(--yellow); }
.sports-slip label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0; }
.sports-slip input {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px;
  border: 1px solid #3a4456; background: #0a0c10; color: #fff;
}
.slip-items { min-height: 40px; margin-bottom: 8px; font-size: 13px; }
.slip-total { margin: 10px 0; font-size: 14px; }
.slip-total b { color: #4ade80; }

/* Sabung */
.arena-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.arena-card {
  background: #12161f; border: 1px solid #2a3140; border-radius: 14px; padding: 16px; text-align: center;
}
.arena-live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900;
  color: #86efac; margin-bottom: 12px;
}
.arena-vs {
  display: flex; justify-content: space-around; align-items: center;
  font-weight: 900; font-size: 1.1rem; margin-bottom: 14px;
}
.arena-vs b { color: var(--muted); }
.arena-odds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* Lotre */
.lotre-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px;
}
@media (max-width: 800px) { .lotre-panel { grid-template-columns: 1fr; } }
.lotre-form, .lotre-info {
  background: #12161f; border: 1px solid #2a3140; border-radius: 12px; padding: 14px;
}
.lotre-form label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.lotre-form input, .lotre-form select {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px;
  border: 1px solid #3a4456; background: #0a0c10; color: #fff;
}
.lotre-info ul { color: #c5cddd; line-height: 1.7; }
.togel-num {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 900; font-size: 1.15rem; color: #fde68a; letter-spacing: .2em;
}

/* Promo / Referral */
.promo-list { display: grid; gap: 12px; }
.promo-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px;
  background: #12161f; border: 1px solid #2a3140; border-radius: 12px; overflow: hidden;
}
.promo-item img { width: 100%; height: 100%; min-height: 110px; object-fit: cover; }
.promo-item > div { padding: 12px 12px 12px 0; }
.promo-item h3 { margin: 0 0 6px; font-size: 15px; }
.promo-item p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .promo-item { grid-template-columns: 1fr; }
  .promo-item > div { padding: 12px; }
}
.ref-card {
  background: #12161f; border: 1px solid #2a3140; border-radius: 12px; padding: 16px;
}
.ref-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid #1e2430; font-size: 13px;
}
.ref-row span { color: var(--muted); min-width: 120px; }
.ref-row b { flex: 1; color: #fff; word-break: break-all; }
.ref-link { font-size: 12px; color: #7dd3fc !important; }
.admin-referral-box .admin-form-row input[type="text"] {
  min-width: 140px;
  flex: 1;
  background: #0f1218;
  border: 1px solid #2a3140;
  color: #e8edf5;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}
.topup-grid .btn {
  min-height: 48px;
  font-size: 13px;
}
.topup-grid .btn.active-amt {
  outline: 2px solid #f5c518;
  box-shadow: 0 0 0 2px #f5c51844;
}
.topup-flow-card {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.topup-step-title {
  margin: 0 0 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f5f0ff;
}
.step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5c518, #d4a017);
  color: #1a1200;
  font-size: 12px;
  font-weight: 900;
}
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid #2a3140;
  background: #0a0c10;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
}
.pay-method .pm-ico { font-size: 22px; }
.pay-method .pm-logo {
  width: 100%;
  max-width: 120px;
  height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 4px 6px;
  box-shadow: 0 2px 8px #0006;
}
.pay-method strong { font-size: 13px; }
.pay-method small { font-size: 10px; color: var(--muted); }
.pay-method:hover { border-color: #f5c51888; transform: translateY(-2px); }
.pay-method.active {
  border-color: #f5c518;
  background: linear-gradient(160deg, #2a2208, #12161f);
  box-shadow: 0 0 0 1px #f5c51855;
}
.pay-method.active .pm-logo {
  box-shadow: 0 0 0 2px #f5c51888;
}
/* show logo + account brand in step 3 */
.aa-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.aa-logo-row img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
.admin-account-box {
  background: #0a0c10;
  border: 1px solid #3a4456;
  border-radius: 12px;
  padding: 12px 14px;
}
.aa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #1e2430;
  font-size: 13px;
}
.aa-row:last-child { border-bottom: none; }
.aa-row span { color: var(--muted); min-width: 140px; flex: 1; }
.aa-row b { color: #fff; }
.aa-row.highlight b { color: #fde68a; font-size: 1.05rem; letter-spacing: .04em; }
.aa-row .gold { color: #f5c518 !important; font-size: 1.15rem !important; }
.aa-row .code {
  font-family: ui-monospace, Consolas, monospace;
  color: #7dcea0 !important;
  background: #0f1a12;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #1faa5944;
}
.aa-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #c5cddd;
  line-height: 1.45;
}
.aa-qris { margin-top: 12px; display: flex; justify-content: center; }
.aa-qris.hidden { display: none; }
.qris-real-box {
  width: min(280px, 100%);
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 16px 14px 14px;
  text-align: center;
  border: 2px solid #e0e0e0;
  box-shadow: 0 8px 24px #0004;
}
.qris-real-img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 8px;
  object-fit: contain;
  background: #fafafa;
}
.qris-real-title {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 13px;
  color: #111;
}
.qris-real-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}
.qris-real-box small {
  color: #444;
  font-size: 11px;
  font-weight: 700;
}
.aa-logo-qris {
  max-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 2px !important;
}
.pm-logo-qris {
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 2px !important;
}
.pay-method {
  position: relative;
}
.pay-method.is-maintenance {
  opacity: .55;
  filter: grayscale(.4);
  cursor: not-allowed !important;
  border-color: #e5393555 !important;
}
.pay-method.is-maintenance:hover {
  transform: none !important;
}
.pm-mt-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  background: #e53935;
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  z-index: 2;
}
.aa-mt-note {
  color: #ffab91 !important;
  border: 1px solid #e5393555;
  background: #3a1010;
  border-radius: 8px;
  padding: 8px 10px;
}
.ab-row-mt {
  background: #2a1510aa;
}
.badge-pending { color: #fbbf24; font-weight: 800; }
.badge-approved { color: #66bb6a; font-weight: 800; }
.badge-rejected { color: #ef5350; font-weight: 800; }

/* ===== CONTENT WIDTH ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px;
}

/* ===== BANNERS (real PNG/JPG assets) ===== */
.hero-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a3140;
  margin-bottom: 16px;
  background: #000;
  box-shadow: 0 8px 28px #0008;
}
.hero-track {
  display: flex;
  transition: transform .45s ease;
}
.hero-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: #0a0c10;
  min-height: clamp(200px, 32vw, 420px);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 42%, rgba(0,0,0,.08) 72%, transparent 100%);
  pointer-events: none;
}
.hero-slide .copy {
  position: relative; z-index: 2;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 32px);
  max-width: min(560px, 92%);
}
.hero-slide .copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 10px #000c;
  line-height: 1.2;
}
.hero-slide .copy p {
  margin: 0 0 12px;
  color: #e8edf5;
  font-size: clamp(13px, 1.6vw, 15px);
  text-shadow: 0 1px 4px #000a;
  line-height: 1.4;
}
.hero-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px; z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: #fff5; cursor: pointer; padding: 0;
}
.hero-dots button.on { background: var(--yellow); width: 24px; border-radius: 8px; }

/* ===== IKLAN POPUP BONUS HOKI MINGGUAN (bisa di-close) ===== */
.hoki-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}
.hoki-ad-overlay.open {
  display: grid;
}
.hoki-ad-overlay[hidden] {
  display: none !important;
}
.hoki-ad-box {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #3a4456;
  background: linear-gradient(180deg, #161b26 0%, #0e1219 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  animation: hoki-ad-in 0.28s ease;
}
@keyframes hoki-ad-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hoki-ad-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 1px solid #3a4456;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.92);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.hoki-ad-close:hover {
  background: #ef5350;
  border-color: transparent;
}
.hoki-ad-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 48px 20px 20px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(245, 197, 24, 0.12) 0%, transparent 60%),
    #0a0c10;
  border-bottom: 1px solid #2a3140;
}
.hoki-ad-logo {
  display: block;
  max-width: min(280px, 78%);
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}
.hoki-ad-body {
  padding: 14px 16px 18px;
  clear: both;
}
/* Hero slide hoki: logo.jpg saja (contain, bukan cover crop) */
.hero-slide-hoki {
  background: radial-gradient(ellipse at 30% 50%, #1a1508 0%, #0a0c10 70%);
  min-height: clamp(200px, 32vw, 380px);
  justify-content: center;
}
.hero-slide-hoki .hero-img-logo {
  object-fit: contain !important;
  object-position: center !important;
  padding: 24px clamp(16px, 6vw, 80px);
  max-height: 100%;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}
.hero-slide-hoki::after {
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%);
}
.promo-hoki-thumb {
  object-fit: contain !important;
  background: #0a0c10 !important;
  min-height: 140px !important;
  padding: 16px !important;
}

/* Teaser bar di home (buka ulang iklan) */
.hoki-teaser {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #3a2a10;
  background: linear-gradient(90deg, #1a1508, #12161f 55%, #0e1219);
  cursor: pointer;
  text-align: left;
  color: #eef2f7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s, transform 0.1s;
}
.hoki-teaser:hover {
  filter: brightness(1.08);
}
.hoki-teaser:active {
  transform: scale(0.99);
}
.hoki-teaser-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #0a0c10;
  border: 1px solid #3a4456;
  flex-shrink: 0;
  padding: 4px;
}
.hoki-teaser-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hoki-teaser-text strong {
  font-size: 13px;
  color: #f5c518;
  letter-spacing: 0.03em;
}
.hoki-teaser-text small {
  font-size: 11px;
  color: #9aa5b8;
}
.hoki-teaser-cta {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe066, #f5c518);
  color: #1a1200;
  font-size: 12px;
  font-weight: 900;
}

/* ===== BONUS HOKI shared table/tnc (popup) ===== */
.hoki-promo {
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid #2a3140;
  background: #12161f;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.hoki-promo.evo-style {
  background: linear-gradient(180deg, #161b26 0%, #0e1219 100%);
}
.hoki-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0c10;
}
.hoki-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vw, 420px);
  object-fit: cover;
  object-position: center top;
}
.hoki-brand-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe066, #f5c518);
  color: #1a1200;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.hoki-body {
  padding: 18px 18px 20px;
  max-width: 920px;
  margin: 0 auto;
}
.hoki-head {
  text-align: center;
  margin-bottom: 16px;
}
.hoki-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.8vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.hoki-tagline {
  margin: 0 0 8px;
  font-size: clamp(12px, 2.2vw, 14px);
  font-weight: 700;
  color: #f5c518;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hoki-brand {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #2ecc71;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hoki-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #2f3a4d;
  margin-bottom: 16px;
  background: #0a0c10;
  -webkit-overflow-scrolling: touch;
}
.hoki-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: 13px;
}
.hoki-table thead th {
  background: #1a2030;
  color: #f5c518;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #3a4456;
  font-size: 12px;
}
.hoki-table tbody td {
  padding: 11px 12px;
  text-align: center;
  color: #e8edf5;
  border-bottom: 1px solid #1a2030;
}
.hoki-table tbody tr:nth-child(odd) {
  background: #0e1219;
}
.hoki-table tbody tr:nth-child(even) {
  background: #12161f;
}
.hoki-table tbody tr:hover {
  background: rgba(46, 204, 113, 0.08);
}
.hoki-table tbody td:first-child {
  font-weight: 900;
  color: #f5c518;
  width: 72px;
}
.hoki-table tbody td:nth-child(2) {
  color: #c5cddb;
  font-variant-numeric: tabular-nums;
}
.hoki-table tbody td:last-child {
  font-weight: 800;
  color: #2ecc71;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hoki-table tbody tr.hoki-top {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.14), rgba(46, 204, 113, 0.1));
}
.hoki-table tbody tr.hoki-top td:last-child {
  color: #ffe066;
  font-size: 14px;
}
.hoki-tnc {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0a0c10;
  border: 1px solid #2a3140;
}
.hoki-tnc h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
}
.hoki-tnc ol {
  margin: 0;
  padding-left: 20px;
  color: #aab4c6;
  font-size: 12.5px;
  line-height: 1.6;
}
.hoki-tnc li {
  margin-bottom: 8px;
}
.hoki-tnc strong {
  color: #f5c518;
}
.hoki-cta {
  max-width: 520px;
  margin: 0 auto;
}
.hoki-cta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  max-width: 520px;
}
.hoki-main-btn {
  min-height: 48px !important;
  font-weight: 800 !important;
}
.hoki-claim-btn {
  min-height: 48px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  animation: hoki-pulse 1.8s ease-in-out infinite;
}
@keyframes hoki-pulse {
  0%, 100% { box-shadow: 0 2px 0 #a67c00, 0 0 0 0 rgba(245, 197, 24, 0.35); }
  50% { box-shadow: 0 2px 0 #a67c00, 0 0 0 8px rgba(245, 197, 24, 0); }
}
.promo-card-brand {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2ecc71 !important;
  letter-spacing: 0.12em;
}
.promo-card-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.promo-card-logo {
  width: 40px !important;
  height: 40px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: 6px;
  background: #0a0c10;
  border: 1px solid #2a3140;
  padding: 3px;
}
.promo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.evo-promo-card > img {
  object-fit: cover;
  min-height: 120px;
}
@media (max-width: 560px) {
  .hoki-body,
  .hoki-ad-body { padding: 12px 10px 14px; }
  .hoki-table { font-size: 12px; min-width: 360px; }
  .hoki-table thead th,
  .hoki-table tbody td { padding: 8px 8px; }
  .hoki-cta-row {
    grid-template-columns: 1fr;
  }
  .hoki-ad-logo {
    max-height: 88px;
  }
  .hoki-teaser-logo {
    width: 44px;
    height: 44px;
  }
}

/* ===== JACKPOT PROGRESSIVE (di bawah banner) ===== */
.jp-bar {
  margin: 0 0 14px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #5a0000;
  background:
    radial-gradient(ellipse at 50% 0%, #4a0a0a 0%, transparent 55%),
    linear-gradient(180deg, #2a0505 0%, #0a0101 48%, #1a0505 100%);
  box-shadow:
    0 0 28px #ff000055,
    inset 0 0 40px #ff000018,
    inset 0 0 0 1px #ff444433;
  padding: 14px 16px;
}
.jp-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 8px 10px 6px;
  position: relative;
  z-index: 1;
}

/* —— Lampu LED pinggir (chase) —— */
.jp-lights {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  display: flex;
  gap: 0;
}
.jp-lights-top,
.jp-lights-bottom {
  left: 18px;
  right: 18px;
  height: 12px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.jp-lights-top { top: 5px; }
.jp-lights-bottom { bottom: 5px; }
.jp-lights-left,
.jp-lights-right {
  top: 18px;
  bottom: 18px;
  width: 12px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.jp-lights-left { left: 5px; }
.jp-lights-right { right: 5px; }

.jp-bulb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #fff8c8 0%, #ffeb3b 35%, #ff9800 70%, #b71c1c 100%);
  box-shadow:
    0 0 4px #ffeb3b,
    0 0 10px #ff1744aa,
    inset 0 -1px 2px #0006;
  opacity: .35;
  transform: scale(.85);
  animation: jpBulbChase 1.1s linear infinite;
}
.jp-lights-left .jp-bulb,
.jp-lights-right .jp-bulb {
  width: 8px;
  height: 8px;
}
/* warna bergantian emas / merah / putih */
.jp-bulb:nth-child(3n) {
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ff8a80 40%, #d50000 100%);
}
.jp-bulb:nth-child(3n+1) {
  background: radial-gradient(circle at 35% 30%, #fffde7 0%, #ffee58 40%, #f9a825 100%);
}
.jp-bulb:nth-child(3n+2) {
  background: radial-gradient(circle at 35% 30%, #ffebee 0%, #ff5252 45%, #c62828 100%);
}
@keyframes jpBulbChase {
  0%, 100% {
    opacity: .28;
    transform: scale(.82);
    filter: brightness(.7);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
    filter: brightness(1.45);
    box-shadow:
      0 0 6px #fff,
      0 0 14px #ffeb3b,
      0 0 22px #ff1744;
  }
  70% {
    opacity: .55;
    transform: scale(.95);
    filter: brightness(1);
  }
}

/* sudut lampu besar */
.jp-corner {
  position: absolute;
  z-index: 5;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ffeb3b 40%, #ff6d00 100%);
  box-shadow: 0 0 8px #ffeb3b, 0 0 16px #ff1744, 0 0 24px #ff000088;
  animation: jpCornerBlink 0.7s ease-in-out infinite alternate;
}
.jp-c-tl { top: 3px; left: 3px; }
.jp-c-tr { top: 3px; right: 3px; animation-delay: .15s; }
.jp-c-bl { bottom: 3px; left: 3px; animation-delay: .35s; }
.jp-c-br { bottom: 3px; right: 3px; animation-delay: .5s; }
@keyframes jpCornerBlink {
  from {
    opacity: .55;
    transform: scale(.9);
    box-shadow: 0 0 4px #ffeb3b, 0 0 8px #ff174466;
  }
  to {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px #fff, 0 0 18px #ffeb3b, 0 0 28px #ff1744;
  }
}

.jp-board {
  text-align: center;
  min-width: min(420px, 90vw);
}
.jp-label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .28em;
  color: #ffcccc;
  text-shadow: 0 0 8px #ff0000, 0 0 2px #fff;
  margin-bottom: 4px;
}
.jp-digits {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 18px 10px;
  border-radius: 8px;
  background: #0a0000;
  border: 2px solid #cc0000;
  box-shadow:
    0 0 0 1px #ff6666,
    inset 0 0 20px #ff000033,
    0 0 20px #ff000066;
  font-variant-numeric: tabular-nums;
}
.jp-currency {
  font-size: 1rem;
  font-weight: 900;
  color: #ffeb3b;
  text-shadow: 0 0 6px #ff0;
}
.jp-amount {
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 900;
  font-family: "Segoe UI", system-ui, Consolas, monospace;
  color: #ff1744;
  letter-spacing: .04em;
  text-shadow:
    0 0 4px #ff0000,
    0 0 12px #ff1744,
    0 0 24px #ff000088,
    0 1px 0 #3a0000;
  animation: jpPulse 1.2s ease-in-out infinite;
}
@keyframes jpPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
.jp-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, #ff000028 0%, transparent 65%),
    linear-gradient(90deg, transparent, #ff000018, transparent);
  animation: jpScan 3s linear infinite;
  z-index: 0;
}
@keyframes jpScan {
  0% { opacity: .5; }
  50% { opacity: 1; }
  100% { opacity: .5; }
}
@media (max-width: 560px) {
  .jp-inner { flex-direction: column; gap: 6px; }
  .jp-bar { padding: 12px 14px; }
  .jp-bulb { width: 7px; height: 7px; }
}

/* Admin bank/settings fields */
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.admin-field input {
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
}
.admin-bank-table input[type="text"],
.admin-bank-table select {
  width: 100%;
  min-width: 90px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
  font-size: 12px;
}
.admin-bank-table td { vertical-align: middle; }

/* ===== CHAT CS — gaya LiveChat (kanan bawah) ===== */
.cs-widget {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  z-index: 9999 !important;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  display: block !important;
  width: auto !important;
  height: auto !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.cs-widget[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* pastikan FAB terlihat di atas banner/footer */
body.playing-immersive .cs-widget {
  bottom: 18px !important;
  z-index: 9999 !important;
}

/* FAB: avatar bulat seperti LiveChat minimized */
.cs-fab.lc-fab {
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs-fab.lc-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.lc-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid #2ecc71;
  opacity: .85;
  animation: lcPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes lcPulse {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.lc-fab-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  background: #e8eef5;
}
.lc-fab-online {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #1e8449;
}
.cs-badge, .cs-badge-inline {
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cs-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
}

/* Panel chat — putih ala LiveChat */
.cs-panel.lc-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 100px));
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1a1a1a;
}
.cs-panel[hidden] { display: none !important; }

.lc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 14px;
  background: linear-gradient(135deg, #1faa59 0%, #148a45 55%, #0d6b35 100%);
  color: #fff;
  flex-shrink: 0;
}
.lc-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lc-head-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.9);
  background: #fff;
  flex-shrink: 0;
}
.lc-head-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.lc-head-text span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  opacity: .95;
  font-weight: 600;
}
.lc-head-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lc-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lc-icon-btn:hover { background: rgba(255,255,255,.28); }

.lc-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f4f7fb;
  border-bottom: 1px solid #e4e9f0;
  flex-shrink: 0;
}
.lc-welcome img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.lc-welcome p {
  margin: 0;
  font-size: 13px;
  color: #333;
  font-weight: 600;
  line-height: 1.35;
}

.cs-quick.lc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  flex-shrink: 0;
}
.cs-qchip {
  border: 1px solid #d0d7e2;
  background: #f7f9fc;
  color: #334;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cs-qchip:hover {
  border-color: #1faa59;
  color: #148a45;
  background: #eefaf3;
}

.cs-messages.lc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f0f3f7;
}
.cs-empty {
  color: #889;
  font-size: 12px;
  text-align: center;
  margin: auto;
  padding: 20px;
  line-height: 1.5;
}
.cs-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.cs-bubble-meta {
  font-size: 10px;
  color: #889;
  margin-bottom: 3px;
  font-weight: 600;
}
.cs-mine {
  align-self: flex-end;
  background: #1faa59;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cs-mine .cs-bubble-meta { color: rgba(255,255,255,.85); }
.cs-theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e4e9f0;
  color: #222;
  border-bottom-left-radius: 4px;
}
/* typing indicator */
.cs-typing .cs-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 14px;
}
.cs-typing .cs-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa3b5;
  display: block;
  animation: csDot 1.2s ease-in-out infinite;
}
.cs-typing .cs-dots i:nth-child(2) { animation-delay: .15s; }
.cs-typing .cs-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes csDot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.cs-form.lc-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e4e9f0;
  background: #fff;
  flex-shrink: 0;
  align-items: center;
}
.cs-form.lc-form input {
  flex: 1;
  border: 1px solid #d0d7e2;
  background: #f7f9fc;
  color: #111;
  border-radius: 22px;
  padding: 11px 16px;
  font-size: 13px;
  outline: none;
}
.cs-form.lc-form input:focus {
  border-color: #1faa59;
  background: #fff;
}
.cs-form.lc-form input:disabled { opacity: .5; }
.lc-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #2ecc71, #1faa59);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px #1faa5966;
}
.lc-send:hover { filter: brightness(1.08); }
.lc-foot {
  text-align: center;
  font-size: 10px;
  color: #99a;
  padding: 4px 8px 8px;
  background: #fff;
  flex-shrink: 0;
}

.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8f0c8;
  box-shadow: 0 0 6px #fff;
  display: inline-block;
}

/* hide FAB when panel open */
.cs-widget.cs-open .cs-fab.lc-fab { opacity: 0; pointer-events: none; transform: scale(.5); }

/* Admin messages keep dark theme inside admin panel */
.cs-admin-messages {
  background: #0c1018 !important;
}
.cs-admin-messages .cs-mine {
  background: linear-gradient(180deg, #1e8449, #148a45);
}
.cs-admin-messages .cs-theirs {
  background: #1a2030;
  border-color: #2a3140;
  color: #eef2f7;
}
.cs-admin-chat .cs-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #2a3140;
  background: #12161f;
}
.cs-admin-chat .cs-form input {
  flex: 1;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

/* Admin chat layout */
.cs-admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
  min-height: 420px;
}
@media (max-width: 800px) {
  .cs-admin-layout { grid-template-columns: 1fr; }
}
.cs-thread-list {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  overflow-y: auto;
  max-height: 520px;
}
.cs-thread-empty { padding: 20px 14px; font-size: 12px; }
.cs-thread-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #1e2430;
  background: transparent;
  color: inherit;
  padding: 12px 12px;
  cursor: pointer;
}
.cs-thread-item:hover,
.cs-thread-item.active {
  background: #1a2332;
}
.cs-thread-item.active {
  border-left: 3px solid var(--yellow);
}
.cs-thread-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cs-thread-row .pp-avatar-sm {
  margin-top: 2px;
  border-color: #f5c51866;
}
.cs-thread-meta {
  min-width: 0;
  flex: 1;
}
.cs-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cs-thread-top strong { font-size: 13px; color: #fff; }
.cs-thread-preview {
  font-size: 11px;
  color: #8b95a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-thread-time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}
.cs-admin-chat {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 520px;
  overflow: hidden;
}
.cs-admin-chat-head {
  padding: 12px 14px;
  border-bottom: 1px solid #2a3140;
  background: #0a0c10;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-admin-messages {
  flex: 1;
  min-height: 280px;
}
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}
.tab-badge[hidden] { display: none !important; }

/* Admin · Kelola member · Top-up Fast */
.admin-member-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2a3140;
}
.admin-fast-topup {
  background: linear-gradient(180deg, #121a14, #0a0c10);
  border: 1px solid #2e5a3a;
  border-radius: 10px;
  padding: 12px 12px 14px;
  margin-top: 4px;
}
.admin-fast-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.admin-fast-head strong {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: .08em;
}
.admin-fast-head span {
  font-size: 11px;
  color: #8b95a8;
  font-weight: 600;
}
.admin-fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.admin-fast-btn {
  border: 1px solid #3a4456;
  background: linear-gradient(180deg, #1a2030, #12161f);
  color: #eef2f7;
  border-radius: 8px;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .12s, transform .12s, background .12s, color .12s;
}
.admin-fast-btn:hover {
  border-color: var(--green);
  color: #7dcea0;
  transform: translateY(-1px);
}
.admin-fast-btn.active {
  background: linear-gradient(180deg, #2ecc71, #1e8449);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px #1faa5944;
}
.admin-fast-btn.admin-fast-hot {
  border-color: #f5c51866;
  color: var(--yellow);
}
.admin-fast-btn.admin-fast-hot:hover,
.admin-fast-btn.admin-fast-hot.active {
  background: linear-gradient(180deg, #ffd54f, #f0b400);
  color: #111;
  border-color: transparent;
}
.admin-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}
.admin-actions-wrap .btn.mini {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
}
tr.row-banned {
  background: #2a1010aa;
}
tr.row-banned td {
  opacity: .9;
}

/* ===== PEMENANG TERAKHIR + GAME REKOMENDASI (mirip portal slot) ===== */
.home-widget {
  background: #12161f;
  border: 1px solid #2a3140;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}
.home-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #1a2030, #141922);
  border-bottom: 1px solid #2a3140;
}
.home-widget-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--yellow);
  text-transform: uppercase;
}
.home-widget-nav { display: flex; gap: 4px; }
.hw-btn {
  width: 32px;
  height: 28px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: #c5cddd;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.hw-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Pemenang Terakhir — withdraw cards */
.winners-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 12px 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: #3a4456 transparent;
}
.winners-viewport::-webkit-scrollbar { height: 5px; }
.winners-viewport::-webkit-scrollbar-thumb { background: #3a4456; border-radius: 4px; }
.winners-track {
  display: flex;
  gap: 10px;
  width: max-content;
  min-height: 64px;
  align-items: stretch;
}
.withdraw-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  max-width: 180px;
  padding: 8px 12px 8px 8px;
  background: #0a0c10;
  border: 1px solid #2a3140;
  border-radius: 999px;
  flex: 0 0 auto;
  transition: border-color .15s, transform .15s, background .15s;
}
.withdraw-card.wd-new {
  border-color: var(--green);
  background: #0f1a14;
  animation: wdPop .45s ease;
}
@keyframes wdPop {
  from { transform: scale(.92); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}
.wd-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 42px;
  background: #1e2430;
  border: 2px solid #f5c51888;
  box-shadow: 0 0 0 1px #f5c51822;
}
.wd-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wd-info { min-width: 0; flex: 1; }
.wd-user {
  font-size: 11px;
  color: #c5cddd;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.wd-amt {
  font-size: 12px;
  font-weight: 800;
  color: var(--yellow);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.winners-note {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 10px;
  color: #6b7280;
}

/* GAME REKOMENDASI — logo round */
.reco-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 14px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #3a4456 transparent;
}
.reco-viewport::-webkit-scrollbar { height: 5px; }
.reco-viewport::-webkit-scrollbar-thumb { background: #3a4456; border-radius: 4px; }
.reco-track {
  display: flex;
  gap: 14px;
  width: max-content;
  align-items: flex-start;
}
.reco-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #c5cddd;
  min-width: 78px;
  flex: 0 0 auto;
}
.reco-logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3344, #0c1018 70%);
  border: 2px solid #3a4456;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 14px #0007, inset 0 0 12px #0004;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.reco-logo-item:hover .reco-logo-circle {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--yellow);
  box-shadow: 0 6px 18px #f5c51833, inset 0 0 12px #0004;
}
.reco-logo-circle img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px #0008);
}
.reco-logo-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  max-width: 78px;
  line-height: 1.15;
  color: #9aa3b5;
  text-transform: uppercase;
}
.reco-logo-item:hover .reco-logo-name { color: var(--yellow); }

/* Bonus strip */
.bonus-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 800px) {
  .bonus-strip { grid-template-columns: 1fr 1fr; }
}
.bonus-card {
  background: linear-gradient(160deg, #1a2030, #12161f);
  border: 1px solid #2f3848;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.bonus-card .ico { font-size: 28px; }
.bonus-card strong { display: block; margin-top: 6px; font-size: 13px; color: var(--yellow); }
.bonus-card span { font-size: 11px; color: var(--muted); }

/* Section heads */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1faa5944;
}
.sec-head h2 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-head h2::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--green);
  border-radius: 2px;
}

/* Game / provider grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.game-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
@media (min-width: 1100px) {
  .game-grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Hot Games beranda — mirip portal (cover square + logo asli) */
.hot-games-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hot-games-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.hot-games-home {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap: 12px !important;
}
@media (min-width: 900px) {
  .hot-games-home {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)) !important;
  }
}
.g-card-hot {
  background: #12161f;
  border: 1px solid #2a3140;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.g-card-hot:hover {
  transform: translateY(-4px);
  border-color: #f5c51888;
  box-shadow: 0 10px 24px #0008, 0 0 0 1px #f5c51833;
}
.g-card-hot .g-thumb-cover {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #0a0c10;
  position: relative;
  overflow: hidden;
}
.g-card-hot .g-thumb-cover img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
  transition: transform .25s ease;
}
.g-card-hot:hover .g-thumb-cover img {
  transform: scale(1.07);
}
.g-card-hot .g-body {
  padding: 8px 9px 10px;
  background: linear-gradient(180deg, #161a22, #10141c);
}
.g-card-hot .g-body h3 {
  font-size: 11px;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #eef2f7;
}
.g-card-hot .g-body p {
  font-size: 10px;
  color: #8b95a8;
  margin: 0;
  font-weight: 700;
}
.g-card {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.g-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}
.g-thumb {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: linear-gradient(160deg, #1a2030, #0c1018);
  padding: 10px;
  overflow: hidden;
}
.g-thumb img {
  width: 100%;
  height: 100%;
  max-height: 88px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.game-grid-lg .g-thumb {
  aspect-ratio: 16 / 12;
  min-height: 110px;
  padding: 14px;
}
.game-grid-lg .g-thumb img {
  max-height: 100px;
}
.g-thumb.train { background: linear-gradient(160deg, #4a2c0a, #1a1008); }
.g-thumb.slot { background: linear-gradient(160deg, #3b0764, #12061c); }
.g-thumb.crash { background: linear-gradient(160deg, #0c4a6e, #082f49); }
.g-body { padding: 8px 10px 10px; }
.g-body h3 { margin: 0 0 4px; font-size: 12px; line-height: 1.25; }
.g-body p { margin: 0; font-size: 10px; color: var(--muted); }
.badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  background: #1faa5933;
  color: #7dcea0;
  border: 1px solid #1faa5966;
}
.badge.hot { background: #e5393533; color: #ff8a80; border-color: #e5393566; }

/* Provider chips */
.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.prov {
  background: #12161f;
  border: 1px solid #2a3140;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #c5cddd;
  letter-spacing: .04em;
}
.provider-row-img {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.prov-img {
  background: linear-gradient(160deg, #1a2030, #10141c);
  border: 1px solid #2a3140;
  border-radius: 10px;
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 12px 10px;
}
.prov-img img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  background: #0d1016;
  border-top: 1px solid #222833;
  padding: 20px 12px 40px;
  color: var(--muted);
  font-size: 12px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

/* Menu bar: Tentang kami | Info Perbankan | Pusat Info | Hubungi kami */
.footer-menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #161b26, #10141c);
  border: 1px solid #2a3140;
  border-radius: 10px;
  text-align: center;
}
.footer-menu-link {
  color: #c5cddd;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.footer-menu-link:hover,
.footer-menu-link:focus {
  color: var(--yellow);
  background: #1e2633;
  outline: none;
}
.footer-menu-sep {
  color: #3a4456;
  font-weight: 400;
  user-select: none;
}

/* ===== KELEBIHAN LAYANAN ===== */
.footer-services {
  background: linear-gradient(180deg, #141922, #0e1218);
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 16px 14px 14px;
}
.footer-services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3140;
}
.footer-services-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--yellow);
}
.footer-services-head span {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .svc-grid { grid-template-columns: 1fr; }
}

.svc-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #0a0c10;
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 12px 12px 10px;
  color: inherit;
  text-decoration: none;
  min-height: 108px;
  transition: border-color .15s, transform .12s, background .15s;
}
a.svc-card:hover {
  border-color: var(--green);
  background: #12161f;
  transform: translateY(-2px);
}
.svc-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.svc-icon-dep { background: linear-gradient(135deg, #1faa59, #0d6b35); }
.svc-icon-wd { background: linear-gradient(135deg, #1e88e5, #0d47a1); }
.svc-icon-wa { background: #25d366; color: #fff; }
.svc-icon-fb { background: #1877f2; color: #fff; }
.svc-icon-tg { background: #229ed9; color: #fff; }

/* ===== Metode pembayaran (di bawah Kelebihan Layanan) ===== */
.pay-methods {
  margin-top: 18px;
  padding: 16px 14px 18px;
  border-radius: 12px;
  border: 1px solid #2a3140;
  background: linear-gradient(180deg, #12161f 0%, #0e1219 100%);
}
.pay-methods-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a3140;
}
.pay-methods-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.pay-methods-head span {
  font-size: 11px;
  color: #8b95a8;
}
.pay-cat {
  margin-bottom: 14px;
}
.pay-cat:last-child {
  margin-bottom: 0;
}
.pay-cat-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8edf5;
  text-transform: uppercase;
}
.pay-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.pay-logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #0a0c10;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s, opacity 0.2s, filter 0.2s;
  min-width: 0;
}
.pay-logo-item:hover {
  border-color: #f5c51866;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.pay-logo-item.is-maintenance {
  opacity: 0.55;
  filter: grayscale(0.55);
  border-color: #e5393555 !important;
  cursor: not-allowed;
}
.pay-logo-item.is-maintenance:hover {
  transform: none;
  box-shadow: none;
}
/* ===== Unduh App (di bawah logo bank) — ala OrientalPlay ===== */
.app-download {
  margin-top: 20px;
  padding: 20px 16px 18px;
  border-radius: 14px;
  border: 1px solid #f5c51833;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, #2a200866 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, #1a2a4066 0%, transparent 50%),
    linear-gradient(135deg, #12161f 0%, #0c1018 50%, #14100a 100%);
  position: relative;
  overflow: hidden;
}
.app-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #f5c5180a, transparent);
  pointer-events: none;
}
.app-download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.85fr;
  gap: 18px 20px;
  align-items: center;
}
.app-dl-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa5b8;
}
.app-dl-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.app-dl-title span {
  color: var(--yellow);
}
.app-dl-desc {
  margin: 0 0 14px;
  font-size: 14px;
  color: #c8d0dc;
  line-height: 1.45;
  max-width: 36ch;
}
.app-dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.app-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #f5c51899;
  background: linear-gradient(135deg, #f5c518, #d4a017 55%, #b8860b);
  color: #1a1200 !important;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 22px #f5c51833;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #f5c51844;
  color: #1a1200 !important;
}
.app-dl-btn-ico {
  font-size: 22px;
  line-height: 1;
}
.app-dl-btn strong {
  display: block;
  font-size: 14px;
}
.app-dl-btn small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 2px;
}
.app-dl-guide {
  font-size: 12px;
  font-weight: 800;
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.app-dl-guide:hover {
  color: var(--yellow);
}
.app-dl-points {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 12px;
  color: #9aa5b8;
  line-height: 1.7;
}
.app-download-visual {
  display: flex;
  justify-content: center;
}
.app-phone-frame {
  width: min(220px, 100%);
  border-radius: 18px;
  padding: 8px;
  background: linear-gradient(160deg, #2a3140, #12161f);
  border: 1px solid #3a4456;
  box-shadow: 0 16px 40px #000a;
}
.app-promo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: #0a0d12;
}
.app-download-qr {
  display: flex;
  justify-content: center;
}
.app-qr-card {
  width: 100%;
  max-width: 240px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #0a0d12;
  border: 1px solid #2a3140;
  text-align: center;
  box-shadow: 0 10px 28px #0008;
}
.app-qr-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  color: #9aa5b8;
  letter-spacing: 0.03em;
}
.app-qr-brand {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--yellow);
}
.app-qr-frame {
  display: grid;
  place-items: center;
  padding: 10px;
  margin: 0 auto 10px;
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  border: 3px solid #f5c518;
  box-shadow: 0 0 0 4px #f5c51822;
}
.app-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.app-qr-android {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #a4c639;
}
.app-android-badge {
  display: inline-flex;
  color: #a4c639;
}
.app-qr-link {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
}
.app-qr-link:hover {
  color: var(--yellow);
  text-decoration: underline;
}
.app-install-guide {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #0a0d12cc;
  position: relative;
  z-index: 1;
}
.app-install-guide h4 {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 13px;
}
.app-install-guide ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #c8d0dc;
  line-height: 1.65;
}
.app-install-guide[hidden] {
  display: none !important;
}
@media (max-width: 980px) {
  .app-download-inner {
    grid-template-columns: 1fr 1fr;
  }
  .app-download-qr {
    grid-column: 1 / -1;
  }
  .app-qr-card {
    max-width: 280px;
  }
}
@media (max-width: 640px) {
  .app-download {
    padding: 16px 12px 14px;
  }
  .app-download-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .app-dl-desc {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .app-dl-actions {
    justify-content: center;
  }
  .app-dl-points {
    display: inline-block;
    text-align: left;
  }
  .app-phone-frame {
    width: min(200px, 70vw);
    margin: 0 auto;
  }
  .app-qr-frame {
    width: 160px;
    height: 160px;
  }
}

.pay-logo-item.is-disabled {
  opacity: 0.35;
  filter: grayscale(0.8);
  border-color: #3a4456 !important;
}
.pay-logo-item.is-disabled:hover {
  transform: none;
  box-shadow: none;
}
.pay-mt-badge,
.pay-off-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  line-height: 1.2;
  pointer-events: none;
}
.pay-mt-badge {
  background: #e53935;
  box-shadow: 0 0 0 1px #e5393588;
  animation: pay-mt-pulse 1.4s ease infinite;
}
.pay-off-badge {
  background: #546e7a;
}
@keyframes pay-mt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.pay-logo-item img {
  width: 100%;
  max-width: 112px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.pay-logo-item span {
  font-size: 11px;
  font-weight: 700;
  color: #c5cddd;
  text-align: center;
  letter-spacing: 0.02em;
}
.pay-logo-item.is-maintenance span {
  color: #ffab91;
}
@media (max-width: 1000px) {
  .pay-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .pay-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .pay-logo-item {
    padding: 8px 6px 6px;
  }
  .pay-logo-item img {
    height: 34px;
  }
  .pay-logo-item span {
    font-size: 10px;
  }
}
@media (max-width: 400px) {
  .pay-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.svc-body { flex: 1; min-width: 0; }
.svc-body h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #c5cddd;
}
.svc-label {
  margin: 0;
  font-size: 10px;
  color: #6b7280;
}
.svc-time {
  display: block;
  margin: 2px 0 6px;
  font-size: 1.15rem;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.svc-bar {
  height: 6px;
  background: #1e2430;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}
.svc-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1faa59, #7dcea0);
  box-shadow: 0 0 8px #1faa5966;
}
.svc-bar-wd {
  background: linear-gradient(90deg, #1e88e5, #64b5f6);
  box-shadow: 0 0 8px #1e88e566;
}
.svc-pct {
  font-size: 10px;
  color: #8b95a8;
  font-weight: 700;
}
.svc-contact-val {
  display: block;
  font-size: 13px;
  color: #fff;
  margin: 2px 0 4px;
  word-break: break-all;
}
.svc-support {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #7dcea0;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #1faa5922;
  border: 1px solid #1faa5944;
}

/* Panduan links */
.svc-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #222833;
}
.svc-guide-link {
  border: 1px solid #3a4456;
  background: #12161f;
  color: #c5cddd;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.svc-guide-link:hover,
.svc-guide-link.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: #1a2030;
}

.svc-guide-panel {
  margin-top: 12px;
  background: #0a0c10;
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 14px 16px;
  animation: fade .15s ease;
}
.svc-guide-panel[hidden] { display: none !important; }
.svc-guide-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.svc-guide-panel-head h4 {
  margin: 0;
  color: var(--yellow);
  font-size: 14px;
}
.svc-guide-close {
  border: 1px solid #3a4456;
  background: transparent;
  color: #9aa3b5;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.svc-guide-close:hover { color: #fff; border-color: #666; }
.svc-guide-body {
  font-size: 12px;
  line-height: 1.6;
  color: #9aa3b5;
}
.svc-guide-body ol {
  margin: 0;
  padding-left: 18px;
}
.svc-guide-body li { margin-bottom: 6px; }
.svc-guide-body strong { color: #eef2f7; }

/* 4-column info grid */
.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 20px;
  padding: 4px 2px 8px;
}
@media (max-width: 1000px) {
  .footer-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-info-grid { grid-template-columns: 1fr; }
}
.footer-col {
  min-width: 0;
  scroll-margin-top: 72px;
}
.footer-col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f5c51855;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.footer-block {
  margin-bottom: 14px;
  scroll-margin-top: 72px;
}
.footer-block h4 {
  margin: 0 0 6px;
  color: #eef2f7;
  font-size: 12px;
  font-weight: 700;
}
.footer-block p {
  margin: 0;
  line-height: 1.55;
  font-size: 11.5px;
  color: #8b95a8;
}
.footer-block strong { color: #c5cddd; }
.footer-block.is-flash {
  outline: 1px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
  background: #1a203088;
  transition: outline-color .4s, background .4s;
}
.footer-contact-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #8b95a8;
  font-size: 11.5px;
  line-height: 1.6;
}
.footer-contact-list a { color: var(--yellow); }

.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
}
.footer-links a { color: #9aa3b5; }
.footer-links a:hover { color: var(--yellow); }
.footer-brand {
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: .08em;
}
.footer-disclaimer {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  max-width: 720px;
  line-height: 1.45;
}

/* Game Provider strip (bottom) — footer_provider_col.png */
.game-providers {
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid #222833;
}
.providers-head {
  margin-top: 0;
  border-bottom-color: #f5c51844;
}
.providers-head h2 { font-size: 1rem; }
.providers-note {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}
.provider-strip-wrap {
  width: 100%;
  background: linear-gradient(180deg, #1a2030, #0c0f14);
  border: 1px solid #3a4456;
  border-radius: 14px;
  padding: 22px 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px #0006;
}
.provider-strip-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.provider-strip-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
  image-rendering: -webkit-optimize-contrast;
  transform: scale(1.02);
}
@media (max-width: 900px) {
  .provider-strip-wrap { padding: 16px 12px; }
  .provider-strip-img { max-height: 200px; }
}
@media (max-width: 768px) {
  .provider-strip-wrap {
    padding: 14px 10px;
    border-radius: 12px;
  }
  .provider-strip-img {
    max-height: 160px;
  }
  .providers-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 420px) {
  .provider-strip-img {
    max-height: 120px;
  }
}

/* ===== AUTH MODAL / FORMS ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  place-items: center;
  padding: 16px;
}
.auth-overlay.open { display: grid; }
.auth-box {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #1a2030, #12161f);
  border: 1px solid #3a4456;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 50px #000a;
  max-height: min(92vh, 900px);
  overflow: auto;
}

/* ===== LOGIN MODAL (totoslot288 style) ===== */
.auth-login-box {
  width: min(400px, 100%);
  padding: 0;
  border-radius: 6px;
  border: 1px solid #2a3140;
  background: #151a24;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.login-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 44px;
  border-bottom: 1px solid #2a3140;
  background: #12161f;
}
.login-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #eef2f7;
  text-align: center;
  letter-spacing: 0.02em;
}
.login-close {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #c5cddb;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}
.login-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.login-modal-body {
  padding: 18px 20px 12px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.login-field {
  margin: 0 0 14px;
}
.login-label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e8edf5;
}
.icon-input {
  position: relative;
  display: block;
  width: 100%;
}
.icon-input-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  color: #8b95a8;
  pointer-events: none;
}
.icon-input-ico.left {
  left: 12px;
  width: 22px;
}
.login-control {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 10px 14px 10px 42px;
  border-radius: 4px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: #eef2f7;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-control:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
.icon-input.pw-wrap .login-control {
  padding-right: 48px !important;
  padding-left: 42px !important;
}
.login-eye {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  min-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #9aa5b8 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}
.login-eye:hover,
.login-eye.is-on {
  color: #f5c518 !important;
  background: rgba(245, 197, 24, 0.08) !important;
}
.login-eye svg {
  display: block;
  pointer-events: none;
}
.login-remember {
  margin-bottom: 10px;
}
.login-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
  color: #c5cddb;
}
.login-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2ecc71;
  cursor: pointer;
}
.login-check small {
  font-size: 13px;
  color: #c5cddb;
}
.login-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  margin: 6px 0 14px;
  opacity: 0.35;
}
.login-social {
  margin-bottom: 14px;
}
.login-social-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: #c5cddb;
}
.login-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1a2030;
  box-shadow: 0 1px 1px rgba(60, 61, 62, 0.25), 0 0 1px rgba(63, 64, 65, 0.3);
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.login-social-btn:hover {
  filter: brightness(1.12);
  transform: scale(1.04);
}
.login-alert {
  margin: 0 0 10px !important;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(239, 83, 80, 0.12);
  border: 1px solid rgba(239, 83, 80, 0.35);
}
.login-actions {
  text-align: center;
  margin-top: 4px;
}
.btn-primary-login {
  background: linear-gradient(180deg, #3d8bfd, #1a5fd0) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  min-height: 46px;
  border-radius: 4px !important;
  border: none !important;
  box-shadow: 0 2px 0 #0d3d8a;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.btn-primary-login:hover {
  filter: brightness(1.08);
}
.btn-link-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 4px 0 0;
  padding: 8px;
  border: none;
  background: transparent;
  color: #8eb8ff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-link-login:hover {
  color: #c5dbff;
  text-decoration: underline;
}
.login-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 16px;
  border-top: 1px solid #2a3140;
  background: #10141c;
  font-size: 13px;
  color: #9aa5b8;
}
.login-modal-footer a {
  color: #f5c518;
  font-weight: 700;
  text-decoration: none;
}
.login-modal-footer a:hover {
  text-decoration: underline;
}

/* Forgot password panel */
.forgot-method-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.forgot-method {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid #3a4456;
  border-radius: 6px;
  background: #0e1219;
  cursor: pointer;
  font-size: 12px;
  color: #d7deea;
}
.forgot-method:has(input:checked) {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.08);
}
.forgot-method input {
  margin: 0;
  accent-color: #2ecc71;
}
.forgot-form .reg-phone-row .login-control {
  padding-left: 12px;
  border-radius: 0 4px 4px 0;
  height: 46px;
}
.forgot-form .reg-phone-prefix {
  height: 46px;
}

/* ===== REGISTER MODAL (totoslot288 multi-step) ===== */
.auth-register-box {
  width: min(920px, 100%);
  padding: 0;
  border-radius: 6px;
  border: 1px solid #2a3140;
  background: #151a24;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  max-height: min(94vh, 960px);
  display: flex;
  flex-direction: column;
}
.reg-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.reg-benefits {
  background: linear-gradient(180deg, #0e1520 0%, #121a28 100%);
  border-right: 1px solid #2a3140;
  padding: 16px 14px 18px;
  overflow: auto;
}
.reg-benefits-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f5c518;
  text-align: center;
  text-transform: uppercase;
}
.reg-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reg-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2a3140;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #e8edf5;
}
.reg-ben-ico {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.2;
}
.reg-main {
  padding: 14px 18px 10px;
  overflow: auto;
  max-height: min(78vh, 720px);
  scroll-behavior: smooth;
}
/* Pastikan seksi bank selalu terlihat jelas */
#reg-bank-section {
  scroll-margin-top: 12px;
}
.auth-box-wide {
  width: min(560px, 100%);
}
.auth-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.reg-form { display: flex; flex-direction: column; gap: 4px; }
.reg-section {
  border: 1px solid #2a3140;
  border-radius: 6px;
  padding: 12px 12px 4px;
  margin: 0 0 12px;
  background: #0e1219;
}
.reg-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #f5c518;
  text-transform: none;
  border-bottom: 1px solid #2a3140;
  padding-bottom: 8px;
}
.reg-section-note {
  margin: -4px 0 12px;
  font-size: 12px;
  color: #9aa5b8;
  line-height: 1.4;
}
.reg-section-bank {
  border-color: #f5c51855;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.06);
}
.reg-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.reg-type-tab {
  display: block !important;
  margin: 0 !important;
  cursor: pointer;
}
.reg-type-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.reg-type-tab-ui {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 6px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.reg-type-tab-ui strong {
  font-size: 14px;
  color: #eef2f7;
}
.reg-type-tab-ui small {
  font-size: 11px;
  color: #8b95a8;
}
.reg-type-tab input:checked + .reg-type-tab-ui {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.25);
}
.reg-type-tab input:checked + .reg-type-tab-ui strong {
  color: #2ecc71;
}
.reg-type-tab:hover .reg-type-tab-ui {
  border-color: #4a5568;
}
.reg-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  margin: 0 0 12px !important;
}
.reg-label {
  font-size: 13px;
  font-weight: 600;
  color: #e8edf5;
}
.reg-label em { color: #ef5350; font-style: normal; }
.reg-hint {
  font-size: 11px;
  color: #8b95a8;
  line-height: 1.45;
  margin-top: 2px;
}
.reg-hint strong { color: #f5c518; font-weight: 700; }
.reg-form .login-control,
.reg-form select.login-control,
.reg-form .reg-select {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 10px 14px 10px 42px;
  border-radius: 4px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
  font-size: 14px;
}
.reg-form .reg-select,
.reg-form select.login-control {
  padding-left: 12px;
  cursor: pointer;
  appearance: auto;
}
.reg-form select { cursor: pointer; }
.reg-phone-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.reg-phone-prefix,
.reg-phone-cc {
  display: grid;
  place-items: center;
  padding: 0 10px;
  min-width: 88px;
  background: #1a2030;
  border: 1px solid #3a4456;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  color: #f5c518;
  font-weight: 800;
  font-size: 12px;
  height: 46px;
  box-sizing: border-box;
}
.reg-phone-cc {
  max-width: 150px;
  padding: 0 6px;
  color: #eef2f7;
  font-weight: 600;
  cursor: pointer;
  appearance: auto;
}
.reg-phone-row .login-control,
.reg-phone-row input {
  border-radius: 0 4px 4px 0 !important;
  padding-left: 12px !important;
  height: 46px;
  flex: 1;
  min-width: 0;
}
.reg-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  padding: 4px 0 8px;
}
.reg-step-actions {
  margin-top: 4px;
  padding-bottom: 6px;
}
.reg-step-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.reg-step-nav .btn-dark {
  min-height: 46px;
  font-weight: 700;
  font-size: 14px;
}
.reg-step-nav .btn-primary-login {
  margin-bottom: 0;
}
.btn-refresh-cap {
  min-width: 44px;
  height: 46px;
  border-radius: 4px;
  border: 1px solid #3a4456;
  background: #1a2030;
  color: #f5c518;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.btn-refresh-cap:hover {
  border-color: #f5c518;
  background: #243044;
}
.reg-captcha-input {
  padding-left: 12px !important;
  flex: 1;
  min-width: 100px;
}
.auth-register-box .reg-terms {
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 8px 0 4px !important;
  font-size: 12px;
  color: #c5cddb;
  line-height: 1.45;
}
.auth-register-box .reg-terms a {
  color: #f5c518;
  text-decoration: underline;
}
@media (max-width: 720px) {
  .reg-layout {
    grid-template-columns: 1fr;
  }
  .reg-benefits {
    border-right: 0;
    border-bottom: 1px solid #2a3140;
    max-height: 160px;
  }
  .reg-benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .reg-benefits-list li {
    font-size: 10px;
    padding: 6px 8px;
  }
  .auth-register-box {
    width: min(100%, 100%);
  }
  .reg-step-nav {
    grid-template-columns: 1fr;
  }
}
/* keep legacy helpers */
.reg-form input[type="text"]:not(.login-control),
.reg-form input[type="password"]:not(.login-control),
.reg-form input[type="email"]:not(.login-control),
.reg-form input[type="tel"]:not(.login-control) {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
}
.reg-radio {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  margin: 0 !important;
}
.reg-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.reg-captcha-box {
  min-width: 100px;
  padding: 10px 14px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #1a2030,
    #1a2030 6px,
    #243044 6px,
    #243044 12px
  );
  border: 1px solid #f5c51866;
  color: #f5c518;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 4px;
  text-align: center;
  user-select: none;
  font-family: ui-monospace, Consolas, monospace;
}
.reg-captcha-row input {
  flex: 1;
  min-width: 120px;
}
.reg-terms { align-items: flex-start !important; }
.reg-terms a { color: var(--yellow); text-decoration: underline; }
.reg-submit { margin-top: 8px; font-size: 15px; min-height: 46px; }
.terms-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  max-height: 40vh;
  overflow: auto;
}
.terms-body ul { padding-left: 18px; }
.auth-box h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--yellow);
}
.auth-box .muted { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.auth-box label {
  display: flex; flex-direction: column; gap: 5px;
  margin: 10px 0; font-size: 12px; color: var(--muted);
}
.auth-box input {
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--text);
}
/* Login/Register totoslot: jangan override checkbox & control khusus */
.auth-login-box label.login-check,
.auth-login-box label.forgot-method,
.auth-register-box label.login-check,
.auth-register-box label.reg-radio {
  display: inline-flex !important;
  flex-direction: row !important;
  margin: 0 !important;
}
.auth-login-box input[type="checkbox"],
.auth-login-box input[type="radio"],
.auth-register-box input[type="checkbox"],
.auth-register-box input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  accent-color: #2ecc71;
}
.auth-login-box .login-control,
.auth-register-box .login-control {
  padding: 10px 14px 10px 42px;
  border-radius: 4px;
  height: 46px;
}
.auth-register-box .reg-select,
.auth-register-box .reg-captcha-input,
.auth-register-box .reg-phone-row .login-control {
  padding-left: 12px !important;
}

/* Password show / hide — harus selalu terbaca */
.pw-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.pw-wrap .pw-input,
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 11px 72px 11px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #3a4456 !important;
  background: #0a0c10 !important;
  color: #eef2f7 !important;
  -webkit-text-fill-color: #eef2f7 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em;
  caret-color: #f5c518;
}
.pw-wrap input.pw-visible,
.pw-wrap input.pw-force-visible,
.pw-wrap input[type="text"].pw-input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: "Segoe UI", system-ui, sans-serif !important;
  -webkit-text-security: none !important;
  text-security: none !important;
}
.pw-toggle {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 30 !important;
  min-width: 56px;
  height: 30px;
  border: 1px solid #3a4456 !important;
  border-radius: 6px !important;
  background: #1a2030 !important;
  color: #f5c518 !important;
  cursor: pointer !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  pointer-events: auto !important;
  user-select: none;
}
.pw-toggle:hover {
  background: #243044 !important;
  border-color: #f5c518 !important;
}
.pw-toggle.is-on {
  background: linear-gradient(180deg, #2ecc71, #1e8449) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.reg-field .pw-wrap {
  margin-top: 0;
}
.auth-box .check-row {
  flex-direction: row; align-items: flex-start; gap: 8px;
}
.form-error { color: #ff8a80; font-size: 12px; margin-top: 8px; }
.form-ok { color: #7dcea0; font-size: 12px; margin-top: 8px; }
.auth-switch {
  margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted);
}
.quick-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.chip {
  border: 1px solid #3a4456;
  background: #0a0c10;
  color: var(--yellow);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== APP INNER (after login) ===== */
.app-main { min-height: 50vh; }
.panel { display: none; animation: fade .15s ease; }
.panel.active { display: block; }
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.inner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.inner-tabs .tab {
  border: 1px solid #2a3140;
  background: #12161f;
  color: var(--muted);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.inner-tabs .tab.active {
  background: linear-gradient(180deg, #2ecc71, #1e8449);
  color: #fff;
  border-color: transparent;
}
.inner-tabs .tab.ops-only,
.inner-tabs .tab.admin-only { display: none; }
body.role-admin .inner-tabs .tab.ops-only,
body.role-admin .inner-tabs .tab.admin-only,
body.role-operator .inner-tabs .tab.ops-only { display: inline-flex; }

/* ===== ROLE SEPARATION: user vs admin dashboard ===== */
.user-only,
.admin-only {
  display: none !important;
}

/* Player: menu & tabs khusus member */
body.role-player .nav-item.user-only {
  display: flex !important;
}
body.role-player .inner-tabs.user-only {
  display: flex !important;
}
body.role-player button.user-only:not(.nav-item),
body.role-player .user-only:not(.nav-item):not(.inner-tabs) {
  display: block !important;
}

/* Admin + Operator: panel kontrol penuh */
body.role-admin .nav-item.admin-only,
body.role-operator .nav-item.admin-only {
  display: flex !important;
}
body.role-admin .inner-tabs.admin-only,
body.role-operator .inner-tabs.admin-only {
  display: flex !important;
}
body.role-admin button.admin-only:not(.nav-item),
body.role-operator button.admin-only:not(.nav-item),
body.role-admin .admin-only:not(.nav-item):not(.inner-tabs),
body.role-operator .admin-only:not(.nav-item):not(.inner-tabs) {
  display: block !important;
}
body.role-admin .admin-only.btn,
body.role-operator .admin-only.btn {
  display: inline-flex !important;
}

/* ===== USER DASHBOARD ===== */
.user-dash-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: stretch;
  background: linear-gradient(135deg, #1a2332 0%, #12161f 55%, #0f1a14 100%);
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.user-dash-hero h2 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
}
.user-dash-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.ud-balance-card {
  min-width: 180px;
  background: linear-gradient(180deg, #1e2a1a, #141a12);
  border: 1px solid #2e5a3a;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ud-balance-card span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ud-balance-card strong {
  font-size: 1.45rem;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.ud-balance-card small {
  font-size: 11px;
  color: #7dcea0;
}

.ud-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 800px) {
  .ud-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
.ud-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 14px 10px;
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, transform .12s, background .15s;
}
.ud-quick:hover {
  border-color: var(--green);
  background: #1a222c;
  transform: translateY(-2px);
}
.ud-quick img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ud-quick strong {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--yellow);
}
.ud-quick span {
  font-size: 11px;
  color: var(--muted);
}

.ud-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .ud-two-col { grid-template-columns: 1fr; }
  .user-dash-hero { flex-direction: column; }
  .ud-balance-card { text-align: left; }
}
.ud-card {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 14px 16px;
}
.ud-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--yellow);
}

.bank-form {
  max-width: 520px;
  margin-top: 12px;
}

/* Admin dash hero accent */
body.role-admin .inner-tabs.admin-only .tab[data-tab="admin"].active,
body.role-operator .inner-tabs.admin-only .tab[data-tab="admin"].active {
  background: linear-gradient(180deg, #f5c518, #c99500);
  color: #111;
}

/* Reuse cards / tables from functional UI */
.wallet-cards, .ops-grid, .live-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.stat-card {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 12px;
}
.stat-card span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.stat-card strong { font-size: 1.15rem; }
.stat-card.good { border-color: #1faa5966; }
.stat-card.profit { border-color: #f5c51866; }
.stat-card.profit strong { color: var(--yellow); }
.stat-card.bad { border-color: #e5393566; }
.stat-card.highlight { border-color: #1e88e566; }

.table-wrap {
  overflow: auto;
  border: 1px solid #2a3140;
  border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #2a3140; text-align: left; white-space: nowrap; }
th { background: #0f1218; color: var(--muted); position: sticky; top: 0; }

.info-box, .formula-box {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}
.info-box.warn { border-color: #f5c51866; background: #2a2008; }
.info-box h4 { margin: 0 0 8px; color: var(--yellow); }
.info-box ul, .info-box ol { margin: 0; padding-left: 18px; color: var(--muted); }
.formula-box pre { margin: 0; color: #7dcea0; font-size: 12px; white-space: pre-wrap; }

.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0;
}
.controls label {
  display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted);
}
.controls input {
  width: 120px; padding: 8px 10px; border-radius: 6px;
  border: 1px solid #3a4456; background: #0a0c10; color: var(--text);
}
.controls .btn-green, .controls .btn-yellow { width: auto; }

.game-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .game-layout { grid-template-columns: 1fr; }
  .hero-slide { min-height: clamp(160px, 42vw, 260px); }
}

.game-stage, .side-panel {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 10px;
  padding: 14px;
}
.stage-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.stage-header h2 { margin: 0; font-size: 1.1rem; }
.rtp-pill, .api-pill {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
}
.rtp-pill { background: #1faa5933; color: #7dcea0; }
.api-pill { background: #0a0c10; color: #9aa3b5; border: 1px solid #2a3140; }

/* Crash */
.crash-display {
  background: radial-gradient(circle at 50% 20%, #0c4a6e88, #05070b);
  border: 1px solid #164e63;
  border-radius: 12px;
  padding: 24px 12px;
  text-align: center;
  min-height: 200px;
}
.crash-mult { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 900; color: #4dd0e1; }
.crash-mult.crashed { color: #ef5350; }
.crash-mult.cashed { color: #66bb6a; }
.crash-status { color: var(--muted); margin-top: 6px; }
.crash-bar-wrap {
  height: 6px; background: #0a0c10; border-radius: 99px; max-width: 400px; margin: 16px auto 0; overflow: hidden;
}
.crash-bar { height: 100%; width: 0; background: linear-gradient(90deg, #26a69a, #f5c518); }

/* Crash PRO immersive */
.crash-pro-shell { max-width: 960px; margin: 0 auto; }
.crash-pro-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between;
  margin-bottom: 10px;
}
.crash-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1b1f16; border: 1px solid #66bb6a55; color: #a5d6a7;
  font-size: 11px; font-weight: 900; letter-spacing: .1em;
  padding: 5px 10px; border-radius: 999px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; animation: pulseLive 1s infinite;
}
@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.crash-pro-title { display: flex; gap: 10px; align-items: center; }
.crash-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.crash-pro-title strong { display: block; font-size: 15px; }
.crash-pro-title span { font-size: 11px; color: var(--muted); }
.crash-hud { display: flex; gap: 10px; }
.crash-hud > div {
  background: #0a0c10; border: 1px solid #2a3140; border-radius: 10px; padding: 8px 12px; min-width: 110px;
}
.crash-hud span { display: block; font-size: 10px; color: var(--muted); }
.crash-hud b { color: #f5c518; font-size: 13px; }

.crash-stage-pro {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1e3a5f;
  background: radial-gradient(ellipse at 30% 80%, #0c4a6e44, #05070b 55%);
  min-height: 320px;
  box-shadow: inset 0 0 60px #000a, 0 12px 30px #0008;
}
#crash-canvas {
  width: 100%; height: 320px; display: block;
}
.crash-overlay-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; z-index: 2;
}
.crash-mult-pro {
  font-size: clamp(3rem, 10vw, 4.5rem); font-weight: 900;
  color: #67e8f9; text-shadow: 0 0 30px #22d3ee88, 0 4px 0 #0008;
  font-variant-numeric: tabular-nums;
}
.crash-mult-pro.crashed { color: #f87171; text-shadow: 0 0 30px #ef444488; }
.crash-mult-pro.cashed { color: #4ade80; text-shadow: 0 0 30px #22c55e88; }
.crash-status-pro {
  margin-top: 6px; color: #cbd5e1; font-weight: 700; font-size: 14px;
  background: #0006; padding: 4px 14px; border-radius: 999px;
}
.crash-plane {
  position: absolute; right: 18%; bottom: 28%;
  font-size: 36px; filter: drop-shadow(0 4px 8px #000a);
  transition: transform .05s linear;
  z-index: 3;
}
.crash-bar-pro {
  position: absolute; left: 12px; right: 12px; bottom: 10px; max-width: none; margin: 0; z-index: 2;
  height: 5px; background: #ffffff15;
}
.crash-controls-pro {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px;
  margin-top: 12px; background: #12161f; border: 1px solid #2a3140;
  border-radius: 14px; padding: 14px;
}
@media (max-width: 800px) {
  .crash-controls-pro { grid-template-columns: 1fr; }
}
.crash-bet-box label { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.crash-bet-row { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.crash-bet-row input, .crash-bet-box input[type="number"] {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #3a4456;
  background: #0a0c10; color: #fff; font-weight: 800; font-size: 15px;
}
.crash-quick-bets { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.crash-action-col { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.btn-crash-bet {
  border: none; border-radius: 12px; padding: 16px 18px; font-weight: 900; font-size: 14px;
  letter-spacing: .06em; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #34d399, #059669); box-shadow: 0 4px 0 #065f46;
}
.btn-crash-out {
  border: none; border-radius: 12px; padding: 16px 18px; font-weight: 900; font-size: 14px;
  letter-spacing: .06em; cursor: pointer; color: #1a1000;
  background: linear-gradient(180deg, #fde68a, #f59e0b); box-shadow: 0 4px 0 #b45309;
}
.btn-crash-out:disabled, .btn-crash-bet:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.crash-result-pro {
  text-align: center; margin-top: 10px; min-height: 24px; font-weight: 800; font-size: 14px;
}
.crash-history-strip {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center;
}
.crash-chip {
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px;
  background: #1e293b; color: #94a3b8; border: 1px solid #334155;
}
.crash-chip.good { color: #86efac; border-color: #166534; background: #052e16; }
.crash-chip.bad { color: #fca5a5; border-color: #7f1d1d; background: #450a0a; }

body.is-logged #demo-banner { opacity: .55; font-size: 10px; }
body.th-playing #demo-banner,
body.playing-immersive #demo-banner { display: none; }

/* Slot pro play (no logs) */
.slot-play-shell {
  max-width: 920px;
  margin: 0 auto;
}
.slot-play-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; align-items: center;
}
.slot-brand { display: flex; gap: 10px; align-items: center; }
.slot-brand-logo { width: 52px; height: 52px; object-fit: contain; }
.slot-brand strong { display: block; font-size: 14px; }
.slot-brand span { font-size: 11px; color: var(--muted); }
.slot-play-hud {
  display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 8px;
}
.hud-item {
  background: #0a0c10; border: 1px solid #2a3140; border-radius: 10px; padding: 8px 10px; text-align: center;
}
.hud-item span { display: block; font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.hud-item b { font-size: 13px; color: var(--yellow); }
.hud-item.win b { color: #66bb6a; }
@media (max-width: 700px) {
  .slot-play-hud { grid-template-columns: 1fr 1fr; width: 100%; }
}

.slot-money-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px;
}
@media (max-width: 700px) { .slot-money-bar { grid-template-columns: 1fr 1fr; } }
.slot-money-item {
  background: #0a0c10; border: 1px solid #2a3140; border-radius: 8px; padding: 8px;
}
.slot-money-item span { display: block; font-size: 10px; color: var(--muted); }
.slot-money-item strong { font-size: 13px; color: var(--yellow); }

.slot-machine {
  background: linear-gradient(180deg, #1a1030, #0a0c10);
  border: 2px solid #6b21a8;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.slot-machine-pro {
  border: 3px solid #f5c518;
  box-shadow: 0 0 0 2px #7c3aed55, 0 16px 40px #000a, inset 0 0 40px #0006;
  background:
    radial-gradient(ellipse at 50% 0%, #7c3aed55, transparent 55%),
    linear-gradient(180deg, #1f1538, #08060f);
  padding: 16px;
  margin-bottom: 14px;
}
.slot-machine-chrome { position: relative; }
.slot-machine-title {
  text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .16em;
  color: #fde68a; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.slot-title-ico { width: 22px; height: 22px; }
.slot-reels {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  background: #05070b; border-radius: 10px; padding: 14px;
}
.slot-reels-pro {
  gap: 12px; padding: 18px 14px; border: 1px solid #3b0764;
  background: linear-gradient(180deg, #0c0a14, #05040a);
  box-shadow: inset 0 0 30px #000c;
}
.reel {
  min-height: 110px; border-radius: 10px; display: grid; place-items: center; font-size: 48px;
  background: linear-gradient(180deg, #2e1065, #0f172a); border: 1px solid #7c3aed;
}
.reel-pro {
  min-height: 140px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 30%, transparent 70%, rgba(0,0,0,.35)),
    linear-gradient(180deg, #2a1a4a, #120a22 50%, #1a1035);
  border: 2px solid #a855f7;
  box-shadow: inset 0 0 20px #0008, 0 0 12px #7c3aed33;
}
.reel-pro img {
  width: 72px; height: 72px; object-fit: contain;
  filter: drop-shadow(0 4px 8px #000a);
  pointer-events: none;
}
.slot-payline {
  position: absolute; left: 8%; right: 8%; top: 52%;
  height: 3px; background: linear-gradient(90deg, transparent, #f5c518, transparent);
  opacity: .55; pointer-events: none; z-index: 2;
}
.reel.spinning { animation: spin .1s linear infinite; }
.reel.win-glow { box-shadow: 0 0 24px #66bb6a, inset 0 0 16px #22c55e44; border-color: #66bb6a; }
@keyframes spin {
  from { filter: blur(2px); transform: translateY(-4px); }
  to { filter: blur(2px); transform: translateY(4px); }
}
.slot-win-banner {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ffe082, #f5c518);
  color: #111; font-weight: 900; padding: 10px 28px; border-radius: 999px;
  z-index: 5; letter-spacing: .12em; box-shadow: 0 8px 30px #f5c51888;
  animation: pop .25s ease;
}
@keyframes pop {
  from { transform: translate(-50%, -50%) scale(.7); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.slot-win-banner.hidden { display: none; }
.slot-result-bar {
  text-align: center; margin-top: 12px; min-height: 24px; font-weight: 700; font-size: 14px;
}
.slot-auto-status {
  text-align: center; margin-top: 6px; color: #f5c518; font-size: 12px; font-weight: 800;
  letter-spacing: .06em;
}
.slot-auto-status.hidden { display: none; }

.slot-controls-pro {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 14px;
  align-items: center;
  background: #12161f;
  border: 1px solid #2a3140;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
@media (max-width: 800px) {
  .slot-controls-pro { grid-template-columns: 1fr; }
}
.ctrl-label {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px;
}
.slot-bet-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.bet-chip {
  border: 1px solid #3a4456; background: #0a0c10; color: #c5cddd;
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bet-chip.active { background: linear-gradient(180deg, #ffd54f, #f0b400); color: #111; border: none; }
.slot-bet-input {
  width: 100%; max-width: 140px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #3a4456; background: #0a0c10; color: var(--text);
}
.slot-main-actions {
  display: flex; gap: 12px; align-items: center; justify-content: center;
}
.btn-spin-pro {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid #fde68a;
  background: radial-gradient(circle at 35% 30%, #fff3, transparent 40%),
    linear-gradient(160deg, #ffd54f, #d97706 55%, #92400e);
  color: #1a1000; font-weight: 900; font-size: 14px; letter-spacing: .06em;
  cursor: pointer; position: relative;
  box-shadow: 0 8px 24px #f59e0b66, inset 0 2px 0 #fff6;
}
.btn-spin-pro:disabled { opacity: .5; cursor: not-allowed; }
.btn-spin-pro:active:not(:disabled) { transform: scale(.96); }
.btn-auto-pro, .btn-auto-stop {
  min-width: 78px; min-height: 72px; border-radius: 14px; border: none;
  font-weight: 900; font-size: 12px; line-height: 1.25; cursor: pointer;
  letter-spacing: .04em;
}
.btn-auto-pro {
  background: linear-gradient(180deg, #2ecc71, #148a45);
  color: #fff; box-shadow: 0 4px 0 #0e5c2f;
}
.btn-auto-stop {
  background: linear-gradient(180deg, #ef5350, #c62828);
  color: #fff; box-shadow: 0 4px 0 #7f1d1d;
}
.btn-auto-stop.hidden, .btn-auto-pro.hidden { display: none; }
.slot-sess-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px;
}
.slot-sess-mini span { display: block; color: var(--muted); }
.slot-sess-mini b { color: var(--text); }
.slot-pay-details {
  background: #12161f; border: 1px solid #2a3140; border-radius: 10px; padding: 10px 12px;
}
.slot-pay-details summary {
  cursor: pointer; font-weight: 800; color: var(--yellow); font-size: 13px;
}

/* Auto spin overlay */
.auto-spin-overlay {
  position: fixed; inset: 0; z-index: 350;
  background: #000c;
  display: grid; place-items: center;
  padding: 16px;
}
.auto-spin-overlay.hidden { display: none; }
.auto-spin-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #1c2433, #0f131a);
  border: 2px solid #f5c51866;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px #000a;
  max-height: 92vh;
  overflow: auto;
}
.auto-spin-head {
  display: flex; justify-content: space-between; align-items: center;
}
.auto-spin-head h3 {
  margin: 0; letter-spacing: .14em; color: #fde68a; font-size: 1.1rem;
}
.auto-spin-sub { margin: 6px 0 14px; font-size: 12px; color: var(--muted); }
.auto-spin-section {
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #2a3140;
}
.auto-count-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.auto-count-btn {
  padding: 12px; border-radius: 10px; border: 1px solid #3a4456;
  background: #0a0c10; color: #eef2f7; font-weight: 900; font-size: 15px; cursor: pointer;
}
.auto-count-btn.active {
  background: linear-gradient(180deg, #ffd54f, #f0b400); color: #111; border: none;
}
.auto-speed-row { display: flex; flex-wrap: wrap; gap: 12px; }
.auto-check {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d7deea; cursor: pointer;
}
.auto-stop-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0; font-size: 13px; color: #d7deea;
}
.auto-num {
  width: 100px; padding: 6px 8px; border-radius: 6px;
  border: 1px solid #3a4456; background: #0a0c10; color: var(--text);
}
.auto-spin-foot { margin-top: 4px; }
.auto-sum { text-align: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.auto-sum b { color: var(--yellow); }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.pay-row {
  display: flex; justify-content: space-between; gap: 6px;
  background: #0a0c10; border: 1px solid #2a3140; border-radius: 8px; padding: 6px 8px; font-size: 11px;
}
.pay-row .rp { color: var(--yellow); font-weight: 800; }
.result-line { margin-top: 10px; font-weight: 700; min-height: 22px; }
.result-line.win { color: #66bb6a; }
.result-line.lose { color: #ef5350; }
.code-log {
  background: #05070b; border: 1px solid #2a3140; border-radius: 8px;
  padding: 10px; color: #7dcea0; font-size: 11px; max-height: 220px; overflow: auto; white-space: pre-wrap;
}
.history { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow: auto; }
.history li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid #2a3140; font-size: 12px; color: var(--muted);
}
.side-panel h3 { margin: 0 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.side-panel h3:not(:first-child) { margin-top: 14px; }
.slot-side-stats { background: #05070b; border: 1px solid #2a3140; border-radius: 8px; padding: 8px; margin-bottom: 10px; }
.slot-side-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; color: var(--muted); }
.slot-side-row b { color: var(--text); }

/* BGaming grid */
.bg-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.live-search, .bg-toolbar select, .admin-form-row input, .admin-form-row select {
  padding: 8px 10px; border-radius: 6px; border: 1px solid #3a4456;
  background: #0a0c10; color: var(--text); font-size: 13px;
}
.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.bg-card, .bg-card-game {
  background: var(--card);
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.bg-card:hover, .bg-card-game:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #0008;
}
.bg-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0c10;
  overflow: hidden;
}
.bg-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.72);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #f5c51888;
  opacity: 0;
  transition: .15s;
  pointer-events: none;
}
.bg-card:hover .bg-play-badge { opacity: 1; }
.bg-card-info { padding: 8px 10px 10px; }
.bg-card-thumb {
  height: 100px; border-radius: 8px; display: grid; place-items: center; font-size: 36px;
  background: linear-gradient(145deg, #1a2030, #0a0c10);
  margin-bottom: 8px;
  padding: 8px;
}
.bg-card-thumb img {
  max-width: 92%;
  max-height: 78px;
  object-fit: contain;
  display: block;
}
.bg-provider {
  font-size: 9px; font-weight: 800; color: var(--yellow); letter-spacing: .06em;
}
.bg-card h3, .bg-card-info h3 { margin: 4px 0; font-size: 12px; line-height: 1.25; }
.bg-meta, .bg-rtp { font-size: 10px; color: var(--muted); }
.bg-rtp { color: #7dcea0; font-weight: 700; }

/* ===== Game player fullscreen (langsung main) ===== */
.bg-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #000;
  display: none;
  padding: 0;
  margin: 0;
}
.bg-modal:not(.hidden) { display: block; }
.bg-modal .bg-iframe-wrap {
  position: absolute;
  inset: 0;
  background: #000;
  border: 0;
  border-radius: 0;
  min-height: 100%;
  overflow: hidden;
}
.bg-modal .bg-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  background: #000;
}
.bg-modal .bg-iframe-wrap.loaded iframe { display: block; }
.bg-modal .bg-iframe-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9aa3b5;
  text-align: center;
  padding: 20px;
  background: #050608;
}
.bg-modal .bg-iframe-wrap.loaded .bg-iframe-placeholder { display: none; }

/* Tombol tutup minimal (pojok) */
.bg-float-close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 420;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.bg-float-close:hover {
  background: #e53935;
  border-color: transparent;
}
body.bg-playing {
  overflow: hidden;
}
body.bg-playing .site-sticky-head {
  visibility: hidden;
  pointer-events: none;
}

/* Train heist fullscreen */
.th-shell { display: flex; flex-direction: column; gap: 0; }
.th-shell-fs {
  position: relative;
  min-height: calc(100vh - 120px);
  background: #000;
  border-radius: 0;
}
body.th-playing .th-shell-fs {
  position: fixed;
  inset: 0;
  z-index: 350;
  min-height: 100vh;
}
body.th-playing .th-stage {
  position: absolute;
  inset: 0;
  min-height: 100%;
}
body.th-playing .th-stage iframe {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
}
.th-float-close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 360;
}
.th-bar { display: none !important; }
.th-bar-left, .th-bar-right { display: none; }
.th-provider { display: none; }
.th-stage {
  position: relative; background: #000; border: 1px solid #2a3140; border-radius: 10px;
  min-height: 60vh; height: min(72vh, 780px); overflow: hidden;
}
.th-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.th-loading {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: #0a0c10; text-align: center; padding: 20px;
}
.th-loading.hidden { display: none; }
.th-spinner {
  width: 36px; height: 36px; margin: 0 auto 12px;
  border: 3px solid #2a3140; border-top-color: var(--yellow);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.th-stage.is-fullscreen {
  position: fixed; inset: 0; z-index: 400; height: 100vh; min-height: 100vh; border-radius: 0;
}

/* Live / admin */
.live-controls, .admin-tools {
  background: var(--card); border: 1px solid #2a3140; border-radius: 10px; padding: 12px; margin-bottom: 12px;
}
.live-controls label, .admin-form-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 8px;
}
.live-controls select {
  padding: 8px; border-radius: 6px; border: 1px solid #3a4456; background: #0a0c10; color: var(--text);
}
.live-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid #2a3140; font-size: 11px; font-weight: 800;
}
.live-status-pill.running { border-color: var(--green); color: #7dcea0; }
.live-status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #666;
}
.live-status-pill.running .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.live-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
@media (max-width: 1000px) { .live-layout { grid-template-columns: 1fr; } }
.live-players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px;
}
.player-card {
  background: var(--card); border: 1px solid #2a3140; border-radius: 8px; padding: 10px; font-size: 12px;
}
.player-card.flash-win { border-color: #66bb6a; }
.player-card.flash-lose { border-color: #ef5350; }
.player-card.flash-bet { border-color: var(--yellow); }
.pc-name { font-weight: 800; }
.pc-id { display: block; font-size: 10px; color: var(--muted); }
.pc-row { display: flex; justify-content: space-between; margin: 3px 0; color: var(--muted); }
.pc-row b { color: var(--text); }
.pc-bal { color: var(--yellow) !important; }
.live-feed {
  background: #05070b; border: 1px solid #2a3140; border-radius: 8px;
  max-height: 340px; overflow: auto; font-family: ui-monospace, monospace; font-size: 11px; padding: 6px;
}
.feed-item { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 5px; border-bottom: 1px solid #1a2030; color: #9aa3b5; }
.feed-item.win .body { color: #66bb6a; }
.feed-item.lose .body { color: #ef5350; }
.feed-item.sys .body { color: #64b5f6; }
.live-table-wrap { max-height: 380px; overflow: auto; }
.live-section-title {
  display: flex; justify-content: space-between; align-items: center; margin: 8px 0;
}
.live-section-title h3 { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.flow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
}
.flow-steps .step {
  background: var(--card); border: 1px solid #2a3140; border-radius: 10px; padding: 12px;
}
.flow-steps .step b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); margin-bottom: 8px; font-size: 12px;
}
.flow-steps p { margin: 0; font-size: 12px; color: var(--muted); }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .split-2 { grid-template-columns: 1fr; } }

body.th-playing .site-sticky-head,
body.th-playing .main-nav-wrap,
body.th-playing .site-footer,
body.th-playing #demo-banner,
body.bg-playing .site-sticky-head,
body.bg-playing .site-footer { display: none; }

.muted { color: var(--muted); }
.guest-only { }
body.is-logged .guest-only { display: none !important; }
body:not(.is-logged) .member-only { display: none !important; }

/* =========================================================
   MOBILE / RESPONSIVE � HP rapi (SEMPURNA JP)
   ========================================================= */
@media (max-width: 900px) {
  .container {
    padding: 10px 8px 18px;
  }

  /* Sticky head 1 baris: logo | marquee | LOGIN DAFTAR */
  .site-sticky-head {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }

  .main-header {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
  }
  .main-header .logo-wrap,
  .main-header .header-mid,
  .main-header .header-actions {
    justify-self: auto;
  }
  .logo-wrap { flex: 0 0 auto; }
  .header-mid {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .header-actions {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  .logo-img { display: none !important; }
  .logo-img-sm {
    display: block !important;
    height: 36px !important;
    width: 36px !important;
  }

  .ann-bar {
    padding: 3px 8px !important;
    min-height: 28px;
  }
  .marquee span {
    font-size: 11px !important;
    animation-duration: 22s !important;
  }

  .meta-icons {
    display: none !important;
  }

  .btn-hdr-login,
  .btn-hdr-daftar {
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    letter-spacing: 0.02em !important;
  }

  .user-pill {
    max-width: min(140px, 36vw);
    padding: 2px 6px 2px 2px;
    gap: 4px;
    font-size: 10px;
  }
  .user-pill .avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .user-pill > div {
    min-width: 0;
    overflow: hidden;
  }
  #chip-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
    font-size: 10px !important;
  }
  .user-pill .bal { font-size: 10px; }
  #chip-role {
    display: none !important;
  }
  .header-actions .btn-sm {
    padding: 5px 7px !important;
    font-size: 10px !important;
  }

  /* Nav: panah kiri/kanan + scroller (bukan wrap yang scroll) */
  .main-nav-wrap {
    overflow: visible;
    display: block;
  }
  .main-nav-scroller {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .main-nav,
  .main-nav-full {
    gap: 2px;
    padding: 6px 8px 8px;
    scroll-snap-type: x proximity;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    margin: 0;
  }
  .main-nav-full .nav-item,
  .nav-item {
    min-width: 58px;
    padding: 5px 5px;
    scroll-snap-align: start;
  }
  .main-nav-full .ni-img,
  .nav-item .ni-img {
    width: 28px;
    height: 28px;
  }
  .main-nav-full .nav-item span,
  .nav-item span {
    font-size: 8px;
    max-width: 56px;
  }
  .nav-fire {
    font-size: 7px;
    padding: 1px 3px;
  }

  /* Game grids 2 kolom di HP */
  .game-grid,
  .game-grid-lg,
  .hot-games-home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .bg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .g-body h3,
  .bg-card-info h3 {
    font-size: 11px;
  }
  .g-body p,
  .bg-meta,
  .bg-rtp {
    font-size: 9px;
  }
  .game-grid-lg .g-thumb {
    min-height: 88px;
    padding: 8px;
  }
  .game-grid-lg .g-thumb img {
    max-height: 72px;
  }

  /* Hero */
  .hero-carousel {
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .hero-slide {
    min-height: clamp(150px, 40vw, 220px) !important;
  }
  .hero-slide-hoki .hero-img-logo {
    object-fit: cover !important;
    object-position: center !important;
    padding: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
  .hero-slide .copy {
    padding: 12px 14px;
    max-width: 100%;
  }
  .hero-slide .copy h2 {
    font-size: 1.05rem;
  }
  .hero-slide .copy p {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .hero-slide .copy .btn {
    min-width: 0;
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Teaser / widgets */
  .hoki-teaser {
    padding: 8px 10px;
    gap: 8px;
  }
  .hoki-teaser-logo {
    width: 40px;
    height: 40px;
  }
  .hoki-teaser-text strong {
    font-size: 12px;
  }
  .hoki-teaser-text small {
    font-size: 10px;
  }
  .hoki-teaser-cta {
    padding: 6px 10px;
    font-size: 11px;
  }

  .home-widget-title {
    font-size: 14px;
  }
  .winners-card,
  .reco-card {
    min-width: 0;
  }

  /* Cat hero */
  .cat-hero {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .cat-hero h2 {
    font-size: 1.1rem;
  }

  /* Inner tabs */
  .inner-tabs {
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .inner-tabs .tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 7px 10px;
  }

  /* Wallet / stats */
  .wallet-cards,
  .ops-grid,
  .live-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stat-card {
    padding: 10px;
  }
  .stat-card strong {
    font-size: 1rem;
    word-break: break-word;
  }

  /* Tables */
  .table-wrap {
    margin: 0 -2px;
    border-radius: 8px;
  }
  table {
    font-size: 11px;
  }
  th, td {
    padding: 7px 8px;
  }

  /* Auth modals full-ish */
  .auth-overlay {
    padding: 8px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .auth-box,
  .auth-login-box,
  .auth-register-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(94vh, 960px);
    margin: 4px 0 16px;
  }
  .reg-layout {
    grid-template-columns: 1fr !important;
  }
  .reg-benefits {
    max-height: 140px;
    border-right: 0;
    border-bottom: 1px solid #2a3140;
  }
  .reg-benefits-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .reg-main {
    max-height: none;
    padding: 12px 10px;
  }
  .reg-type-tabs {
    grid-template-columns: 1fr;
  }
  .login-control,
  .reg-form .login-control {
    font-size: 16px; /* cegah zoom iOS */
  }

  /* Hoki ad popup */
  .hoki-ad-overlay {
    padding: 8px;
    align-items: flex-start;
  }
  .hoki-ad-box {
    width: 100%;
    max-height: 94vh;
  }
  .hoki-table {
    min-width: 320px;
    font-size: 11px;
  }
  .hoki-cta-row {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-inner {
    padding: 14px 10px 20px;
  }
  .footer-menu-bar {
    flex-wrap: wrap;
    gap: 6px 8px;
    justify-content: center;
    font-size: 12px;
  }
  .footer-cols,
  .footer-grid,
  .footer-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .footer-col {
    min-width: 0;
  }
  .footer-logo {
    height: 44px;
    max-width: 160px;
  }

  /* Provider strips */
  .provider-row,
  .provider-row-img {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .prov-img {
    flex: 0 0 auto;
  }
  .prov-img img {
    height: 28px;
    width: auto;
  }

  /* CS widget mobile */
  .cs-widget.lc-style {
    right: 10px;
    bottom: 10px;
  }
  .cs-panel {
    width: min(100vw - 16px, 360px) !important;
    max-height: min(70vh, 520px) !important;
    right: 0;
  }

  /* Admin / dash */
  .ud-quick-grid,
  .admin-fast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .dash-hero,
  .user-dash-hero {
    padding: 12px;
  }
  .sec-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sec-head h2 {
    font-size: 1.05rem;
  }

  /* Promo list */
  .promo-item {
    grid-template-columns: 1fr !important;
  }
  .promo-item img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
  }

  /* Topup */
  .topup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Crash / game stages */
  .crash-pro-top {
    gap: 8px;
  }
  .crash-hud {
    width: 100%;
  }

  /* Prevent long text overflow */
  .panel,
  .cat-hero,
  .home-widget,
  .sec-head,
  .g-body,
  .bg-card-info {
    min-width: 0;
  }
}

/* HP kecil */
@media (max-width: 420px) {
  .main-header {
    gap: 4px !important;
    padding: 5px 6px !important;
  }
  .btn-hdr-login,
  .btn-hdr-daftar {
    padding: 5px 8px !important;
    font-size: 10px !important;
    min-height: 30px !important;
  }
  .user-pill {
    max-width: 34vw;
  }
  #chip-name {
    max-width: 56px;
  }
  .header-actions .btn-sm {
    padding: 4px 6px !important;
    font-size: 9px !important;
  }
  .main-nav-full .nav-item,
  .nav-item {
    min-width: 56px;
  }
  .game-grid,
  .game-grid-lg,
  .hot-games-home,
  .bg-grid {
    gap: 6px !important;
  }
  .container {
    padding: 8px 6px 16px;
  }
  .wallet-cards,
  .ops-grid,
  .live-kpi {
    grid-template-columns: 1fr 1fr;
  }
  .jp-bar {
    padding: 10px 8px;
  }
  .jp-amount,
  .jp-digits .jp-amount {
    font-size: clamp(0.95rem, 5vw, 1.25rem) !important;
  }
  .hoki-teaser-text small {
    display: none;
  }
}

/* Landscape HP */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-slide {
    min-height: 160px;
  }
  .main-nav-full .nav-item {
    min-width: 70px;
  }
  .auth-overlay {
    align-items: flex-start;
  }
}

/* Safe area (notch) */
@supports (padding: max(0px)) {
  .site-sticky-head {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  .cs-widget.lc-style {
    bottom: max(10px, env(safe-area-inset-bottom));
    right: max(10px, env(safe-area-inset-right));
  }
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ===== Admin analytics (trafik + profit bulanan) ===== */
.admin-analytics {
  margin-bottom: 14px;
}
.admin-an-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-period-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-period-btn {
  border: 1px solid #3a4254;
  background: #151a24;
  color: #c8d0dc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}
.admin-period-btn:hover {
  border-color: #f5c51888;
  color: #fff;
}
.admin-period-btn.active {
  background: linear-gradient(135deg, #f5c518, #d4a017);
  border-color: #f5c518;
  color: #1a1200;
}
.admin-profit-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2ecc7144;
  background: linear-gradient(135deg, #0f1f16 0%, #12161f 55%, #1a1510 100%);
}
.admin-profit-banner.is-loss {
  border-color: #e5393544;
  background: linear-gradient(135deg, #1f1010 0%, #12161f 55%, #1a1210 100%);
}
.admin-profit-banner.is-ok {
  border-color: #2ecc7166;
}
.admin-profit-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-profit-label {
  font-size: 12px;
  color: #9aa5b8;
  font-weight: 700;
}
.admin-profit-main strong {
  font-size: 1.65rem;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.admin-profit-banner.is-loss .admin-profit-main strong {
  color: #ff6b6b;
}
.admin-profit-sub {
  font-size: 12px;
  font-weight: 800;
  color: #2ecc71;
}
.admin-profit-banner.is-loss .admin-profit-sub {
  color: #ff8a80;
}
.admin-profit-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  align-content: center;
}
.admin-profit-side div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-profit-side span {
  font-size: 10px;
  color: #8b95a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-profit-side b {
  font-size: 13px;
  color: #e8edf5;
}
.admin-an-sec {
  margin: 14px 0 6px;
  font-size: 12px;
  color: #9aa5b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-an-grid .stat-card strong {
  font-size: 1.05rem;
}
.admin-an-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.admin-an-chart-box {
  background: #0f1218;
  border: 1px solid #2a3140;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.admin-an-chart-title {
  font-size: 12px;
  font-weight: 800;
  color: #c8d0dc;
  margin-bottom: 8px;
}
#admin-chart-30d {
  width: 100%;
  height: auto;
  max-height: 200px;
  display: block;
  background: #0a0d12;
  border-radius: 8px;
}
.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #9aa5b8;
}
.admin-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.admin-chart-legend .lg-dep { background: #2ecc71; }
.admin-chart-legend .lg-ggr { background: #f5c518; }
.admin-chart-legend .lg-wd { background: #e53935; }
.admin-month-table {
  font-size: 11px;
}
.admin-month-table .st-ok { color: #2ecc71; font-weight: 800; }
.admin-month-table .st-loss { color: #ff6b6b; font-weight: 800; }
.admin-month-table .st-flat { color: #9aa5b8; font-weight: 700; }
@media (max-width: 900px) {
  .admin-profit-banner,
  .admin-an-charts {
    grid-template-columns: 1fr;
  }
  .admin-profit-side {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Admin LIVE sync toast & feed ===== */
.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc7166;
  color: #2ecc71;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.admin-live-pill.pulse {
  animation: admin-live-pulse 0.9s ease;
}
@keyframes admin-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
}
.admin-live-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #9aa5b8;
}
.admin-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  animation: admin-dot 1.4s ease infinite;
}
@keyframes admin-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}
.admin-live-feed {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a3140;
  background: #0e1219;
  max-height: 180px;
  overflow: auto;
}
.admin-live-empty {
  font-size: 12px;
  color: #8b95a8;
}
.admin-live-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid #1a2030;
  font-size: 12px;
  color: #d7deea;
}
.admin-live-item:last-child { border-bottom: 0; }
.admin-live-time {
  flex: 0 0 64px;
  color: #8b95a8;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.admin-live-register .admin-live-msg b { color: #2ecc71; }
.admin-live-topup .admin-live-msg b { color: #f5c518; }
.admin-new-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
  animation: admin-tag-blink 1s ease infinite;
}
@keyframes admin-tag-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
tr.admin-row-new {
  background: rgba(46, 204, 113, 0.08) !important;
}
tr.admin-row-new td {
  border-color: #2ecc7133;
}
.admin-toast-host {
  position: fixed;
  top: 72px;
  right: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: #151a24;
  border: 1px solid #3a4456;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  color: #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s, transform 0.25s;
}
.admin-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.admin-toast strong {
  font-size: 13px;
}
.admin-toast span {
  font-size: 12px;
  color: #b8c0d0;
}
.admin-toast-register {
  border-color: #2ecc7166;
  border-left: 3px solid #2ecc71;
}
.admin-toast-topup {
  border-color: #f5c51866;
  border-left: 3px solid #f5c518;
}
@media (max-width: 560px) {
  .admin-toast-host {
    top: auto;
    bottom: 70px;
    right: 8px;
    left: 8px;
    max-width: none;
  }
}

/* CS welcome bubbles (member baru) */
.cs-welcome-bubble .cs-bubble-text {
  white-space: normal;
  line-height: 1.45;
  font-size: 13px;
}
.cs-welcome-bubble {
  border-left: 3px solid #2ecc71;
}
