/* ============================================================
   NUSA88 / v4 — production stylesheet for the member portal.

   Token model:
     • New NUSA88 tokens (--bg, --surface, --primary, --primary-grad, etc.)
       are the source of truth. They are set by the active theme file
       (theme-<name>.css) loaded after this stylesheet.
     • Legacy v3 token names (--primary-color, --body-background, etc.)
       are aliased to the NUSA88 tokens at the bottom of this file so
       any inherited shared partials (lottery cards, etc.) keep working.

   Default theme: midnight-gold (mapped from v3's "topaz"/"citrine"/etc.)
   ============================================================ */

:root {
  /* Base canvas */
  --bg: #07090d;
  --bg-2: #0c1118;
  --surface: #131923;
  --surface-2: #1b2330;
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  /* Legacy aliases — some inline styles use --border / --bg-soft (NUSA88
     vocabulary borrowed from v3). Aliasing instead of refactoring all callers
     keeps the existing token model authoritative while preventing border-color
     from falling back to currentColor on dark themes. */
  --border: var(--line-2);
  --bg-soft: var(--surface);

  /* Accent (gold default) */
  --primary: #e8b65a;
  --primary-2: #c8902f;
  --primary-soft: rgba(232,182,90,0.12);
  --primary-grad: linear-gradient(180deg, #f1c876 0%, #b67d20 100%);
  --primary-ink: #1a1308;       /* readable foreground over --primary */

  /* Secondary (teal) */
  --accent: #36c2b4;
  --accent-2: #1d8e83;

  /* Status */
  --success: #4ade80;
  --warn: #f5b942;
  --danger: #f06262;

  /* Text */
  --text: #f3f4f6;
  --text-dim: #9aa3b2;
  --text-mute: #6b7280;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 40px rgba(0,0,0,0.55);

  --shell-max: 1200px;
  --running-text-durasi: 40s;
}

/* ===== legacy v3 token aliases (so shared partials keep rendering) ===== */
:root {
  --primary-color:           var(--primary);
  --heading-color:           var(--primary);
  --body-background:         var(--bg);
  --body-color:              var(--text);
  --header-background:       var(--bg-2);
  --header-menu-color:       var(--text);
  --running-text-background: var(--surface);
  --running-text-color:      var(--text-dim);
  --gamemenu-background:     linear-gradient(180deg, var(--bg-2), var(--surface));
  --btn-game-background:     var(--surface);
  --result-box-background:   var(--surface);
  --result-ball-background:  var(--primary-grad);
  --top-ten-background:      var(--surface);
  --metode-pembayaran-background: var(--bg-2);
  --footer-background:       var(--bg-2);
  --btn-bottom-background:   var(--surface-2);
  --promo-card-background:   var(--surface);
  --pagination-background:   var(--surface);
  --provider-menu-background: var(--surface);
  --product-background:      var(--surface);
  --placebet-background:     var(--accent-2);
  --button-daftar-background: var(--primary-grad);
  --button-masuk-background:  transparent;
  --button-pasaran-background: var(--primary-grad);
  --link-color:              var(--text-dim);
  --link-color-hover:        var(--primary);

  --primary-light: color-mix(in srgb, var(--primary), white 20%);
  --primary-dark: color-mix(in srgb, var(--primary), black 20%);
  --primary-darker: color-mix(in srgb, var(--primary), black 40%);

  --primary-2-light: color-mix(in srgb, var(--primary-2), white 20%);
  --primary-2-dark: color-mix(in srgb, var(--primary-2), black 20%);
  --primary-2-darker: color-mix(in srgb, var(--primary-2), black 40%);
}

/* ============ RESET ============ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  /* Belt-and-suspenders: no horizontal scroll on mobile. Marquees / wide
     elements that intentionally exceed viewport width are clipped instead
     of pushing the page wider than the device. (Lesson from v6.) */
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-color: var(--bg) !important;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

/* ============ LAYOUT SHELL ============ */
.shell {
  max-width: var(--shell-max);
  margin: 0px auto;
  padding: 32px;
}
main { min-height: 50vh; }

@font-face {
  font-family: 'Digital-7';
  src: url('../fonts/digital_7/digital-7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ============ HEADER ============ */
.hdr {
  width: 100%;
  background: var(--primary-2-dark);
  border-bottom: 1px solid var(--line);
}
.hdr-top-0 {
  display: flex;
  align-items: center;
  justify-content: end;
}
.hdr-top {
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px;
  align-items: center;
  padding: 1.5% 32px;
  max-width: var(--shell-max);
  margin: 0 auto;
  justify-content: space-between;
}
.hdr-top-block {
  background: var(--bg-2);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--primary-ink); font-weight: 800; font-size: 16px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 1px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
  color: var(--text);
}
.brand-name .dot { color: var(--primary); }
.brand-logo-img {
  max-height: 54px; width: auto;
}

/* Marquee — matches v3 baseline: plain running text, no icon decoration.
   The previous ::before 📣 emoji rendered as a flame on systems without a
   color-emoji font (visually overlapping the leading letters of the running
   text and clashing with the brand logo's flame design). Removed; plain
   horizontal padding now provides breathing room. */
.marquee {
  position: relative;
  flex: 1;
  height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 0 16px;
}
.marquee-track {
  display: inline-flex; gap: 48px;
  white-space: nowrap;
  animation: marquee var(--running-text-durasi) linear infinite;
  color: var(--text-dim);
  font-size: 12.5px;
}
.marquee-track strong { color: var(--primary); font-weight: 600; }
.marquee > .iconify {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    font-size: 20px;
    background: var(--bg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hdr-actions { display: flex; align-items: center; gap: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; }
.btn-primary {
  background: var(--primary-2);
  color: var(--text);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 14px rgba(0,0,0,0.35);
}
.btn-primary:hover { background: var(--primary-2); color: var(--primary-ink); filter: brightness(1.05); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 11px 20px; font-size: 14px; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-success { background: var(--success); color: #07090d; border-color: transparent; }

.btn-gold {
  background: linear-gradient(to top,#d6921c, #fffd9d) !important;
  color: #000 !important;
  border: none !important;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all .3s ease
}

.btn-logout {
  display: flex;
  background: linear-gradient(to bottom, #313131, #f5f5f5, #313131);
  width: 6.5vw;
  max-width: 99px;
  height: 2.8vw;
  max-height: 44px;
  border-radius: 10px;
  font-size: large;
  color: #000;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}


/* Auth pill */
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; 
  text-transform: uppercase;
  justify-content: end;
}
.user-pill .name {
  font-weight: 600; 
  text-shadow: 0 0 7px rgba(255, 215, 0, .5);
}
.user-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-grad);
  display: grid; place-items: center;
  color: var(--primary-ink); font-weight: 700; font-size: 12px;
  text-transform: uppercase;
}

.level-icon {
  width: 40px;
  height: 40px;
  margin: 0 -12px;
  transition: transform .2s ease
}

.level-icon:hover {
  transform: scale(1.1)
}

.balance-separator {
  width: 1px;
  height: 20px;
  background-color: var(--text-dim);
  margin: 0 5px;
}

.menu-after-block {
  display: flex; 
  align-items: center; 
  gap: 10px;
  justify-content: end;
}

.menu-after-block .btn {
  font-size: large;
  text-transform: uppercase;
}

.menu-after-block .btn:hover {
  transform: scale(1.1);
  text-decoration: none
}

/* Inline guest login form */
.login-inline {
  display: flex; gap: 6px; align-items: center;
}
.login-inline input {
  width: 130px; padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text); font: inherit; font-size: 12.5px;
  outline: 0;
}
.login-inline input:focus { border-color: var(--primary); }
.login-inline .err { color: var(--danger); font-size: 11px; margin-left: 8px; }

/* ============ SIDE NAV ============ */

/* ============ ICON NAV ============ */
.iconnav {
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  width: 100%;
}
.iconnav ul {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 0;
  padding: 0;
}

.iconnav li {
  list-style: none;
}
.iconnav-item { 
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 14px 5px;
  position: relative;
  z-index: 2;
  gap: 3px;
  color: var(--text);
}
.iconnav-item:hover { color: var(--primary); }
.iconnav-item.active::after {
  content: "";
  position: absolute; bottom: 0; left: 12%; right: 12%; height: 2px;
  background: var(--primary-grad);
  border-radius: 2px 2px 0 0;
}
.iconnav-item svg { width: 22px; height: 22px; stroke-width: 1.6; }
.iconnav-item .label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  margin-left: 3px;
  white-space: nowrap;
}

.iconify-arrow {
  height: 30px !important;
  width: 30px !important;
}

/* ============ HEADINGS / EYEBROWS ============ */
.h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 16px; gap: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.section-sub { color: var(--text-dim); font-size: 12.5px; margin-top: 4px; }
.section-link { color: var(--primary); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.section-link:hover { text-decoration: underline; }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background-image:
    radial-gradient(1200px 280px at 80% -40%, var(--primary-soft), transparent 60%),
    repeating-linear-gradient(135deg, var(--surface-2) 0px, var(--surface-2) 18px, var(--surface) 18px, var(--surface) 36px);
  padding: 28px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--primary); font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
  max-width: 560px;
  text-wrap: pretty;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-sub { color: var(--text-dim); font-size: 14px; max-width: 520px; margin: 0; }
.hero-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.hero-decor {
  position: absolute; top: 0; right: -40px; width: 280px; height: 100%;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pager {
  position: absolute; bottom: 16px; right: 18px;
  display: flex; gap: 6px;
  z-index: 2;
}
.hero-pager span {
  width: 18px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-pager span.active { background: var(--primary); }

/* === HERO CAROUSEL — fade-cycled slides === */
.hero-carousel { 
  position: relative;
  margin-top: -32px;
}
.hero-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  pointer-events: none;
}
.hero-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
/* The first slide stays in flow so the container has height; subsequent slides overlay it. */
.hero-carousel-slide:first-child { position: relative; }

/* Promo / kicker card */
.promo-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.promo-card .badge {
  align-self: flex-start;
  background: var(--primary-soft); color: var(--primary);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.promo-card .kicker { font-size: 12.5px; color: var(--text-dim); }
.promo-card h4 { font-size: 22px; font-weight: 800; }
.promo-card .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kv {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  display: inline-flex; gap: 6px; align-items: center;
}
.kv strong { color: var(--text); font-weight: 600; }

/* ============ LOTTERY ============ */
.lotto { margin-bottom: 32px; }
.lotto-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;}
.lotto.layout-grid .lotto-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lotto.layout-stack .lotto-grid { display: flex; flex-direction: column; gap: 8px; }
.lotto-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none; color: inherit;
}
.lotto-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.lotto-card .market {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); font-weight: 600;
}
.lotto-card .number {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text);
  display: flex; gap: 4px;
}
.lotto-card .balls { display: flex; gap: 6px; }
.ball {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--primary-ink);
  background: var(--primary-grad);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 8px rgba(0,0,0,0.35);
}
.ball:nth-child(2) { background: linear-gradient(180deg, #6cd8fb, #1d7ba8); color: #fff; }
.ball:nth-child(3) { background: linear-gradient(180deg, #5fe8b0, #138056); color: #fff; }
.ball:nth-child(4) { background: linear-gradient(180deg, #ff9eb4, #c44d7f); color: #fff; }
.lotto-card .date { font-size: 10.5px; color: var(--text-mute); font-family: var(--font-mono); }
.lotto.layout-stack .lotto-card { flex-direction: row; justify-content: space-between; padding: 12px 16px; }
.lotto.layout-stack .lotto-card .number { font-size: 22px; }
.lotto.layout-stack .lotto-card .balls .ball { width: 22px; height: 22px; font-size: 11px; }

/* ============ LOTTO RESULT CARDS — /games/Lottery rich pasaran view ============
   Mirrors v3's lottery-markets functional behavior (open/closed status, draw
   times, colored result balls) with v4 design tokens. Ball graphics are
   reused from /v3/img/ — no asset duplication needed. */
.lotto-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.lotto-tab {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 18px;
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.lotto-tab:hover { border-color: var(--primary); color: var(--text); }
.lotto-tab.active {
  background: var(--primary-grad);
  color: var(--primary-ink);
  border-color: transparent;
}
.lotto-grid-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 auto 24px;
  width: var(--shell-max);
}
.lotto-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.lotto-result-card:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.lotto-result-card.is-closed { opacity: 0.7; background: var(--bg-2); }
.lotto-result-head { display: flex; flex-direction: column; gap: 2px; }
.lotto-result-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--primary); letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.lotto-result-hot {
  background: linear-gradient(180deg, #ff5a78, #c41a3e);
  color: #fff; padding: 1px 6px; font-size: 9px; border-radius: 3px;
  font-family: var(--font-mono); font-weight: 700;
}
.lotto-result-fullbadge {
  background: var(--primary-soft); color: var(--primary);
  padding: 1px 6px; font-size: 9px; border-radius: 3px;
  font-family: var(--font-mono); font-weight: 700;
}
.lotto-result-round {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.lotto-result-date {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  padding: 6px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.lotto-prize-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-mute); margin-top: 2px;
}
.lotto-ball-row {
  display: flex; gap: 4px; justify-content: center; flex-wrap: nowrap;
}
.lotto-ball {
  width: 32px; height: 32px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.5));
}
.lotto-ball-x { background-image: url(/v3/img/x.webp); }
.lotto-ball-0 { background-image: url(/v3/img/0.webp); }
.lotto-ball-1 { background-image: url(/v3/img/1.webp); }
.lotto-ball-2 { background-image: url(/v3/img/2.webp); }
.lotto-ball-3 { background-image: url(/v3/img/3.webp); }
.lotto-ball-4 { background-image: url(/v3/img/4.webp); }
.lotto-ball-5 { background-image: url(/v3/img/5.webp); }
.lotto-ball-6 { background-image: url(/v3/img/6.webp); }
.lotto-ball-7 { background-image: url(/v3/img/7.webp); }
.lotto-ball-8 { background-image: url(/v3/img/8.webp); }
.lotto-ball-9 { background-image: url(/v3/img/9.webp); }
.lotto-result-times {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
}
.lotto-time-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
  padding: 3px 8px; border-radius: 4px;
}
.lotto-status-row { display: flex; justify-content: center; }
.lotto-status {
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.lotto-status.open  { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.4); }
.lotto-status.closed { background: rgba(240,98,98,0.15); color: #f06262; border: 1px solid rgba(240,98,98,0.4); }
.lotto-launch { margin-top: auto; }
.lotto-play {
  width: 100%; padding: 8px 12px; font-size: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============ FILTER + SEARCH + GAME GRID ============ */
.filter-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover { color: var(--text); border-color: var(--primary); }
.pill.active {
  background: var(--primary-soft); color: var(--primary);
  border-color: var(--primary);
}
.pill-status {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
}
.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 6px 10px;
  margin-bottom: 20px;
}
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 12.5px;
}
.search input::placeholder { color: var(--text-mute); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.game-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.game-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.game-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.game-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none; color: inherit;
}
.game-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.game-tile .stripe { height: 4px; background: var(--primary-grad); }
.game-tile .art {
  flex: 1;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0px, var(--surface-2) 8px, var(--bg-2) 8px, var(--bg-2) 16px);
  display: grid; place-items: center;
  color: var(--text-mute);
  font-family: var(--font-mono); font-size: 10px;
  position: relative;
}
.game-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.game-tile .art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.game-tile .meta {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; /* allow children's ellipsis to truncate inside the flex column */
}
.game-tile .meta .title {
  font-size: 12px; font-weight: 600;
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.game-tile .meta .prov {
  font-size: 10px; color: var(--text-mute);
  font-family: var(--font-mono);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.game-tile .tag {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--line-2);
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 6px; border-radius: 4px;
  color: var(--primary);
}
.game-tile.hot .stripe { background: linear-gradient(90deg, #ff8a3d, #f06262); }
.game-tile.new .stripe { background: linear-gradient(90deg, #36c2b4, #4cc9f0); }
.game-tile.fav .stripe { background: linear-gradient(90deg, #b385ff, #ff7fb1); }

/* ============ PROVIDER WALL ============ */
/* Hide duplicate (aria-hidden) provider tiles on desktop. They exist only
   so the mobile marquee scroll loop is seamless. Re-enabled inside the
   marquee container at mobile breakpoint below. */
.prov-tile[aria-hidden="true"] { display: none; }

.provider-wall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}
.provider-wall.cols-6 { grid-template-columns: repeat(6, 1fr); }
/* Provider tile: fixed height (consistent grid alignment), flexible width
   via auto-fit grid. No aspect-ratio constraint so portrait/square/landscape
   logos all render at their natural shape inside the box. Image height fills
   the tile minus padding; width follows aspect (max 100%). */
.prov-tile {
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  transition: all 0.15s;
  text-decoration: none;
  padding: 8px 10px;
  overflow: hidden;
}
.prov-tile:hover { border-color: var(--primary); color: var(--primary); }
.prov-tile.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.prov-tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.15s;
}
.prov-tile:hover img,
.prov-tile.active img { filter: brightness(1.1) drop-shadow(0 0 4px var(--primary)); }
.prov-tile-text { /* fallback for providers without an image */ font-weight: 600; }

/* ============ HISTORY TABLES ============ */
.history {
  margin-bottom: 10px;
}
.history-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* On mobile the 5-col history table is wider than the wrapper; the wrapper
   was clipping the right-side columns (Jumlah, Status). Switch to horizontal
   scroll on mobile so users can swipe to see all columns. */
@media (max-width: 720px) {
  .history-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .history-card .history-table { min-width: 450px; }
}
.history-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--primary-2-dark);
}
.history-head .title {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.history-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--success);
}
.history-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.history-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.history-table th, .history-table td {
  padding: 9px 18px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.history-table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--text-mute);
  background: var(--bg-2);
}
.history-table tr:last-child td { border-bottom: 0; }
.history-table .amt { font-family: var(--font-mono); color: var(--primary); font-weight: 600; text-align: end;}
.history-table .curr { font-family: var(--font-mono); color: var(--primary); font-weight: 600;}
.history-table .user { color: var(--text-dim); font-family: var(--font-mono); }
.history-table .when { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; }

/* ============ FORMS ============ */
.form-card {
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
}
.form-card.wide { max-width: 720px; }
.form-card .form-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  margin-bottom: 4px;
}
.form-card .form-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.form-row.stack { grid-template-columns: 1fr; }
.form-row label {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: 0.04em;
  font-family: Arial;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit; font-size: 13px;
  outline: 0;
  transition: border-color 0.15s;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-mute); }

.form-message {
  background: var(--text);
  color: var(--bg);
}

.form-row input,.form-row select {
  padding: 12px 15px;
  border: 1px solid rgba(211, 191, 78, 0.3);
  border-radius: 5px;
  color: gold;
}

.profile-container {
  max-width: 1400px;
  width: 90%;
  margin: 40px auto;
  padding: 0 20px;
}

.profile-wrapper {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  font-family: 'Bebas Neue',sans-serif;
}

.profile-form {
  flex: 1.3;
  background: #530000;
  border-radius: 10px;
  padding: 30px 40px;
  box-shadow: 0 4px 8px #0003
}

.form-group {
  position: relative;
  font-family: 'Bebas Neue',sans-serif;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background: #ffffffe6;
  font-size: 16px;
  color: #000;
  letter-spacing: 1px;
}

.form-group input:disabled {
  background-color: var(--text-dim) !important;
}

.form-group input::placeholder {
  color: #666
}

.form-group input:focus {
  outline: none;
  border-color: #ffd900;
  box-shadow: 0 0 5px #ffd90080
}

.form-group label {
  color: #fff;
  font-size: 18px;
  display: block;
  margin-top: 8px;
  letter-spacing: .5px;
}

.input-with-button {
  display: flex;
  align-items: center;
  gap: 10px
}

.input-with-button input {
  flex: 1
}

.input-with-button .btn {
  font-family: var(--font-display);
}


.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px
}


select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field-err { color: var(--danger); font-size: 11px; margin-top: 4px; }
.form-actions {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid;
}
.alert-info { background: rgba(54,194,180,0.08); border-color: var(--accent); color: var(--accent); }
.alert-warning { background: rgba(245,185,66,0.1); border-color: var(--warn); color: var(--warn); }
.alert-success { background: rgba(74,222,128,0.1); border-color: var(--success); color: var(--success); }
.alert-danger { background: rgba(240,98,98,0.1); border-color: var(--danger); color: var(--danger); }


.terms {
  margin: 15px 0
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  position: relative;
  padding-left: 25px
}

.checkbox-container input[type=checkbox] {
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  margin: 0
}

.terms-text {
  font-size: 14px;
  line-height: 1.4;
  margin-left: 5px
}

.terms-text a {
  color: #ffb719;
  text-decoration: underline
}
.detail-register{
  color: var(--text-dim);
  font-size: 85%;
}

.btn-register {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to bottom,gold,#b8860b);
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Bebas Neue',sans-serif;
  transition: all .3s ease
}

.btn-regnewmember {
  position: absolute; 
  top: 35px; 
  right: 10px;
}

/* ============ TAB NAV ============ */
.tabnav {
  display: flex; gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.tabnav-item {
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.tabnav-item:hover { color: var(--text); }
.tabnav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============ TRUST + PAYMENTS + FOOTER ============ */
.footer-block {
  padding: 0 32px;
  max-width: var(--shell-max);
  margin: 0 auto;
}

.foot {
  padding: 32px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface, transparent);
  box-shadow: var(--shadow-card);
  position: relative;
}
.footer-cols {
  color:var(--text-mute);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.footer-col .section-title, .footer-col-head {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  margin: 0 0 10px; color: var(--ink);
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.footer-col a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover { color: var(--primary); }
.footer-contact {
  display:inline-flex;
  align-items:center;
  gap:5px;
  text-decoration:none
}

.provider-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.provider-box {
  display:inline-grid;
  place-items:center;
  background:var(--surface-2,#1c1c1c);
  padding:8px 12px;
  border-radius:6px;
  border:1px solid var(--line-2);
  min-width:60px;
  min-height:36px
}
.provider-box:hover {
  border-color: var(--primary);
}
.footer-provider img:hover {
  -webkit-filter: brightness(1.1) drop-shadow(0 0 4px var(--primary-color));
  filter: brightness(1.1) drop-shadow(0 0 4px var(--primary));
}

.footer-meta {
  margin: 24px auto 0;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.7;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.trust-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
}
.trust-tile .icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex: 0 0 auto;
}
.trust-tile .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute);
  font-weight: 600;
}
.trust-tile .value { font-size: 13px; font-weight: 700; margin-top: 2px; }

.payments {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
/* Payment tile (footer): same fixed-height pattern as .prov-tile so logos
   of varying aspect ratios fit cleanly without distortion or cropping. */
.pay-tile {
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  padding: 6px 8px;
  overflow: hidden;
}
.pay-tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pay-tile-text { font-weight: 600; }

.providers-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute); font-weight: 600; margin-bottom: 12px;
}

.footer-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--text-mute);
  max-width: var(--shell-max); margin: 0 auto;
  flex-wrap: wrap; gap: 12px;
}
.footer-bar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bar .links a { color: var(--text-dim); text-decoration: none; }
.footer-bar .links a:hover { color: var(--primary); }

