/* ===== Reset & Base ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --purple: #6B3FA0;
  --purple-light: #F3EEFA;
  --purple-border: #6B3FA0;
  --bg: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #666;
  --text-light: #999;
  --border: #E5E5E5;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%; font-family: var(--font);
  background: #EAEAEA; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== iPhone Frame (Desktop) ===== */
#iphone-frame {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(var(--frame-scale, 1));
  width: 393px; height: 852px;
  background: #1a1a1a; border-radius: 55px; padding: 12px;
  box-shadow: 0 0 0 2px #333, 0 0 0 4px #1a1a1a, 0 25px 80px rgba(0,0,0,0.4), inset 0 0 0 2px #2a2a2a;
  display: flex; flex-direction: column; align-items: center;
}
#iphone-screen {
  width: 100%; height: 100%; background: var(--bg);
  border-radius: 44px; overflow: hidden; position: relative;
}
#app { width: 100%; height: 100%; position: relative; overflow: hidden; }

/* ===== Mobile: Remove Frame ===== */
@media (max-width: 500px) {
  html, body { background: var(--bg); }
  #iphone-frame { position: fixed; top:0; left:0; transform:none; width:100%; height:100%; background:none; border-radius:0; padding:0; box-shadow:none; }
  #iphone-screen { border-radius: 0; height: 100%; }
  .status-bar { display: none !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
}
@media (display-mode: standalone) {
  #iphone-frame { position:fixed; top:0; left:0; transform:none; width:100%; height:100%; background:none; border-radius:0; padding:0; box-shadow:none; }
  #iphone-screen { border-radius:0; }
  .status-bar { display: none !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }
}
body.is-mobile .status-bar { display: none !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; }

/* ===== Screen Base ===== */
.screen {
  position: absolute; top:0; left:0; width:100%; height:100%;
  display: flex; flex-direction: column; background: var(--bg);
  opacity: 1; transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.screen.active { opacity:1; transform:translateX(0); pointer-events:all; z-index:10; }
.screen.exit-left { opacity:1; transform:translateX(-100%); pointer-events:none; }

/* ===== Status Bar ===== */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 8px; min-height: 44px; flex-shrink: 0;
}
.status-bar.dark { background: rgba(0,0,0,0.3); }
.status-time { font-size: 15px; font-weight: 600; }
.status-icons { display: flex; align-items: center; gap: 6px; }

/* ===== Screen Body ===== */
.screen-body {
  flex: 1; padding: 0 24px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Screen Footer ===== */
.screen-footer {
  padding: 12px 24px; padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  flex-shrink: 0;
}

/* ===== Purple Button ===== */
.btn-purple {
  width: 100%; padding: 16px; background: var(--purple); color: #fff;
  border: none; border-radius: 28px; font-size: 17px; font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-purple:active { background: #5A2E8F; transform: scale(0.98); }

/* ===== Powered By Footer ===== */
.powered-by {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 0 4px; font-size: 11px; color: var(--text-light);
}
.footer-logo { height: 33px; width: auto; object-fit: contain; }

/* ===== Screen Title ===== */
.screen-title {
  font-size: 24px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 24px;
}
.screen-title-left {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 20px;
}

/* ===== Screen 1: Document Cards ===== */
.doc-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 18px; margin-bottom: 14px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.doc-card.selected {
  border-color: var(--purple); background: var(--purple-light);
}
.doc-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.doc-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-light);
}
.doc-card-title { font-size: 18px; font-weight: 700; color: var(--text); flex: 1; }
.doc-card-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.4; }
.doc-card-bullets {
  list-style: none; padding: 0;
}
.doc-card-bullets li {
  font-size: 13px; color: var(--text-secondary); padding: 3px 0;
  padding-left: 16px; position: relative; line-height: 1.4;
}
.doc-card-bullets li::before {
  content: '•'; position: absolute; left: 4px; color: var(--purple);
}

/* ===== Radio Circle ===== */
.radio-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #CCC; flex-shrink: 0;
}
.radio-circle.checked { border: none; }
.radio-circle.checked svg { display: block; }

