:root {
  /* Luxury Fintech Palette — Deep Forest Obsidian, Emerald & Warm Champagne */
  --brand-obsidian: #051c17;
  --brand-deep: #064e3b;
  --brand-primary: #047857;
  --brand-vivid: #059669;
  --brand-bright: #10b981;
  --brand-mint: #ecfdf5;
  --brand-mint-border: #a7f3d0;
  --brand-gold: #d4a843;
  --brand-gold-soft: #fef9e7;

  /* Surfaces & Neutrals */
  --bg-backdrop: #e6eeea;
  --bg-shell: #f4f7f5;
  --bg-card: #ffffff;
  --bg-subtle: #eef3f0;
  --border-light: #e2eae6;
  --border-input: #cbd7d2;

  /* Typography */
  --text-main: #0c1f1a;
  --text-secondary: #3b524b;
  --text-muted: #647b74;
  --text-light: #94a8a2;

  /* Semantic */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #d97706;
  --warning-bg: #fffbeb;

  /* Elevation & Radii */
  --shadow-xs: 0 1px 3px rgba(6, 30, 24, 0.05);
  --shadow-sm: 0 4px 14px rgba(6, 30, 24, 0.06);
  --shadow-md: 0 10px 28px rgba(6, 30, 24, 0.1);
  --shadow-brand: 0 8px 24px rgba(5, 150, 105, 0.28);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 20% 10%, #d8eae2 0%, #e9f0ed 45%, #dde6e2 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg-shell);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 20px 60px rgba(5, 28, 23, 0.16);
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* =========================================================
   Top Header
   ========================================================= */
.app-header {
  background: linear-gradient(135deg, var(--brand-obsidian) 0%, var(--brand-deep) 58%, var(--brand-primary) 100%);
  color: #ffffff;
  padding: 12px 18px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(5, 28, 23, 0.16);
}

.header-home-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-page-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.1px;
}

.user-greeting {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.greeting-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2px;
}

.user-phone {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.notif-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  position: relative;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.18s ease, transform 0.12s ease;
}

.notif-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notif-btn:active {
  transform: scale(0.95);
}

.bell-icon {
  width: 21px;
  height: 21px;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border-radius: 50%;
  border: 1.8px solid var(--brand-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.notif-dot.hidden {
  opacity: 0;
  transform: scale(0);
}

/* =========================================================
   Main Content & Tabs
   ========================================================= */
.app-content {
  flex: 1;
  padding-bottom: 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadePanel 0.2s ease;
}

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

/* =========================================================
   Home Tab — Ticker, Carousel, Quick Loan CTA, Features
   ========================================================= */
.ticker-wrap {
  padding: 14px 16px 12px;
}

.ticker-pill {
  background: var(--bg-card);
  border: 1px solid var(--brand-mint-border);
  border-radius: 999px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--brand-deep);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-xs);
}

.ticker-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.9); }
}

.ticker-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-variant-numeric: tabular-nums;
}

.ticker-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

/* Hero Carousel */
.carousel-section {
  padding: 0 16px;
}

.carousel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 186px;
  background: var(--brand-obsidian);
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.slide-img-2 { filter: saturate(1.06) brightness(0.95); }
.slide-img-3 { filter: contrast(1.05) brightness(0.94); }
.slide-img-4 { filter: brightness(0.96); }

.slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 28, 23, 0.08) 0%, rgba(5, 28, 23, 0.78) 38%, rgba(5, 28, 23, 0.94) 100%);
  color: #ffffff;
  padding: 20px 16px 13px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
}

.carousel-text-slide {
  width: 100%;
  height: 100%;
  padding: 22px 22px 18px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.carousel-text-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.24) 0%, transparent 56%);
  pointer-events: none;
}

.carousel-text-slide h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.carousel-text-slide p {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: #cbd8d3;
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.carousel-dots .dot.active {
  width: 30px;
  background: var(--brand-vivid);
}

/* Quick Loan CTA */
.cta-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 16px 18px;
}