/* ============ TOAST ============ */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12.5px;
  box-shadow: var(--shadow-2);
  animation: slideup 0.3s ease;
}
@keyframes slideup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ DASHBOARD: 4-card row when logged in ============ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
/* 1fr 2fr split (avatar/balance + info table) — used on profile page.
   Mobile rule below in @media collapses to single column. */
.dash-grid.profile-split { grid-template-columns: 3fr 2fr; }
/* Collapsible state for the authenticated dashboard's 4-card detail panel.
   Specificity of .dash-grid.is-collapsed (0,2,0) beats .dash-grid (0,1,0)
   so display:none wins over the default display:grid. */
.dash-card-title h2 {
  color: var(--text);
  font-size: 45px;
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  width: 100%;
  display: inline-block;
}

.dash-card-title h4 {
  color: var(--text);
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 1px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  width: 100%;
  display: inline-block;
}

.dash-grid.is-collapsed { display: none; }
.dash-card-depo {
  width: 60%;
  margin: 0 auto;
}

.dash-card {
  background: var(--primary-2-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px;
}
.dash-card-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-2);
}
.dash-card-body { font-size: 12.5px; flex: 1; }
.dash-card-body .row { display: flex; justify-content: space-between; padding: 4px 0; }
.dash-card-body .row.divide { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.dash-card-body .empty { color: var(--text-mute); font-style: italic; padding: 12px 0; text-align: center; }

.profile-referral-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  background: var(--surface-2);
  border-color: var(--primary);
  padding: 10px;
  border-radius: var(--radius);
}