/* ===== Help Box ===== */
.help-box {
  font-size: 12px; color: var(--text-secondary); line-height: 1.5;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  margin-top: 16px;
}
.help-label { color: var(--purple); font-weight: 600; }

/* ===== Tab Toggle ===== */
.tab-toggle {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 24px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  font-family: var(--font); cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  border-color: var(--purple); color: var(--purple);
  background: var(--purple-light);
}
.tab-btn svg { opacity: 0.6; }
.tab-btn.active svg { opacity: 1; color: var(--purple); }

/* ===== Screen 2: Doc Type Options ===== */
.doc-type-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1.5px solid var(--border);
  border-radius: 12px; margin-bottom: 12px; cursor: pointer;
  transition: border-color 0.2s;
}
.doc-type-option.selected { border-color: var(--purple); }
.doc-type-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #F5F5F5; flex-shrink: 0;
}
.doc-type-option.selected .doc-type-icon { background: var(--purple-light); }
.doc-type-label { font-size: 16px; font-weight: 500; color: var(--text); flex: 1; }

/* ===== Screen 3: Header Bar ===== */
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; flex-shrink: 0;
}
.header-bar.dimmed { opacity: 0.3; pointer-events: none; }
.header-divider { height: 1px; background: var(--border); }
.header-divider.dimmed { opacity: 0.3; }
.dimmed { opacity: 0.3; pointer-events: none; }

.close-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #333; font-family: var(--font);
}
.header-logo-img { height: 28px; width: auto; object-fit: contain; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #333; font-family: var(--font);
  display: flex; align-items: center; gap: 4px;
}

/* ===== Screen 3: Verify Options ===== */
.verify-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1.5px solid var(--border);
  border-radius: 12px; margin-bottom: 0; cursor: pointer;
}
.verify-option.selected { border-color: var(--purple); }
.verify-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.verify-label { font-size: 15px; font-weight: 500; color: var(--text); flex: 1; }

.radio-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #CCC; flex-shrink: 0;
}
.radio-dot.selected {
  border: 6px solid var(--purple);
}

.or-divider {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; color: var(--text-light); font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.change-provider-link {
  display: block; text-align: center; color: var(--purple);
  font-size: 14px; font-weight: 500; margin: 16px 0;
  text-decoration: none;
}

.consent-text {
  font-size: 12px; color: var(--text-secondary); line-height: 1.6;
  text-align: center; margin-top: auto; padding-top: 20px;
}
.consent-text a { color: var(--purple); text-decoration: underline; }

/* ===== Screen 4: Wallet Modal Overlay ===== */

/* Screen 4 is a transparent overlay — override ALL screen base transitions */
.screen-wallet-overlay {
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none;
}
.screen-wallet-overlay.active {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: all;
}
.screen-wallet-overlay.exit-left {
  opacity: 1 !important;
  transform: none !important;
}

/* Dimming backdrop */
.wallet-backdrop {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0); z-index: 40;
  transition: background 0.38s ease;
}
.wallet-backdrop.open {
  background: rgba(0,0,0,0.35);
}

.wallet-modal {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  z-index: 50; max-height: 92%;
  overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 8px);
  transform: translateY(100%);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.wallet-modal.open {
  transform: translateY(0);
  opacity: 1;
}
.wallet-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; position: sticky; top: 0; background: #fff; z-index: 5;
}
.wallet-modal-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; color: var(--text);
}
.wallet-close {
  background: none; border: none; cursor: pointer; padding: 0;
}
.wallet-body { padding: 0 24px 16px; display: flex; flex-direction: column; }
.wallet-app-icon {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  margin: 0 auto 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #2D1560;
  display: flex; align-items: center; justify-content: center;
}
.wallet-app-logo {
  width: 80%; height: 80%; object-fit: contain;
}
.wallet-app-name {
  text-align: center; font-size: 16px; font-weight: 600;
  color: var(--text); margin-bottom: 20px;
}

