/* ═══════════════════════════════════════════════
   NEXAPLAY V3 — nx.css  (mobile-first redesign)
   No inline styles — semua pakai CSS classes
═══════════════════════════════════════════════ */

:root {
  /* ── Tema Biru Aqua (sesuai logo) ── */
  --nx-bg:      #050c14;
  --nx-bg2:     #081018;
  --nx-bg3:     #0c1820;
  --nx-card:    #0d1e2a;
  --nx-border:  #153044;
  --nx-border2: #1d3d55;
  --nx-text:    #d8eef8;
  --nx-muted:   #3a5870;
  --nx-muted2:  #6a9ab8;
  /* Aksen utama: aqua/cyan dari logo */
  --nx-green:   #00c8e8;
  --nx-green2:  #009ec0;
  --nx-cyan:    #00e0ff;
  --nx-gold:    #f0c040;
  --nx-gold2:   #c8960a;
  --nx-purple:  #5a7af0;
  --nx-red:     #f05060;
  --nx-orange:  #f5a020;
  --nx-radius:  12px;
  --nx-shadow:  0 8px 40px rgba(0,0,0,.5);
  --nx-topbar:  56px;
  --nx-bnav:    62px;
}

/* ── Base ── */
body { background: var(--nx-bg); color: var(--nx-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; }
*, *::before, *::after { box-sizing: border-box; }
.hidden { display: none !important; }
.nx-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--nx-green); text-transform: uppercase; margin-bottom: 5px; display: block; }
.nx-muted-text { color: var(--nx-muted2); font-size: 13px; margin-bottom: 12px; }

/* ── Utility classes (replaces all inline styles) ── */
.nx-c-green   { color: var(--nx-green); }
.nx-c-red     { color: var(--nx-red); }
.nx-c-gold    { color: var(--nx-gold); }
.nx-c-muted   { color: var(--nx-muted); }
.nx-c-muted2  { color: var(--nx-muted2); }
.nx-fw-700    { font-weight: 700; }
.nx-fw-800    { font-weight: 800; }
.nx-fw-900    { font-weight: 900; }
.nx-fs-9      { font-size: 9px; }
.nx-fs-10     { font-size: 10px; }
.nx-fs-11     { font-size: 11px; }
.nx-fs-12     { font-size: 12px; }
.nx-fs-13     { font-size: 13px; }
.nx-fs-14     { font-size: 14px; }
.nx-mb-4      { margin-bottom: 4px; }
.nx-mb-8      { margin-bottom: 8px; }
.nx-mb-12     { margin-bottom: 12px; }
.nx-mb-14     { margin-bottom: 14px; }
.nx-mt-12     { margin-top: 12px; }
.nx-mt-14     { margin-top: 14px; }
.nx-ta-center { text-align: center; }
.nx-ta-right  { text-align: right; }
.nx-p-16      { padding: 16px; }
.nx-p-24      { padding: 24px; }
.nx-p-32      { padding: 32px; }
.nx-d-block   { display: block; }
.nx-d-flex    { display: flex; }
.nx-ai-center { align-items: center; }
.nx-gap-4     { gap: 4px; }
.nx-gc-full   { grid-column: 1 / -1; }
.nx-pe-none   { pointer-events: none; }
.nx-opacity-4 { opacity: .4; }
.nx-w-full    { width: 100%; }
.nx-mw-480    { max-width: 480px; }
.nx-cur-ptr   { cursor: pointer; }
.nx-ls-3      { letter-spacing: 3px; }
.nx-font-mono { font-family: monospace; }
.nx-rel       { position: relative; }

/* Slide backgrounds */
.nx-slide-bg-1 { background: linear-gradient(135deg,#0d1f2e,#061017); }
.nx-slide-bg-2 { background: linear-gradient(135deg,#1a0d2e,#06040f); }

/* Empty/muted state blocks */
.nx-empty-state { color: var(--nx-muted); text-align: center; padding: 32px; }
.nx-empty-state-gc { color: var(--nx-muted); text-align: center; padding: 32px; grid-column: 1 / -1; }
.nx-muted-sm { color: var(--nx-muted); font-size: 13px; }
.nx-muted-p { color: var(--nx-muted); }

/* Table empty rows */
.nx-td-empty { text-align: center; color: var(--nx-muted); padding: 24px; }

/* Confirm box */
.nx-confirm-ok { color: var(--nx-green); font-weight: 700; font-size: 14px; }

/* Bet row number cell */
.nx-bet-rn { color: var(--nx-muted); font-size: 11px; width: 28px; }

/* Bet select col */
.nx-bet-sel-wrap { width: 100%; min-width: 90px; }

/* Bet stake col */
.nx-stake-w { width: 110px; }

/* Bet bolak-balik label */
.nx-bb-label { display: flex; align-items: center; gap: 4px; font-size: 11px; cursor: pointer; }
.nx-bb-chk   { width: 14px; accent-color: var(--nx-gold); }

/* Game art position */



/* Badge: handled by app.css .top-badge */

/* Pagination ellipsis */
.nx-pg-ellipsis { pointer-events: none; opacity: .4; }

/* Withdraw history head */
.nx-wd-hist-head { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.nx-wd-item-right { text-align: right; }

/* Account card type badge */
.nx-acc-type { font-size: 9px; color: var(--nx-muted); margin-bottom: 4px; }

/* Deposit pay link */
.nx-dep-pay-link { margin-top: 12px; display: inline-flex; }

/* Market card status color */
.nx-mkt-online { color: var(--nx-green); }
.nx-mkt-closed { color: var(--nx-muted); }

/* Memo preview */
.nx-memo-prev-subject { color: var(--nx-green); font-weight: 700; font-size: 13px; }
.nx-memo-prev-body    { font-size: 12px; color: var(--nx-muted2); margin: 2px 0 0; }
.nx-memo-prev-hr      { border: 0; border-top: 1px solid var(--nx-border); margin: 8px 0; }

/* Referral section */
.nx-ref-mt { margin-top: 14px; }
.nx-ref-section-head { margin-bottom: 14px; font-size: 15px; font-weight: 700; }

/* Password form section */
.nx-pw-head { margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.nx-pw-wrap { max-width: 480px; }

/* ── Shell ── */
.nx-shell { min-height: 100dvh; display: flex; flex-direction: column; background: var(--nx-bg); }
.nx-main { flex: 1; padding: 16px 16px calc(var(--nx-bnav) + 16px); max-width: 1280px; margin: 0 auto; width: 100%; }

/* ── Topbar ── */
.nx-topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nx-topbar);
  background: rgba(5,12,20,.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nx-border);
  /* grid 3 kolom: hamburger | logo | right */
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  padding: 0 12px;
  gap: 0;
}
.nx-menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: 0; cursor: pointer; padding: 6px;
  justify-self: start;
}
.nx-menu-btn span { height: 2px; background: var(--nx-text); border-radius: 2px; }
.nx-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -.5px; color: var(--nx-text); }
.nx-brand strong { color: var(--nx-green); }
.nx-brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--nx-green), var(--nx-cyan)); color: #002235; font-size: 14px; font-weight: 900; font-style: italic; display: grid; place-items: center; flex-shrink: 0; }

/* ── Logo upload (10:3 ratio) ── */
.nx-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.nx-logo-img  { height: 40px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.nx-brand-fallback { display: none; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.5px; color: var(--nx-text); }
.nx-brand-fallback strong { color: var(--nx-green); }

/* Logo center: pakai grid kolom tengah, tidak perlu absolute lagi */
.nx-logo-center { position: static; transform: none; }
/* Placeholder tidak diperlukan lagi tapi tetap ada untuk compat */
.nx-topbar-right-placeholder { width: 44px; }
.nx-topnav { display: none; flex: 1; justify-content: center; gap: 2px; }
.nx-topnav-item { padding: 6px 12px; border: 0; background: none; color: var(--nx-muted2); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 7px; transition: color .15s, background .15s; }
.nx-topnav-item:hover, .nx-topnav-item.active { background: rgba(255,255,255,.06); color: var(--nx-text); }
.nx-topnav-item.active { color: var(--nx-green); }
.nx-topbar-right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nx-wallet-btn { display: flex; flex-direction: column; align-items: flex-end; background: var(--nx-card); border: 1px solid var(--nx-border2); border-radius: 9px; padding: 5px 9px; cursor: pointer; max-width: 110px; }
.nx-wallet-label { font-size: 9px; color: var(--nx-muted); letter-spacing: 1px; }
.nx-wallet-val { font-size: 12px; font-weight: 800; color: var(--nx-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.nx-avatar-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--nx-green), var(--nx-cyan)); color: #002030; font-weight: 800; cursor: pointer; font-size: 14px; }

/* ── Bottom nav ── */
.nx-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; height: calc(var(--nx-bnav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(8,12,16,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--nx-border); display: flex; justify-content: space-around; align-items: center; overflow: hidden; }
.nx-bnav-item { flex: 1; border: 0; background: none; color: var(--nx-muted2); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; cursor: pointer; font-family: inherit; min-width: 0; }
.nx-bnav-item span { font-size: 18px; display: block; }
.nx-bnav-item b { font-size: 8px; font-weight: 600; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nx-bnav-item.active, .nx-bnav-item:active { color: var(--nx-green); }

/* ── Buttons ── */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: opacity .15s, transform .1s; white-space: nowrap; }
.nx-btn:hover { opacity: .85; }
.nx-btn:active { transform: scale(.97); }
.nx-btn:disabled { opacity: .4; cursor: not-allowed; }
.nx-btn-primary { background: var(--nx-green); color: #ffffff; }
.nx-btn-ghost   { background: var(--nx-card); color: var(--nx-text); border-color: var(--nx-border); }
.nx-btn-glass   { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.nx-btn-gold    { background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold2)); color: #160e00; }
.nx-btn-white   { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.nx-btn-danger  { background: rgba(240,80,80,.12); color: var(--nx-red); border-color: rgba(240,80,80,.3); }
.nx-btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 7px; }
.nx-btn-lg { padding: 13px 22px; font-size: 14px; border-radius: 10px; }

/* ── Hero ── */
.nx-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.nx-slider { position: relative; }
.nx-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  display: flex; align-items: center; padding: 28px 24px; gap: 16px;
  transition: opacity .4s, visibility .4s;
}
/* Tinggi slider mengikuti slide aktif */
.nx-slide.active { position: relative; opacity: 1; visibility: visible; }
.nx-slide:not(.active) { position: absolute; }
.nx-slide.active { opacity: 1; visibility: visible; position: relative; }
.nx-slide-copy { flex: 1; min-width: 0; }
.nx-slide-copy h1 { font-size: clamp(24px, 6vw, 52px); line-height: 1; letter-spacing: -1.5px; margin: 6px 0 12px; }
.nx-slide-copy h1 em { font-style: normal; color: var(--nx-green); }
.nx-slide-sub { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 16px; max-width: 420px; }
.nx-slide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nx-slide-visual { display: none; width: 180px; flex-shrink: 0; justify-content: center; align-items: center; position: relative; }
.nx-orb { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--nx-green), var(--nx-cyan)); display: grid; place-items: center; font-size: 36px; font-weight: 900; color: #002030; box-shadow: 0 0 60px rgba(0,200,232,.35); }
.nx-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.nx-rings div { position: absolute; border-radius: 50%; border: 1px solid rgba(0,200,232,.20); }
.nx-rings div:nth-child(1) { width: 130px; height: 130px; }
.nx-rings div:nth-child(2) { width: 170px; height: 170px; border-color: rgba(34,212,232,.12); }
.nx-slide-visual-lot { flex-direction: column; gap: 12px; }
.nx-lot-preview { display: flex; gap: 6px; }
.nx-lot-preview span { width: 44px; height: 52px; background: rgba(240,192,64,.1); border: 2px solid rgba(240,192,64,.4); border-radius: 9px; display: grid; place-items: center; font-size: 26px; font-weight: 900; font-family: monospace; color: var(--nx-gold); }
.nx-lot-types { font-size: 11px; color: var(--nx-muted2); letter-spacing: .5px; }
/* slider arrows removed */
.nx-slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.nx-slider-dots button { width: 18px; height: 4px; border: 0; border-radius: 99px; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.nx-slider-dots button.active { background: var(--nx-green); width: 28px; }

/* ── Ticker ── */
.nx-ticker {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,200,232,.10);
  border-top: 1px solid rgba(0,200,232,.18);
  border-bottom: 1px solid rgba(0,200,232,.18);
  border-left: 0; border-right: 0;
  border-radius: 0;
  padding: 9px 16px;
  /* bleed ke semua sisi: atas nempel topbar, kiri-kanan ke tepi */
  margin-top: -16px;
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: 0;
  overflow: hidden;
}
.nx-ticker-dot { color: var(--nx-green); font-size: 10px; flex-shrink: 0; animation: blink 1.4s infinite; }
.nx-ticker-track { font-size: 13px; white-space: nowrap; overflow: hidden; }
@keyframes blink { 50% { opacity: .3; } }

/* ── Market strip ── */
.nx-market-strip { margin-bottom: 14px; }
/* ── Market cards di home — pakai grid nx-psr-card ── */
.nx-market-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width: 640px) { .nx-market-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .nx-market-cards { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Compat class lama — tidak dipakai lagi */
.nx-market-card { display: contents; }
.nx-market-card-header, .nx-mc-name, .nx-mc-status,
.nx-market-result, .nx-market-footer, .nx-mc-cutoff { display: none; }
.nx-market-result { font-size: 24px; font-weight: 900; font-family: monospace; letter-spacing: 3px; color: var(--nx-gold); margin: 4px 0; }
.nx-market-result.empty { font-size: 13px; color: var(--nx-muted); font-family: inherit; font-weight: 400; letter-spacing: 0; }
.nx-market-footer { display: flex; justify-content: space-between; font-size: 10px; color: var(--nx-muted2); margin-top: 5px; }
.nx-market-skel { min-height: 90px; border-radius: 11px; background: linear-gradient(90deg,var(--nx-card),var(--nx-bg3),var(--nx-card)); background-size: 200%; animation: skel 1.5s infinite; }
@keyframes skel { to { background-position: -200%; } }

/* ── Promo row ── */
.nx-promo-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.nx-promo { border-radius: 14px; padding: 20px 18px; min-height: 170px; position: relative; overflow: hidden; }
.nx-promo::after { content: ''; position: absolute; width: 120px; height: 120px; border: 28px solid rgba(255,255,255,.06); border-radius: 50%; right: -30px; bottom: -40px; }
.nx-promo-green  { background: linear-gradient(135deg, #1ab96a, #0a5c38); }
.nx-promo-purple { background: linear-gradient(135deg, #5a3ec8, #1a0e52); }
.nx-promo-gold   { background: linear-gradient(135deg, #c8960a, #6b4e00); }
.nx-promo h3 { font-size: 18px; margin: 8px 0 5px; line-height: 1.2; }
.nx-promo p { font-size: 12px; color: rgba(255,255,255,.75); margin: 0 0 10px; }
.nx-promo .nx-eyebrow { color: rgba(255,255,255,.6); }

/* ── Member dashboard ── */
.nx-member-dash { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--nx-card), var(--nx-bg3)); border: 1px solid var(--nx-border); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.nx-member-greeting { display: flex; align-items: center; gap: 12px; flex: 1; }
.nx-member-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--nx-green), var(--nx-cyan)); color: #002030; font-size: 22px; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.nx-member-greeting h2 { font-size: 20px; letter-spacing: -.3px; margin: 2px 0 0; }
.nx-member-balance-card { background: var(--nx-bg2); border: 1px solid var(--nx-border2); border-radius: 12px; padding: 14px 18px; text-align: right; flex-shrink: 0; }
.nx-balance-label { font-size: 9px; color: var(--nx-muted); letter-spacing: 1.2px; }
.nx-balance-val { font-size: 22px; font-weight: 800; color: var(--nx-green); margin: 3px 0 10px; }
.nx-balance-actions { display: flex; gap: 8px; justify-content: flex-end; }
.nx-quick-actions { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.nx-quick-actions button, .nx-quick-actions a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 13px 6px; border: 1px solid var(--nx-border); border-radius: 10px; background: var(--nx-card); color: var(--nx-text); cursor: pointer; text-decoration: none; font-size: 11px; font-weight: 600; transition: border-color .15s, background .15s; font-family: inherit; }
.nx-quick-actions button:hover, .nx-quick-actions a:hover { border-color: var(--nx-green); background: rgba(0,200,232,.06); color: var(--nx-green); }
.nx-quick-actions span { font-size: 22px; }
.nx-memo-preview { background: rgba(0,200,232,.06); border: 1px solid rgba(0,200,232,.20); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* ── Views ── */
.nx-view { padding-bottom: 8px; }
.nx-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.nx-view-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.nx-mode-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 10px; font-weight: 700; letter-spacing: .5px; background: rgba(0,200,232,.10); color: var(--nx-green); border: 1px solid rgba(0,200,232,.25); }
.nx-mode-tag::before { content: '●'; font-size: 8px; margin-right: 4px; }
.nx-mode-lot { background: rgba(240,192,64,.1); color: var(--nx-gold); border-color: rgba(240,192,64,.25); }
.nx-secure-tag { font-size: 11px; color: var(--nx-green); border: 1px solid rgba(0,200,232,.30); border-radius: 99px; padding: 3px 9px; }

/* ── Games ── */
/* Provider grid — compact like bank picker */
.nx-prov-grid-wrap { margin-bottom: 4px; }
.nx-prov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px; margin-bottom: 12px;
}
/* ── Provider grid lama (compat) ── */
.nx-prov-btn {
  padding: 11px 8px; background: var(--nx-card);
  border: 1.5px solid var(--nx-border); border-radius: 10px;
  color: var(--nx-text); font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nx-prov-btn:hover  { border-color: var(--nx-green); color: var(--nx-green); background: rgba(0,200,232,.05); }
.nx-prov-btn.active { border-color: var(--nx-green); background: rgba(0,200,232,.12); color: var(--nx-green); }

/* ══════════════════════════════════════════════════
   Provider Cards — tampilan gambar seperti referensi
   ══════════════════════════════════════════════════ */
#nxProviderTabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 4px 0 12px;
}
.nx-prov-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .15s, opacity .15s;
}
.nx-prov-card:hover {
  transform: translateY(-3px);
  opacity: .88;
}
.nx-prov-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-bg3);
}
/* Banner gambar — contain agar tidak kepotong */
.nx-prov-card-bg {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
}
/* Gradient fallback — diisi via JS */
.nx-prov-card-grad {
  position: absolute; inset: 0;
  border-radius: 12px;
}
/* Nama provider di bawah banner */
.nx-prov-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-text);
  text-align: center;
  letter-spacing: .3px;
  padding: 2px 4px 6px;
  width: 100%;
  word-break: break-word;
  line-height: 1.3;
}