.profile-block {
  background: var(--surface-2);
  border-color: var(--primary);
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.balance-banner {
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.balance-banner .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary); font-weight: 700;
}
.balance-banner .amount {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700; margin-top: 2px;
}

/* ============ PASARAN GRID (lottery markets) ============ */
.pasaran-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.pasaran-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.pasaran-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.pasaran-tile .name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pasaran-tile .when {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
}
.pasaran-tile .tier {
  display: flex; gap: 4px;
}
.pasaran-tile .tier .ball { width: 18px; height: 18px; font-size: 10px; }
.pasaran-tile .pasang {
  margin-top: auto;
  padding: 8px 12px;
  background: var(--primary-grad);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--primary-ink);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  text-align: center;
}

/* ============ EMPTY / ERROR ============ */
.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-mute);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.empty-state .big {
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.03em; line-height: 1;
}
.empty-state .msg { margin-top: 14px; font-size: 14px; color: var(--text-dim); }

/* ============ MOBILE BOTTOM BAR ============ */
.mobile-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0;
  display: none;
}
.mobile-bottom .item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--text-dim);
  text-decoration: none; cursor: pointer;
}
.mobile-bottom .item.active { color: var(--primary); }
.mobile-bottom svg { width: 18px; height: 18px; }

/* ============ LOGIN FORM (mobile inline header) ============ */
.login-form-mobile {
  display: grid; gap: 8px;
  padding: 12px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
/* minmax(0, 1fr) — without this, inputs' default min-content (~150px) forces the
   row past the viewport on phones. Probe showed 442px row in 390px viewport. */
.login-form-mobile .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-width: 0; }
.login-form-mobile .row > * { min-width: 0; }
.login-form-mobile input {
  padding: 9px 10px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); color: var(--text); font: inherit; font-size: 13px;
  outline: 0;
}
.login-form-mobile input:focus { border-color: var(--primary); }

