/* ==========================================================================
   ApexFin - Mobile App Viewport Stylesheet
   Designed to match native mobile banking & loan application layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0d3580;
  --primary-navy-dark: #09255c;
  --accent-cyan: #00d2ff;
  --accent-blue: #0066cc;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --bg-app: #f4f7fb;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-sub-blue: #a3c2fa;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-btn: 0 4px 14px rgba(13, 53, 128, 0.3);

  /* Dynamic Theme Variables */
  --card-gradient: linear-gradient(135deg, #091a3e 0%, #0d3580 50%, #06122d 100%);
  --card-border: rgba(0, 210, 255, 0.4);
  --card-glow: rgba(0, 210, 255, 0.25);
  --card-badge-bg: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
  --card-badge-color: #0f172a;
  --hero-gradient: linear-gradient(180deg, rgba(13, 53, 128, 0.45) 0%, rgba(9, 37, 92, 0.95) 100%);
  --cta-btn-gradient: linear-gradient(135deg, #0066cc 0%, #0d3580 100%);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0b1329;
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* ==========================================================================
   Mobile Viewport Simulation Container
   ========================================================================== */
.mobile-app-wrapper {
  width: 100%;
  max-width: 440px;
  height: 100vh;
  max-height: 920px;
  background-color: var(--bg-app);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   1. App Top Header Bar
   ========================================================================== */
.app-topbar {
  background-color: var(--primary-navy);
  color: var(--text-light);
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  border: none;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.topbar-btn:active {
  background: rgba(255, 255, 255, 0.15);
}

.notify-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--accent-rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.topbar-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* ==========================================================================
   2. Scrollable Content Body
   ========================================================================== */
.app-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 18px 90px;
  -webkit-overflow-scrolling: touch;
}

/* Brand Hero */
.app-hero-brand {
  text-align: center;
  padding: 12px 10px 22px;
}

.brand-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d3580 0%, #0066cc 100%);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 4px 15px rgba(13, 53, 128, 0.25);
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.brand-slogan {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 290px;
  margin: 0 auto 10px;
  line-height: 1.45;
}

.brand-tag-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f7ef;
  color: var(--accent-emerald);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Form Inputs Card */
.loan-inputs-card {
  background: transparent;
  margin-bottom: 18px;
}

.form-group-app {
  margin-bottom: 16px;
}

.app-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.input-money-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-money-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.input-money-wrap input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.input-money-wrap input::placeholder {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.95rem;
}

.currency-symbol {
  padding-right: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.input-range-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
  padding: 0 2px;
}

/* Fast Amount Chips */
.fast-chips-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip-item {
  flex: 1;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.15s;
}

.chip-item:hover, .chip-item.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

/* Select Box */
.select-box-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.select-box-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.select-box-wrap select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.85rem;
}

/* ==========================================================================
   Card 1: Navy Blue Information Card
   ========================================================================== */
.card-loan-info {
  background-color: var(--primary-navy);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(13, 53, 128, 0.25);
}

.card-info-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.info-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

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

.info-label {
  color: var(--text-sub-blue);
}

.info-val {
  font-weight: 700;
  color: var(--text-light);
}

/* ==========================================================================
   Card 2: White Repayment Summary Card
   ========================================================================== */
.card-repayment-summary {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.repay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 0.92rem;
}

.repay-label {
  color: var(--text-dark);
  font-weight: 500;
}

.repay-val {
  font-weight: 800;
  color: var(--text-dark);
}

.rate-green {
  color: #059669;
  font-size: 1.05rem;
}

.repay-action-row {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.btn-schedule-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-decoration: underline;
}

.btn-schedule-link:hover {
  color: #09255c;
}

/* Primary CTA Button */
.app-submit-container {
  padding-bottom: 12px;
}

.btn-confirm-loan {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-full);
  background: var(--cta-btn-gradient, var(--primary-navy));
  color: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s;
  display: block;
  text-align: center;
}

.btn-confirm-loan:active {
  transform: scale(0.98);
  background: var(--primary-navy-dark);
}

/* ==========================================================================
   3. Bottom Navigation Bar
   ========================================================================== */
.app-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  height: 100%;
  transition: color 0.15s;
}

.bottom-tab-item i {
  font-size: 1.25rem;
}

.bottom-tab-item.active, .bottom-tab-item:hover {
  color: var(--primary-navy);
}