@media (min-width: 480px) {
  #nxProviderTabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 768px) {
  #nxProviderTabs { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  #nxProviderTabs { grid-template-columns: repeat(5, minmax(0,1fr)); }
}


/* Chosen provider bar */
.nx-prov-chosen {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(0,200,232,.06); border: 1px solid rgba(0,200,232,.20);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.nx-prov-back {
  background: none; border: 1px solid var(--nx-border2); border-radius: 8px;
  color: var(--nx-muted2); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; padding: 6px 12px;
}
.nx-prov-back:hover { color: var(--nx-text); border-color: var(--nx-border); }
#nxProvChosenName { font-size: 13px; font-weight: 700; color: var(--nx-green); }

/* Keep old class for compatibility */
.nx-provider-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-bottom: 12px; }
.nx-provider-tabs::-webkit-scrollbar { display: none; }
.nx-provider-tab { flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--nx-border); border-radius: 99px; background: var(--nx-card); color: var(--nx-muted2); font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; font-family: inherit; white-space: nowrap; }
.nx-provider-tab.active { background: var(--nx-green); color: #ffffff; border-color: transparent; }
.nx-search-bar { display: flex; align-items: center; gap: 10px; background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.nx-search-bar span { color: var(--nx-muted); font-size: 18px; }
.nx-search-bar input { flex: 1; background: none; border: 0; color: var(--nx-text); font-size: 14px; outline: none; font-family: inherit; }
.nx-search-clear { background: none; border: 0; color: var(--nx-muted); cursor: pointer; font-size: 16px; }
/* ── Game grid ─────────────────────────────────────────────────────────────── */
/* app.css sudah handle .game-grid, .game-card, .game-art dengan benar          */
/* Hanya tambah skeleton loader dan count label                                  */
.nx-game-skel { border-radius: 8px; aspect-ratio: 4/3; background: var(--nx-card); animation: skel 1.5s infinite; }
.nx-game-count { font-size: 12px; color: var(--nx-muted); margin: 10px 0 4px; }

/* ── View More button ── */
.nx-view-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 4px;
  background: var(--nx-card);
  border: 1px dashed var(--nx-border2);
  border-radius: 10px;
  color: var(--nx-muted2);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.nx-view-more-btn:hover {
  background: rgba(0,200,232,.06);
  border-color: var(--nx-green);
  color: var(--nx-green);
}
.nx-view-more-count {
  background: rgba(0,200,232,.12);
  color: var(--nx-green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.nx-pagination { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.nx-page-btn { min-width: 36px; height: 36px; border: 1px solid var(--nx-border); border-radius: 7px; background: var(--nx-card); color: var(--nx-text); cursor: pointer; font-size: 13px; font-family: inherit; }
.nx-page-btn.active { background: var(--nx-green); color: #ffffff; border-color: transparent; font-weight: 800; }


/* Slide backgrounds (replaces inline style) */
.nx-slide-bg-1 { background: linear-gradient(135deg,#0d1f2e,#061017); }
.nx-slide-bg-2 { background: linear-gradient(135deg,#1a0d2e,#06040f); }

/* ── Lottery mobile-first ─────────────────────────────────────────────────── */
#viewLottery { padding-bottom: 80px; }
.nx-lot-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--nx-border); margin-bottom: 12px; }
.nx-lot-tab  { flex: 1; text-align: center; padding: 11px 8px; border: 0; background: none; color: var(--nx-muted2); font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nx-lot-tab.active { color: var(--nx-gold); border-bottom-color: var(--nx-gold); }

/* Market buttons - horizontal scroll on mobile */
.nx-lot-markets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-bottom: 12px; }
.nx-lot-markets::-webkit-scrollbar { display: none; }
.nx-lot-mkt-btn { flex: 0 0 auto; min-width: 120px; padding: 10px 12px; border: 1px solid var(--nx-border); border-left: 3px solid var(--nx-border); border-radius: 10px; background: var(--nx-card); cursor: pointer; text-align: left; font-family: inherit; }
.nx-lot-mkt-btn b { display: block; font-size: 12px; color: var(--nx-text); white-space: nowrap; }
.nx-lot-mkt-btn small { display: block; font-size: 10px; color: var(--nx-muted2); margin-top: 2px; }
.nx-lot-mkt-btn.online  { border-left-color: var(--nx-green); }
.nx-lot-mkt-btn.tutup   { border-left-color: var(--nx-orange); }
.nx-lot-mkt-btn.offline { border-left-color: var(--nx-red); opacity: .6; }
.nx-lot-mkt-btn.active  { background: rgba(240,192,64,.06); border-color: rgba(240,192,64,.4); }
.nx-lot-mkt-skel { flex: 0 0 120px; min-height: 56px; border-radius: 10px; background: var(--nx-card); animation: skel 1.5s infinite; }

/* Info bar - grid 3 col on mobile, 6 on desktop */
.nx-lot-info { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--nx-bg); border: 1px solid var(--nx-border); border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
.nx-lot-info > div { padding: 8px 10px; background: var(--nx-bg2); }
.nx-lot-info small { display: block; font-size: 9px; color: var(--nx-muted); letter-spacing: .5px; text-transform: uppercase; }
.nx-lot-info b { display: block; font-size: 12px; margin-top: 2px; }
.nx-lot-info b.green { color: var(--nx-green); }
.nx-lot-info b.red   { color: var(--nx-red); }

/* Game type tabs - scrollable */
.nx-game-type-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; padding: 2px; }
.nx-game-type-tabs::-webkit-scrollbar { display: none; }
.nx-gt-tab { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--nx-border); border-radius: 8px; background: var(--nx-card); color: var(--nx-muted2); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nx-gt-tab.active { background: rgba(240,192,64,.1); color: var(--nx-gold); border-color: rgba(240,192,64,.3); }

/* Help text */
.nx-gt-help { background: rgba(78,142,247,.07); border: 1px solid rgba(78,142,247,.18); border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #a8c4e8; margin-bottom: 10px; line-height: 1.6; }

/* Bet head */
.nx-bet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.nx-bet-step { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold2)); color: #150d00; font-size: 11px; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.nx-bet-mode-btns { margin-left: auto; display: flex; gap: 5px; }
.nx-bet-mode-btn { padding: 4px 9px; border: 1px solid var(--nx-border); border-radius: 6px; background: var(--nx-card); color: var(--nx-muted2); font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nx-bet-mode-btn.active { background: rgba(240,192,64,.1); color: var(--nx-gold); border-color: rgba(240,192,64,.3); }

/* Bet table — mobile horizontal scroll */
.nx-bet-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--nx-border); border-radius: 10px; margin-bottom: 10px; }
.nx-bet-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 13px; }
.nx-bet-table th { padding: 8px 8px; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--nx-muted); border-bottom: 1px solid var(--nx-border); background: var(--nx-bg2); white-space: nowrap; }
.nx-bet-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle; }
.nx-bet-table tr:last-child td { border-bottom: 0; }
.nx-bet-input { background: var(--nx-card); border: 1px solid var(--nx-border2); border-radius: 7px; color: var(--nx-text); padding: 7px 8px; font-size: 13px; font-family: inherit; outline: none; width: 100%; }
.nx-bet-input:focus { border-color: var(--nx-gold); }
.nx-bet-number { font-family: monospace; font-size: 15px; font-weight: 700; letter-spacing: 2px; min-width: 80px; }
.nx-bet-select { min-width: 80px; }
.nx-bet-stake  { min-width: 90px; }
.nx-bet-payout { color: var(--nx-gold); font-weight: 700; font-size: 12px; white-space: nowrap; }
.nx-bet-remove { width: 26px; height: 26px; border: 1px solid rgba(240,90,90,.3); border-radius: 6px; background: rgba(240,90,90,.08); color: var(--nx-red); cursor: pointer; font-size: 14px; display: grid; place-items: center; }

/* Select bet grid */
.nx-select-bet-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.nx-select-bet-item { padding: 11px 8px; border: 2px solid var(--nx-border); border-radius: 10px; background: var(--nx-card); cursor: pointer; text-align: center; font-family: inherit; transition: border-color .15s; }
.nx-select-bet-item b { display: block; font-size: 13px; color: var(--nx-text); }
.nx-select-bet-item small { display: block; font-size: 11px; color: var(--nx-muted2); margin-top: 2px; }
.nx-select-odds { font-size: 12px; color: var(--nx-gold); margin-top: 3px; font-weight: 700; }
.nx-select-bet-item.selected { border-color: var(--nx-gold); background: rgba(240,192,64,.08); }
.nx-select-bet-item.selected b { color: var(--nx-gold); }
.nx-select-stake { margin-bottom: 12px; }
.nx-select-stake label { font-size: 12px; color: var(--nx-muted2); display: block; margin-bottom: 5px; }

/* Bet footer — stacked on mobile */
.nx-bet-footer { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px solid var(--nx-border); }
.nx-bet-totals { display: flex; gap: 16px; }
.nx-bet-totals > div small { display: block; font-size: 10px; color: var(--nx-muted); letter-spacing: .5px; }
.nx-bet-totals > div b { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; }
.nx-bet-pot b { color: var(--nx-green); }
.nx-bet-footer-actions { display: flex; gap: 8px; }
.nx-bet-footer-actions .nx-btn-gold { flex: 1; }
.nx-bet-confirm { background: rgba(0,200,232,.07); border: 1px solid rgba(0,200,232,.20); border-radius: 10px; padding: 12px; margin-top: 10px; }
.nx-confirm-ok { color: var(--nx-green); font-weight: 700; }

/* Result grid */
.nx-result-grid { display: grid; gap: 8px; }
.nx-result-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.nx-result-code b { display: block; font-size: 13px; }
.nx-result-code small { font-size: 10px; color: var(--nx-muted); }
.nx-result-number { font-size: 24px; font-weight: 900; font-family: monospace; letter-spacing: 3px; color: var(--nx-gold); }
.nx-result-date { margin-left: auto; font-size: 10px; color: var(--nx-muted); text-align: right; flex-shrink: 0; }

/* Ticket list */
.nx-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.nx-ticket-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 10px; padding: 11px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.nx-ticket-card.won  { border-left: 3px solid var(--nx-green); }
.nx-ticket-card.lost { border-left: 3px solid var(--nx-red); opacity: .7; }
.nx-ticket-card.accepted { border-left: 3px solid var(--nx-orange); }
.nx-ticket-left b { display: block; font-family: monospace; font-size: 15px; font-weight: 900; letter-spacing: 2px; color: var(--nx-gold); }
.nx-ticket-left small { font-size: 10px; color: var(--nx-muted); display: block; }
.nx-ticket-right { text-align: right; }
.nx-ticket-right b { display: block; font-size: 13px; font-weight: 700; }
.nx-ticket-won-amt { color: var(--nx-green); font-weight: 700; display: block; font-size: 13px; }
.nx-ticket-status { display: inline-flex; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nx-ticket-status.won      { background: rgba(0,200,232,.12); color: var(--nx-green); }
.nx-ticket-status.lost     { background: rgba(240,80,80,.1);   color: var(--nx-red); }
.nx-ticket-status.accepted { background: rgba(245,160,32,.1);  color: var(--nx-orange); }

@media (min-width: 640px) {
  .nx-lot-info { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .nx-select-bet-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-bet-footer { flex-direction: row; align-items: center; }
  .nx-bet-footer-actions { flex: 0 0 auto; }
  .nx-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .nx-select-bet-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-result-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ── Forms ── */
.nx-form-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 13px; margin-bottom: 14px; }
.nx-field { display: flex; flex-direction: column; gap: 5px; }
.nx-field label { font-size: 12px; color: var(--nx-muted2); font-weight: 500; }
.nx-input, .nx-select { background: var(--nx-bg2); border: 1px solid var(--nx-border2); border-radius: 9px; color: var(--nx-text); padding: 10px 13px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.nx-input:focus, .nx-select:focus { border-color: var(--nx-gold); box-shadow: 0 0 0 3px rgba(240,192,64,.1); }
.nx-check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; }
.nx-check input { width: 16px; height: 16px; accent-color: var(--nx-green); flex-shrink: 0; }
.nx-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-field-wide { grid-column: 1 / -1; }
.nx-quick-amounts { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-quick-amounts button { padding: 6px 12px; border: 1px solid var(--nx-border); border-radius: 7px; background: var(--nx-card); color: var(--nx-text); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.nx-quick-amounts button:hover { border-color: var(--nx-gold); color: var(--nx-gold); }
.nx-deposit-result { background: rgba(0,200,232,.07); border: 1px solid rgba(0,200,232,.20); border-radius: 12px; padding: 16px; margin-top: 12px; white-space: pre-line; line-height: 1.7; font-size: 13px; }
.nx-wd-history { margin-top: 14px; }
.nx-wd-item { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 10px; padding: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nx-wd-item small { color: var(--nx-muted); font-size: 11px; }
.nx-account-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.nx-account-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 12px; padding: 14px; }
.nx-account-card.primary { border-left: 3px solid var(--nx-green); }
.nx-account-card h4 { font-size: 14px; margin: 4px 0 3px; }
.nx-account-card p { font-size: 12px; color: var(--nx-muted2); margin: 0 0 10px; line-height: 1.5; }
.nx-account-card-actions { display: flex; gap: 6px; }
.nx-account-tag { font-size: 9px; font-weight: 700; letter-spacing: .5px; color: var(--nx-green); background: rgba(0,200,232,.10); border-radius: 99px; padding: 2px 7px; }
.nx-view-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--nx-border); margin-bottom: 16px; padding: 2px; }
.nx-view-tabs::-webkit-scrollbar { display: none; }
.nx-vtab { flex-shrink: 0; padding: 8px 14px; border: 0; background: none; color: var(--nx-muted2); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.nx-vtab.active { color: var(--nx-green); border-bottom-color: var(--nx-green); font-weight: 700; }
.nx-tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.nx-tool-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.nx-select-sm { padding: 7px 10px; font-size: 12px; width: auto; }
.nx-table-wrap { overflow-x: auto; border: 1px solid var(--nx-border); border-radius: 10px; }
.nx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 500px; }
.nx-table th { padding: 9px 12px; text-align: left; font-size: 10px; font-weight: 700; color: var(--nx-muted); border-bottom: 1px solid var(--nx-border); background: var(--nx-bg2); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.nx-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.03); }
.nx-table tr:last-child td { border-bottom: 0; }
.nx-table tr:hover td { background: rgba(255,255,255,.015); }
.nx-table td b { display: block; font-weight: 600; }
.nx-table td small { display: block; color: var(--nx-muted); font-size: 10.5px; margin-top: 2px; }
.nx-amt-in  { color: var(--nx-green); font-weight: 700; }
.nx-amt-out { color: var(--nx-red);   font-weight: 700; }
.nx-status { display: inline-flex; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; background: rgba(90,117,133,.15); color: var(--nx-muted2); }
.nx-status.active,.nx-status.paid,.nx-status.won  { background: rgba(0,200,232,.12); color: var(--nx-green); }
.nx-status.pending,.nx-status.processing,.nx-status.accepted { background: rgba(245,160,32,.12); color: var(--nx-orange); }
.nx-status.rejected,.nx-status.cancelled,.nx-status.lost     { background: rgba(240,80,80,.12); color: var(--nx-red); }
.nx-referral-card { background: linear-gradient(135deg, #2c2006, #160e00); border: 1px solid rgba(240,192,64,.3); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.nx-ref-code-wrap small { font-size: 9px; letter-spacing: 1.5px; color: var(--nx-gold); text-transform: uppercase; }
.nx-ref-code { font-size: 26px; font-weight: 900; letter-spacing: 3px; color: var(--nx-gold); margin: 4px 0 12px; }
.nx-ref-copy { display: flex; gap: 8px; }
.nx-ref-copy input { flex: 1; background: rgba(0,0,0,.3); border: 1px solid rgba(240,192,64,.2); border-radius: 8px; color: var(--nx-text); padding: 9px 12px; font-size: 12px; outline: none; }
.nx-ref-stats { display: flex; gap: 14px; margin-top: 12px; }
.nx-ref-stats small { display: block; font-size: 10px; color: var(--nx-muted); }
.nx-ref-stats b { display: block; font-size: 18px; font-weight: 800; color: var(--nx-gold); }
.nx-memo-list { display: flex; flex-direction: column; gap: 10px; }
.nx-memo-item { background: var(--nx-card); border: 1px solid rgba(0,200,232,.20); border-radius: 10px; padding: 14px; }
.nx-memo-item header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.nx-memo-item b { font-size: 14px; }
.nx-memo-item time { font-size: 11px; color: var(--nx-muted); }
.nx-memo-item p { font-size: 13px; color: var(--nx-muted2); margin: 0; line-height: 1.6; white-space: pre-line; }

/* ── Drawer ─────────────────────────────────────────────────────────────────── */
.nx-drawer { position:fixed; top:0; left:0; width:min(300px,85vw); height:100dvh; z-index:200; background:var(--nx-bg2); border-right:1px solid var(--nx-border); display:flex; flex-direction:column; transform:translateX(-110%); transition:transform .25s cubic-bezier(.4,0,.2,1); overflow:hidden; }
.nx-drawer.open { transform:none; }
.nx-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:16px 16px 14px; border-bottom:1px solid var(--nx-border); flex-shrink:0; }
.nx-drawer-close { width:32px; height:32px; border-radius:50%; background:var(--nx-bg3); border:0; color:var(--nx-muted2); font-size:16px; cursor:pointer; display:grid; place-items:center; flex-shrink:0; }
.nx-drawer-close:hover { color:var(--nx-text); background:var(--nx-border); }

.nx-drawer-user { display:flex; align-items:center; gap:10px; padding:12px 16px; background:var(--nx-bg3); border-bottom:1px solid var(--nx-border); flex-shrink:0; }
.nx-drawer-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--nx-green),var(--nx-cyan)); color:#041209; font-size:15px; font-weight:900; display:grid; place-items:center; flex-shrink:0; }
.nx-drawer-user b { display:block; font-size:13px; font-weight:700; }
.nx-drawer-user small { color:var(--nx-green); font-size:12px; font-weight:600; }

.nx-drawer-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:12px 16px; border-bottom:1px solid var(--nx-border); flex-shrink:0; }
.nx-drawer-action-btn { display:flex; flex-direction:column; align-items:center; gap:5px; padding:12px 8px; border-radius:12px; border:1px solid var(--nx-border); background:var(--nx-card); cursor:pointer; font-family:inherit; color:var(--nx-text); transition:.15s; }
.nx-drawer-action-btn span { font-size:22px; }
.nx-drawer-action-btn b { font-size:11px; font-weight:700; }
.nx-dab-deposit { border-color:rgba(0,200,232,.30); background:rgba(0,200,232,.06); color:var(--nx-green); }
.nx-dab-withdraw { border-color:rgba(240,192,64,.25); background:rgba(240,192,64,.05); color:var(--nx-gold); }

.nx-drawer-nav { flex:1; overflow-y:auto; padding:8px 0 20px; scrollbar-width:none; }
.nx-drawer-nav::-webkit-scrollbar { display:none; }
.nx-drawer-label { padding:12px 16px 4px; font-size:9px; font-weight:700; letter-spacing:1.5px; color:var(--nx-muted); }
.nx-drawer-nav button, .nx-drawer-nav a { display:flex; align-items:center; gap:10px; width:100%; padding:11px 16px; background:none; border:0; color:var(--nx-muted2); font-size:13px; font-weight:500; text-align:left; cursor:pointer; font-family:inherit; text-decoration:none; transition:background .1s, color .1s; border-radius:0; }
.nx-drawer-nav button:hover, .nx-drawer-nav a:hover { background:rgba(255,255,255,.04); color:var(--nx-text); }
.nx-drawer-nav button span, .nx-drawer-nav a span { font-size:16px; width:22px; text-align:center; flex-shrink:0; }
.nx-drawer-divider { height:1px; background:var(--nx-border); margin:8px 16px; }
.nx-drawer-logout { color:var(--nx-red) !important; }

.nx-drawer-guest { padding:16px; display:flex; flex-direction:column; gap:10px; border-bottom:1px solid var(--nx-border); }
.nx-drawer-guest p { font-size:12px; color:var(--nx-muted2); text-align:center; margin:0; }
.nx-drawer-btn-login { width:100%; padding:13px; border-radius:10px; border:1px solid var(--nx-border); background:var(--nx-card); color:var(--nx-text); font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; }
.nx-drawer-btn-register { width:100%; padding:13px; border-radius:10px; border:0; background:var(--nx-green); color:#041209; font-size:14px; font-weight:900; cursor:pointer; font-family:inherit; }


/* ── Dialog ── */
.nx-dialog { background: var(--nx-card); color: var(--nx-text); border: 1px solid var(--nx-border2); border-radius: 16px; padding: 26px; box-shadow: var(--nx-shadow); width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.nx-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.nx-dialog h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 18px; }
.nx-dialog-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--nx-muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.nx-auth-form { display: flex; flex-direction: column; gap: 12px; }
.nx-auth-switch { text-align: center; color: var(--nx-muted2); font-size: 13px; margin: 14px 0 0; }
.nx-auth-switch button { border: 0; background: none; color: var(--nx-green); font-weight: 700; cursor: pointer; font-family: inherit; }
.nx-register-bank { background: var(--nx-bg2); border: 1px solid var(--nx-border); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Toast ── */
.nx-toast { position: fixed; bottom: calc(var(--nx-bnav) + 10px); left: 50%; transform: translate(-50%, 12px); background: #e0f4ec; color: #071a11; padding: 10px 18px; border-radius: 9px; font-size: 13px; font-weight: 700; box-shadow: var(--nx-shadow); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.nx-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nx-toast.err  { background: #3a0e0e; color: #ffa8a8; }
.nx-livechat { position: fixed; right: 16px; bottom: calc(var(--nx-bnav) + 10px); z-index: 80; display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 99px; background: linear-gradient(135deg, var(--nx-green), var(--nx-green2)); color: #ffffff; text-decoration: none; font-weight: 900; font-size: 12px; box-shadow: var(--nx-shadow); }
.nx-footer { padding: 28px 16px 16px; border-top: 1px solid var(--nx-border); color: var(--nx-muted2); font-size: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.nx-footer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-footer-tags span { border: 1px solid var(--nx-border); border-radius: 99px; padding: 3px 9px; font-size: 9px; font-weight: 700; letter-spacing: .5px; }

/* ── Powered by NEXAENGINE ── */
.nx-powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 4px 0;
}
.nx-powered-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--nx-muted2);
  text-transform: uppercase;
}
.nx-engine-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nx-engine-n {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--nx-green), var(--nx-cyan));
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nx-engine-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nx-engine-text strong {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0,200,232,.5);
}
.nx-engine-text sub {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--nx-muted2);
  text-transform: uppercase;
  margin-left: 1px;
}

/* ── Responsive ── */
/* ── Responsive: ≤ 380px (HP kecil) ── */
@media (max-width: 380px) {

  .nx-promo-row { grid-template-columns: 1fr; }
  .nx-quick-actions { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-lot-info { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-lot-markets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nx-register-bank { grid-template-columns: 1fr; }
  .nx-field-grid { grid-template-columns: 1fr; }
  .nx-account-list { grid-template-columns: 1fr; }
}

/* ── Responsive: 480px – 767px (HP besar / phablet) ── */
@media (min-width: 381px) and (max-width: 767px) {

  .nx-promo-row { grid-template-columns: 1fr 1fr; }
  .nx-quick-actions { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-lot-markets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nx-select-bet-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nx-lot-info { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-account-list { grid-template-columns: 1fr; }
  .nx-field-grid { grid-template-columns: 1fr; }
  .nx-register-bank { grid-template-columns: 1fr; }
  .nx-bet-footer { flex-direction: column; align-items: stretch; }
  .nx-bet-footer .nx-btn-gold { width: 100%; }
}

/* ── Responsive: Tablet 768px ── */
@media (min-width: 768px) {
  .nx-main { padding: 20px 24px calc(var(--nx-bnav) + 20px); }
  .nx-slide-visual { display: flex; }
  .nx-quick-actions { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .nx-result-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nx-promo-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-market-cards { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-lot-markets { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ── Responsive: Desktop 1024px ── */
@media (min-width: 1024px) {
  :root { --nx-bnav: 0px; }
  .nx-bottom-nav { display: none; }
  .nx-topnav { display: flex; }
  .nx-menu-btn { display: none; }
  .nx-main { padding: 24px 32px 32px; }
  .nx-slide { min-height: 340px; }
  .nx-lot-markets { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-result-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-quick-actions { grid-template-columns: repeat(7, minmax(0,1fr)); }
  .nx-promo-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-toast { bottom: 24px; }
  .nx-livechat { bottom: 24px; }
}

/* ── Responsive: Wide 1280px ── */
@media (min-width: 1280px) {
}


/* ═══════════════════════════════════════════════════════
   AUTO LOAD MORE — IntersectionObserver sentinel
═══════════════════════════════════════════════════════ */
.nx-load-sentinel { height: 1px; }
.nx-load-spinner {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 24px;
}
.nx-load-spinner span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--nx-green); opacity: .3;
  animation: nxBounce .8s ease-in-out infinite;
}
.nx-load-spinner span:nth-child(2) { animation-delay: .15s; }
.nx-load-spinner span:nth-child(3) { animation-delay: .30s; }
@keyframes nxBounce { 0%,100%{transform:translateY(0);opacity:.3} 50%{transform:translateY(-8px);opacity:1} }

/* ═══════════════════════════════════════════════════════
   AUTH OVERLAY (fullscreen modal)
═══════════════════════════════════════════════════════ */
.nx-auth-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--nx-bg2);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nx-auth-modal { min-height: 100%; display: flex; flex-direction: column; }
.nx-auth-header {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px; gap: 14px; position: relative;
  border-bottom: 1px solid var(--nx-border);
}
.nx-auth-back {
  position: absolute; left: 16px;
  background: none; border: 0; color: var(--nx-muted2);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  padding: 6px 10px; border-radius: 8px;
}
.nx-auth-back:hover { background: var(--nx-bg3); color: var(--nx-text); }
.nx-auth-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 18px; letter-spacing: -.5px; color: var(--nx-text);
}
.nx-auth-logo strong { color: var(--nx-green); }
.nx-auth-body { padding: 24px 20px 40px; max-width: 480px; margin: 0 auto; width: 100%; }
.nx-auth-body h2 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.nx-auth-sub { color: var(--nx-muted2); font-size: 13px; margin: 0 0 20px; }
.nx-auth-field {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff;
  border: 1.5px solid #cde8f5;
  border-radius: 12px; padding: 0 14px; margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.nx-auth-field:focus-within {
  border-color: var(--nx-green);
  box-shadow: 0 0 0 3px rgba(0,200,232,.18);
}
.nx-auth-ico { display: flex; align-items: center; flex-shrink: 0; color: #7aabb8; width: 20px; }
.nx-auth-input {
  flex: 1; background: none; border: 0; color: #0d2535;
  font-size: 14px; font-family: inherit; padding: 14px 0; outline: none;
}
.nx-auth-input::placeholder { color: #9dbfcc; }
.nx-auth-toggle-pw {
  background: none; border: 0; cursor: pointer;
  color: #8aacbc; padding: 4px; flex-shrink: 0;
  display: flex; align-items: center;
}
.nx-auth-submit {
  width: 100%; padding: 15px; border-radius: 12px; border: 0;
  background: linear-gradient(135deg, var(--nx-green), var(--nx-green2));
  color: #ffffff;
  font-size: 15px; font-weight: 900; letter-spacing: .5px;
  cursor: pointer; margin-top: 6px; font-family: inherit;
  transition: opacity .15s, transform .1s;
  text-shadow: 0 1px 4px rgba(0,60,100,.3);
}
.nx-auth-submit:hover { opacity: .9; }
.nx-auth-submit:active { transform: scale(.98); }
.nx-auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.nx-auth-submit.nx-auth-submit-green { background: linear-gradient(135deg, #00c8e8, #0088b0); }
.nx-auth-switch-bar {
  text-align: center; color: var(--nx-muted2); font-size: 13px; margin-top: 20px;
}
.nx-auth-switch-bar button {
  border: 0; background: none; color: var(--nx-green); font-weight: 700;
  cursor: pointer; font-family: inherit; font-size: 13px;
}
.nx-reg-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--nx-green); text-transform: uppercase;
  margin: 16px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,200,232,.20);
}

/* Bank picker */
.nx-bank-picker { margin-bottom: 12px; }
.nx-bank-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--nx-bg); border: 1.5px solid var(--nx-border2);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.nx-bank-search-input {
  flex: 1; background: none; border: 0; color: var(--nx-text);
  font-size: 13px; font-family: inherit; outline: none;
}
.nx-bank-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px;
  max-height: 220px; overflow-y: auto; padding: 2px;
}
.nx-bank-opt {
  padding: 10px 6px; background: var(--nx-card); border: 1.5px solid var(--nx-border);
  border-radius: 9px; color: var(--nx-text); font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-align: center;
  transition: border-color .15s, background .15s;
}
.nx-bank-opt:hover { border-color: var(--nx-green); color: var(--nx-green); background: rgba(0,200,232,.05); }
.nx-bank-opt.selected { background: rgba(0,200,232,.12); border-color: var(--nx-green); color: var(--nx-green); }
.nx-bank-selected {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,200,232,.08); border: 1.5px solid var(--nx-green);
  border-radius: 10px; padding: 12px 14px; font-weight: 700; color: var(--nx-green);
}
.nx-bank-selected button {
  background: none; border: 1px solid var(--nx-green); border-radius: 6px;
  color: var(--nx-green); font-size: 11px; font-weight: 700; cursor: pointer;
  padding: 4px 9px; font-family: inherit;
}
.nx-reg-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--nx-muted2); cursor: pointer; margin-bottom: 10px;
}
.nx-reg-check input { width: 16px; height: 16px; accent-color: var(--nx-green); flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════
   MEMBER TOOLS — mobile card layout
═══════════════════════════════════════════════════════ */
.nx-mtab-bar {
  display: flex; overflow-x: auto; scrollbar-width: none;
  gap: 6px; padding: 4px 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--nx-border);
}
.nx-mtab-bar::-webkit-scrollbar { display: none; }
.nx-mtab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 14px; border: 1px solid var(--nx-border);
  border-radius: 10px; background: var(--nx-card); color: var(--nx-muted2);
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: .15s; white-space: nowrap;
}
.nx-mtab span { font-size: 18px; }
.nx-mtab.active { background: rgba(0,200,232,.10); border-color: rgba(0,200,232,.4); color: var(--nx-green); }
.nx-mtab-content { padding-top: 12px; }

/* Transaction list cards */
.nx-trx-list { display: flex; flex-direction: column; gap: 8px; }
.nx-trx-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--nx-card); border: 1px solid var(--nx-border);
  border-radius: 12px; padding: 13px; transition: border-color .15s;
}
.nx-trx-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.nx-trx-icon.in  { background: rgba(0,200,232,.10); color: var(--nx-green); }
.nx-trx-icon.out { background: rgba(240,80,80,.1);  color: var(--nx-red); }
.nx-trx-icon.cat { background: rgba(240,192,64,.1); font-size: 18px; }
.nx-trx-body { flex: 1; min-width: 0; }
.nx-trx-body b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-trx-body small { color: var(--nx-muted); font-size: 11px; }
.nx-trx-right { text-align: right; flex-shrink: 0; }
.nx-trx-right span { display: block; font-size: 14px; font-weight: 800; }
.nx-trx-right small { color: var(--nx-muted); font-size: 10px; }