/* ============ MEDIA QUERIES (mobile fallback for desktop pages) ============ */
@media (max-width: 768px) {
  body:not(.empty-layout) {
    padding-top: 65px;
  }
  body { font-size: 13px; }
  .shell { padding: 0; }
  /* Brand on the left, auth pill (avatar + balance) on the right edge.
     Switching from grid to flex with justify-content:space-between because
     `auto 1fr auto` only had 2 grid items so .hdr-actions ended up auto-
     placed in column 2 (the 1fr) and stayed left-aligned next to the brand. */
  .hdr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: 65px;
    background-image: linear-gradient(to bottom, var(--primary-2), #000);
    border: none;
  }
  .hdr-top {
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  .hdr-actions {
    margin: 0;
    position: absolute;
    right: 5px;
    cursor: pointer;
  }
  .user-balance-top { font-size: 20px;}
  .brand { display: block; text-align: center; position: relative; height: 100%;}
  .iconnav { grid-template-columns: repeat(4, 1fr); }
  .iconnav-item .label { font-size: 15px; margin: 0;}
  .hero { grid-template-columns: 1fr; }
  .hero-card { aspect-ratio: 16 / 9; padding: 18px; }
  .hero-title { font-size: 22px; }
  .lotto-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  /* Promo cards (cols-4 desktop variant) stack vertically on mobile so the
     image + content + CTA are readable. The 3-col game-grid above is fine
     for compact game thumbnails but cramps full-width promo banners.
     Image renders at natural aspect (no cover-crop) so wide promo banners
     show in full instead of having the brand text clipped on the sides. */
  .game-grid.cols-4 { grid-template-columns: 1fr; gap: 14px; }
  .game-grid.cols-4 .dash-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .history { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }

  /* === MOBILE PROVIDER WALL — auto-scrolling 3-row marquee (lesson from v6) ===
     Wide grids of providers (~30+) become 3 rows of horizontally-streaming pills
     instead of a tall vertical wall. The .ejs renders the cells twice so the
     translateX(0→-50%) loop is seamless. Pauses on hover/touch; respects
     prefers-reduced-motion. */
  .provider-wall-marquee {
    overflow: hidden;
    margin: 12px -14px 18px;
    padding: 4px 0;
  }
  /* Re-enable duplicate tiles for marquee seamless loop on mobile only */
  .provider-wall-marquee .prov-tile[aria-hidden="true"] { display: flex; }

  /* Sparse categories (≤8 providers): render as a normal wrap grid with no
     animation. Without enough cells to fill the marquee track, the original
     and duplicate sets sat side-by-side and looked like accidental duplicates
     (e.g. LiveCasino's 6 providers showing as 4×3 with Pragmatic appearing
     twice). The .is-static modifier disables the marquee entirely. */
  .provider-wall-marquee.is-static {
    overflow: visible;
    margin: 12px 0 18px;
    padding: 0;
  }
  .provider-wall-marquee.is-static .provider-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    width: 100%;
    gap: 6px;
    padding: 0;
    animation: none;
    transform: none;
  }
  .provider-wall-marquee .provider-wall {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 6px;
    padding: 4px 14px 8px;
    width: max-content;
    margin-bottom: 0;
    animation: v4-prov-marquee 35s linear infinite;
    will-change: transform;
  }
  .provider-wall-marquee:hover .provider-wall,
  .provider-wall-marquee:focus-within .provider-wall,
  .provider-wall-marquee:active .provider-wall { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) {
    .provider-wall-marquee .provider-wall { animation: none; }
  }
  @keyframes v4-prov-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .provider-wall-marquee .prov-tile {
    aspect-ratio: auto;
    height: auto;
    padding: 8px 6px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .provider-wall { grid-template-columns: repeat(4, 1fr); }
  .payments { grid-template-columns: repeat(4, 1fr); }
  .pasaran-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid.profile-split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .footer-bar { padding: 14px; flex-direction: column; align-items: flex-start; }
  body.is-mobile .mobile-bottom { display: grid; }
  body.is-mobile { padding-bottom: 60px; }
}

/* RTP mini bar — slots-only fill bar with tier-coloured fill behind the % text. */
.rtp-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 78px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 0;
}
.rtp-mini-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  z-index: 0;
  transition: width .25s ease;
}
.rtp-mini--bad  .rtp-mini-fill { background: rgba(239,68,68,0.65); }
.rtp-mini--warn .rtp-mini-fill { background: rgba(234,179,8,0.65); }
.rtp-mini--good .rtp-mini-fill { background: rgba(34,197,94,0.65); }
.rtp-mini-text {
  position: relative;
  z-index: 1;
  padding: 0 6px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
@media (max-width: 600px) {
  .rtp-mini { width: 52px; height: 16px; font-size: 9px; }
  .rtp-mini-text { padding: 0 4px; }
}

/* ===== Lottery: nav + per-market Riwayat ===== */

/* Riwayat is secondary to Main and must not read as a second primary button.
   .lotto-result-card is a flex column, which stretches children to full width by default —
   that is what turned this into a slab under the play button. align-self keeps it its own
   size. Colour/border come from the template's own pill class, not from here, because
   v5/v6 keep their tokens in the theme files. */
.lotto-history {
  align-self: center;
  margin-top: 2px;
  padding: 4px 12px;
  font-size: 11px;
  text-decoration: none;
}

/* Nav and the Normal/Full tabs sit on their OWN rows, both centred. They were briefly merged
   into one row; five nav entries plus two tabs is too many for one line, so they are separate
   again. Kept as separate .lotto-tabs containers regardless — switchLottoTab does
   `#lotto-tabs .lotto-tab` (v7: `.chip`) and strips `active` off everything it matches, so a
   merged nav would lose its highlight the moment someone clicked Normal or Full. */
.lotto-tabs { justify-content: center; margin-bottom: 8px; }

.bot-line {
  position: relative;
  width: var(--shell-max);
  height: 5px;
  margin: 15px auto;
  background: linear-gradient(358deg, var(--bg), var(--primary-2-dark) 20%, var(--primary-2-dark) 80%, var(--bg));
}

/* Language */
.wl-language {
  position: relative;
  margin-left: 5px;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: transparent;
    border: 0;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    align-items: center;
}

.language-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;

    min-width: 150px;

    background: #0f172a;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 8px;

    padding: 6px 0;

    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    z-index: 9999;
}

