/* ============================================================
   OTOPAY DESIGN SYSTEM — MIDNIGHT / ELECTRIC BLUE
   ============================================================ */

/* Utility dasar yang WAJIB ada tanpa bantuan Tailwind CDN.
   34 elemen memakai class `hidden` (kotak error, panel mobile,
   field 2FA, dsb). Kalau CDN terblokir/offline, utility itu tidak
   pernah dibuat sehingga elemen tersembunyi malah ikut tampil. */
.hidden { display: none !important; }

@theme {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --color-brand-50:  #f0fdf4;
  --color-brand-100: #dcfce7;
  --color-brand-200: #bbf7d0;
  --color-brand-300: #86efac;
  --color-brand-400: #4ade80;
  --color-brand-500: #22c55e;
  --color-brand-600: #16a34a;
  --color-brand-700: #15803d;
  --color-brand-800: #166534;
  --color-brand-900: #14532d;
  --color-brand-950: #052e16;

  /* Legacy gopay token dipertahankan agar class lama ikut memakai warna brand. */
  --color-gopay-50:  #f0fdf4;
  --color-gopay-100: #dcfce7;
  --color-gopay-200: #bbf7d0;
  --color-gopay-300: #86efac;
  --color-gopay-400: #4ade80;
  --color-gopay-500: #22c55e;
  --color-gopay-600: #16a34a;
  --color-gopay-700: #15803d;
  --color-gopay-800: #166534;
  --color-gopay-900: #14532d;

  --color-ink-50:  #f5f8fc;
  --color-ink-100: #e8eef7;
  --color-ink-200: #ced9e8;
  --color-ink-300: #a6b5c9;
  --color-ink-400: #71839c;
  --color-ink-500: #4b5e78;
  --color-ink-600: #30435b;
  --color-ink-700: #1b2b42;
  --color-ink-800: #101d30;
  --color-ink-900: #0a1424;
  --color-ink-950: #050a14;
}

:root {
  color-scheme: dark;
  --brand: #1683f8;
  --brand-bright: #35a4ff;
  --cyan: #24d7ff;
  --success: #20d98b;
  --danger: #fb7185;
  --warning: #fbbf24;
  --surface: rgba(12, 24, 43, .72);
  --surface-strong: rgba(9, 19, 35, .94);
  --line: rgba(148, 183, 221, .13);
  --line-strong: rgba(71, 164, 255, .27);
  --text: #eef5ff;
  --muted: #91a3bb;
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  max-width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: #050a14;
}
body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--text);
  background: #050a14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select, a, label, p, span, h1, h2, h3, h4, h5, h6,