.quick-loan-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-vivid) 65%, var(--brand-bright) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.quick-loan-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.34);
}

.quick-loan-btn:active {
  transform: scale(0.985);
}

.piggy-icon {
  width: 22px;
  height: 22px;
}

/* Feature Cards */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px;
}

.feature-card {
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 14px 16px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-card:hover {
  border-color: var(--brand-mint-border);
  box-shadow: var(--shadow-sm);
}

.feature-text {
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-mint);
  border: 1px solid #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Trust Footer */
.trust-footer {
  padding: 24px 16px 12px;
  text-align: center;
}

.badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-img {
  max-height: 36px;
  max-width: 105px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.copyright-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================================
   Bottom Navigation
   ========================================================= */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-light);
  height: 66px;
  padding: 6px 10px;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(5, 28, 23, 0.05);
}

.nav-item {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item:hover:not(.active) {
  background: var(--bg-subtle);
  color: var(--brand-deep);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-vivid) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.nav-icon {
  width: 21px;
  height: 21px;
}

/* =========================================================
   Wallet Tab
   ========================================================= */
.wallet-page {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.balance-box {
  background: linear-gradient(140deg, var(--brand-obsidian) 0%, var(--brand-deep) 56%, var(--brand-primary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 22px 20px 20px;
  min-height: 138px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(5, 28, 23, 0.24);
}

.balance-box::before {
  content: '';
  position: absolute;
  top: -42px;
  right: -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.balance-box::after {
  content: '';
  position: absolute;
  bottom: -48px;
  left: -24px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

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

.balance-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.2px;
}

.eye-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.eye-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.balance-amount {
  position: relative;
  z-index: 1;
  text-align: right;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-top: 20px;
  font-variant-numeric: tabular-nums;
}

.withdraw-money-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-vivid) 55%, var(--brand-bright) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.14s ease, filter 0.15s ease;
}

.withdraw-money-btn:hover {
  filter: brightness(1.04);
}

.withdraw-money-btn:active {
  transform: scale(0.985);
}

.loan-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
}

.loan-app-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-subtle);
}

.loan-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
}

.loan-app-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-light);
}

.loan-app-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.loan-app-label svg {
  color: var(--brand-vivid);
}

.loan-app-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.order-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  max-width: 210px;
  text-align: center;
  word-break: break-word;
}

.wallet-status-desc {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-shell);
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  white-space: pre-line;
}

.partner-banks-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-xs);
}

.partner-banks-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  cursor: pointer;
}

/* =========================================================
   Profile Tab
   ========================================================= */
.profile-page {
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credit-gauge-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.credit-gauge {
  width: 152px;
  height: 152px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gauge-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  text-align: center;
  line-height: 1.15;
}

.gauge-kicker {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.9px;
  margin-bottom: 3px;
}

.gauge-score {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.gauge-label {
  margin-top: 6px;
  background: var(--brand-mint);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}

.profile-phone-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: -2px;
}

/* Account Verification Card */
.verification-card {
  background: linear-gradient(135deg, #f0fdf7 0%, #e6faf0 100%);
  border: 1px solid var(--brand-mint-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
}

.verification-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-deep);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(5, 150, 105, 0.14);
}

.verification-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 2px 10px;
}

.verification-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--brand-mint-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.verification-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 500;
}

.verification-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.verify-now-btn {
  background: var(--brand-vivid);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.24);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.verify-now-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.verify-now-btn:disabled {
  background: #d1fae5;
  color: var(--brand-deep);
  box-shadow: none;
  cursor: default;
}

/* Profile Service & Setting Menus */
.psec-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding-left: 4px;
  margin-bottom: -2px;
}

.phub-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.75px;
  margin-bottom: 2px;
  padding-left: 4px;
}