/* Referral hero */
.nx-ref-hero {
  background: linear-gradient(135deg, #1c1a06, #0e0e02);
  border: 1px solid rgba(240,192,64,.3); border-radius: 16px;
  padding: 24px; text-align: center; margin-bottom: 14px;
}
.nx-ref-hero-icon { font-size: 36px; margin-bottom: 8px; }
.nx-ref-hero-code { font-size: 32px; font-weight: 900; letter-spacing: 4px; color: var(--nx-gold); margin-bottom: 4px; }
.nx-ref-hero-label { font-size: 11px; color: var(--nx-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.nx-ref-stats { display: flex; justify-content: center; gap: 24px; }
.nx-ref-stats small { display: block; font-size: 10px; color: var(--nx-muted); }
.nx-ref-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--nx-gold); }
.nx-ref-copy-bar { display: flex; gap: 8px; margin-bottom: 4px; }
.nx-ref-copy-bar input { flex: 1; background: var(--nx-bg2); border: 1px solid var(--nx-border2); border-radius: 9px; color: var(--nx-text); padding: 10px 12px; font-size: 12px; outline: none; }
.nx-ref-member-list { display: flex; flex-direction: column; gap: 8px; }
.nx-ref-member-item { display: flex; align-items: center; gap: 10px; background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 10px; padding: 11px; }
.nx-ref-member-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--nx-purple), #4e2ab0); color: #fff; font-size: 14px; font-weight: 900; display: grid; place-items: center; flex-shrink: 0; }
.nx-ref-member-info { flex: 1; }
.nx-ref-member-info b { display: block; font-size: 13px; }
.nx-ref-member-info small { color: var(--nx-muted); font-size: 11px; }

/* Password card */
.nx-pw-card { background: var(--nx-card); border: 1px solid var(--nx-border); border-radius: 16px; padding: 24px; }
.nx-pw-icon { font-size: 32px; margin-bottom: 8px; }
.nx-pw-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.nx-pw-card p { color: var(--nx-muted2); font-size: 13px; margin: 0 0 16px; }
.nx-pw-card form { display: flex; flex-direction: column; gap: 12px; }
.nx-pw-card .nx-field label { font-size: 12px; color: var(--nx-muted2); display: block; margin-bottom: 5px; }
.nx-pw-card .nx-btn-primary { margin-top: 4px; }

/* ── Backoffice suggestions banner ── */
.nx-bo-tip { background: rgba(0,200,232,.06); border: 1px solid rgba(0,200,232,.20); border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size: 13px; }

/* ── mt-14 utility ── */
.nx-mt-14 { margin-top: 14px; }