.wallet-id-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #FAFAFA; border-radius: 12px;
  border: 1px solid #EEE; margin-bottom: 16px;
}
.wallet-id-info {}
.wallet-id-title { font-size: 15px; font-weight: 600; color: var(--text); }
.wallet-id-subtitle { font-size: 12px; color: var(--text-secondary); }

.wallet-info-box {
  background: #FFF9E6; border-radius: 12px;
  padding: 16px; margin-bottom: 16px;
}
.wallet-info-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 12px; line-height: 1.4;
}
.wallet-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wallet-info-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text);
}
.wallet-info-divider { height: 1px; background: #E8DFC0; margin: 14px 0; }
.wallet-info-disclaimer { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.share-id-section {
  position: relative; height: 80px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0;
}
.btn-share-id {
  position: absolute;
  background: #007AFF; color: #fff;
  border: none; border-radius: 20px;
  padding: 10px 32px; font-size: 15px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.01em;
}
.btn-share-id:active { opacity: 1.0; }
.share-id-lottie { position: absolute; width: 60px; height: 60px; }

.wallet-home-bar { display: none; }

/* ===== Screen 5: Camera Access ===== */
.x-close-btn {
  background: none; border: none; cursor: pointer;
  padding: 8px; position: absolute; top: 8px; right: 16px; z-index: 5;
}
.camera-access-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 80px;
}
.camera-icon-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: #F0F0F0; display: flex; align-items: center;
  justify-content: center; margin-bottom: 24px;
}
.camera-title {
  font-size: 26px; font-weight: 700; color: var(--text);
  margin-bottom: 16px; line-height: 1.3;
}
.camera-desc {
  font-size: 15px; color: var(--text-secondary); line-height: 1.5;
}
.camera-control-section {
  text-align: center; margin-top: auto; padding: 40px 0 20px;
}
.control-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.control-desc { font-size: 14px; color: var(--text-secondary); }

/* ===== Screen 7: Selfie Tips ===== */
.back-arrow {
  background: none; border: none; cursor: pointer; padding: 8px 0;
}
.back-arrow.light { padding: 8px; }
.selfie-tips { margin-top: 16px; }
.selfie-tip-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
}
.selfie-tip-icon {
  position: relative; width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.selfie-tip-icon svg:first-child { width: 48px; height: 48px; }
.tip-check {
  position: absolute; top: -2px; right: -4px;
}
.selfie-tip-text { font-size: 15px; color: var(--text); line-height: 1.4; }

/* ===== Screen 8: Selfie Camera ===== */
.screen-selfie-cam { background: #E8E8E8; }
.selfie-cam-header {
  padding: 4px 16px; flex-shrink: 0; z-index: 20; position: relative;
}
.selfie-cam-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; position: relative; overflow: hidden;
}
.selfie-banner {
  position: absolute;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  padding: 8px 20px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
  z-index: 20; white-space: nowrap;
  pointer-events: none;
}
.selfie-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34C759; flex-shrink: 0;
}
.selfie-oval-container {
  position: relative; width: 100%; flex: 1;
  display: flex; align-items: center; justify-content: center;
}
#selfie-video {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; z-index: -1;
}
#selfie-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2; background: #FFFFFF;
}
/* Face Visible mode: show mirrored video feed through transparent canvas */
.selfie-oval-container.face-visible #selfie-video {
  width: 100%; height: 100%; opacity: 1; z-index: 1;
  transform: scaleX(-1); object-fit: cover;
}
.selfie-oval-container.face-visible #selfie-canvas {
  background: transparent;
}
.selfie-loading {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 4; background: #FFFFFF;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.selfie-spinner {
  width: 36px; height: 36px; border: 3px solid #E0E0E0;
  border-top-color: #6B3FA0; border-radius: 50%;
  animation: selfie-spin 0.8s linear infinite;
}
.selfie-loading span {
  font-size: 14px; color: #888; font-weight: 500;
}
@keyframes selfie-spin {
  to { transform: rotate(360deg); }
}

