:root {
  --bg: #07070a;
  --panel: #121216;
  --panel2: #1a191e;
  --border: #362e1e;
  --border-gold: #705624;
  --gold: #eeb72a;
  --gold-light: #ffde7a;
  --white: #ffffff;
  --text-soft: #d4d4dc;
  --muted: #9a9aa6;
  --green: #48d18a;
  --red: #f55c68;
  --amber: #f5b242;
  --blue: #56a6ff;
  --nav-h: 74px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-image: radial-gradient(circle at 50% -120px, rgba(238, 183, 42, 0.08), transparent 460px);
}

button, input, textarea {
  font-family: inherit;
  outline: none;
}

.app-root {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.content {
  flex: 1;
  padding: calc(16px + env(safe-area-inset-top)) 18px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
}

/* Splash & Login */
.splash-screen {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
}

.splash-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 22px;
}

.login-logo {
  width: 102px;
  height: 102px;
  object-fit: contain;
  border-radius: 24px;
}

.brand-big {
  font-size: 27px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.4px;
  margin-top: 12px;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.6px;
  margin-top: 3px;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(238, 183, 42, 0.22);
  border-top-color: var(--gold);
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.header-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.header-brand { flex: 1; min-width: 0; }
.header-title { font-size: 17.5px; font-weight: 800; color: var(--gold-light); line-height: 1.15; }
.header-sub { font-size: 8.5px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin-top: 1px; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 24px;
  padding: 6px 11px;
  font-size: 9.5px;
  font-weight: 800;
  border: 1px solid #22583a;
  background: #0e261a;
  color: var(--green);
  cursor: pointer;
  white-space: nowrap;
}

.pill-btn.warn {
  border-color: var(--amber);
  background: #2a1f0e;
  color: var(--amber);
}

.pill-btn:active { transform: scale(0.96); }

/* Typography */
.kicker { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.9px; text-transform: uppercase; }
.h1 { font-size: 22px; font-weight: 800; color: var(--white); margin: 4px 0 2px; line-height: 1.25; }
.muted-sm { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.sec-title { font-size: 12px; font-weight: 800; color: var(--gold-light); letter-spacing: 0.5px; text-transform: uppercase; }
.sec-link { font-size: 10.5px; font-weight: 700; color: var(--gold); background: none; border: none; padding: 4px 0; cursor: pointer; }
.sec-link:active { opacity: 0.7; }

/* Panels & Cards */
.card-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.card-panel.gold { border-color: var(--border-gold); }
.card-panel.soft { background: var(--panel2); }
.card-panel.danger { background: #221014; border-color: var(--red); }
.card-panel.clickable { cursor: pointer; transition: transform 0.12s, border-color 0.15s; }
.card-panel.clickable:active { transform: scale(0.985); border-color: var(--border-gold); }

.balance-card {
  border-radius: 20px;
  padding: 18px 19px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #422f0d 0%, #18140c 52%, #2e230e 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.balance-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.balance-amount { font-size: 28px; font-weight: 800; color: var(--gold-light); margin-top: 9px; letter-spacing: -0.4px; }
.balance-hold { font-size: 10.5px; color: #ffd696; margin-top: 4px; }
.balance-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.balance-id { font-size: 11px; font-weight: 700; color: var(--white); cursor: pointer; word-break: break-word; }

.chip-refresh {
  background: rgba(255, 222, 122, 0.16);
  border: 1px solid rgba(238, 183, 42, 0.36);
  color: var(--gold-light);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.svc-card {
  background: linear-gradient(135deg, #1c1913 0%, #101014 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 11px 15px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s;
}
.svc-card:hover { border-color: var(--border-gold); }
.svc-card:active { transform: scale(0.97); }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a210f;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}
.icon-circle.sm { width: 34px; height: 34px; }
.icon-circle.lg { width: 58px; height: 58px; margin: 0 auto; }
.icon-circle svg { width: 23px; height: 23px; }
.icon-circle.sm svg { width: 17px; height: 17px; }
.icon-circle.lg svg { width: 27px; height: 27px; }

.svc-name { font-size: 11.5px; font-weight: 800; color: var(--white); margin-top: 9px; }
.svc-desc { font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.svc-price { font-size: 10px; font-weight: 800; color: var(--gold-light); margin-top: 6px; }
.svc-price.green { color: var(--green); }

/* Unblok 1B / 3B cards */
.unblok-card {
  border-radius: 18px;
  padding: 14px 13px 13px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.12s;
}
.unblok-card.open {
  background: linear-gradient(135deg, #142019 0%, #0f1014 100%);
  border-color: rgba(72, 209, 138, 0.43);
}
.unblok-card.closed {
  background: linear-gradient(135deg, #201215 0%, #100f13 100%);
  border-color: rgba(245, 92, 104, 0.40);
}
.unblok-card:active { transform: scale(0.97); }
.unblok-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.unblok-title { font-size: 13px; font-weight: 800; color: var(--white); margin-top: 11px; }
.unblok-price { font-size: 11.5px; font-weight: 800; color: var(--gold-light); margin-top: 8px; }
.unblok-card.closed .unblok-price { color: var(--muted); }
.unblok-jadwal { font-size: 9.5px; color: var(--muted); margin-top: 2px; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.badge.green { background: rgba(72, 209, 138, 0.15); color: var(--green); }
.badge.red { background: rgba(245, 92, 104, 0.15); color: var(--red); }
.badge.amber { background: rgba(245, 178, 66, 0.16); color: var(--amber); }
.badge.blue { background: rgba(86, 166, 255, 0.16); color: var(--blue); }
.badge.gold { background: rgba(238, 183, 42, 0.16); color: var(--gold-light); }
.badge.lg { font-size: 9.5px; padding: 4px 10px; border: 1px solid currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn.sm { min-height: 36px; padding: 7px 10px; font-size: 10.5px; border-radius: 10px; }
.btn.auto { width: auto; }

.btn-gold {
  color: #120e06;
  background: linear-gradient(90deg, #b0780c 0%, #eeb82a 52%, #ffe07e 100%);
}
.btn-outline {
  color: var(--gold-light);
  background: var(--panel2);
  border-color: var(--border-gold);
}
.btn-muted {
  color: var(--text-soft);
  background: var(--panel2);
  border-color: var(--border);
}
.btn-danger {
  color: #ffa8af;
  background: #221014;
  border-color: var(--red);
}
.btn-danger-solid {
  color: var(--white);
  background: #a82430;
  border-color: var(--red);
}
.btn-green-solid {
  color: #081a10;
  background: var(--green);
}

.btn-row { display: flex; gap: 8px; align-items: center; }
.btn-row > .btn { flex: 1; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 11px; }

/* Inputs */
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.input, .textarea {
  width: 100%;
  background: #0b0b0f;
  border: 1px solid #584622;
  border-radius: 13px;
  color: var(--white);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.input:focus, .textarea:focus { border-color: var(--gold); }
.input::placeholder, .textarea::placeholder { color: #6e6e7a; }
.textarea { min-height: 126px; resize: vertical; line-height: 1.45; font-size: 13.5px; }

/* Summary key-value rows */
.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 4.5px 0;
}
.kv-k { color: var(--muted); flex-shrink: 0; }
.kv-v { color: var(--white); font-weight: 700; text-align: right; word-break: break-word; }

/* Segmented Tabs */
.seg-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin: 14px 0;
}
.seg-btn {
  min-height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.seg-btn.active {
  background: linear-gradient(90deg, #b0780c 0%, #eeb82a 52%, #ffe07e 100%);
  color: #120e06;
  font-weight: 800;
}

/* List rows */
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-title { font-size: 13.5px; font-weight: 800; color: var(--white); margin-top: 5px; word-break: break-word; }
.row-sub { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; white-space: pre-line; }

/* QRIS box */
.qr-frame {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
}
.qr-frame img {
  width: min(248px, calc(100vw - 120px));
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* Report fitted wrapper */
.report-fit-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border-radius: 20px;
}
.report-fit-inner {
  transform-origin: 0 0;
  display: inline-block;
}

/* Bottom Navigation */
.bottom-nav-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7, 7, 10, 0.96) 65%, rgba(7, 7, 10, 0));
  z-index: 40;
  pointer-events: none;
}
.bottom-nav {
  pointer-events: auto;
  width: 100%;
  max-width: 456px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px 6px;
  border-radius: 18px;
  background: #101014;
  border: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}
.nav-item {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 6px 4px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item.active {
  background: rgba(238, 183, 42, 0.13);
  color: var(--gold-light);
  font-weight: 800;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-box {
  width: 100%;
  max-width: 405px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 22px;
  padding: 22px 20px 20px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, #1d1a14 0%, #101014 55%, #161411 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}
.modal-title { font-size: 17px; font-weight: 800; color: var(--white); text-align: center; margin-top: 10px; }
.modal-msg { font-size: 12.5px; color: var(--text-soft); text-align: center; line-height: 1.5; white-space: pre-line; margin-top: 8px; }
.modal-info-box {
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.55;
  white-space: pre-line;
  margin-top: 12px;
}
.modal-symbol {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  border: 1px solid currentColor;
}

/* Fullscreen Zoom Modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: #09090c;
  z-index: 150;
  display: flex;
  flex-direction: column;
}
.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: #101014;
  border-bottom: 1px solid var(--border);
}
.zoom-stage {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  text-align: center;
}
.zoom-foot {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #101014;
  border-top: 1px solid var(--border);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  background: #1f1c14;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mono-list {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--white);
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.ta-c { text-align: center; }
.c-green { color: var(--green) !important; }
.c-red { color: var(--red) !important; }
.c-amber { color: var(--amber) !important; }
.c-gold { color: var(--gold-light) !important; }
.c-muted { color: var(--muted) !important; }
.c-soft { color: var(--text-soft) !important; }

/* DESKTOP_RESPONSIVE_V1 */
@media (min-width: 860px) {
  body {
    background-image:
      radial-gradient(circle at 20% -120px, rgba(238, 183, 42, 0.08), transparent 520px),
      radial-gradient(circle at 85% 15%, rgba(238, 183, 42, 0.04), transparent 460px);
  }

  .shell {
    max-width: none;
    width: 100%;
  }

  .shell > .content {
    margin-left: 228px;
    width: calc(100% - 228px);
    padding: 96px 32px 52px;
  }

  .shell > .content > .header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    margin: 0;
    padding: 0 28px;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 45;
  }

  .shell > .content > .header .header-logo { width: 40px; height: 40px; }
  .shell > .content > .header .header-title { font-size: 18.5px; }
  .shell > .content > .header .pill-btn { padding: 7px 14px; font-size: 10.5px; }

  .bottom-nav-wrap {
    top: 68px; bottom: 0; left: 0; right: auto;
    width: 228px;
    padding: 20px 14px;
    background: #0c0c10;
    border-right: 1px solid var(--border);
    align-items: stretch;
    justify-content: flex-start;
    pointer-events: auto;
  }

  .bottom-nav {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .bottom-nav::before {
    content: "MENU UTAMA";
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: var(--muted);
    padding: 4px 14px 10px;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }

  .nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
  .nav-item:hover:not(.active) { background: rgba(255, 255, 255, 0.045); color: var(--text-soft); }
  .nav-item.active {
    background: rgba(238, 183, 42, 0.14);
    border-color: rgba(238, 183, 42, 0.35);
    color: var(--gold-light);
  }

  main[data-page] {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
  }

  .h1 { font-size: 26px; }
  .muted-sm { font-size: 12.5px; }
  .sec-row { margin: 26px 0 12px; }
  .sec-title { font-size: 12.5px; }

  .balance-card { padding: 24px 28px; }
  .balance-amount { font-size: 35px; }
  .balance-id { font-size: 12px; }

  .grid-2 { gap: 16px; }
  .unblok-card {
    padding: 18px 20px;
    min-height: 146px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  }
  .unblok-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
  .unblok-title { font-size: 15px; }
  .unblok-price { font-size: 13.5px; }
  .unblok-jadwal { font-size: 10.5px; }

  .svc-card {
    min-height: 152px;
    padding: 22px 16px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  }
  .svc-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
  .svc-name { font-size: 12.5px; margin-top: 11px; }
  .svc-desc { font-size: 10.5px; }
  .svc-price { font-size: 11px; }

  .card-panel.clickable:hover { border-color: var(--border-gold); }
  .btn:hover:not(:disabled) { filter: brightness(1.07); }

  /* Login & Splash */
  .splash-screen { max-width: 460px; }
  .splash-screen .card-panel.gold {
    padding: 28px 26px 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  /* Riwayat */
  main[data-tab="Riwayat"] .seg-bar { max-width: 460px; }

  /* Deposit */
  main[data-tab="Deposit"] { max-width: 840px; }
  main[data-tab="Deposit"] > [data-back] { width: auto; padding: 8px 18px; }
  main[data-tab="Deposit"] [data-detail] > .card-panel {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  main[data-tab="Deposit"] .grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  /* Detail Order & Unblok */
  main[data-tab="OrderDetail"],
  main[data-tab="UnblokDetail"] { max-width: 1000px; }
  main[data-tab="OrderDetail"] > [data-back],
  main[data-tab="UnblokDetail"] > [data-back] { width: auto; padding: 8px 18px; }
  main[data-tab="OrderDetail"] > [data-ref],
  main[data-tab="UnblokDetail"] > [data-ref] {
    max-width: 340px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
  main[data-tab="OrderDetail"] [data-body] .btn-row,
  main[data-tab="UnblokDetail"] [data-body] .btn-row {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  main[data-tab="UnblokDetail"] [data-body] > [data-cancel] { max-width: 420px; }

  /* Profil */
  main[data-tab="Profil"] { max-width: 740px; }
  main[data-tab="Profil"] .stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
  }

  /* Modal & Toast */
  .modal-box { max-width: 460px; padding: 26px 24px 22px; }
  .toast { bottom: 28px; }
}

@media (min-width: 1024px) {
  main[data-tab="Layanan"] .ceir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  main[data-tab="Riwayat"] [data-list],
  main[data-tab="Deposit"] [data-list] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  main[data-tab="Riwayat"] [data-list] > .kicker,
  main[data-tab="Riwayat"] [data-list] > .ta-c,
  main[data-tab="Riwayat"] [data-list] > .muted-sm,
  main[data-tab="Deposit"] [data-list] > .muted-sm {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1140px) {
  .shell > .content {
    margin-left: 244px;
    width: calc(100% - 244px);
    padding: 100px 42px 56px;
  }
  .bottom-nav-wrap { width: 244px; }
  main[data-tab="Home"] .ceir-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* WA_FLOAT_V1 */
.wa-widget {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.wa-widget.has-nav {
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
}
.wa-fab {
  pointer-events: auto;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(72, 209, 138, 0.7);
  background: linear-gradient(135deg, #16a34a 0%, #25d366 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(7, 7, 10, 0.7);
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-fab svg { width: 23px; height: 23px; }
.wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35); }
.wa-fab:active { transform: scale(0.95); }
.wa-fab-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ffde7a;
  border: 2px solid #07070a;
}

.wa-pop {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: 248px;
  max-width: calc(100vw - 28px);
  border-radius: 16px;
  padding: 11px;
  background: linear-gradient(135deg, #1b1812 0%, #101014 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
}
.wa-widget.open .wa-pop {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.wa-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.wa-pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--gold-light);
}
.wa-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #25d366;
}
.wa-pop-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
}
.wa-pop-close:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.wa-pop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  transition: background 0.15s, border-color 0.15s;
}
.wa-pop-link:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.65);
}
.wa-pop-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-pop-ic svg { width: 20px; height: 20px; }
.wa-pop-info { display: flex; flex-direction: column; min-width: 0; }
.wa-pop-name { font-size: 11px; font-weight: 800; color: var(--white); }
.wa-pop-num { font-size: 12.5px; font-weight: 800; color: #48d18a; margin-top: 1px; letter-spacing: 0.2px; }
.wa-pop-hint { font-size: 9.5px; color: var(--muted); margin-top: 2px; }

.wa-pop-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}
.wa-pop-copy {
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.wa-pop-copy:hover { text-decoration: underline; }

@media (min-width: 860px) {
  .wa-widget, .wa-widget.has-nav { right: 24px; bottom: 24px; }
  .wa-fab { width: 50px; height: 50px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

/* LOGIN_REG_V2 */
.login-reg-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(238, 183, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.login-reg-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(238, 183, 42, 0.12);
  border: 1px solid rgba(238, 183, 42, 0.42);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.login-reg-btn:hover {
  background: rgba(238, 183, 42, 0.22);
  border-color: var(--gold);
}
.login-reg-btn:active { transform: scale(0.96); }
.reg-preview {
  font-size: 11px;
  color: var(--muted);
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 11px;
  word-break: break-word;
}
.reg-preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--green);
  font-weight: 700;
}

/* IOS_GUIDE_V1 */
.ios-guide-wrap { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c0c10; }
.ios-guide-loader { padding: 28px 14px; text-align: center; }
.ios-guide-img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.ios-zoom-img { width: 100%; max-width: none; height: auto; display: block; margin: 0 auto; border-radius: 12px; }

/* NOTIFY_UI_V1 */
.bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--panel2);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s, background 0.15s;
}
.bell-btn svg { width: 17px; height: 17px; }
.bell-btn:hover { background: rgba(238, 183, 42, 0.15); }
.bell-btn:active { transform: scale(0.94); }
.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 56dvh;
  overflow-y: auto;
  padding-right: 2px;
}
.notif-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #0d0d12;
  border-radius: 13px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--white);
  transition: border-color 0.15s, background 0.15s;
}
.notif-item:hover { border-color: var(--border-gold); }
.notif-item.unread {
  background: rgba(238, 183, 42, 0.08);
  border-color: rgba(238, 183, 42, 0.42);
}
.notif-title { font-size: 12px; font-weight: 800; color: var(--white); line-height: 1.3; }
.notif-item.unread .notif-title { color: var(--gold-light); }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-left: 8px;
}
.notif-body { font-size: 11px; color: var(--text-soft); margin-top: 4px; line-height: 1.4; word-break: break-word; }
.notif-time { font-size: 9.5px; color: var(--muted); margin-top: 5px; }