/* ═══════════════════════════════════════════════════════
   HOME GUEST — Hero + Login side by side
═══════════════════════════════════════════════════════ */
/* ── Hero + Login wrap — mobile first (stack), desktop side by side ── */
/* ── Banner full width bleed ke tepi ── */
.nx-hero-full {
  width: calc(100% + 32px);   /* kompensasi padding 16px kiri+kanan */
  margin-left: -16px;
  margin-right: -16px;
  margin-top: 0;              /* nempel ke ticker */
  margin-bottom: 10px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.nx-hero-full .nx-slide {
  min-height: 0; padding: 20px 18px;
}
.nx-hero-full .nx-slide.nx-slide-img { padding: 0 !important; }
.nx-hero-full .nx-slide h1 { font-size: 22px; letter-spacing: -.5px; margin: 4px 0 8px; }
.nx-hero-full .nx-slide .nx-slide-sub { font-size: 12px; margin-bottom: 12px; }

/* ── Login full width ── */
.nx-home-login-full {
  width: 100%;
  background: rgba(5,20,36,.92);
  border: 1px solid rgba(0,200,232,.18);
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 24px rgba(0,120,180,.12);
}
.nx-home-login-full .nx-auth-field { margin-bottom: 10px; }
.nx-home-login-full .nx-auth-submit { padding: 13px; font-size: 14px; }

/* Login + Daftar sejajar */
.nx-login-btns-row {
  display: flex; gap: 10px; margin-top: 4px;
}
.nx-login-btn-half { flex: 1; }

/* Backward compat */
.nx-home-login-or { text-align: center; font-size: 12px; color: var(--nx-muted2); }
.nx-home-reg-link { background: none; border: 0; color: var(--nx-green); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 12px; }

/* ≥ 700px desktop: banner lebih tinggi */
@media (min-width: 700px) {
  .nx-hero-full { width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; }
  .nx-ticker { margin-top: -20px; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .nx-hero-full .nx-slide:not(.nx-slide-img) { min-height: 220px; }
  .nx-hero-full .nx-slide h1 { font-size: clamp(22px, 3vw, 40px); }
}
@media (min-width: 1024px) {
  .nx-hero-full { width: calc(100% + 64px); margin-left: -32px; margin-right: -32px; }
  .nx-ticker { margin-top: -24px; margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  .nx-hero-full .nx-slide:not(.nx-slide-img) { min-height: 280px; }
}

/* ── Category menu ── */
.nx-cat-scroll-wrap { position: relative; margin-bottom: 6px; }
.nx-cat-menu {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 0 14px; scroll-behavior: smooth;
}
.nx-cat-menu::-webkit-scrollbar { display: none; }
/* Scroll arrow */
.nx-cat-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-60%);
  width: 32px; height: 48px;
  background: linear-gradient(to right, transparent, rgba(10,15,30,.95) 40%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 2px;
  color: rgba(0,200,232,.9); font-size: 22px; font-weight: 300;
  pointer-events: none; transition: opacity .3s; letter-spacing: -3px;
}
.nx-cat-arrow.hidden { opacity: 0; }
.nx-cat-btn {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 11px 13px 9px;
  background: linear-gradient(160deg, rgba(0,200,232,.07) 0%, rgba(0,80,110,.04) 100%);
  border: 1px solid rgba(0,200,232,.3);
  border-radius: 14px;
  color: rgba(0,210,240,.75);
  font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  white-space: nowrap;
  transition: all .18s;
  min-width: 58px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,200,232,.08), inset 0 1px 0 rgba(0,200,232,.1);
}
.nx-cat-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,200,232,.5), transparent);
}
.nx-cat-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.nx-cat-icon svg {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 4px rgba(0,200,232,.5));
}
.nx-cat-btn b {
  font-size: 10px; letter-spacing: .4px;
  text-shadow: 0 0 8px rgba(0,200,232,.6);
}
.nx-cat-btn.active {
  background: linear-gradient(160deg, rgba(0,200,232,.2) 0%, rgba(0,130,170,.1) 100%);
  border-color: rgba(0,220,255,.75);
  color: #00e5ff;
  box-shadow: 0 0 18px rgba(0,200,232,.4), 0 0 4px rgba(0,200,232,.15),
              inset 0 1px 0 rgba(0,220,255,.25);
}
.nx-cat-btn.active .nx-cat-icon svg {
  filter: drop-shadow(0 0 7px rgba(0,220,255,1)) drop-shadow(0 0 14px rgba(0,200,232,.6));
}
.nx-cat-btn.active b { text-shadow: 0 0 12px rgba(0,220,255,1); color: #00e5ff; }
.nx-cat-btn:hover:not(.active) {
  border-color: rgba(0,200,232,.55);
  color: rgba(0,230,255,.95);
  box-shadow: 0 0 14px rgba(0,200,232,.2), inset 0 1px 0 rgba(0,200,232,.12);
  transform: translateY(-1px);
}
.nx-cat-btn:hover:not(.active) .nx-cat-icon svg {
  filter: drop-shadow(0 0 6px rgba(0,200,232,.7));
}

.nx-section-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.nx-section-hd span { font-size: 18px; }
.nx-section-hd h3 { font-size: 15px; font-weight: 800; margin: 0; flex: 1; }
.nx-see-all { background: none; border: 0; color: var(--nx-green); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.nx-home-section { margin-bottom: 20px; }

/* ── Home register section ── */
.nx-home-register-section {
  background: linear-gradient(135deg, #0d1f14, #061017);
  border: 1px solid rgba(0,200,232,.20); border-radius: 16px;
  overflow: hidden; margin-bottom: 20px;
}
.nx-home-reg-header {
  background: linear-gradient(135deg, rgba(0,200,232,.12), transparent);
  padding: 20px; text-align: center; border-bottom: 1px solid rgba(0,200,232,.15);
}
.nx-home-reg-header h2 { font-size: 20px; font-weight: 900; margin: 0 0 4px; color: var(--nx-green); }
.nx-home-reg-header p { color: var(--nx-muted2); font-size: 13px; margin: 0; }
.nx-home-reg-body { padding: 20px; }
.nx-reg-inline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.nx-reg-bank-label { font-size: 11px; color: var(--nx-muted2); font-weight: 600; margin-bottom: 8px; letter-spacing: .3px; }
.nx-reg-bank-mini { margin-bottom: 12px; }
.nx-bank-grid-mini { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-bottom: 8px; }
@media (max-width: 480px) {
  .nx-reg-inline-grid { grid-template-columns: 1fr; }
  .nx-bank-grid-mini { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ── Bank logos ── */
.nx-bank-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-bank-logo-item {
  padding: 8px 14px; background: var(--nx-card); border: 1px solid var(--nx-border);
  border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--nx-muted2);
  letter-spacing: .3px;
}

/* ── Articles ── */
.nx-articles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.nx-article-card {
  background: var(--nx-card); border: 1px solid var(--nx-border);
  border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.nx-article-card:hover { border-color: var(--nx-green); }
.nx-article-body { padding: 14px; }
.nx-article-cat { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--nx-green); text-transform: uppercase; }
.nx-article-body h4 { font-size: 13px; font-weight: 700; margin: 6px 0 5px; line-height: 1.4; }
.nx-article-body p { font-size: 12px; color: var(--nx-muted2); margin: 0 0 8px; line-height: 1.5; }
.nx-article-body small { font-size: 10px; color: var(--nx-muted); }
.nx-article-modal-wrap { min-height: 100%; background: var(--nx-bg2); }
.nx-article-modal-body { padding: 20px; max-width: 720px; margin: 0 auto; }
.nx-article-html { margin-top: 16px; line-height: 1.8; font-size: 14px; color: var(--nx-muted2); }
.nx-article-html h2,.nx-article-html h3 { color: var(--nx-text); }
.nx-article-html img { max-width: 100%; border-radius: 10px; }
.nx-article-html a { color: var(--nx-green); }
@media (max-width: 480px) {
  .nx-articles { grid-template-columns: 1fr; }
}

/* ── Promos ── */
.nx-promo-list { display: flex; flex-direction: column; gap: 12px; }
.nx-promo-card-full {
  background: var(--nx-card); border: 1px solid var(--nx-border);
  border-radius: 14px; overflow: hidden; cursor: pointer; transition: .2s;
}
.nx-promo-card-full:hover { border-color: var(--nx-gold); transform: translateY(-2px); }
.nx-promo-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.nx-promo-card-body { padding: 16px; }
.nx-promo-card-badge { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: var(--nx-gold); text-transform: uppercase; }
.nx-promo-card-body h3 { font-size: 16px; font-weight: 800; margin: 6px 0 8px; }
.nx-promo-card-body p { font-size: 13px; color: var(--nx-muted2); margin: 0 0 12px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   LOTTERY — PASARAN CARD GRID
═══════════════════════════════════════════════════════ */
.nx-lot-step-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 12px;
  background: var(--nx-bg2); border-radius: 10px;
}
.nx-lot-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--nx-gold), var(--nx-gold2));
  color: #100800; font-size: 14px; font-weight: 900;
  display: grid; place-items: center; flex-shrink: 0;
}
.nx-lot-step-head b { display: block; font-size: 14px; }
.nx-lot-step-head small { font-size: 11px; color: var(--nx-muted2); }

/* Pasaran card grid */
.nx-lot-pasaran-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px; margin-bottom: 16px;
}
/* ══════════════════════════════════════════════
   PASARAN CARD — redesign blue aqua
   ══════════════════════════════════════════════ */
.nx-lot-pskel { min-height: 200px; border-radius: 16px; background: var(--nx-card); animation: skel 1.5s infinite; }

/* Grid 2 kolom */
#nxLotPasaranGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width: 640px) { #nxLotPasaranGrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { #nxLotPasaranGrid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ═══════════════════════════════════════════════
   PASARAN CARD — redesign
═══════════════════════════════════════════════ */
.nx-psr-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(170deg, #071e35 0%, #050f1c 60%, #030b14 100%);
  border: 1.5px solid rgba(0,200,232,.2);
  box-shadow: 0 6px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(0,200,232,.1);
  transition: transform .18s, box-shadow .18s;
}
.nx-psr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,150,220,.25), inset 0 1px 0 rgba(0,200,232,.18);
}
/* Tutup — merah (draw closed, betting stopped) */
.nx-psr-card.tutup {
  border-color: rgba(239,68,68,.3);
  background: linear-gradient(170deg, #1e0a0a 0%, #120505 60%, #0a0303 100%);
  box-shadow: 0 6px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(239,68,68,.1);
}
.nx-psr-card.tutup:hover {
  box-shadow: 0 12px 40px rgba(239,68,68,.15), inset 0 1px 0 rgba(239,68,68,.15);
}
/* Offline — tidak ditampilkan */
.nx-psr-card.offline { display: none; }

/* ── Garis accent atas ── */
.nx-psr-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--nx-green), var(--nx-cyan));
  border-radius: 18px 18px 0 0;
}
.nx-psr-card.tutup::before   { background: linear-gradient(90deg, #ef4444, #dc2626); }
.nx-psr-card.offline::before { display: none; }

/* ── Header nama ── */
.nx-psr-header { display: none; }
.nx-psr-header-center {
  padding: 14px 16px 10px;
  text-align: center;
  background: rgba(0,200,232,.07);
  border-bottom: 1px solid rgba(0,200,232,.1);
  position: relative;
}
.nx-psr-card.tutup .nx-psr-header-center {
  background: rgba(245,160,32,.06);
  border-bottom-color: rgba(245,160,32,.1);
}
.nx-psr-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--nx-cyan);
  text-transform: uppercase;
}
.nx-psr-card.tutup .nx-psr-name { color: #f5a020; }

/* ── Angka hasil — besar & gold ── */
.nx-psr-result {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  letter-spacing: 8px;
  color: var(--nx-gold);
  text-shadow: 0 0 30px rgba(240,192,64,.5), 0 2px 0 rgba(0,0,0,.4);
  padding: 16px 14px 8px;
  line-height: 1;
}

/* ── Countdown ── */
.nx-psr-countdown-wrap {
  text-align: center;
  padding: 0 14px 12px;
}
.nx-psr-countdown {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  color: var(--nx-cyan);
}
.nx-cd-warn    { color: #f5a020; }
.nx-cd-danger  { color: #ef4444; animation: nx-blink .7s infinite; }
.nx-cd-passed  { color: var(--nx-muted2); font-size: 11px; }
@keyframes nx-blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Status row ── */
.nx-psr-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 12px;
}
.nx-psr-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nx-psr-badge.open {
  background: rgba(16,185,129,.15);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.35);
  animation: nx-pulse-green 2.5s infinite;
}
.nx-psr-badge.closed {
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.3);
}
@keyframes nx-pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,.0); }
}
.nx-psr-cutoff-static {
  font-size: 10px;
  color: var(--nx-muted2);
  font-weight: 600;
  letter-spacing: .3px;
}

/* ── Tombol ── */
.nx-psr-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0,200,232,.1);
}
.nx-psr-card.tutup .nx-psr-btns { border-top-color: rgba(239,68,68,.15); }
.nx-psr-btn-riwayat, .nx-psr-btn-main {
  padding: 11px 6px;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .5px;
  transition: background .15s;
}
.nx-psr-btn-riwayat {
  background: rgba(0,200,232,.08);
  color: var(--nx-cyan);
  border-right: 1px solid rgba(0,200,232,.1);
}
.nx-psr-btn-riwayat:hover { background: rgba(0,200,232,.18); }
.nx-psr-btn-main {
  background: linear-gradient(135deg, #00c8e8, #009ec0);
  color: #fff;
}
.nx-psr-btn-main:hover { background: linear-gradient(135deg, #00e0ff, #00bcd4); }
.nx-psr-btn-main.disabled {
  background: rgba(255,255,255,.05);
  color: var(--nx-muted);
  cursor: not-allowed;
}

/* Compat lama */
.nx-pasaran-card { display: none; }
.nx-psr-period   { display: none; }
.nx-psr-datetime { display: none; }
.nx-psr-cutoff   { display: none; }

/* Chosen pasaran bar */
.nx-lot-chosen {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(0,200,232,.06); border: 1px solid rgba(0,200,232,.20);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.nx-lot-back-btn {
  background: none; border: 1px solid var(--nx-border2); border-radius: 8px;
  color: var(--nx-muted2); font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; padding: 7px 12px; white-space: nowrap;
}
.nx-lot-back-btn:hover { color: var(--nx-text); border-color: var(--nx-border); }
.nx-lot-chosen-info { flex: 1; }
.nx-lot-chosen-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.nx-lot-chosen-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--nx-muted2); }

@media (min-width: 640px) {
  .nx-lot-pasaran-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .nx-lot-pasaran-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ── Home game grid — override app.css mobile game-art:1/1 ── */
#nxHomeGameGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
#nxHomeGameGrid .game-art { aspect-ratio: 4/3 !important; position: relative; }
#nxHomeGameGrid .game-info { padding: 7px 8px; }
#nxHomeGameGrid .game-info b { font-size: 11px; }
#nxHomeGameGrid .game-info small { font-size: 9px; }
@media (min-width: 640px)  { #nxHomeGameGrid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1024px) { #nxHomeGameGrid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

/* ── Badge 🔥 di game populer ── */
.nx-hot-badge {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 1px 5px rgba(255,80,0,.8));
  pointer-events: none;
  z-index: 3;
}
/* ══════════════════════════════════════════════════════════
   NxLazy — image placeholder shimmer + fade-in saat loaded
   ══════════════════════════════════════════════════════════ */
.nx-lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .3s ease;
}
.nx-lazy-img.nx-img-loaded {
  opacity: 1;
}
/* Shimmer placeholder sebelum gambar load */
.game-art.has-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    var(--nx-bg3) 25%,
    var(--nx-border) 50%,
    var(--nx-bg3) 75%);
  background-size: 200% 100%;
  animation: nx-shimmer 1.4s infinite linear;
}
.game-art.has-image.nx-art-done {
  background: transparent;
  animation: none;
}
@keyframes nx-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* Article modal image */
.nx-modal-img { width: 100%; border-radius: 12px; margin-bottom: 16px; display: block; }

/* ══ Ticker marquee ══════════════════════════════════════ */
.nx-ticker { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.nx-ticker-scroll { flex: 1; overflow: hidden; }
.nx-ticker-inner {
  display: flex; gap: 0; white-space: nowrap;
  animation: nxMarquee 12s linear infinite;
}
.nx-ticker-inner:hover { animation-play-state: paused; }
.nx-ticker-inner span { padding: 0 18px; font-size: 13px; }
.nx-ticker-sep { color: var(--nx-green); padding: 0 6px; opacity: .5; }
@keyframes nxMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══ Banner slide gambar ══════════════════════════════════ */
.nx-slide-img {
  padding: 0 !important;
  background: #000; cursor: default;
  /* Tinggi otomatis dari gambar — tidak butuh min-height */
}
.nx-slide-img img {
  width: 100%; height: auto;
  aspect-ratio: 2 / 1;   /* 600×300 = 2:1 */
  object-fit: cover; display: block;
}
.nx-slide-img[data-link]:not([data-link=""]) { cursor: pointer; }
.nx-slide-img:hover img { opacity: .92; }

/* Slider skeleton — tidak kelihatan saat loading, hilang setelah API load */
.nx-slide-skel {
  aspect-ratio: 2 / 1;
  background: var(--nx-bg2);
  animation: skel 1.5s infinite;
  min-height: 0 !important;
  padding: 0 !important;
}
/* Kalau tidak ada slides dari API — sembunyikan slider sama sekali */
.nx-slider:has(.nx-slide-skel:only-child) .nx-slider-arrow,
.nx-slider:has(.nx-slide-skel:only-child) ~ #nxSlDots { display: none; }

/* ── Skeleton game art (mengganti inline style) ── */
.nx-skel-art { animation: skel 1.5s infinite; }

/* ── Full-column empty state (mengganti style="grid-column:1/-1") ── */
.nx-col-full { grid-column: 1 / -1; }

/* ══ Modal LAINNYA ══════════════════════════════════════════════ */
.nx-more-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.nx-more-overlay.hidden { display: none; }
.nx-more-modal {
  width: 100%; max-width: 480px;
  background: var(--nx-bg2); border-radius: 20px 20px 0 0;
  padding: 0 0 calc(var(--nx-bnav) + env(safe-area-inset-bottom, 0px));
  animation: nxSlideUp .22s ease;
}
@keyframes nxSlideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nx-more-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--nx-border);
  font-size: 14px; font-weight: 700;
}
.nx-more-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--nx-bg3); border: 0; color: var(--nx-muted2);
  font-size: 14px; cursor: pointer; display: grid; place-items: center;
}
.nx-more-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; background: var(--nx-border); padding: 16px 16px 20px; gap: 10px;
}
.nx-more-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 14px;
  background: var(--nx-card); border: 1px solid var(--nx-border);
  cursor: pointer; font-family: inherit; color: var(--nx-text);
  transition: border-color .15s, background .15s;
}
.nx-more-item:hover, .nx-more-item:active {
  border-color: var(--nx-green); background: rgba(0,200,232,.06);
}
.nx-more-item span { font-size: 28px; line-height: 1; }
.nx-more-item b { font-size: 10px; font-weight: 800; letter-spacing: .3px; text-align: center; line-height: 1.3; }