/* ==========================================================================
   Modals & Bottom Sheet
   ========================================================================== */
.app-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.app-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-modal-sheet {
  width: 100%;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 14px 20px 30px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-modal-overlay.active .app-modal-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  margin: 0 auto 12px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.sheet-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sheet-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
}

.loan-summary-mini {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.form-field-sheet {
  margin-bottom: 14px;
}

.form-field-sheet label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-field-sheet input,
.form-field-sheet select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  outline: none;
}

.form-field-sheet input:focus,
.form-field-sheet select:focus {
  border-color: var(--accent-blue);
}

.sheet-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #059669;
  background: #ecfdf5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  line-height: 1.4;
}

.btn-sheet-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

/* Schedule Table */
.table-scroll-wrap {
  overflow-x: auto;
  max-height: 50vh;
}

.app-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: right;
}

.app-schedule-table th, .app-schedule-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-color);
}

.app-schedule-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
}

.app-schedule-table th:first-child, .app-schedule-table td:first-child {
  text-align: center;
}

/* Toast */
.app-toast {
  position: absolute;
  top: 76px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transform: translateY(-40px);
  opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
  text-align: center;
}

.app-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustment for actual mobile phones */
@media (max-width: 480px) {
  body {
    background-color: var(--bg-app);
  }
  .mobile-app-wrapper {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ==========================================================================
   Header User Badge & Auth Tabs Styles
   ========================================================================== */
.topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-user-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.auth-tabs-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.auth-tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.input-with-icon {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  gap: 10px;
  transition: border-color 0.2s;
}

.input-with-icon:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-with-icon i {
  color: #94a3b8;
  font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 0;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-send-otp {
  background: #0d3580;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-send-otp:active {
  opacity: 0.85;
}

/* User Profile Styles */
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.profile-avatar-uploader {
  position: relative;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.profile-avatar-uploader:hover .profile-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d3580 0%, #0066cc 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  overflow: hidden;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(13, 53, 128, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

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

.avatar-camera-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00d2ff;
  color: #0d3580;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}

.profile-avatar-uploader:hover .avatar-camera-overlay {
  background: #ffffff;
  color: #0066cc;
  transform: scale(1.1);
}

.btn-change-avatar-action {
  background: rgba(0, 102, 204, 0.08);
  color: #0066cc;
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-change-avatar-action:hover {
  background: #0066cc;
  color: #ffffff;
}

.profile-user-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.profile-user-info p {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 6px;
}

.status-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.user-loan-item-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-logout-user {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   Loan Status Tracker & Timeline Stepper Styles
   ========================================================================== */
.btn-create-new-loan-quick {
  background: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(13, 53, 128, 0.25);
  transition: all 0.2s;
}

.btn-create-new-loan-quick:hover {
  background: #09255c;
  transform: translateY(-1px);
}

.loan-lookup-card {
  margin-bottom: 18px;
}

.input-lookup-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px 6px 4px 14px;
  box-shadow: var(--shadow-card);
  gap: 10px;
}

.input-lookup-wrap i {
  color: #64748b;
  font-size: 0.9rem;
}

.input-lookup-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.btn-do-lookup {
  background: #0d3580;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.loan-tracker-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.tracker-id-badge {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0d3580;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tracker-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.pill-contacted {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.pill-approved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.pill-disbursed {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border: 1.5px solid #10b981;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.pill-rejected {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.tracker-amount-box {
  margin-bottom: 18px;
}

.tracker-amount-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tracker-amount-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d3580;
}

/* 4-Step Stepper Progress Bar */
.tracker-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 22px 0 20px;
}

.tracker-stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 auto 6px;
  transition: all 0.2s;
}

.step-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.step-node.completed .step-dot {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.step-node.completed .step-text {
  color: #059669;
  font-weight: 700;
}

.step-node.active .step-dot {
  background: #0d3580;
  border-color: #0d3580;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(13, 53, 128, 0.4);
}

.step-node.active .step-text {
  color: #0d3580;
  font-weight: 800;
}

/* Details summary */
.tracker-details-list {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.tracker-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.tracker-row span:first-child {
  color: #64748b;
}

.tracker-row span:last-child {
  font-weight: 700;
  color: var(--text-dark);
}

.admin-note-box {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 16px;
}

.tracker-btn-row {
  display: flex;
  gap: 10px;
}

.tracker-btn-row button {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   Linked Bank Account Component Styles
   ========================================================================== */
.bank-link-prompt-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px dashed #10b981;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.bank-prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.bank-prompt-desc {
  font-size: 0.84rem;
  color: #065f46;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-open-bank-link {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s;
}

.btn-open-bank-link:hover {
  background: #047857;
  transform: translateY(-1px);
}

.linked-bank-card {
  background: linear-gradient(135deg, #0d3580 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 6px 18px rgba(13, 53, 128, 0.25);
}

.linked-bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.linked-bank-name {
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-edit-bank {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.linked-bank-acc {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: #93c5fd;
}

.linked-bank-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #bfdbfe;
}

/* Disbursed Success Notification Card */
.disbursed-notification-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2);
}

.disbursed-notif-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.disbursed-check-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.disbursed-notif-title h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  line-height: 1.2;
}

.disbursed-trans-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: #047857;
  font-weight: 600;
}

.disbursed-amount-display {
  font-size: 1.6rem;
  font-weight: 900;
  color: #047857;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.disbursed-bank-info {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #065f46;
  line-height: 1.5;
}

.disbursed-bank-info div {
  margin-bottom: 2px;
}

/* ==========================================================================
   Electronic 2-Party Signed Contract & Digital Signature Pad
   ========================================================================== */
.btn-contract-action {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-contract-action.sign-pending {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

.btn-contract-action.sign-pending:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.btn-contract-action.signed {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #10b981;
}

.btn-contract-action.signed:hover {
  background: #d1fae5;
}

.btn-print-contract {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0d3580;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-print-contract:hover {
  background: #0d3580;
  color: #ffffff;
}

.contract-doc-paper {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 22px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Times New Roman", serif;
  color: #1e293b;
  line-height: 1.6;
  position: relative;
}

.contract-national-header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px double #cbd5e1;
}

.contract-national-header h4 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  margin-bottom: 3px;
}

.contract-national-header p {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.header-divider-star {
  font-size: 0.72rem;
  letter-spacing: 5px;
  color: #c2410c;
}

.contract-title-center {
  text-align: center;
  margin-bottom: 16px;
}

.contract-doc-logo-wrap {
  text-align: center;
  margin: 6px auto 12px;
}

.contract-doc-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 11px;
  border: 1.5px solid rgba(13, 53, 128, 0.16);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: inline-block;
  vertical-align: middle;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contract-doc-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.contract-doc-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0d3580;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.contract-code-tag {
  font-family: monospace;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 2px;
}

.contract-date-tag {
  font-size: 0.78rem;
  font-style: italic;
  color: #64748b;
}

.contract-intro-text {
  font-size: 0.85rem;
  font-style: italic;
  color: #475569;
  margin-bottom: 14px;
  line-height: 1.5;
  text-align: justify;
}

.contract-party-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #0d3580;
  border-radius: 6px;
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.party-label {
  font-weight: 800;
  font-size: 0.88rem;
  color: #0d3580;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.party-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.82rem;
}

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

.party-detail-row span:first-child {
  color: #64748b;
  min-width: 115px;
}

.party-detail-row span:last-child,
.party-detail-row strong {
  text-align: right;
  color: #0f172a;
}

.contract-terms-content {
  font-size: 0.84rem;
  color: #1e293b;
  margin: 16px 0;
  line-height: 1.6;
}

.contract-terms-content p {
  margin-bottom: 6px;
}

.contract-terms-content strong {
  color: #0d3580;
}

/* Dual Signatures Container */
.contract-dual-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed #cbd5e1;
}

@media (max-width: 540px) {
  .contract-dual-signatures {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.sig-block {
  text-align: center;
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 10px;
  position: relative;
}

.sig-head-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sig-role-sub {
  font-size: 0.74rem;
  font-style: italic;
  color: #64748b;
  margin-bottom: 10px;
}

/* Official Circular Red Digital Stamp */
.official-stamp-container {
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.red-stamp-circle {
  width: 108px;
  height: 108px;
  border: 2.5px solid #dc2626;
  border-radius: 50%;
  color: #dc2626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  box-shadow: inset 0 0 0 1.5px rgba(220, 38, 38, 0.4);
  background: radial-gradient(circle, rgba(220, 38, 38, 0.04) 0%, rgba(220, 38, 38, 0.12) 100%);
  user-select: none;
  position: relative;
  margin: 0 auto;
  opacity: 0.92;
}

.stamp-top-arc {
  font-size: 0.55rem;
  font-weight: 800;
  text-align: center;
  padding: 0 4px;
  line-height: 1.1;
  text-transform: uppercase;
}

.stamp-inner-badge {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-top: 1px solid #dc2626;
  border-bottom: 1px solid #dc2626;
  padding: 2px 4px;
  margin: 3px 0;
}

.stamp-bot-arc {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.handwritten-ceo-sig {
  font-family: 'Brush Script MT', 'Dancing Script', 'Caveat', cursive;
  font-size: 1.8rem;
  color: #0d3580;
  font-weight: 700;
  margin-top: -30px;
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
}

.sign-timestamp-tag {
  font-size: 0.7rem;
  color: #64748b;
  font-family: monospace;
  margin-top: 6px;
}

/* Party B Signature Canvas & Display */
.signature-canvas-container {
  background: #ffffff;
  border: 1.5px dashed #0284c7;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  touch-action: none;
}

#borrower-sig-canvas {
  display: block;
  width: 100%;
  height: 110px;
  background: transparent;
  cursor: crosshair;
}

.canvas-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.78rem;
  color: #94a3b8;
  pointer-events: none;
  user-select: none;
  font-style: italic;
  white-space: nowrap;
}

.sig-actions-row {
  display: flex;
  gap: 6px;
}

.btn-pad-clear {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-pad-clear:hover {
  background: #e2e8f0;
}

.btn-pad-confirm {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-pad-confirm:hover {
  background: #0369a1;
}

.signed-signature-box {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  margin-bottom: 6px;
}

#img-borrower-sig {
  max-height: 75px;
  max-width: 100%;
  object-fit: contain;
}

.btn-resign-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 6px;
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  #contract-modal,
  #contract-modal * {
    visibility: visible;
  }
  #contract-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent !important;
    display: block !important;
  }
  .app-modal-sheet {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .sheet-handle,
  .sheet-header,
  .sig-actions-row,
  .btn-resign-link,
  .btn-print-contract {
    display: none !important;
  }
  .contract-doc-paper {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   Live Online Signature Tools & Quick Contract Card
   ========================================================================== */
.online-contract-quick-card {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transition: all 0.2s ease;
}

.online-contract-quick-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.22);
}

.quick-contract-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0d3580 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 53, 128, 0.2);
}

.quick-contract-text {
  flex: 1;
}

.quick-contract-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.live-dot {
  font-size: 0.52rem;
  color: #10b981;
  animation: pulseLiveDot 1.5s infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

.quick-contract-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0c4a6e;
  line-height: 1.3;
  margin-bottom: 2px;
}

.quick-contract-text p {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
}

.quick-contract-btn {
  background: #0284c7;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.canvas-live-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.sig-tools-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ink-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.ink-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.ink-btn.active {
  border-color: #38bdf8;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.4);
}

.btn-pad-confirm-live {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0d3580 100%);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s;
}

.btn-pad-confirm-live:hover {
  background: linear-gradient(135deg, #0369a1 0%, #09255c 100%);
  transform: translateY(-1px);
}

/* Floating Realtime Incoming Disbursement Toast */
.disburse-incoming-toast {
  position: absolute;
  top: 72px;
  left: 14px;
  right: 14px;
  background: linear-gradient(135deg, #059669 0%, #0d3580 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 85;
  cursor: pointer;
  animation: slideDownToast 0.35s ease-out;
}

@keyframes slideDownToast {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-pulse-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fbbf24;
  flex-shrink: 0;
  animation: bellRing 1.8s infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-14deg); }
  50% { transform: rotate(0); }
}

.toast-notif-body {
  flex: 1;
}

.toast-notif-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.toast-notif-body strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #ffffff;
}

