/* ==========================================================================
   LOGINPAGE 20 - FINTECH QRIS WALLET (E-Wallet Dashboard + Horizontal Carousel)
   ========================================================================== */
:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --border-light: #e2e8f0;
  --blue-primary: #2563eb;
  --sky-accent: #0284c7;
  --emerald: #10b981;
  --rose: #e11d48;
  --hero-grad: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --ink-main: #0f172a;
  --ink-sub: #475569;
  --ink-muted: #64748b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-sans); background: var(--bg-page); color: var(--ink-main); min-height: 100vh; min-height: 100dvh; line-height: 1.5; }
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-page); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 0.35s, visibility 0.35s; }
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.pay-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(37,99,235,0.16); border-top-color: var(--blue-primary); animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pay-banner { background: var(--hero-grad); padding: 18px 16px 64px; color: #fff; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.pay-banner-inner { max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pay-logo { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-logo img { width: 26px; height: 26px; object-fit: contain; }
.pay-title { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-sub { font-size: 11px; color: rgba(255,255,255,0.84); }
.pay-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: rgba(255,255,255,0.18); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pay-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.pay-shell { width: 100%; max-width: 460px; margin: -44px auto 0; padding: 0 16px 40px; }
.pay-shell.centered { margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 16px; }

/* 4-Icon E-Wallet Quick Action Dock */
.wallet-dock {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px;
  background: #fff; border: 1px solid var(--border-light); border-radius: 20px;
  box-shadow: 0 16px 36px -12px rgba(15,23,42,0.14); margin-bottom: 14px;
}
.wallet-act-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px;
  border-radius: 12px; background: transparent; border: none; color: var(--ink-sub);
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.wallet-act-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--blue-primary);
}
.wallet-act-btn.active .wallet-act-icon { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.wallet-act-btn.active { color: var(--blue-primary); }

.pay-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 20px; padding: 18px; box-shadow: 0 12px 28px -12px rgba(15,23,42,0.08); margin-bottom: 16px; }
.pay-field { margin-bottom: 12px; }
.pay-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-sub); margin-bottom: 5px; }
.pay-input-wrap { position: relative; display: flex; align-items: center; }
.pay-input-icon { position: absolute; left: 14px; color: var(--blue-primary); font-size: 14px; pointer-events: none; }
.pay-input { width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-light); color: var(--ink-main); font-family: inherit; font-size: 14px; font-weight: 600; outline: none; }
.pay-input:focus { background: #fff; border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
.pay-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--ink-muted); cursor: pointer; padding: 6px; }

.btn-pay-primary { width: 100%; height: 44px; border: none; border-radius: 12px; background: var(--hero-grad); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-pay-secondary { width: 100%; height: 40px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border-light); color: var(--ink-main); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-pay-danger { width: 100%; height: 44px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: var(--rose); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.pay-scanner { background: var(--bg-soft); border: 1px dashed #93c5fd; border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; }
.pay-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 14px; background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.3); display: flex; align-items: center; justify-content: center; color: var(--blue-primary); font-size: 24px; overflow: hidden; }
.pay-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--blue-primary); animation: scanLine 2s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.pay-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #fff1f2; border: 1px solid #fecdd3; color: var(--rose); font-size: 12px; font-weight: 600; }
.pay-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 11px; color: var(--ink-muted); }
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }

/* Horizontal Swipeable Wallet Promo Cards */
.pay-sec-head { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.pay-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-bottom: 16px; }
.pay-pkg-card { flex: 0 0 180px; scroll-snap-align: start; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.pay-pkg-card.popular { border-color: var(--blue-primary); background: linear-gradient(180deg, #eff6ff, #fff); }
.pay-pkg-badge { font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 9999px; background: var(--bg-page); color: var(--ink-sub); display: inline-block; width: fit-content; }
.pay-pkg-card.popular .pay-pkg-badge { background: var(--blue-primary); color: #fff; }

.pay-faq-item { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.pay-faq-btn { width: 100%; background: none; border: none; padding: 11px 14px; color: var(--ink-main); font-family: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pay-faq-item.open .pay-faq-btn i { transform: rotate(180deg); color: var(--blue-primary); }
.pay-faq-ans { display: none; padding: 0 14px 12px; font-size: 11.5px; color: var(--ink-sub); }
.pay-faq-item.open .pay-faq-ans { display: block; }

.pay-meta-box { background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 12px; padding: 11px 14px; font-size: 11.5px; display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.pay-meta-row { display: flex; justify-content: space-between; align-items: center; }
.pay-meta-row span:first-child { color: var(--ink-sub); }
.pay-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }
.pay-footer { text-align: center; font-size: 11px; color: var(--ink-muted); margin-top: 12px; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: #10b981; color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; box-shadow: 0 10px 24px rgba(16,185,129,0.35); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,0.65); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-pay { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--border-light); border-radius: 22px; padding: 20px; }
.qris-box { background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 14px; padding: 12px; text-align: center; margin: 12px 0; }
.qris-box img { width: 145px; height: 145px; object-fit: contain; margin: 6px auto; display: block; }