.selfie-progress-container {
  position: absolute; bottom: 16px; left: 10%; width: 80%; height: 4px;
  background: rgba(0,0,0,0.1); border-radius: 2px; z-index: 20; overflow: hidden;
}
.selfie-progress-bar {
  height: 100%; width: 0%; background: #34C759;
  border-radius: 2px; transition: width 0.1s linear;
}

.selfie-cam-footer {
  padding: 8px 24px; padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  flex-shrink: 0; z-index: 20;
}

/* ===== Screen 9: Complete ===== */
.complete-screen {
  display: flex; align-items: center; justify-content: center;
}
.complete-content { text-align: center; padding: 24px; }
.success-checkmark { margin-bottom: 24px; }
.checkmark-ring {
  stroke-dasharray: 283; stroke-dashoffset: 283;
  animation: ringDraw 0.6s ease-out 0.2s forwards;
}
.checkmark-check {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: checkDraw 0.4s ease-out 0.7s forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }

.complete-title {
  font-size: 26px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; line-height: 1.3;
}
.complete-desc {
  font-size: 15px; color: var(--text-secondary); line-height: 1.5;
}

/* ===== Hamburger Button ===== */
.hamburger-btn {
  position: absolute; top: 14px; right: 20px; z-index: 50;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none; border-radius: 8px; padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.hamburger-btn span {
  display: block; width: 20px; height: 2px;
  background: #333; border-radius: 2px;
}
.hamburger-btn-blue { background: rgba(255,255,255,0.2); box-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.hamburger-btn-blue span { background: #fff; }

/* ===== Slide-out Drawer ===== */
#drawer-overlay {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(0,0,0,0); pointer-events: none;
  transition: background 0.35s ease;
}
#drawer-overlay.open {
  background: rgba(0,0,0,0); pointer-events: all;
}
#drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 82%; max-width: 300px;
  background: #fff; z-index: 101;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
#drawer.open { transform: translateX(0); }

#drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
#drawer-title {
  font-size: 18px; font-weight: 700; color: var(--text);
}
#drawer-close {
  background: none; border: none; cursor: pointer; padding: 0;
}
#drawer-list { padding: 12px 0; flex: 1; overflow-y: auto; }

.drawer-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item:active { background: #f5f5f5; }
.drawer-item.active { background: var(--purple-light); }

.drawer-item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--purple-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.drawer-item-text {
  display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.drawer-item-title {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3;
}
.drawer-item-desc {
  font-size: 12px; color: var(--text-secondary); line-height: 1.4;
}
.drawer-item-check { flex-shrink: 0; margin-top: 2px; }

/* ── Drawer: Implode Style picker ── */
#drawer-style-section {
  border-top: 1px solid var(--border);
  padding: 8px 0 12px;
}
.drawer-section-label {
  padding: 10px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}
.drawer-style-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.drawer-style-row:active { background: #f5f5f5; }
.drawer-style-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}
.drawer-style-radio.selected { border-color: var(--purple); }
.drawer-style-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0;
  transition: opacity 0.15s;
}
.drawer-style-radio.selected::after { opacity: 1; }
.drawer-style-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ===== Performance Toggle Section ===== */
#drawer-perf-section { border-top: 1px solid var(--border); padding: 8px 0 12px; }
.drawer-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.drawer-toggle-row:active { background: #f5f5f5; }
.drawer-toggle-label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}
.drawer-toggle-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 1px;
}
.drawer-toggle-switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: #ccc;
  flex-shrink: 0;
  transition: background 0.2s;
}
.drawer-toggle-switch.on { background: var(--purple); }
.drawer-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.drawer-toggle-switch.on .drawer-toggle-thumb { transform: translateX(16px); }

