/* ==========================================================================
   Numvia UI — mengikuti tampilan asli Numvia (Inter, biru #2563EB, slate),
   dirapikan: spasi konsisten, tanpa efek berlebihan, responsif.
   Nama class lama & baru sama-sama didukung.
   ========================================================================== */

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Palet asli */
  --blue-50: #EFF6FF; --blue-100: #DBEAFE; --blue-200: #BFDBFE; --blue-300: #93C5FD; --blue-400: #60A5FA;
  --blue-500: #3B82F6; --blue-600: #2563EB; --blue-700: #1D4ED8; --blue-900: #1E3A8A;
  --gray-50: #F8FAFF; --gray-100: #F1F5F9; --gray-200: #E2E8F0; --gray-300: #CBD5E1; --gray-400: #94A3B8;
  --gray-500: #64748B; --gray-600: #475569; --gray-700: #334155; --gray-800: #1E293B; --gray-900: #0F172A;
  --green-50: #F0FDF4; --green-100: #DCFCE7; --green-500: #10B981; --green-600: #059669; --green-700: #047857;
  --red-50: #FEF2F2; --red-500: #EF4444; --red-600: #DC2626; --yellow-500: #F59E0B;

  --bg: #F8FAFF; --surface: #FFFFFF; --surface-2: #F8FAFC;
  --border: var(--gray-200); --border-strong: var(--gray-300);
  --text: var(--gray-900); --muted: var(--gray-500); --subtle: var(--gray-400);

  --shadow-sm: 0 1px 3px rgba(15,23,41,.06), 0 1px 2px rgba(15,23,41,.04);
  --shadow: 0 4px 16px rgba(15,23,41,.08);
  --shadow-lg: 0 12px 40px rgba(15,23,41,.12);
  --radius: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Alias nama token yang dipakai view lain */
  --brand-50: var(--blue-50); --brand-100: var(--blue-100); --brand-200: var(--blue-200); --brand-300: var(--blue-300);
  --brand-400: var(--blue-400); --brand-500: var(--blue-500); --brand-600: var(--blue-600); --brand-700: var(--blue-700);
  --brand-800: var(--blue-700); --brand-900: var(--blue-900);
  --ink-950: var(--gray-900); --ink-900: var(--gray-900); --ink-800: var(--gray-800); --ink-700: var(--gray-700); --ink-600: var(--gray-600);
  --ink-500: var(--gray-500); --ink-400: var(--gray-400); --ink-300: var(--gray-300); --ink-200: var(--gray-200); --ink-100: var(--gray-100); --ink-50: var(--gray-50);
  --ok-50: var(--green-50); --ok-100: var(--green-100); --ok-500: var(--green-500); --ok-600: var(--green-600); --ok-700: var(--green-700);
  --bad-50: var(--red-50); --bad-100: #FEE2E2; --bad-500: var(--red-500); --bad-600: var(--red-600);
  --warn-50: #FFFBEB; --warn-100: #FEF3C7; --warn-500: #F59E0B; --warn-600: #B45309;
  --info-500: var(--blue-600);
  --r: 9px; --r-sm: 8px; --r-lg: 12px; --r-xl: 18px;
  --sh-xs: var(--shadow-sm); --sh-sm: var(--shadow-sm); --sh: var(--shadow); --sh-lg: var(--shadow-lg);
  --border-color: var(--border); --text-main: var(--text); --text-muted: var(--muted);
  --grad: var(--blue-600); --grad-text: none;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; }