.phub-card-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.phub-row-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bg-subtle);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.phub-row-btn:last-child {
  border-bottom: none;
}

.phub-row-btn:hover {
  background: #f8fbfa;
}

.phub-row-btn:active {
  background: var(--brand-mint);
}

.pmenu-row {
  padding: 15px 16px;
}

#tab-profile .pmenu-row svg {
  color: var(--brand-vivid);
  flex-shrink: 0;
}

.pmenu-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.phub-chevron {
  font-size: 20px;
  color: var(--text-light);
  line-height: 1;
}

.lang-pill {
  background: var(--brand-mint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-mint-border);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

#tab-profile .logout-row,
#tab-profile .logout-row svg,
#tab-profile .logout-row .pmenu-label {
  color: var(--danger);
}

#tab-profile .logout-row:hover {
  background: var(--danger-bg);
}

/* =========================================================
   Quick Loan Fullscreen ("Choose a loan")
   ========================================================= */
.quickloan-screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--bg-shell);
  z-index: 40;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.quickloan-screen.open {
  display: flex;
}

.quickloan-top {
  background: linear-gradient(140deg, var(--brand-obsidian) 0%, var(--brand-deep) 58%, var(--brand-primary) 100%);
  color: #ffffff;
  padding: 14px 18px 22px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 10px 26px rgba(5, 28, 23, 0.2);
}

.quickloan-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.quickloan-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.quickloan-back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.quickloan-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.quickloan-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.quickloan-amount-input {
  width: 100%;
  height: 54px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 16px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  outline: none;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.quickloan-amount-input:focus {
  border-color: var(--brand-bright);
}

.quickloan-amount-input:disabled {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-secondary);
  cursor: default;
  opacity: 0.92;
}

.quickloan-slider:disabled {
  opacity: 0.55;
  cursor: default;
}

.period-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.period-btn.active:disabled {
  opacity: 1;
}

.quickloan-amount-input::placeholder {
  color: var(--text-light);
  font-weight: 500;
  font-size: 17px;
}

.quickloan-slider {
  width: 100%;
  margin: 14px 0 6px;
  accent-color: var(--brand-bright);
  cursor: pointer;
  height: 6px;
}

.quickloan-limits {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.period-btn {
  height: 40px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.period-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

.period-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand-deep);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.quickloan-bottom {
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loan-info-card {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-sm);
}

.loan-info-title {
  text-align: left;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-subtle);
}

.loan-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--bg-subtle);
}

.loan-info-row:last-child {
  border-bottom: none;
}

.loan-info-row > span:last-child {
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.monthly-badge {
  background: var(--brand-mint);
  color: var(--brand-primary) !important;
  border: 1px solid var(--brand-mint-border);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13.5px;
}

.loan-confirm-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-vivid) 65%, var(--brand-bright) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.14s ease, filter 0.15s ease;
}

.loan-confirm-btn:hover {
  filter: brightness(1.04);
}

.loan-confirm-btn:active {
  transform: scale(0.985);
}

.loan-confirm-btn:disabled {
  background: #cbd7d2;
  color: #4b635b;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.loan-locked-banner {
  width: 100%;
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 12px 15px;
  color: #92400e;
}

.loan-locked-title {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 3px;
}

.loan-locked-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #78350f;
}

.agreement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.agreement-row input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-vivid);
  cursor: pointer;
}

.agreement-text a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.agreement-text a:hover {
  text-decoration: underline;
}

.risk-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   Sub-screens (Identify / KYC / Personal Info / Bank / Signature)
   ========================================================= */
.identify-screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--bg-shell);
  z-index: 45;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.identify-screen.open {
  display: flex;
}

.identify-header {
  background: linear-gradient(135deg, var(--brand-obsidian) 0%, var(--brand-deep) 58%, var(--brand-primary) 100%);
  padding: 12px 16px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(5, 28, 23, 0.14);
}