/* ===== Screen 10: NewBanc Sign In ===== */
.screen-newbanc {
  background: linear-gradient(160deg, #0A0F2E 0%, #0D2060 45%, #0A1A4A 100%);
  justify-content: space-between;
  overflow: hidden;
}
/* Animated background orbs */
.nb-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.nb-orb-1 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(226,0,116,0.35) 0%, transparent 70%);
  top: -60px; right: -60px;
  animation: orbFloat 7s ease-in-out infinite;
}
.nb-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(226,0,116,0.2) 0%, transparent 70%);
  top: 120px; left: -80px;
  animation: orbFloat 9s ease-in-out infinite reverse;
}
.nb-orb-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(226,0,116,0.18) 0%, transparent 70%);
  top: 200px; right: 20px;
  animation: orbFloat 11s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.08); }
}
.newbanc-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 32px 28px; position: relative; z-index: 1;
}
.newbanc-logo-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 36px;
}
.newbanc-wordmark {
  font-size: 28px; font-weight: 800; color: #E20074; letter-spacing: -0.5px;
}
.newbanc-headline {
  font-size: 30px; font-weight: 800; color: #fff;
  margin-bottom: 8px; text-align: center; letter-spacing: -0.5px;
}
.newbanc-sub {
  font-size: 15px; color: rgba(255,255,255,0.55); text-align: center;
}
.newbanc-form {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px 28px 0 0;
  padding: 32px 24px 20px;
  display: flex; flex-direction: column; gap: 18px;
  flex: 1; position: relative; z-index: 1;
}
.newbanc-field { display: flex; flex-direction: column; gap: 8px; }
.newbanc-label {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.newbanc-input-wrap {
  position: relative; display: flex; align-items: center;
}
.newbanc-input-icon {
  position: absolute; left: 14px; pointer-events: none;
}
.newbanc-input {
  width: 100%; padding: 14px 14px 14px 44px;
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 14px;
  font-size: 15px; font-family: var(--font); color: #fff;
  background: rgba(255,255,255,0.22); outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.newbanc-input::placeholder { color: rgba(255,255,255,0.4); }
.newbanc-input:focus { border-color: rgba(99,130,255,0.8); background: rgba(255,255,255,0.28); }
.newbanc-forgot-row {
  display: flex; justify-content: flex-end; margin-top: -6px;
}
.newbanc-forgot {
  font-size: 13px; color: #FF3D9A; font-weight: 600; cursor: pointer;
  animation: forgotPulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes forgotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.07); }
}
.newbanc-signin-btn {
  width: 100%; padding: 15px;
  background: #E20074; color: rgba(255,255,255,0.5);
  border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: var(--font);
  cursor: not-allowed; margin-top: 4px;
  opacity: 0.5;
}
.newbanc-footer {
  background: transparent; padding: 12px 28px 20px;
  display: flex; justify-content: center;
  position: relative; z-index: 1;
}
.hamburger-btn-white { background: rgba(255,255,255,0.12); box-shadow: none; border: 1px solid rgba(255,255,255,0.15); }
.hamburger-btn-white span { background: #fff; }

/* ===== Screen 11: Verify Identity (Forgot Password) ===== */
.vi-screen {
  background: #fff;
  display: flex; flex-direction: column;
}
.vi-header {
  padding: 24px 24px 0;
  display: flex; align-items: center; gap: 10px;
}
.vi-wordmark {
  font-size: 20px; font-weight: 800; color: #E20074; letter-spacing: -0.3px;
}
.vi-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 28px 16px; text-align: center;
}
.vi-icon-box {
  margin-bottom: 28px;
}
.vi-icon-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.vi-title {
  font-size: 22px; font-weight: 800; color: #1A2744;
  margin-bottom: 14px; line-height: 1.3;
}
.vi-subtitle {
  font-size: 13px; color: #6B7280;
  line-height: 1.6; margin-bottom: 24px;
}
.vi-mobile-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #1A3CFF;
  text-decoration: none; cursor: pointer;
}
.vi-footer {
  padding: 16px 24px 36px;
  display: flex; gap: 12px;
}
.vi-btn-decline {
  flex: 1; padding: 15px 0;
  background: #EF4444; color: #fff;
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.1s;
}
.vi-btn-decline:active { background: #DC2626; transform: scale(0.98); }
.vi-btn-accept {
  flex: 1; padding: 15px 0;
  background: #22C55E; color: #fff;
  border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.1s;
}
.vi-btn-accept:active { background: #16A34A; transform: scale(0.98); }

/* ===== Screen 12: FaceMesh for Biometric Recovery ===== */
/* Reuses screen-8 styles — just needs its own data-screen */

/* ===== Screen 13: Identity Verified + Reset Password ===== */
.screen-reset-password { background: #fff; }
.reset-field { display: flex; flex-direction: column; gap: 6px; }
.reset-label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.reset-input-wrap { position: relative; display: flex; align-items: center; }
.reset-input-icon { position: absolute; left: 14px; pointer-events: none; }
.reset-input {
  width: 100%; padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: var(--font); color: var(--text);
  background: #FAFAFA; outline: none;
  transition: border-color 0.2s;
}
.reset-input::placeholder { color: #aaa; }
.reset-input:focus { border-color: #E20074; background: #fff; }
.reset-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 32px 28px;
}
.reset-checkmark { margin-bottom: 20px; }
.reset-title {
  font-size: 26px; font-weight: 800; color: var(--text);
  margin-bottom: 8px; text-align: center;
}
.reset-subtitle {
  font-size: 14px; color: var(--text-secondary);
  text-align: center; line-height: 1.5;
}
.reset-form {
  background: #fff; padding: 8px 28px 32px;
  display: flex; flex-direction: column; gap: 18px; flex: 1;
}
.reset-divider {
  height: 1px; background: var(--border); margin-bottom: 8px;
}
.reset-footer {
  padding: 0 28px 32px;
}
.reset-submit-btn {
  width: 100%; padding: 15px;
  background: #E20074; color: #fff;
  border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.reset-submit-btn:active { background: #C0005F; transform: scale(0.98); }
.newbanc-footer-old {
  background: #fff; padding: 16px 28px 24px;
  display: flex; justify-content: center;
}

/* ===== Screen 14: NewBanc Dashboard ===== */
.screen-nb-dashboard {
  display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
}
.nb-dash-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 28px 24px; position: relative; z-index: 1;
}
.nb-dash-greeting {
  font-size: 15px; color: rgba(255,255,255,0.7);
  margin-bottom: 24px; font-weight: 500;
}
.nb-balance-card {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px; padding: 28px 40px; width: 100%;
  backdrop-filter: blur(12px);
}
.nb-balance-label {
  font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.nb-balance-amount {
  font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -1px;
  margin-bottom: 6px;
}
.nb-balance-sub {
  font-size: 11px; color: rgba(255,255,255,0.4);
}
.nb-dash-actions {
  display: flex; justify-content: center;
  padding: 0 28px; position: relative; z-index: 1;
}
.nb-send-btn {
  width: 100%; padding: 18px;
  background: #E20074; color: #fff;
  border: none; border-radius: 16px;
  font-size: 17px; font-weight: 700; font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer;
  animation: forgotPulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(226,0,116,0.45);
}
.nb-send-btn:active { transform: scale(0.97); }
.nb-recent-wrap {
  flex: 1; display: flex; flex-direction: column;
  padding: 20px 20px 0; position: relative; z-index: 1;
  overflow: hidden; min-height: 0;
}
.nb-recent-title {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px;
  flex-shrink: 0;
}
.nb-recent-list {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.07); border-radius: 18px;
  padding: 4px 0; overflow-y: auto; flex: 1;
}
.nb-recent-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
}
.nb-recent-info {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.nb-recent-name {
  font-size: 15px; font-weight: 600; color: #fff;
}
.nb-recent-date {
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.nb-recent-amount {
  font-size: 15px; font-weight: 700;
}
.nb-debit { color: #FF6B6B; }
.nb-credit { color: #4ADE80; }

/* ===== Screen 15: Amount Entry (CashApp-style) ===== */
.screen-nb-send {
  background: #fff; display: flex; flex-direction: column;
}
.nb-send-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 8px; position: relative;
}
.nb-send-title {
  font-size: 18px; font-weight: 700; color: var(--text);
}
.nb-amount-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 28px;
}
.nb-amount-display {
  font-size: 68px; font-weight: 800; color: var(--text);
  letter-spacing: -2px; line-height: 1; text-align: center;
}
.nb-amount-hint {
  font-size: 14px; color: var(--text-light);
  margin-top: 8px;
}
.nb-numpad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; padding: 0 8px;
}
.nb-numpad-key {
  background: none; border: none; font-family: var(--font);
  font-size: 26px; font-weight: 500; color: var(--text);
  padding: 18px 0; cursor: pointer; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.nb-numpad-key:active { background: rgba(0,0,0,0.07); }
.nb-numpad-sym { font-size: 20px; color: var(--text-secondary); }
.nb-pay-wrap {
  padding: 12px 20px 36px;
}
.nb-pay-btn {
  width: 100%; padding: 18px;
  background: #E20074; color: #fff;
  border: none; border-radius: 16px;
  font-size: 20px; font-weight: 800; font-family: var(--font);
  cursor: pointer; transition: background 0.2s, transform 0.1s, opacity 0.2s;
}
.nb-pay-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.nb-pay-btn:not(:disabled):active { background: #C0005F; transform: scale(0.98); }

/* ===== Screen 16: Contact List ===== */
.screen-nb-contacts {
  background: #fff; display: flex; flex-direction: column;
}
.nb-contact-list {
  flex: 1; overflow-y: auto; padding: 8px 0;
}
.nb-contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.nb-contact-item:active { background: #F5F5F5; }
.nb-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nb-contact-name {
  flex: 1; font-size: 16px; font-weight: 500; color: var(--text);
}
.nb-contact-chevron { flex-shrink: 0; }

/* ===== Screen 17: Authorize Funds Transfer ===== */
.nb-auth-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 32px 24px; text-align: center;
}
.nb-auth-title {
  font-size: 24px; font-weight: 800; color: #1A2744;
  line-height: 1.3; margin-bottom: 32px;
}

/* ===== Screen 19: Transfer Success ===== */
.screen-nb-success {
  background: #fff; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.nb-confetti-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 10;
}
.nb-plane-wrap {
  width: 240px; height: 200px; position: relative; margin-bottom: 8px;
}
.nb-plane-canvas {
  width: 240px; height: 200px;
}
.nb-success-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 36px 24px; text-align: center;
  position: relative; z-index: 1;
}
.nb-success-title {
  font-size: 26px; font-weight: 800; color: var(--text);
  margin-top: 24px; margin-bottom: 14px; line-height: 1.3;
}
.nb-success-sub {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.nb-success-footer {
  padding: 0 24px 40px; position: relative; z-index: 1;
}
.nb-success-btn {
  width: 100%; padding: 18px;
  background: #E20074; color: #fff;
  border: none; border-radius: 16px;
  font-size: 18px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.nb-success-btn:active { background: #C0005F; transform: scale(0.98); }

/* ===== Screen 20: What is a PrivacyKey ===== */
.screen-pk {
  background: #F4F5F7;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pk-header {
  background: #fff;
  padding-top: 22px; padding-bottom: 5px; padding-left: 20px; padding-right: 20px;
  height: 70px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid #E8E9EC;
  flex-shrink: 0; overflow: hidden;
}
.pk-logo {
  width: 180px; height: auto; object-fit: contain;
}
.pk-hamburger {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  margin-top: 10px; /* offset for status bar padding */
}
.pk-body {
  flex: 1; overflow-y: auto;
  padding: 20px 14px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pk-page-title {
  font-size: 26px; font-weight: 800; color: #111;
  letter-spacing: -0.5px; margin: 0 2px 4px;
}
/* Cards */
.pk-card {
  background: #1A1A2E;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.pk-card-label-row {
  margin-bottom: 10px;
}
.pk-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 4px 10px; border-radius: 20px;
}
.pk-badge-blue  { background: rgba(29,111,164,0.25); color: #60C3F7; }
.pk-badge-red   { background: rgba(192,57,43,0.25);  color: #FF7F7F; }
.pk-badge-green { background: rgba(26,122,60,0.25);  color: #5DD98A; }
.pk-badge-purple{ background: rgba(107,63,160,0.25); color: #C39FEE; }
.pk-badge-cyan  { background: rgba(0,188,212,0.22);  color: #4DD9EC; }
/* Mono code block */
.pk-code-block {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06); border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all; line-height: 1.5;
  margin-bottom: 0;
}
.pk-code-italic { font-style: italic; }
/* Color-matched code text per section */
.pk-code-blue   { color: #60C3F7; }
.pk-code-red    { color: #FF7F7F; }
.pk-code-green  { color: #5DD98A; }
.pk-code-purple { color: #C39FEE; }
.pk-code-cyan   { color: #4DD9EC; }
/* Colored geo group titles */
.pk-geo-gt-blue   { color: #60C3F7 !important; border-color: rgba(96,195,247,0.2) !important; }
.pk-geo-gt-green  { color: #5DD98A !important; border-color: rgba(93,217,138,0.2) !important; }
.pk-geo-gt-purple { color: #C39FEE !important; border-color: rgba(195,159,238,0.2) !important; }
.pk-geo-gt-red    { color: #FF7F7F !important; border-color: rgba(255,127,127,0.2) !important; }
/* Collapsible details/summary */
.pk-details {
  margin-top: 10px;
}
.pk-details[open] .pk-summary {
  margin-bottom: 12px;
}
.pk-summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  user-select: none;
}
.pk-summary::-webkit-details-marker { display: none; }
.pk-summary::after {
  content: '›';
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s;
  display: inline-block;
  transform: rotate(90deg);
}
.pk-details[open] .pk-summary::after {
  transform: rotate(270deg);
}
/* Title-style summary for "How They Work Together" */
.pk-summary-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5);
  letter-spacing: 0.7px;
  border-top: none; padding-top: 0;
}
.pk-details[open] .pk-summary-title {
  margin-bottom: 14px;
}
/* Two-column what/how row */
.pk-row {
  display: flex; gap: 0; align-items: stretch;
}
.pk-col {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 0 8px;
}
.pk-col:first-child { padding-left: 0; }
.pk-col:last-child  { padding-right: 0; }
.pk-divider-v {
  width: 1px; background: rgba(255,255,255,0.1); flex-shrink: 0; margin: 2px 0;
}
.pk-col-head {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pk-col-body {
  font-size: 11.5px; color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0;
}
/* How they work together */
.pk-section-title {
  display: block;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 14px;
}
.pk-steps {
  display: flex; flex-direction: column; gap: 14px;
}
.pk-step {
  display: flex; gap: 12px; align-items: flex-start;
}
.pk-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #6B3FA0; color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.pk-step-body {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.pk-step-head {
  font-size: 13px; font-weight: 700; color: #fff;
}
.pk-step-text {
  font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0;
}

/* ── Geolocation section ── */
.pk-geo-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 14px;
}
.pk-geo-sub-title {
  font-size: 13px; font-weight: 700; color: #fff;
  margin: 4px 0 8px;
}
.pk-geo-group-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 14px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Single key-value row */
.pk-kv {
  display: flex; flex-direction: column; gap: 2px;
}
.pk-kv-label {
  font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,0.38);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.pk-kv-value {
  font-size: 12.5px; color: rgba(255,255,255,0.82); line-height: 1.4;
}
.pk-kv-mono { font-family: 'Courier New', monospace; font-size: 11px; }
.pk-kv-na   { color: rgba(255,255,255,0.3); font-style: italic; }
/* Two-column key-value grid */
.pk-kv-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 10px;
  align-items: start;
}
.pk-kv-grid .pk-kv-label {
  padding-top: 1px;
}
/* Mini map */
.pk-map-wrap {
  margin-top: 14px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.pk-map {
  width: 100%; height: 160px;
  border: none; display: block;
}
.pk-map-pin-label {
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.7);
  font-size: 10px; font-family: 'Courier New', monospace;
  padding: 5px 10px; text-align: center;
}
