/* ============================================================
   Zipay Wallet — Professional Payment Gateway CSS
   Architecture: Fully separated frontend (API-first)
   ============================================================ */

:root {
  --purple:     #7c3aed;
  --purple-d:   #5b21b6;
  --purple-l:   #a78bfa;
  --violet:     #8b5cf6;
  --indigo:     #4f46e5;
  --blue:       #2563eb;
  --blue-l:     #60a5fa;
  --green:      #059669;
  --green-l:    #34d399;
  --amber:      #d97706;
  --amber-l:    #fbbf24;
  --red:        #dc2626;
  --red-l:      #f87171;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --bg:         #f5f3ff;
  --card:       #ffffff;
  --text:       #1e1b4b;
  --sub:        #6b7280;
  --border:     #e5e7eb;
  --shadow:     0 4px 24px rgba(124,58,237,.10);
  --shadow-lg:  0 8px 40px rgba(124,58,237,.18);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --font:       'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }

html, body {
  height:100%; width:100%;
  font-family:var(--font);
  font-size:15px; font-weight:400;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  overscroll-behavior:none;
}

a { color:inherit; text-decoration:none }
button { cursor:pointer; font-family:var(--font); border:none; background:none; outline:none }
input, textarea { font-family:var(--font); outline:none; border:none }

/* ── SPLASH ─────────────────────────────────────────────────── */
#splash {
  position:fixed; inset:0; z-index:9999;
  background:linear-gradient(145deg,#1a0533 0%,#2d1b69 50%,#1e0f5c 100%);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .5s, visibility .5s;
}
#splash.hidden { opacity:0; visibility:hidden }
.splash-inner { text-align:center; color:#fff }
.splash-logo {
  width:80px; height:80px; border-radius:24px;
  background:linear-gradient(135deg,var(--purple) 0%,var(--violet) 100%);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
  font-size:36px; box-shadow:0 12px 40px rgba(124,58,237,.5);
  animation:splashBounce .8s ease-in-out infinite alternate;
}
@keyframes splashBounce { from{transform:translateY(0)} to{transform:translateY(-10px)} }
.splash-name { font-size:32px; font-weight:800; letter-spacing:-1px; margin-bottom:4px }
.splash-sub  { font-size:13px; color:#a78bfa; font-weight:500; margin-bottom:32px }
.splash-loader {
  width:140px; height:3px; background:rgba(255,255,255,.15);
  border-radius:99px; margin:0 auto; overflow:hidden;
}
.splash-bar {
  height:100%; background:linear-gradient(90deg,var(--purple-l),var(--blue-l));
  border-radius:99px; animation:splashLoad 1.6s ease-in-out infinite;
}
@keyframes splashLoad { 0%{width:0%} 80%{width:100%} 100%{width:100%} }

/* ── AUTH SCREEN ────────────────────────────────────────────── */
#screen-auth {
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  background:linear-gradient(145deg,#0f0628 0%,#1e0f5c 40%,#2d1b69 80%,#1a0533 100%);
}
.auth-bg { position:absolute; inset:0; overflow:hidden; pointer-events:none }
.auth-blob {
  position:absolute; border-radius:50%;
  filter:blur(80px); opacity:0.35;
  animation:blobFloat 6s ease-in-out infinite alternate;
}
.blob-1 { width:500px; height:500px; top:-200px; left:-150px; background:radial-gradient(circle,#7c3aed,transparent); animation-delay:0s }
.blob-2 { width:400px; height:400px; bottom:-150px; right:-100px; background:radial-gradient(circle,#4f46e5,transparent); animation-delay:2s }
.blob-3 { width:300px; height:300px; top:50%; left:50%; transform:translate(-50%,-50%); background:radial-gradient(circle,#8b5cf6,transparent); animation-delay:4s }
@keyframes blobFloat { from{transform:scale(1) rotate(0deg)} to{transform:scale(1.15) rotate(15deg)} }

.auth-content {
  position:relative; z-index:10; width:100%; max-width:420px; padding:24px 16px;
  display:flex; flex-direction:column; gap:24px;
}

.auth-brand { text-align:center; color:#fff }
.auth-logo-wrap { display:flex; justify-content:center; margin-bottom:16px }
.auth-logo {
  width:72px; height:72px; border-radius:22px;
  background:linear-gradient(135deg,var(--purple) 0%,var(--violet) 60%,var(--blue) 100%);
  display:flex; align-items:center; justify-content:center;
  font-size:32px; box-shadow:0 12px 32px rgba(124,58,237,.5);
}
.auth-title { font-size:28px; font-weight:800; letter-spacing:-1px; margin-bottom:6px }
.auth-subtitle { font-size:14px; color:#c4b5fd; margin-bottom:16px }
.auth-chips { display:flex; gap:8px; justify-content:center; flex-wrap:wrap }
.auth-chip {
  padding:4px 12px; border-radius:99px;
  background:rgba(255,255,255,.1); backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.15);
  color:#e9d5ff; font-size:12px; font-weight:600;
}
.auth-chip i { margin-right:4px }

.auth-card {
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}

.auth-tabs {
  display:flex; position:relative;
  background:rgba(0,0,0,.25); border-radius:10px;
  padding:4px; margin-bottom:20px; gap:4px;
}
.atab {
  flex:1; padding:9px; border-radius:8px;
  font-size:14px; font-weight:600; color:rgba(255,255,255,.6);
  transition:var(--transition); position:relative; z-index:1;
}
.atab.active { color:#fff; background:rgba(124,58,237,.8) }
.atab-indicator { display:none }

.fgrp { margin-bottom:16px }
.flbl {
  display:block; font-size:12px; font-weight:600;
  color:rgba(255,255,255,.7); margin-bottom:6px; letter-spacing:.3px;
}
.flbl .req { color:var(--red-l); margin-left:2px }
.finp-wrap { position:relative }
.finp {
  width:100%; padding:12px 14px;
  background:rgba(255,255,255,.08);
  border:1.5px solid rgba(255,255,255,.12);
  border-radius:var(--radius-sm);
  color:#fff; font-size:14px; font-weight:500;
  transition:var(--transition);
}
.finp::placeholder { color:rgba(255,255,255,.3) }
.finp:focus {
  border-color:var(--purple-l);
  background:rgba(255,255,255,.12);
  box-shadow:0 0 0 3px rgba(124,58,237,.3);
}
.pin-eye {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  color:rgba(255,255,255,.4); font-size:14px;
  transition:color .15s;
}
.pin-eye:hover { color:rgba(255,255,255,.8) }

.auth-btn {
  width:100%; padding:13px;
  background:linear-gradient(135deg,var(--purple) 0%,var(--violet) 60%,var(--indigo) 100%);
  color:#fff; font-size:15px; font-weight:700;
  border-radius:var(--radius-sm);
  transition:var(--transition);
  box-shadow:0 6px 20px rgba(124,58,237,.4);
  margin-top:4px;
}
.auth-btn:hover { transform:translateY(-1px); box-shadow:0 10px 28px rgba(124,58,237,.5) }
.auth-btn:active { transform:scale(.98) }
.auth-btn:disabled { opacity:.5; cursor:not-allowed; transform:none }

.form-err {
  padding:10px 14px; border-radius:var(--radius-xs);
  background:rgba(220,38,38,.2); border:1px solid rgba(220,38,38,.4);
  color:#fca5a5; font-size:13px; font-weight:500; margin-bottom:14px;
}

.auth-foot {
  text-align:center; margin-top:14px;
  font-size:13px; color:rgba(255,255,255,.5);
}
.auth-foot button {
  color:var(--purple-l); font-weight:700; font-size:13px;
  text-decoration:underline; text-underline-offset:2px;
}

.auth-footer {
  display:flex; gap:20px; justify-content:center;
  flex-wrap:wrap;
}
.auth-footer a {
  color:rgba(255,255,255,.4); font-size:12px; font-weight:500;
  transition:color .15s;
}
.auth-footer a:hover { color:rgba(255,255,255,.8) }
.auth-footer i { margin-right:4px }

/* ── MAIN APP ────────────────────────────────────────────────── */
#screen-main {
  min-height:100vh; display:flex; flex-direction:column;
  background:var(--bg); position:relative; overflow:hidden;
}

/* ── HEADER ───────────────────────────────────────────────────── */
.app-header {
  background:linear-gradient(145deg,#1a0533 0%,#2d1b69 60%,#3730a3 100%);
  color:#fff; padding:0 0 20px;
  position:relative; overflow:hidden;
  border-radius:0 0 28px 28px;
  box-shadow:0 8px 32px rgba(26,5,51,.3);
}
.app-header::before {
  content:''; position:absolute; inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events:none;
}

.hdr-top {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px 12px;
}
.hdr-brand { display:flex; align-items:center; gap:10px }
.hdr-logo {
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  font-size:17px;
}
.hdr-name { font-size:18px; font-weight:800; letter-spacing:-.5px }
.hdr-sub  { font-size:11px; color:#c4b5fd; font-weight:500 }
.hdr-actions { display:flex; gap:6px }
.hdr-btn {
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,.1);
  color:#fff; font-size:15px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.hdr-btn:hover { background:rgba(255,255,255,.2) }

.hdr-balance { padding:0 20px }
.bal-label {
  display:flex; align-items:center; gap:6px;
  font-size:12px; color:#c4b5fd; font-weight:500; margin-bottom:8px;
}
.bal-eye {
  margin-left:auto; color:#c4b5fd; font-size:13px;
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.1);
  transition:var(--transition);
}
.bal-eye:hover { background:rgba(255,255,255,.2) }

.bal-amount {
  font-size:36px; font-weight:800; letter-spacing:-1.5px;
  margin-bottom:12px; transition:filter .3s;
}
.bal-amount.blurred { filter:blur(12px); user-select:none }

.bal-user { display:flex; align-items:center; gap:10px }
.bal-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,var(--purple-l),var(--blue-l));
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:800; color:#fff; flex-shrink:0;
}
.bal-name { font-size:14px; font-weight:700 }
.bal-uid  { font-size:12px; color:#c4b5fd; font-weight:500 }

/* ── QUICK ACTIONS ───────────────────────────────────────────── */
.qact-card {
  display:flex; gap:0;
  background:var(--card);
  border-radius:20px;
  padding:16px 8px;
  margin:16px 16px 0;
  box-shadow:var(--shadow);
}
.qact-btn {
  flex:1; display:flex; flex-direction:column;
  align-items:center; gap:8px;
  padding:8px 4px;
  font-size:12px; font-weight:600; color:var(--gray-700);
  border-radius:12px; transition:var(--transition);
}
.qact-btn:hover { background:var(--gray-50); transform:translateY(-1px) }
.qact-btn:active { transform:scale(.95) }
.qact-ico {
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; transition:var(--transition);
}
.ico-green  { background:#dcfce7; color:#15803d }
.ico-purple { background:#ede9fe; color:#7c3aed }
.ico-blue   { background:#dbeafe; color:#1d4ed8 }
.ico-amber  { background:#fef3c7; color:#b45309 }
.qact-btn:hover .qact-ico { transform:scale(1.08) }

/* ── MAIN WRAP & PANES ─────────────────────────────────────── */
.main-wrap {
  flex:1; overflow-y:auto; overflow-x:hidden;
  padding:16px 16px 90px; scroll-behavior:smooth;
}
.pane { display:none; animation:fadeIn .25s ease }
.pane.active { display:block }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.sec-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:12px;
}
.sec-title { font-size:16px; font-weight:700; color:var(--text) }
.sec-link {
  font-size:13px; font-weight:600; color:var(--purple);
  cursor:pointer; transition:color .15s;
}
.sec-link:hover { color:var(--purple-d) }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stat-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px }
.stat-card {
  background:var(--card); border-radius:var(--radius);
  padding:16px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:6px;
}
.stat-ico {
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; margin-bottom:4px;
}
.stat-in  { background:#dcfce7; color:#15803d }
.stat-out { background:#fee2e2; color:#dc2626 }
.stat-lbl { font-size:12px; color:var(--sub); font-weight:500 }
.stat-val { font-size:16px; font-weight:800; color:var(--text) }

/* ── TRANSACTION CARDS ───────────────────────────────────────── */
.tx-card { display:flex; flex-direction:column; gap:2px }
.tx-item {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px; background:var(--card);
  border-radius:var(--radius-sm); transition:var(--transition);
  cursor:default;
}
.tx-item:first-child { border-radius:var(--radius) var(--radius) var(--radius-sm) var(--radius-sm) }
.tx-item:last-child  { border-radius:var(--radius-sm) var(--radius-sm) var(--radius) var(--radius) }
.tx-item:only-child  { border-radius:var(--radius) }
.tx-item:hover { background:#f9f7ff }
.tx-ico {
  width:40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.tx-ico.in  { background:#dcfce7; color:#15803d }
.tx-ico.out { background:#fee2e2; color:#dc2626 }
.tx-info { flex:1; min-width:0 }
.tx-name {
  font-size:14px; font-weight:600; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.tx-date { font-size:11px; color:var(--sub); margin-top:2px }
.tx-right { text-align:right; flex-shrink:0 }
.tx-amt  { font-size:14px; font-weight:700 }
.tx-amt.pos { color:#15803d }
.tx-amt.neg { color:#dc2626 }
.tx-badge {
  display:inline-block; padding:2px 8px; border-radius:99px;
  font-size:10px; font-weight:700; margin-top:3px;
}
.badge-ok  { background:#dcfce7; color:#15803d }
.badge-err { background:#fee2e2; color:#dc2626 }
.badge-pend{ background:#fef3c7; color:#b45309 }

.tx-empty {
  text-align:center; padding:40px 16px;
  color:var(--sub); font-size:14px;
}
.tx-empty i { font-size:32px; display:block; margin-bottom:10px; opacity:.4 }

/* ── SCAN ZONE ───────────────────────────────────────────────── */
.scan-zone {
  background:linear-gradient(135deg,#ede9fe 0%,#e0e7ff 100%);
  border:2px dashed var(--purple-l);
  border-radius:var(--radius);
  padding:32px; text-align:center; cursor:pointer;
  transition:var(--transition); margin-bottom:16px;
}
.scan-zone:hover {
  background:linear-gradient(135deg,#ddd6fe 0%,#c7d2fe 100%);
  transform:translateY(-2px); box-shadow:var(--shadow);
}
.scan-zone:active { transform:scale(.98) }
.scan-zone-ico { font-size:40px; color:var(--purple); margin-bottom:10px }
.scan-zone-t { font-size:15px; font-weight:700; color:var(--text); margin-bottom:4px }
.scan-zone-s { font-size:12px; color:var(--sub) }

.divider-or {
  text-align:center; position:relative;
  font-size:12px; color:var(--sub); font-weight:600;
  margin:16px 0;
}
.divider-or::before, .divider-or::after {
  content:''; position:absolute; top:50%;
  width:40%; height:1px; background:var(--border);
}
.divider-or::before { left:0 }
.divider-or::after  { right:0 }

/* ── DARK INPUT (pay pane) ───────────────────────────────────── */
.flbl-dark {
  display:block; font-size:12px; font-weight:600;
  color:var(--gray-600); margin-bottom:6px;
}
.finp-dark {
  width:100%; padding:12px 14px;
  background:var(--gray-50); border:1.5px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text);
  font-size:13px; transition:var(--transition);
}
.finp-dark:focus {
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(124,58,237,.12);
}

/* ── MERCHANT CONFIRM CARD ───────────────────────────────────── */
.merch-card {
  background:linear-gradient(135deg,#1a0533,#2d1b69);
  border-radius:var(--radius); padding:16px;
  display:flex; align-items:center; gap:14px;
  margin-bottom:16px; color:#fff;
}
.merch-ico {
  width:48px; height:48px; border-radius:14px;
  background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0;
}
.merch-name { font-size:17px; font-weight:800 }
.merch-sub  { font-size:13px; color:#c4b5fd; margin-top:2px }

.pay-total-row {
  display:flex; align-items:center; justify-content:space-between;
  background:var(--gray-50); border-radius:var(--radius-sm);
  padding:14px 16px; margin-bottom:12px;
}
.ptl { font-size:13px; color:var(--sub); font-weight:500 }
.pta { font-size:20px; font-weight:800; color:var(--purple) }

.saldo-row {
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; color:var(--sub); font-weight:500;
  padding:8px 0; border-bottom:1px solid var(--border); margin-bottom:14px;
}

/* ── PIN GRID ────────────────────────────────────────────────── */
.pin-section { margin-bottom:16px }
.pin-label {
  font-size:13px; font-weight:600; color:var(--gray-600);
  margin-bottom:12px; text-align:center;
}
.pin-grid { display:flex; gap:10px; justify-content:center }
.pin-c {
  width:44px; height:52px; text-align:center;
  font-size:22px; font-weight:800; color:var(--purple);
  background:var(--gray-50); border:2px solid var(--border);
  border-radius:var(--radius-sm); transition:var(--transition);
}
.pin-c:focus {
  border-color:var(--purple);
  background:#faf5ff;
  box-shadow:0 0 0 3px rgba(124,58,237,.15);
}

/* ── AMOUNT CARD ─────────────────────────────────────────────── */
.amt-card {
  background:var(--card); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:16px; margin-bottom:12px;
}
.amt-lbl { font-size:12px; color:var(--sub); font-weight:600; margin-bottom:8px }
.amt-row { display:flex; align-items:center; gap:8px }
.amt-cur { font-size:18px; font-weight:700; color:var(--sub) }
.amt-inp {
  flex:1; font-size:28px; font-weight:800; color:var(--purple);
  background:transparent; border:none; min-width:0;
}
.amt-inp::-webkit-inner-spin-button, .amt-inp::-webkit-outer-spin-button { -webkit-appearance:none }

/* ── QUICK AMOUNT BUTTONS ───────────────────────────────────── */
.quick-amts {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px;
}
.qa {
  padding:7px 14px; border-radius:99px;
  background:var(--gray-50); border:1.5px solid var(--border);
  font-size:12px; font-weight:700; color:var(--gray-600);
  transition:var(--transition);
}
.qa:hover { background:#ede9fe; border-color:var(--purple-l); color:var(--purple) }
.qa:active { transform:scale(.95) }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display:flex; align-items:center; justify-content:center;
  gap:8px; width:100%; padding:14px;
  border-radius:var(--radius-sm); font-size:15px; font-weight:700;
  transition:var(--transition); cursor:pointer; border:none;
}
.btn:active { transform:scale(.98) }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none }
.btn i { font-size:14px }

.btn-purple {
  background:linear-gradient(135deg,var(--purple) 0%,var(--violet) 100%);
  color:#fff; box-shadow:0 6px 20px rgba(124,58,237,.35);
}
.btn-purple:hover { box-shadow:0 10px 28px rgba(124,58,237,.45); transform:translateY(-1px) }

.btn-green {
  background:linear-gradient(135deg,#059669 0%,#10b981 100%);
  color:#fff; box-shadow:0 6px 20px rgba(5,150,105,.3);
}
.btn-green:hover { box-shadow:0 10px 28px rgba(5,150,105,.4); transform:translateY(-1px) }

.btn-blue {
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 100%);
  color:#fff; box-shadow:0 6px 20px rgba(29,78,216,.3);
}
.btn-blue:hover { box-shadow:0 10px 28px rgba(29,78,216,.4); transform:translateY(-1px) }

.btn-outline {
  background:transparent; border:2px solid var(--border);
  color:var(--gray-600); justify-content:center;
}
.btn-outline:hover { border-color:var(--purple); color:var(--purple) }

/* ── QR DISPLAY ──────────────────────────────────────────────── */
.qr-display {
  background:var(--card); border-radius:var(--radius);
  padding:24px; text-align:center; margin-bottom:16px;
  box-shadow:var(--shadow);
}
/* Wrapper untuk gambar / canvas QR — min-height agar tidak collapse saat loading */
.qr-img-wrap {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}
.qr-img-wrap canvas,
.qr-img-wrap img {
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
.qr-amt { font-size:26px; font-weight:800; color:var(--purple); margin:14px 0 4px }
.qr-hint { font-size:12px; color:var(--sub) }
.qr-timer-wrap {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:99px;
  background:var(--gray-50); border:1px solid var(--border);
  font-size:12px; color:var(--sub); font-weight:600; margin-top:10px;
}

.steps-box { margin-bottom:16px }
.step {
  display:flex; align-items:flex-start; gap:12px;
  padding:10px 0; border-bottom:1px solid var(--border);
  font-size:13px; color:var(--gray-600);
}
.step:last-child { border-bottom:none }
.step-n {
  width:24px; height:24px; border-radius:50%; flex-shrink:0;
  background:var(--purple); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800;
}

/* ── INFO BOXES ──────────────────────────────────────────────── */
.info-box {
  padding:12px 14px; border-radius:var(--radius-xs);
  font-size:13px; font-weight:500; margin-bottom:14px;
  display:flex; align-items:flex-start; gap:8px;
}
.info-box i { margin-top:1px; flex-shrink:0 }
.info-blue { background:#dbeafe; border:1px solid #bfdbfe; color:#1d4ed8 }
.info-green{ background:#dcfce7; border:1px solid #bbf7d0; color:#15803d }

/* ── ALERT ───────────────────────────────────────────────────── */
.alert-err {
  padding:10px 14px; border-radius:var(--radius-xs);
  background:#fee2e2; border:1px solid #fecaca;
  color:#dc2626; font-size:13px; font-weight:500; margin-bottom:12px;
}

/* ── RECEIPT CARD ────────────────────────────────────────────── */
.receipt {
  background:var(--card); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
}
.rcpt-head {
  padding:20px; text-align:center;
  background:linear-gradient(135deg,#059669,#10b981);
  color:#fff;
}
.rcpt-ico { font-size:36px; margin-bottom:8px }
.rcpt-title { font-size:17px; font-weight:800; margin-bottom:4px }
.rcpt-amt { font-size:30px; font-weight:800; letter-spacing:-1px }
.rcpt-body { padding:16px }
.rcpt-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:9px 0; border-bottom:1px solid var(--border);
  font-size:13px;
}
.rcpt-row:last-child { border-bottom:none }
.rcpt-lbl { color:var(--sub); font-weight:500 }
.rcpt-val { font-weight:700; color:var(--text) }

/* ── TAB FILTER ──────────────────────────────────────────────── */
.tab-filter {
  display:flex; gap:6px; margin-bottom:14px;
}
.tf {
  padding:7px 16px; border-radius:99px;
  font-size:13px; font-weight:600;
  color:var(--sub); background:var(--card);
  border:1.5px solid var(--border); transition:var(--transition);
}
.tf.active {
  background:var(--purple); color:#fff;
  border-color:var(--purple); box-shadow:0 4px 12px rgba(124,58,237,.3);
}
.tf:hover:not(.active) { border-color:var(--purple); color:var(--purple) }

/* ── SETTINGS PANE ───────────────────────────────────────────── */
.profile-card {
  background:linear-gradient(135deg,#1a0533,#2d1b69);
  border-radius:var(--radius); padding:20px; color:#fff;
  display:flex; align-items:center; gap:14px; margin-bottom:16px;
}
.profile-av {
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,var(--purple-l),var(--blue-l));
  display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:800; flex-shrink:0;
}
.profile-name { font-size:18px; font-weight:800; margin-bottom:2px }
.profile-uid { font-size:13px; color:#c4b5fd }
.profile-bal { font-size:22px; font-weight:800; margin-top:8px }
.profile-bal-lbl { font-size:12px; color:#c4b5fd; margin-top:2px }

.menu-card {
  background:var(--card); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); margin-bottom:14px;
}
.menu-head {
  padding:12px 16px;
  font-size:11px; font-weight:800; color:var(--sub);
  letter-spacing:.6px; text-transform:uppercase;
  border-bottom:1px solid var(--border);
  background:var(--gray-50);
}
.menu-row {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px; cursor:pointer; transition:background .15s;
  border-bottom:1px solid var(--border);
}
.menu-row:last-child { border-bottom:none }
.menu-row:hover { background:var(--gray-50) }
.menu-row-ico {
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.menu-row-info { flex:1 }
.menu-row-name { font-size:14px; font-weight:600; color:var(--text) }
.menu-row-sub  { font-size:12px; color:var(--sub); margin-top:1px }
.menu-row-arr  { color:var(--gray-300); font-size:13px }
.menu-row.danger .menu-row-name { color:var(--red) }
.menu-row.danger:hover { background:#fff5f5 }

/* Credential Edit Row */
.cred-row {
  padding:14px 16px; border-bottom:1px solid var(--border);
}
.cred-row:last-child { border-bottom:none }
.cred-lbl { font-size:11px; font-weight:700; color:var(--sub); letter-spacing:.3px; margin-bottom:6px; text-transform:uppercase }
.cred-inp {
  width:100%; padding:9px 12px;
  background:var(--gray-50); border:1.5px solid var(--border);
  border-radius:var(--radius-xs); font-size:13px; font-weight:600;
  color:var(--text); transition:var(--transition);
}
.cred-inp:focus { border-color:var(--purple); box-shadow:0 0 0 3px rgba(124,58,237,.1) }
.cred-inp.secret { font-family:monospace; letter-spacing:2px }

/* ── BOTTOM NAV ──────────────────────────────────────────────── */
.bnav {
  position:fixed; bottom:0; left:0; right:0; z-index:100;
  background:var(--card);
  border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around;
  padding:8px 0 max(8px,env(safe-area-inset-bottom));
  box-shadow:0 -4px 24px rgba(0,0,0,.08);
}
.bnav-btn {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:6px 0; color:var(--gray-400);
  font-size:10px; font-weight:600; transition:var(--transition);
}
.bnav-btn i { font-size:20px; transition:var(--transition) }
.bnav-btn.active { color:var(--purple) }
.bnav-btn.active i { transform:scale(1.12) }
.bnav-scan {
  width:54px; height:54px; border-radius:50%; margin-top:-20px;
  background:linear-gradient(135deg,var(--purple) 0%,var(--violet) 100%);
  color:#fff; font-size:22px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 20px rgba(124,58,237,.5);
  transition:var(--transition); flex-shrink:0;
}
.bnav-scan:hover { transform:scale(1.08) }
.bnav-scan:active { transform:scale(.94) }

/* ── CAMERA MODAL ────────────────────────────────────────────── */
.cam-box {
  background:#000; border-radius:24px;
  width:calc(100vw - 32px); max-width:380px;
  overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.7);
}
.cam-top {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  background:rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.08);
}
.cam-title { color:#fff; font-size:15px; font-weight:700 }
.cam-title i { margin-right:8px; color:var(--purple-l) }
.cam-close {
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.1); color:#fff; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.cam-close:hover { background:rgba(255,255,255,.2) }
.cam-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center }
.cam-frame {
  width:200px; height:200px; position:relative;
}
.cf {
  position:absolute; width:20px; height:20px;
  border-color:var(--purple-l); border-style:solid;
}
.cf.tl { top:0; left:0; border-width:3px 0 0 3px; border-radius:4px 0 0 0 }
.cf.tr { top:0; right:0; border-width:3px 3px 0 0; border-radius:0 4px 0 0 }
.cf.bl { bottom:0; left:0; border-width:0 0 3px 3px; border-radius:0 0 0 4px }
.cf.br { bottom:0; right:0; border-width:0 3px 3px 0; border-radius:0 0 4px 0 }
.cf-scan {
  position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,transparent,var(--purple-l),transparent);
  animation:scanLine 2s linear infinite;
}
@keyframes scanLine { from{top:0} to{top:100%} }
.cam-foot {
  padding:14px 16px;
  background:rgba(255,255,255,.03); border-top:1px solid rgba(255,255,255,.06);
}
.cam-st { color:rgba(255,255,255,.6); font-size:12px; text-align:center; margin-bottom:10px }
.cam-torch, .cam-snap {
  padding:10px 20px; border-radius:var(--radius-xs);
  font-size:13px; font-weight:700;
}
.cam-torch {
  background:rgba(255,255,255,.1); color:#fff;
}
.cam-snap {
  background:var(--purple); color:#fff;
  box-shadow:0 4px 14px rgba(124,58,237,.4);
  flex:1;
}
.cam-gallery {
  background:rgba(255,255,255,.1); color:#fff;
  border-radius:var(--radius-xs); font-size:13px; font-weight:700;
  padding:10px 14px; display:inline-flex; align-items:center; gap:6px;
  transition:var(--transition);
}
.cam-gallery:hover { background:rgba(255,255,255,.18); }
/* Camera state overlay (loading / error) */
#cam-state {
  flex-direction:column; align-items:center; justify-content:center;
  background:rgba(0,0,0,.85);
}
#cam-state-ico { font-size:44px; margin-bottom:12px; color:rgba(255,255,255,.45); }
#cam-state-txt {
  color:rgba(255,255,255,.7); font-size:13px; text-align:center;
  padding:0 20px; line-height:1.7; white-space:pre-line;
}
#cam-retry-btn {
  margin-top:14px; padding:8px 22px;
  background:var(--purple); color:#fff;
  border-radius:var(--radius-xs); font-size:13px; font-weight:700;
  box-shadow:0 4px 14px rgba(124,58,237,.4);
}

/* ── BOTTOM SHEETS ───────────────────────────────────────────── */
.sheet-overlay {
  position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
  opacity:0; pointer-events:none; transition:opacity .3s;
}
.sheet-overlay.show { opacity:1; pointer-events:auto }
.sheet {
  position:fixed; bottom:0; left:0; right:0; z-index:201;
  background:var(--card);
  border-radius:24px 24px 0 0;
  padding:0 0 max(20px,env(safe-area-inset-bottom));
  max-height:90vh; overflow-y:auto;
  transform:translateY(100%);
  transition:transform .35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 -8px 40px rgba(0,0,0,.2);
}
.sheet.show { transform:translateY(0) }
.sheet-handle {
  width:40px; height:4px; border-radius:2px;
  background:var(--gray-200); margin:12px auto 0;
}
.sheet-hdr {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px 14px;
  border-bottom:1px solid var(--border);
}
.sheet-title { font-size:16px; font-weight:800; color:var(--text) }
.sheet-x {
  width:32px; height:32px; border-radius:50%;
  background:var(--gray-100); color:var(--gray-500);
  display:flex; align-items:center; justify-content:center; font-size:13px;
  transition:var(--transition);
}
.sheet-x:hover { background:var(--gray-200) }
.sheet-body { padding:20px }

/* ── LOADING OVERLAY ─────────────────────────────────────────── */
#ov-load {
  display:none; position:fixed; inset:0; z-index:9000;
  background:rgba(26,5,51,.85); backdrop-filter:blur(6px);
  align-items:center; justify-content:center;
}
#ov-load.show { display:flex }
.loader-box { text-align:center }
.loader-ring {
  width:56px; height:56px; border:4px solid rgba(255,255,255,.15);
  border-top-color:var(--purple-l); border-radius:50%;
  margin:0 auto 16px; animation:spin 1s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.loader-txt { color:#e9d5ff; font-size:14px; font-weight:600 }

/* ── TOAST ───────────────────────────────────────────────────── */
#toast-wrap {
  position:fixed; bottom:84px; left:50%; transform:translateX(-50%);
  z-index:9999; width:calc(100% - 32px); max-width:400px;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  pointer-events:none;
}
.toast {
  padding:12px 18px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:600; color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.3);
  animation:toastIn .3s ease;
  pointer-events:auto; max-width:100%;
  display:flex; align-items:center; gap:8px;
}
.toast.success { background:linear-gradient(135deg,#059669,#10b981) }
.toast.error   { background:linear-gradient(135deg,#dc2626,#ef4444) }
.toast.info    { background:linear-gradient(135deg,#1d4ed8,#2563eb) }
.toast.warning { background:linear-gradient(135deg,#b45309,#d97706) }
.toast.hiding  { animation:toastOut .3s ease forwards }
@keyframes toastIn  { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes toastOut { from{opacity:1;transform:none} to{opacity:0;transform:translateY(-10px)} }

/* ── VERIFY RESULT ───────────────────────────────────────────── */
.verify-card {
  background:var(--card); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
}
.verify-head {
  padding:16px; display:flex; align-items:center; gap:12px;
  border-bottom:1px solid var(--border);
}
.verify-ico {
  width:44px; height:44px; border-radius:13px;
  background:linear-gradient(135deg,#ede9fe,#e0e7ff);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:var(--purple);
}
.verify-merch { font-size:15px; font-weight:800; color:var(--text) }
.verify-city  { font-size:12px; color:var(--sub) }
.verify-zipay {
  margin-left:auto; padding:3px 8px; border-radius:99px;
  background:#ede9fe; color:var(--purple);
  font-size:10px; font-weight:800;
}
.verify-body { padding:14px 16px }
.verify-row {
  display:flex; justify-content:space-between;
  padding:7px 0; border-bottom:1px solid var(--border);
  font-size:13px;
}
.verify-row:last-child { border-bottom:none }
.verify-lbl { color:var(--sub); font-weight:500 }
.verify-val { font-weight:700; color:var(--text) }
.verify-amt { color:var(--purple); font-size:16px }

/* ── QR ACTIONS ──────────────────────────────────────────────── */
.qr-actions { display:flex; gap:8px; margin-top:12px }
.qr-btn {
  flex:1; padding:10px; border-radius:var(--radius-xs);
  font-size:12px; font-weight:700; display:flex; align-items:center;
  justify-content:center; gap:6px; transition:var(--transition);
}
.qr-btn.copy { background:var(--gray-100); color:var(--gray-700); border:1.5px solid var(--border) }
.qr-btn.copy:hover { background:var(--gray-200) }
.qr-btn.dl { background:var(--purple); color:#fff; box-shadow:0 4px 12px rgba(124,58,237,.3) }
.qr-btn.dl:hover { transform:translateY(-1px) }

/* ── UTILITY ─────────────────────────────────────────────────── */
.mt-2  { margin-top:8px }
.mt-3  { margin-top:12px }
.mt-4  { margin-top:16px }
.mb-3  { margin-bottom:12px }
.text-center { text-align:center }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media(min-width:480px) {
  .auth-content { padding:40px 24px }
  .auth-card { padding:32px }
}

/* ══════════════════════════════════════════════════════════════
   ZIPAY BALANCE CARD  —  Saldo QRIS langsung dari Zipay API
   ══════════════════════════════════════════════════════════════ */
.zb-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(79,70,229,.35), 0 2px 8px rgba(0,0,0,.2);
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(139,92,246,.3);
}
.zb-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(167,139,250,.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.zb-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(196,181,253,.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
/* Header */
.zb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.zb-left { display: flex; align-items: center; gap: 10px }
.zb-logo-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.zb-logo { width: 32px; height: 32px; object-fit: contain }
.zb-logo-fallback {
  width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 18px; color: #a78bfa;
}
.zb-title-wrap { display: flex; flex-direction: column }
.zb-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2 }
.zb-sub   { font-size: 10px; color: rgba(167,139,250,.8); font-weight: 500 }
.zb-right { display: flex; align-items: center; gap: 8px }

/* Badge */
.zb-badge {
  font-size: 10px; font-weight: 700; padding: 3px 9px;
  border-radius: 99px; letter-spacing: .3px;
}
.zb-badge-loading { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7) }
.zb-badge-ok      { background: rgba(52,211,153,.2);   color: #6ee7b7 }
.zb-badge-error   { background: rgba(248,113,113,.2);  color: #fca5a5 }
.zb-badge-warn    { background: rgba(251,191,36,.2);   color: #fde68a }

/* Refresh button */
.zb-refresh-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px;
  transition: var(--transition);
}
.zb-refresh-btn:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: rotate(20deg);
}

/* Body */
.zb-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 14px;
}
.zb-ic-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.zb-spin { color: rgba(167,139,250,.85) }
.zb-ok   { color: #6ee7b7 }
.zb-warn { color: #fde68a }
.zb-amounts { flex: 1; min-width: 0 }
.zb-amount {
  font-size: 24px; font-weight: 800;
  color: #fff; letter-spacing: -.5px;
  line-height: 1.1;
}
.zb-details {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.zb-details span {
  font-size: 11px; font-weight: 600;
  color: rgba(196,181,253,.8);
}

/* Footer / meta */
.zb-footer {
  font-size: 10px; color: rgba(167,139,250,.6);
  padding: 6px 16px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: 'Plus Jakarta Sans', monospace;
  letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Upload Bukti Pembayaran ──────────────────────────────────── */
.upload-section {
  margin: 4px 0 12px;
}
.upload-label {
  font-size: 13px; font-weight: 600;
  color: var(--txt); margin-bottom: 8px;
}
.upload-opt {
  font-size: 11px; font-weight: 400; color: var(--sub);
}

/* Drop zone / click area */
.upload-drop {
  border: 2px dashed rgba(124,58,237,.35);
  border-radius: 14px;
  background: rgba(124,58,237,.04);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.upload-drop:hover,
.upload-drop:active {
  border-color: rgba(124,58,237,.65);
  background: rgba(124,58,237,.08);
}
.upload-drop.has-preview {
  border-color: rgba(124,58,237,.6);
  background: rgba(124,58,237,.06);
  cursor: default;
}

/* Placeholder */
#upload-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 16px; gap: 4px;
}
.upload-drop-ico {
  font-size: 28px;
  color: rgba(124,58,237,.55);
  margin-bottom: 4px;
}
.upload-drop-t {
  font-size: 13px; font-weight: 600;
  color: var(--txt);
}
.upload-drop-s {
  font-size: 11px; color: var(--sub);
}

/* Preview state */
#upload-preview {
  display: flex; align-items: center;
  gap: 12px; padding: 10px 12px;
}
.proof-preview-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(124,58,237,.25);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.proof-preview-info {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
.proof-fname {
  font-size: 12px; font-weight: 500;
  color: var(--txt);
  flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.proof-del-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(239,68,68,.12);
  color: #ef4444; font-size: 13px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.proof-del-btn:hover { background: rgba(239,68,68,.22); }

/* Receipt proof section */
.rcpt-proof {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.rcpt-proof-lbl {
  font-size: 12px; font-weight: 600;
  color: var(--sub); margin-bottom: 8px;
}
.rcpt-proof-img {
  width: 100%; max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.rcpt-proof-add {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.btn-proof-add {
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px;
  border: 1.5px solid var(--purple);
  background: transparent; color: var(--purple);
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.btn-proof-add:hover {
  background: var(--purple); color: #fff;
}

/* ── Upload Source Bottom Sheet (mobile picker) ──────────────── */
#uss-panel button:active {
  background: rgba(124,58,237,.12) !important;
}
#uss-panel button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
  border-radius: 12px;
}