.identify-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.identify-back-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.identify-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.identify-body {
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.identify-subtitle {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
}

.kyc-upload-list {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.kyc-upload-box {
  width: 100%;
  height: 132px;
  background: var(--bg-card);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border: 1.8px dashed var(--border-input);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
}

.kyc-upload-box:hover {
  border-color: var(--brand-vivid);
  background: var(--brand-mint);
}

.kyc-upload-box.uploaded {
  border-style: solid;
  border-color: var(--brand-vivid);
  background: var(--brand-mint);
}

.kyc-upload-box.locked {
  cursor: default;
  pointer-events: none;
  border-style: solid;
  border-color: var(--border-light);
}

.info-locked-banner {
  width: 100%;
  background: var(--warning-bg);
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
  text-align: center;
}

.pfield input:disabled,
.pfield select:disabled,
.pfield textarea:disabled {
  background: #f8fafc;
  color: #334155;
  cursor: default;
  opacity: 1;
}

.sig-locked-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}

/* Bank Details Anti-Screenshot Protection */
.no-screenshot-zone {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.bank-protected-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bank-protected-wrap.blurred #bankAccountForm {
  filter: blur(18px);
  opacity: 0.15;
  pointer-events: none;
}

.bank-shield-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.bank-watermark-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  opacity: 0.08;
  transform: rotate(-22deg) scale(1.25);
}

.bank-watermark-line {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  white-space: nowrap;
}

.bank-privacy-shield {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(5, 20, 17, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bank-privacy-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  max-width: 310px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bank-privacy-card strong {
  font-size: 16px;
  color: var(--text-main);
}

.bank-privacy-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

@media print {
  #bankAccountScreen,
  #bankAccountScreen * {
    display: none !important;
    visibility: hidden !important;
  }
}

.kyc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.kyc-placeholder svg {
  stroke: var(--brand-vivid);
}

.kyc-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identify-continue-btn {
  width: 100%;
  max-width: 340px;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-vivid) 65%, var(--brand-bright) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: transform 0.14s ease, filter 0.15s ease;
}

.identify-continue-btn:hover {
  filter: brightness(1.04);
}

.identify-continue-btn:active {
  transform: scale(0.985);
}

/* Personal Information Form (Identify Step 2 & Bank Account) */
.personal-form-body {
  padding: 18px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-section-title {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
  padding: 8px 12px;
  background: var(--brand-mint);
  border-left: 3.5px solid var(--brand-vivid);
  border-radius: 8px;
  margin-bottom: 4px;
}

.pfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pfield label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pfield label svg {
  color: var(--brand-vivid);
  flex-shrink: 0;
}

.pfield input,
.pfield select,
.pfield textarea {
  width: 100%;
  border: 1.4px solid var(--border-input);
  border-radius: 11px;
  background: var(--bg-card);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pfield input,
.pfield select {
  height: 44px;
  padding: 0 13px;
}

.pfield textarea {
  padding: 11px 13px;
  resize: vertical;
  min-height: 80px;
}

.pfield input::placeholder,
.pfield textarea::placeholder {
  color: var(--text-light);
}

.pfield input:focus,
.pfield select:focus,
.pfield textarea:focus {
  border-color: var(--brand-vivid);
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.14);
}

.upload-status-wrap {
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-status-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.upload-progress-bar {
  width: 100%;
  height: 22px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.upload-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-bright) 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Signature Screen */
.signature-body {
  padding: 18px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sig-summary-card {
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-obsidian) 0%, var(--brand-deep) 58%, var(--brand-primary) 100%);
  color: #ffffff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.sig-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.sig-pill-value,
.sig-pill-btn {
  min-width: 128px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.sig-pill-btn {
  cursor: pointer;
  background: #ffffff;
  color: var(--brand-deep);
  border-color: #ffffff;
  transition: transform 0.12s ease;
}

.sig-pill-btn:active {
  transform: scale(0.97);
}

.sig-instruction {
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 16px 0 12px;
}

.sig-pad-wrap {
  width: 100%;
  height: 196px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px dashed var(--border-input);
  position: relative;
  overflow: hidden;
}

.sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.sig-reset-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--danger);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Verification Completed Screen */
.verified-done-body {
  flex: 1;
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  text-align: center;
}

.verified-illustration {
  margin-top: 6px;
}

.verified-check-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-done-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-main);
}