.language-menu a {
    display: block;
    padding: 8px 14px;

    color: white;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.language-menu a:hover,
.language-menu a.active {
    background: rgba(255,255,255,.12);
}

.language-dropdown.open .language-menu {
    display: block;
}

/* Jackpot Number */
.jackpot-bar {
    width: 100%;
    margin: 15px 0 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.jackpot-number {
  color: gold;
  font-family: 'Digital-7', monospace;
  font-size: 65px;
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 10px rgba(255, 215, 0, .7), 2px 2px 4px rgba(178, 134, 11, .5);
  animation: goldShimmer 2s ease-in-out infinite;
}

.jackpot-number-mob {
  color: gold;
  position: absolute;
  top: 50%;
  left: 65%;
  transform: translate(-50%, -50%);
  text-shadow: 0 0 10px rgba(255, 215, 0, .7),
               2px 2px 4px rgba(178, 134, 11, .5);
  animation: goldShimmer 2s ease-in-out infinite;

  display: flex;
  align-items: center;
  gap: 8px;
}

.jackpot-number-mob .currency {
  font-family: 'Digital-7', monospace;
  font-size: 20px;
}

.jackpot-number-mob .amount {
  font-family: 'Digital-7', monospace;
  font-size: 25px;
}

/* Sub menu */
.submenu {
  background: var(--primary-2-darker);
  width: 100%;
  min-height: 124px;
  text-align: center;
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 99999;
  -webkit-transition: all linear 0.3s;
  transition: all linear 0.3s;
  border-top: 5px solid var(--primary);
  border-bottom: 5px solid var(--primary);
}
.submenu-block {
  width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 20px;
}

.iconnav .iconnav-item:hover + .submenu,
.submenu:hover {
  opacity: 1;
  visibility: visible;
  -webkit-transition: all linear 0.3s;
  transition: all linear 0.3s;
}
.submenu img {
  width: 100%;
  margin: 0.75rem;
  -webkit-filter: drop-shadow(1px 1px 0 #000);
  filter: drop-shadow(1px 1px 0 #000);
  -webkit-transition: filter ease-in-out 0.3s;
  transition: filter ease-in-out 0.3s;
}
.submenu a:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.game-container {
  gap: 16px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.game-popular-block {
  position: relative;
  width: 70%;
  background-size: 100% 100%;
  padding: 0 48px;
  height: 500px;
  border: 3px solid var(--primary-2-dark);
  border-radius: 20px;
}

.game-popular-head {
  background: var(--primary-2-dark);
  width: 100%;
  position: relative;
  padding: 0 5%;
  text-align: center; 
  border-top-right-radius: 30px; 
  border-top-left-radius: 30px; 
  margin: 10px 0;
}

.game-popular-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.game-popular-list .game-tile {
  aspect-ratio: 1/1;
}

.nav-btn {
  position: absolute;
  top: 51%;
  transform: translateY(-50%);
  width: 32px;
  height: auto;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-btn.prev {
  left: 10px;
}

.nav-btn.next {
  right: 10px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-pages {
  position: relative;
  width: 100%;
}

.slider-page {
  display: none;
  width: 100%;
}

.slider-page.active {
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #999;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

.withdraw-container, .lottery-container {
  border-radius: 20px;
  padding: 5px;
  width: 350px;
  height: 250px;
  border: 3px solid var(--primary-2-dark);
}

.lottery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lottery-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--primary-2-dark);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.lottery-body {
  height: 100%;
}

.lottery-card-content {
    margin-top: 5px;
    width: 100%;
    height: 245px;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 0 24px #0008;
    border: 2px solid #940000;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden
}

.lottery-card-body {
  padding: 10px 0;
  align-items: center;
  text-align: center;
}

.lottery-number {
  font-family: Arial Black,Arial,sans-serif;
  font-size: 5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 10px;
  margin-top: 10px
}

.lottery-card-body,
.lottery-card-header .title {
    transition: opacity 0.3s ease;
}

.lottery-card.is-changing {
    opacity: 0;
}

.game-casino-block {
  position: relative;
  padding: 14px 24px;
  margin: 15px auto 0;
  height: 300px;
  border: 3px solid var(--primary-2-dark);
  border-radius: 30px;
  width: calc(var(--shell-max) - 64px);
}

.game-casino-head {
  background: var(--primary-2-dark);
  width: 100%;
  position: relative;
  padding: 0 5%;
  text-align: center; 
  border-top-right-radius: 30px; 
  border-top-left-radius: 30px; 
  margin: 0 auto;
  display: flex;
}

.game-casino-head > img {
  width: 50%;
  display: flex;
  margin: 0 auto;
}

.live-casino-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.live-casino-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  height: 85%;
  width: calc(var(--shell-max) - 64px);
  animation: scroll 40s linear infinite;
}

.live-game-item {
  flex: 0 0 auto;
  width: 160px;
  height: 180px;
  padding: 5px;
  transition: transform .3s ease
}

.live-game-item img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  transition: transform .3s ease
}

.live-game-item img:hover {
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }

  100% { transform: translateX(-50%); }
}

.other-games-block {
  position: relative;
  padding: 14px 24px;
  margin: 15px auto 0;
  border: 3px solid var(--primary-2-dark);
  border-radius: 30px;
  width: calc(var(--shell-max) - 64px);
}

.other-games-head {
  background: var(--primary-2-dark);
  width: 100%;
  position: relative;
  padding: 0 5%;
  text-align: center; 
  border-top-right-radius: 30px; 
  border-top-left-radius: 30px; 
  margin: 0 auto;
  display: flex;
}

.other-games-head > img{
  width: 50%;
  display: flex;
  margin: 0 auto;
}

.other-games-title {
  color: #940000;
  font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  font-weight: bolder;
}

.other-games {
  position: relative;
  width: 60%;
  padding: 14px 24px;
  margin: 15px auto 0;
  height: 270px;
  border: 3px solid var(--primary-2-dark);
  border-radius: 20px
}

.other-games-slider {
  position: relative;
  overflow: hidden;
  margin: 25px auto;
  width: 100%;
  height: 100%;
}

.other-games-wrapper {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.other-game-item {
  flex: 0 0 auto;
  width: 320px;
  padding: 0;
  transition: transform .3s ease;
}

.other-game-item img {
  width: 70%;
  object-fit: contain;
  transition: transform .3s ease;
}

.payment-title {
  font-family:  'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--text);
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, .5);
}

.payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 0
}

.payment-icon {
  width: 180px;
  height: 100px;
}

.payment-icon img {
  width: 80%;
  height: 100%;
  object-fit: contain
}

.provider-category-title {
  font-size: 18px;
  color: var(--text);
  text-align: center;
  margin-bottom: 5px;
  font-weight: 600;
}

.provider {
  width: 100px;
  aspect-ratio: 2 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.provider img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-filter: grayscale(100%) drop-shadow(1px 1px 1px #ffffff);
  filter: grayscale(100%) drop-shadow(1px 1px 1px #ffffff);
  -webkit-transition: filter ease-in-out 0.3s;
  transition: filter ease-in-out 0.3s;
  margin: 0.75rem 0.5rem;
}
.provider img:hover {
  -webkit-filter: grayscale(0) drop-shadow(0 0 3px var(--primary-color));
  filter: grayscale(0) drop-shadow(0 0 3px var(--primary-color));
}

.content-container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
  z-index: 1;
  background: #000000b3;
  border-radius: 15px;
}

.page-header {
  background: var(--primary-2);
  color: var(--text);
  padding: 15px 0px;
  font-size: 24px;
  border-radius: 5px 5px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Promotion */
.promosi-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.promosi-grid {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 100%;
}

.promo-section {
  margin-bottom: -4px
}

.promosi-item {
  position: relative;
  cursor: pointer;
  width: 900px;
}

.promosi-item img {
  width: 900px;
  height: auto;
  display: block;
}

.promotion-info {
  width: 900px;
  background: var(--bg-2);
  padding: 38px;
  color: var(--text);
  border-bottom: 1px solid var(--primary-2-dark);
  display: block;
  position: relative;
}

.promotion-info p,.promotion-info ol {
  margin: 5px 0
}

.promotion-info li {
  margin: 5px 0;
  line-height: 1.4
}

.button-container {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--primary-2-dark);
  position: relative;
}

.close-button-container {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: gold;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
}

.text-red {
  color: red;
}

.col-md-1 {
  flex: 0 0 auto;
  width: 8.333333%
}

.col-md-2 {
  flex: 0 0 auto;
  width: 16.666667%
}

.col-md-3 {
  flex: 0 0 auto;
  width: 25%
}

.col-md-4 {
  flex: 0 0 auto;
  width: 33.333333%
}

.col-md-5 {
  flex: 0 0 auto;
  width: 41.666667%
}

.col-md-6 {
  flex: 0 0 auto;
  width: 50%
}

.col-md-7 {
  flex: 0 0 auto;
  width: 58.333333%
}

.col-md-8 {
  flex: 0 0 auto;
  width: 66.666667%
}

.col-md-9 {
  flex: 0 0 auto;
  width: 75%
}

.col-md-10 {
  flex: 0 0 auto;
  width: 83.333333%
}

.col-md-11 {
  flex: 0 0 auto;
  width: 91.666667%
}

.col-md-12 {
  flex: 0 0 auto;
  width: 100%
}

/* Provider Lobby */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}

.provider-item {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.provider-item a:hover img{
  transform: scale(1.05);
  filter: brightness(1.2);
}

#deposit-content .card-header {
  background: var(--primary-2-dark);
}

.tabdepowd {
  display: flex;
  gap: 8px;
  text-align: center;
  justify-content: center;
}

.tabdepowd .btn {
  width: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-style: italic;
}

.tabdepowd .iconify {
  margin: 0;
  line-height: 1;
  font-size: 48px;
}

.tabdepowd .btn-tabtext {
  display: block;
}

.tabdepowd .btn.active {
  background: linear-gradient(to top,#ffd68f, #ffffff) !important;
}

/* Button Contact */
.contact-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column
}

.contact-menu {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
  transition: opacity .3s ease,transform .3s ease
}

.contact-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.contact-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease,transform .4s ease
}

.contact-item .label::first-letter {
  text-transform: uppercase;
}

.contact-menu.active .contact-item:nth-child(1) {
  transition-delay: .1s;
  opacity: 1;
  transform: translateY(0)
}

.contact-menu.active .contact-item:nth-child(2) {
  transition-delay: .2s;
  opacity: 1;
  transform: translateY(0)
}

.contact-menu.active .contact-item:nth-child(3) {
  transition-delay: .3s;
  opacity: 1;
  transform: translateY(0)
}

.contact-menu.active .contact-item:nth-child(4) {
  transition-delay: .4s;
  opacity: 1;
  transform: translateY(0)
}

.contact-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: left;
  margin-top: 10px
}

.contact-menu .label {
  background: #fff;
  padding: 8px 14px;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 2px 5px #0000001a;
  margin-right: 10px;
  font-size: 14px;
  color: #333
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-2-dark);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 2px 5px #0003;
  margin-right: 10px;
  padding: 7px;
}