/* ── Home login box: DAFTAR button outline ── */
.nx-auth-submit-outline {
  width: 100%; padding: 14px; border-radius: 12px;
  border: 2px solid var(--nx-green);
  background: transparent; color: var(--nx-green);
  font-size: 15px; font-weight: 900; letter-spacing: .5px;
  cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
  margin-top: 2px;
}
.nx-auth-submit-outline:hover { background: var(--nx-green); color: #ffffff; }

/* ── Auth logo img (di modal) ── */
.nx-auth-logo-img {
  height: 36px; width: auto; max-width: 120px;
  object-fit: contain; display: block;
}

/* ── Login mini di register page ── */
.nx-reg-login-mini {
  background: var(--nx-bg3); border: 1px solid var(--nx-border);
  border-radius: 14px; padding: 16px; margin-bottom: 20px;
}
.nx-reg-login-mini h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--nx-muted2); }
.nx-reg-login-mini .nx-auth-submit { padding: 12px; font-size: 13px; }
.nx-reg-login-mini .nx-auth-field { margin-bottom: 8px; }

/* Divider "atau daftar akun baru" */
.nx-reg-login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0; color: var(--nx-muted); font-size: 12px; font-weight: 600;
}
.nx-reg-login-divider::before,
.nx-reg-login-divider::after { content: ''; flex: 1; height: 1px; background: var(--nx-border2); }

/* ── Label field register dengan * merah ── */
.nx-auth-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-muted2);
  margin-bottom: 5px;
  margin-top: 4px;
  letter-spacing: .3px;
}
.nx-req {
  color: #f05060;
  font-weight: 900;
  margin-left: 1px;
}
.nx-auth-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--nx-muted);
  margin-left: 4px;
  font-style: italic;
}

/* ── REGISTRASI title di form register ── */
.nx-reg-title-main {
  text-align: center;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  color: var(--nx-text) !important;
  border-bottom: 2px solid rgba(0,200,232,.30) !important;
  padding-bottom: 10px !important;
  margin: 8px 0 16px !important;
}

/* ══════════════════════════════════════════════════
   Form REGISTER — tampilan beda dari form login
   Border aqua + bg gelap berbeda dari login (putih)
   ══════════════════════════════════════════════════ */
#nxRegisterForm {
  background: rgba(0,30,50,.5);
  border: 2px solid rgba(0,200,232,.35);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow:
    0 0 0 1px rgba(0,200,232,.10),
    0 8px 32px rgba(0,100,180,.18),
    inset 0 1px 0 rgba(0,200,232,.12);
}
/* Field di dalam register — bg gelap (kontras dengan login yg putih) */
#nxRegisterForm .nx-auth-field {
  background: rgba(5,20,40,.85);
  border-color: rgba(0,200,232,.22);
}
#nxRegisterForm .nx-auth-field:focus-within {
  border-color: var(--nx-cyan);
  box-shadow: 0 0 0 3px rgba(0,224,255,.15);
}
#nxRegisterForm .nx-auth-input {
  color: var(--nx-text);
}
#nxRegisterForm .nx-auth-input::placeholder {
  color: var(--nx-muted2);
}
#nxRegisterForm .nx-auth-ico,
#nxRegisterForm .nx-auth-toggle-pw {
  color: var(--nx-muted2);
}
/* Tombol DAFTAR — warna berbeda dari LOGIN */
#nxRegisterForm .nx-auth-submit {
  background: linear-gradient(135deg, #0088cc, #005fa0);
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(0,100,200,.4);
}
#nxRegisterForm .nx-auth-submit:hover {
  background: linear-gradient(135deg, #00a0e0, #0077c0);
}

/* ── SVG icon in bank search ── */
.nx-bank-search-wrap .nx-search-ico { display: flex; align-items: center; color: var(--nx-muted2); }

/* ══ Lottery: Draw Group Cards ══════════════════════════════════════ */
.nx-draw-group-card {
  background: var(--nx-card); border: 1.5px solid var(--nx-border);
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
  transition: border-color .15s;
}
.nx-draw-group-card.won  { border-color: rgba(0,200,232,.4); background: rgba(0,200,232,.04); }
.nx-draw-group-card.lost { border-color: rgba(230,80,80,.25); }
.nx-dg-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.nx-dg-title { display: flex; flex-direction: column; gap: 3px; }
.nx-dg-title b { font-size: 14px; font-weight: 800; }
.nx-dg-title code { font-size: 11px; color: var(--nx-muted2); background: var(--nx-bg3); padding: 2px 6px; border-radius: 4px; }
.nx-dg-summary { font-size: 12px; color: var(--nx-muted2); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.nx-dg-detail-btn {
  width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--nx-border2);
  background: var(--nx-bg3); color: var(--nx-muted2); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-align: center; transition: .15s;
}
.nx-dg-detail-btn:hover { border-color: var(--nx-green); color: var(--nx-green); }
.nx-num-big { font-size: 18px; font-weight: 900; letter-spacing: 2px; }

/* ══ Draw Detail Overlay ════════════════════════════════════════════ */
.nx-draw-detail-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.nx-draw-detail-overlay.hidden { display: none; }
.nx-draw-detail-modal {
  width: 100%; max-width: 520px;
  background: var(--nx-bg2); border-radius: 20px 20px 0 0;
  max-height: 85dvh; display: flex; flex-direction: column;
  animation: nxSlideUp .22s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nx-draw-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--nx-border); flex-shrink: 0;
}
.nx-draw-detail-header h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.nx-draw-detail-result { font-size: 12px; color: var(--nx-muted2); }
.nx-draw-detail-result.has-result { font-size: 22px; font-weight: 900; color: var(--nx-gold); letter-spacing: 4px; }
.nx-draw-detail-scroll { flex: 1; overflow-y: auto; padding: 14px; scrollbar-width: none; }
.nx-draw-detail-scroll::-webkit-scrollbar { display: none; }
.nx-detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nx-detail-table th { text-align: left; padding: 6px 8px; color: var(--nx-muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; border-bottom: 1px solid var(--nx-border); }
.nx-detail-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.nx-detail-table tfoot tr { border-top: 2px solid var(--nx-border); background: var(--nx-bg3); }
.nx-detail-table tfoot td { padding: 10px 8px; font-weight: 700; }

/* ══ Backoffice: Row today highlight ══════════════════════════════ */
.bv-row-today { background: rgba(0,200,232,.04); }
.bv-badge-today { background: var(--nx-green); color: #002030; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .3px; vertical-align: middle; }
.bv-tbl-input-result { width: 80px; font-size: 18px; font-weight: 900; letter-spacing: 4px; text-align: center; }
.bv-result-num { font-size: 18px; font-weight: 900; letter-spacing: 3px; color: var(--bv-gold); }
.bv-btn-xs { padding: 3px 8px; font-size: 11px; }
.bv-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* ── History: Togel group card ── */
.nx-trx-group {
  background: var(--nx-card); border: 1.5px solid var(--nx-border);
  border-radius: 14px; margin-bottom: 8px; overflow: hidden;
  cursor: pointer; transition: border-color .15s;
}
.nx-trx-group:hover  { border-color: var(--nx-border2); }
.nx-trx-group.open   { border-color: var(--nx-green); }
.nx-trx-group-head   { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.nx-trx-group-detail { background: var(--nx-bg3); border-top: 1px solid var(--nx-border); padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; }
.nx-trx-group-detail.hidden { display: none; }
.nx-trx-detail-row   { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.nx-trx-detail-row small { color: var(--nx-muted2); }

/* ══ Lottery bet table v2 (4D/3D/2D columns) ══════════════════════ */
.nx-bet-table-v2 { width: 100%; border-collapse: collapse; }
.nx-bet-table-v2 th, .nx-bet-table-v2 td { padding: 5px 4px; vertical-align: middle; }
.nx-bet-table-v2 th { font-size: 10px; font-weight: 700; color: var(--nx-muted2); text-align: center; letter-spacing: .5px; border-bottom: 1px solid var(--nx-border); }
.nx-bt-no   { width: 22px; text-align: center; color: var(--nx-muted); font-size: 11px; }
.nx-bt-amt  { width: 85px; text-align: center; }
.nx-bt-bb   { width: 32px; text-align: center; }
.nx-bt-del  { width: 24px; }
.nx-bt-stake-cell {
  width: 100%; padding: 6px 4px; background: var(--nx-bg3);
  border: 1px solid var(--nx-border); border-radius: 8px;
  color: var(--nx-text); font-size: 13px; font-weight: 600;
  text-align: center; font-family: inherit; -moz-appearance: textfield;
}
.nx-bt-stake-cell::-webkit-outer-spin-button,
.nx-bt-stake-cell::-webkit-inner-spin-button { -webkit-appearance: none; }
.nx-bt-stake-cell:focus { border-color: var(--nx-green); outline: none; }

/* Auto-bet row */
.nx-auto-bet-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 0 10px; border-bottom: 1px solid var(--nx-border); margin-bottom: 8px;
}
.nx-auto-label { font-size: 11px; font-weight: 700; color: var(--nx-muted2); white-space: nowrap; }
.nx-auto-input {
  width: 80px; padding: 5px 8px; background: var(--nx-bg3);
  border: 1px solid var(--nx-border); border-radius: 8px;
  color: var(--nx-text); font-size: 12px; text-align: center;
  -moz-appearance: textfield;
}
.nx-auto-input::-webkit-outer-spin-button,
.nx-auto-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Statement Pagination ── */
.nx-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-top: 1px solid var(--nx-border);
  margin-top: 4px; flex-wrap: wrap; gap: 6px;
}
.nx-pg-info { font-size: 11px; color: var(--nx-muted2); }
.nx-pg-btns { display: flex; align-items: center; gap: 4px; }
.nx-pg-cur  { font-size: 12px; font-weight: 700; padding: 0 8px; color: var(--nx-text); }
.nx-pg-btn  {
  background: var(--nx-card2); border: 1px solid var(--nx-border);
  color: var(--nx-text); border-radius: 6px; padding: 4px 10px;
  font-size: 12px; cursor: pointer; transition: background .15s;
}
.nx-pg-btn:hover:not(:disabled) { background: var(--nx-green); color: #000; border-color: var(--nx-green); }
.nx-pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.nx-loading { opacity: .5; }

/* ══ Member Card (compact, after login) ════════════════════════════ */
.nx-member-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nx-mc-top {
  display: flex; align-items: center; gap: 12px;
}
.nx-mc-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--nx-green); color: #000;
  font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nx-mc-info { display: flex; flex-direction: column; gap: 2px; }
.nx-mc-info small { font-size: 10px; color: var(--nx-muted2); text-transform: uppercase; letter-spacing: .5px; }
.nx-mc-info b  { font-size: 16px; font-weight: 800; color: var(--nx-text); }

.nx-mc-saldo { text-align: center; }
.nx-mc-saldo small { display: block; font-size: 10px; color: var(--nx-muted2); letter-spacing: 1px; margin-bottom: 4px; }
.nx-mc-saldo b { display: block; font-size: 26px; font-weight: 900; color: var(--nx-green); letter-spacing: -.5px; }

.nx-mc-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.nx-mc-actions .nx-btn { width: 100%; justify-content: center; font-size: 14px; padding: 10px; }

/* ══ Quick Actions Grid 4-col ═══════════════════════════════════════ */
.nx-qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 16px;
}
.nx-qa-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; padding: 12px 6px;
  background: var(--nx-card); border: 1px solid var(--nx-border);
  border-radius: 14px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
  color: var(--nx-text);
}
.nx-qa-btn:hover, .nx-qa-btn:active { background: var(--nx-card2); border-color: var(--nx-border2); }
.nx-qa-btn span { font-size: 22px; line-height: 1; }
.nx-qa-btn b    { font-size: 10px; font-weight: 700; color: var(--nx-muted2); text-align: center; white-space: nowrap; }

/* ══ Deposit View Redesign ══════════════════════════════════════════ */
.nx-dep-tabs {
  display: flex; gap: 8px; padding: 12px 0 0;
}
.nx-dep-tab {
  flex: 1; padding: 10px; border-radius: 10px;
  background: var(--nx-card2); border: 1.5px solid var(--nx-border);
  color: var(--nx-muted2); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; text-align: center;
}
.nx-dep-tab.active {
  background: var(--nx-card); border-color: var(--nx-green);
  color: var(--nx-text);
}

.nx-dep-content { padding: 4px 0 80px; display: flex; flex-direction: column; gap: 12px; }

.nx-dep-info {
  background: var(--nx-card2); border: 1px solid var(--nx-border);
  border-radius: 10px; padding: 12px; font-size: 12px; color: var(--nx-muted2);
  line-height: 1.5;
}

.nx-dep-form { display: flex; flex-direction: column; gap: 14px; }

.nx-dep-field { display: flex; flex-direction: column; gap: 6px; }
.nx-dep-label { font-size: 12px; font-weight: 700; color: var(--nx-muted2); }

.nx-dep-row { display: flex; flex-direction: column; gap: 2px; }
.nx-dep-readonly {
  background: var(--nx-card2); border: 1px solid var(--nx-border);
  border-radius: 8px; padding: 10px 12px;
  font-weight: 700; font-size: 14px; color: var(--nx-text);
}
.nx-dep-readonly-sub { font-size: 12px; font-weight: 500; color: var(--nx-muted2); margin-top: 2px; }

/* Bank info card */
.nx-dep-bank-card {
  background: var(--nx-card); border: 1.5px solid var(--nx-green);
  border-radius: 14px; overflow: hidden;
}
.nx-dep-bank-card-title {
  background: rgba(0,200,232,.10); padding: 10px 14px;
  font-size: 12px; font-weight: 800; color: var(--nx-green);
  letter-spacing: .5px;
}
.nx-dep-bank-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.nx-dep-bank-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.nx-dep-bank-row span { color: var(--nx-muted2); }
.nx-dep-bank-row b { font-weight: 700; color: var(--nx-text); }
.nx-dep-bank-num-wrap { display: flex; align-items: center; gap: 8px; }

/* Amount input */
.nx-dep-amount-wrap { display: flex; align-items: center; gap: 0; }
.nx-dep-rp {
  background: var(--nx-card2); border: 1px solid var(--nx-border);
  border-right: none; border-radius: 10px 0 0 10px;
  padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--nx-muted2);
}
.nx-dep-amount-input {
  border-radius: 0 10px 10px 0 !important;
  font-size: 18px !important; font-weight: 800 !important;
}
.nx-dep-quick { margin-top: 4px; }

/* Upload */
.nx-dep-upload-label {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px; border: 2px dashed var(--nx-border);
  border-radius: 10px; cursor: pointer; font-size: 13px;
  color: var(--nx-muted2); transition: border-color .15s;
}
.nx-dep-upload-label:hover { border-color: var(--nx-green); }
.nx-dep-file-input { display: none; }

/* Success state */
.nx-dep-success {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 16px 0; text-align: center;
}
.nx-dep-success-icon { font-size: 48px; }
.nx-dep-success h3 { font-size: 18px; font-weight: 800; }
.nx-dep-success .nx-dep-bank-card { width: 100%; text-align: left; }
.nx-dep-note { font-size: 12px; color: var(--nx-muted2); line-height: 1.6; }

/* ── Pasaran card countdown ── */
[data-psr-cutoff] {
  font-size: 11px;
  font-weight: 700;
  color: var(--nx-muted2);
  transition: color .3s;
}
.nx-cutoff-soon { color: #f87171 !important; animation: nx-blink .8s infinite; }
.nx-cutoff-passed { color: #6b7280 !important; }
@keyframes nx-blink { 0%,100% { opacity:1 } 50% { opacity:.4 } }

/* ── Bank Logo Grid ───────────────────────────────────── */
.nx-bank-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 5px;
  padding: 0 0 4px;
}
.nx-blg-item {
  border-radius: 8px;
  overflow: hidden;
  background: #061020;
  border: 1px solid rgba(0,200,232,.2);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}
.nx-blg-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
}
/* Fallback teks saat gambar gagal load */
.nx-blg-item[data-label]::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--nx-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0a1e35 0%, #061224 100%);
}
.bv-hidden { display: none !important; }
/* ══════════════════════════════════════════════════════════════════════
   TAMPILAN TOGEL BARU — Kategori 2-level, Digit Picker, Hasil
   ══════════════════════════════════════════════════════════════════════ */

