/* ==========================================================================
   Rastriya Banijya Bank KYC Re-Registration & Renewal Portal - Master Stylesheet
   Authentic Bank Website Design with Exact Screenshot Form & Logo
   ========================================================================== */

:root {
  --primary-burgundy: #1a2d5a;
  --primary-wine: #233c77;
  --primary-crimson: #3054a2;
  --primary-deep: #254388;
  --primary-bright: #3d66c5;

  --header-gradient: linear-gradient(135deg, #3054a2 0%, #2c4c99 40%, #424f93 75%, #6d4d7e 100%);
  --button-gradient: linear-gradient(90deg, #3054a2 0%, #254388 100%);
  --button-gradient-hover: linear-gradient(90deg, #3d66c5 0%, #2c4c99 100%);

  --bg-page: #f0f4fa;
  --bg-card: #ffffff;
  --bg-input-tint: #edf2fc;
  --bg-step-inactive: #edf2fa;
  --bg-summary-card: #edf2fc;

  --text-dark: #1f2937;
  --text-heading: #1a2d5a;
  --text-muted: #6b7280;
  --text-step-inactive: #374151;
  --text-step-active: #ffffff;

  --border-field: #d1d5db;
  --border-focus: #3054a2;
  --border-otp-focus: #1a2d5a;

  --success-green: #22c55e;
  --success-green-dark: #16a34a;
  --success-pill-bg: #f0fdf4;
  --success-pill-border: #bbf7d0;

  --shadow-card: 0 20px 45px -10px rgba(26, 45, 90, 0.14), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 8px 20px -4px rgba(48, 84, 162, 0.4);
  --shadow-active-step: 0 3px 8px rgba(26, 45, 90, 0.35);

  --radius-card: 24px;
  --radius-field: 12px;
  --radius-btn: 14px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-page);
  background-image:
    radial-gradient(at 10% 10%, rgba(48, 84, 162, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(109, 77, 126, 0.06) 0px, transparent 50%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Rastriya Banijya Bank Top Official Navigation Bar
   ========================================================================== */
.bank-top-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 12px 24px;
  width: 100%;
  z-index: 100;
}

.bank-nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bank-primary-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-star {
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary-burgundy);
}

.brand-tagline {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.nav-right-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #475569;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  color: var(--primary-crimson);
}

.security-badge {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Main Layout & Centered Portal Card
   ========================================================================== */
.main-layout {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px 48px 16px;
  width: 100%;
}

.portal-card-wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* Main KYC Form Card */
.kyc-card {
  background: var(--bg-card);
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   Header Banner (Rastriya Banijya Bank)
   ========================================================================== */
.card-header {
  background: var(--header-gradient);
  position: relative;
  padding: 16px 22px 16px 22px;
  color: #ffffff;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #1a2d5a;
}

.header-watermark {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.header-watermark svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.investor-relation-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.96);
}

/* Framed Rastriya Banijya Bank Logo Badge */
.bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.3px solid rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.card-logo-img {
  height: 30px;
  max-width: 145px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bank-name {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: #ffffff;
}

/* ==========================================================================
   Stepper Navigation
   ========================================================================== */
.stepper-section {
  padding: 24px 20px 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.step-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-pills {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-item {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--bg-step-inactive);
  color: var(--text-step-inactive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  cursor: default;
}

.step-item.active {
  background: var(--primary-burgundy);
  color: var(--text-step-active);
  box-shadow: var(--shadow-active-step);
  transform: scale(1.06);
}

.step-item.completed {
  background: #8b1836;
  color: #ffffff;
}

/* ==========================================================================
   Card Body & Dynamic Step Views
   ========================================================================== */
.card-body {
  padding: 14px 26px 30px 26px;
  position: relative;
  min-height: 480px;
}

.step-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInStep 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography for Step Screens */
.form-title {
  color: var(--text-heading);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  margin-top: 8px;
  margin-bottom: 22px;
  text-align: left;
  letter-spacing: -0.3px;
}

.view-heading {
  color: var(--text-heading);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.view-subheading {
  color: var(--text-muted);
  font-size: 14.5px;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.4;
}

/* ==========================================================================
   Form Input Components
   ========================================================================== */
.input-group {
  margin-bottom: 16px;
  position: relative;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  padding: 13px 16px;
}

.input-wrapper input::placeholder {
  color: #6b7280;
  font-weight: 400;
  opacity: 0.95;
}

/* 1. Bordered Style (Username, Father name) */
.input-wrapper.border-field {
  border: 1.5px solid var(--border-field);
  border-radius: var(--radius-field);
  background: #ffffff;
}

.input-wrapper.border-field:focus-within {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 3px rgba(158, 10, 48, 0.12);
}

/* 2. Tinted Style (Mobile, Password) */
.input-wrapper.tinted-field {
  background: var(--bg-input-tint);
  border-radius: var(--radius-field);
  border: 1.5px solid transparent;
}

.input-wrapper.tinted-field:focus-within {
  background: #ffffff;
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 3px rgba(158, 10, 48, 0.12);
}

/* Mobile Country Code Prefix */
.phone-field {
  padding-left: 14px;
}

.phone-field input {
  padding-left: 10px;
}

.country-prefix {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.field-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 6px 0 10px;
}

/* Password Toggle Icon Button */
.password-field input {
  padding-right: 44px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.toggle-password-btn:hover {
  color: var(--primary-crimson);
  background: rgba(0, 0, 0, 0.04);
}

.hidden {
  display: none !important;
}

/* 3. PIN Group (Underline Style) */
.pin-group {
  margin-top: 20px;
  margin-bottom: 20px;
}

.custom-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.input-wrapper.underline-field {
  border-bottom: 1.5px solid var(--border-field);
  border-radius: 0;
  background: transparent;
}

.input-wrapper.underline-field input {
  padding: 8px 4px 8px 4px;
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 700;
}

.input-wrapper.underline-field:focus-within {
  border-bottom-color: var(--primary-deep);
}

.pin-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.info-icon {
  color: #6b7280;
  flex-shrink: 0;
}

/* Error States */
.input-wrapper.has-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  animation: shakeField 0.3s ease;
}

@keyframes shakeField {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

.field-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
  font-weight: 500;
  text-align: left;
  padding-left: 2px;
}

.field-error.visible {
  display: block;
}

/* ==========================================================================
   Terms & Disclaimers
   ========================================================================== */
.terms-disclaimer {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.45;
  margin-top: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.legal-link {
  color: #111827;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.legal-link:hover {
  color: var(--primary-crimson);
}

/* ==========================================================================
   CTA Submit Buttons (Crimson Gradient)
   ========================================================================== */
.submit-action-btn {
  width: 100%;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.submit-action-btn:hover {
  background: var(--button-gradient-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px -4px rgba(48, 84, 162, 0.45);
}

.submit-action-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px -2px rgba(48, 84, 162, 0.3);
}

.arrow-icon,
.button-check-icon,
.home-icon {
  transition: transform 0.2s ease;
}

.submit-action-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   STEP 2: Processing Screen Styles
   ========================================================================== */
.user-summary-card {
  background: var(--bg-summary-card);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
  text-align: left;
}

.summary-row {
  display: flex;
  align-items: center;
  font-size: 14.5px;
  line-height: 1.6;
}

.summary-label {
  font-weight: 700;
  color: var(--primary-burgundy);
  width: 85px;
  flex-shrink: 0;
}

.summary-value {
  color: #1f2937;
  font-weight: 600;
}

/* Big Countdown Display */
.big-countdown-display {
  font-family: var(--font-brand);
  font-size: 72px;
  font-weight: 800;
  color: var(--primary-burgundy);
  text-align: center;
  line-height: 1;
  margin: 10px 0 18px 0;
  letter-spacing: -1px;
  animation: tickPop 1s ease infinite;
}

@keyframes tickPop {
  0% {
    transform: scale(1);
  }

  10% {
    transform: scale(1.04);
  }

  25% {
    transform: scale(1);
  }
}

/* Circular Dual-Ring Spinner */
.spinner-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.circular-spinner {
  width: 48px;
  height: 48px;
}

.spinner-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.spinner-track {
  stroke: #e2e8f0;
}

.spinner-arc {
  stroke: var(--primary-crimson);
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 80;
  animation: spinRotate 1.2s linear infinite;
  transform-origin: center;
}

@keyframes spinRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Linear Progress Bar */
.linear-progress-track {
  width: 100%;
  height: 5.5px;
  background: #e5ebf8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.linear-progress-bar {
  height: 100%;
  background: var(--button-gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.processing-status-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.estimated-time-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.subtle-skip-btn {
  background: none;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: 12px auto 0 auto;
  transition: all 0.15s ease;
}

.subtle-skip-btn:hover {
  background: #f1f5f9;
  color: var(--primary-crimson);
  border-color: var(--primary-crimson);
}

/* ==========================================================================
   STEP 3: OTP Verification Styles
   ========================================================================== */
.sms-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success-green-dark);
  background: var(--success-pill-bg);
  border: 1px solid var(--success-pill-border);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 auto 26px auto;
  width: 100%;
  justify-content: center;
}

.check-pill-icon {
  color: var(--success-green-dark);
  flex-shrink: 0;
}

.otp-container {
  margin-bottom: 24px;
}

.otp-box-frame {
  border: 1.8px solid var(--primary-burgundy);
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.otp-box-frame:focus-within {
  box-shadow: 0 0 0 3.5px rgba(48, 84, 162, 0.18);
}

.otp-slots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.otp-digit {
  width: 44px;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: #111827;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.otp-digit:focus {
  background: rgba(48, 84, 162, 0.08);
}

.resend-otp-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.resend-link-btn {
  background: none;
  border: none;
  color: var(--primary-crimson);
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.resend-link-btn:disabled {
  color: #9ca3af;
  text-decoration: none;
  cursor: not-allowed;
}

/* ==========================================================================
   STEP 4: Success Screen Styles
   ========================================================================== */
.success-badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.success-circle-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(34, 197, 94, 0.45);
  animation: bounceScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceScale {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.confirmation-lead-text {
  font-size: 15.5px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 8px;
}

.confirmation-sub-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.ticket-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 28px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 4px 0;
}

.ticket-label {
  color: #64748b;
  font-weight: 500;
}

.ticket-val {
  color: #0f172a;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ticket-status-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
}

/* ==========================================================================
   Simulated SMS Notification Toast
   ========================================================================== */
.simulated-sms-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 360px;
  width: calc(100% - 48px);
  background: #1e293b;
  color: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transform: translateY(-120px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.simulated-sms-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sms-toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
}

.sms-sender-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.sms-time {
  color: #94a3b8;
  font-size: 11px;
}

.sms-toast-body p {
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.sms-code-highlight {
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 1px;
}

.sms-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sms-action-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sms-action-btn:hover {
  background: #0369a1;
}

.sms-dismiss-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

.sms-dismiss-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   Modals (Submissions Table & Legal Documents)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.legal-modal-card {
  max-width: 520px;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-burgundy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.admin-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #475569;
}

.admin-btns {
  display: flex;
  gap: 8px;
}

.dev-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.dev-btn:hover {
  background: #374151;
  color: #ffffff;
}

.dev-btn-danger {
  background: #7f1d1d;
  border-color: #991b1b;
  color: #fecaca;
}

.dev-btn-danger:hover {
  background: #991b1b;
  color: #ffffff;
}

.submissions-table-container {
  overflow-x: auto;
}

.submissions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.submissions-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
}

.submissions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.submissions-table tr:hover {
  background: #f8fafc;
}

.empty-state-msg {
  text-align: center;
  padding: 36px 16px;
  color: #94a3b8;
  font-size: 14px;
}

.legal-modal-content {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.legal-modal-content h3 {
  font-size: 15px;
  color: var(--primary-burgundy);
  margin-top: 14px;
  margin-bottom: 6px;
}

.legal-modal-content p {
  margin-bottom: 12px;
}

/* ==========================================================================
   Rastriya Banijya Bank Footer
   ========================================================================== */
.bank-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 18px 24px;
  font-size: 12.5px;
  color: #64748b;
  width: 100%;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  line-height: 1.5;
}

.footer-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-action-link {
  background: none;
  border: none;
  color: var(--primary-crimson);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.footer-action-link:hover {
  background: rgba(48, 84, 162, 0.08);
}

.footer-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .bank-top-nav {
    padding: 10px 16px;
  }

  .brand-tagline {
    display: none;
  }

  .main-layout {
    padding: 16px 12px 32px 12px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .main-layout {
    padding: 8px 8px 24px 8px;
  }

  .kyc-card {
    border-radius: 18px;
  }

  .card-header {
    border-radius: 16px 16px 0 0;
  }

  .card-body {
    padding: 12px 16px 24px 16px;
  }

  .stepper-section {
    padding: 18px 12px 6px 12px;
    gap: 10px;
  }

  .stepper-pills {
    gap: 8px;
  }

  .nav-right-meta {
    display: none;
  }
}

/* ==========================================================================
   Screen Sharing Navigation & Modal Styles
   ========================================================================== */

.screenshare-nav-btn {
  background: rgba(48, 84, 162, 0.12);
  border: 1px solid rgba(48, 84, 162, 0.35);
  color: #3054a2;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.screenshare-nav-btn:hover {
  background: rgba(48, 84, 162, 0.22);
  border-color: #3054a2;
  transform: translateY(-1px);
}

.screenshare-nav-btn.active-sharing {
  background: #3054a2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(48, 84, 162, 0.35);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3054a2;
  display: inline-block;
  animation: pulse-blue 1.6s infinite;
}

.screenshare-nav-btn.active-sharing .live-dot-pulse {
  background: #4ade80;
  animation: pulse-green 1.6s infinite;
}

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(48, 84, 162, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(48, 84, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 84, 162, 0); }
}

/* Screen Share Modal */
.screenshare-modal-card {
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.screenshare-modal-card .modal-header {
  background: #fcfdfe;
  border-bottom: 1px solid #f0f2f5;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.screenshare-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(48, 84, 162, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3054a2;
}

.modal-header-brand h3 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.screenshare-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.screenshare-consent-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3054a2;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.consent-text strong {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 4px;
}

.consent-text p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.screenshare-status-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
}

.status-indicator-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge-chip {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e2e8f0;
  color: #475569;
}

.status-badge-chip.active {
  background: #dcfce7;
  color: #15803d;
}

.status-badge-chip.waiting {
  background: #fef3c7;
  color: #b45309;
}

.status-badge-chip.denied {
  background: #fee2e2;
  color: #b91c1c;
}

.status-chip-desc {
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}

.session-link-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.session-info-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.session-token-box {
  background: #0f172a;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.btn-copy-token {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy-token:hover {
  background: rgba(255, 255, 255, 0.25);
}

.viewer-direct-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3054a2;
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
}

.viewer-direct-link:hover {
  text-decoration: underline;
}

.mobile-unsupported-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mobile-unsupported-notice .notice-icon {
  font-size: 1.3rem;
}

.mobile-unsupported-notice strong {
  display: block;
  font-size: 0.86rem;
  color: #92400e;
  margin-bottom: 3px;
}

.mobile-unsupported-notice p {
  font-size: 0.79rem;
  color: #b45309;
  line-height: 1.45;
  margin: 0;
}

.screenshare-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-share-start {
  flex: 1;
  background: var(--button-gradient);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-share-start:hover {
  background: var(--button-gradient-hover);
  transform: translateY(-1px);
}

.btn-share-stop {
  flex: 1;
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}

.btn-share-stop:hover {
  background: #b91c1c;
}