svg.ic, .fi { display: inline-block; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--blue-600); font-weight: 500; }
p a:hover, .prose a:hover, .link:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -.02em; }
code, kbd, pre, .font-mono, .mono { font-family: var(--mono); }
::selection { background: var(--blue-100); color: var(--blue-900); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; height: 1px; background: var(--border); margin: 20px 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 999; background: var(--blue-600); color: #fff; padding: 8px 14px; border-radius: 9px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-label, .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.03em; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 540px; line-height: 1.7; }
.section-head .section-sub { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.split-aside { position: sticky; top: 96px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.flex { display: flex; } .flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .w-full { width: 100%; }
.m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.text-center { text-align: center; } .text-lg { font-size: 18px; } .text-muted { color: var(--subtle) !important; } .text-gray-900 { color: var(--text); }
.text-blue { color: var(--blue-600); } .text-green { color: var(--green-600); } .text-red { color: var(--red-500); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-sm { border-radius: 4px; } .rounded-full { border-radius: 9999px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1.5px solid transparent; background: var(--surface); color: var(--gray-700); cursor: pointer; transition: all .2s; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn-primary, .btn-blue, .btn.btn-primary, .btn.btn-blue, .btn-dark, .btn.btn-dark { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.btn-primary:hover, .btn-blue:hover, .btn-dark:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
/* Tombol besar hero (gaya asli) */
a.btn-primary:not(.btn), button.btn-primary:not(.btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(37,99,235,.2); transition: all .2s; }
a.btn-primary:not(.btn):hover { box-shadow: 0 4px 12px rgba(37,99,235,.28); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; background: #fff; color: var(--gray-700); font-size: 14.5px; font-weight: 600; border: 1.5px solid var(--gray-200); transition: all .2s; }
.btn-secondary:hover { border-color: var(--blue-200); color: var(--blue-600); background: var(--blue-50); }
.btn.btn-secondary { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-outline, .btn.btn-outline { background: #fff; color: var(--gray-700); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--blue-200); color: var(--blue-600); background: var(--blue-50); }
.btn-ghost, .btn.btn-ghost { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-green, .btn-success { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.btn-green:hover, .btn-success:hover { background: var(--green-700); color: #fff; }
.btn-danger, .btn.btn-danger { background: #FEE2E2; color: var(--red-600); border-color: #FEE2E2; }
.btn-danger:hover { background: #FECACA; border-color: #FECACA; }
.btn-danger-soft { background: var(--red-50); color: var(--red-600); border-color: #FECACA; }
.btn-danger-soft:hover { background: #FEE2E2; }
.btn-white { background: #fff; color: var(--blue-600); border-color: #fff; }
.btn-white:hover { background: var(--gray-100); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; border-radius: 9px; }
.btn-xl { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn:disabled, .btn[disabled], button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .75; }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* Tombol nav (asli) */
.btn-nav-login { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--gray-700); border: 1.5px solid var(--gray-200); background: #fff; transition: all .15s; }
.btn-nav-login:hover { border-color: var(--blue-300); color: var(--blue-600); }
.btn-nav-signup { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; background: var(--blue-600); color: #fff; border: 1.5px solid var(--blue-600); transition: background .15s; }
.btn-nav-signup:hover { background: var(--blue-700); color: #fff; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group, .field { margin-bottom: 18px; }
.form-label, .field-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
.form-hint { font-size: 12px; color: var(--subtle); margin-top: 5px; }
.form-error { font-size: 12.5px; color: var(--red-600); margin-top: 6px; }
.form-control, .input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: 9px; font-size: 14px; color: var(--gray-800); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-control::placeholder, .input::placeholder { color: var(--gray-300); }
.form-control:focus, .input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue-600); width: 16px; height: 16px; }
input[type="file"].form-control { padding: 7px; }
input[type="file"]::file-selector-button { border: 0; background: var(--blue-50); color: var(--blue-700); font-weight: 600; padding: 6px 12px; border-radius: 7px; margin-right: 10px; cursor: pointer; }

.input-wrap { position: relative; }
.input-wrap > .ic:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-wrap .input, .input-wrap .form-control { padding-left: 40px; min-height: 42px; }
.input-wrap:focus-within > .ic:first-child { color: var(--blue-600); }
.input-wrap .input-action { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--gray-400); display: grid; place-items: center; }
.input-wrap .input-action:hover { background: var(--gray-100); color: var(--gray-700); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--gray-600); cursor: pointer; line-height: 1.5; }
.check input { margin-top: 2px; flex-shrink: 0; }
.check a { color: var(--blue-600); font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 700; color: var(--gray-900); display: inline-flex; align-items: center; gap: 8px; }
.card-title .ic { color: var(--blue-600); }
.card-title .ic-chip { display: none; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--blue-200); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--gray-100); color: inherit; transition: background .12s; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--gray-50); color: inherit; }
.empty { text-align: center; padding: 40px 20px; color: var(--gray-400); font-size: 14px; }
.empty .ic-chip { margin: 0 auto 12px; display: grid; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }

.ic-chip { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--blue-50); color: var(--blue-600); }
.ic-chip.sm { width: 32px; height: 32px; border-radius: 9px; }
.ic-chip.lg { width: 46px; height: 46px; border-radius: 13px; }
.ic-chip.xl { width: 56px; height: 56px; border-radius: 16px; }
.ic-chip.grad { background: var(--blue-600); color: #fff; }
.ic-chip.ok { background: var(--green-50); color: var(--green-600); }
.ic-chip.bad { background: var(--red-50); color: var(--red-600); }
.ic-chip.warn { background: #FFFBEB; color: #D97706; }
.ic-chip.info, .ic-chip.violet, .ic-chip.pink { background: var(--blue-50); color: var(--blue-600); }
.ic-chip.ink { background: var(--gray-100); color: var(--gray-600); }
.ic-chip.glass { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--gray-100); color: var(--gray-600); white-space: nowrap; }
.badge-blue, .badge-brand { background: var(--blue-50); color: var(--blue-700); }
.badge-green { background: #DCFCE7; color: var(--green-600); }
.badge-red { background: #FEE2E2; color: var(--red-500); }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); display: inline-block; flex-shrink: 0; animation: pulse 2s infinite; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert, .flash-success, .flash-error { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid; margin-bottom: 20px; line-height: 1.5; }
.alert .ic { flex-shrink: 0; margin-top: 1px; }
.alert-success, .flash-success { background: #F0FDF4; color: var(--green-600); border-color: #BBF7D0; }
.alert-error, .alert-danger, .flash-error { background: #FEF2F2; color: var(--red-600); border-color: #FECACA; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.alert-warning { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap, .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card:has(.table), .card-body:has(> .table) { overflow-x: auto; }
.card .table td:last-child, .card .table th:last-child { white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .07em; padding: 12px 18px; text-align: left; white-space: nowrap; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.table td { padding: 14px 18px; font-size: 13.5px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--gray-50); }

/* ── Stats (gaya asli: kartu terpisah, label kapital kecil) ────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px 24px; display: block; color: inherit; transition: all .2s; }
.stat-card:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-200); }
.stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stat-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.stat-value, .stat-num { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--gray-400); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.stat-sub .ic { display: none; }
.stat-up { color: var(--green-600); font-weight: 700; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 16px 0 0; padding: 0; }
.pagination .page-item { list-style: none; }
.pagination a, .pagination span, .pagination .page-link { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-500); font-size: 13px; font-weight: 600; text-decoration: none; }
.pagination a:hover, .pagination .page-link:hover { border-color: var(--blue-200); color: var(--blue-600); }
.pagination .active span, .pagination span.active, .pagination .active .page-link { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.pagination .disabled span, .pagination .disabled .page-link { opacity: .5; }
nav[role="navigation"] svg { width: 16px; height: 16px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-200) !important; margin-bottom: 20px; overflow-x: auto; }
.tab-btn { border: 0; background: transparent; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.tab-btn:hover { color: var(--gray-900); }
.tab-btn.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }

.admin-grid-cols-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.admin-grid-cols-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-grid-stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.admin-grid-stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ==========================================================================
   PUBLIC (gaya asli)
   ========================================================================== */
.logo-wrapper { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--blue-600); display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 4px 10px rgba(37,99,235,.25); }
.logo-text { font-size: 20px; font-weight: 800; color: var(--gray-900); letter-spacing: -.04em; line-height: 1; }
.logo-image { max-height: 32px; width: auto; object-fit: contain; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-mark { background: rgba(255,255,255,.15); box-shadow: none; border: 1px solid rgba(255,255,255,.2); }

.pub-nav, .pnav { position: sticky; top: 0; z-index: 100; background: rgba(248,250,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--gray-200); }
.pub-nav-inner, .pnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-links, .pnav-links { display: flex; align-items: center; gap: 4px; }
.nav-link, .pnav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--gray-600); transition: background .15s, color .15s; }
.nav-link:hover, .pnav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active, .pnav-link.active { color: var(--blue-600); font-weight: 600; }
.nav-cta, .pnav-cta { display: flex; align-items: center; gap: 10px; }
.nav-mobile-toggle, .pnav-toggle { display: none; background: none; border: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; color: var(--gray-600); }
.nav-mobile-toggle:hover, .pnav-toggle:hover { background: var(--gray-100); }
.pnav-mobile { display: none; border-top: 1px solid var(--gray-200); background: #fff; padding: 12px 16px 16px; }
.pnav-mobile.open { display: block; }
.pnav-mobile a.m-link { display: block; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--gray-700); background: var(--gray-50); border-radius: 10px; margin-bottom: 8px; }
.pnav-mobile a.m-link:hover { background: var(--blue-50); color: var(--blue-700); }

/* Hero (asli: rata tengah, latar biru muda) */
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, #F0F5FF 0%, #F8FAFF 100%); position: relative; overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-50); border: 1px solid var(--blue-200); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--blue-700); margin-bottom: 24px; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; color: var(--gray-900); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--blue-600); }
.hero-sub { font-size: 18px; color: var(--gray-500); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -.04em; }
.hero-stat-label { font-size: 13px; color: var(--gray-400); font-weight: 500; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* Cara kerja */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; position: relative; transition: box-shadow .2s, transform .2s; }
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.step-num { width: 40px; height: 40px; background: var(--blue-600); border-radius: 12px; color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.step-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; }
.step-connector { position: absolute; right: -13px; top: 47px; width: 26px; height: 2px; background: var(--blue-200); z-index: 1; }

/* Nomor tersedia */
.numbers-box { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.number-row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--gray-100); transition: background .2s; }
.number-row-card:last-child { border-bottom: 0; }
.number-row-card:hover { background: var(--gray-50); }
.flag-box { width: 44px; height: 44px; flex-shrink: 0; background: var(--blue-50); border-radius: 12px; display: grid; place-items: center; color: var(--blue-600); overflow: hidden; }
.flag-box .fi { width: 26px; height: 19px; border-radius: 3px; background-size: cover; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.number-display, .num-text { font-size: 16px; font-weight: 800; color: var(--gray-900); font-family: var(--mono); letter-spacing: .03em; }

/* Negara (marquee asli) */
.countries-section { background: #fff; padding: 80px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.countries-marquee-wrap { overflow: hidden; position: relative; }
.countries-marquee-wrap::before, .countries-marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.countries-marquee-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.countries-marquee-wrap::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.countries-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; padding: 4px 0; }
.countries-track:hover { animation-play-state: paused; }
.countries-track.rev { animation-direction: reverse; animation-duration: 45s; }
.country-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--gray-50); border: 1px solid var(--gray-200); padding: 9px 18px 9px 12px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; transition: all .2s; font-size: 13px; font-weight: 600; color: var(--gray-700); }
.country-pill:hover { background: var(--blue-50); border-color: var(--blue-200); }
.country-pill .fi { width: 22px; height: 16px; border-radius: 3px; background-size: cover; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.country-name { font-size: 13px; font-weight: 600; color: var(--gray-700); }

/* Fitur */
.home-features-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 26px; transition: all .2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-200); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-50); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.feature-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* Banner reward (asli) */
.reward-banner { background: linear-gradient(135deg, var(--blue-600) 0%, #4F46E5 100%); border-radius: var(--radius-xl); padding: 52px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.reward-banner-content { position: relative; z-index: 1; }
.reward-banner .section-label { color: rgba(255,255,255,.75); }
.reward-amount { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; margin: 8px 0 12px; }
.reward-amount span { font-size: .55em; font-weight: 500; opacity: .8; }
.reward-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--blue-600); height: 42px; padding: 0 20px; border-radius: 9px; font-size: 14.5px; font-weight: 700; border: none; transition: all .2s; margin-top: 24px; }
.reward-btn:hover { background: var(--gray-100); color: var(--blue-700); }

/* FAQ (asli) */
.home-faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-trigger { width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; text-align: left; font-size: 15px; font-weight: 600; color: var(--gray-900); transition: background .15s; }
.faq-trigger:hover { background: var(--gray-50); }
.faq-trigger svg { flex-shrink: 0; color: var(--gray-400); transition: transform .2s; }
.faq-trigger.open svg { transform: rotate(180deg); color: var(--blue-600); }
.faq-body { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.faq-body.open { display: block; }

/* Footer (asli) */
footer, .pfooter { background: #fff; color: var(--gray-600); padding: 60px 0 0; border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--gray-400); line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col-title { font-size: 13px; font-weight: 800; color: var(--gray-900); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: var(--gray-400); transition: color .15s; }
.footer-link:hover { color: var(--blue-600); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding: 20px 0; font-size: 13px; color: var(--gray-500); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); }

/* Konten publik */
.page-hero { padding: 64px 0 44px; background: linear-gradient(180deg, #F0F5FF 0%, #F8FAFF 100%); border-bottom: 1px solid var(--gray-200); text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 12px; }
.page-hero p { color: var(--gray-500); font-size: 17px; max-width: 620px; margin: 0 auto; line-height: 1.7; }
.prose { font-size: 16px; line-height: 1.8; color: var(--gray-700); }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 19px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: 14px; margin: 1.4em 0; height: auto; }
.prose blockquote { border-left: 3px solid var(--blue-300); padding: 4px 0 4px 16px; color: var(--gray-600); margin: 1.4em 0; }
.prose code { background: var(--gray-100); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--gray-900); color: #E2E8F0; padding: 18px; border-radius: 12px; overflow-x: auto; margin: 1.4em 0; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--gray-200); padding: 10px 12px; text-align: left; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.auth-aside { background: linear-gradient(145deg, #1D4ED8 0%, #2563EB 55%, #1E40AF 100%); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; }
.auth-aside .logo-text { color: #fff; }
.auth-aside .logo-mark { background: rgba(255,255,255,.15); box-shadow: none; border: 1px solid rgba(255,255,255,.2); }
.auth-aside-body { margin: auto 0; max-width: 440px; padding: 40px 0; }
.auth-aside h2 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 14px; }
.auth-aside p { color: rgba(255,255,255,.8); font-size: 15.5px; line-height: 1.7; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.auth-point { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.92); }
.auth-point .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; flex-shrink: 0; }
.auth-aside-foot { font-size: 13px; color: rgba(255,255,255,.6); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-aside-foot a:hover { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-sub { color: var(--gray-500); font-size: 14.5px; margin-bottom: 26px; line-height: 1.6; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 24px; }
.auth-back:hover { color: var(--gray-900); }
.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-500); }
.auth-switch a { color: var(--blue-600); font-weight: 700; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.auth-row .form-label { margin: 0; }
.auth-link-sm { font-size: 13px; font-weight: 600; color: var(--blue-600); }
.strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-track { flex: 1; height: 4px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-track i { background: var(--gray-200); border-radius: 99px; transition: background .2s; }
.strength-label { font-size: 12px; font-weight: 600; min-width: 44px; text-align: right; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   DASHBOARD SHELL (user: sidebar putih · admin: sidebar gelap — seperti asli)
   ========================================================================== */
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.side { width: 248px; flex-shrink: 0; position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--gray-200); transition: transform .3s; }
.side-head { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--gray-100); flex-shrink: 0; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.side-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--gray-600); transition: all .15s; margin-bottom: 2px; border: 0; background: none; width: 100%; text-align: left; }
.side-link .ic { flex-shrink: 0; color: var(--gray-400); }
.side-link:hover { background: var(--gray-50); color: var(--gray-900); }
.side-link.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.side-link.active .ic { color: var(--blue-600); }
.side-link .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue-600); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; }
.side-link.danger, .side-link.danger .ic { color: var(--red-500); }
.side-link.danger:hover { background: var(--red-50); }
.side-foot { border-top: 1px solid var(--gray-100); padding: 12px 10px; flex-shrink: 0; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.avatar { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--blue-600); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.side-user-name { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.side-user-meta { font-size: 12px; color: var(--green-600); font-weight: 700; }

.shell-main { flex: 1; min-width: 0; margin-left: 248px; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(248,250,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.topbar-crumb { font-size: 12px; color: var(--gray-400); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1.5px solid var(--gray-200); display: inline-grid; place-items: center; position: relative; color: var(--gray-500); transition: all .15s; }
.icon-btn:hover { border-color: var(--blue-200); color: var(--blue-600); }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; background: var(--red-500); border-radius: 50%; border: 2px solid var(--gray-50); }
.balance-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; background: #fff; border: 1.5px solid var(--gray-200); font-weight: 700; font-size: 14px; color: var(--green-600); }
.balance-chip .ic { color: var(--green-600); }
.menu-btn { display: none; }
.shell-content { padding: 28px; flex: 1; width: 100%; max-width: 1400px; }
.side-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.side-overlay.open { opacity: 1; pointer-events: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: var(--gray-400); font-size: 14px; margin-top: 3px; }
.admin-tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #1E3A8A; color: #93C5FD; text-transform: uppercase; letter-spacing: .08em; }

/* Admin: sidebar navy gelap seperti aslinya */
.shell--admin .side { background: #0F172A; border-right-color: #0F172A; }
.shell--admin .side-head { border-bottom-color: #1E293B; }
.shell--admin .logo-text { color: #fff; }
.shell--admin .side-label { color: #475569; }
.shell--admin .side-link { color: #94A3B8; font-size: 13.5px; }
.shell--admin .side-link .ic { color: #64748B; }
.shell--admin .side-link:hover { background: #1E293B; color: #E2E8F0; }
.shell--admin .side-link.active { background: #1E3A8A; color: #93C5FD; }
.shell--admin .side-link.active .ic { color: #93C5FD; }
.shell--admin .side-link.danger, .shell--admin .side-link.danger .ic { color: #F87171; }
.shell--admin .side-link.danger:hover { background: rgba(239,68,68,.12); }
.shell--admin .side-foot { border-top-color: #1E293B; }
.shell--admin .side-user-name { color: #F1F5F9; }
.shell--admin .side-user-meta { color: #64748B; font-weight: 500; }
.shell--admin .side-foot .btn-ghost { color: #94A3B8; }
.shell--admin .side-foot .btn-ghost:hover { background: #1E293B; color: #fff; }

/* Kartu saldo (asli: biru) */
.hello, .balance-card { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); border-radius: var(--radius-xl); padding: 26px 28px; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; }
.hello h1 { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.hello p { color: rgba(255,255,255,.75); font-size: 14px; }
.hello-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; }
.hello-balance { text-align: right; }
.hello-balance .lbl { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.hello-balance .amt { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; }

.code-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--green-600); font-family: var(--mono); font-weight: 800; letter-spacing: 2px; font-size: 15px; cursor: pointer; }
.code-pill .ic { color: var(--green-600); }

/* Kartu negara */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.country-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; transition: all .25s; }
.country-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(37,99,235,.08); border-color: var(--blue-200); }
.stock-meter { height: 5px; border-radius: 99px; background: var(--gray-100); overflow: hidden; }
.stock-meter i { display: block; height: 100%; border-radius: inherit; background: var(--green-500); }

/* ── Animasi ────────────────────────────────────────────────────────────── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 1; }

.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; background: var(--gray-900); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); animation: rise .2s var(--ease); }
.toast .ic { color: #34D399; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .side { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .shell-main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .home-features-layout, .home-faq-layout, .split { grid-template-columns: 1fr; gap: 32px; }
  .split-aside { position: static; }
  .admin-grid-cols-2, .admin-grid-cols-1-1 { grid-template-columns: 1fr !important; }
  .admin-grid-stats-3, .admin-grid-stats-4 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: block; }
}
@media (max-width: 768px) {
  .container, .container-sm { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .nav-links, .nav-cta, .pnav-links, .pnav-cta { display: none; }
  .nav-mobile-toggle, .pnav-toggle { display: inline-flex; margin-left: auto; }
  .pub-nav-inner, .pnav-inner { padding: 0 16px; }
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .hero-sub { font-size: 15.5px; }
  .hero-stat-divider { display: none; }
  .hero-stats { gap: 20px 28px; }
  .steps-grid, .grid-3 { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .number-row-card { flex-wrap: wrap; padding: 16px; }
  .number-row-card .btn { width: 100%; }
  .countries-section { padding: 52px 0; }
  .reward-banner { padding: 32px 20px; border-radius: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .topbar { padding: 0 14px; }
  .shell-content { padding: 16px 14px 40px; }
  .card-header, .card-body { padding-left: 16px; padding-right: 16px; }
  .list-row { padding-left: 16px; padding-right: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value, .stat-num { font-size: 22px; }
  .hello { padding: 22px 20px; }
  .hello-balance { text-align: left; }
  .hello-balance .amt { font-size: 30px; }
  .hide-sm { display: none !important; }
  .table th, .table td { padding: 10px 12px; font-size: 12px; }
  .admin-grid-stats-3, .admin-grid-stats-4 { grid-template-columns: 1fr !important; }
  input.form-control, select.form-control, textarea.form-control, .input { font-size: 16px; }
  .toast-stack { left: 14px; right: 14px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; }
  .stat-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .side, .topbar, .pnav, .pub-nav, footer, .toast-stack { display: none !important; }
  .shell-main { margin: 0; }
}

/* ==========================================================================
   Numvia 3 — tema biru muda.
   Latar putih kebiruan, satu biru utama, garis tipis, tombol ringkas.
   Angka (nomor, kode, stok) selalu tabular supaya rata.
   ========================================================================== */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Plus Jakarta Sans', system-ui, sans-serif;

  --ink:   #0D2A45;   /* teks utama, navy */
  --ink-2: #3D5872;   /* teks sekunder */
  --ink-3: #6E8499;   /* keterangan */
  --line:  #DCE8F3;
  --line-2:#EBF3FA;
  --canvas:#F3F8FD;   /* latar halaman: putih kebiruan */
  --sky-50:#F0F7FE;
  --sky-100:#E1F0FD;
  --sky-200:#C5E2FB;
  --sky-300:#94CBF7;
  --signal:#0B7FDA;   /* biru utama (kontras teks putih AA) */
  --signal-2:#0868B4;
  --signal-soft:#E1F0FD;
  --live:#0E9F6E; --live-soft:#E4F6EE;
  --wait:#B76E00; --wait-soft:#FFF4DE;
  --stop:#D92D20; --stop-soft:#FDECEA;

  --blue-50:var(--sky-50); --blue-100:var(--sky-100); --blue-200:var(--sky-200); --blue-300:var(--sky-300);
  --blue-500:#2E95E6; --blue-600:var(--signal); --blue-700:var(--signal-2);
  --bg:var(--canvas); --surface:#fff; --text:var(--ink); --muted:var(--ink-3); --subtle:#8EA2B6;
  --border:var(--line); --gray-50:#F7FAFD; --gray-100:var(--line-2); --gray-200:var(--line); --gray-300:#C3D3E2;
  --gray-400:#8EA2B6; --gray-500:var(--ink-3); --gray-600:var(--ink-2); --gray-700:var(--ink-2); --gray-800:#173552; --gray-900:var(--ink);
  --green-500:var(--live); --green-600:var(--live);
  --shadow-sm: 0 1px 2px rgba(13,42,69,.04);
  --shadow: 0 4px 14px rgba(13,42,69,.06);
  --shadow-lg: 0 16px 40px rgba(13,42,69,.10);
}

body { font-family: var(--font); background: var(--canvas); color: var(--ink); font-size: 14.5px; font-feature-settings: "tnum" 1; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; }
a { color: var(--signal); }
::selection { background: var(--sky-200); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
.mono, .tnum { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Label: huruf biasa, tanpa kapital berjarak */
.section-label, .eyebrow, .stat-label, .side-label, .footer-col-title, .table th, .hello-balance .lbl, .admin-tag { text-transform: none !important; letter-spacing: 0 !important; }

/* ── Tombol: ringkas ── */
.btn, .btn.btn-secondary, .btn.btn-outline {
  height: 36px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover, .btn.btn-secondary:hover, .btn.btn-outline:hover { background: var(--sky-50); border-color: var(--sky-200); color: var(--signal-2); }
.btn-primary, .btn-blue, .btn.btn-primary, .btn.btn-blue { background: var(--signal); border-color: var(--signal); color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-blue:hover, .btn.btn-primary:hover, .btn.btn-blue:hover { background: var(--signal-2); border-color: var(--signal-2); color: #fff; }
.btn-dark, .btn.btn-dark, .btn-soft { background: var(--sky-100); border-color: var(--sky-100); color: var(--signal-2); }
.btn-dark:hover, .btn.btn-dark:hover, .btn-soft:hover { background: var(--sky-200); border-color: var(--sky-200); color: var(--signal-2); }
.btn-ghost, .btn.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover, .btn.btn-ghost:hover { background: var(--sky-50); border-color: transparent; color: var(--signal-2); }
.btn-light, .btn.btn-light { background: #fff; border-color: #fff; color: var(--signal-2); }
.btn-danger-soft, .btn.btn-danger-soft { background: #fff; border-color: #F4CBC6; color: var(--stop); }
.btn-danger-soft:hover, .btn.btn-danger-soft:hover { background: var(--stop-soft); border-color: #EFA9A1; color: var(--stop); }
.btn-sm, .btn.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg, .btn.btn-lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-icon.btn-sm { width: 30px; padding: 0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* tombol publik lama */
.btn-secondary:not(.btn) { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; border: 1px solid var(--line); }
.btn-nav-login, .btn-nav-signup { padding: 0 14px; height: 34px; display: inline-flex; align-items: center; font-size: 13.5px; border-radius: 9px; border-width: 1px; }
.btn-nav-login { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-nav-login:hover { background: var(--sky-50); border-color: var(--sky-200); color: var(--signal-2); }
.btn-nav-signup { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-nav-signup:hover { background: var(--signal-2); border-color: var(--signal-2); color: #fff; }

/* ── Form ── */
.form-control, .input { min-height: 38px; padding: 7px 12px; border: 1px solid #CFDDEA; border-radius: 9px; font-size: 14px; color: var(--ink); background: #fff; }
.input-wrap .input, .input-wrap .form-control { min-height: 38px; padding-left: 38px; }
.input-wrap > .ic:first-child { left: 12px; }
.form-control:hover, .input:hover { border-color: #B5CADD; }
.form-control:focus, .input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(11,127,218,.14); }
.form-control::placeholder, .input::placeholder { color: #9DB0C2; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* ── Panel ── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.card-header { border-bottom: 1px solid var(--line-2); }
.card-title { font-size: 14.5px; font-weight: 700; }
.list-row { border-bottom-color: var(--line-2); }
a.list-row:hover { background: var(--sky-50); }

/* ── Badge ── */
.badge { border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; background: var(--line-2); color: var(--ink-2); }
.badge-green { background: var(--live-soft); color: #08744F; }
.badge-red { background: var(--stop-soft); color: var(--stop); }
.badge-yellow, .badge-warning { background: var(--wait-soft); color: var(--wait); }
.badge-blue { background: var(--sky-100); color: var(--signal-2); }

/* ── Tabel ── */
.table th { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--sky-50); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.table td { font-size: 13.5px; color: var(--ink-2); padding: 12px 16px; border-bottom-color: var(--line-2); font-variant-numeric: tabular-nums; }
.table tbody tr:hover td { background: #F8FBFE; }

/* ── Statistik ── */
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-card:hover { border-color: var(--sky-300); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.alert { border-radius: 10px; font-size: 13.5px; padding: 11px 14px; }
.alert-success { background: var(--live-soft); border-color: #BFE6D4; color: #08744F; }

/* ── Shell: sidebar terang untuk user & admin ── */
.side, .shell--admin .side { background: #fff; border-right: 1px solid var(--line); }
.side-head, .shell--admin .side-head { border-bottom: 1px solid var(--line-2); height: 60px; }
.side-label, .shell--admin .side-label { font-size: 11.5px; font-weight: 600; color: #93A6B8; padding: 16px 12px 6px; }
.side-link, .shell--admin .side-link { position: relative; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; }
.side-link .ic, .shell--admin .side-link .ic { color: #8CA0B4; }
.side-link:hover, .shell--admin .side-link:hover { background: var(--sky-50); color: var(--ink); }
.side-link.active, .shell--admin .side-link.active { background: var(--sky-100); color: var(--signal-2); font-weight: 600; }
.side-link.active .ic, .shell--admin .side-link.active .ic { color: var(--signal); }
.side-link.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--signal); }
.side-link .count { background: var(--signal); }
.side-link.danger, .side-link.danger .ic, .shell--admin .side-link.danger, .shell--admin .side-link.danger .ic { color: var(--stop); }
.shell--admin .side-link.danger:hover { background: var(--stop-soft); }
.side-foot, .shell--admin .side-foot { border-top: 1px solid var(--line-2); }
.shell--admin .side-user-name { color: var(--ink); }
.shell--admin .side-user-meta { color: var(--ink-3); }
.shell--admin .logo-text { color: var(--ink); }
.admin-tag { margin-left: auto; background: var(--sky-100); color: var(--signal-2); border-radius: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.topbar { height: 60px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.topbar-title { font-weight: 700; font-size: 15px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.icon-btn:hover { background: var(--sky-50); border-color: var(--sky-200); }
.balance-chip { height: 34px; border-radius: 9px; border: 1px solid #BFE6D4; background: var(--live-soft); }
.page-head { margin-bottom: 20px; align-items: center; }
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--ink-3); font-size: 14px; margin-top: 3px; max-width: 66ch; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--signal); box-shadow: none; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.avatar { background: var(--sky-100); color: var(--signal-2); }

/* Kartu berwarna lama (saldo, referral, auth): biru solid tanpa gradasi */
.hello, .balance-card { background: var(--signal); color: #fff; border-radius: 14px; }
.auth-aside { background: var(--signal); }
.reward-banner { background: var(--signal); }
.hero, .page-hero { background: var(--sky-50); border-bottom: 1px solid var(--line); }

/* ── Publik ── */
.pnav, .pub-nav { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.pnav-inner { height: 60px; }
.pnav-link { font-size: 13.5px; color: var(--ink-2); padding: 7px 12px; }
.pnav-link:hover { background: var(--sky-50); color: var(--signal-2); }
.pnav-link.active { color: var(--signal-2); font-weight: 700; }
.pfooter { background: #fff; border-top: 1px solid var(--line); }
.footer-col-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.footer-link { font-size: 13.5px; color: var(--ink-3); }
.footer-link:hover { color: var(--signal-2); }
.country-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--sky-300); }

/* ── Daftar negara / nomor ── */
.nv-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.nv-toolbar .input-wrap { flex: 1; min-width: 200px; max-width: 380px; }
.nv-count { color: var(--ink-3); font-size: 13px; margin-left: auto; }
.nv-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.nv-row { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1.6fr) 96px 112px; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.nv-row:last-child { border-bottom: 0; }
.nv-row:hover { background: #F8FBFE; }
.nv-head, .nv-head:hover { padding-top: 9px; padding-bottom: 9px; background: var(--sky-50); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.nv-flag { width: 32px; height: 24px; border-radius: 5px; overflow: hidden; background: var(--sky-100); display: grid; place-items: center; color: var(--signal); box-shadow: 0 0 0 1px rgba(13,42,69,.06); flex-shrink: 0; }
.nv-flag .fi { width: 100%; height: 100%; background-size: cover; display: block; }
.nv-name { font-weight: 650; font-size: 14px; color: var(--ink); }
.nv-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; font-variant-numeric: tabular-nums; }
.nv-svcs { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.nv-svc { font-size: 11.5px; font-weight: 600; color: var(--signal-2); background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.nv-svc b { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.nv-stock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; color: var(--ink); }
.nv-stock small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.nv-stock.low { color: var(--wait); }
.nv-row form { margin: 0; }
.nv-row .btn { width: 100%; }

.nv-active { display: grid; gap: 8px; margin-bottom: 22px; }
.nv-ticket { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--sky-200); border-radius: 12px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.nv-ticket .num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.nv-ticket .meta { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.nv-ticket .acts { display: flex; gap: 6px; margin-left: auto; }

.nv-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex-shrink: 0; animation: nvPulse 1.8s infinite; }
.nv-pulse.wait { background: var(--signal); animation-name: nvPulseB; }
.nv-pulse.off { background: #B9C8D6; animation: none; }
@keyframes nvPulse { 0% { box-shadow: 0 0 0 0 rgba(14,159,110,.45); } 70% { box-shadow: 0 0 0 7px rgba(14,159,110,0); } 100% { box-shadow: 0 0 0 0 rgba(14,159,110,0); } }
@keyframes nvPulseB { 0% { box-shadow: 0 0 0 0 rgba(11,127,218,.45); } 70% { box-shadow: 0 0 0 7px rgba(11,127,218,0); } 100% { box-shadow: 0 0 0 0 rgba(11,127,218,0); } }

.nv-empty { padding: 40px 22px; text-align: center; color: var(--ink-3); }
.nv-empty h3 { font-size: 16px; margin-bottom: 6px; }
.nv-empty p { max-width: 46ch; margin: 0 auto 16px; font-size: 14px; }

/* ── Kotak masuk OTP ── */
.ib { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.ib-number { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.ib-number .country { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.ib-number .country .nv-flag { width: 26px; height: 19px; }
.ib-big { font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 8px 0 14px; line-height: 1.15; word-break: break-all; color: var(--ink); }
.ib-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ib-actions form { margin-left: auto; }
.ib-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.ib-panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.ib-panel-head h2 { font-size: 14.5px; font-weight: 700; margin-right: auto; }
.ib-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: 999px; padding: 4px 10px; }
.ib-wait { padding: 40px 22px 44px; text-align: center; }
.ib-wait .ring { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; border: 2px solid var(--sky-100); border-top-color: var(--signal); animation: nvSpin 1s linear infinite; }
@keyframes nvSpin { to { transform: rotate(360deg); } }
.ib-wait h3 { font-size: 16.5px; margin-bottom: 6px; }
.ib-wait p { color: var(--ink-3); font-size: 14px; max-width: 44ch; margin: 0 auto; }
.ib-got { padding: 26px 22px 24px; text-align: center; animation: nvIn .4s cubic-bezier(.2,.7,.2,1); }
@keyframes nvIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ib-from { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.digits { display: inline-flex; gap: 7px; margin: 0 auto 16px; flex-wrap: wrap; justify-content: center; }
.digits span { width: clamp(38px, 8vw, 48px); height: clamp(48px, 10vw, 58px); display: grid; place-items: center; font-size: clamp(22px, 4.6vw, 30px); font-weight: 700; color: var(--signal-2); background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: 10px; font-variant-numeric: tabular-nums; }
.digits.long span { width: clamp(30px, 6.6vw, 40px); font-size: clamp(18px, 4vw, 24px); }
.ib-text { background: #F8FBFE; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; text-align: left; word-break: break-word; max-width: 540px; margin: 0 auto 16px; }
.ib-reward { margin: 12px auto 0; max-width: 540px; padding: 9px 12px; border-radius: 10px; background: var(--live-soft); color: #08744F; font-size: 13.5px; font-weight: 600; }
.ib-side { display: grid; gap: 14px; }
.ib-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.ib-box h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.ib-timer { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.ib-bar { height: 5px; background: var(--sky-100); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.ib-bar i { display: block; height: 100%; background: var(--signal); border-radius: inherit; transition: width 1s linear, background .3s; }
.ib-bar i.low { background: var(--wait); }
.ib-steps { display: grid; gap: 10px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.ib-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ib-steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--sky-100); color: var(--signal-2); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ib-history .item { padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.ib-history .item:last-child { border-bottom: 0; }
.ib-history .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.ib-history .top b { color: var(--ink); }
.ib-history .top span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ib-history .msg { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; word-break: break-word; }
.code-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--signal-2); font-family: var(--font); font-weight: 700; letter-spacing: .1em; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.code-pill .ic { color: var(--signal); }

/* ── Live SMS ── */
.feed { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.feed-row { display: grid; grid-template-columns: 32px 160px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.feed-row:last-child { border-bottom: 0; }
.feed-row.new { animation: nvFlash 2.4s ease-out; }
@keyframes nvFlash { from { background: var(--sky-100); } to { background: #fff; } }
.feed-num { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--ink); }
.feed-meta { font-size: 12px; color: var(--ink-3); }
.feed-msg { font-size: 13.5px; color: var(--ink-2); word-break: break-word; min-width: 0; }
.feed-code { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .1em; background: var(--sky-50); border: 1px solid var(--sky-200); color: var(--signal-2); border-radius: 7px; padding: 4px 9px; font-size: 14px; white-space: nowrap; }
.feed-code.none { background: var(--line-2); border-color: var(--line-2); color: var(--ink-3); letter-spacing: 0; font-weight: 600; font-size: 12px; }

/* ── Admin ── */
.hub-status { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.hub-status .title { font-weight: 700; font-size: 14.5px; }
.hub-status .sub { font-size: 12.5px; color: var(--ink-3); }
.hub-status .facts { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.hub-status .facts div { font-size: 12px; color: var(--ink-3); }
.hub-status .facts b { display: block; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hub-grid.sec-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.nv-row.hub-row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr) 70px; }
.sec-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sec-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); align-items: start; }
.sec-item:last-child { border-bottom: 0; }
.sec-item .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.sec-item .mark.ok { background: var(--live-soft); color: var(--live); }
.sec-item .mark.bad { background: var(--stop-soft); color: var(--stop); }
.sec-item h4 { font-size: 14px; font-weight: 650; }
.sec-item p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; max-width: 70ch; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.score span { color: var(--ink-3); font-size: 14px; }
.meter { height: 7px; border-radius: 99px; background: var(--sky-100); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--live); }
.meter i.mid { background: var(--wait); } .meter i.lowv { background: var(--stop); }

@media (max-width: 1100px) {
  .ib, .hub-grid, .hub-grid.sec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nv-row { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 8px; }
  .nv-row .nv-svcs { grid-column: 2 / -1; grid-row: 2; }
  .nv-row .nv-stock { text-align: right; }
  .nv-row form { grid-column: 1 / -1; }
  .nv-row.hub-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .nv-head { display: none; }
  .feed-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .feed-row .feed-msg { grid-column: 2 / -1; grid-row: 2; }
  .hub-status .facts { margin-left: 0; width: 100%; justify-content: space-between; gap: 14px; }
  .ib-actions form { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-pulse, .ib-wait .ring, .ib-got, .feed-row.new { animation: none !important; }
}

/* ── Ketik lebih lega: jarak antar kata tidak lagi rapat ── */
h1, h2, h3, h4, .page-head h1, .auth-title, .section-title { letter-spacing: -.012em; word-spacing: .03em; }
body { letter-spacing: 0; }

/* ── Navigasi bawah (khusus HP) ── */
.bnav { display: none; }
@media (max-width: 860px) {
  .bnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .bnav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 3px; border-radius: 10px;
               font-size: 11px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
  .bnav-item .ic { color: #8EA2B6; }
  .bnav-item.on { color: var(--signal-2); }
  .bnav-item.on .ic { color: var(--signal); }
  .bnav-item:active { background: var(--sky-50); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* ukuran ringkas di HP */
  body { font-size: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .btn, .btn.btn-secondary, .btn.btn-outline { height: 36px; font-size: 13.5px; padding: 0 13px; }
  .btn-lg, .btn.btn-lg { height: 40px; font-size: 14px; }
  .btn-sm, .btn.btn-sm { height: 30px; font-size: 12.5px; }
  .pnav-inner { height: 56px; padding: 0 16px; }
  .pnav-cta { display: none; }
  .topbar { height: 56px; padding: 0 14px; }
  .shell-content { padding: 16px 14px 24px; }
  .page-head { margin-bottom: 14px; gap: 10px; }
  .page-head h1 { font-size: 19px; }
  .page-head p { font-size: 13.5px; }
  .card-header { padding: 12px 14px; }
  .card-body { padding: 14px; }
  .stat-card { padding: 13px 14px; }
  .stat-value { font-size: 20px; }
  .stat-grid { gap: 8px; }
  .topbar .btn-primary .hide-sm, .topbar-right .btn-primary { display: none; }
  .ib-number { padding: 14px 16px; }
  .ib-big { font-size: 24px; }
  .ib-actions .btn { flex: 1 1 auto; }
  .ib-wait { padding: 30px 18px 32px; }

  /* footer lebih ringkas */
  .pfooter .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pfooter .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .row-between { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 860px) {
  .pfooter { padding-top: 28px; }
  .pfooter .footer-grid { gap: 16px 20px; padding-bottom: 20px; }
  .pfooter .footer-brand p { font-size: 13px; margin-top: 8px; }
  .footer-col-title { margin-bottom: 8px; font-size: 13px; }
  .footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .footer-link { font-size: 13px; }
  .footer-bottom { padding: 14px 0; font-size: 12.5px; }
}
.nv-stock-m { display: none; }
@media (max-width: 860px) {
  .nv-row { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 6px; padding: 11px 14px; }
  .nv-row .nv-stock { display: none; }
  .nv-row form { grid-column: 3; grid-row: 1; }
  .nv-row .btn { width: auto; }
  .nv-row .nv-svcs { grid-column: 2 / -1; grid-row: 2; }
  .nv-stock-m { display: inline; }
  .nv-row.hub-row .nv-stock { display: block; }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat-card .stat-sub { font-size: 11.5px; }
  .stat-card .stat-value { margin-top: 4px !important; }
}
/* Menunggu SMS: gelombang sinyal di sekitar ikon pesan */
.radar { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; }
.radar .ic { position: relative; z-index: 1; color: #fff; }
.radar::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--signal); }
.radar i { position: absolute; inset: 12px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: radar 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar i { animation: none; } }
@media (max-width: 860px) {
  .ib-panel-head { padding: 10px 14px; gap: 6px; }
  .ib-panel-head h2 { font-size: 14px; white-space: nowrap; }
  .ib-state { white-space: nowrap; font-size: 12px; padding: 3px 9px; }
  #sound-label { display: none; }
}

/* ══════════ Header publik baru ══════════ */
.pnav { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--signal); color: #fff; display: grid; place-items: center; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
       border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, transform .3s cubic-bezier(.2,.7,.2,1); }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(13,42,69,.06); }
.hdr.hide { transform: translateY(-100%); }
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 18px; transition: height .25s; }
.hdr.scrolled .hdr-in { height: 58px; }
.hdr-brand { text-decoration: none; }
.hdr-links { position: relative; display: flex; gap: 2px; margin: 0 auto; }
.hdr-links a { position: relative; z-index: 1; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 9px; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.hdr-links a:hover, .hdr-links a.on { color: var(--signal-2); }
.hdr-ind { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 9px; background: var(--sky-100); opacity: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1), width .35s cubic-bezier(.2,.7,.2,1), opacity .2s; pointer-events: none; }
.hdr-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; animation: nvPulse 1.8s infinite; }
.hdr-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-links + .hdr-right { margin-left: 0; }
.hbtn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.hbtn:hover { background: var(--sky-50); }
.hbtn:active { transform: scale(.92); }
.hbadge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--stop); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; animation: badgePop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes badgePop { from { transform: scale(0); } }

/* ══════════ Menu geser ══════════ */
.drw { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.drw-bg { position: absolute; inset: 0; background: rgba(13,42,69,.38); opacity: 0; transition: opacity .3s; }
.drw-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(380px, calc(100% - 20px)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
             display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 20px)); transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.drw.open { pointer-events: auto; }
.drw.open .drw-bg { opacity: 1; }
.drw.open .drw-panel { transform: none; }
.drw-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 18px; }
.drw-top a { text-decoration: none; }
.drw-top .hbtn { background: var(--sky-50); }
.drw-user { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.drw-user b { display: block; font-size: 16px; color: var(--ink); }
.drw-user small { display: block; font-size: 13px; color: var(--ink-3); }
.drw-av { width: 46px; height: 46px; border-radius: 50%; background: var(--signal); color: #fff; display: grid; place-items: center; font-size: 19px; font-weight: 800; flex-shrink: 0; }
.bal { position: relative; margin: 6px 14px 8px; padding: 16px 18px; border-radius: 18px; color: #fff; overflow: hidden;
       background: radial-gradient(120% 140% at 100% 0%, #39A3F2 0%, #0B7FDA 45%, #0866B3 100%); box-shadow: 0 12px 26px rgba(11,127,218,.28); }
.bal-txt { position: relative; z-index: 1; display: grid; gap: 4px; justify-items: start; }
.bal-txt span { font-size: 13px; font-weight: 600; opacity: .9; display: inline-flex; gap: 6px; align-items: center; }
.bal-txt b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bal-txt .btn { margin-top: 6px; background: #fff; border-color: #fff; color: var(--signal-2); }
.bal-art { position: absolute; right: 6px; bottom: -4px; width: 120px; height: 96px; }
.bal-coin { animation: floatY 3.2s ease-in-out infinite; transform-origin: center; }
.bal-bubble { animation: floatY 3.2s ease-in-out infinite reverse; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.drw-guest { margin: 6px 14px 8px; padding: 16px; border-radius: 16px; background: var(--sky-50); border: 1px solid var(--sky-100); display: grid; gap: 4px; }
.drw-guest b { font-size: 16px; }
.drw-guest span { font-size: 13.5px; color: var(--ink-3); }
.drw-guest div { display: flex; gap: 8px; margin-top: 8px; }
.drw-nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.drw-label { font-size: 12px; font-weight: 700; color: #98A9BA; padding: 14px 10px 6px; }
.drw-link { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left;
            opacity: 0; transform: translateX(14px); transition: background .15s, opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.drw.open .drw-link { opacity: 1; transform: none; }
.drw-link .ic { color: #7C93A9; flex-shrink: 0; }
.drw-link:hover, .drw-link.on { background: var(--sky-50); color: var(--signal-2); }
.drw-link.on .ic { color: var(--signal); }
.drw-count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--stop); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; padding: 0 6px; }
.drw-out { color: var(--stop); } .drw-out .ic { color: var(--stop); }
body.drw-lock { overflow: hidden; }

/* ══════════ Navigasi bawah + tombol + ══════════ */
@media (max-width: 860px) {
  .bnav { grid-template-columns: 1fr 1fr 76px 1fr 1fr !important; align-items: end; padding-top: 4px; }
  .bnav-item { position: relative; transition: color .2s; }
  .bnav-item.on::before { content: ""; position: absolute; top: -4px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 0 0 3px 3px; background: var(--signal); animation: indIn .35s cubic-bezier(.2,.8,.2,1); }
  @keyframes indIn { from { width: 0; margin-left: 0; } }
  .bnav-item:active .ic { transform: scale(.85); }
  .bnav-item .ic { transition: transform .15s; }
  .bnav-fab { justify-self: center; width: 60px; height: 60px; margin-top: -26px; margin-bottom: 4px; border-radius: 50%; color: #fff; display: grid; place-items: center;
              background: radial-gradient(100% 100% at 30% 20%, #39A3F2, #0B7FDA 60%, #0868B4); border: 4px solid #fff;
              box-shadow: 0 10px 24px rgba(11,127,218,.35); transition: transform .2s; animation: fabIn .6s cubic-bezier(.2,1.5,.4,1) both; }
  .bnav-fab:active { transform: scale(.92); }
  .bnav-fab::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(11,127,218,.35); animation: fabRing 2.6s ease-out infinite; pointer-events: none; }
  @keyframes fabIn { from { transform: scale(.4); opacity: 0; } }
  @keyframes fabRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .hdr-links { display: none; }
  .hdr-in { height: 60px; padding: 0 12px 0 16px; gap: 6px; }
  .hdr.scrolled .hdr-in { height: 56px; }
  .hide-sm { display: none !important; }
  .menu-btn { display: none !important; }
  .shell .side, .side-overlay { display: none !important; }
}
.menu-btn-m { display: none; }
@media (max-width: 860px) { .menu-btn-m { display: grid; } }
@media (prefers-reduced-motion: reduce) {
  .drw-panel, .drw-link, .hdr { transition: none !important; }
  .bal-coin, .bal-bubble, .bnav-fab, .bnav-fab::after, .hdr-live, .hbadge { animation: none !important; }
}
@media (max-width: 860px) { .hdr-right { margin-left: auto !important; } }
/* Halaman isi umum: kepala halaman ringkas */
.pg-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 22px; margin-bottom: 16px; border-radius: 20px; overflow: hidden; position: relative;
           background: radial-gradient(90% 140% at 100% 0%, #DDEEFF, rgba(221,238,255,0) 60%), linear-gradient(180deg, #fff, #F3F8FE); border: 1px solid var(--sky-100); }
.pg-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.pg-hero p { font-size: 14px; color: var(--ink-2); margin-top: 4px; max-width: 56ch; }
.pg-hero .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6BB8F6, #0B7FDA); box-shadow: 0 10px 20px rgba(11,127,218,.25); flex-shrink: 0; animation: floatY 4s ease-in-out infinite; }
.pg-hero .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .pg-hero { padding: 16px; border-radius: 18px; } .pg-hero h1 { font-size: 19px; } .pg-hero .ico { width: 46px; height: 46px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .pg-hero .ico { animation: none; } }