/* ── Kategori utama ─────────────────────────────────────────────────── */
.nx-cat-box, .nx-subcat-box, .nx-tipbet-box {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}
.nx-cat-box-label {
  position: absolute; top: -8px; left: 12px;
  background: var(--panel, #141b1e);
  padding: 0 6px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; color: rgba(255,255,255,.55);
}
.nx-cat-grid, .nx-subcat-grid, .nx-tipbet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.nx-cat-item, .nx-subcat-item {
  padding: 8px 4px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #e8f0f2;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
  text-align: center; transition: all .15s;
}
.nx-cat-item.active, .nx-subcat-item.active {
  background: var(--green, #42d39a);
  color: #07110e; border-color: var(--green, #42d39a);
}
.nx-cat-item:hover:not(.active), .nx-subcat-item:hover:not(.active) {
  background: rgba(255,255,255,.08);
}

/* ── Tipe Bet ────────────────────────────────────────────────────────── */
.nx-tipbet {
  padding: 8px 4px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #e8f0f2;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  text-align: center; transition: all .15s;
}
.nx-tipbet.active { background: var(--panel2,#1b2428); border-color: #555; }

/* ── Info bar ────────────────────────────────────────────────────────── */
.nx-bet-info-bar {
  display: flex; gap: 12px; font-size: 11px;
  color: rgba(255,255,255,.55); padding: 4px 2px 8px;
}

/* ── Digit Picker (Colok Bebas 0-9) ─────────────────────────────────── */
#nxDigitPicker { padding: 8px 0; }
.nx-digit-label { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.nx-digit-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.nx-digit-btn {
  aspect-ratio: 1; border-radius: 8px; font-size: 20px; font-weight: 800;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #e8f0f2;
  cursor: pointer; transition: all .15s;
}
.nx-digit-btn:hover  { background: rgba(255,255,255,.12); }
.nx-digit-btn.active { background: var(--green,#42d39a); color: #07110e; border-color: var(--green,#42d39a); }
.nx-digit-stake { margin-bottom: 10px; }
.nx-digit-stake label { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.nx-digit-cart { padding: 8px; background: rgba(255,255,255,.04); border-radius: 8px; font-size: 12px; }
.nx-digit-empty { color: rgba(255,255,255,.35); }
.nx-digit-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.nx-digit-chip {
  background: var(--green,#42d39a); color: #07110e;
  border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.nx-digit-chip button { background: none; border: 0; font-size: 11px; cursor: pointer; color: #07110e; }
.nx-digit-total { font-size: 11px; color: rgba(255,255,255,.55); }

/* ── Hasil dengan Prize 1/2/3 ───────────────────────────────────────── */
.nx-hasil-row {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 12px;
}
.nx-hasil-meta {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.nx-hasil-market { font-weight: 800; font-size: 13px; }
.nx-hasil-period { font-size: 10px; color: rgba(255,255,255,.45); }
.nx-hasil-date   { font-size: 10px; color: rgba(255,255,255,.35); }
.nx-hasil-prizes { display: flex; gap: 10px; flex-shrink: 0; }
.nx-hasil-prize  { text-align: center; }
.nx-hasil-prize small { display: block; font-size: 9px; letter-spacing: 1px; color: rgba(255,255,255,.45); }
.nx-hasil-prize b     { font-size: 15px; font-weight: 900; color: var(--green,#42d39a); letter-spacing: 2px; }
.nx-hist-filter { padding: 10px 14px 2px; }
.nx-hist-filter select { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════
   PANEL POSISI — Silang Homo / Kembang / Kombinasi / Macau Shio
   (mengikuti layout kompetitor: putih terang, tabel pilihan+posisi)
   ══════════════════════════════════════════════════════════════════════ */

#nxBetPosisi { padding: 4px 0; }

.nx-posisi-header {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.12); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 8px; font-size: 13px; font-weight: 700;
}
.nx-posisi-total { font-size: 12px; color: rgba(255,255,255,.6); }

.nx-posisi-info-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 2px; margin-bottom: 8px;
}
.nx-posisi-info-btn {
  font-size: 10px; padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e8f0f2; cursor: pointer;
}
.nx-posisi-idr { font-size: 10px; color: rgba(255,255,255,.45); margin-left: auto; }

/* Tabel posisi */
.nx-posisi-table { width: 100%; border-collapse: collapse; }
.nx-posisi-table th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 6px 4px; border-bottom: 1.5px solid rgba(255,255,255,.12);
  text-align: center; color: rgba(255,255,255,.6);
}
.nx-posisi-table td {
  padding: 5px 3px; text-align: center; font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nx-posisi-kei { color: #f97316; font-size: 10.5px; }
.nx-posisi-sel { width: 100%; font-size: 10px; padding: 4px 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 5px; color: #e8f0f2; }
.nx-posisi-amt { width: 100%; text-align: center; font-size: 11px; padding: 4px 2px; border-radius: 5px; }
.nx-posisi-amt:disabled { opacity: .35; }
.nx-posisi-autobet { width: 100%; font-size: 10px; padding: 4px 2px; text-align: center; }

/* Running total bar */
.nx-bet-running-total {
  background: rgba(255,255,255,.08); border-radius: 8px;
  padding: 7px 12px; font-size: 12px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.nx-bet-running-total b { color: var(--green,#42d39a); }

/* Info bar */
.nx-bet-info-bar {
  display: flex; gap: 12px; font-size: 10.5px;
  color: rgba(255,255,255,.5); padding: 2px 2px 6px; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════
   NXB — Panel Bet Togel (layout persis kompetitor PetaniToto)
   Warna: bg-slate-50 (panel), bg-slate-300 (header/info), bg-slate-400 (FULL)
   ══════════════════════════════════════════════════════════════════════ */

/* Panel utama */
.nxb-panel {
  background: #f8fafc;   /* slate-50 */
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  color: #0f172a;        /* text-black */
}

/* ── Tipe Bet ─────────────────────────────────────────────────────── */
.nxb-tipbet-wrap {
  border: 1px solid #94a3b8;
  border-radius: 8px;
  position: relative;
  padding: 10px 8px 8px;
}
.nxb-tipbet-label {
  position: absolute;
  top: -8px; left: 10px;
  background: #f8fafc;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .5px;
}
.nxb-tipbet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
/* Setiap tombol Tipe Bet */
.nxb-tipbet-btn {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #0f172a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s;
  color: #0f172a;
  text-align: center;
}
.nxb-tipbet-btn:hover { filter: brightness(.9); }
.nxb-tipbet-btn[data-tipbet="full"]     { background: #94a3b8; } /* slate-400 — aktif */
.nxb-tipbet-btn[data-tipbet="diskon"]   { background: #bae6fd; } /* sky-200 */
.nxb-tipbet-btn[data-tipbet="bb"]       { background: #bbf7d0; } /* green-200 */
.nxb-tipbet-btn[data-tipbet="prize123"] { background: #fecaca; } /* red-200 */
.nxb-tipbet-btn.active[data-tipbet="full"]     { background: #64748b; color:#fff; }
.nxb-tipbet-btn.active[data-tipbet="diskon"]   { background: #38bdf8; }
.nxb-tipbet-btn.active[data-tipbet="bb"]       { background: #4ade80; }
.nxb-tipbet-btn.active[data-tipbet="prize123"] { background: #f87171; }

/* ── Header sub-kategori + Total bet ─────────────────────────────── */
.nxb-subhead {
  background: #cbd5e1;   /* slate-300 */
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.nxb-subhead-title { font-weight: 700; }
.nxb-subhead-total { font-size: 11px; font-weight: 600; }

/* ── Form wrap ────────────────────────────────────────────────────── */
.nxb-form-wrap {
  background: #cbd5e1;   /* slate-300 */
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Info row (Baris | Reward | MinBet | IDR) ──────────────────── */
.nxb-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 6px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid #94a3b8;
}
.nxb-baris-wrap { display: flex; }
.nxb-baris-select {
  width: 100%;
  border: 1px solid #0f172a;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  height: 32px;
}
.nxb-info-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f8fafc;
  border: 1px solid #0f172a;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 6px;
  cursor: pointer;
  white-space: nowrap;
  height: 32px;
  color: #0f172a;
}
.nxb-info-btn:hover { background: #e2e8f0; }
.nxb-info-btn svg { flex-shrink: 0; }
.nxb-idr-label {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  text-align: right;
}

/* ── Tabel nomor ─────────────────────────────────────────────────── */
.nxb-table-wrap { overflow-x: auto; }
.nxb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #0f172a;
}
.nxb-table th {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  padding: 5px 3px;
  text-align: center;
  border-bottom: 2px solid #94a3b8;
}
.nxb-th-no     { width: 22px; }
.nxb-th-num    { min-width: 60px; }
.nxb-th-nominal{ font-weight: 700; }
.nxb-th-bb     { width: 28px; }

/* Baris data */
.nxb-table tbody tr { text-align: center; }
.nxb-table tbody td { padding: 4px 2px; }

/* Auto-bet row (baris 0) */
.nxb-autobet-row td { padding: 4px 2px; }

/* Input di dalam tabel */
.nxb-input {
  width: 100%;
  min-width: 40px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  text-align: center;
  padding: 3px 2px;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.nxb-input:focus { outline: none; border-color: #475569; }
.nxb-input:disabled { background: #e2e8f0; color: #94a3b8; }
.nxb-input::-webkit-outer-spin-button,
.nxb-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nxb-input::placeholder { color: #94a3b8; font-size: 10px; }

/* BB checkbox */
.nxb-bb-chk { width: 15px; height: 15px; cursor: pointer; accent-color: #475569; }
.nxb-bb-chk:disabled { opacity: .35; }

/* Tombol tambah baris */
.nxb-add-row {
  display: block;
  margin-top: 6px;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  color: #374151;
  font-size: 11px;
  padding: 5px;
  cursor: pointer;
  font-weight: 600;
}
.nxb-add-row:hover { background: #e2e8f0; }
.nxb-apply-auto { display: none; }

/* ── Footer ───────────────────────────────────────────────────────── */
.nxb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.nxb-totals {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #374151;
}
.nxb-totals small { font-size: 10px; color: #64748b; display: block; }
.nxb-totals b { font-size: 15px; color: #0f172a; }
.nxb-footer-actions { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }

/* ── Digit picker (Colok Bebas) ──────────────────────────────────── */
.nxb-digit-wrap { padding: 6px 0; }
.nxb-digit-label { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.nxb-digit-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 12px;
}
.nxb-digit-btn {
  aspect-ratio: 1; border-radius: 8px; font-size: 18px; font-weight: 800;
  border: 1.5px solid #94a3b8; background: #fff; color: #374151; cursor: pointer;
  transition: all .15s;
}
.nxb-digit-btn:hover  { background: #e2e8f0; }
.nxb-digit-btn.active { background: #475569; color: #fff; border-color: #475569; }
.nxb-digit-stake-row { margin-bottom: 8px; }
.nxb-digit-stake-row label { display:block; font-size:11px; color:#64748b; margin-bottom:4px; }
.nxb-digit-cart { background: #f1f5f9; border-radius: 6px; padding: 8px; font-size: 12px; color: #374151; min-height: 32px; }

/* ── Select grid (Tengah/Tepi, 50-50, Shio) ─────────────────────── */
.nxb-select-wrap { padding: 6px 0; }
.nxb-select-stake-row { margin-top: 10px; }
.nxb-select-stake-row label { display:block; font-size:11px; color:#64748b; margin-bottom:4px; }

/* ── Panel Posisi (Silang Homo dll) ─────────────────────────────── */
.nxb-posisi-wrap { padding: 6px 0; }
.nxb-posisi-head {
  display: flex; justify-content: space-between; align-items: center;
  background: #cbd5e1; border-radius: 8px; padding: 7px 10px;
  font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 6px;
}
.nxb-posisi-info {
  display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap;
}
.nxb-posisi-sel {
  width: 100%; font-size: 10px; padding: 4px 2px;
  border: 1px solid #94a3b8; border-radius: 5px; background: #fff; color: #374151;
}
.nxb-posisi-amt {
  width: 100%; text-align: center; font-size: 11px;
  border: 1px solid #94a3b8; border-radius: 5px; background: #fff; padding: 3px 2px;
}
.nxb-posisi-amt:disabled { background: #e2e8f0; color: #94a3b8; }
.nxb-posisi-kei { color: #dc2626; font-size: 10.5px; }
.nxb-posisi-autobet { width:100%; font-size:10px; padding:3px; text-align:center; border:1px solid #94a3b8; border-radius:5px; background:#fff; }

/* ── Hasil togel ─────────────────────────────────────────────────── */
.nxb-hasil-filter { padding: 8px 0 4px; }
.nxb-hasil-list { }

/* ── Kategori box (dipertahankan, warna dark theme) ─────────────── */
.nx-cat-box, .nx-subcat-box {
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  padding: 10px; margin-bottom: 8px; position: relative;
}
.nx-cat-box-label {
  position: absolute; top: -8px; left: 12px;
  background: var(--panel, #141b1e);
  padding: 0 6px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; color: rgba(255,255,255,.55);
}
.nx-cat-grid, .nx-subcat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.nx-cat-item, .nx-subcat-item {
  padding: 8px 4px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent; color: #e8f0f2;
  font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: center;
  transition: all .15s;
}
.nx-cat-item.active, .nx-subcat-item.active {
  background: var(--green, #42d39a); color: #07110e; border-color: var(--green, #42d39a);
}
.nx-cat-item:hover:not(.active), .nx-subcat-item:hover:not(.active) {
  background: rgba(255,255,255,.08);
}

/* nxb table row extra */
.nxb-td-no { width: 22px; font-size: 11px; color: #374151; font-weight: 600; padding: 4px 2px !important; }
.nxb-rm-btn {
  background: none; border: none; color: #94a3b8; font-size: 13px;
  cursor: pointer; padding: 2px 4px; border-radius: 4px;
}
.nxb-rm-btn:hover { color: #ef4444; background: #fee2e2; }

/* Digit picker nxb */
.nxb-digit-btn.active { background: #475569 !important; color: #fff !important; border-color: #475569 !important; }

/* ═══════════════════════════════════════════════════════════════════════
   KARTU PASARAN — PREMIUM (.nx-pro)
   bingkai gradasi cyan→emas, ubin result bergaya papan undian,
   panel hitung mundur kaca, tombol Main emas. Tanpa inline style (CSP).
═══════════════════════════════════════════════════════════════════════ */
.nx-psr-card.nx-pro {
  --pro-cyan: #22d3ee; --pro-gold: #f5c542; --pro-gold2: #d99a1c;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  border: 0; border-radius: 20px;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(34, 211, 238, .20), transparent 62%),
    radial-gradient(90% 60% at 50% 115%, rgba(245, 197, 66, .10), transparent 60%),
    linear-gradient(165deg, #0b2743 0%, #07172c 48%, #040b17 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 2px 0 rgba(255, 255, 255, .04) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* bingkai gradasi 1px */
.nx-psr-card.nx-pro::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: 1px; border-radius: inherit;
  background: linear-gradient(145deg, rgba(34, 211, 238, .85), rgba(245, 197, 66, .45) 45%, rgba(34, 211, 238, .12) 75%, rgba(245, 197, 66, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* kilau yang bergerak pelan */
.nx-psr-card.nx-pro::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -60%; left: -140%; width: 60%; height: 220%; border-radius: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: rotate(18deg); animation: nx-pro-sheen 7s ease-in-out infinite;
}
@keyframes nx-pro-sheen { 0%, 60% { left: -140%; } 100% { left: 160%; } }
.nx-psr-card.nx-pro > * { position: relative; z-index: 1; }
.nx-psr-card.nx-pro:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, .6), 0 0 26px rgba(34, 211, 238, .18); }

/* nama pasaran */
.nx-psr-card.nx-pro .nx-psr-head { padding: 14px 12px 6px; text-align: center; background: none; border: 0;
  min-height: calc(12px * 1.35 * 2 + 20px); display: flex; align-items: center; justify-content: center; }   /* ruang 2 baris: kartu bersebelahan tetap sejajar */
.nx-psr-card.nx-pro .nx-psr-name {
  display: block; font-size: 12px; font-weight: 900; letter-spacing: 1.8px; line-height: 1.35; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #a5f3fc 55%, var(--pro-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ubin result */
.nx-psr-card.nx-pro .nx-psr-result {
  display: flex; justify-content: center; gap: 6px; padding: 8px 10px 4px;
  font-size: 0; letter-spacing: 0; text-shadow: none;
}
.nx-psr-card.nx-pro .nx-psr-ball {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(30px, 8.6vw, 42px); aspect-ratio: 5 / 6; border-radius: 10px;
  background: linear-gradient(180deg, #1c3552 0%, #0d1c30 55%, #081322 100%);
  border: 1px solid rgba(245, 197, 66, .55);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .45), 0 0 14px rgba(245, 197, 66, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
  font: 900 clamp(20px, 6vw, 28px)/1 ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  background-clip: padding-box;
}
.nx-psr-card.nx-pro .nx-psr-ball {
  color: var(--pro-gold);
  text-shadow: 0 0 12px rgba(245, 197, 66, .55), 0 2px 0 rgba(0, 0, 0, .5);
}
.nx-psr-card.nx-pro .nx-psr-ball::after {         /* kilap atas ubin */
  content: ''; position: absolute; left: 3px; right: 3px; top: 2px; height: 42%;
  border-radius: 8px 8px 12px 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.nx-psr-card.nx-pro .nx-psr-sub {
  text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(165, 243, 252, .55); padding: 4px 0 10px;
}

/* panel hitung mundur (kaca) */
.nx-psr-card.nx-pro .nx-psr-panel {
  margin: 0 10px 10px; padding: 9px 10px 8px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(34, 211, 238, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nx-psr-card.nx-pro .nx-psr-cd-lbl { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(203, 213, 225, .6); }
.nx-psr-card.nx-pro .nx-psr-countdown {
  display: block; margin: 2px 0 7px;
  font: 800 clamp(15px, 4.4vw, 19px)/1.15 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; letter-spacing: 1px; color: var(--pro-cyan);
  text-shadow: 0 0 14px rgba(34, 211, 238, .45);
}
.nx-psr-card.nx-pro .nx-psr-countdown.nx-cd-warn   { color: #fbbf24; text-shadow: 0 0 14px rgba(251, 191, 36, .45); }
.nx-psr-card.nx-pro .nx-psr-countdown.nx-cd-danger { color: #f87171; text-shadow: 0 0 14px rgba(248, 113, 113, .55); }
.nx-psr-card.nx-pro .nx-psr-countdown.nx-cd-passed { color: #94a3b8; text-shadow: none; font-size: 13px; }
.nx-psr-card.nx-pro .nx-psr-status-row { display: flex; align-items: center; justify-content: center; gap: 6px 10px; padding: 0; flex-wrap: wrap; }
.nx-psr-card.nx-pro .nx-psr-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px;
  font-size: 9.5px; font-weight: 900; letter-spacing: 1px; animation: none;
}
.nx-psr-card.nx-pro .nx-psr-badge.open   { color: #34d399; background: rgba(16, 185, 129, .14); border: 1px solid rgba(52, 211, 153, .45); }
.nx-psr-card.nx-pro .nx-psr-badge.closed { color: #f87171; background: rgba(239, 68, 68, .12); border: 1px solid rgba(248, 113, 113, .4); }
.nx-psr-card.nx-pro .nx-psr-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nx-psr-card.nx-pro .nx-psr-badge.open .nx-psr-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: nx-pro-ping 1.8s ease-out infinite;
}
@keyframes nx-pro-ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.nx-psr-card.nx-pro .nx-psr-cutoff-static { font-size: 10.5px; color: rgba(203, 213, 225, .7); white-space: nowrap; }
.nx-psr-card.nx-pro .nx-psr-cutoff-static b { color: #e2e8f0; font-weight: 800; }

/* tombol */
.nx-psr-card.nx-pro .nx-psr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 10px 12px; margin-top: auto; border: 0; background: none; }
.nx-psr-card.nx-pro .nx-psr-btn-riwayat,
.nx-psr-card.nx-pro .nx-psr-btn-main {
  height: 36px; border-radius: 11px; font-size: 12.5px; font-weight: 900; letter-spacing: .4px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.nx-psr-card.nx-pro .nx-psr-btn-riwayat { color: #a5f3fc; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .35); }
.nx-psr-card.nx-pro .nx-psr-btn-riwayat:hover { background: rgba(34, 211, 238, .16); }
.nx-psr-card.nx-pro .nx-psr-btn-main {
  position: relative; overflow: hidden; color: #1a1204; border: 0;
  background: linear-gradient(180deg, #ffe08a 0%, var(--pro-gold) 45%, var(--pro-gold2) 100%);
  box-shadow: 0 6px 16px rgba(245, 197, 66, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nx-psr-card.nx-pro .nx-psr-btn-main:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nx-psr-card.nx-pro .nx-psr-btn-main:active { transform: translateY(0); }
.nx-psr-card.nx-pro .nx-psr-btn-main.disabled,
.nx-psr-card.nx-pro .nx-psr-btn-main[disabled] {
  cursor: not-allowed; color: #94a3b8; box-shadow: none; filter: none; transform: none;
  background: linear-gradient(180deg, #1f2937, #111827); border: 1px solid rgba(148, 163, 184, .25);
}

/* kartu TUTUP: nuansa merah redup */
.nx-psr-card.nx-pro.tutup {
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(239, 68, 68, .16), transparent 62%),
    linear-gradient(165deg, #2a0f14 0%, #170a0e 50%, #0b0508 100%);
}
.nx-psr-card.nx-pro.tutup::after { background: linear-gradient(145deg, rgba(248, 113, 113, .7), rgba(245, 197, 66, .25) 50%, rgba(248, 113, 113, .15)); }
.nx-psr-card.nx-pro.tutup .nx-psr-name { background: linear-gradient(180deg, #fff, #fecaca 60%, #fca5a5); -webkit-background-clip: text; background-clip: text; }
.nx-psr-card.nx-pro.tutup .nx-psr-ball { border-color: rgba(245, 197, 66, .3); filter: saturate(.8) brightness(.9); }
.nx-psr-card.nx-pro.tutup .nx-psr-panel { border-color: rgba(248, 113, 113, .22); }

/* hormati pengaturan "kurangi gerakan" */
@media (prefers-reduced-motion: reduce) {
  .nx-psr-card.nx-pro::before, .nx-psr-card.nx-pro .nx-psr-badge.open .nx-psr-dot::after { animation: none; }
  .nx-psr-card.nx-pro, .nx-psr-card.nx-pro:hover { transition: none; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   BERANDA MEMBER — PREMIUM (.nx-pro-mc / .nx-pro-qa)
═══════════════════════════════════════════════════════════════════════ */
.nx-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.nx-member-card.nx-pro-mc {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 18px 16px 16px; border: 0; border-radius: 22px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(245, 197, 66, .16), transparent 60%),
    radial-gradient(110% 80% at 0% 100%, rgba(34, 211, 238, .16), transparent 62%),
    linear-gradient(160deg, #0d2a47 0%, #081a31 50%, #050e1c 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nx-member-card.nx-pro-mc::after {          /* bingkai gradasi */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(245, 197, 66, .8), rgba(34, 211, 238, .5) 45%, rgba(34, 211, 238, .1) 70%, rgba(245, 197, 66, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.nx-member-card.nx-pro-mc::before {         /* kilau */
  content: ''; position: absolute; z-index: 0; pointer-events: none; top: -60%; left: -140%; width: 55%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent); transform: rotate(18deg);
  animation: nx-pro-sheen 8s ease-in-out infinite;
}
.nx-member-card.nx-pro-mc > * { position: relative; z-index: 1; }

.nx-pro-mc .nx-mc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nx-pro-mc .nx-mc-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; font-weight: 900; color: #1a1204;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f5c542 55%, #c7861a);
  box-shadow: 0 0 0 2px #081a31, 0 0 0 3.5px rgba(245, 197, 66, .7), 0 6px 18px rgba(245, 197, 66, .3);
}
.nx-pro-mc .nx-mc-info { flex: 1 1 auto; min-width: 0; }
.nx-pro-mc .nx-mc-info small { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; color: rgba(165, 243, 252, .7); }
.nx-pro-mc .nx-mc-info b { font-size: 17px; font-weight: 900; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-pro-mc .nx-mc-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; color: #34d399;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(52, 211, 153, .4);
}
.nx-pro-mc .nx-mc-tag i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nx-pro-mc .nx-mc-tag i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: nx-pro-ping 1.8s ease-out infinite; }

.nx-pro-mc .nx-mc-saldo {
  margin: 0 0 14px; padding: 12px 10px 13px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(245, 197, 66, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nx-pro-mc .nx-mc-saldo small { font-size: 9.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(203, 213, 225, .65); margin-bottom: 5px; }
.nx-pro-mc .nx-mc-saldo b {
  font-size: clamp(26px, 8vw, 32px); font-weight: 900; letter-spacing: -.3px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6d0 0%, #f5c542 55%, #d4921a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 197, 66, .28));
}
.nx-pro-mc .nx-mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-pro-mc .nx-mc-actions .nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 10px; border-radius: 13px; font-size: 14px; font-weight: 900; letter-spacing: .3px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.nx-pro-mc .nx-mc-dep {
  color: #1a1204; border: 0;
  background: linear-gradient(180deg, #ffe08a 0%, #f5c542 45%, #d99a1c 100%);
  box-shadow: 0 8px 20px rgba(245, 197, 66, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nx-pro-mc .nx-mc-wd { color: #a5f3fc; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .4); }
.nx-pro-mc .nx-mc-dep:hover { filter: brightness(1.06); transform: translateY(-1px); }
.nx-pro-mc .nx-mc-wd:hover  { background: rgba(34, 211, 238, .16); }

/* ── Menu cepat ── */
.nx-qa-grid.nx-pro-qa { gap: 10px; }
.nx-pro-qa .nx-qa-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 4px 10px; border-radius: 16px; min-height: 78px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)), #0a1a2e;
  border: 1px solid rgba(34, 211, 238, .16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nx-pro-qa .nx-qa-btn:hover { transform: translateY(-3px); border-color: rgba(245, 197, 66, .5); box-shadow: 0 12px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(245, 197, 66, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), #0c1f36; }
.nx-pro-qa .nx-qa-btn:active { transform: translateY(0) scale(.97); }
.nx-pro-qa .nx-qa-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 0;
  background: radial-gradient(circle at 50% 30%, rgba(245, 197, 66, .22), rgba(245, 197, 66, 0) 70%), linear-gradient(180deg, #16304f, #0b1a2e);
  border: 1px solid rgba(245, 197, 66, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 10px rgba(0, 0, 0, .35);
}
.nx-pro-qa .nx-qa-ic svg { width: 22px; height: 22px; filter: drop-shadow(0 0 4px rgba(245, 197, 66, .35)); }
.nx-pro-qa .nx-qa-btn b { font-size: 10.5px; font-weight: 800; color: #cbd5e1; letter-spacing: .2px; white-space: nowrap; }
.nx-pro-qa .nx-qa-btn:hover b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .nx-member-card.nx-pro-mc::before, .nx-pro-mc .nx-mc-tag i::after { animation: none; }
  .nx-pro-qa .nx-qa-btn, .nx-pro-qa .nx-qa-btn:hover { transition: none; transform: none; }
}
.nx-qa-grid.nx-pro-qa { margin-top: 14px; }

/* ── Coming Soon (kategori Arcade) ── */
.nx-pro-qa .nx-qa-soon { position: absolute; top: 3px; right: 3px; z-index: 2; padding: 1.5px 5px; border-radius: 99px;
  font-size: 7px; font-weight: 900; letter-spacing: .8px; color: #1a1204;
  background: linear-gradient(180deg, #ffe08a, #f5c542 55%, #d99a1c); box-shadow: 0 2px 6px rgba(245, 197, 66, .35); }
.nx-pro-qa .nx-qa-btn.is-soon { padding-top: 16px; }
.nx-pro-qa .nx-qa-btn.is-soon .nx-qa-ic { filter: saturate(.75); opacity: .8; }
.nx-soon-panel {
  grid-column: 1 / -1; position: relative; overflow: hidden; margin: 6px 0; padding: 26px 18px 22px; border-radius: 20px; text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(245, 197, 66, .16), transparent 62%), linear-gradient(165deg, #0d2a47, #06122a 60%, #040b17);
  border: 1px solid rgba(245, 197, 66, .35); box-shadow: 0 16px 36px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nx-soon-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(245, 197, 66, .25), transparent 70%), linear-gradient(180deg, #16304f, #0b1a2e);
  border: 1px solid rgba(245, 197, 66, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 16px rgba(0, 0, 0, .4); }
.nx-soon-tag { display: block; width: max-content; margin: 0 auto 8px; padding: 3px 10px; border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: 1.6px;
  color: #1a1204; background: linear-gradient(180deg, #ffe08a, #f5c542 55%, #d99a1c); }
.nx-soon-panel h3 { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: #fff; }
.nx-soon-panel p { margin: 0 auto 16px; max-width: 34ch; font-size: 13px; line-height: 1.5; color: #94a3b8; }
.nx-soon-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nx-soon-btn { height: 40px; padding: 0 18px; border-radius: 12px; font-size: 13px; font-weight: 900; cursor: pointer; border: 0; color: #1a1204;
  background: linear-gradient(180deg, #ffe08a, #f5c542 45%, #d99a1c); box-shadow: 0 6px 16px rgba(245, 197, 66, .3); }
.nx-soon-btn.ghost { color: #a5f3fc; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .4); box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM UI (.nx-prem) — navbar, bottom bar, sidebar, menu Lainnya,
   halaman member (Statement, History, Inbox, Referral, Password).
   Hanya tampilan: ukuran & posisi tata letak lama dipertahankan.
═══════════════════════════════════════════════════════════════════════════ */
.nx-prem { --pg: #f5c542; --pg2: #d99a1c; --pc: #22d3ee; --pglass: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.nx-prem .nx-i { display: block; flex: 0 0 auto; }

/* ── Navbar atas ── */
.nx-prem .nx-topbar {
  background: linear-gradient(180deg, rgba(10, 26, 46, .96), rgba(6, 14, 26, .94));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(245,197,66,.55), rgba(34,211,238,.45), transparent) 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.nx-prem .nx-menu-btn { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(34,211,238,.22); }
.nx-prem .nx-menu-btn span { background: linear-gradient(90deg, #fff, #a5f3fc); }
.nx-prem .nx-wallet-btn {
  border-radius: 12px; background: var(--pglass), #0b1b30; border: 1px solid rgba(245,197,66,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.35);
}
.nx-prem .nx-wallet-label { color: rgba(203,213,225,.65); letter-spacing: 1.4px; }
.nx-prem .nx-wallet-val {
  background: linear-gradient(180deg, #fff6d0, var(--pg) 55%, var(--pg2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900;
}
.nx-prem .nx-avatar-btn {
  color: #1a1204; font-weight: 900; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--pg) 55%, #c7861a);
  box-shadow: 0 0 0 2px #07172c, 0 0 0 3px rgba(245,197,66,.6), 0 4px 12px rgba(245,197,66,.25);
}

/* ── Bottom bar ── */
.nx-prem .nx-bottom-nav {
  background: linear-gradient(180deg, rgba(10, 24, 42, .96), rgba(4, 10, 20, .98));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(34,211,238,.45), rgba(245,197,66,.5), transparent) 1;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
}
.nx-prem .nx-bnav-item { position: relative; gap: 3px; color: #7f93ab; transition: color .15s ease; }
.nx-prem .nx-bnav-item span { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 10px; font-size: 0; transition: background .15s ease, box-shadow .15s ease; }
.nx-prem .nx-bnav-item b { font-size: 10.5px; font-weight: 800; letter-spacing: .2px; }
.nx-prem .nx-bnav-item:hover { color: #cbd5e1; }
.nx-prem .nx-bnav-item.active { color: var(--pg); }
.nx-prem .nx-bnav-item.active span { background: radial-gradient(circle at 50% 30%, rgba(245,197,66,.28), rgba(245,197,66,.06) 70%); box-shadow: inset 0 0 0 1px rgba(245,197,66,.35); }
.nx-prem .nx-bnav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--pg), #ffe08a); box-shadow: 0 0 10px rgba(245,197,66,.6);
}

/* ── Sidebar + lapisan gelap (dulu tidak punya CSS: klik di luar tidak menutup) ── */
.nx-prem .nx-overlay {
  position: fixed; inset: 0; z-index: 199; background: rgba(2, 6, 14, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.nx-prem .nx-overlay.show { opacity: 1; visibility: visible; }
body.nx-drawer-open { overflow: hidden; }
.nx-prem .nx-drawer {
  background:
    radial-gradient(120% 40% at 0% 0%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(120% 40% at 100% 100%, rgba(245,197,66,.10), transparent 60%),
    linear-gradient(180deg, #0a1c33, #050d1a);
  border-right: 1px solid rgba(245,197,66,.28); box-shadow: 18px 0 40px rgba(0,0,0,.55);
}
.nx-prem .nx-drawer-head { border-bottom: 1px solid rgba(255,255,255,.06); }
.nx-prem .nx-drawer-close {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #cbd5e1;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.nx-prem .nx-drawer-close:hover { color: #fff; border-color: rgba(245,197,66,.5); }
.nx-prem .nx-drawer-user {
  margin: 12px 12px 4px; padding: 12px; border-radius: 16px; border: 1px solid rgba(245,197,66,.3);
  background: radial-gradient(90% 90% at 100% 0%, rgba(245,197,66,.14), transparent 60%), var(--pglass), #0b1d34;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nx-prem .nx-drawer-avatar {
  color: #1a1204; font-weight: 900; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--pg) 55%, #c7861a);
  box-shadow: 0 0 0 2px #0b1d34, 0 0 0 3px rgba(245,197,66,.6);
}
.nx-prem .nx-drawer-user b { color: #fff; font-weight: 900; }
.nx-prem .nx-drawer-user small {
  font-weight: 900; font-size: 13px; background: linear-gradient(180deg, #fff6d0, var(--pg) 55%, var(--pg2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-prem .nx-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px 6px; }
.nx-prem .nx-drawer-action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 64px; border-radius: 14px; cursor: pointer;
  font-size: 12px; font-weight: 900; border: 1px solid rgba(34,211,238,.35); color: #a5f3fc; background: rgba(34,211,238,.07);
}
.nx-prem .nx-drawer-action-btn span { font-size: 0; }
.nx-prem .nx-drawer-action-btn.nx-dab-deposit {
  color: #1a1204; border: 0; background: linear-gradient(180deg, #ffe08a, var(--pg) 45%, var(--pg2));
  box-shadow: 0 6px 16px rgba(245,197,66,.28), inset 0 1px 0 rgba(255,255,255,.6);
}
.nx-prem .nx-drawer-label { padding: 14px 18px 6px; font-size: 9.5px; font-weight: 900; letter-spacing: 2px; color: rgba(245,197,66,.75); }
.nx-prem .nx-drawer-nav button, .nx-prem .nx-drawer-nav a {
  margin: 2px 10px; width: calc(100% - 20px); padding: 9px 10px; border-radius: 12px; color: #cbd5e1; font-weight: 700;
  border: 1px solid transparent; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.nx-prem .nx-drawer-nav button:hover, .nx-prem .nx-drawer-nav a:hover { background: rgba(255,255,255,.05); border-color: rgba(245,197,66,.25); color: #fff; }
.nx-prem .nx-drawer-nav .nx-di {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 0; color: var(--pg);
  background: radial-gradient(circle at 50% 30%, rgba(245,197,66,.2), rgba(245,197,66,0) 70%), linear-gradient(180deg, #16304f, #0b1a2e);
  border: 1px solid rgba(245,197,66,.3);
}
.nx-prem .nx-drawer-divider { margin: 10px 16px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); border: 0; }
.nx-prem .nx-drawer-nav .nx-drawer-logout { color: #fca5a5; }
.nx-prem .nx-drawer-nav .nx-drawer-logout .nx-di { color: #f87171; border-color: rgba(248,113,113,.35); background: rgba(239,68,68,.08); }

/* ── Menu Lainnya ── */
.nx-prem .nx-more-overlay { background: rgba(2, 6, 14, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nx-prem .nx-more-modal {
  border-radius: 22px 22px 0 0; border: 1px solid rgba(245,197,66,.3); border-bottom: 0;
  background: radial-gradient(100% 60% at 50% 0%, rgba(245,197,66,.12), transparent 60%), linear-gradient(180deg, #0c2340, #050d1a);
  box-shadow: 0 -16px 40px rgba(0,0,0,.55);
}
.nx-prem .nx-more-header span { font-weight: 900; letter-spacing: .4px; color: #fff; }
.nx-prem .nx-more-close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.nx-prem .nx-more-item { border-radius: 16px; border: 1px solid rgba(34,211,238,.16); background: var(--pglass), #0a1a2e; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.nx-prem .nx-more-item span {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 14px; font-size: 0; color: var(--pg);
  background: radial-gradient(circle at 50% 30%, rgba(245,197,66,.22), transparent 70%), linear-gradient(180deg, #16304f, #0b1a2e); border: 1px solid rgba(245,197,66,.35);
}
.nx-prem .nx-more-item b { color: #cbd5e1; font-weight: 900; letter-spacing: .6px; }

/* ── Tab halaman member ── */
.nx-prem .nx-mtab-bar { gap: 8px; padding: 4px 2px 10px; }
.nx-prem .nx-mtab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; font-weight: 800; font-size: 12.5px; color: #94a3b8;
  background: var(--pglass), #0a1a2e; border: 1px solid rgba(255,255,255,.08); white-space: nowrap;
}
.nx-prem .nx-mtab span { font-size: 0; color: inherit; }
.nx-prem .nx-mtab.active {
  color: #1a1204; border-color: transparent; background: linear-gradient(180deg, #ffe08a, var(--pg) 45%, var(--pg2));
  box-shadow: 0 6px 16px rgba(245,197,66,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.nx-prem .nx-tool-head { align-items: center; margin: 4px 0 10px; }
.nx-prem .nx-tool-head h3 { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: .2px; }
.nx-prem .nx-tool-head h3::before { content: ''; display: inline-block; width: 4px; height: 14px; margin-right: 8px; border-radius: 2px; vertical-align: -1px; background: linear-gradient(180deg, #ffe08a, var(--pg2)); }
.nx-prem .nx-select, .nx-prem .nx-input {
  border-radius: 12px; background: #0a1a2e; border: 1px solid rgba(34,211,238,.22); color: #e2e8f0;
}
.nx-prem .nx-input:focus, .nx-prem .nx-select:focus { border-color: rgba(245,197,66,.6); box-shadow: 0 0 0 3px rgba(245,197,66,.12); outline: 0; }

/* ── Kartu daftar (Statement / History) ── */
.nx-prem .nx-trx-list { display: flex; flex-direction: column; gap: 8px; }
.nx-prem .nx-trx-item, .nx-prem .nx-trx-group {
  border-radius: 16px; border: 1px solid rgba(34,211,238,.14); background: var(--pglass), #0a1a2e;
  box-shadow: 0 6px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.nx-prem .nx-trx-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; font-size: 0; color: var(--pg);
  background: radial-gradient(circle at 50% 30%, rgba(245,197,66,.2), transparent 70%), linear-gradient(180deg, #16304f, #0b1a2e); border: 1px solid rgba(245,197,66,.3);
}
.nx-prem .nx-trx-icon.in  { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(16,185,129,.1); }
.nx-prem .nx-trx-icon.out { color: #f87171; border-color: rgba(248,113,113,.4); background: rgba(239,68,68,.08); }
.nx-prem .nx-trx-body b { color: #f1f5f9; font-weight: 800; }
.nx-prem .nx-trx-body small { color: #7f93ab; }
.nx-prem .nx-amt-in  { color: #34d399; font-weight: 900; }
.nx-prem .nx-amt-out { color: #f87171; font-weight: 900; }
.nx-prem .nx-status { border-radius: 99px; padding: 2px 8px; font-size: 9.5px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; border: 1px solid rgba(148,163,184,.3); color: #cbd5e1; background: rgba(148,163,184,.08); }
.nx-prem .nx-status.menang, .nx-prem .nx-status.success, .nx-prem .nx-status.approved, .nx-prem .nx-status.paid, .nx-prem .nx-status.active { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(16,185,129,.1); }
.nx-prem .nx-status.kalah, .nx-prem .nx-status.rejected, .nx-prem .nx-status.failed { color: #f87171; border-color: rgba(248,113,113,.4); background: rgba(239,68,68,.08); }
.nx-prem .nx-status.menunggu, .nx-prem .nx-status.pending { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }

/* History togel: 1 kotak per transaksi pasang */
.nx-prem .nx-tg-batch .nx-trx-group-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 30px 11px 11px; cursor: pointer; }
.nx-prem .nx-tg-batch .nx-trx-body { flex: 1 1 auto; min-width: 0; }
.nx-prem .nx-tg-batch .nx-trx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nx-prem .nx-tg-chev { position: absolute; right: 9px; top: 50%; margin-top: -8px; color: #7f93ab; transition: transform .15s ease; }
.nx-prem .nx-tg-batch.open .nx-tg-chev { transform: rotate(90deg); color: var(--pg); }
.nx-prem .nx-tg-batch.open { border-color: rgba(245,197,66,.4); }
.nx-prem .nx-tg-batch.st-menang { border-color: rgba(52,211,153,.35); }
.nx-prem .nx-tg-mode { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 9px; font-weight: 900; color: #0f172a; background: #60a5fa; vertical-align: 1px; }
.nx-prem .nx-trx-group-detail { margin: 0 11px 11px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06); }
.nx-prem .nx-tg-type { margin: 6px 0 3px; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; color: rgba(245,197,66,.85); }
.nx-prem .nx-tg-type:first-child { margin-top: 0; }
.nx-prem .nx-trx-detail-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.nx-prem .nx-tg-num { font: 800 13px/1.2 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 1px; color: #fde68a; }
.nx-prem .nx-trx-detail-row small { color: #94a3b8; }
.nx-prem .nx-trx-detail-row b { font-size: 11.5px; color: #94a3b8; font-weight: 800; }
.nx-prem .nx-trx-detail-row.it-won { background: linear-gradient(90deg, rgba(16,185,129,.12), transparent); border-radius: 8px; padding-left: 6px; }
.nx-prem .nx-tg-sum { display: flex; justify-content: space-between; padding: 7px 0 0; font-size: 12px; color: #cbd5e1; }
.nx-prem .nx-tg-sum b { color: #fff; font-weight: 900; }
.nx-prem .nx-tg-sum.win b { color: #34d399; }
.nx-prem .nx-tg-ref { margin-top: 6px; font-size: 10px; color: #64748b; letter-spacing: .3px; }

/* Paginasi & kosong */
.nx-prem .nx-pg-btn { border-radius: 10px; border: 1px solid rgba(34,211,238,.25); background: #0a1a2e; color: #cbd5e1; }
.nx-prem .nx-pg-btn:not([disabled]):hover { border-color: rgba(245,197,66,.6); color: #fff; }
.nx-prem .nx-pg-cur { color: var(--pg); font-weight: 900; }
.nx-prem .nx-empty-state { padding: 22px 12px; border-radius: 16px; text-align: center; color: #7f93ab; border: 1px dashed rgba(148,163,184,.25); background: rgba(255,255,255,.02); }

/* ── Inbox ── */
.nx-prem .nx-memo-list { display: flex; flex-direction: column; gap: 8px; }
.nx-prem .nx-memo-item { display: flex; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(34,211,238,.14); background: var(--pglass), #0a1a2e; }
.nx-prem .nx-memo-ic { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; color: var(--pg); border: 1px solid rgba(245,197,66,.3); background: linear-gradient(180deg, #16304f, #0b1a2e); }
.nx-prem .nx-memo-body { flex: 1 1 auto; min-width: 0; }
.nx-prem .nx-memo-item header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.nx-prem .nx-memo-item header b { color: #fff; font-weight: 900; }
.nx-prem .nx-memo-item time { flex: 0 0 auto; font-size: 10.5px; color: #7f93ab; }
.nx-prem .nx-memo-item p { margin: 4px 0 0; color: #cbd5e1; font-size: 13px; line-height: 1.5; }

/* ── Referral ── */
.nx-prem .nx-ref-hero {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid rgba(245,197,66,.35); text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, rgba(245,197,66,.18), transparent 62%), linear-gradient(165deg, #0d2a47, #06122a 60%, #040b17);
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
}
.nx-prem .nx-ref-hero-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; font-size: 0; border-radius: 16px; color: var(--pg); border: 1px solid rgba(245,197,66,.45); background: linear-gradient(180deg, #16304f, #0b1a2e); }
.nx-prem .nx-ref-hero-code {
  font: 900 26px/1.2 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 3px;
  background: linear-gradient(180deg, #fff6d0, var(--pg) 55%, var(--pg2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-prem .nx-ref-hero-label { color: #94a3b8; letter-spacing: 1px; }
.nx-prem .nx-ref-stats div { border-radius: 12px; border: 1px solid rgba(34,211,238,.2); background: rgba(255,255,255,.04); }
.nx-prem .nx-ref-stats b { color: #fff; font-weight: 900; }
.nx-prem .nx-ref-copy-bar .nx-btn, .nx-prem .nx-pw-card .nx-btn-primary {
  border: 0; border-radius: 12px; color: #1a1204; font-weight: 900; background: linear-gradient(180deg, #ffe08a, var(--pg) 45%, var(--pg2));
  box-shadow: 0 6px 16px rgba(245,197,66,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.nx-prem .nx-ref-member-item { border-radius: 14px; border: 1px solid rgba(34,211,238,.14); background: var(--pglass), #0a1a2e; }
.nx-prem .nx-ref-member-av { color: #1a1204; font-weight: 900; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--pg) 55%, #c7861a); }

/* ── Ubah Password ── */
.nx-prem .nx-pw-card {
  border-radius: 20px; border: 1px solid rgba(245,197,66,.3);
  background: radial-gradient(90% 60% at 50% 0%, rgba(245,197,66,.12), transparent 60%), linear-gradient(170deg, #0c2340, #050d1a);
  box-shadow: 0 14px 32px rgba(0,0,0,.5);
}
.nx-prem .nx-pw-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; font-size: 0; border-radius: 16px; color: var(--pg); border: 1px solid rgba(245,197,66,.45); background: linear-gradient(180deg, #16304f, #0b1a2e); }
.nx-prem .nx-pw-card h3 { color: #fff; font-weight: 900; }
.nx-prem .nx-pw-card p { color: #94a3b8; }
.nx-prem .nx-pw-card p b { color: #fde68a; }
.nx-prem .nx-pw-card .nx-field label { color: #cbd5e1; font-weight: 700; font-size: 12px; }
.nx-prem .nx-pw-card .nx-input:invalid:not(:placeholder-shown) { border-color: rgba(248,113,113,.6); }

@media (prefers-reduced-motion: reduce) {
  .nx-prem .nx-overlay, .nx-prem .nx-bnav-item, .nx-prem .nx-tg-chev { transition: none; }
}
/* kartu daftar: isi rapi (judul tidak terpotong, jumlah & saldo bertumpuk di kanan) */
.nx-prem .nx-trx-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.nx-prem .nx-trx-item .nx-trx-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-prem .nx-trx-item .nx-trx-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-prem .nx-trx-item .nx-trx-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.nx-prem .nx-trx-item .nx-trx-right small { font-size: 10px; color: #7f93ab; white-space: nowrap; }
.nx-prem .nx-ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px auto 0; max-width: 280px; }
.nx-prem .nx-ref-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 8px; }
.nx-prem .nx-ref-stats small { font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #94a3b8; }
.nx-prem .nx-ref-stats b { font-size: 20px; line-height: 1.1; }

/* ── Tiket Saya: 1 kartu per transaksi pasang ── */
.nx-prem .nx-ticket-list { display: flex; flex-direction: column; gap: 10px; }
.nx-prem .nx-draw-group-card.nx-tk-card {
  position: relative; padding: 12px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(34,211,238,.16); background: var(--pglass), #0a1a2e;
  box-shadow: 0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .15s ease, transform .15s ease;
}
.nx-prem .nx-tk-card:hover { border-color: rgba(245,197,66,.45); transform: translateY(-2px); }
.nx-prem .nx-tk-card.st-menang { border-color: rgba(52,211,153,.4); background: linear-gradient(180deg, rgba(16,185,129,.09), rgba(16,185,129,.02)), #0a1a2e; }
.nx-prem .nx-tk-head { display: flex; align-items: center; gap: 10px; }
.nx-prem .nx-tk-ic { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; color: var(--pg);
  border: 1px solid rgba(245,197,66,.3); background: radial-gradient(circle at 50% 30%, rgba(245,197,66,.2), transparent 70%), linear-gradient(180deg, #16304f, #0b1a2e); }
.nx-prem .nx-tk-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nx-prem .nx-tk-title b { color: #fff; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-prem .nx-tk-title small { color: #7f93ab; font-size: 11px; }
.nx-prem .nx-tk-result { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 8px; padding: 7px 10px; border-radius: 12px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); }
.nx-prem .nx-tk-result small { font-size: 9.5px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #94a3b8; }
.nx-prem .nx-tk-result span { display: flex; gap: 4px; }
.nx-prem .nx-tk-result i { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 7px; font: 900 16px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-style: normal;
  color: var(--pg); border: 1px solid rgba(245,197,66,.5); background: linear-gradient(180deg, #1c3552, #081322); text-shadow: 0 0 8px rgba(245,197,66,.5); }
.nx-prem .nx-tk-wait { font-size: 12px; font-weight: 800; color: #fbbf24; }
.nx-prem .nx-tk-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nx-prem .nx-tk-chip { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; color: #fde68a; font-weight: 800; letter-spacing: .3px;
  background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.22); }
.nx-prem .nx-tk-chip em { font-style: normal; color: #94a3b8; font-weight: 900; margin-right: 3px; }
.nx-prem .nx-tk-chip.more { color: #94a3b8; }
.nx-prem .nx-tk-sum { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; margin-bottom: 10px; }
.nx-prem .nx-tk-sum div { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.nx-prem .nx-tk-sum small { font-size: 9.5px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #7f93ab; }
.nx-prem .nx-tk-sum b { color: #fff; font-weight: 900; font-size: 13px; white-space: nowrap; }
.nx-prem .nx-tk-card .nx-dg-detail-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 36px; border-radius: 11px; cursor: pointer;
  font-weight: 900; font-size: 12.5px; color: #a5f3fc; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.35);
}
.nx-prem .nx-tk-card .nx-dg-detail-btn:hover { background: rgba(34,211,238,.16); }

/* ── Jendela rincian transaksi ── */
.nx-prem .nx-draw-detail-overlay { background: rgba(2,6,14,.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nx-prem .nx-draw-detail-modal {
  border-radius: 20px; border: 1px solid rgba(245,197,66,.35);
  background: radial-gradient(100% 50% at 50% 0%, rgba(245,197,66,.12), transparent 60%), linear-gradient(180deg, #0c2340, #050d1a);
  box-shadow: 0 20px 48px rgba(0,0,0,.6);
}
.nx-prem .nx-draw-detail-result { font-weight: 900; color: #fbbf24; }
.nx-prem .nx-draw-detail-result.has-result { color: var(--pg); }
.nx-prem .nx-draw-detail-modal table th { color: rgba(245,197,66,.85); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.nx-prem .nx-draw-detail-modal table td { border-color: rgba(255,255,255,.06); }
.nx-prem .nx-ticket-status { font-weight: 900; letter-spacing: .4px; }
/* rincian transaksi: ringkas di HP, bisa digeser bila masih lebih lebar */
.nx-prem .nx-draw-detail-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nx-prem .nx-detail-table { width: 100%; min-width: 0; border-collapse: collapse; }
.nx-prem .nx-detail-table th, .nx-prem .nx-detail-table td { padding: 8px 5px; font-size: 12px; white-space: nowrap; }
.nx-prem .nx-detail-table .nx-num-big { font-size: 15px; letter-spacing: 1px; color: #fde68a; }
.nx-prem .nx-detail-table .nx-ticket-status { padding: 2px 6px; font-size: 9.5px; }
.nx-prem .nx-draw-detail-header h3 { font-size: 14px; line-height: 1.35; color: #fff; }
.nx-prem .nx-detail-table th, .nx-prem .nx-detail-table td { padding: 8px 4px; }
.nx-prem .nx-draw-detail-modal table th { letter-spacing: .5px; font-size: 9.5px; }
.nx-prem .nx-detail-table td:first-child, .nx-prem .nx-detail-table th:first-child { padding-left: 2px; }
@media (max-width: 374px) { .nx-prem .nx-detail-table th:nth-child(4), .nx-prem .nx-detail-table td:nth-child(4) { display: none; } }
/* kartu pasaran TUTUP: tulisan TUTUP menggantikan hitung mundur */
.nx-psr-card.nx-pro .nx-psr-countdown.nx-cd-closed { color: #f87171; letter-spacing: 4px; text-shadow: 0 0 14px rgba(248, 113, 113, .5); }