.toast-notif-body span {
  font-size: 0.74rem;
  color: #e0f2fe;
}

.toast-arrow {
  font-size: 0.85rem;
  color: #a7f3d0;
}

/* In-Contract Live Disbursement Alert */
.contract-disburse-ready-alert {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #10b981;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.disburse-ready-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.disburse-ready-text h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}

.disburse-ready-text p {
  font-size: 0.76rem;
  color: #047857;
  line-height: 1.35;
}

/* ==========================================================================
   Auto Welcome & Auth Gateway Modal Styles
   ========================================================================== */
#auto-welcome-modal {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.welcome-gateway-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #0b1a3a 0%, #060e22 100%);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 210, 255, 0.15);
  color: #ffffff;
  overflow: hidden;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  animation: welcomeScaleUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes welcomeScaleUp {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.welcome-header-glow {
  position: relative;
  padding: 24px 20px 14px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.18), transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.welcome-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.welcome-brand-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00d2ff 0%, #0066cc 100%);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.welcome-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.welcome-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.welcome-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  padding: 0 10px;
}

.welcome-body-content {
  padding: 16px 18px 20px;
  overflow-y: auto;
}

.welcome-prompt-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.18);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.welcome-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-choice-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.welcome-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.15);
}

.welcome-choice-card.choice-register {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12) 0%, rgba(13, 53, 128, 0.35) 100%);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.1);
}

