/* ==========================================================================
   NeoPay — Modern SaaS Design System
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #ecfeff 100%);

  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --white: #ffffff;
  --bg: #f8fafc;
  --border: #e2e8f0;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-primary: 0 10px 28px rgba(79, 70, 229, 0.28);

  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  width: 100%;
  touch-action: manipulation;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-primary);
  background-size: 160% 160%;
  background-position: 0% 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-position 0.5s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 36px rgba(79,70,229,0.42), 0 0 24px rgba(6,182,212,0.22);
  background-position: 100% 50%;
}

.btn-outline {
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--border);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(79,70,229,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { color: var(--primary); transform: translateY(-1px); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Efek Scroll-Reveal & Parallax (Landing Page) ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.reveal-visible { transition-delay: calc(var(--reveal-index, 0) * 90ms); }

.hero-parallax-layer {
  will-change: transform;
  transition: transform 0.05s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-parallax-layer { transform: none !important; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.card-flat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.15rem; }

/* ---------- Toggle Show/Hide untuk field kredensial sensitif (API Key, dst) ---------- */
.input-toggle-wrap { position: relative; }
.input-toggle-wrap input { padding-right: 2.6rem !important; }
.input-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.input-toggle-btn:hover { color: var(--primary); background: var(--bg); }

/* ---------- Collapse/Expand Kartu Gateway A/B/C ---------- */
.gw-card-header { user-select: none; }
.gw-card-header:hover h3 { color: var(--primary); }
.gw-card-header h3 { transition: color 0.15s ease; }
.gw-card-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gw-card-chevron:hover { background: var(--border); }
.gw-card-chevron.gw-chevron-open { transform: rotate(180deg); }
.gw-card-body {
  animation: gwBodyFadeIn 0.25s ease;
}
@keyframes gwBodyFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Indikator Kekuatan Password ---------- */
.pwd-strength-wrap { margin-top: 0.55rem; }
.pwd-strength-bar-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.pwd-strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background 0.3s ease;
  background: #dc2626;
}
.pwd-strength-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.4rem;
  color: #dc2626;
}
.pwd-strength-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.55rem;
}
.pwd-check-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}
.pwd-check-item .pwd-check-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.pwd-check-item.pwd-check-ok { color: var(--success); }
.pwd-check-item.pwd-check-ok .pwd-check-icon { background: var(--success); border-color: var(--success); }
.pwd-check-item.pwd-check-ok .pwd-check-icon svg { display: block; }
.pwd-check-item .pwd-check-icon svg { display: none; width: 9px; height: 9px; stroke: #fff; }


.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.form-alert-error { background: var(--danger-bg); color: #b91c1c; }
.form-alert-success { background: var(--success-bg); color: #047857; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-primary { background: #eef2ff; color: var(--primary); }

/* ---------- Public Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.mobile-menu-open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-soft);
}
.mobile-menu a:hover { background: var(--bg); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-soft);
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

/* ---------- Ilustrasi Hero Landing Page — 500x500px, responsif ---------- */
.hero-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  padding: 2rem;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
}

.hero-illu-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px dashed rgba(79, 70, 229, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-illu-orbit-1 { width: 88%; height: 88%; animation: heroOrbitSpin 30s linear infinite; }
.hero-illu-orbit-2 { width: 62%; height: 62%; animation: heroOrbitSpin 22s linear infinite reverse; }
@keyframes heroOrbitSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-illu-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 0.62 / 1;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  padding: 6%;
  background: linear-gradient(160deg, #1e1b4b, #0f172a);
  box-shadow: 0 30px 60px -16px rgba(30, 27, 75, 0.45);
  animation: heroPhoneFloat 4.5s ease-in-out infinite;
}
@keyframes heroPhoneFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-50%, -50%) translateY(-12px) rotate(1deg); }
}
.hero-illu-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-illu-qr {
  width: 68%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-illu-check {
  position: absolute;
  bottom: -6%;
  right: -6%;
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(5, 150, 105, 0.55);
  animation: heroCheckPop 2.6s ease-in-out infinite;
}
@keyframes heroCheckPop {
  0%, 20% { transform: scale(0); opacity: 0; }
  35%, 75% { transform: scale(1); opacity: 1; }
  90%, 100% { transform: scale(0); opacity: 0; }
}

.hero-illu-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  animation: heroBadgeFloat 5s ease-in-out infinite;
}
.hero-illu-badge-1 { top: 6%; left: -2%; animation-delay: 0s; }
.hero-illu-badge-2 { bottom: 14%; right: -4%; animation-delay: 1.6s; }
.hero-illu-badge-3 { bottom: -2%; left: 12%; color: var(--success); animation-delay: 3.2s; }
@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-illu-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: heroDotPulse 3s ease-in-out infinite;
}
.hero-illu-dot-1 { top: 18%; right: 10%; animation-delay: 0s; }
.hero-illu-dot-2 { bottom: 24%; left: 6%; background: var(--accent); animation-delay: 1s; }
.hero-illu-dot-3 { top: 55%; right: -2%; background: var(--success); animation-delay: 2s; }
@keyframes heroDotPulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .hero-illustration-wrap { padding: 1.25rem; max-width: 340px; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 1.65rem; margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); }