.verified-congrats {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-deep);
}

.verified-sub {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 270px;
}

/* =========================================================
   Personal Information Hub Screen
   ========================================================= */
#personalHubScreen {
  z-index: 42;
  background: var(--bg-shell);
}

.phub-body {
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
}

.phub-profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.phub-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-mint);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.phub-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.22);
}

.phub-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.phub-avatar-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-vivid);
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.phub-username {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.phub-phone {
  font-size: 13.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

.phub-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.phub-verified-pill #phubShieldIcon {
  color: #16c762;
  flex-shrink: 0;
}

.phub-verified-pill.unverified {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

.phub-verified-pill.unverified #phubShieldIcon {
  color: #94a3b8;
}

#personalHubScreen .phub-card-group {
  background: linear-gradient(145deg, var(--brand-obsidian) 0%, var(--brand-deep) 60%, var(--brand-primary) 100%);
  border: none;
  box-shadow: 0 12px 30px rgba(5, 28, 23, 0.22);
}

#personalHubScreen .phub-row-btn {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

#personalHubScreen .phub-row-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

#personalHubScreen .phub-row-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.phub-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phub-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phub-row-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.phub-row-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

#personalHubScreen .phub-chevron {
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   Withdraw Processing Screen (Banking Receipt Style)
   ========================================================= */
#withdrawProcessingScreen {
  background: var(--bg-shell);
  z-index: 52;
}

.wproc-body {
  padding: 18px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wproc-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.wproc-pulse-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.wproc-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  animation: wprocPulse 1.8s ease-out infinite;
}

@keyframes wprocPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.wproc-icon-circle {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-obsidian) 0%, var(--brand-deep) 55%, var(--brand-vivid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
}

.wproc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-mint);
  border: 1px solid var(--brand-mint-border);
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.wproc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-vivid);
  animation: blinkDot 1.2s ease-in-out infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.wproc-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.wproc-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 290px;
}

.wproc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.wproc-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-subtle);
}

.wproc-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.wproc-steps::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border-light);
}

.wproc-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.wproc-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wproc-step.done .wproc-step-dot {
  background: var(--brand-bright);
}

.wproc-step.active .wproc-step-dot {
  background: var(--brand-mint);
  border: 2px solid var(--brand-vivid);
}

.wproc-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand-vivid);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

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

.wproc-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wproc-step-text strong {
  font-size: 13.5px;
  color: var(--text-main);
}

.wproc-step.pending .wproc-step-text strong {
  color: var(--text-muted);
}

.wproc-step-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.wproc-receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wproc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.wproc-row strong {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wproc-row.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--border-input);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 700;
}

.wproc-row.total strong {
  font-size: 16.5px;
  color: var(--brand-primary);
  font-weight: 800;
}

.wproc-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =========================================================
   Modals, OTP & Notifications
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 28, 23, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 20px 18px 26px;
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(5, 28, 23, 0.2);
  animation: slideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-subtle);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.close-btn:hover {
  background: var(--border-light);
}