.toggle-button {
  background-color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  justify-content: center;
  box-shadow: 0 3px 8px #0000004d;
  transition: transform .3s
}

.toggle-button:hover {
  background: var(--primary-2-dark);
  color: var(--text);
}

.toggle-button .iconify{
  margin-top: 5px;
}

/* === Sidebar === */
.rightmenu-collapse {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 80%;
  padding-bottom: 60px;
  overflow-y: auto;
  visibility: hidden;
  background-image: linear-gradient(to bottom, #000, var(--primary-2-dark));
  z-index: 999999;
  transition: visibility 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out,
      -webkit-transform 0.2s ease-in-out;
}
.rightmenu-collapse.open {
  visibility: visible;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999998;

  visibility: hidden;
  opacity: 0;

  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.menu-overlay.open {
  visibility: visible;
  opacity: 1;
}

.menu-top-sidebar{
  background-image: linear-gradient(to bottom, #000, var(--primary-2-dark));
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 10px;
  gap: 10px;
  margin-top: 0;
}

.sidebar-loginmenu {
  padding: 10px;
}

.btn-light {
  background: linear-gradient(to top,#c2c2c2, #e3e3e3) !important;
  color: #000;
  font-size: 18px;
}

.sidebar-loginmenu .form-actions {
  padding-top: 0;
  margin-top: 0;
}

.sidebar-loginmenu p {
  text-align: end;
  margin-bottom: 0;
  font-style: italic;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  padding: 20px;
  width: 100%;
  height: 100%;
  background-color: #000c;
  justify-content: center;
  align-items: center
}

.modal-content {
  background-color: #000;
  border: 1px solid red;
  padding: 20px;
  border-radius: 5px;
  flex-basis: 100%;
  pointer-events: initial;
  position: relative;
}

.modal {
  display: none;
}

.modal.open {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 5%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  color: inherit
}

.modal a {
  color: var(--accent-2);
  text-decoration: none;
}

.btn-login {
  margin-top: 20px;
  text-transform: uppercase;
  padding: 15px;
  background: var(--primary-2);
}


.menu-list {
  display: block !important;
  align-items: center !important;
  list-style: none !important;
  font-size: 18px !important;
  background: none !important;
  margin: 0 !important;
  padding: 10px;
}

.nested-list {
  align-items: center;
  list-style: none;font-size: 18px;
}

.nested-list > li > a { 
  display: flex;
  align-items: center;
  font-size: 18px;
  gap: 5px;
}

.menu-list > li {
  position: relative !important;
  padding-bottom: 5px;
}

.menu-list > li > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
}

.toggle-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-horizontal {
  text-align: center;
}

@media (max-width: 768px) {
  .hdr-top-login {
    display: flex;
    justify-content: space-between;
    margin-right: 45px;
  }

  .hero-carousel { margin-top: 0px;}
  .hero-carousel-slide img { height: 150px !important; object-fit: fill !important;}

  .iconnav {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .iconnav ul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 40px;
    list-style: none;

    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;

    justify-content: start;
  }

  .iconnav ul::-webkit-scrollbar {
    display: none;
  }

  .iconnav li {
    flex: 0 0 auto;
  }

  .iconnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    text-decoration: none;
  }

  .nav-trigger {
    position: absolute;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 100%;

    padding: 0;
    border: 0;
    cursor: pointer;

    background: var(--bg);
    color: var(--text);    

    font-size: 25px;
  }

  .left-trigger { left: 0px; }
  .right-trigger { right: 0px; }

  .iconnav { padding: 0;}
  .iconnav-item {
    flex-direction: column;
    background-image: linear-gradient(to bottom, var(--primary-2), #000);
    border-radius: var(--radius);
    color: #fffda3;
    width: 80px;
    padding: 5px;
  }
  .iconnav-item .iconify { margin: 0; line-height: 1; width: 50px; height: 50px; }
  .iconnav-item .label { display: block; }

  .jackpot-bar { margin: 10px 0 0;}
  .jackpot-bar img { height: 50px; }

  .contact-container { display: none; }
  
  .slider-wrapper { width: 85%; margin: 0 auto; }
  
  .nav-btn { width: 20px; }
  .nav-btn.prev { left: 3px;}
  .nav-btn.next { right: 3px; }
  
  .art {
    border: 5px solid;
    border-image: linear-gradient(
      to right,
      #8a6500,
      #ffd700,
      #fff3a0,
      #ffd700,
      #8a6500
      ) 1;
    }
    
    .btn-bar { border: none; font-size: 40px; }
    
  .game-popular-block { width: 100%; height: auto; border: none; padding: 0; }
  .game-popular-head { background: none; margin: 0; }
  .game-popular-list { grid-template-columns: repeat(3, 1fr); gap: 5px;}
  .game-header-img { height: 40px; margin: 0 auto; }

  .game-container { margin-top: 5px; padding: 0 10px; }
  .game-casino-block { width: 100%; height: auto; padding: 0; border: none; margin: 0; }
  .game-casino-head, .other-games-head{ background: none; border: none; padding: 0; }
  .game-casino-head > img, .other-games-head > img { max-width: 100%; height: 40px; }

  .other-games-block {
    width: 100%;
    height: auto;
    border: 2px solid var(--primary-2);
    border-radius: var(--radius);
    margin: 0;
  }
  .other-games-title { font-size: 15px; }
  .other-games-wrapper { gap: 5px; }
  .other-games-slider { margin: 0; }
  .other-game-item { width: auto; }
  .other-game-item img { width: 100%; }
  
  .payment-title { font-size: 20px; margin-bottom: 0;}
  .payment-icons { gap: 10px; max-width: 100%; padding: 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); justify-content: center; text-align: center;}
  .payment-icon { height: 100%; width: 100%;}
  .payment-icon img { width: 100%;}

  .nav-container {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom,#ff9,#d9a520);
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    box-shadow: 0 -5px 10px #0003
  }

  .nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    top: -50px
  }

  .nav-item .iconify {
    font-size: 30px;
  }

  .nav-icon {
    background: linear-gradient(to bottom, var(--primary-2), var(--surface));
    border-radius: 50px;
    border: 2px solid #000;
    height: 50px;
    width: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .nav-item.middle {
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    top: -65px
  }

  .nav-item.middle .nav-icon {
    background: linear-gradient(to bottom, var(--primary-2), var(--surface));
    border: 4px solid #F6E17E;
    height: 80px;
    width: 80px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-text {
    color: #000;
    font-weight: 500;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    text-transform: uppercase;
  }

  .csbot-fab { 
    right: 20px !important;
    bottom: 25px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(to bottom,var(--primary-2), var(--surface)) !important;
    border: 2px solid #000 !important;
    z-index: 1 !important;
  }

  .dash-card-depo, .promotion-info{ width: 100%; }
  .tab-dpwd .nav-item { top: 0; }

  .provider-grid { grid-template-columns: repeat(2, 1fr);}

  .content-container { padding: 0;}
  .page-header { padding: 0; margin-bottom: 10px; border: none; font-size: 20px;}

  .promosi-item { width: auto;}

  .dash-grid { padding: 20px; }
  .dash-card { padding: 20px; }
  .dash-card-title h2 { font-size: 30px; }

  .input-with-button { display: block;}

  .input-with-button .btn { margin-top: 5px; text-align: end;}

  .rightmenu-collapse .user-pill { font-size: 18px; justify-content: space-between; }

  .user-pill-wrapper { display: flex; align-items: center; gap: 5px; white-space: nowrap;}

  .user-pill-wrapper .name { color: gold; }
  
  .user-pill-before { display: flex; justify-content: end !important;}

  .stripe { display: none;}

  .mobile-container { padding: 0 10px;}
  
  .btn-regnewmember { display: none;}

  .payment-method-container {
    padding: 10px;
    border: 1px solid gold;
    border-radius: var(--radius);
    margin: 0 10px;
  }

  .toplottery-container {
    margin: 10px 0;
  }

  .toplottery-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
  }

  .toplottery-title-date { text-align: center; }
  .toplottery-separator {
    width: 100%;
    border-bottom: 1px solid var(--primary-2);
  }

  .toplottery-wrapper {
    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;
    padding-bottom: 5px;
    margin: 10px 0;

    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .toplottery-trigger {
    position: absolute;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 100%;

    padding: 0;
    border: 0;
    cursor: pointer;

    background: var(--bg);
    color: var(--text);    

    font-size: 25px;
  }

  .toplottery-left-trigger { left: 0px; }
  .toplottery-right-trigger { right: 0px; }

  .toplottery-wrapper .box {
    flex: 0 0 150px; /* width of each item */
  }

  .toplottery-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;

    padding: 0 35px;
  }

  .toplottery-scroll::-webkit-scrollbar {
    display: none;
  }

  .toplottery-trigger {
    flex: 0 0 auto;
    width: 35px;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: gold;
  }

  .box {
    width: 150px;
    min-width: 150px;
    box-sizing: border-box;

    border: 3px solid var(--primary-2-dark);
    border-radius: 5px;

    text-align: center;
  }
  
  .box-header {
    background: var(--primary-2-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
  }

  .box-title {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 10px;
  }
  .text-link {
    font-size: 35px;
    font-weight: 600;
    color: gold;
  }

  .box.hot {
    display: inline-block;
    width: 30px;
    height: 20px;
    background-image: url(/v3/img/hot.gif);
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-filter: drop-shadow(1px 1px 1px #000);
    filter: drop-shadow(1px 1px 1px #000);
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
  }
}