.grid-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
  will-change: transform;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.12), 0 20px 40px -18px rgba(79, 70, 229, 0.35);
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.25);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--ink-soft); font-size: 0.9rem; }

.grid-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.method-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.method-chip:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 16px 30px -14px rgba(79, 70, 229, 0.3);
  border-color: rgba(79, 70, 229, 0.22);
}
.method-chip-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.method-chip:hover .method-chip-icon { transform: scale(1.15) rotate(6deg); }

.stats-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-band > div { transition: transform 0.3s ease; }
.stats-band > div:hover { transform: translateY(-3px); }
.stats-band strong { display: block; font-family: var(--font-display); font-size: 1.6rem; transition: text-shadow 0.3s ease; }
.stats-band > div:hover strong { text-shadow: 0 0 18px rgba(255,255,255,0.4); }
.stats-band span { color: #cbd5e1; font-size: 0.82rem; }

.cta-band {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--gradient);
  padding: 3rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { font-size: 0.9rem; margin-bottom: 0.9rem; color: #fff; }
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  padding: 0.35rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.auth-visual {
  display: none;
  background: var(--gradient);
  padding: 3rem;
  color: var(--white);
  flex-direction: column;
  justify-content: center;
}

.auth-visual h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.auth-visual p { opacity: 0.9; margin-bottom: 2rem; }

/* ---------- Animasi Pembayaran — Hero Login Desktop ---------- */
.auth-payment-anim {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 260px;
  margin: 0 auto;
}
.auth-pay-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  animation: authOrbitPulse 3.5s ease-out infinite;
}
.auth-pay-orbit-ring-2 { animation-delay: 1.2s; }
@keyframes authOrbitPulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.auth-pay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 130px;
  margin: -65px 0 0 -105px;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 44px -12px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  animation: authCardFloat 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes authCardFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.auth-pay-card-top { display: flex; align-items: center; justify-content: space-between; }
.auth-pay-chip {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.auth-pay-card-number {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.auth-pay-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  opacity: 0.9;
}

.auth-pay-flow-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,0.6);
  opacity: 0;
  animation: authFlowDot 2.4s ease-in-out infinite;
}
.auth-pay-flow-dot-1 { top: 46%; left: 12%; animation-delay: 0s; }
.auth-pay-flow-dot-2 { top: 60%; left: 18%; animation-delay: 0.5s; }
.auth-pay-flow-dot-3 { top: 38%; left: 20%; animation-delay: 1s; }
@keyframes authFlowDot {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(85px, -20px) scale(1); }
}

.auth-pay-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  animation: authBadgeFloat 5s ease-in-out infinite;
  z-index: 3;
}
.auth-pay-badge-qris { top: 6%; right: 4%; animation-delay: 0s; }
.auth-pay-badge-va { bottom: 20%; left: 0; animation-delay: 1.4s; }
.auth-pay-badge-wallet { bottom: 2%; right: 12%; animation-delay: 2.8s; }
@keyframes authBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-pay-success {
  position: absolute;
  top: 12%;
  left: 6%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.6);
  animation: authSuccessPop 2.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes authSuccessPop {
  0%, 20% { transform: scale(0); opacity: 0; }
  35%, 75% { transform: scale(1); opacity: 1; }
  90%, 100% { transform: scale(0); opacity: 0; }
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-form-box { width: 100%; max-width: 400px; }
.auth-form-box .logo { margin-bottom: 2rem; }
.auth-form-box h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.auth-form-box > p { color: var(--ink-soft); margin-bottom: 1.75rem; font-size: 0.92rem; }

.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.auth-footer-link a { color: var(--primary); font-weight: 600; }

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.check-row input { width: 16px; height: 16px; accent-color: var(--primary); }

.check-row-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-row-terms input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--primary);
}
.check-row-terms span { flex: 1; min-width: 0; }
.check-row-terms a { color: var(--primary); font-weight: 600; }