.welcome-choice-card.choice-register:hover {
  border-color: #00d2ff;
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.25);
}

.choice-rec-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(135deg, #00d2ff, #0066cc);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.4);
}

.choice-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.choice-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.choice-icon-wrap.icon-cyan {
  background: linear-gradient(135deg, #00d2ff, #0084ff);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.choice-icon-wrap.icon-navy {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.choice-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.choice-info p {
  font-size: 0.76rem;
  color: #94a3b8;
}

.choice-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-benefits li {
  font-size: 0.74rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.choice-benefits li i {
  color: #10b981;
  font-size: 0.68rem;
}

.btn-choice-action {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-choice-reg {
  background: linear-gradient(135deg, #00d2ff 0%, #0066cc 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.35);
}

.btn-choice-reg:hover {
  filter: brightness(1.1);
}

.btn-choice-log {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-weight: 600;
}

.btn-choice-log:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.welcome-footer-row {
  margin-top: 14px;
  text-align: center;
}

.btn-welcome-guest {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  transition: color 0.2s;
}

.btn-welcome-guest:hover {
  color: #38bdf8;
}

/* ==========================================================================
   Desktop Showcase Layout (Laptop / Desktop Presentation)
   ========================================================================== */
.desktop-app-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 1380px;
  min-height: 100vh;
  padding: 24px 16px;
  margin: 0 auto;
}

.desktop-left-column,
.desktop-right-column {
  display: none;
  width: 320px;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 1080px) {
  .desktop-left-column,
  .desktop-right-column {
    display: flex;
  }
}

.desktop-center-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.desktop-brand-showcase {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 24px;
  padding: 24px 20px;
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.brand-avatar-box-lg {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #00d2ff 0%, #0066cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.badge-national-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.desktop-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.desktop-hero-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.desktop-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: #00d2ff;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
}

.desktop-security-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
}

.desktop-side-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.side-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #0066cc);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-guide-item strong {
  display: block;
  font-size: 0.86rem;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.step-guide-item p {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.card-zalo-support {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 53, 128, 0.2) 100%);
}

.zalo-avatar-glow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0068ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 104, 255, 0.5);
}