table, th, td, code, pre, small, strong, em, div { font-family: var(--font-sans); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: #fff; background: rgba(22, 131, 248, .42); }
:focus-visible { outline: 3px solid rgba(71, 164, 255, .42); outline-offset: 3px; }
.mono, code, pre { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.035em; }
.font-black { font-weight: 800 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 700 !important; }
.font-medium { font-weight: 600 !important; }

/* Kompatibilitas class terang yang masih tersisa di halaman lama. */
.text-gray-900, .text-gray-800, .text-gray-700 { color: #14201a !important; }
.text-gray-600, .text-gray-500, .text-gray-400 { color: #5f7168 !important; }
.text-gray-300, .text-gray-200, .text-gray-100 { color: #41524a !important; }
.text-brand-600, .text-brand-700, .text-brand-800 { color: #0b6b34 !important; }
.bg-brand-50, .bg-brand-100 { color: #0b5c30 !important; background: #e7f8ee !important; border-color: #b9e7cd !important; }
.bg-gray-50, .bg-gray-100, .hover\:bg-gray-50:hover, .hover\:bg-gray-100:hover {
  color: #14201a !important; background: #f4f8f5 !important;
}
.border-gray-50, .border-gray-100, .border-gray-200, .border-gray-300 { border-color: #e6ece8 !important; }

/* --- Tema terang: teks & permukaan yang dulu diset untuk latar gelap --- */
.text-white, .hover\:text-white:hover { color: #14201a !important; }
.text-slate-100, .text-slate-200, .text-slate-300 { color: #41524a !important; }
.text-slate-400, .text-slate-500 { color: #5f7067 !important; }
.bg-white\/5, .bg-white\/10, .bg-white\/\[\.02\], .bg-white\/\[\.04\], .hover\:bg-white\/5:hover, .hover\:bg-white\/10:hover {
  background-color: #f4f8f5 !important;
}
.bg-white\/\[\.06\], .bg-white\/\[\.08\] { background-color: #eef4ef !important; }
.border-white\/5, .border-white\/10, .border-white\/15, .border-white\/20,
.hover\:border-white\/10:hover, .hover\:border-white\/20:hover { border-color: #e0e8e3 !important; }
.text-emerald-400, .text-emerald-300, .text-emerald-200, .text-emerald-100 { color: #00874a !important; }
.hover\:text-emerald-300:hover, .hover\:text-emerald-400:hover { color: #008a34 !important; }
.text-cyan-400, .text-cyan-300 { color: #0e7490 !important; }
.text-amber-200, .text-amber-300 { color: #8a6100 !important; }
.text-red-300, .text-red-200, .text-red-400 { color: #b91c1c !important; }

/* ============================================================
   BACKGROUND & LAYOUT
   ============================================================ */
.app-bg {
  background:
    radial-gradient(900px 560px at 8% -8%, rgba(22, 131, 248, .17), transparent 62%),
    radial-gradient(720px 520px at 96% 4%, rgba(36, 215, 255, .09), transparent 64%),
    radial-gradient(900px 650px at 50% 112%, rgba(23, 88, 190, .13), transparent 62%),
    linear-gradient(180deg, #050a14 0%, #07101e 48%, #050a14 100%);
}
.site-container { width: min(calc(100% - 40px), 1180px); min-width: 0; margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 16px; border-radius: 12px; color: #fff;
  background: var(--brand); transition: top .2s ease;
}
.skip-link:focus { top: 14px; }
.grid-bg {
  background-image:
    linear-gradient(rgba(71, 164, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 164, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid-mask {
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 35%, transparent 100%);
}
.section-block { position: relative; padding: 112px 0; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; color: #6db8ff;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-heading {
  max-width: 760px; margin: 0 auto; color: #f5f9ff;
  font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.08;
}
.section-copy { color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* ============================================================
   SURFACES
   ============================================================ */
.glass {
  background: linear-gradient(145deg, rgba(20, 39, 68, .72), rgba(9, 20, 37, .64));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.glass-solid {
  background: linear-gradient(145deg, rgba(11, 24, 43, .96), rgba(6, 14, 27, .96));
  border: 1px solid rgba(148, 183, 221, .14);
  box-shadow: 0 24px 80px -38px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 33, 59, .74), rgba(8, 19, 35, .74));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.card-pad { padding: 22px; }
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 35, 63, .8), rgba(8, 19, 35, .8));
  border: 1px solid var(--line); border-radius: 20px;
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  opacity: .8;
}
.stat p { min-width: 0; overflow-wrap: anywhere; }
.panel-dark {
  background: rgba(3, 10, 20, .52);
  border: 1px solid rgba(148, 183, 221, .1);
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(148, 183, 221, .17), transparent); }

/* ============================================================
   COLORS, BUTTONS & LINKS
   ============================================================ */
.brand-gradient { background: linear-gradient(135deg, #1683f8 0%, #0878e8 52%, #1fc4ef 120%); }
.grad-green { background: linear-gradient(135deg, #1683f8, #24b8f5); }
.brand-text, .grad-text {
  color: transparent;
  background: linear-gradient(100deg, #58aaff 0%, #24d7ff 52%, #7b8cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glow-green, .glow-green-lg { box-shadow: 0 0 0 1px rgba(22, 131, 248, .18), 0 18px 50px -22px rgba(22, 131, 248, .7); }
.glow-green-lg { box-shadow: 0 0 0 1px rgba(22, 131, 248, .24), 0 26px 80px -24px rgba(22, 131, 248, .82); }
.glow-text { text-shadow: 0 0 28px rgba(36, 215, 255, .26); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .72rem 1.1rem;
  border: 1px solid transparent; border-radius: 12px;
  font-size: .84rem; font-weight: 700; line-height: 1.2;
  cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none !important; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #1683f8, #0865df);
  box-shadow: 0 12px 30px -14px rgba(22, 131, 248, .9), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-ghost {
  color: #b9c9dc; background: rgba(255, 255, 255, .045);
  border-color: rgba(148, 183, 221, .15);
}
.btn-danger { color: #fda4af; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .28); }
.text-link { color: #6db8ff; font-weight: 700; }
.text-link:hover { color: #a7d3ff; }

/* ============================================================
   FORMS
   ============================================================ */
.inp {
  width: 100%; min-height: 48px; padding: .7rem .88rem;
  color: #edf5ff; font-size: .875rem; outline: none;
  background: rgba(3, 11, 23, .66);
  border: 1px solid rgba(148, 183, 221, .15);
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.inp::placeholder { color: #53667f; }
.inp:focus {
  background: rgba(9, 27, 51, .78);
  border-color: rgba(71, 164, 255, .72);
  box-shadow: 0 0 0 4px rgba(22, 131, 248, .11);
}
.inp:disabled, .inp[readonly] { opacity: .52; }
.inp-mono { font-family: var(--font-mono); font-size: .82rem; }
textarea.inp { line-height: 1.6; resize: vertical; }
select.inp {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #71839c 50%), linear-gradient(135deg, #71839c 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
select.inp option { color: #eef5ff; background: #0a1424; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--brand); }
.lbl {
  display: block; margin-bottom: .42rem; color: #8fa3bc;
  font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.password-field { position: relative; }
.password-field .inp { padding-right: 3.4rem; }
.password-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  min-width: 40px; min-height: 40px; padding: .45rem;
  color: #71839c; background: transparent; border: 0; border-radius: 9px; cursor: pointer;
}
.password-toggle:hover { color: #b9d9ff; background: rgba(255,255,255,.05); }
.otp-box {
  width: 100%; padding: .8rem 1rem .8rem 1.2rem; text-align: center;
  color: #edf5ff; font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; letter-spacing: .4em;
  background: rgba(3, 11, 23, .7); border: 1px solid rgba(71, 164, 255, .35); border-radius: 14px; outline: none;
}
.otp-box:focus { border-color: #47a4ff; box-shadow: 0 0 0 4px rgba(22, 131, 248, .12); }

/* Tantangan 2FA pada form login — hanya tampil setelah server
 * mengonfirmasi akun memakai Google Authenticator (butuh 2FA). */
.otp-challenge { display: none; }
.otp-challenge.is-open { display: block; }

/* ============================================================
   TABLES, BADGES & NAV
   ============================================================ */
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.tbl { width: 100%; min-width: 640px; font-size: .82rem; border-collapse: collapse; }
.tbl thead th {
  padding: .78rem 1rem; color: #71839c; text-align: left; white-space: nowrap;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .022); border-bottom: 1px solid var(--line);
}
.tbl tbody td { padding: .85rem 1rem; color: #b9c9dc; border-bottom: 1px solid rgba(148, 183, 221, .075); }
.tbl tbody tr { transition: background .18s ease; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; width: fit-content;
  padding: .22rem .6rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .68rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.pill-paid, .pill-ok { color: #55e4aa; background: rgba(32, 217, 139, .1); border-color: rgba(32, 217, 139, .25); }
.pill-pend, .pill-warn { color: #fbd56a; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .25); }
.pill-off { color: #fda4af; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .25); }
.pill-info { color: #7ddcff; background: rgba(36, 215, 255, .1); border-color: rgba(36, 215, 255, .25); }
.pill-brand { color: #75bdff; background: rgba(22, 131, 248, .12); border-color: rgba(71, 164, 255, .28); }
.dot { display: inline-block; flex: 0 0 auto; width: .38rem; height: .38rem; border-radius: 999px; }
.dot-on { background: #20d98b; box-shadow: 0 0 9px rgba(32, 217, 139, .75); }
.dot-off { background: #64748b; }
.dot-warn { background: #fbbf24; box-shadow: 0 0 9px rgba(251, 191, 36, .6); }
/* Header dashboard khusus (tablet/desktop kecil,768–1099px).
   display diatur lewat kelas terpisah karena theme.css punya utilitas
   .hidden { display:none !important } yang mengalahkan kelas Tailwind
   "hidden md:flex" — dan kelas .topbar juga dipakai landing & docs. */
.dashboard-topbar { display: none; }
@media (min-width: 768px) { .dashboard-topbar { display: flex; } }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 20, .76);
  border-bottom: 1px solid rgba(148, 183, 221, .1);
  -webkit-backdrop-filter: blur(24px) saturate(135%); backdrop-filter: blur(24px) saturate(135%);
}
.navbtn {
  padding: .5rem .78rem; color: #8296af; white-space: nowrap;
  font-size: .76rem; font-weight: 700;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.navbtn:hover { color: #e7f1ff; background: rgba(255, 255, 255, .045); }
.navbtn.active {
  color: #7cc2ff; background: rgba(22, 131, 248, .12);
  border-color: rgba(71, 164, 255, .24);
  box-shadow: inset 0 0 18px rgba(22, 131, 248, .04);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav { position: fixed; inset: 0 0 auto; }
.landing-navbar { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 22px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup img { width: auto; height: 34px; max-width: min(190px, 45vw); object-fit: contain; }
/* Di antara 768px sampai ~900px, brand + link + tombol tidak muat.
   Brand dan tombol aksi dikunci agar tidak ikut menyusut, sisa
   ruang dipakai menu navigasi yang bisa digeser horizontal. */
.landing-navbar > .brand-lockup,
.landing-navbar > .desktop-actions { flex: 0 0 auto; }
.landing-navbar > .desktop-nav { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.landing-navbar > .desktop-nav::-webkit-scrollbar { display: none; }
.landing-navbar > .desktop-nav > a { flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  color: #dceaff; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.mobile-nav-panel {
  position: fixed; z-index: 49; top: 66px; right: 16px; left: 16px;
  /* Ponsel landscape bisa setinggi ~320px, jadi panel tetap harus
     bisa di-scroll sampai tombol terakhir. */
  max-height: calc(100svh - 82px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px; opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98);
  background: rgba(7, 17, 32, .97); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 70px -28px rgba(0,0,0,.95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mobile-nav-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; color: #9eb0c7; border-radius: 11px; font-size: .88rem; font-weight: 600; }
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,.045); }
.landing-hero {
  position: relative; overflow: hidden;
  min-height: 100svh; padding: 142px 0 92px;
  display: flex; align-items: center;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); align-items: center; gap: 70px; }
.hero-grid > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
  padding: 7px 12px; color: #9ed0ff; background: rgba(22, 131, 248, .08);
  border: 1px solid rgba(71, 164, 255, .2); border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #24d7ff; box-shadow: 0 0 14px #24d7ff; }
.hero-title {
  max-width: 760px; margin: 0; color: #f4f8ff;
  font-size: clamp(3rem, 6.1vw, 5.35rem); font-weight: 800; line-height: .99; letter-spacing: -.065em;
}
.hero-title .hero-highlight { color: transparent; background: linear-gradient(100deg, #69b3ff, #24d7ff 55%, #7c8cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { max-width: 650px; margin: 26px 0 0; color: #9aacc2; font-size: clamp(1rem, 1.8vw, 1.14rem); line-height: 1.78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .btn { min-height: 52px; padding-inline: 1.35rem; border-radius: 14px; font-size: .92rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: #627791; font-family: var(--font-mono); font-size: .7rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: "✓"; color: #47a4ff; font-family: var(--font-sans); }
.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; perspective: 1200px; }
.hero-glow { position: absolute; width: 470px; height: 470px; border-radius: 50%; background: rgba(22, 131, 248, .18); filter: blur(80px); }
.payment-preview {
  position: relative; width: min(100%, 430px); overflow: hidden;
  background: linear-gradient(150deg, rgba(18, 39, 69, .96), rgba(6, 16, 31, .96));
  border: 1px solid rgba(104, 173, 242, .24); border-radius: 26px;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.95), 0 0 80px -32px rgba(22, 131, 248, .5);
  transform: rotateY(-5deg) rotateX(2deg);
}
.payment-preview::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(71,164,255,.3), transparent 45%, rgba(36,215,255,.16)); filter: blur(12px); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.preview-dots { display: flex; gap: 6px; }
.preview-dots i { width: 7px; height: 7px; border-radius: 50%; background: #31445d; }
.preview-dots i:first-child { background: #fb7185; }.preview-dots i:nth-child(2) { background: #fbbf24; }.preview-dots i:last-child { background: #20d98b; }
.preview-live { display: inline-flex; align-items: center; gap: 6px; color: #55e4aa; font-family: var(--font-mono); font-size: .64rem; }
.preview-body { padding: 26px 24px 24px; }
.preview-label { color: #71839c; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.preview-amount { margin-top: 4px; color: #fff; font-size: clamp(2rem, 5vw, 2.65rem); font-weight: 800; letter-spacing: -.045em; }
.preview-qr-wrap { display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 20px; margin-top: 24px; padding: 16px; background: rgba(2, 8, 17, .42); border: 1px solid var(--line); border-radius: 18px; }
.preview-qr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 132px; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: 12px; }
.preview-qr i { display: block; background: #07111f; border-radius: 1px; }
.preview-qr i:nth-child(3n), .preview-qr i:nth-child(5n) { opacity: 0; }
.preview-qr i:nth-child(7n) { background: #1683f8; }
.preview-meta strong { display: block; color: #dceaff; font-size: .86rem; }
.preview-meta span { display: block; margin-top: 4px; color: #71839c; font-size: .72rem; }
.preview-meta .pill { margin-top: 12px; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: #6f839e; font-size: .7rem; }
.float-status {
  position: absolute; right: -28px; bottom: 54px; display: flex; align-items: center; gap: 11px;
  padding: 12px 15px; color: #dceaff; background: rgba(9, 23, 42, .93);
  border: 1px solid rgba(71, 164, 255, .26); border-radius: 14px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.9); font-size: .75rem; font-weight: 700;
  animation: float-y 5s ease-in-out infinite;
}
.float-status-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #55e4aa; background: rgba(32,217,139,.1); border-radius: 9px; }
.trust-strip { border-block: 1px solid rgba(148,183,221,.1); background: rgba(255,255,255,.016); }
.trust-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 34px; min-height: 82px; color: #8093ab; font-family: var(--font-mono); font-size: .73rem; }
.feature-card { position: relative; height: 100%; padding: 27px; overflow: hidden; border-radius: 22px; }
.feature-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -55px; top: -55px; border-radius: 50%; background: rgba(22, 131, 248, .11); filter: blur(2px); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; color: #7cc2ff; background: rgba(22,131,248,.11); border: 1px solid rgba(71,164,255,.2); border-radius: 14px; font-size: 1.35rem; }
.feature-card h3 { margin: 0; color: #edf5ff; font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin: 10px 0 0; color: #8497b0; font-size: .87rem; line-height: 1.75; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid::before { content: ""; position: absolute; left: 14%; right: 14%; top: 32px; height: 1px; background: linear-gradient(90deg, transparent, rgba(71,164,255,.4), transparent); }
.step-card { position: relative; padding: 28px; background: rgba(8,19,35,.58); border: 1px solid var(--line); border-radius: 22px; }
.step-number { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px; color: #6db8ff; background: #09192e; border: 1px solid rgba(71,164,255,.25); border-radius: 15px; font-family: var(--font-mono); font-weight: 600; }
.step-card h3 { margin: 0; font-size: 1.05rem; }.step-card p { margin: 10px 0 0; color: #8497b0; line-height: 1.75; }
.check-list { display: grid; gap: 13px; margin-top: 28px; }
.check-item { display: flex; align-items: flex-start; gap: 11px; color: #b8c8db; font-size: .87rem; }
.check-item-icon { display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; color: #7cc2ff; background: rgba(22,131,248,.1); border: 1px solid rgba(71,164,255,.2); border-radius: 50%; font-size: .68rem; }
.code-terminal { overflow: hidden; background: #050b15; border: 1px solid rgba(148,183,221,.13); border-radius: 22px; box-shadow: 0 35px 90px -45px rgba(0,0,0,.95); }
.code-terminal-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 17px; border-bottom: 1px solid var(--line); }
.code-terminal-head span:last-child { margin-left: auto; color: #5f738e; font-family: var(--font-mono); font-size: .68rem; }
.code-terminal pre { margin: 0; padding: 22px; color: #b7c7db; font-family: var(--font-mono); font-size: .76rem; line-height: 1.75; overflow-x: auto; }
.code-key { color: #71baff; }.code-string { color: #7de3b1; }.code-number { color: #f6c96b; }
.pricing-card { position: relative; height: 100%; padding: 28px; display: flex; flex-direction: column; border-radius: 24px; }
.pricing-card.popular { background: linear-gradient(155deg, rgba(18,55,103,.92), rgba(7,20,38,.96)); border-color: rgba(71,164,255,.38); box-shadow: 0 30px 80px -42px rgba(22,131,248,.72); }
.pricing-badge { position: absolute; top: 18px; right: 18px; padding: 5px 9px; color: #8bc8ff; background: rgba(22,131,248,.13); border: 1px solid rgba(71,164,255,.25); border-radius: 999px; font-family: var(--font-mono); font-size: .59rem; font-weight: 600; letter-spacing: .09em; }
.pricing-card h3 { margin: 0; font-size: 1.05rem; }
.pricing-price { margin-top: 18px; color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.pricing-price small { color: #71839c; font-size: .72rem; font-weight: 500; letter-spacing: 0; }
.pricing-description { min-height: 44px; margin: 9px 0 0; color: #8194ad; font-size: .8rem; }
.pricing-features { display: grid; gap: 11px; margin: 23px 0; }
.pricing-feature { display: flex; align-items: center; gap: 9px; color: #aabbd0; font-size: .79rem; }
.pricing-feature .yes { color: #55e4aa; }.pricing-feature .no { color: #60738c; }
.pricing-card .btn { width: 100%; margin-top: auto; }
.cta-panel { position: relative; overflow: hidden; padding: 64px 34px; text-align: center; background: linear-gradient(135deg, rgba(20,65,128,.92), rgba(6,19,37,.95)); border: 1px solid rgba(71,164,255,.25); border-radius: 30px; box-shadow: 0 35px 100px -48px rgba(22,131,248,.7); }
.cta-panel::before { content: ""; position: absolute; width: 440px; height: 440px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 1px solid rgba(71,164,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(22,131,248,.035), 0 0 0 140px rgba(22,131,248,.02); }
.cta-panel > * { position: relative; }

/* ============================================================
   LOGIN & REGISTER
   ============================================================ */
.auth-page { overflow-x: hidden; }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: 1fr; }
.auth-form-panel { min-height: 100svh; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 34px 20px; }
.auth-form-wrap { width: min(100%, 460px); }
.auth-mobile-logo { display: flex; justify-content: center; margin-bottom: 38px; }
.auth-mobile-logo img { width: auto; height: 36px; max-width: 180px; object-fit: contain; }
.auth-title { margin: 0; color: #f4f8ff; font-size: clamp(1.9rem, 6vw, 2.55rem); font-weight: 800; line-height: 1.1; }
.auth-subtitle { margin: 11px 0 0; color: #8397b0; font-size: .9rem; }
.auth-subtitle a { color: #6db8ff; font-weight: 700; }
.auth-card { margin-top: 28px; padding: 24px; background: rgba(8,20,38,.7); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 32px 80px -50px rgba(0,0,0,.95); }
.auth-form { display: grid; gap: 18px; }
.auth-terms { margin: 17px 0 0; color: #5d7089; text-align: center; font-size: .7rem; line-height: 1.65; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; color: #60748e; font-family: var(--font-mono); font-size: .66rem; }
.auth-showcase { display: none; position: relative; overflow: hidden; min-height: 100svh; padding: 70px; align-items: center; background: linear-gradient(145deg, #081b35, #050a14 74%); border-right: 1px solid var(--line); }
.auth-showcase::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(71,164,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(71,164,255,.045) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom,#000,transparent 85%); }
.auth-showcase-glow { position: absolute; width: 500px; height: 500px; left: -160px; bottom: -230px; border-radius: 50%; background: rgba(22,131,248,.2); filter: blur(90px); }
.auth-showcase-content { position: relative; z-index: 1; max-width: 540px; }
.auth-showcase-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 30px; background: rgba(22,131,248,.12); border: 1px solid rgba(71,164,255,.24); border-radius: 18px; font-size: 1.5rem; }
.auth-showcase h2 { max-width: 520px; margin: 0; color: #f5f9ff; font-size: clamp(2.35rem, 4.3vw, 4.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -.06em; }
.auth-showcase-copy { max-width: 500px; margin: 23px 0 0; color: #96a9c0; font-size: 1rem; line-height: 1.8; }
.auth-feature-list { display: grid; gap: 14px; margin-top: 34px; }
.auth-feature { display: flex; align-items: center; gap: 11px; color: #b5c5d8; font-size: .86rem; }
.auth-feature span:first-child { display: grid; place-items: center; width: 25px; height: 25px; color: #6db8ff; background: rgba(22,131,248,.1); border: 1px solid rgba(71,164,255,.2); border-radius: 8px; font-size: .72rem; }
.auth-mini-card { position: relative; z-index: 1; width: min(100%, 440px); margin-top: 48px; padding: 18px; background: rgba(4,13,26,.72); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.auth-mini-head { display: flex; align-items: center; justify-content: space-between; color: #7387a1; font-size: .7rem; }
.auth-mini-row { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(148,183,221,.08); border-radius: 14px; }
.auth-mini-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #55e4aa; background: rgba(32,217,139,.09); border-radius: 11px; }
.auth-mini-row strong { display: block; font-size: .8rem; }.auth-mini-row span { display: block; margin-top: 2px; color: #6f839d; font-size: .68rem; }

@media (min-width: 1024px) {
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); }
  .auth-showcase { display: flex; }
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 46px; }
}

/* ============================================================
   DOCS
   ============================================================ */
.docs-page { padding-bottom: 80px; }
.docs-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.docs-base-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 10px 9px 13px; color: #a7c8ef; background: rgba(22,131,248,.08); border: 1px solid rgba(71,164,255,.2); border-radius: 12px; }
.docs-base-label { color: #6d84a2; font-family: var(--font-mono); font-size: .59rem; font-weight: 600; letter-spacing: .1em; }
.docs-base-pill code { min-width: 0; overflow: hidden; color: #c5ddff; font-family: var(--font-mono); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.docs-copy { margin-left: auto; padding: 5px 9px; color: #86c5ff; background: rgba(71,164,255,.08); border: 1px solid rgba(71,164,255,.2); border-radius: 8px; cursor: pointer; font-family: var(--font-mono); font-size: .62rem; font-weight: 600; transition: .2s ease; }
.docs-copy:hover, .docs-copy.is-copied { color: #eaf5ff; background: rgba(22,131,248,.2); border-color: rgba(71,164,255,.42); }
.docs-copy-inline { flex: 0 0 auto; margin-left: 2px; padding: 3px 7px; }
.docs-hero-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #71839c; font-family: var(--font-mono); font-size: .64rem; }
.docs-hero-meta span { padding: 6px 9px; background: rgba(255,255,255,.035); border: 1px solid rgba(148,183,221,.12); border-radius: 999px; }
.docs-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.docs-flow-step { position: relative; min-height: 150px; padding: 18px; background: rgba(8,20,38,.7); border: 1px solid var(--line); border-radius: 17px; }
.docs-flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -17px; z-index: 1; color: #4e8ac8; font-size: 1.1rem; transform: translateY(-50%); }
.docs-flow-number { display: block; margin-bottom: 16px; color: #6db8ff; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; }
.docs-flow-step strong { display: block; color: #e7f1ff; font-size: .82rem; }
.docs-flow-step > span:last-child { display: block; margin-top: 7px; color: #8195ad; font-size: .72rem; line-height: 1.55; }
.docs-callout { padding: 15px 17px; color: #a9bbd0; background: rgba(22,131,248,.07); border: 1px solid rgba(71,164,255,.2); border-left: 3px solid #1683f8; border-radius: 13px; font-size: .78rem; line-height: 1.7; }
.docs-callout strong { color: #dbeeff; }
.docs-callout code, .docs-section > p code, .docs-section li code { color: #91c8ff; }
.docs-callout-warning { background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.22); border-left-color: #fbbf24; }
.docs-callout-warning strong { color: #fde68a; }
.docs-callout-success { background: rgba(32,217,139,.06); border-color: rgba(32,217,139,.2); border-left-color: #20d98b; }
.docs-callout-success strong { color: #8aefc0; }
.docs-callout-info { background: rgba(36,215,255,.06); border-color: rgba(36,215,255,.2); border-left-color: #24d7ff; }
.docs-callout-info strong { color: #a7efff; }
.docs-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.docs-panel { min-width: 0; padding: 18px; background: rgba(8,20,38,.68); border: 1px solid var(--line); border-radius: 16px; }
.docs-panel-label { display: block; margin-bottom: 8px; color: #6d84a2; font-family: var(--font-mono); font-size: .6rem; font-weight: 600; letter-spacing: .1em; }
.docs-inline-code { display: block; overflow: hidden; color: #b9d8ff; font-family: var(--font-mono); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.docs-endpoint-head { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: #8fd0ff; font-family: var(--font-mono); font-size: .78rem; }
.docs-endpoint-head code { overflow-wrap: anywhere; }
.docs-method { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border: 1px solid; border-radius: 8px; font-size: .64rem; font-weight: 600; letter-spacing: .06em; }
.docs-method-post { color: #74c1ff; background: rgba(22,131,248,.12); border-color: rgba(71,164,255,.28); }
.docs-method-get { color: #62e4b0; background: rgba(32,217,139,.1); border-color: rgba(32,217,139,.25); }
.docs-subtitle { margin: 0 0 10px; color: #e7f1ff; font-size: .92rem; font-weight: 700; }
.docs-field-table { margin-top: 20px; }
.docs-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.docs-checklist > div { display: flex; align-items: flex-start; gap: 10px; padding: 13px; background: rgba(32,217,139,.055); border: 1px solid rgba(32,217,139,.16); border-radius: 13px; }
.docs-checklist > div > span { color: #55e4aa; font-weight: 800; }
.docs-checklist p { margin: 0; color: #a9bbd0; font-size: .76rem; line-height: 1.55; }
.docs-checklist code { color: #9dd1ff; }
.docs-navbar { height: 70px; }
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 42px; padding-top: 64px; }
.docs-layout > * { min-width: 0; }
.docs-hero { padding: 70px 0 54px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 800px; margin: 0; color: #f4f8ff; font-size: clamp(2.55rem, 6vw, 4.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.06em; }
.docs-hero p { max-width: 700px; margin: 20px 0 0; color: #8da0b8; font-size: 1.04rem; line-height: 1.8; }
.docs-toc { align-self: start; }
/* Sticky + lebih tinggi dari layar = bagian bawah tidak bisa dijangkau,
   karena elemennya tidak ikut bergerak saat halaman di-scroll. Batasi
   tinggi dan beri scroll sendiri. */
.docs-toc-inner { position: sticky; top: 94px; max-height: calc(100svh - 114px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: rgba(8,19,35,.72); border: 1px solid var(--line); border-radius: 18px; }
.docs-toc-label { margin-bottom: 10px; color: #657995; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.docs-toc a { display: block; padding: 9px 10px; color: #8195af; border-radius: 9px; font-size: .78rem; font-weight: 600; }
.docs-toc a:hover { color: #dbeaff; background: rgba(255,255,255,.04); }
.docs-section { padding: 35px 0; border-bottom: 1px solid var(--line); }
.docs-section:last-child { border-bottom: 0; }
.endpoint-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.endpoint-title h2 { margin: 0; color: #edf5ff; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; overflow-wrap: anywhere; }
.docs-block { margin-top: 20px; overflow: hidden; background: #050b15; border: 1px solid rgba(148,183,221,.12); border-radius: 16px; }
.docs-block-head { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.docs-block-head i { width: 8px; height: 8px; border-radius: 50%; background: #344861; }.docs-block-head i:first-child { background: #fb7185; }.docs-block-head i:nth-child(2) { background: #fbbf24; }.docs-block-head i:nth-child(3) { background: #20d98b; }
.docs-block-head span { margin-left: 6px; color: #60748e; font-family: var(--font-mono); font-size: .65rem; }
.docs-block pre { margin: 0; padding: 20px; color: #b6c6da; font-family: var(--font-mono); font-size: .74rem; line-height: 1.75; overflow-x: auto; }
.docs-note { margin-top: 20px; padding: 18px; color: #9acbff; background: rgba(22,131,248,.08); border: 1px solid rgba(71,164,255,.2); border-radius: 14px; font-size: .84rem; line-height: 1.7; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-shell, .admin-shell { min-height: 100svh; }
.dashboard-stage, .admin-stage { min-height: 100svh; }
.dashboard-sidebar, .admin-sidebar { display: none; }
.dashboard-mobile-header, .admin-mobile-header {
  position: sticky; top: 0; z-index: 35; min-height: 66px;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(5,10,20,.82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
}
.dashboard-main { width: 100%; max-width: 1440px; min-width: 0; margin-inline: auto; padding: 22px 16px 104px; }
.dashboard-tablet-nav { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
.dashboard-tablet-nav::-webkit-scrollbar { display: none; }
.mobile-bottom-nav {
  position: fixed; z-index: 40; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px;
  display: flex; align-items: center; justify-content: space-around; min-height: 64px; padding: 6px;
  background: rgba(7,18,34,.94); border: 1px solid rgba(148,183,221,.15); border-radius: 19px;
  box-shadow: 0 20px 60px -22px rgba(0,0,0,.95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  /* Di layar sempit, label seperti "Transaksi" tidak boleh membungkus
     jadi 2 baris; lebih baik nav-nya yang digeser. */
  overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none;
}
.mobile-bottom-nav::-webkit-scrollbar { display: none; }
.mobile-bottom-btn { flex: 1 0 auto; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #71859f; background: transparent; border: 0; border-radius: 13px; font-size: .61rem; font-weight: 700; white-space: nowrap; }
.mobile-bottom-btn.active { color: #70bcff; background: rgba(22,131,248,.1); }
.mobile-menu-backdrop { position: fixed; z-index: 44; inset: 0; background: rgba(1,5,12,.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.mobile-menu-sheet {
  position: fixed; z-index: 45; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px;
  max-height: 76svh; overflow-y: auto; padding: 16px; background: rgba(7,18,34,.985);
  border: 1px solid rgba(148,183,221,.17); border-radius: 22px; box-shadow: 0 30px 100px -30px rgba(0,0,0,.95);
}
.mobile-menu-title { margin: 0 0 12px; padding: 0 4px; color: #6f849e; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; }
.mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-menu-link { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; color: #9cafC5; background: rgba(255,255,255,.03); border: 1px solid rgba(148,183,221,.08); border-radius: 12px; font-size: .73rem; font-weight: 700; }
.mobile-menu-link.active { color: #83c6ff; background: rgba(22,131,248,.12); border-color: rgba(71,164,255,.25); }
.dashboard-sidebar, .admin-sidebar {
  position: fixed; z-index: 45; inset: 0 auto 0 0; width: 276px; padding: 22px 16px;
  flex-direction: column; background: rgba(5,12,24,.97); border-right: 1px solid var(--line);
  /* Isi sidebar lebih tinggi daripada layar (mis. laptop dengan chrome
     browser, atau ponsel mode landscape). Jadikan panelnya sendiri yang
     scroll supaya menu & tombol keluar tetap bisa dijangkau. */
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px; }
.sidebar-brand img { width: auto; height: 31px; max-width: 165px; object-fit: contain; }
/* Lonceng pengumuman — tombol di header (mobile, tablet, sidebar desktop) */
.bell-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  color: #9cafc5; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(148, 183, 221, .14); border-radius: 12px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.bell-btn:hover { color: #d8edff; background: rgba(22, 131, 248, .12); border-color: rgba(71, 164, 255, .3); }
.bell-btn:focus-visible { outline: 2px solid rgba(71, 164, 255, .65); outline-offset: 2px; }
.bell-dot {
  position: absolute; top: -6px; right: -6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: #ef4444; border: 1.5px solid rgba(5, 10, 20, .95);
  border-radius: 999px; font-size: 10px; font-weight: 900; line-height: 1;
  font-feature-settings: "tnum";
}
@media (max-width: 420px) {
  .bell-btn { width: 36px; height: 36px; }
  .dashboard-mobile-header .pill { max-width: 84px; }
}
.sidebar-label { margin: 28px 10px 9px; color: #53677f; font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-docs-link { min-height: 42px; display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 8px 10px; color: #8bbde9; background: rgba(22,131,248,.07); border: 1px solid rgba(71,164,255,.15); border-radius: 12px; font-size: .76rem; font-weight: 700; transition: .2s ease; }
.sidebar-docs-link:hover { color: #d8edff; background: rgba(22,131,248,.14); border-color: rgba(71,164,255,.3); }
.sidebar-docs-arrow { margin-left: auto; color: #6db8ff; font-size: .9rem; }
.dashboard-docs-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: linear-gradient(135deg, rgba(22,131,248,.1), rgba(36,215,255,.04)); border: 1px solid rgba(71,164,255,.2); border-radius: 17px; }
.dashboard-docs-icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; color: #7cc2ff; background: rgba(22,131,248,.13); border: 1px solid rgba(71,164,255,.25); border-radius: 12px; }
.docs-quick-card { color: inherit; }
.docs-card-icon { color: #8bc8ff; background: rgba(22,131,248,.11); border: 1px solid rgba(71,164,255,.2); }
.docs-menu-link { grid-column: 1 / -1; color: #8bc8ff; background: rgba(22,131,248,.09); border-color: rgba(71,164,255,.2); }
.docs-menu-link > span:last-child { margin-left: auto; }
.dashboard-nav-btn, .admin-nav-btn {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  color: #8195ae; background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font-size: .78rem; font-weight: 700; text-align: left; transition: .2s ease;
}
.dashboard-nav-btn:hover, .admin-nav-btn:hover { color: #dceaff; background: rgba(255,255,255,.04); }
.dashboard-nav-btn.active, .admin-nav-btn.active { color: #81c4ff; background: rgba(22,131,248,.1); border-color: rgba(71,164,255,.2); }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-plan { margin-bottom: 10px; padding: 13px; background: rgba(22,131,248,.07); border: 1px solid rgba(71,164,255,.15); border-radius: 14px; }
.sidebar-plan p { margin: 0; color: #60758f; font-family: var(--font-mono); font-size: .61rem; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-plan strong { display: block; margin-top: 5px; color: #b8d9fa; font-size: .8rem; }
.dashboard-user-card { display: flex; align-items: center; gap: 10px; padding: 8px; }
.dashboard-user-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; color: #07131f; background: linear-gradient(135deg,#47a4ff,#24d7ff); border-radius: 11px; font-weight: 800; }
.dashboard-user-meta { min-width: 0; flex: 1; }.dashboard-user-meta strong, .dashboard-user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user-meta strong { color: #dbeaff; font-size: .74rem; }.dashboard-user-meta span { color: #657a94; font-size: .64rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-main { width: 100%; max-width: 1440px; min-width: 0; margin-inline: auto; padding: 24px 16px 80px; }
.admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-stat-grid > * { min-width: 0; }
.admin-stat-grid p { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
/* Header admin khusus rentang 768–1099px. Display diatur lewat kelas ini
   (bukan utilitas Tailwind "hidden md:flex") karena theme.css punya
   .hidden { display:none !important } yang mengalahkan kelas Tailwind tsb. */
.admin-topbar { display: none; }
@media (min-width: 768px) { .admin-topbar { display: flex; } }
.admin-topbar { position: sticky; top: 0; z-index: 35; min-height: 66px; align-items: center; gap: 14px; padding: 10px 16px; background: rgba(5,10,20,.84); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
/* min-width:0 wajib agar flex item boleh menyusut, overflow-x:auto
   baru benar-benar bekerja saat layar tidak cukup lebar. */
.admin-topbar nav { display: flex; align-items: center; gap: .25rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.admin-topbar nav::-webkit-scrollbar { display: none; }
.admin-menu-panel { position: fixed; z-index: 45; top: 74px; right: 12px; left: 12px; max-height: calc(100svh - 90px); overflow-y: auto; padding: 14px; background: rgba(7,18,34,.985); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 90px -30px rgba(0,0,0,.95); }
.admin-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.admin-menu-item { min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; color: #92a6bd; background: rgba(255,255,255,.03); border: 1px solid rgba(148,183,221,.08); border-radius: 11px; font-size: .73rem; font-weight: 700; }
.admin-menu-item.active { color: #83c6ff; background: rgba(22,131,248,.12); border-color: rgba(71,164,255,.25); }
.admin-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #a8bad0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }

/* ============================================================
   PAYMENT
   ============================================================ */
.payment-page { min-height: 100svh; }
.payment-page #app { min-height: 100svh; padding: 24px 16px; }
.payment-card { width: min(100%, 448px); }
.payment-card .qris-glow { max-width: 268px; margin-inline: auto; }
.payment-card .qris-glow img { width: 100%; max-height: 268px; }
.payment-detail-row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.radar-dot::after { animation-name: pg-ping; }
@keyframes pg-ping { 75%,100% { transform: scale(2.2); opacity: 0; } }

/* ============================================================
   ANIMATION, SCROLLBAR & ACCESSIBILITY
   ============================================================ */
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes count-up { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(22,131,248,.34); } 50% { box-shadow: 0 0 0 16px rgba(22,131,248,0); } }
@keyframes spin-fast { to { transform: rotate(360deg); } }
.fade-in { animation: fade-in .46s cubic-bezier(.22,1,.36,1) both; }
.count-up { animation: count-up .42s cubic-bezier(.22,1,.36,1) both; }
.stagger-1 { animation-delay: .05s; }.stagger-2 { animation-delay: .1s; }.stagger-3 { animation-delay: .15s; }.stagger-4 { animation-delay: .2s; }
.float-y { animation: float-y 5s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 2.4s ease-in-out infinite; }
.spinner { width: 2rem; height: 2rem; border: 3px solid rgba(71,164,255,.16); border-top-color: #47a4ff; border-radius: 50%; animation: spin-fast .7s linear infinite; }
.spinner-sm { display: inline-block; width: .85rem; height: .85rem; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin-fast .7s linear infinite; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(71,164,255,.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(71,164,255,.45); }

@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: rgba(71,164,255,.28); box-shadow: 0 24px 60px -35px rgba(22,131,248,.6); }
  .btn-primary:hover:not(:disabled), .grad-green:hover { background: linear-gradient(135deg, #35a4ff, #1683f8); color: #fff; box-shadow: 0 16px 40px -14px rgba(22,131,248,.9); transform: translateY(-1px); }
  .btn-ghost:hover:not(:disabled) { color: #dbeeff; background: rgba(22,131,248,.09); border-color: rgba(71,164,255,.28); }
  .btn-danger:hover:not(:disabled) { background: rgba(244,63,94,.17); }
}

@media (min-width: 1024px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 46px; }
  .docs-toc nav { display: grid; gap: 4px; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1099px) {
  .site-container { width: min(calc(100% - 48px), 1180px); }
  .dashboard-main, .admin-main { padding: 28px 24px 104px; }
  .dashboard-mobile-header, .admin-mobile-header { display: none; }
  .mobile-bottom-nav { display: none; }
  .admin-topbar { display: flex; }
}

/* Desktop navigation */
@media (min-width: 1100px) {
  .admin-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-sidebar, .admin-sidebar { display: flex; }
  .dashboard-stage, .admin-stage { margin-left: 276px; }
  .dashboard-mobile-header, .dashboard-tablet-nav, .mobile-bottom-nav, .mobile-menu-sheet, .mobile-menu-backdrop,
  .dashboard-stage > .topbar, .admin-mobile-header, .admin-topbar, .admin-menu-panel { display: none !important; }
  .dashboard-main { padding: 34px 34px 60px; }
  .admin-main { padding: 34px 34px 70px; }
}

/* Mobile / small screens */
@media (max-width: 767px) {
  .admin-topbar { display: none !important; }
  .dashboard-tablet-nav, .admin-topbar nav { display: none !important; }
}
@media (max-width: 900px) {
  .docs-two-col { grid-template-columns: minmax(0, 1fr); }
  .docs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-flow-step:nth-child(2)::after { content: "→"; }
  .docs-flow-step:nth-child(2)::after { right: -17px; }
  .docs-flow-step:nth-child(1)::after,
  .docs-flow-step:nth-child(3)::after { content: "↓"; top: auto; right: 50%; bottom: -18px; transform: translateX(50%) rotate(90deg); }
  .docs-checklist { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { text-align: center; }
  .hero-title, .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .payment-preview { transform: none; }
  .float-status { right: max(0px, calc(50% - 265px)); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}
@media (max-width: 767px) {
  .site-container { width: min(calc(100% - 32px), 1180px); }
  .section-block { padding: 78px 0; }
  .section-heading { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .section-copy { font-size: .92rem; }
  .nav-toggle { display: inline-flex; }
  .landing-navbar { min-height: 66px; }
  .landing-nav .desktop-nav, .landing-nav .desktop-actions { display: none; }
  .brand-lockup img { height: 31px; }
  .landing-hero { min-height: auto; padding: 112px 0 68px; }
  .hero-grid { gap: 48px; }
  .hero-badge { margin-bottom: 21px; padding: 6px 10px; font-size: .6rem; }
  .hero-title { font-size: clamp(2.55rem, 13.5vw, 4.1rem); line-height: 1.01; letter-spacing: -.06em; }
  .hero-title .mobile-break { display: none; }
  .hero-subtitle { margin-top: 20px; font-size: .95rem; line-height: 1.72; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-note { display: grid; justify-content: start; max-width: 300px; margin: 17px auto 0; font-size: .64rem; line-height: 1.7; }
  .hero-visual { min-height: 430px; width: 100%; }
  .hero-glow { width: 340px; height: 340px; }
  .payment-preview { width: min(100%, 390px); border-radius: 22px; }
  .preview-body { padding: 21px 18px; }
  .preview-qr-wrap { grid-template-columns: 112px 1fr; gap: 14px; padding: 13px; }
  .preview-qr { width: 104px; gap: 2px; padding: 8px; }
  .float-status { right: -3px; bottom: 12px; }
  .trust-list { justify-content: flex-start; min-height: auto; padding: 20px 0; gap: 13px 20px; }
  .feature-card, .step-card { padding: 22px; }
  .code-terminal pre { padding: 18px; font-size: .68rem; }
  .pricing-card { padding: 24px; }
  .cta-panel { padding: 48px 20px; border-radius: 24px; }
  .auth-form-panel { align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
  .auth-card { padding: 20px; }
  .dashboard-docs-banner { align-items: stretch; flex-direction: column; }
  .dashboard-docs-banner .btn { width: 100%; }
  .docs-navbar { height: 66px; }
  .docs-navbar .docs-badge, .docs-navbar .docs-home-link { display: none !important; }
  .docs-toc nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
  .docs-hero { padding: 50px 0 40px; }
  .docs-layout { padding-top: 24px; }
  /* Di sini TOC jadi satu baris horizontal, jadi batas tinggi
     vertikal dari aturan desktop harus dinolkan. */
  .docs-toc-inner { position: static; display: flex; gap: 4px; max-height: none; overflow-x: auto; padding: 8px; }
  .docs-toc-label { display: none; }
  .docs-toc a { flex: 0 0 auto; white-space: nowrap; }
  .docs-block pre { padding: 16px; font-size: .68rem; }
  .payment-page #app { padding: 14px 12px; }
}
@media (max-width: 420px) {
  .admin-stat-grid p,
  .dashboard-main .stat p { font-size: 1rem !important; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; overflow-wrap: normal; }
  .dashboard-main .stat > div:first-child > span { display: none; }
  .hero-title { font-size: 2.42rem; }
  .hero-visual { min-height: 390px; }
  .preview-amount { font-size: 1.85rem; }
  .preview-qr-wrap { grid-template-columns: 96px 1fr; }
  .preview-qr { width: 90px; }
  .float-status { padding: 10px 12px; }
  .mobile-menu-grid, .admin-menu-grid { grid-template-columns: 1fr; }
  .card-pad { padding: 18px; }
}

@media (max-width: 350px) {
  .auth-form-panel { padding-inline: 12px; }
  .auth-form-wrap, .auth-card, .auth-form { min-width: 0; max-width: 100%; }
  .auth-card { padding: 16px; }
  .auth-title { font-size: 1.8rem; }
  .auth-security { font-size: .58rem; text-align: center; }
  .dashboard-main .grid.grid-cols-2,
  .admin-stat-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .dashboard-main .stat,
  .admin-stat-grid > * { min-width: 0; width: 100%; }
  .dashboard-main .stat p,
  .admin-stat-grid p { white-space: normal; overflow-wrap: anywhere; }
  .mobile-bottom-nav { right: 6px; left: 6px; }
  .mobile-bottom-btn { font-size: .57rem; }
}

@media (max-width: 640px) {
  .docs-flow { grid-template-columns: minmax(0, 1fr); }
  .docs-flow-step::after { content: "↓"; top: auto; right: 50%; bottom: -18px; transform: translateX(50%) rotate(90deg); }
  .docs-flow-step:last-child::after { display: none; }
  .responsive-table,
  .docs-responsive-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
  }
  .responsive-table thead,
  .docs-responsive-table thead { display: none !important; }
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td,
  .docs-responsive-table tbody,
  .docs-responsive-table tr,
  .docs-responsive-table td { display: block !important; width: 100% !important; }
  .responsive-table tr,
  .docs-responsive-table tr {
    padding: 10px 12px;
    border: 0 !important;
    border-bottom: 1px solid rgba(148,183,221,.1) !important;
    background: rgba(255,255,255,.012);
  }
  .responsive-table tbody tr:last-child,
  .docs-responsive-table tbody tr:last-child { border-bottom: 0 !important; }
  .responsive-table td,
  .docs-responsive-table td {
    min-height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0 !important;
    border: 0 !important;
    text-align: right !important;
    overflow-wrap: anywhere;
  }
  .responsive-table td::before,
  .docs-responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: #71839c;
    font-family: var(--font-mono);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
  }
  .responsive-table td > *,
  .docs-responsive-table td > * { min-width: 0; max-width: 100%; }
  .responsive-table td a,
  .docs-responsive-table td a { overflow-wrap: anywhere; }
}

/* ============================================================
   PWA — installed app, safe area, dan UI helper dari assets/pwa.js
   ============================================================ */

/* --- Safe area: notch & gesture bar saat dibuka dari home screen --- */
@supports (padding: env(safe-area-inset-top)) {
  .topbar,
  .dashboard-mobile-header,
  .admin-mobile-header { padding-top: env(safe-area-inset-top); }
  .landing-navbar { min-height: calc(74px + env(safe-area-inset-top)); }
  .landing-hero { padding-top: calc(142px + env(safe-area-inset-top)); }
  /* Sidebar dashboard/admin menempel penuh ke atas & bawah. */
  .dashboard-sidebar, .admin-sidebar {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
}

/* Bila dijalankan sebagai app, beri jeda dari tepi atas. */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .site-container { max-width: min(1440px, 100%); }
  /* Cegah teks dipilih diam-diam saat double tap di layar sentuh. */
  button, .btn, .navbtn, .mobile-bottom-btn { touch-action: manipulation; }

  /* Halaman tanpa header sticky (docs, login, register, pembayaran)
     tetap butuh ruang untuk notch / status bar iOS. */
  body:not(:has(.topbar, .landing-nav, .dashboard-mobile-header, .admin-mobile-header)) {
    padding-top: env(safe-area-inset-top, 0px);
  }
}

/* --- Tombol install yang mengambang --- */
.pwa-install {
  position: fixed; z-index: 41;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 8px 0 16px;
  color: #eaf4ff; font-size: .78rem; font-weight: 700;
  background: rgba(9, 19, 35, .92);
  border: 1px solid rgba(71, 164, 255, .3);
  border-radius: 999px;
  box-shadow: 0 18px 46px -18px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .26s ease, transform .26s ease;
  cursor: pointer;
}
.pwa-install.show { opacity: 1; transform: none; }
.pwa-install-icon {
  display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto;
  color: #fff; background: linear-gradient(140deg, #1683f8, #24d7ff);
  border-radius: 50%;
}
.pwa-install-label { white-space: nowrap; }
.pwa-install-close {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: 0 0 auto;
  color: #7f92ab; font-size: 1.05rem; line-height: 1;
  background: transparent; border: 0; border-radius: 50%;
  transition: color .2s, background .2s;
}
.pwa-install-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* Beri ruang bila ada bottom nav fixed di dashboard. */
.pwa-has-bottom-nav .pwa-install {
  bottom: calc(86px + env(safe-area-inset-bottom));
}

/* --- Banner pembaruan --- */
.pwa-update {
  position: fixed; z-index: 60;
  right: 14px; left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 30rem; margin-inline: auto;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 10px 10px 14px;
  background: rgba(9, 19, 35, .97);
  border: 1px solid rgba(71, 164, 255, .3);
  border-radius: 16px;
  box-shadow: 0 22px 60px -24px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .26s ease, transform .26s ease;
}
.pwa-update.show { opacity: 1; transform: none; }
.pwa-update-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 28px; height: 28px; color: #7cc2ff;
  background: rgba(22, 131, 248, .14);
  border-radius: 9px;
}
.pwa-update-text { flex: 1; min-width: 0; color: #dceaff; font-size: .8rem; font-weight: 600; }
.pwa-update-action {
  flex: 0 0 auto; min-height: 36px; padding: 0 15px;
  color: #fff; background: #1683f8; border: 0; border-radius: 10px;
  font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer;
}
.pwa-update-action[disabled] { opacity: .6; cursor: default; }
.pwa-update-close {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 32px; height: 32px; color: #7f92ab; font-size: 1.15rem; line-height: 1;
  background: transparent; border: 0; border-radius: 50%;
}
.pwa-update-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* --- Strip status offline ---
   Diletakkan penuh di atas, lalu semua header sticky digeser
   supaya tidak saling tumpang tindih. */
body.pwa-offline { --pwa-net-h: 30px; }
.pwa-net {
  position: fixed; z-index: 58; top: 0; right: 0; left: 0;
  min-height: var(--pwa-net-h, 30px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 14px;
  color: #fbd56a; font-size: .72rem; font-weight: 600;
  background: rgba(30, 22, 4, .97);
  border-bottom: 1px solid rgba(251, 191, 36, .3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .24s ease, transform .24s ease;
}
.pwa-net.show { opacity: 1; transform: none; }
.pwa-net-dot {
  width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%;
  background: #fbbf24; box-shadow: 0 0 9px rgba(251, 191, 36, .7);
}
.pwa-net span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pwa-offline .topbar,
body.pwa-offline .dashboard-mobile-header,
body.pwa-offline .admin-mobile-header,
body.pwa-offline .landing-nav { top: var(--pwa-net-h); }

/* --- Sheet panduan iOS --- */
.pwa-sheet-backdrop {
  position: fixed; z-index: 70; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  background: rgba(1, 5, 12, .74);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .22s ease;
}
.pwa-sheet-backdrop.show { opacity: 1; }
.pwa-sheet {
  width: 100%; max-width: 26rem;
  padding: 12px 20px 20px;
  background: rgba(7, 18, 34, .99);
  border: 1px solid rgba(148, 183, 221, .17);
  border-radius: 22px;
  box-shadow: 0 30px 100px -30px rgba(0, 0, 0, .95);
  transform: translateY(18px);
  transition: transform .22s ease;
}
.pwa-sheet-backdrop.show .pwa-sheet { transform: none; }
.pwa-sheet-grip {
  display: block; width: 40px; height: 4px; margin: 0 auto 16px;
  background: rgba(148, 183, 221, .28); border-radius: 999px;
}
.pwa-sheet-title {
  margin: 0 0 12px; color: #f4f8ff;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
}
.pwa-sheet-steps {
  margin: 0 0 18px; padding-left: 20px;
  display: grid; gap: 9px;
  color: #9aacc2; font-size: .85rem; line-height: 1.6;
}
.pwa-sheet-steps b { color: #dceaff; font-weight: 700; }
.pwa-sheet-close {
  width: 100%; min-height: 48px;
  color: #fff; background: #1683f8; border: 1px solid #1683f8;
  border-radius: 13px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 700;
}
.pwa-sheet-close:active { opacity: .82; }

/* --- Gaya cetak: sembunyikan semua chrome PWA --- */
@media print {
  .pwa-install, .pwa-update, .pwa-net, .pwa-sheet-backdrop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   REDESIGN 4.0 — "FRESH GREEN" (terang: putih + hijau)
   ------------------------------------------------------------
   Tema terang untuk SEMUA perangkat, mengganti tema karbon:
     1. material : kanvas putih kehijauan (#f6f9f7), kartu putih
                   bersih dengan bayangan lembut
     2. aksen    : HIJAU #00a63e (+ #22c55e) tunggal & disiplin
     3. hierarki : kicker mono + titik hijau, judul tinta gelap,
                   angka statistik besar
     4. state    : nav aktif blok hijau, pill tint lembut
     5. layout   : ritme spasi lega, kartu hover angkat, rail aksen
   Syntax aman Lightning CSS (tanpa nesting/@property/color-mix/oklch).
   ============================================================ */

/* --- 1. TOKEN ------------------------------------------------------ */
:root {
  color-scheme: light;
  --brand: #00a63e;
  --brand-bright: #16c055;
  --cyan: #0e7490;
  --success: #00a63e;
  --warning: #b45309;
  --danger: #dc2626;

  --text: #14201a;
  --muted: #5f7168;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --line: #e6ece8;
  --line-strong: #b9e7cd;

  --green: #00a63e;
  --green-hi: #16c055;
  --green-soft: #e7f8ee;
  --green-line: #b9e7cd;
  --green-deep: #007a34;
  --mint: #d6f5e3;

  /* alias lama (dipakai sebagian aturan & markup) */
  --ax-blue: #00a63e;
  --ax-violet: #0e7490;
  --ax-cyan: #16c055;
  --ax-mint: #00a63e;
  --acid: #00a63e;
  --acid-hi: #16c055;
  --acid-soft: #e7f8ee;
  --acid-line: #b9e7cd;
  --ember: #b45309;
  --ember-soft: #fef3c7;
  --ember-line: #fcd34d;
  --ink-1: #ffffff;
  --ink-2: #f7faf8;
  --ax-fill: linear-gradient(180deg, #ffffff, #fbfdfc);
  --ax-fill-2: linear-gradient(180deg, #ffffff, #f7faf8);
  --ax-edge: none;
  --ax-edge-soft: none;
  --ax-btn: linear-gradient(180deg, #16c055, #00a63e);
  --ax-line-hair: linear-gradient(90deg, transparent, rgba(0, 166, 62, .55) 26%, rgba(14, 116, 144, .35) 72%, transparent);
  --ax-hatch: none;
  --ax-shadow: 0 1px 2px rgba(16, 40, 28, .05), 0 18px 40px -28px rgba(16, 40, 28, .45);
}

/* --- 2. LATAR TERANG + DOT-GRID HALUS -------------------------------- */
html, body { background-color: #f6f9f7; }
::selection { color: #ffffff; background: rgba(0, 166, 62, .82); }
:focus-visible { outline: 2px solid rgba(0, 166, 62, .8); outline-offset: 3px; }
.app-bg {
  background-color: #f6f9f7;
  background-image:
    radial-gradient(760px 520px at 4% -8%, rgba(0, 166, 62, .1), transparent 62%),
    radial-gradient(700px 520px at 98% 0%, rgba(14, 116, 144, .07), transparent 60%),
    radial-gradient(900px 660px at 50% 112%, rgba(34, 197, 94, .09), transparent 62%),
    radial-gradient(rgba(0, 166, 62, .12) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbf9 0%, #f4f8f5 48%, #f7faf8 100%);
  background-size: auto, auto, auto, 26px 26px, auto;
}
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 166, 62, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 62, .1) 1px, transparent 1px);
  background-size: 52px 52px;
}
.grid-mask { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); }

/* --- 3. TIPOGRAFI & MICRO-LABEL -------------------------------------- */
.section-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; margin-bottom: 18px;
  color: #00794a;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 40, 28, .05);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--green); box-shadow: 0 0 0 3px rgba(0, 166, 62, .16);
}
.section-heading, .hero-title, .auth-title, .docs-hero h1 {
  color: #0f1a14;
  letter-spacing: -.045em;
}
.section-heading { font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.06; }
.hero-subtitle, .section-copy, .docs-hero p { color: var(--muted); }
.hero-subtitle { text-shadow: none; }
.hero-title .hero-highlight {
  color: transparent;
  background-image: linear-gradient(180deg, #16c055, #00a63e 58%, #007a34);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text, .grad-text {
  color: transparent;
  background-image: linear-gradient(100deg, #16c055 0%, #00a63e 52%, #007a34 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mono, code, pre, .lbl { font-family: var(--font-mono); }

/* --- 4. PERMUKAAN: kartu putih, rail aksen hijau ---------------------- */
.card, .stat, .step-card, .feature-card, .docs-panel, .docs-flow-step,
.pricing-card, .auth-card, .docs-toc-inner, .mobile-menu-sheet,
.glass, .glass-solid, .payment-preview, .payment-card, .auth-mini-card {
  border: 1px solid #e6ece8;
  border-radius: 14px;
}
.card, .stat, .step-card, .feature-card, .docs-panel, .docs-flow-step,
.pricing-card {
  background-color: #ffffff;
  background-image: none;
  box-shadow: var(--ax-shadow);
}
.card { position: relative; isolation: isolate; }
.card::before {
  content: ""; position: absolute; left: 18px; top: -1px;
  width: 46px; height: 3px; z-index: -1;
  background: linear-gradient(90deg, var(--green), var(--green-hi));
  border-radius: 0 0 3px 3px;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(0, 166, 62, .05), transparent 42%);
  opacity: 0;
  transition: opacity .3s ease;
}
.stat {
  background-color: #ffffff;
  background-image: none;
  box-shadow: var(--ax-shadow);
  overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 3px; height: auto;
  background: linear-gradient(180deg, var(--green), rgba(0, 166, 62, .18));
}
.stat p { position: relative; }
.stat p:first-child {
  font-family: var(--font-mono); font-size: .64rem !important;
  letter-spacing: .14em; text-transform: uppercase; color: #5f7067 !important;
}
.stat p + p {
  font-size: 1.5rem !important; font-weight: 800 !important;
  letter-spacing: -.03em; color: #0f1a14 !important;
}
.glass {
  background-color: rgba(255, 255, 255, .94);
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(0, 166, 62, .1), transparent 62%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.glass-solid { background-color: #ffffff; background-image: none; }
.docs-panel, .docs-toc-inner, .mobile-menu-sheet, .docs-flow-step {
  background-color: #ffffff;
  background-image: none;
}
.panel-dark { background-color: #f4f8f5; border-color: #e0e8e3; }
.divider { background-image: linear-gradient(90deg, transparent, rgba(0, 166, 62, .3), transparent); }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--green-line);
    box-shadow: 0 2px 4px rgba(16, 40, 28, .06), 0 30px 56px -30px rgba(0, 122, 52, .45);
  }
  .card:hover::after { opacity: 1; }
  .stat:hover { border-color: var(--green-line); box-shadow: 0 2px 4px rgba(16,40,28,.06), 0 26px 50px -32px rgba(0,122,52,.4); }
  .docs-panel:hover, .docs-toc-inner:hover, .step-card:hover, .feature-card:hover { border-color: var(--green-line); }
}

/* --- 5. TOMBOL -------------------------------------------------------- */
.btn {
  position: relative;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  text-shadow: none;
}
.hero-actions .btn { border-radius: 12px; font-size: .78rem; letter-spacing: .08em; }
.btn.btn-primary {
  color: #ffffff !important;
  background-color: #00a63e;
  background-image: var(--ax-btn);
  border-color: #00a63e;
  box-shadow: 0 12px 26px -14px rgba(0, 122, 52, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn.btn-primary::after { display: none; }
.btn.btn-primary:hover:not(:disabled) {
  color: #ffffff !important;
  background-color: #00913a;
  background-image: linear-gradient(180deg, #16c055, #00913a);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(0, 122, 52, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(0, 166, 62, .35); }
.btn-ghost {
  color: #23332b;
  background-color: #ffffff;
  background-image: none;
  border-color: #d7e1db;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(16, 40, 28, .05);
}
.btn-ghost:hover:not(:disabled) {
  color: #00794a;
  background-color: #f2f8f4;
  border-color: var(--green-line);
}
.btn-danger {
  color: #b91c1c;
  background-color: #fef2f2;
  background-image: none;
  border-color: #fecaca;
}
.btn-danger:hover:not(:disabled) { color: #991b1b; background-color: #fee2e2; }
.text-link { color: #00794a; font-weight: 700; }
.text-link:hover { color: #00602c; }
.btn:focus-visible { outline: 2px solid rgba(0, 166, 62, .8); outline-offset: 2px; }

/* --- 6. FORM ------------------------------------------------------------ */
.lbl {
  color: #5f7067;
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
}
.inp {
  background-color: #ffffff;
  background-image: none;
  border-color: #dbe4de;
  border-radius: 10px;
  color: #14201a;
  box-shadow: inset 0 1px 2px rgba(16, 40, 28, .04);
}
.inp:focus {
  background-color: #ffffff;
  border-color: rgba(0, 166, 62, .75);
  box-shadow: 0 0 0 4px rgba(0, 166, 62, .14);
}
select.inp:focus {
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select.inp option { color: #14201a; background: #ffffff; }
.otp-box {
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(16, 40, 28, .04);
}
.otp-box:focus { border-color: rgba(0, 166, 62, .75); box-shadow: 0 0 0 4px rgba(0, 166, 62, .14); }
.password-toggle { border-radius: 8px; }
.password-toggle:hover { color: #00794a; background-color: #e7f8ee; background-image: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--green); }

/* --- 7. NAVIGASI & STATE AKTIF ------------------------------------------- */
.landing-nav.topbar, .topbar {
  background-color: rgba(255, 255, 255, .92);
  border-bottom-color: #e6ece8;
  box-shadow: 0 10px 30px -26px rgba(16, 40, 28, .6);
}
.landing-nav.topbar::after, .topbar::after, .admin-topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; pointer-events: none;
  background-image: var(--ax-line-hair);
}
.navbtn {
  border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.navbtn::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; border-radius: 2px;
  background-color: var(--green);
  transform: translateX(-50%);
  transition: width .28s cubic-bezier(.22, 1, .36, 1);
}
.navbtn:hover {
  color: #00794a;
  background-color: #f2f8f4;
  background-image: none;
  border-color: var(--green-line);
}
.navbtn:hover::after { width: 44%; }
.navbtn.active {
  color: #ffffff !important;
  background-color: #00a63e;
  background-image: none;
  border-color: #00a63e;
  box-shadow: 0 10px 22px -14px rgba(0, 122, 52, .85);
}
.navbtn.active::after { width: 0; }

.dashboard-nav-btn, .admin-nav-btn { position: relative; border-radius: 10px; color: #47574e; }
.dashboard-nav-btn:hover, .admin-nav-btn:hover {
  color: #00794a;
  background-color: #f2f8f4;
  background-image: none;
}
.dashboard-nav-btn.active, .admin-nav-btn.active {
  color: #00794a;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  box-shadow: none;
  font-weight: 700;
}
.dashboard-nav-btn.active::before, .admin-nav-btn.active::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 60%; border-radius: 0 3px 3px 0;
  background-color: var(--green);
  background-image: none;
  transform: translateY(-50%);
}
.dashboard-nav-btn.active .ico, .admin-nav-btn.active .ico { color: var(--green); }
.sidebar-label {
  color: #8b998f;
  font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.sidebar-docs-link {
  background-color: #f2f8f4;
  background-image: none;
  border-color: var(--green-line);
  color: #00794a;
}
.sidebar-docs-link:hover { border-color: rgba(0, 166, 62, .6); color: #00602c; box-shadow: 0 6px 16px -12px rgba(0,122,52,.7); }
.sidebar-docs-arrow { color: var(--green); }
.mobile-bottom-btn.active {
  color: #ffffff !important;
  background-color: #00a63e;
  background-image: none;
  box-shadow: 0 10px 22px -14px rgba(0, 122, 52, .85);
}
.mobile-menu-link.active, .admin-menu-item.active {
  color: #00794a;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  font-weight: 700;
}
.docs-toc a:hover { background-color: #eef7f1; background-image: none; color: #00794a; }
.bell-btn {
  background-color: #ffffff;
  background-image: none;
  border-color: #dbe4de;
  color: #47574e;
  box-shadow: 0 1px 2px rgba(16, 40, 28, .05);
}
.bell-btn:hover {
  color: #00794a;
  background-color: #e7f8ee;
  border-color: var(--green-line);
  box-shadow: 0 8px 20px -14px rgba(0, 122, 52, .8);
}
.bell-btn:focus-visible { outline: 2px solid rgba(0, 166, 62, .7); }
.admin-icon-button {
  background-color: #ffffff;
  background-image: none;
  border-color: #dbe4de;
  color: #47574e;
}
.admin-icon-button:hover { color: #00794a; border-color: var(--green-line); background-color: #f2f8f4; }

/* --- 8. TABEL, PIL, STATUS ------------------------------------------------ */
.tbl thead th {
  color: #00794a;
  background-color: #f4f8f5;
  background-image: none;
  border-bottom: 1px solid var(--green-line);
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
}
.tbl tbody td { color: #47574e; border-bottom-color: #eef2ef; }
.tbl tbody tr:nth-child(even) { background-color: #fbfdfc; }
@media (hover: hover) {
  .tbl tbody tr:hover { background-color: #f0f9f4; background-image: none; }
  .tbl tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--green); }
}
.pill {
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .26rem .55rem;
  box-shadow: none;
  font-weight: 600;
}
.pill-paid, .pill-ok { color: #007a34; background-color: #e7f8ee; background-image: none; border-color: #b9e7cd; }
.pill-pend, .pill-warn { color: #8a6100; background-color: #fef6e0; background-image: none; border-color: #fde2a8; }
.pill-off { color: #b91c1c; background-color: #fef2f2; background-image: none; border-color: #fecaca; }
.pill-info { color: #0e6a86; background-color: #ecfeff; background-image: none; border-color: #bae6ef; }
.pill-brand { color: #ffffff; background-color: #00a63e; background-image: none; border-color: #00a63e; font-weight: 700; }
.dot-on { background-color: #00a63e; box-shadow: 0 0 0 3px rgba(0, 166, 62, .18); }
.dot-warn { background-color: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .18); }

/* --- 9. LANDING ----------------------------------------------------------- */
.landing-hero {
  position: relative; overflow: hidden;
  min-height: auto; padding: 132px 0 96px;
  display: flex; align-items: center;
  background-color: transparent;
  background-image:
    radial-gradient(700px 480px at 4% 10%, rgba(0, 166, 62, .12), transparent 62%),
    radial-gradient(640px 480px at 96% 4%, rgba(14, 116, 144, .08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6f9f7 72%, #f4f8f5 100%);
}
.landing-hero::after {
  content: ""; position: absolute; left: 50%; bottom: -190px;
  width: 900px; height: 340px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(50% 50% at 50% 50%, rgba(0, 166, 62, .18), transparent 70%);
  filter: blur(20px);
  transform: translateX(-50%);
}
.landing-hero .hero-copy > * { animation: ax-rise .85s cubic-bezier(.22, 1, .36, 1) both; }
.landing-hero .hero-copy > *:nth-child(2) { animation-delay: .07s; }
.landing-hero .hero-copy > *:nth-child(3) { animation-delay: .14s; }
.landing-hero .hero-copy > *:nth-child(4) { animation-delay: .21s; }
.landing-hero .hero-copy > *:nth-child(5) { animation-delay: .28s; }
.landing-hero .hero-visual { animation: ax-rise 1s cubic-bezier(.22, 1, .36, 1) .18s both; }
@keyframes ax-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  color: #00794a;
  background-color: #ffffff;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 40, 28, .05);
  font-family: var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-badge-dot {
  background-color: var(--green);
  background-image: none;
  animation: ax-blink 2.6s ease-in-out infinite;
}
@keyframes ax-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(0, 166, 62, .25); } 50% { opacity: .55; box-shadow: 0 0 0 2px rgba(0, 166, 62, .12); } }
.hero-glow { background-color: rgba(0, 166, 62, .16); background-image: none; }
.hero-note { color: #5f7067; font-family: var(--font-mono); letter-spacing: .03em; }
.hero-note span::before { content: "✓"; color: var(--green); font-family: var(--font-sans); }
.payment-preview {
  border: 1px solid #e6ece8;
  background-color: #ffffff;
  background-image: none;
  border-radius: 20px;
  box-shadow: 0 40px 90px -46px rgba(0, 90, 40, .55), 0 0 0 1px rgba(0, 166, 62, .06);
  transform: rotateY(-5deg) rotateX(2deg);
  animation: ax-tilt 11s ease-in-out infinite;
}
@keyframes ax-tilt {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-2deg) rotateX(1deg) translateY(-10px); }
}
.payment-preview::before {
  background-image: none;
  filter: none;
}
.payment-preview::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  background-image: linear-gradient(120deg, transparent 34%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  background-repeat: no-repeat;
  background-size: 260% 100%;
  animation: ax-sheen 7s ease-in-out infinite;
}
@keyframes ax-sheen { 0% { background-position: -60% 0; } 55%, 100% { background-position: 160% 0; } }
.preview-head { border-bottom-color: #eef2ef; background-color: #fbfdfc; }
.preview-dots i { background-color: #d5ddd8; }
.preview-live { color: #00874f; }
.preview-label { color: #5f7067; }
.preview-amount { color: #0f1a14; text-shadow: none; }
.preview-qr-wrap { background-color: #f4f8f5; border-color: #e6ece8; border-radius: 14px; }
.preview-qr i { background-color: #12211a; }
.preview-qr i:nth-child(7n) { background-color: #00a63e; }
.preview-meta strong { color: #0f1a14; }
.preview-meta span { color: #5f7067; }
.preview-footer { border-top-color: #eef2ef; color: #5f7067; }
.float-status {
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 12px;
  color: #23332b;
  box-shadow: 0 20px 44px -24px rgba(0, 90, 40, .5);
  animation: float-y 5s ease-in-out infinite;
}
.float-status-icon { color: #007a34; background-color: #e7f8ee; }
.trust-strip {
  border-color: #e6ece8;
  background-color: #ffffff;
}
.trust-list { color: #5f7067; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.trust-list > span { transition: color .25s ease, transform .25s ease; }
@media (hover: hover) {
  .trust-list > span:hover { color: var(--green); transform: translateY(-2px); }
  .feature-card:hover .feature-icon, .step-card:hover .step-number { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(0, 122, 52, .55); }
}
.feature-card::after { background-color: rgba(0, 166, 62, .1); }
.feature-card h3 { color: #0f1a14; font-size: 1.12rem; letter-spacing: -.02em; }
.feature-card p, .step-card p { color: var(--muted); }
.feature-icon {
  color: #00794a;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}
.steps-grid::before {
  background-image: repeating-linear-gradient(90deg, rgba(0, 166, 62, .75) 0 10px, rgba(14, 116, 144, .4) 10px 20px, transparent 20px 34px);
  animation: ax-dash 1.8s linear infinite;
}
@keyframes ax-dash { to { background-position: 34px 0; } }
.step-card { background-color: #ffffff; border-radius: 14px; }
.step-number {
  color: #007a34;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 12px;
  box-shadow: none;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}
.check-item-icon {
  color: #ffffff;
  background-color: #00a63e;
  background-image: none;
  border-color: #00a63e;
}
.code-terminal {
  border-color: #10231a;
  background-color: #0e1a14;
  border-radius: 14px;
  box-shadow: 0 46px 100px -56px rgba(0, 40, 20, .9);
}
.code-terminal-head {
  background-color: rgba(0, 166, 62, .14);
  background-image: none;
  border-bottom-color: rgba(255, 255, 255, .1);
}
.code-key { color: #86efac; }
.code-string { color: #a7f3d0; }
.code-number { color: #fdba74; }
.pricing-card { background-color: #ffffff; border-radius: 14px; }
.pricing-card.popular {
  border-color: var(--green);
  background-color: #ffffff;
  background-image: linear-gradient(180deg, rgba(0, 166, 62, .05), transparent 46%);
  box-shadow: 0 30px 70px -40px rgba(0, 122, 52, .75), 0 0 0 1px rgba(0, 166, 62, .35);
  transform: translateY(-8px);
}
.pricing-badge {
  color: #ffffff;
  background-color: #00a63e;
  background-image: none;
  border-color: #00a63e;
  border-radius: 999px;
  box-shadow: 0 8px 18px -12px rgba(0, 122, 52, .9);
}
.pricing-price { text-shadow: none; }
.pricing-feature .yes { color: var(--green); }
.cta-panel {
  border-color: var(--green-line);
  background-color: #ecfdf3;
  background-image:
    radial-gradient(70% 120% at 50% -25%, rgba(0, 166, 62, .16), transparent 62%),
    linear-gradient(180deg, #f0fdf4, #e6f9ee);
  border-radius: 20px;
  box-shadow: 0 40px 90px -60px rgba(0, 90, 40, .7);
}
.cta-panel::before { border-color: rgba(0, 166, 62, .25); box-shadow: 0 0 0 70px rgba(0, 166, 62, .05), 0 0 0 140px rgba(14, 116, 144, .04); }
.landing-footer {
  border-top: 1px solid #e6ece8;
  background-color: #ffffff;
  background-image: none;
}

/* --- 10. AUTH -------------------------------------------------------------- */
.auth-card {
  background-color: #ffffff;
  background-image: none;
  box-shadow: 0 40px 90px -60px rgba(0, 60, 30, .7);
  position: relative; isolation: isolate;
}
.auth-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px;
  height: 4px; z-index: -1;
  background: linear-gradient(90deg, var(--green), var(--green-hi), var(--cyan));
  border-radius: 0 0 4px 4px;
}
.auth-title { line-height: 1.1; }
.auth-subtitle { color: var(--muted); }
.auth-subtitle a { color: #00794a; font-weight: 700; background-image: none; -webkit-text-fill-color: currentColor; }
.auth-showcase {
  background-color: #ecfdf3;
  background-image:
    radial-gradient(700px 520px at 8% 12%, rgba(0, 166, 62, .18), transparent 62%),
    radial-gradient(620px 520px at 96% 96%, rgba(14, 116, 144, .12), transparent 64%),
    linear-gradient(145deg, #f0fdf4, #e6f9ee 74%);
  border-right-color: #d3e9dc;
}
.auth-showcase::before {
  background-image:
    linear-gradient(rgba(0, 166, 62, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 166, 62, .12) 1px, transparent 1px);
  background-size: 46px 46px;
}
.auth-showcase::after { background-color: rgba(0, 166, 62, .1); background-image: none; }
.auth-showcase-glow { background-color: rgba(14, 116, 144, .16); background-image: none; }
.auth-showcase-icon {
  color: #00794a;
  background-color: #ffffff;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 12px;
  box-shadow: 0 10px 26px -18px rgba(0, 90, 40, .7);
}
.auth-feature span:first-child {
  color: #00794a;
  background-color: #ffffff;
  background-image: none;
  border-color: var(--green-line);
}
.auth-mini-card {
  background-color: rgba(255, 255, 255, .92);
  background-image: none;
  border-color: #d3e9dc;
  border-radius: 12px;
}
.auth-mini-row { background-color: #f4f8f5; border-color: #e6ece8; border-radius: 10px; }
.auth-security, .auth-terms { color: #5f7067; }

/* --- 11. DASHBOARD & ADMIN --------------------------------------------------- */
.dashboard-sidebar, .admin-sidebar {
  border-right: 1px solid #e6ece8;
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 14px 0 40px -40px rgba(16, 40, 28, .9);
}
.sidebar-plan {
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 10px;
}
.sidebar-plan p { color: #5f7067; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; }
.sidebar-plan strong { color: #00794a; }
.dashboard-user-card, .sidebar-footer { border-color: #eef2ef; }
.dashboard-user-avatar {
  background-color: #00a63e;
  background-image: linear-gradient(135deg, #16c055, #00a63e 60%, #007a34);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 22px -14px rgba(0, 122, 52, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.dashboard-user-meta strong { color: #0f1a14; }
.dashboard-user-meta span { color: #5f7067; }
.dashboard-docs-banner {
  background-color: #f2f8f4;
  background-image: none;
  border-color: var(--green-line);
  border-radius: 14px;
  box-shadow: none;
}
.dashboard-docs-icon {
  color: #00794a;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
}
.docs-card-icon, .docs-menu-link {
  color: #00794a;
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
}
.dashboard-mobile-header, .admin-mobile-header, .admin-topbar {
  background-color: rgba(255, 255, 255, .95);
  border-bottom-color: #e6ece8;
}
.admin-menu-panel {
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 14px;
  box-shadow: 0 30px 70px -40px rgba(0, 60, 30, .8);
}
.admin-menu-item { background-color: #f7faf8; border-color: #e6ece8; border-radius: 10px; color: #47574e; }
.mobile-bottom-nav {
  background-color: rgba(255, 255, 255, .97);
  border-color: #e6ece8;
  box-shadow: 0 -14px 40px -30px rgba(16, 40, 28, .9);
}
.mobile-menu-sheet { background-color: #ffffff; border-color: var(--green-line); }
.mobile-menu-link { background-color: #f7faf8; border-color: #e6ece8; border-radius: 10px; color: #47574e; }
.mobile-menu-title { color: #8b998f; }
.mobile-menu-backdrop { background-color: rgba(15, 28, 22, .45); }
.brand-gradient { background-color: #00a63e; background-image: linear-gradient(135deg, #16c055, #00a63e 60%, #007a34); }
.grad-green { background-color: #00a63e; background-image: linear-gradient(135deg, #86efac, #22c55e); color: #04301c; }
.glow-green, .glow-green-lg { box-shadow: 0 10px 26px -16px rgba(0, 122, 52, .7); }
.glow-green-lg { box-shadow: 0 18px 44px -20px rgba(0, 122, 52, .75); }
.glow-text { text-shadow: none; }
.spinner { border-color: rgba(0, 166, 62, .18); border-top-color: #00a63e; }

/* --- 12. DOCS & PAYMENT -------------------------------------------------------- */
.docs-hero { border-bottom-color: var(--green-line); }
.docs-hero-meta span {
  background-color: #f4f8f5;
  border-color: #e0e8e3;
  color: #5f7067;
  border-radius: 6px;
  font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.docs-flow-step { border-radius: 10px; }
.docs-flow-step:not(:last-child)::after { color: rgba(0, 166, 62, .6); }
.docs-flow-number {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 6px;
  background-color: #e7f8ee;
  background-image: none;
  border: 1px solid var(--green-line);
  color: #00794a;
  font-family: var(--font-mono); letter-spacing: .1em;
}
.docs-method { border-radius: 6px; box-shadow: none; font-family: var(--font-mono); letter-spacing: .1em; }
.docs-method-post { color: #ffffff; background-color: #00a63e; border-color: #00a63e; font-weight: 700; }
.docs-method-get { color: #007a34; background-color: #e7f8ee; border-color: var(--green-line); }
.docs-block-head {
  background-color: #12211a;
  background-image: none;
  border-bottom-color: rgba(255, 255, 255, .09);
}
.docs-copy {
  background-color: #e7f8ee;
  background-image: none;
  border-color: var(--green-line);
  color: #00794a;
  border-radius: 6px;
}
.docs-copy:hover, .docs-copy.is-copied { color: #ffffff; background-color: #00a63e; border-color: #00a63e; }
.docs-copy.is-copied { box-shadow: 0 0 0 3px rgba(0, 166, 62, .28); }
.docs-base-pill {
  background-color: #f4f8f5;
  background-image: none;
  border-color: #e0e8e3;
  border-radius: 8px;
  color: #47574e;
}
.docs-base-label { color: #8b998f; }
.docs-base-pill code { color: #00794a; }
.docs-callout {
  background-color: #f0fdf4;
  background-image: none;
  border-color: #b9e7cd;
  border-left: 3px solid var(--green);
  border-radius: 8px;
}
.docs-callout code, .docs-section > p code, .docs-section li code { color: #00794a; }
.docs-note {
  background-color: #f0fdf4;
  background-image: none;
  border-color: #b9e7cd;
  border-radius: 8px;
  color: #47574e;
}
.docs-toc-inner { background-color: #ffffff; border-radius: 12px; }
.docs-toc-label { color: #8b998f; }
.docs-section { border-bottom-color: #eef2ef; }
.payment-card {
  background-color: #ffffff;
  background-image: none;
  box-shadow: 0 40px 90px -60px rgba(0, 60, 30, .8);
}
/* Teks & ikon tombol install: kartu putih tapi teksnya harus TINT GELAP,
   kalau tidak, label "Install" putih-di-atas-putih jadi tak terlihat. */
.pwa-install {
  color: #0f1a14;
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 12px;
  box-shadow: 0 18px 46px -22px rgba(16, 40, 28, .55);
}
.pwa-install-label { color: #0f1a14; }
.pwa-install-icon {
  color: #ffffff;
  background-color: #00a63e;
  background-image: none;
  border-radius: 8px;
}
.pwa-install-close { color: #6b7d73; }
.pwa-install-close:hover { color: #00794a; background-color: rgba(0, 166, 62, .12); background-image: none; }
.pwa-update {
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(16, 40, 28, .6);
}
.pwa-update-icon { color: #00794a; background-color: #e7f8ee; }
.pwa-update-text { color: #23332b; }
.pwa-update-action {
  color: #ffffff;
  background-color: #00a63e;
  background-image: none;
  border-radius: 8px;
}
.pwa-update-close { color: #6b7d73; }
.pwa-update-close:hover { color: #00794a; background-color: rgba(0, 166, 62, .12); background-image: none; }
.pwa-sheet {
  background-color: #ffffff;
  border-color: var(--green-line);
  border-radius: 16px;
}
.pwa-sheet-grip { background-color: rgba(0, 166, 62, .45); }
.pwa-sheet-title { color: #0f1a14; }
.pwa-sheet-steps { color: var(--muted); }
.pwa-sheet-steps b { color: #00794a; }
.pwa-sheet-close {
  color: #ffffff;
  background-color: #00a63e;
  background-image: none;
  border-color: #00a63e;
  border-radius: 8px;
}

/* --- 13. WARISAN: sisa aturan biru/gelap lama ------------------------------ */
.skip-link { color: #ffffff; background-color: #00a63e; background-image: none; }
.grad-green:hover { color: #04301c; background-color: #22c55e; background-image: linear-gradient(135deg, #bbf7d0, #4ade80); transform: translateY(-1px); }
.docs-block { background-color: #0e1a14; border-color: #10231a; }
.docs-block pre { color: #b6c6da; }
.docs-block-head span { color: #8b998f; }
.docs-endpoint-head { color: #0b6b34; }
.docs-endpoint-head code { color: #0b6b34; }
.docs-section li, .docs-checklist li, .docs-section p { color: #47574e; }
.pricing-description { color: #5f7168; }
.pricing-feature { color: #41524a; }
.docs-callout-info { background-color: #ecfeff; background-image: none; border-color: #bae6ef; border-left-color: #0e7490; }
.docs-callout-warning { background-color: #fffbeb; background-image: none; border-color: #fde2a8; border-left-color: #d97706; }
.docs-callout-success { background-color: #f0fdf4; background-image: none; border-color: #b9e7cd; border-left-color: #00a63e; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 166, 62, .3); }
  50% { box-shadow: 0 0 0 14px rgba(0, 166, 62, 0); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 166, 62, .3); }
  50% { box-shadow: 0 0 0 14px rgba(0, 166, 62, 0); }
}
/* teks putih di atas permukaan hijau harus tetap putih */
.btn.btn-primary.text-white, .navbtn.active.text-white, .pill-brand.text-white,
.grad-green.text-white, .brand-gradient.text-white, .step-number.text-white,
.check-item-icon.text-white, .mobile-bottom-btn.active.text-white,
.sidebar-docs-link.text-white, .admin-menu-item.active.text-white,
.sidebar-plan.text-white { color: #ffffff !important; }

/* --- 14. GERAK & SCROLLBAR ---------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--rd, 0s);
}
.reveal-init.reveal-in { opacity: 1; transform: translateY(0); }
::-webkit-scrollbar-track { background-color: #f1f5f2; background-image: none; }
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 166, 62, .45);
  background-image: linear-gradient(180deg, rgba(0, 166, 62, .8), rgba(14, 116, 144, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  border: 2px solid #f1f5f2;
}
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, #16c055, #0e7490); }

/* --- 15. JUDUL SEKSI: bar aksen hijau ---------------------------------------- */
.dashboard-main h2, .admin-main h2, .admin-main h1 {
  color: #0f1a14;
  letter-spacing: -.04em;
}
.dashboard-main h2::after, .admin-main h2::after, .admin-main h1::after {
  content: ""; display: block;
  width: 46px; height: 4px; margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-hi));
}
.dashboard-main h2 > *, .admin-main h2 > *, .admin-main h1 > * { -webkit-text-fill-color: currentColor; }
.dashboard-main .glass {
  background-color: rgba(255, 255, 255, .96);
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 166, 62, .14), transparent 62%),
    radial-gradient(90% 120% at 100% 0%, rgba(14, 116, 144, .1), transparent 62%);
  border-color: #d3e9dc;
}
.dashboard-main .grad-green, .admin-main .grad-green {
  box-shadow: 0 12px 26px -18px rgba(0, 122, 52, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* --- 16. LAYOUT: ritme & kepadatan ------------------------------------------- */
@media (min-width: 1100px) {
  .section-block { padding: 116px 0; }
  .hero-grid { gap: 78px; }
}
@media (min-width: 1024px) {
  .dashboard-main, .admin-main { padding: 30px 30px 60px; }
  .dashboard-sidebar, .admin-sidebar { width: 264px; }
}

/* --- 17. RESPONSIF: ponsel, tablet, desktop ------------------------------------ */
@media (max-width: 1099px) {
  .section-block { padding: 88px 0; }
}
@media (max-width: 900px) {
  .payment-preview { animation: none; transform: none; }
  .landing-hero::after { width: 620px; }
  .steps-grid::before { animation: none; }
}
@media (max-width: 767px) {
  .section-block { padding: 72px 0; }
  .pricing-card.popular { transform: none; }
  .landing-hero { padding: 108px 0 64px; }
  .landing-hero .hero-copy > *, .landing-hero .hero-visual { animation-duration: .65s; }
  .topbar, .landing-nav.topbar, .dashboard-mobile-header, .admin-mobile-header, .admin-topbar {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .btn { min-height: 46px; font-size: .72rem; }
  .hero-actions .btn { min-height: 50px; width: 100%; }
  .hero-actions { gap: 10px; }
  .card, .stat, .step-card, .feature-card, .pricing-card, .glass, .docs-panel { border-radius: 12px; }
  .tbl thead th { font-size: .58rem; letter-spacing: .1em; }
  .section-kicker { font-size: .62rem; letter-spacing: .14em; }
  .stat p + p { font-size: 1.3rem !important; }
  .dashboard-main h2::after, .admin-main h2::after, .admin-main h1::after { width: 36px; }
}
@media (max-width: 480px) {
  .site-container { width: calc(100% - 28px); }
  .section-block { padding: 60px 0; }
  .btn { letter-spacing: .06em; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 2.8rem); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .dashboard-main, .admin-main { padding: 26px 22px 48px; }
}
@media (hover: none) {
  .card:hover, .stat:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .payment-preview, .steps-grid::before, .hero-badge-dot, .float-status { animation: none; }
}

/* --- 19. SISA ATURAN LAMA: teks yang dulu diset untuk latar gelap -------- */
.navbtn { color: #47574e; }
.pricing-price { color: #0f1a14; }
.pricing-price small { color: #5f7067; }
.check-item { color: #41524a; }
.docs-flow-step strong { color: #0f1a14; }
.docs-subtitle { color: #5f7168; }
.docs-callout-warning strong { color: #8a6100; }
.docs-callout-success strong { color: #047857; }
.docs-callout-info strong { color: #0e6a86; }
.docs-checklist code { color: #00794a; }
.docs-inline-code { color: #00794a; }
.docs-note strong, .docs-callout strong { color: #046b3a; }
.pill-brand { color: #ffffff !important; }
.text-brand-50, .text-brand-100, .text-brand-200, .text-brand-300 { color: #00854a !important; }
.text-zinc-300, .text-zinc-400, .text-zinc-500, .text-neutral-400, .text-stone-400 { color: #5f7067 !important; }
.text-rose-300, .text-rose-200 { color: #be123c !important; }
.docs-callout { color: #47574e; }
.docs-base-label, .docs-toc-label { color: #5f7168; }
.docs-toc a { color: #47574e; }
.docs-toc a:hover { color: #00794a; }
.docs-flow-step p, .docs-flow-step span:not(.docs-flow-number) { color: #5f7168; }

/* ============================================================
   FRESH GREEN — PERBAIKAN KONTRAS
   ------------------------------------------------------------
   Teks dari tema gelap lama yang tidak pernah diganti warnanya
   saat background diubah jadi terang. Akibatnya putih-di-atas-
   putih (tak terlihat) atau biru-abu yang menyimpang dari tema.
   Diambil dari audit kontras otomatis: setiap warna di bawah
   ini minimal 4.5:1 di atas background barunya.
   ============================================================ */

/* Panel kiri login & register (background hijau muda). */
.auth-showcase h2 { color: #0a1c12; }
.auth-showcase-copy { color: #4a5b52; }
.auth-feature { color: #23332b; }
.auth-feature span:first-child { color: #00794a; }
.auth-mini-head { color: #5f7067; }
.auth-mini-row span { color: #5f7067; }
.auth-mini-icon { color: #00794a; background-color: #e7f8ee; }

/* Input kode 2FA: dulu teks terang di kotak gelap, sekarang kartu putih. */
.otp-box { color: #0f1a14; }
.otp-box::placeholder { color: #8b998f; }

/* Sisa warna biru tua tema lama. */
.password-toggle { color: #5f7067; }
.docs-panel-label { color: #5f7067; }
.code-terminal-head span:last-child { color: #9db3a8; }

/* Utility Tailwind yang dipakai luas di admin & dashboard. */
.text-slate-400, .text-slate-500 { color: #5f7067 !important; }

/* Warna muted versi inline — dipakai ratusan tempat di admin.php,
   dashboard.php, dan app.js.php. Dinonaktifkan lewat atribut supaya
   tidak perlu menyentuh satu per satu, dan otomatis menangkap
   penulisan baru. */
[style*="color:#71887d"] { color: #5f7067 !important; }

/* Icon di dalam baris mini card (harus menang dari .auth-mini-row span). */
.auth-mini-row .auth-mini-icon { color: #00794a; }

/* ============================================================
   20. LEDGER / TERMINAL — TATA LAYAR KECIL
   ============================================================
   Arah desain yang dipilih: bukan kartu bulat ala template,
   tapi "buku kas / struk digital":
     - sudut tegas (4-8px), garis rambut & garis putus-putus
       seperti perforasi struk,
     - semua label huruf kapital monospace dengan letter-spacing lebar,
     - semua angka pakai tabular-nums sehingga kolom rapi seperti
       terminal pembayaran,
     - aksen hijau dipakai sebagai "kursor" terminal.
   Berlaku untuk semua halaman: dashboard, admin, landing,
   login/register, docs, dan halaman pembayaran.
   ============================================================ */

/* --- 20.1 Primitif bersama: tablet + ponsel ------------------ */
@media (max-width: 1099px) {
  /* Angka rapi kolomnya */
  .tnum, .mono, .stat, .pricing-price, .preview-amount, .payment-card .tnum {
    font-variant-numeric: tabular-nums;
  }

  /* Kartu: sudut tegas, bayangan dilepas (tampilan datar ala struk) */
  .card, .stat, .step-card, .feature-card, .pricing-card, .docs-panel,
  .glass, .glass-solid, .payment-card, .auth-card, .admin-menu-panel,
  .mobile-menu-sheet, .docs-flow-step {
    border-radius: 8px;
    box-shadow: none;
  }
  .card, .stat, .step-card, .feature-card, .pricing-card, .docs-panel,
  .payment-card, .glass { border-color: #e2e9e4; }

  /* Tombol: bentuk terminal */
  .btn {
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: none;
  }

  /* Label mikro ala struk */
  .lbl, .section-kicker {
    font-family: var(--font-mono);
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  /* Judul bagian: gaya prompt terminal */
  .dashboard-main h2, .admin-main h2, .admin-main h1 {
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .dashboard-main h2::before, .admin-main h2::before, .admin-main h1::before {
    content: "// ";
    color: #00a63e;
    letter-spacing: 0;
  }
}

/* --- 20.2 Krom mobile: header, tab bar, menu (ponsel) -------- */
@media (max-width: 767px) {
  .dashboard-mobile-header, .admin-mobile-header {
    min-height: 54px;
    gap: 10px;
    padding: 8px 14px;
    background-color: #ffffff;
    border-bottom: 1px dashed #cfddd5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .dashboard-mobile-header > div, .admin-mobile-header > div {
    position: relative;
    padding-left: 13px;
  }
  .dashboard-mobile-header > div::before, .admin-mobile-header > div::before {
    content: "";
    position: absolute; left: 0; top: 50%;
    width: 7px; height: 7px; margin-top: -3.5px;
    background: #00a63e;
    animation: ax-blink 1.7s ease-in-out infinite;
  }
  .dashboard-mobile-header > div > p:first-child,
  .admin-mobile-header > div > p:first-child {
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #0f1a14 !important;
  }
  .dashboard-mobile-header > div > p:last-child,
  .admin-mobile-header > div > p:last-child {
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5f7067 !important;
  }
  .dashboard-mobile-header .pill {
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .53rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .bell-btn {
    width: 32px; height: 32px;
    border-radius: 6px;
    color: #47574e;
    background-color: #f7faf8;
    border-color: #dfe7e2;
  }
  .admin-icon-button { border-radius: 6px; }

  /* Tab bar bawah: jadi pita terminal full-width, tanpa pil melayang */
  .mobile-bottom-nav {
    right: 0; left: 0; bottom: 0;
    min-height: 56px;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #ffffff;
    border: 0;
    border-top: 1px solid #cfddd5;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .mobile-bottom-btn {
    min-height: 56px;
    gap: 4px;
    border-radius: 0;
    position: relative;
    color: #7b8a82;
    font-family: var(--font-mono);
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  /* !important: aturan lama memaksa teks putih + blok hijau solid;
     di layout ledger ini aktif = hijau muda, jadi teksnya wajib gelap. */
  .mobile-bottom-btn.active {
    color: #00794a !important;
    background-color: #eafaf1;
    background-image: none;
    box-shadow: none;
  }
  .mobile-bottom-btn.active::before {
    content: "";
    position: absolute; top: 0; left: 4px; right: 4px;
    height: 2px;
    background: #00a63e;
  }

  /* Sheet menu: daftar baris putus-putus ala struk */
  .mobile-menu-sheet {
    right: 0; left: 0; bottom: 0;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    max-height: 80svh;
  }
  .mobile-menu-title {
    color: #5f7067;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .mobile-menu-title::before { content: "> "; color: #00a63e; }
  .mobile-menu-grid { gap: 6px; }
  .mobile-menu-link {
    min-height: 44px;
    border-radius: 6px;
    border: 1px dashed #dfe7e2;
    background-color: #ffffff;
    color: #47574e;
    font-family: var(--font-mono);
    font-size: .67rem;
    letter-spacing: .05em;
  }
  .mobile-menu-link.active {
    color: #00794a;
    background-color: #eafaf1;
    border-style: solid;
    border-color: #8fdcb4;
  }

  .dashboard-main, .admin-main { padding: 18px 14px 118px; }
}

/* --- 20.3 Konten dashboard & admin (ponsel) ------------------ */
@media (max-width: 767px) {
  /* Statistik: baris buku kas, label mono + angka tabular */
  .stat { padding: 13px 14px !important; }
  .stat p:first-child {
    font-family: var(--font-mono) !important;
    font-size: .55rem !important;
    letter-spacing: .14em !important;
    text-transform: uppercase;
  }
  .stat p + p {
    font-family: var(--font-mono);
    font-size: 1.35rem !important;
    font-weight: 700;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }
  .admin-stat-grid { gap: 8px; }

  /* Kartu aksi cepat */
  .card-pad { padding: 14px; }
  .dashboard-main .card-pad p.font-bold { font-size: .8rem; }

  /* Tabel: baris struk dengan label mono di kiri */
  .responsive-table tr, .docs-responsive-table tr {
    padding: 9px 12px;
    background-color: #ffffff;
    border-bottom: 1px dashed #d9e4de !important;
  }
  .responsive-table td, .docs-responsive-table td {
    padding: 6px 0 !important;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: .72rem;
  }
  .responsive-table td::before, .docs-responsive-table td::before {
    color: #5f7067;
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .1em;
  }

  /* Banner pengingat: garis penanda kiri, bukan kartu melayang */
  .dashboard-main .glass, .admin-main .glass { border-radius: 6px; }
}

/* --- 20.4 Landing (ponsel) ---------------------------------- */
@media (max-width: 767px) {
  .landing-navbar {
    min-height: 58px;
    background-color: #ffffff;
    border-bottom: 1px dashed #cfddd5;
  }
  .hero-badge {
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .hero-title { letter-spacing: -.05em; }
  .hero-note, .trust-list {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .step-card { border: 1px solid #e2e9e4; border-radius: 8px; }
  .step-number {
    border-radius: 4px;
    font-family: var(--font-mono);
    letter-spacing: .02em;
  }
  .pricing-card { border: 1px solid #e2e9e4; border-radius: 8px; }
  .pricing-feature {
    padding: 9px 0;
    border-bottom: 1px dashed #e2e9e4;
    font-family: var(--font-mono);
    font-size: .72rem;
  }
  .pricing-features > *:last-child { border-bottom: 0; }
  .hero-actions .btn { border-radius: 6px; }
  .pricing-price {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
  }
  .payment-preview { border-radius: 12px; }
  .preview-head, .preview-footer { border-bottom-style: dashed; }
}

/* --- 20.5 Login & register (ponsel) -------------------------- */
@media (max-width: 767px) {
  .auth-card { padding: 20px 18px; border-radius: 10px; }
  .auth-card::before { left: 18px; right: 18px; }
  .auth-mobile-logo { margin-bottom: 26px; }
  .auth-title { letter-spacing: -.04em; }
  .inp { border-radius: 6px; }
}

/* --- 20.6 Dokumentasi (ponsel) ------------------------------- */
@media (max-width: 767px) {
  .docs-panel, .code-terminal, .docs-block { border-radius: 8px; }
  .docs-copy {
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

/* --- 20.7 Halaman pembayaran (ponsel) ------------------------ */
@media (max-width: 767px) {
  .payment-card { border-radius: 12px; }
  .payment-card .pill { border-radius: 4px; font-family: var(--font-mono); letter-spacing: .1em; }
  /* Nominal tagihan & baris info dibaca seperti struk */
  .payment-card .tnum, .payment-card .text-3xl, .payment-card .text-4xl {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
  }
}

/* --- 20.8 Tablet (768-1099): nav pil jadi segmen terminal ---- */
@media (min-width: 768px) and (max-width: 1099px) {
  .topbar, .dashboard-topbar, .admin-topbar {
    background-color: #ffffff;
    border-bottom: 1px dashed #cfddd5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .navbtn {
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5f7067;
  }
  .navbtn.active {
    color: #00794a !important;
    background-color: #eafaf1;
    background-image: none;
    border-color: #b9e7cd;
    box-shadow: none;
  }
  .dashboard-main, .admin-main { padding: 24px 22px 64px; }
}