.check-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* ---------- Dashboard Shell ---------- */
.dash-shell { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }

.dash-topbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0.65rem;
  z-index: 40;
  margin: 0.65rem 0.75rem 0.85rem;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.18), 0 1px 2px rgba(15, 23, 42, 0.04);
  width: auto;
  transition: box-shadow 0.2s ease;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn-primary { background: var(--gradient); border: none; color: var(--white); }

.topbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 55;
}
.sidebar-overlay.sidebar-overlay-visible { display: block; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 272px;
  max-width: 82vw;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1.1rem;
  overflow-y: auto;
  z-index: 60;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}
.sidebar.sidebar-open { transform: translateX(0); visibility: visible; }

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0.25rem;
}

.sidebar-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
}

.sidebar-section {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.25rem 0 0.5rem 0.6rem;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 0.2rem; }
.sidebar-menu a, .sidebar-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.sidebar-menu a:hover, .sidebar-menu button:hover { background: var(--bg); color: var(--primary); }
.sidebar-menu a.active { background: #eef2ff; color: var(--primary); font-weight: 600; }

.dash-main { flex: 1; min-width: 0; padding: 1.75rem 1.25rem 3rem; }

.dash-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.dash-header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.dash-header p { color: var(--ink-soft); font-size: 0.92rem; }

.dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.dash-header-actions .btn { flex: 1 1 auto; min-width: 150px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.stat-card span.stat-label { display: block; color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 0.5rem; }
.stat-card strong.stat-value { display: block; font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.4rem; }
.stat-trend { font-size: 0.82rem; font-weight: 600; }
.stat-trend-up { color: var(--success); }
.stat-trend-down { color: var(--danger); }

.table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-card-head {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-card-head h3 { font-size: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.9rem 1.35rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }

/* ---------- Payment Method Select (form) ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.method-option {
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.method-option:has(input:checked) {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}

/* ---------- Status Page ---------- */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.status-box { width: 100%; max-width: 440px; text-align: center; }
.status-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.status-icon-success { background: var(--success-bg); color: var(--success); }
.status-icon-pending { background: var(--warning-bg); color: var(--warning); }
.status-box h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.status-box p { color: var(--ink-soft); margin-bottom: 1.75rem; }
.status-detail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1.75rem;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-row span:first-child { color: var(--ink-soft); }
.status-row span:last-child { font-weight: 600; }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.status-actions .btn { flex: 1 1 auto; min-width: 140px; }

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .grid-methods { grid-template-columns: repeat(3, 1fr); }
  .stats-band { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }
  .mobile-menu { display: none !important; }

  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.75rem; }

  .grid-features { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }

  .auth-page { grid-template-columns: 1fr 1fr; }
  .auth-visual { display: flex; }

  .dash-topbar { display: none; }
  .dash-shell { flex-direction: row; height: 100vh; min-height: 0; overflow: hidden; }
  .sidebar {
    position: sticky;
    top: 1rem;
    transform: none;
    visibility: visible;
    width: 272px;
    flex-shrink: 0;
    height: calc(100vh - 2rem);
    margin: 1rem 0 1rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.16), 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .sidebar-close-btn { display: none; }
  .sidebar-overlay { display: none !important; }
  .dash-main { padding: 2.25rem 2.5rem 3rem; overflow-y: auto; }
  .dash-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .dash-header-actions .btn { flex: none; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1080px) {
  .stats-band { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 80;
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-overlay.modal-open { display: flex; align-items: flex-start; justify-content: center; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  margin: 1.5rem 0;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 1.1rem; }

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ---------- Upload Box ---------- */
.upload-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: var(--bg);
}
.upload-box:hover { border-color: var(--primary); background: #eef2ff; }
.upload-box input[type="file"] { display: none; }
.upload-box .upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  color: var(--primary);
}
.upload-box p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.upload-box .upload-hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.25rem; }
.upload-preview {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
}
.upload-preview.upload-preview-visible { display: flex; }
.upload-preview img { height: 40px; max-width: 140px; object-fit: contain; border-radius: 6px; background: var(--bg); }

/* ---------- Merchant List ---------- */
.merchant-row { display: flex; align-items: center; gap: 0.75rem; }
.merchant-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.merchant-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Admin Theme (visual differentiation dari panel merchant) ---------- */
.admin-theme .sidebar { background: #0f172a; border-right: 1px solid #1e293b; }
.admin-theme .sidebar-logo a.logo { color: #fff; }
.admin-theme .sidebar-close-btn { background: #1e293b; border-color: #334155; color: #fff; }
.admin-theme .sidebar-section { color: #64748b; }
.admin-theme .sidebar-menu a, .admin-theme .sidebar-menu button { color: #cbd5e1; }
.admin-theme .sidebar-menu a:hover, .admin-theme .sidebar-menu button:hover { background: #1e293b; color: #fff; }
.admin-theme .sidebar-menu a.active { background: #312e81; color: #c7d2fe; }

@media (min-width: 860px) {
  .admin-theme .sidebar { border: 1px solid #1e293b; box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.2); }
}
.admin-theme .dash-topbar { background: rgba(15, 23, 42, 0.82); border: 1px solid rgba(51, 65, 85, 0.7); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.2); }
.admin-theme .dash-topbar .topbar-logo { color: #fff; }
.admin-theme .dash-topbar .icon-btn { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.admin-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: #312e81; color: #c7d2fe; font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- Toggle Switch ---------- */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gradient);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}
.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

/* ---------- Notification Badge (sidebar menu) ---------- */
.nav-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: auto;
  animation: badgePulse 1.6s ease-in-out infinite;
}
.nav-notif-badge.nav-notif-hidden { display: none; }

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* ---------- Virtual Card (mirip kartu ATM/bank) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.virtual-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.virtual-card.card-inactive {
  background: linear-gradient(135deg, #64748b 0%, #475569 55%, #334155 100%);
  box-shadow: 0 16px 36px rgba(51, 65, 85, 0.25);
}

.virtual-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 65%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.virtual-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.vc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.vc-chip {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  position: relative;
  z-index: 1;
}
.vc-chip::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(120, 90, 10, 0.35);
  border-radius: 3px;
}

.vc-brand-logo {
  height: 24px;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.vc-brand-fallback {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.vc-number {
  font-family: 'Courier New', monospace;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  position: relative;
  z-index: 1;
  word-break: break-all;
}

.vc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 0.75rem;
}

.vc-holder-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}
.vc-holder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.vc-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Template Capture Kartu Virtual (ukuran TETAP, dipakai html2canvas saja,
   tidak pernah tampil ke user) — 900x567px, rasio kartu kredit standar 1.586:1 ---------- */
.vc-capture {
  position: relative;
  width: 900px;
  height: 567px;
  border-radius: 32px;
  padding: 56px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.vc-capture.vc-capture-inactive {
  background: linear-gradient(135deg, #64748b 0%, #475569 55%, #334155 100%);
}
.vc-capture-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.vc-capture-chip {
  width: 76px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.vc-capture-brand-logo { height: 40px; max-width: 220px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.95; }
.vc-capture-brand-fallback { display: flex; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.vc-capture-number {
  font-family: 'Courier New', monospace;
  font-size: 2.1rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.vc-capture-bottom {
  display: flex;
  align-items: center; /* rata tengah eksplisit — bukan flex-end, supaya badge status selalu presisi sejajar nama */
  justify-content: space-between;
  gap: 24px;
}
.vc-capture-holder-label {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 8px;
  line-height: 1.3;
}
.vc-capture-holder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.35; /* line-height dilonggarkan supaya huruf turun (g, p, j) tidak terpotong */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
  padding-bottom: 4px; /* ruang ekstra bawah, jaga-jaga sisa render huruf turun */
}
.vc-capture-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24); /* solid, TANPA backdrop-filter — html2canvas sering salah render blur */
  line-height: 1; /* baseline presisi, tidak bergantung inherited line-height induk */
}

/* ---------- Badge "Live" (tampil kalau KYC disetujui) ---------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem 0.6rem;
}
.live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: liveBlink 1.2s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.4; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* ---------- Halaman Bayar / Checkout / Sukses — Premium & Elegan ---------- */

.pay-page-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.08) 0%, transparent 55%),
    var(--bg);
  position: relative;
  overflow-x: clip;
}

.pay-navbar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Header pembayaran: nama merchant + badge "Diamankan" WAJIB 1 baris, apapun panjang
   nama merchant-nya — nama yang kepanjangan dipotong (...), badge tidak pernah menyusut. */
.pay-navbar .navbar-inner {
  flex-wrap: nowrap;
  gap: 0.6rem;
}
.pay-navbar .logo {
  min-width: 0; /* wajib supaya text-overflow anak elemen bisa bekerja di flex item */
  flex: 1 1 auto;
  font-size: clamp(0.85rem, 3.6vw, 1.05rem);
}
.pay-navbar .logo span.pay-merchant-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pay-navbar .pay-secured-badge {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: clamp(0.68rem, 2.6vw, 0.78rem);
  padding: 0.35rem 0.6rem;
}
/* Di layar sangat sempit, sembunyikan teks "Diamankan X" dan sisakan cuma ikon perisai
   supaya nama merchant tetap punya ruang lega tanpa terpotong parah. */
@media (max-width: 360px) {
  .pay-navbar .pay-secured-badge span.pay-secured-text { display: none; }
  .pay-navbar .pay-secured-badge { padding: 0.4rem; border-radius: 50%; }
}

/* Tombol share (WhatsApp/Facebook/Telegram/Salin Link) di halaman pembayaran */
.pay-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.9rem 0 1.6rem;
}
.pay-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.pay-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.25);
}
.pay-share-btn.pay-share-whatsapp:hover { color: #25d366; border-color: #25d366; }
.pay-share-btn.pay-share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.pay-share-btn.pay-share-telegram:hover { color: #229ed9; border-color: #229ed9; }
.pay-share-btn.pay-share-link:hover { color: var(--primary); border-color: var(--primary); }

.pay-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
  animation: payFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes payFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.pay-merchant-badge {
  width: clamp(64px, 18vw, 84px);
  height: clamp(64px, 18vw, 84px);
  border-radius: 20px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -8px rgba(79, 70, 229, 0.28);
  overflow: hidden;
  position: relative;
}
.pay-merchant-badge img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.pay-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -20px rgba(30, 41, 59, 0.18);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.pay-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

/* Method grid — kartu channel pembayaran dengan efek hover premium */
.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.pm-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pm-option:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.35);
}
.pm-option input:checked ~ .pm-check,
.pm-option.pm-selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.32);
  transform: translateY(-1px);
}
.pm-option .pm-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all 0.18s ease;
}
.pm-option.pm-selected .pm-dot {
  border-color: var(--primary);
  background: var(--gradient);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.pm-option.pm-selected .pm-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* Tombol bayar premium dengan shimmer */
.pay-btn-premium {
  position: relative;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient);
  background-size: 200% 200%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 28px -8px rgba(79, 70, 229, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.6s ease;
}
.pay-btn-premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(79, 70, 229, 0.65);
  background-position: 100% 50%;
}
.pay-btn-premium:active { transform: translateY(0); }
.pay-btn-premium::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: payShimmer 2.8s ease-in-out infinite;
}
@keyframes payShimmer {
  0% { left: -60%; }
  55%, 100% { left: 140%; }
}

/* ---------- Checkout: QR & VA premium ---------- */
.checkout-total {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.qr-frame {
  position: relative;
  width: 236px;
  height: 236px;
  margin: 0 auto 1.25rem;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px -18px rgba(79, 70, 229, 0.35);
}
.qr-frame img { width: 100%; height: 100%; border-radius: 12px; }
.qr-frame::before, .qr-frame::after,
.qr-frame .corner-tl, .qr-frame .corner-br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary);
}
.qr-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.qr-frame::after { bottom: -3px; right: -3px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.qr-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 26px;
  border: 2px solid rgba(79, 70, 229, 0.35);
  animation: qrPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes qrPulse {
  0% { transform: scale(0.97); opacity: 0.9; }
  70% { transform: scale(1.05); opacity: 0; }
  100% { opacity: 0; }
}

.va-box-premium {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 60%, #ecfeff 100%);
  border: 1px solid rgba(199, 210, 254, 0.7);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.va-number-premium {
  font-family: 'Courier New', monospace;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.countdown-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 600;
}
.countdown-premium strong { font-variant-numeric: tabular-nums; }

.waiting-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.waiting-pulse .wp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: waitPulse 1.3s ease-in-out infinite;
}
@keyframes waitPulse {
  0%, 100% { transform: scale(0.75); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ---------- Sukses — burst & checkmark animasi ---------- */
.success-page-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.success-card-premium {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 32px 64px -24px rgba(16, 185, 129, 0.35);
  padding: 2.5rem 2rem;
  text-align: center;
  animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.success-card-premium::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #4f46e5);
}
@keyframes successPop {
  0% { opacity: 0; transform: scale(0.92) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.success-ring {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.55);
  animation: successRingPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes successRingPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.success-ring::before, .success-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: successRingWave 1.8s ease-out infinite;
}
.success-ring::after { animation-delay: 0.5s; }
@keyframes successRingWave {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.success-check-draw {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.5s ease 0.5s forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-detail-premium {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}
.success-detail-premium .sd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.87rem;
}
.success-detail-premium .sd-row:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}
.success-detail-premium .sd-row span:first-child { color: var(--ink-soft); }
.success-detail-premium .sd-row span:last-child { font-weight: 700; color: var(--ink); }

.confetti-piece {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 8px;
  opacity: 0;
  animation: confettiFall 2.6s ease-in forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(420px) rotate(540deg); }
}

/* ---------- Sidebar Dropdown Menu (kategori Notifikasi, dst) ---------- */
.sidebar-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.sidebar-dropdown-toggle:hover { background: var(--bg); color: var(--ink); }
.sidebar-dropdown-toggle .dropdown-chevron { transition: transform 0.2s ease; }
.sidebar-dropdown.dropdown-open .dropdown-chevron { transform: rotate(180deg); }
.sidebar-dropdown-menu {
  list-style: none;
  padding: 0.25rem 0 0.25rem 1.9rem;
  margin: 0;
}
.sidebar-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.sidebar-dropdown-menu li a:hover { background: var(--bg); color: var(--ink); }
.sidebar-dropdown-menu li a.active { background: #eef2ff; color: var(--primary-dark); font-weight: 600; }

.admin-theme .sidebar-dropdown-toggle { color: #cbd5e1; }
.admin-theme .sidebar-dropdown-toggle:hover { background: #1e293b; color: #fff; }
.admin-theme .sidebar-dropdown-menu li a { color: #94a3b8; }
.admin-theme .sidebar-dropdown-menu li a:hover { background: #1e293b; color: #fff; }
.admin-theme .sidebar-dropdown-menu li a.active { background: #312e81; color: #c7d2fe; }

/* ---------- Toast "Berhasil Menyalin" (copy feedback) ---------- */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.copy-toast.copy-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.copy-toast .copy-toast-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: copyCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes copyCheckPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Tombol copy nomor VA — warna eksplisit (bukan cuma andalkan currentColor turunan) supaya ikon selalu terlihat jelas */
.btn-copy-va {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.35);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;
}
.btn-copy-va:hover { transform: scale(1.08); border-color: var(--primary); background: #eef2ff; }
.btn-copy-va.btn-copy-success { background: var(--success-bg); border-color: #a7f3d0; }

/* ---------- Cara Pembayaran (instruksi) — halaman checkout ---------- */
.cara-bayar-box {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.4rem;
  overflow: hidden;
}
.cara-bayar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.cara-bayar-toggle span { display: flex; align-items: center; gap: 0.5rem; color: var(--primary); }
.cara-bayar-chevron { transition: transform 0.25s ease; color: var(--ink-faint); }
.cara-bayar-toggle-open .cara-bayar-chevron { transform: rotate(180deg); }
.cara-bayar-content {
  display: none;
  padding: 1rem;
  animation: caraBayarFadeIn 0.2s ease;
}
.cara-bayar-content.cara-bayar-open { display: block; }
@keyframes caraBayarFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cara-bayar-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.cara-bayar-tab-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.cara-bayar-tab-btn.cara-bayar-tab-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cara-bayar-steps {
  padding-left: 1.2rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.cara-bayar-steps li { margin-bottom: 0.3rem; }