.btn-zalo-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0068ff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
  transition: all 0.2s;
}

.btn-zalo-desktop:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.link-admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.link-admin-switch:hover {
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Mobile Status Bar (Real-Time iPhone/Android Header Bar)
   ========================================================================== */
.mobile-status-bar {
  height: 24px;
  background: var(--primary-navy);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 0.74rem;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-notch-pill {
  width: 70px;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 9999px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battery-icon-wrap {
  width: 22px;
  height: 11px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  padding: 1px;
  display: flex;
  align-items: center;
  position: relative;
}

.battery-icon-wrap::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: #ffffff;
  border-radius: 0 1px 1px 0;
}

.battery-level {
  width: 90%;
  height: 100%;
  background: #10b981;
  border-radius: 1px;
}

/* Topbar Actions Right */
.topbar-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-zalo-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 104, 255, 0.25);
  border: 1px solid rgba(0, 104, 255, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.topbar-zalo-btn:hover {
  background: #0068ff;
  color: #ffffff;
}

.online-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border: 1.5px solid var(--primary-navy);
  border-radius: 50%;
}

/* ==========================================================================
   Luxury Hero Showcase Banner
   ========================================================================== */
.hero-showcase-container {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(13, 53, 128, 0.2);
}

.hero-image-backdrop {
  background-image: var(--hero-gradient, linear-gradient(180deg, rgba(13, 53, 128, 0.45) 0%, rgba(9, 37, 92, 0.95) 100%)), url('../assets/images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  padding: 22px 16px 18px;
  text-align: center;
  color: #ffffff;
  transition: background 0.3s ease;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-headline {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.highlight-cyan {
  color: var(--accent-cyan, #00d2ff);
  text-shadow: 0 0 16px var(--accent-cyan, rgba(0, 210, 255, 0.6));
  transition: color 0.3s ease;
}

.hero-subtext {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-trust-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trust-chip {
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Live Marquee Ticker */
.disburse-live-ticker {
  background: #061129;
  border-top: 1px solid rgba(0, 210, 255, 0.2);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ticker-label {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.live-pulse {
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-track-wrap {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerMarquee 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerMarquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   VIP Platinum Virtual Credit Card Display
   ========================================================================== */
.vip-credit-card {
  position: relative;
  background: var(--card-gradient, linear-gradient(135deg, #091a3e 0%, #0d3580 50%, #06122d 100%));
  border: 1.5px solid var(--card-border, rgba(0, 210, 255, 0.4));
  border-radius: var(--radius-lg, 20px);
  padding: 18px 20px;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 25px var(--card-glow, rgba(0, 210, 255, 0.15));
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-glass-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(0, 210, 255, 0.25)) 0%, transparent 70%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.vip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vip-card-brand {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-badge-tier {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--card-badge-bg, linear-gradient(135deg, #ffd700 0%, #d4af37 100%));
  color: var(--card-badge-color, #0f172a);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.vip-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.emv-chip {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e6b800 0%, #ffdf73 50%, #b38600 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.emv-chip::after {
  content: '';
  position: absolute;
  inset: 4px 6px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
}

.contactless-icon {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

.vip-amount-display {
  margin-bottom: 14px;
}

.vip-amt-label {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.vip-amt-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #00d2ff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.5);
}

.vip-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.vip-holder-box span,
.vip-valid-box span {
  font-size: 0.62rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 1px;
}

.vip-holder-box {
  min-width: 0;
  max-width: 58%;
}

.vip-holder-box strong {
  font-size: 0.82rem;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: 800;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vip-holder-box strong.name-highlight {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 20px rgba(56, 189, 248, 0.4);
  transform: scale(1.04);
}

.vip-valid-box strong {
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.vip-napas-logo {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   Range Slider & Fast Chips
   ========================================================================== */
.range-slider-wrap {
  margin: 10px 0 12px;
}

.range-slider-wrap input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  transition: background 0.2s;
}

.range-slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #0066cc);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
  border: 2px solid #ffffff;
  transition: transform 0.1s;
}

.range-slider-wrap input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 4px;
}

.badge-rate-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Repayment Breakdown Card
   ========================================================================== */
.card-repayment-breakdown {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.breakdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d3580;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-badge {
  font-size: 0.7rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.breakdown-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.cell-label {
  font-size: 0.74rem;
  color: #64748b;
  display: block;
  margin-bottom: 2px;
}

.cell-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0d3580;
}

.breakdown-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 10px 14px;
}

.total-pay-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
}

.btn-schedule-link-styled {
  background: #ffffff;
  border: 1px solid #10b981;
  color: #059669;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-schedule-link-styled:hover {
  background: #059669;
  color: #ffffff;
}

/* ==========================================================================
   Primary Magnetic CTA Button
   ========================================================================== */
.btn-confirm-loan-premium {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d2ff 0%, #0066cc 100%);
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.22s;
}

.btn-confirm-loan-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.55);
}

.btn-confirm-loan-premium:active {
  transform: translateY(0);
}

.btn-shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btnShineSweep 3.2s infinite;
}

@keyframes btnShineSweep {
  0% { left: -100%; }
  30%, 100% { left: 180%; }
}

.submit-note-secure {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   Commitments, Banks & Reviews
   ========================================================================== */
.commitments-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.commitments-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0d3580;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.commitments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.commit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.commit-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.commit-icon-box.red { background: #fee2e2; color: #ef4444; }
.commit-icon-box.green { background: #ecfdf5; color: #10b981; }
.commit-icon-box.gold { background: #fef3c7; color: #f59e0b; }

.commit-item strong {
  font-size: 0.78rem;
  color: #0f172a;
  display: block;
}

.commit-item p {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.3;
}

.partner-banks-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.partner-banks-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0d3580;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bank-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
}

.reviews-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.reviews-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.verified-tag {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulseGlow 1.6s infinite;
}

@keyframes livePulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Continuous Auto-Scrolling Viewport & Track */
.disbursed-ticker-viewport {
  position: relative;
  height: 300px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.disbursed-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: verticalDisburseScroll 36s linear infinite;
}

.disbursed-ticker-track:hover,
.disbursed-ticker-viewport:active .disbursed-ticker-track {
  animation-play-state: paused;
}

@keyframes verticalDisburseScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.disburse-feed-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 13px;
  transition: all 0.2s ease;
}

.disburse-feed-card:hover {
  background: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.feed-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.feed-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0d3580 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(13, 53, 128, 0.15);
  flex-shrink: 0;
}

.feed-user-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.feed-user-city {
  font-weight: 500;
  color: #64748b;
  font-size: 0.74rem;
}

.feed-time-tag {
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.feed-status-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.feed-amount-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 5px 9px;
  margin-bottom: 7px;
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.feed-amt-label {
  color: #64748b;
  font-size: 0.72rem;
}

.feed-amt-value {
  color: #0284c7;
  font-weight: 800;
  font-size: 0.84rem;
}

.feed-bank-pill {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feed-comment {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  font-style: normal;
}

/* ==========================================================================
   Simulated Native Mobile SMS Push Notification Banner
   ========================================================================== */
.simulated-sms-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  width: 92%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.simulated-sms-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sms-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.sms-banner-body {
  flex: 1;
  min-width: 0;
}

.sms-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.sms-banner-header strong {
  font-size: 0.76rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.4px;
}

.sms-time {
  font-size: 0.68rem;
  color: #64748b;
}

.sms-banner-text {
  font-size: 0.78rem;
  color: #f1f5f9;
  line-height: 1.35;
}

.btn-sms-copy {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-sms-copy:hover {
  background: #38bdf8;
  color: #0f172a;
}

.btn-send-otp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* ==========================================================================
   VIEW 3: Customer Digital Wallet & Withdraw Screen Styles
   ========================================================================== */
.wallet-hero-card {
  background: linear-gradient(135deg, #091a3e 0%, #0d3580 50%, #042154 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 20px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

.wallet-card-pattern {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.wallet-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.wallet-brand-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-kyc-status {
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kyc-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.wallet-balance-wrap {
  margin-bottom: 18px;
}

.wallet-bal-label {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.wallet-bal-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-bal-amount {
  font-size: 1.95rem;
  font-weight: 900;
  color: #00d2ff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.btn-toggle-balance {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-toggle-balance:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.wallet-limit-note {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 6px;
}

.wallet-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-wallet-action {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.btn-wallet-withdraw {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-wallet-withdraw:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-wallet-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.btn-wallet-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.wallet-action-icon {
  font-size: 1.25rem;
}

.wallet-action-info strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.wallet-action-info span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}

.wallet-section-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.wallet-sec-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-sec-title i {
  color: #0066cc;
}

.wallet-bank-card-display {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
}

.wallet-bank-linked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-bank-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-bank-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0d3580;
  color: #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(13, 53, 128, 0.2);
}

.wallet-bank-details h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.wallet-bank-details p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  font-family: monospace;
}

.btn-change-bank {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
  border: 1px solid rgba(0, 102, 204, 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-change-bank:hover {
  background: #0066cc;
  color: #fff;
}

.wallet-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .wallet-features-grid {
    grid-template-columns: 1fr;
  }
}

.wallet-feature-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-feature-item:hover {
  border-color: #00d2ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.wf-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.wf-text {
  flex: 1;
  min-width: 0;
}

.wf-text strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
  line-height: 1.25;
}

.wf-text span {
  font-size: 0.68rem;
  color: #64748b;
  display: block;
}

.wf-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
}

.wallet-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.wallet-tx-item:last-child {
  border-bottom: none;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-icon-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.tx-icon-minus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.tx-desc strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.tx-desc span {
  font-size: 0.68rem;
  color: #94a3b8;
}

.tx-right {
  text-align: right;
}

.tx-amt-plus {
  font-size: 0.92rem;
  font-weight: 800;
  color: #10b981;
}

.tx-amt-minus {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.tx-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  display: block;
}

/* ==========================================================================
   Dynamic Theme Preset Adaptations for Customer App
   ========================================================================== */
body[data-theme-preset="agri"] .online-contract-quick-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

body[data-theme-preset="agri"] .online-contract-quick-card:hover {
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

body[data-theme-preset="red"] .online-contract-quick-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fca5a5;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

body[data-theme-preset="red"] .online-contract-quick-card:hover {
  border-color: #ef4444;
}

body[data-theme-preset="gold"] .online-contract-quick-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

body[data-theme-preset="gold"] .online-contract-quick-card:hover {
  border-color: #f59e0b;
}

body[data-theme-preset="purple"] .online-contract-quick-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #d8b4fe;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
}

body[data-theme-preset="purple"] .online-contract-quick-card:hover {
  border-color: #a855f7;
}

body[data-theme-preset="dark"] .online-contract-quick-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Dark Mode Theme Support */
body[data-theme-mode="dark"] .mobile-app-wrapper {
  background-color: var(--bg-app, #080d1a) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body[data-theme-mode="dark"] .card-repayment-summary,
body[data-theme-mode="dark"] .select-box-wrap,
body[data-theme-mode="dark"] .setting-group-box,
body[data-theme-mode="dark"] .support-contact-grid {
  background-color: var(--bg-card, #0f172a);
  border-color: #1e293b;
}

body[data-theme-mode="dark"] .repay-label,
body[data-theme-mode="dark"] .repay-val,
body[data-theme-mode="dark"] .select-box-wrap select,
body[data-theme-mode="dark"] .app-view-screen {
  color: var(--text-dark, #f8fafc);
}

body[data-theme-mode="dark"] .app-bottom-nav {
  background: #0f172a;
  border-top-color: #1e293b;
}

/* ==========================================================================
   Smart Viewport Auto-Fit & Scaling Engine (Tự Động Cân Chỉnh Vừa Khung)
   ========================================================================== */
.desktop-autofit-bar {
  display: none;
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 5px 12px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 210, 255, 0.12);
  transition: all 0.3s ease;
}

@media (min-width: 601px) {
  .desktop-autofit-bar {
    display: flex;
  }
}

.autofit-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
}

.autofit-btn-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-fit-mode {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-fit-mode:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-fit-mode.active {
  background: var(--primary-navy, #065f46);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.topbar-btn-fit {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.topbar-btn-fit:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

/* Mobile Screens (Dưới 600px): Tràn Viền Tự Động 100% Khít Màn Hình Điện Thoại */
@media (max-width: 600px) {
  body {
    background-color: var(--bg-app, #f4f7fb) !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: flex-start !important;
    min-height: 100dvh !important;
  }

  .desktop-app-container {
    width: 100% !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .desktop-center-phone {
    width: 100% !important;
    height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobile-app-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
  }

  .app-scroll-body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 15px)) !important;
  }

  .app-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Mode Full Expand (Mở rộng thoải mái trên máy tính) */
body.mode-full-expand .desktop-center-phone {
  width: 100% !important;
  max-width: 580px !important;
}

body.mode-full-expand .mobile-app-wrapper {
  max-width: 100% !important;
  height: 96vh !important;
  max-height: 96vh !important;
  border-radius: 22px !important;
  transform: none !important;
}

/* Smooth Auto-Fit Animation Transitions */
.desktop-center-phone, .mobile-app-wrapper {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s ease, height 0.25s ease, max-height 0.25s ease;
}

/* ==========================================================================
   Floating Zalo CSKH Widget (Rung lắc phát sáng hỗ trợ nhanh)
   ========================================================================== */
.floating-zalo-btn {
  position: absolute;
  bottom: 74px;
  right: 14px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 132, 255, 0.55);
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  user-select: none;
}

.floating-zalo-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #00d2ff;
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.floating-zalo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084ff 0%, #00c6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 132, 255, 0.6);
  animation: zaloPulseShake 3.2s infinite ease-in-out;
}

.floating-zalo-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 132, 255, 0.6);
  animation: zaloRingWave 2s infinite ease-out;
  pointer-events: none;
}

.floating-zalo-ring.ring-2 {
  animation-delay: 0.8s;
}

@keyframes zaloRingWave {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes zaloPulseShake {
  0%, 100% {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale(1.08) rotate(-7deg);
  }
  15%, 25% {
    transform: scale(1.08) rotate(7deg);
  }
  30% {
    transform: scale(1) rotate(0deg);
  }
}

.floating-zalo-pill {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.zalo-pill-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.zalo-pill-status {
  font-size: 0.65rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.zalo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseLiveDot 1.5s infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}