.info-card {
  background: var(--bg-shell);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.ag-contract-heading {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.contract-lines-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-line-item {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.contract-line-item strong {
  color: var(--text-main);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ag-clauses-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ag-clause-text {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ag-unified-doc {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 16px;
}

.ag-doc-divider {
  border: none;
  border-top: 1px dashed var(--border-input);
  margin: 14px 0;
}

.ag-sig-attach {
  margin-top: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ag-sig-img {
  max-height: 92px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.kyc-input {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1.4px solid var(--border-input);
  background: #ffffff;
  padding: 0 13px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
  outline: none;
}

.kyc-input:focus {
  border-color: var(--brand-vivid);
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.14);
}

/* OTP Withdraw Form */
.otp-form {
  display: flex;
  flex-direction: column;
}

.otp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.otp-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.otp-input {
  flex: 1;
  height: 46px;
  border: 1.5px solid var(--border-input);
  border-radius: 11px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 6px;
  text-align: center;
  color: var(--text-main);
  outline: none;
  font-variant-numeric: tabular-nums;
}

.otp-input:focus {
  border-color: var(--brand-vivid);
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.14);
}

.otp-resend-btn {
  height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1.5px solid var(--brand-vivid);
  background: var(--brand-mint);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.otp-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.otp-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 8px;
}

.submit-loan-btn {
  height: 48px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-vivid) 65%, var(--brand-bright) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.submit-loan-btn:hover {
  filter: brightness(1.05);
}

.submit-loan-btn:active {
  transform: scale(0.985);
}

/* Notifications */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--bg-shell);
}

.notif-item.unread {
  border-color: var(--brand-mint-border);
  background: var(--brand-mint);
}

.notif-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.notif-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}

.notif-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(5, 28, 23, 0.94);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(5, 28, 23, 0.28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Desktop Device Framing Polish */
@media (min-width: 480px) {
  body {
    padding: 16px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 32px);
    border-radius: 26px;
    border: 1px solid rgba(6, 78, 59, 0.1);
  }

  .quickloan-screen,
  .identify-screen {
    top: 16px;
    bottom: 16px;
    border-radius: 26px;
  }
}

/* Clean Minimalist Personal Information Form */
.clean-personal-form {
  background: #ffffff;
  padding: 20px 18px 34px;
  gap: 14px;
}

.clean-sec-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.clean-sec-heading::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-vivid);
  flex-shrink: 0;
}

.clean-pfield label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.clean-pfield input {
  width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1.2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 13.5px;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.clean-pfield input::placeholder {
  color: #94a3b8;
}

.clean-pfield input:focus {
  border-color: var(--brand-vivid);
  box-shadow: 0 0 0 3px var(--brand-mint);
}

.peso-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.peso-prefix {
  position: absolute;
  left: 13px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}

.peso-input-wrap input {
  padding-left: 30px;
}

/* Clean Minimalist ID Verification Screen */
.clean-identify-body {
  background: #ffffff;
  padding: 18px 18px 34px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.clean-identify-body .pfield,
.clean-identify-body .doc-photos-head,
.clean-identify-body .kyc-upload-list,
.clean-identify-body .kyc-guidelines-card {
  width: 100%;
  max-width: none;
}

.clean-identify-body .kyc-upload-box {
  width: 100%;
  max-width: none;
}

.doc-photos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.doc-photos-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.doc-photos-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 9px;
}

.clean-kyc-box {
  min-height: 156px;
  background: #fafcff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: none;
}

.clean-kyc-box:hover:not(.locked) {
  border-color: var(--brand-vivid);
  background: var(--brand-mint);
}

.clean-kyc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.kyc-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #ca8a04;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.kyc-box-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.kyc-box-sub {
  font-size: 11.5px;
  color: #64748b;
  max-width: 220px;
  line-height: 1.4;
}

.kyc-select-pill {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.kyc-guidelines-card {
  background: #f4f8ff;
  border: 1px solid #e2ecff;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 4px;
}

.kyc-guidelines-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.kyc-guidelines-head svg {
  color: #1e3a8a;
  flex-shrink: 0;
}

.kyc-guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kyc-guidelines-list li {
  position: relative;
  padding-left: 14px;
  font-size: 11.8px;
  color: #475569;
  line-height: 1.45;
}

.kyc-guidelines-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d97706;
}
