/* =====================
   CSS VARIABLES
===================== */
:root {
  --primary: #002D72;
  --primary-dark: #001D4A;
  --accent: #F46B24;
  --accent-dark: #D45A1A;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-body: #334155;
  --border-radius: 0.75rem;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 50px -10px rgba(0,0,0,0.15);
}

.badge-soft-primary {
  background-color: #eef2ff;
  color: #3730a3;
  border: 1px solid #e0e7ff;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.badge-soft-accent {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.badge-soft-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #dcfce7;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* =====================
   GLOBAL RESET & BASE STYLES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5 {
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

.page-title {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 45, 114, 0.2) !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(0, 45, 114, 0.3) !important;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background-color: transparent;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ================= BADGE SYSTEM ================= */
.badge {
  padding: 0.6rem 1rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  font-size: 0.7rem !important;
}

.badge-soft-success {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #28a745 !important;
  border: 1px solid rgba(40, 167, 69, 0.2) !important;
}

.badge-soft-warning {
  background: rgba(244, 107, 36, 0.1) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(244, 107, 36, 0.2) !important;
}

.badge-soft-danger {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #dc3545 !important;
  border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

.badge-soft-primary {
  background: rgba(0, 45, 114, 0.1) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(0, 45, 114, 0.2) !important;
}

.badge-soft-secondary {
  background: rgba(108, 117, 125, 0.1) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.2) !important;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--primary);
}

/* Brand Styling */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 0.02em;
  font-weight: 800;
}

.brand-suffix {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-top: 1px;
  color: var(--accent);
}

@media (max-width: 576px) {
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-suffix {
    font-size: 0.75rem;
  }
  .navbar-brand img {
    height: 35px !important;
  }
}

/* =====================
   NEW MODERN HERO SECTION
===================== */
.hero-full {
  min-height: 100vh;
  background: radial-gradient(circle at 100% 0%, rgba(0, 45, 114, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(244, 107, 36, 0.03) 0%, transparent 40%),
              #ffffff;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px; /* Navbar height */
  overflow: hidden;
}

.hero-content-v2 {
  padding: 4rem 0;
  z-index: 2;
}

.hero-badge-v2 {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: rgba(244, 107, 36, 0.1);
  border: 1px solid rgba(244, 107, 36, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title-v2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle-v2 {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-image-v2 {
  position: relative;
  z-index: 1;
  perspective: 2000px;
}

.hero-image-v2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(244, 107, 36, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
}

.hero-main-img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 40px 80px -20px rgba(0, 45, 114, 0.15),
              0 20px 40px -20px rgba(0, 0, 0, 0.2);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.hero-image-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 5;
  pointer-events: none;
}

.hero-image-v2:hover::before {
  animation: shine-sweep 1.2s forwards;
}

@keyframes shine-sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

.hero-main-img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 0 50px 100px -20px rgba(0, 45, 114, 0.2);
}

.hero-stats-v2 {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
}

.stat-v2 h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-v2 p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 991px) {
  .hero-full {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 4rem;
  }
  
  .hero-content-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle-v2 {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-image-v2 {
    margin-top: 4rem;
  }
  
  .hero-main-img {
    transform: none;
    max-width: 500px;
  }
  
  .hero-stats-v2 {
    justify-content: center;
    gap: 2rem;
  }
}

/* Solid theme ribbon bar */
.hero-image-inner::after {
  content: "";
  position: absolute;
  left: 122px;
  top: 0px;
  width: 50px;
  height: 100%;
  background-color: var(--accent);
  transform: skewX(-6deg);
  z-index: 3;
}

/* Slight calming overlay (optional but recommended) */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 55%,
    rgba(255,255,255,0.6) 100%
  );
  z-index: 1;
}

/* Disable on mobile */
@media (max-width: 991px) {
  .hero-image-inner::before,
  .hero-image-inner::after {
    display: none;
  }
}


/* =====================
   RESPONSIVE ADJUSTMENTS
===================== */
@media (max-width: 1199.98px) {
  .hero-content {
    max-width: 560px;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
  }
}

@media (max-width: 991.98px) {
  .hero-accent-ribbon {
    display: none;
  }
  
  .hero-full {
    padding-top: 70px;
  }
  
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1.5rem;
  }
  
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 2rem;
  }
  
  .hero-image {
    min-height: 50vh;
  }
}

@media (max-width: 767.98px) {
  .hero-full {
    min-height: auto;
    padding-bottom: 4rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-text {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
  }
  
  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
  }
  
  .hero-stats {
    gap: 1rem !important;
    flex-direction: row;
    justify-content: center;
  }
  
  .hero-stats .stat-item {
    padding: 0.65rem 1rem;
    flex: 1;
    min-width: 140px;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .d-flex.gap-3 {
    gap: 1rem !important;
  }
  
  .btn-lg {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .btn-outline-primary.btn-lg {
    margin-top: 0.5rem;
  }
}

/* =====================
   ACCESSIBILITY
===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn:hover {
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .hero-bg-pattern,
  .hero-accent-ribbon,
  .hero-image,
  .btn {
    display: none !important;
  }
  
  .hero-full {
    padding-top: 0;
  }
}
/* Utility Classes */
.pointer-cursor {
  cursor: pointer;
}

/* Modal Styling */
.login-brand-sidebar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.brand-logo-icon {
  font-size: 2rem;
}

/* Section Description */
.section-description {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.alert-notification {
  top: 20px;
  right: 20px;
  z-index: 1100;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section-description-lg {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Built-for icons */
.built-icon {
  font-size: 28px;
  color: var(--primary);
  line-height: 1;
}
/* =====================
   BUILT FOR SECTION
===================== */
.built-for-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  position: relative;
}

.built-for-bg {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(10, 37, 64, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(10, 37, 64, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.built-for-blur {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.1) 0%, rgba(10, 37, 64, 0) 70%);
  filter: blur(40px);
}


/* Cards */
.built-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
}

.built-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1) !important;
  border-color: transparent !important;
}

.built-card .icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 45, 114, 0.05); /* Very light navy */
  border: 1px solid rgba(0, 45, 114, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.built-card:hover .icon-wrapper {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: rotate(10deg);
}

.icon-wrapper i {
  font-size: 1.65rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.built-card:hover .icon-wrapper i {
  color: white !important;
}

/* Card Footer Links */
.built-card .card-footer a {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.built-card:hover .card-footer a {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .built-for-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .display-6 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .built-card {
    margin-bottom: 1rem;
  }
  
  .built-for-blur {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .built-for-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-6 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .icon-wrapper {
    width: 50px !important;
    height: 50px !important;
  }
  
  .icon-wrapper i {
    font-size: 1.25rem;
  }
  
  .built-card .card-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-6 {
    font-size: 1.75rem;
  }
  
  .row.g-4.g-lg-5 {
    gap: 1rem !important;
  }
  
  .built-card {
    margin-bottom: 0.75rem;
  }
}

/* Hover lift utility */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* =====================
   CORE CAPABILITIES
===================== */

.capabilities-section {
  background-color: #F8FAFC;
}

.cap-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 26px 22px;
  height: 100%;
  transition: all 0.25s ease;
}

/* =====================
   EMI CALCULATOR SECTION
===================== */
.emi-calculator-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
  position: relative;
}

.emi-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(0, 45, 114, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(244, 107, 36, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 1) 0%, transparent 100%);
  pointer-events: none;
}

.emi-accent-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 45, 114, 0.03) 0%, transparent 70%);
  filter: blur(80px);
  top: -200px;
  right: -200px;
  z-index: 1;
  opacity: 0.6;
}

.emi-card {
  border-radius: 32px;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 40px 100px -20px rgba(0, 45, 114, 0.12), 0 0 1px rgba(0, 45, 114, 0.1);
  backdrop-filter: blur(10px);
}

.feature-icon-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.glass-icon {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 45, 114, 0.1);
  box-shadow: 0 4px 10px rgba(0, 45, 114, 0.05);
}

.calculator-features > div:hover .glass-icon {
  transform: translateX(5px);
  background: var(--primary) !important;
  color: white !important;
}

/* Custom Range Input */
.custom-range {
  height: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  outline: none;
  border: 1px solid #e2e8f0;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #e65a12 100%);
  border: 4px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 107, 36, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(244, 107, 36, 0.4);
}

.custom-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(244, 107, 36, 0.2);
  transition: all 0.2s ease;
}

/* Calculator Inputs */
.calculator-inputs label {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.calculator-inputs .form-control {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.calculator-inputs .form-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 45, 114, 0.05);
}

.extra-small {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Calculator Results */
.calculator-results {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 45, 114, 0.3);
  position: relative;
  z-index: 1;
  gap: 1.25rem; /* Better spacing between items */
}

.calculator-results::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.calculator-results p, 
.calculator-results span:not(.text-accent):not(.text-primary) {
  color: rgba(255, 255, 255, 0.85) !important;
}

.calculator-results .fw-bold,
.calculator-results .fw-semibold {
  color: #ffffff !important;
}

.calculator-results hr {
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.calculator-results .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #e65a12 100%) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(244, 107, 36, 0.3);
  transition: all 0.3s ease;
}

.calculator-results .btn-primary:hover {
  background-color: #e65a12 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 25px rgba(244, 107, 36, 0.4);
}

.text-accent {
  color: var(--accent) !important;
}

.calculator-intro h2 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.calculator-intro p {
  line-height: 1.8;
  color: #64748b;
}

/* Responsive */
@media (max-width: 991.98px) {
  .emi-calculator-section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
  
  .calculator-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .calculator-features {
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .emi-card .card-body {
    padding: 2rem !important;
  }
  
  .calculator-results {
    margin-top: 2rem;
  }
}
/* =====================
   WORKFLOW SECTION - FIXED ALIGNMENT
===================== */
.workflow-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.workflow-bg-pattern {
  background: 
    radial-gradient(circle at 15% 20%, rgba(10, 37, 64, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(10, 37, 64, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* Timeline Connector */
.timeline-connector {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 5%, 
    rgba(10, 37, 64, 0.1) 10%, 
    rgba(10, 37, 64, 0.1) 90%, 
    transparent 95%
  );
  z-index: 1;
}

/* Workflow Step Card */
.workflow-step {
  border-radius: var(--border-radius);
  background: white;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(10, 37, 64, 0.08);
  display: flex;
  flex-direction: column;
}

.workflow-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.12) !important;
  border-color: rgba(10, 37, 64, 0.15);
}

/* Step Header */
.step-header {
  padding: 2rem 1rem 1rem;
  position: relative;
}

.step-number-circle {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
  z-index: 3;
}

.step-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 107, 36, 0.08); /* Light Orange */
  border: 1px solid rgba(244, 107, 36, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.workflow-step:hover .step-icon-box {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 45, 114, 0.2);
}

.workflow-step:hover .step-icon-box i {
  color: white !important;
}

.step-icon-box i {
  font-size: 2.25rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.workflow-step h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Description */
.workflow-step .card-body p {
  line-height: 1.6;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features Section */
.features-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.features-section h6 {
  font-size: 0.9rem;
  text-align: center;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 37, 64, 0.02);
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 3rem;
  align-items: center;
}

.feature-item:hover {
  background: rgba(10, 37, 64, 0.05);
  transform: translateX(4px);
}

.feature-item i {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-item span {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-body);
}

/* Time Badge */
.time-badge {
  transition: all 0.3s ease;
}

.workflow-step:hover .time-badge {
  background: rgba(10, 37, 64, 0.1) !important;
  transform: scale(1.05);
}

.time-badge i {
  font-size: 0.9rem;
}

.time-badge small {
  font-size: 0.8rem;
}

/* CTA Section */
.workflow-section .bg-primary.bg-opacity-5 {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 37, 64, 0.1);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .workflow-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .display-6 {
    font-size: 2.5rem;
  }
  
  .step-icon-box {
    width: 70px;
    height: 70px;
  }
  
  .step-icon-box i {
    font-size: 1.75rem;
  }
  
  .workflow-step h4 {
    font-size: 1.2rem;
    min-height: 3.2rem;
  }
}

@media (max-width: 991.98px) {
  .workflow-timeline {
    margin-top: 3rem;
  }
  
  .timeline-connector {
    display: none !important;
  }
  
  .row.g-4.g-lg-5 {
    gap: 2rem !important;
  }
  
  .workflow-step {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .workflow-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-6 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .step-icon-box {
    width: 60px;
    height: 60px;
  }
  
  .step-icon-box i {
    font-size: 1.5rem;
  }
  
  .workflow-step h4 {
    font-size: 1.1rem;
    min-height: auto;
  }
  
  .workflow-step .card-body p {
    min-height: auto;
    margin-bottom: 1rem;
  }
  
  .feature-item {
    min-height: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .workflow-step {
    margin-bottom: 2rem;
  }
  
  .step-number-circle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .step-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .features-grid {
    gap: 0.5rem;
  }
  
  .feature-item {
    padding: 0.4rem 0.6rem;
  }
  
  .feature-item span {
    font-size: 0.8rem;
  }
  
  /* Make CTA buttons stack on mobile */
  .d-flex.gap-3 {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
  }
  
  .bg-primary.bg-opacity-5 {
    padding: 1.5rem !important;
  }
}

/* Alignment fixes */
.workflow-step .card-body,
.workflow-step .card-footer {
  flex: 0 0 auto;
}

.workflow-step .features-section {
  flex: 1 0 auto;
}

/* Ensure consistent card heights */
.row.align-items-stretch {
  align-items: stretch;
}

.workflow-step {
  height: 100%;
}
/* =====================
   FINAL CTA
===================== */

.final-cta-section {
  background-color: #F8FAFC;
  border-top: 1px solid #E5E7EB;
}
/* =====================
   FINAL CTA SECTION
===================== */
.final-cta-section {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  position: relative;
}

.final-cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(10, 37, 64, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(10, 37, 64, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.final-cta-accent-shape-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  transform: translate(-50%, 50%);
}

.final-cta-accent-shape-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(25px);
  transform: translate(50%, -50%);
}

/* Text Gradient */

/* Badge */
.final-cta-section .badge {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 37, 64, 0.1);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.15);
  }
}

/* Main Heading */
.final-cta-section .display-5 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

/* CTA Buttons */
.final-cta-section .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  transition: all 0.3s ease;
}

.final-cta-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(10, 37, 64, 0.2);
}

.final-cta-section .btn-outline-primary {
  border-width: 2px;
  transition: all 0.3s ease;
}

.final-cta-section .btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.15);
}

/* Trust Indicators */
.trust-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(10, 37, 64, 0.1);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 45, 114, 0.05);
  border: 1px solid rgba(0, 45, 114, 0.1);
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
}

.trust-card:hover .trust-icon {
  background: var(--primary);
  border-color: var(--primary);
}

.trust-card:hover .trust-icon i {
  color: white !important;
}

.trust-icon i {
  font-size: 1.5rem;
}

.trust-card h6 {
  font-size: 1rem;
  text-align: center;
}

.trust-card p {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

/* Additional Info */
.additional-info {
  border-color: rgba(10, 37, 64, 0.1) !important;
}

.info-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: white;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.08);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 107, 36, 0.1);
  border: 1px solid rgba(244, 107, 36, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.info-item:hover .info-icon i {
  color: white !important;
}

.info-icon i {
  font-size: 1.25rem;
}

/* Contact Info */
.contact-info {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.contact-info:hover {
  opacity: 1;
}

.contact-info a {
  transition: all 0.2s ease;
}

.contact-info a:hover {
  text-decoration: underline !important;
  color: var(--primary-dark) !important;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .final-cta-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  
  .display-5 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .trust-card {
    margin-bottom: 1rem;
  }
  
  .info-item {
    margin-bottom: 1rem;
  }
  
  .d-flex.gap-4 {
    gap: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .final-cta-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .trust-indicators .row {
    gap: 1rem;
  }
  
  .trust-card {
    padding: 1.5rem !important;
  }
  
  .info-item {
    padding: 0.875rem;
  }
  
  .btn-lg {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .d-flex.gap-4 {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  .display-5 {
    font-size: 1.75rem;
  }
  
  .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
  }
  
  .trust-icon {
    width: 40px;
    height: 40px;
  }
  
  .trust-icon i {
    font-size: 1.25rem;
  }
  
  .info-icon {
    width: 36px;
    height: 36px;
  }
  
  .info-icon i {
    font-size: 1.1rem;
  }
  
  .contact-info {
    font-size: 0.9rem;
  }
}

/* Animation for CTA section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.final-cta-section [data-aos] {
  animation-fill-mode: both;
}
/* =====================
   HERO STAT PILLS
===================== */

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #F1F5F9;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
}

.stat-pill strong {
  font-weight: 600;
  color: var(--primary);
}

.stat-pill span {
  color: #475569;
}
.stat-pill {
  transition: background-color 0.2s ease;
}

.stat-pill:hover {
  background-color: #EAF0F6;
}
  /* =====================
     LOGIN MODAL SECTION (Conflict-free)
  ===================== */

  /* Modal Container */
  #loginModal .modal-dialog.modal-lg {
    max-width: 900px;
    margin: 1rem;
  }

  #loginModal .modal-content.login-modal {
    border-radius: 0.75rem;
    min-height: 600px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
  }

  /* =====================
     LEFT BRAND SECTION
  ===================== */
  #loginModal .modal-left-brand {
    width: 40%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    z-index: 1;
    padding: 2.5rem !important;
  }

  #loginModal .modal-left-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.2;
    z-index: -1;
  }

  /* Brand Logo */
  #loginModal .brand-logo img {
    filter: brightness(0) invert(1);
    height: 32px;
    width: auto;
  }

  /* Text Colors */
  #loginModal .text-white-80 {
    color: rgba(255, 255, 255, 0.8);
  }

  #loginModal .modal-left-brand h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
  }

  #loginModal .modal-left-brand p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
  }

  /* Features List */
  #loginModal .brand-features {
    margin-top: 2rem;
  }

  #loginModal .brand-features .d-flex {
    padding: 0.5rem 0;
  }

  #loginModal .brand-features i {
    font-size: 0.875rem;
    width: 20px;
    color: white;
  }

  #loginModal .brand-features span {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
  }

  /* New Customer Card */
  #loginModal .new-customer-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  #loginModal .new-customer-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  #loginModal .new-customer-card .text-warning {
    font-size: 1.25rem;
  }

  #loginModal .new-customer-card h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
  }

  #loginModal .new-customer-card p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
  }

  #loginModal .new-customer-card .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
  }

  #loginModal .new-customer-card .btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
  }

  /* =====================
     RIGHT LOGIN SECTION
  ===================== */
  #loginModal .modal-right-login {
    width: 60%;
    background: white;
    display: flex;
    flex-direction: column;
  }

  /* Modal Header */
  #loginModal .modal-header {
    border-bottom: 1px solid rgba(10, 37, 64, 0.08);
    padding: 1.5rem 2rem 0.5rem;
  }

  #loginModal .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 37, 64, 0.08);
    flex-shrink: 0;
  }

  #loginModal .brand-icon i {
    font-size: 1.5rem;
    color: var(--primary);
  }

  #loginModal .modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
  }

  #loginModal .modal-header p {
    font-size: 0.875rem;
    color: var(--text-body);
    opacity: 0.8;
  }

  #loginModal .btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
  }

  /* Security Badge */
  #loginModal .security-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 37, 64, 0.1);
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  #loginModal .security-badge i {
    font-size: 0.9rem;
    color: var(--primary);
  }

  #loginModal .security-badge span {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
  }

  /* Modal Body */
  #loginModal .modal-body {
    padding: 1rem 2rem 1.5rem;
    flex: 1;
  }

  /* Form Labels */
  #loginModal .form-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  #loginModal .form-label i {
    font-size: 0.9rem;
    color: var(--primary);
  }

  /* Form Input Groups */
  #loginModal .input-group-lg {
    border-radius: 0.75rem;
    overflow: hidden;
  }

  #loginModal .input-group-text {
    background-color: rgba(10, 37, 64, 0.03);
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-right: none;
    color: var(--text-body);
    padding: 0.75rem 1rem;
  }

  #loginModal .input-group-text i {
    font-size: 1rem;
  }

  #loginModal .form-control {
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-left: none;
    font-size: 0.95rem;
    padding: 0.75rem;
    height: auto;
  }

  #loginModal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(10, 37, 64, 0.1);
    z-index: 3;
  }

  #loginModal #togglePassword {
    background-color: rgba(10, 37, 64, 0.03);
    border: 1px solid rgba(10, 37, 64, 0.15);
    border-left: none;
    color: var(--text-body);
    transition: all 0.2s ease;
  }

  #loginModal #togglePassword:hover {
    background-color: rgba(10, 37, 64, 0.08);
  }

  /* Remember Me & Forgot Password */
  #loginModal .d-flex.justify-content-between {
    margin-top: 0.5rem;
  }

  #loginModal .form-check {
    margin-bottom: 0;
  }

  #loginModal .form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
    border: 1.5px solid rgba(10, 37, 64, 0.3);
  }

  #loginModal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
  }

  #loginModal .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(10, 37, 64, 0.25);
  }

  #loginModal .form-check-label {
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
  }

  #loginModal .form-check-label i {
    font-size: 0.8rem;
    color: var(--primary);
  }

  /* Submit Button */
  #loginModal .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
  }

  #loginModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.2);
  }

  #loginModal .btn-primary i {
    font-size: 1rem;
  }

  /* OR Divider */
  #loginModal .position-relative {
    margin: 1.5rem 0;
  }

  #loginModal .position-relative hr {
    margin: 0;
    opacity: 0.2;
    border-top: 1px solid var(--text-body);
  }

  #loginModal .position-relative span {
    background: white;
    padding: 0 1rem;
    color: var(--text-body);
    opacity: 0.7;
    font-size: 0.8rem;
    font-weight: 500;
  }

  /* Social Login Buttons */
  #loginModal .d-flex.gap-2 {
    gap: 1rem !important;
  }

  #loginModal .btn-outline-secondary {
    border: 1px solid rgba(10, 37, 64, 0.2);
    color: var(--text-body);
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
  }

  #loginModal .btn-outline-secondary:hover {
    background: rgba(10, 37, 64, 0.05);
    border-color: rgba(10, 37, 64, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
  }

  #loginModal .btn-outline-secondary i {
    font-size: 1rem;
  }

  /* Register Now Highlight (Mobile) */
  #loginModal .register-highlight {
    animation: login-pulse-highlight 2s ease-in-out infinite;
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: var(--primary) !important;
  }

  @keyframes login-pulse-highlight {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(10, 37, 64, 0.1);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(10, 37, 64, 0);
    }
  }

  #loginModal .register-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    flex-shrink: 0;
  }

  #loginModal .register-icon i {
    font-size: 1.5rem;
  }

  #loginModal .register-highlight h6 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
  }

  #loginModal .register-highlight p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-body);
  }

  #loginModal .register-highlight .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: login-bounce 2s infinite;
    margin-top: 0.5rem;
  }

  @keyframes login-bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3px);
    }
  }

  #loginModal .register-highlight .btn-primary i {
    font-size: 0.875rem;
  }

  /* Terms & Support */
  #loginModal .text-center p {
    font-size: 0.8rem;
    color: var(--text-body);
    opacity: 0.8;
    line-height: 1.4;
  }

  #loginModal .text-center a {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
  }

  #loginModal .text-center a:hover {
    text-decoration: underline;
  }

  #loginModal .support-link {
    margin-top: 0.5rem;
  }

  #loginModal .support-link a {
    font-size: 0.8rem;
    color: var(--text-body);
    transition: all 0.2s ease;
  }

  #loginModal .support-link a:hover {
    color: var(--primary);
  }

  #loginModal .support-link i {
    font-size: 0.8rem;
  }

  /* Modal Footer */
  #loginModal .modal-footer {
    padding: 0 2rem 1.5rem;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
  }

  #loginModal .security-status p {
    font-size: 0.8rem;
    color: var(--text-body);
    opacity: 0.8;
    margin-bottom: 0.25rem;
  }

  #loginModal .security-status span {
    color: var(--primary-dark);
    font-weight: 500;
  }

  #loginModal .security-status i {
    font-size: 0.8rem;
    color: #198754;
  }

  #loginModal .security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: login-pulse 2s infinite;
    flex-shrink: 0;
  }

  @keyframes login-pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.7;
      transform: scale(1.1);
    }
  }

  #loginModal .security-status small {
    font-size: 0.75rem;
    color: var(--text-body);
    opacity: 0.7;
  }

  #loginModal .text-md-end a {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  #loginModal .text-md-end a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
  }

  #loginModal .text-md-end i {
    font-size: 0.85rem;
  }

  /* =====================
     RESPONSIVE DESIGN
  ===================== */
  @media (max-width: 991.98px) {
    #loginModal .login-modal {
      flex-direction: column;
      min-height: auto;
    }
    
    #loginModal .modal-left-brand {
      width: 100%;
      display: none !important;
    }
    
    #loginModal .modal-right-login {
      width: 100%;
    }
    
    #loginModal .brand-icon {
      display: flex !important;
    }
    
    #loginModal .d-flex.gap-2 {
      flex-direction: column;
    }
    
    #loginModal .register-highlight .d-flex {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }
    
    #loginModal .register-icon {
      margin: 0 auto;
    }
  }

  @media (max-width: 767.98px) {
    #loginModal .modal-dialog {
      margin: 0.5rem;
    }
    
    #loginModal .modal-content {
      border-radius: 0.75rem;
    }
    
    #loginModal .modal-header,
    #loginModal .modal-body,
    #loginModal .modal-footer {
      padding-left: 1.5rem !important;
      padding-right: 1.5rem !important;
    }
    
    #loginModal .modal-header {
      padding-top: 1.5rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    #loginModal .modal-header .btn-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }
    
    #loginModal .modal-title {
      font-size: 1.25rem;
    }
    
    #loginModal .modal-header p {
      font-size: 0.8rem;
    }
    
    #loginModal .btn-lg {
      padding: 0.75rem 1rem !important;
    }
    
    #loginModal .modal-footer .row {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    
    #loginModal .modal-footer .col-md-4 {
      text-align: center !important;
    }
  }

  @media (max-width: 575.98px) {
    #loginModal .modal-dialog {
      margin: 0;
      height: 100vh;
    }
    
    #loginModal .modal-content {
      height: 100vh;
      border-radius: 0;
      overflow-y: auto;
    }
    
    #loginModal .modal-body {
      padding-top: 0.5rem !important;
    }
    
    #loginModal .form-control-lg {
      font-size: 16px;
    }
    
    #loginModal .btn {
      width: 100%;
      max-width: 280px;
      margin-left: auto;
      margin-right: auto;
    }
    
    #loginModal .d-flex.gap-2 {
      width: 100%;
    }
    
    #loginModal .btn-outline-secondary {
      justify-content: center;
    }
  }

  /* Form Validation States */
  #loginModal .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }

  #loginModal .form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }
  /* Force modal centering */
  #loginModal .modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
    margin: 0.5rem auto !important;
  }

  #loginModal .modal-dialog.modal-dialog-centered {
    min-height: calc(100% - 3.5rem) !important;
  }
  /* =====================
   LOGIN MODAL - RESPONSIVE FIXES
===================== */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
  #loginModal .modal-dialog.modal-lg {
    max-width: 90%;
    margin: 1rem auto;
  }
  
  #loginModal .login-modal {
    flex-direction: column;
    min-height: auto;
  }
  
  #loginModal .modal-left-brand {
    width: 100%;
    padding: 2rem !important;
    min-height: 250px;
  }
  
  #loginModal .modal-right-login {
    width: 100%;
  }
  
  #loginModal .brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  #loginModal .brand-features .d-flex {
    width: 45%;
    min-width: 200px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {
  #loginModal .modal-dialog.modal-lg {
    max-width: 95%;
    margin: 0.5rem auto;
  }
  
  #loginModal .modal-content.login-modal {
    max-height: 90vh;
    overflow-y: auto;
  }
  
  #loginModal .modal-left-brand {
    padding: 1.5rem !important;
    min-height: 200px;
  }
  
  #loginModal .modal-left-brand h3 {
    font-size: 1.5rem;
  }
  
  #loginModal .modal-header {
    padding: 1rem 1.5rem 0.5rem !important;
  }
  
  #loginModal .modal-body {
    padding: 0 1.5rem 1rem !important;
  }
  
  #loginModal .modal-footer {
    padding: 1rem 1.5rem !important;
  }
  
  #loginModal .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  
  #loginModal .btn-outline-secondary {
    width: 100%;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575.98px) {
  #loginModal .modal-dialog.modal-lg {
    max-width: 100%;
    margin: 0;
  }
  
  #loginModal .modal-content.login-modal {
    border-radius: 0;
    min-height: 100vh;
    max-height: 100vh;
  }
  
  #loginModal .modal-left-brand {
    padding: 1.25rem !important;
    min-height: 180px;
  }
  
  #loginModal .modal-left-brand h3 {
    font-size: 1.25rem;
  }
  
  #loginModal .modal-left-brand p {
    font-size: 0.85rem;
  }
  
  #loginModal .brand-features .d-flex {
    width: 100%;
  }
  
  #loginModal .modal-header {
    padding: 1rem 1.25rem 0.5rem !important;
  }
  
  #loginModal .modal-title {
    font-size: 1.25rem;
  }
  
  #loginModal .modal-body {
    padding: 0 1.25rem 0.75rem !important;
  }
  
  #loginModal .input-group-lg .form-control,
  #loginModal .input-group-lg .input-group-text {
    padding: 0.75rem;
  }
  
  #loginModal .btn-lg {
    padding: 0.875rem !important;
  }
  
  #loginModal .modal-footer .row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  #loginModal .modal-footer .col-md-4 {
    text-align: center !important;
  }
  
  /* Hide decorative elements on mobile */
  #loginModal .modal-left-brand::before,
  #loginModal .new-customer-card {
    display: none;
  }
}

/* Small Mobile Devices (up to 375px) */
@media (max-width: 375.98px) {
  #loginModal .modal-left-brand {
    padding: 1rem !important;
  }
  
  #loginModal .modal-header,
  #loginModal .modal-body,
  #loginModal .modal-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  #loginModal .btn {
    font-size: 0.9rem;
  }
  
  #loginModal .form-control {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* Fix for clickability issues */
#loginModal .btn,
#loginModal input,
#loginModal .form-check-input,
#loginModal .btn-close {
  position: relative;
  z-index: 10;
}

#loginModal .modal-dialog {
  position: relative;
}/* ===============================
   LOGIN MODAL – FINAL MOBILE FIX
================================ */

@media (max-width: 767px) {

  /* Full screen modal */
  #loginModal .modal-dialog {
    margin: 0;
    height: 50vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Modal content */
  #loginModal .modal-content {
    width: 92%;
    max-width: 420px;
    border-radius: 16px;
  }

  /* Remove top push */
  #loginModal .modal-body {
    padding: 0;
  }

  /* Center form section */
  #loginModal .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Header spacing */
  #loginModal .modal-header {
    padding: 20px 20px 10px;
    justify-content: center;
    text-align: center;
  }

  #loginModal .modal-header .btn-close {
    position: absolute;
    right: 16px;
    top: 16px;
  }

  /* Form padding */
  #loginModal .p-4,
  #loginModal .p-lg-5 {
    padding: 20px !important;
  }

  /* Inputs */
  #loginModal .form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  /* Buttons */
  #loginModal .btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  /* Register section */
  #loginModal .border-top {
    margin-top: 20px;
    padding-top: 20px;
  }
}
/* ===============================
   LOGIN MODAL – 70% HEIGHT (MOBILE)
================================ */

@media (max-width: 767px) {

  #loginModal .modal-dialog {
    margin: 0;
    height: 100vh;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #loginModal .modal-content {
    width: 92%;
    height: 60vh;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
  }

  /* Allow internal scrolling */
  #loginModal .modal-body {
    height: 100%;
    overflow-y: auto;
    padding: 0;
  }

  /* Center right section content */
  #loginModal .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Header */
  #loginModal .modal-header {
    padding: 18px 20px 10px;
    text-align: center;
  }

  #loginModal .modal-header .btn-close {
    position: absolute;
    right: 16px;
    top: 16px;
  }

  /* Form padding */
  #loginModal .p-4,
  #loginModal .p-lg-5 {
    padding: 20px !important;
  }
}
body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-light);
      color: var(--text-body);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    /* Navbar */
    .register-navbar {
      background: white;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      padding: 1rem 0;
      position: relative;
      z-index: 10;
    }
    
    .register-navbar .navbar-brand {
      color: var(--primary);
      font-weight: 700;
      font-size: 1.25rem;
    }
    
    .register-navbar .btn-outline-primary {
      border-color: var(--primary);
      color: var(--primary);
      border-radius: var(--border-radius);
      padding: 0.5rem 1.5rem;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    
    .register-navbar .btn-outline-primary:hover {
      background: var(--primary);
      color: white;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
    }
    
    /* Main Container */
    .register-container {
      flex: 1;
      display: flex;
      align-items: center;
      padding: 2rem 0;
      position: relative;
      overflow: hidden;
    }
    
    .register-container::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(10, 37, 64, 0.03) 0%, rgba(10, 37, 64, 0.01) 100%);
      transform: rotate(12deg);
      z-index: 0;
    }
    
    /* Card Styling */
    .register-card {
      background: white;
      border-radius: var(--border-radius);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
      border: none;
      overflow: hidden;
      position: relative;
      z-index: 1;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .register-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    }
    
    .register-card-header {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      padding: 2.5rem 2rem;
      color: white;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    
    .register-card-header::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 100%;
      height: 200%;
      background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
      transform: rotate(30deg);
      animation: shimmer 3s infinite;
    }
    
    @keyframes shimmer {
      0% { transform: translateX(-100%) rotate(30deg); }
      100% { transform: translateX(100%) rotate(30deg); }
    }
    
    .register-card-body {
      padding: 2.5rem;
    }
    
    @media (max-width: 768px) {
      .register-card-body {
        padding: 2rem 1.5rem;
      }
      .register-card-header {
        padding: 2rem 1.5rem;
      }
    }
    
    /* Header Content */
    .register-icon {
      width: 80px;
      height: 80px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      font-size: 2rem;
      border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .register-title {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: white;
    }
    
    .register-subtitle {
      font-size: 0.95rem;
      opacity: 0.9;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.5;
    }
    
    /* Form Elements */
    .form-label {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
    }
    
    .form-label i {
      margin-right: 0.5rem;
      font-size: 1rem;
      color: var(--primary);
    }
    
    .form-control {
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius);
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      background: var(--bg-light);
    }
    
    .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
      background: white;
    }
    
    .form-control::placeholder {
      color: #94a3b8;
    }
    
    .input-group {
      border-radius: var(--border-radius);
      overflow: hidden;
    }
    
    .input-group .form-control {
      border-radius: var(--border-radius);
    }
    
    /* Password Strength Indicator */
    .password-strength {
      height: 4px;
      background: #e2e8f0;
      border-radius: 2px;
      margin-top: 0.5rem;
      overflow: hidden;
      position: relative;
    }
    
    .password-strength-bar {
      height: 100%;
      width: 0%;
      background: var(--danger-color);
      border-radius: 2px;
      transition: width 0.3s ease, background 0.3s ease;
    }
    
    .password-strength-text {
      font-size: 0.75rem;
      margin-top: 0.25rem;
      text-align: right;
      color: var(--text-body);
    }
    
    /* Checkbox Styling */
    .form-check {
      padding-left: 2rem;
      margin: 1.5rem 0;
    }
    
    .form-check-input {
      width: 1.2em;
      height: 1.2em;
      margin-left: -2rem;
      margin-top: 0.15em;
      border: 2px solid var(--border-color);
      border-radius: 4px;
      cursor: pointer;
    }
    
    .form-check-input:checked {
      background-color: var(--primary);
      border-color: var(--primary);
    }
    
    .form-check-input:focus {
      box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
    }
    
    .form-check-label {
      font-size: 0.875rem;
      line-height: 1.5;
      color: var(--text-body);
      cursor: pointer;
    }
    
    .form-check-label a {
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
      transition: color 0.2s ease;
    }
    
    .form-check-label a:hover {
      text-decoration: underline;
    }
    
    /* Submit Button */
    .register-btn {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      border: none;
      border-radius: var(--border-radius);
      padding: 1rem 2rem;
      font-size: 1rem;
      font-weight: 600;
      color: white;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    
    .register-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(10, 37, 64, 0.2);
    }
    
    .register-btn:active {
      transform: translateY(0);
    }
    
    .register-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: left 0.5s ease;
    }
    
    .register-btn:hover::before {
      left: 100%;
    }
    
    /* Login Link */
    .login-link-container {
      text-align: center;
      padding-top: 1.5rem;
      margin-top: 2rem;
      border-top: 1px solid var(--border-color);
    }
    
    .login-link {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
      transition: color 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .login-link:hover {
      color: var(--primary-dark);
      text-decoration: underline;
    }
    
    /* Features List */
    .features-list {
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border-color);
    }
    
    .feature-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
      font-size: 0.875rem;
      color: var(--text-body);
    }
    
    .feature-item i {
      color: var(--primary);
      font-size: 1rem;
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
      .register-title {
        font-size: 1.5rem;
      }
      
      .register-subtitle {
        font-size: 0.875rem;
      }
      
      .register-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
      }
      
      .register-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
      }
    }
    
    @media (max-width: 576px) {
      .register-card-body {
        padding: 1.5rem;
      }
      
      .register-card-header {
        padding: 1.5rem;
      }
      
      .register-title {
        font-size: 1.25rem;
      }
      
      .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
      }
    }
    
    /* Animation for form elements */
    .form-group {
      animation: fadeInUp 0.5s ease forwards;
      opacity: 0;
      transform: translateY(20px);
    }
    
    .form-group:nth-child(1) { animation-delay: 0.1s; }
    .form-group:nth-child(2) { animation-delay: 0.2s; }
    .form-group:nth-child(3) { animation-delay: 0.3s; }
    .form-group:nth-child(4) { animation-delay: 0.4s; }
    .form-group:nth-child(5) { animation-delay: 0.5s; }
    .form-group:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Success Message */
    .success-message {
      display: none;
      text-align: center;
      padding: 2rem;
      animation: fadeIn 0.5s ease;
    }
    
    .success-icon {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      font-size: 2rem;
      color: white;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    /* ================= LOAN MODAL ================= */

.loan-steps {
  display: flex;
  gap: 1rem;
}

.loan-steps .step {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

.loan-steps .step.active {
  background: var(--primary);
  color: white;
}

/* Loan Cards */
.loan-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.loan-card {
  cursor: pointer;
}

.loan-card input {
  display: none;
}

.loan-card-body {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  background: #f8fafc;
  transition: all 0.3s ease;
  height: 100%;
}

.loan-card:hover .loan-card-body {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.loan-card input:checked + .loan-card-body {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 15px 35px rgba(10,37,64,0.15);
}

.loan-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10,37,64,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.loan-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
}
.emi-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.emi-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.emi-row span {
  color: #475569;
}

.emi-row strong {
  color: #0f172a;
}

.emi-row.highlight strong {
  font-size: 1.05rem;
  color: var(--primary);
}
.loan-modal-card {
  border-radius: 14px;
}

.loan-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.loan-plan {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.loan-plan.active {
  border-color: #0a2540;
  background: #f8fbff;
}

.loan-plan strong {
  display: block;
  font-size: 0.95rem;
}

.loan-plan span {
  font-size: 0.8rem;
  color: #64748b;
}

.emi-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.sticky-emi {
  position: sticky;
  top: 20px;
}

.emi-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.emi-row.highlight strong {
  font-size: 1.1rem;
}
.loan-modal {
  max-width: 920px;
  width: 100%;
}
 :root {
      --sidebar-width: 260px;
      --topbar-height: 70px;
      --transition-speed: 0.3s;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: #f8fafc;
      overflow-x: hidden;
    }

    /* ================= SIDEBAR ================= */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: var(--sidebar-width);
      background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: white;
      z-index: 1050;
      transition: transform var(--transition-speed) ease;
      box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
    }

    .sidebar-header {
      padding: 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: sticky;
      top: 0;
      background: inherit;
      z-index: 1;
    }

    .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: white;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.1rem;
    }

    .sidebar-brand i {
      font-size: 1.25rem;
    }

    .sidebar-nav {
      padding: 1.5rem 0;
    }

    .nav-item {
      margin-bottom: 0.25rem;
    }

    .nav-link {
      color: rgba(255, 255, 255, 0.8);
      padding: 0.875rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
      white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link.active {
      color: white;
      background: rgba(255, 255, 255, 0.1);
      border-left-color: white;
    }

    .nav-link i {
      font-size: 1.1rem;
      width: 20px;
      flex-shrink: 0;
    }

    .sidebar-footer {
      padding: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      position: sticky;
      bottom: 0;
      background: inherit;
    }

    /* ================= TOPBAR ================= */
    .topbar {
      position: fixed;
      top: 0;
      left: var(--sidebar-width);
      right: 0;
      height: var(--topbar-height);
      background: white;
      border-bottom: 1px solid #e2e8f0;
      z-index: 1040;
      padding: 0 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: left var(--transition-speed) ease;
    }

    .topbar-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    .topbar-page-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--text-dark);
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 300px;
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .user-info {
      display: flex;
      flex-direction: column;
    }

    .user-name {
      font-weight: 600;
      color: var(--text-dark);
      font-size: 0.9rem;
      white-space: nowrap;
    }

    .user-role {
      font-size: 0.75rem;
      color: #64748b;
      white-space: nowrap;
    }

    /* ================= MAIN CONTENT ================= */
    .main-content {
      margin-left: var(--sidebar-width);
      margin-top: var(--topbar-height);
      padding: 2rem;
      min-height: calc(100vh - var(--topbar-height));
      transition: margin-left var(--transition-speed) ease;
    }

    /* ================= WELCOME BANNER ================= */
    .welcome-banner {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      border-radius: 14px;
      padding: 2rem;
      color: white;
      margin-bottom: 2rem;
      overflow: hidden;
      position: relative;
    }

    .welcome-banner::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
      background-size: 30px 30px;
      opacity: 0.2;
    }

    .welcome-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 2rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .welcome-text h1 {
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: white;
      line-height: 1.3;
    }

    .welcome-text p {
      opacity: 0.9;
      max-width: 420px;
      line-height: 1.5;
    }

    .welcome-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .stat-card {
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 1.25rem;
      text-align: center;
      backdrop-filter: blur(10px);
      color: white;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .stat-card h3 {
      font-size: 1.4rem;
      font-weight: 800;
      margin: 0;
      color: var(--accent) !important;
    }

    .stat-label {
      font-size: 1.0rem;
      opacity: 0.8;
      display: block;
      margin-bottom: 0.25rem;
      color: #0a2540;
      font-weight: 700;
      }

    /* ================= EMPTY STATE ================= */
    .empty-state {
      background: white;
      border-radius: var(--border-radius);
      padding: 3rem;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08);
      border: 1px solid #e2e8f0;
      max-width: 800px;
      margin: 30px auto;
    }

    .empty-state-icon {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: rgba(244, 107, 36, 0.1);
      border: 2px solid rgba(244, 107, 36, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      font-size: 3rem;
      color: var(--accent);
      box-shadow: 0 10px 25px rgba(244, 107, 36, 0.1);
    }

    .empty-state-badge {
      display: inline-block;
      background: rgba(244, 107, 36, 0.1);
      color: var(--accent);
      padding: 0.6rem 1.25rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border: 1px solid rgba(244, 107, 36, 0.2);
    }

    .empty-state h3 {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 1rem;
      line-height: 1.3;
    }

    .empty-state p {
      color: #64748b;
      max-width: 500px;
      margin: 0 auto 2rem;
      line-height: 1.6;
    }

    .cta-button {
      padding: 1rem 2.5rem;
      font-size: 1rem;
      font-weight: 600;
      border-radius: var(--border-radius);
      background: var(--primary);
      border: none;
      color: white;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      transition: all 0.3s ease;
      min-height: 56px;
    }

    .cta-button:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(10, 37, 64, 0.2);
    }

    /* ================= QUICK ACTIONS ================= */
    .quick-actions {
      margin-top: 3rem;
    }

    .section-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .action-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .action-card {
      background: white;
      border-radius: var(--border-radius);
      padding: 1.5rem;
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
      cursor: pointer;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .action-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.1);
      border-color: var(--primary);
    }

    .action-card-icon {
      width: 60px;
      height: 60px;
      border-radius: 14px;
      background: rgba(0, 45, 114, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: var(--primary);
      margin-bottom: 1.25rem;
      flex-shrink: 0;
      transition: all 0.3s ease;
      border: 1px solid rgba(0, 45, 114, 0.05);
    }

    .action-card:hover .action-card-icon {
      background: var(--primary);
      color: white;
      transform: scale(1.1) rotate(5deg);
    }

    .action-card h5 {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }

    .action-card p {
      font-size: 0.875rem;
      color: #64748b;
      margin: 0;
      line-height: 1.5;
      flex-grow: 1;
    }

    /* ================= CONTENT SECTIONS ================= */
    .content-section {
      display: none;
      animation: fadeIn 0.3s ease;
    }
    
    .content-section.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ================= SECTION CONTENT ================= */
    .section-content {
      background: white;
      border-radius: var(--border-radius);
      padding: 2rem;
      margin-top: 2rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* ================= ALERT STYLES ================= */
    .alert {
      padding: 1.25rem 1.5rem;
      border-radius: var(--border-radius);
      border: 1px solid transparent;
      margin-bottom: 1.5rem;
    }

    .alert-info {
      background-color: #f0f9ff;
      border-color: #bae6fd;
      color: #0369a1;
    }

    /* ================= CARD STYLES ================= */
    .card {
      border: none;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      margin-bottom: 2rem;
    }

    .card-body {
      padding: 2rem;
    }

    /* ================= FORM STYLES ================= */
    .form-control {
      border-radius: var(--border-radius);
      border: 1px solid #e2e8f0;
      padding: 0.75rem 1rem;
      font-size: 0.95rem;
      transition: all 0.2s ease;
    }

    .form-control:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
    }

    .form-label {
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
    }

    /* ================= BUTTON STYLES ================= */
    .btn {
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border-radius: var(--border-radius);
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--primary);
      border-color: var(--primary);
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      border-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(10, 37, 64, 0.2);
    }

    .btn-outline-primary {
      color: var(--primary);
      border-color: var(--primary);
    }

    .btn-outline-primary:hover {
      background: var(--primary);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    /* ================= LOAN MODAL STYLES ================= */
    .loan-modal .modal-dialog {
      max-width: 420px;
      margin: 1rem auto;
    }

    .loan-modal .modal-content {
      border-radius: var(--border-radius);
      border: none;
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .loan-modal .modal-header {
      border-bottom: 1px solid #e2e8f0;
      padding: 1.5rem 1.5rem 1rem;
    }

    .loan-modal .modal-body {
      padding: 1.5rem;
    }

    .loan-modal .modal-footer {
      border-top: 1px solid #e2e8f0;
      padding: 1rem 1.5rem 1.5rem;
      display: flex;
      gap: 1rem;
    }

    .loan-section-label {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: block;
      color: var(--text-dark);
    }

    .loan-help {
      font-size: 0.8rem;
      color: #64748b;
      margin-top: 0.25rem;
      line-height: 1.4;
    }

    /* LOAN AMOUNT SLIDER */
    .form-range::-webkit-slider-thumb {
      background: var(--primary);
      border: none;
      height: 22px;
      width: 22px;
    }

    .form-range::-moz-range-thumb {
      background: var(--primary);
      border: none;
      height: 22px;
      width: 22px;
    }

    /* PLAN GRID */
    .loan-plan-vertical {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .loan-plan {
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 1rem;
      cursor: pointer;
      background: #f9fafb;
      transition: all 0.2s ease;
    }

    .loan-plan strong {
      display: block;
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .loan-plan span {
      font-size: 0.8rem;
      color: #64748b;
      display: block;
    }

    .loan-plan:hover {
      border-color: var(--primary);
      background: white;
      transform: translateY(-2px);
    }

    .loan-plan.active {
      border-color: var(--primary);
      background: white;
      box-shadow: 0 6px 18px rgba(10,37,64,0.15);
    }

    .modal-btn-continue {
      flex: 1;
      padding: 0.875rem;
      font-weight: 600;
      border-radius: var(--border-radius);
      transition: all 0.3s ease;
      min-height: 48px;
    }

    .modal-btn-continue:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
    }

    /* ================= RESPONSIVE DESIGN ================= */
    
    /* Large tablets and small desktops */
    @media (max-width: 1200px) {
      .sidebar {
        width: 240px;
      }
      
      .topbar,
      .main-content {
        left: 240px;
      }
      
      .welcome-grid {
        gap: 1.5rem;
      }
      
      .welcome-stats {
        gap: 0.75rem;
      }
      
      .stat-card {
        padding: 1rem;
      }
      
      .stat-card h3 {
        font-size: 1.25rem;
      }
    }

    /* Tablets */
    @media (max-width: 992px) {
      .sidebar {
        transform: translateX(-100%);
        width: 280px;
      }
      
      .sidebar-open .sidebar {
        transform: translateX(0);
      }
      
      .topbar {
        left: 0;
        padding: 0 1rem;
      }
      
      .main-content {
        margin-left: 0;
        padding: 1.5rem;
      }
      
      .sidebar-open .topbar,
      .sidebar-open .main-content {
        transform: translateX(280px);
      }
      
      .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
      }
      
      .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
      
      .welcome-text {
        text-align: center;
      }
      
      .welcome-text p {
        max-width: 100%;
      }
      
      .action-cards {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .page-title {
        max-width: 200px;
        font-size: 1.1rem;
      }
      
      .user-profile {
        display: none;
      }
      
      .card-body {
        padding: 1.5rem;
      }
      
      .empty-state {
        padding: 2rem;
      }
      
      .loan-modal .modal-dialog {
        max-width: 90%;
      }
    }

    /* Large mobile devices */
    @media (max-width: 768px) {
      .main-content {
        padding: 1.25rem;
      }
      
      .welcome-banner {
        padding: 1.5rem;
      }
      
      .welcome-text h1 {
        font-size: 1.4rem;
      }
      
      .welcome-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
      }
      
      .stat-card {
        padding: 0.875rem;
      }
      
      .stat-card h3 {
        font-size: 1.2rem;
      }
      
      .stat-label {
        font-size: 0.8rem;
      }
      
      .action-cards {
        grid-template-columns: 1fr;
      }
      
      .empty-state {
        padding: 1.5rem;
      }
      
      .empty-state h3 {
        font-size: 1.3rem;
      }
      
      .empty-state-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
      }
      
      .cta-button {
        padding: 0.875rem 2rem;
        width: 100%;
        font-size: 0.95rem;
      }
      
      .section-title {
        font-size: 1rem;
      }
      
      .alert {
        padding: 1rem;
      }
      
      .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
      }
    }

    /* Small mobile devices */
    @media (max-width: 576px) {
      .topbar {
        padding: 0 0.875rem;
        height: 60px;
      }
      
      .main-content {
        padding: 1rem;
        margin-top: 60px;
      }
      
      .page-title {
        font-size: 1rem;
        max-width: 150px;
      }
      
      .welcome-banner {
        padding: 1.25rem;
        border-radius: 12px;
      }
      
      .welcome-text h1 {
        font-size: 1.2rem;
      }
      
      .welcome-text p {
        font-size: 0.875rem;
      }
      
      .welcome-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }
      
      .stat-card {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      
      .stat-card h3 {
        font-size: 1.1rem;
      }
      
      .stat-label {
        font-size: 0.75rem;
        margin-bottom: 0;
      }
      
      .empty-state {
        padding: 1.25rem;
        margin: 0 -0.5rem;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
      }
      
      .empty-state h3 {
        font-size: 1.1rem;
      }
      
      .empty-state p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
      }
      
      .empty-state-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
      }
      
      .section-content {
        padding: 1.25rem;
        margin-top: 1.5rem;
      }
      
      .card-body {
        padding: 1.25rem;
      }
      
      .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
      }
      
      .loan-modal .modal-body {
        padding: 1.25rem;
      }
      
      .loan-modal .modal-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
      }
      
      .modal-btn-continue {
        width: 100%;
      }
      
      .modal-footer .btn {
        width: 100%;
      }
      
      /* Hide user info in sidebar footer on mobile */
      .sidebar-footer .user-info {
        display: none;
      }
      
      .sidebar-footer {
        justify-content: center;
        padding: 1rem;
      }
    }

    /* Extra small devices */
    @media (max-width: 375px) {
      .welcome-text h1 {
        font-size: 1.1rem;
      }
      
      .stat-card {
        padding: 0.75rem;
      }
      
      .stat-card h3 {
        font-size: 1rem;
      }
      
      .action-card {
        padding: 1.25rem;
      }
      
      .action-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
      }
      
      .action-card h5 {
        font-size: 0.95rem;
      }
      
      .action-card p {
        font-size: 0.825rem;
      }
      
      .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
      
      .menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
      }
      
      .page-title {
        max-width: 120px;
        font-size: 0.95rem;
      }
    }

    /* ================= UTILITIES ================= */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--text-dark);
      font-size: 1.25rem;
      cursor: pointer;
      padding: 0;
      z-index: 1;
    }

    .logout-btn {
      background: none;
      border: 1px solid #e2e8f0;
      color: var(--text-dark);
      padding: 0.5rem 1rem;
      border-radius: var(--border-radius);
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
    }

    .logout-btn:hover {
      background: #f8fafc;
      border-color: var(--primary);
      color: var(--primary);
    }

    /* Hide scrollbar for sidebar */
    .sidebar::-webkit-scrollbar {
      width: 4px;
    }

    .sidebar::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.1);
    }

    .sidebar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 2px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.4);
    }

    /* Smooth animations */
    .fade-in-up {
      animation: fadeInUp 0.6s ease forwards;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideIn {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Overlay for mobile menu */
    .sidebar-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1045;
    }

    .sidebar-open .sidebar-overlay {
      display: block;
    }

    /* Ensure modal is above sidebar */
    .modal {
      z-index: 1060;
    }

    #emiCycleText {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    color: #64748b;
  }

/* ================= MOBILE BOTTOM NAV ================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1200;
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
  color: #64748b;
  font-size: 0.7rem;
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.mobile-nav-item i {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 2px;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item.active i {
  transform: translateY(-2px);
}

/* Push content up so it doesn't hide behind bottom nav */
@media (max-width: 991px) {
  .main-content {
    padding-bottom: 90px;
  }

  .sidebar {
    display: none;
  }
}
/* ================= MOBILE TOPBAR CLEANUP ================= */
@media (max-width: 991px) {
  .menu-toggle {
    display: none !important;
  }
}
/* ================= SIMPLE MOBILE TOPBAR ================= */
.topbar-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile */
@media (max-width: 991px) {
  .topbar {
    left: 0;
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .topbar {
    left: var(--sidebar-width);
  }
}

  /* Improve visibility of checkbox */
.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid #082037; /* blue border */
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.25);
}
 /* ================= PROFILE COMPLETION (THEME BASED) ================= */

  .profile-completion-card {
    background: linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );
    border-radius: var(--border-radius);
    padding: 26px 32px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.15);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
  }

  /* subtle overlay glow */
  .profile-completion-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
  }

  /* Left Side */

  .profile-left {
    max-width: 65%;
    z-index: 2;
  }

  .profile-text h5 {
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
  }

  .profile-text p {
    font-size: 0.92rem;
    opacity: 0.85;
    margin-bottom: 16px;
  }

  /* Button */

  .profile-btn {
    background: #ffffff;
    color: var(--primary);
    border-radius: 40px;
    padding: 6px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
  }

  .profile-btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
  }

  /* Right Side Ring */

  .profile-right {
    z-index: 2;
  }

  .progress-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
  }

  .progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.2);
  }

  .progress-ring-fill {
    stroke: #ffffff;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.8s ease;
  }

  .progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
  }

  /* Responsive */

  @media (max-width: 768px) {
    .profile-completion-card {
      flex-direction: column;
      text-align: center;
    }

    .profile-left {
      max-width: 100%;
      margin-bottom: 22px;
    }
  }
/* ================= Layout ================= */

.kyc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.kyc-header {
  margin-bottom: 2.5rem;
}

.kyc-header p {
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= Card ================= */

.kyc-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  margin-top: 30px;
  border: 1px solid #f1f5f9;
}

/* ================= Required Section ================= */

.required-section {
  background: rgba(0, 45, 114, 0.03);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 45, 114, 0.05);
}

.section-title {
  font-weight: 600;
  margin-bottom: 20px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.doc-item {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-item::before {
  content: '\F26A';
  font-family: 'bootstrap-icons';
  color: var(--accent);
  font-size: 0.9rem;
}

/* ================= Upload Box ================= */

.upload-box input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  transition: 0.3s ease;
}

.upload-box input:focus {
  border-color: #2563eb;
  outline: none;
}

/* ================= Submit ================= */

.submit-area {
  text-align: right;
}

.submit-btn {
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 10px;
  min-width: 220px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* ================= Warning ================= */

.kyc-warning {
  background: rgba(244, 107, 36, 0.08);
  border: 1px solid rgba(244, 107, 36, 0.2);
  color: var(--accent);
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ================= Uploaded List ================= */

.uploaded-list h6 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.uploaded-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.uploaded-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.uploaded-item-info a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.uploaded-item-info a:hover {
  color: var(--accent);
}
.doc-item{
    background:#f8f9fa;
    padding:10px 15px;
    border-radius:6px;
    font-size:14px;
}
          .sticky-emi {
  position: sticky;
  top: 20px;
}

@media (max-width: 991px) {
  .sticky-emi {
    position: static !important;
  }
}
.loan-modal .modal-content {
  height: 90vh;
}

.loan-modal .modal-body {
  overflow-y: auto;
}
@media (max-width: 768px) {
  .loan-modal .modal-body {
    padding-bottom: 100px;
  }

  .emi-box {
    margin-top: 20px;
  }
}
@media (max-width: 768px) {
  .loan-modal .modal-content {
    border-radius: 16px;
  }

  .loan-modal .modal-body {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .loan-modal .modal-header,
  .loan-modal .modal-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
.loan-section-label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-select-lg,
.form-control-lg {
  border-radius: 12px;
}
.loan-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .loan-plan-grid {
    gap: 10px;
  }
}


/* ===============================
   LAYOUT FIX
================================= */

.page-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 35px;
    min-height: 100vh;
    background: #f4f6f9;
}

@media (max-width: 991px) {
    .page-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 20px;
    }
}

/* ===============================
   SUMMARY CARDS
================================= */

.summary-card {
    border-radius: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 45, 114, 0.08);
    border-color: var(--primary);
}

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-content {
    flex-grow: 1;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.summary-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Theme Variations */
.summary-icon.primary { background: rgba(0, 45, 114, 0.1); color: var(--primary); }
.summary-icon.orange { background: rgba(244, 107, 36, 0.1); color: var(--accent); }
.summary-icon.success { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.summary-icon.secondary { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

/* ===============================
   LOAN CARDS
================================= */

.loan-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.loan-card:hover {
    transform: translateY(-6px);
}

.status-strip {
    height: 6px;
}

.loan-amount {
    font-size: 1.6rem;
    font-weight: 700;
}

.loan-meta {
    font-size: 0.92rem;
    color: #6c757d;
}

.progress {
    height: 8px;
    border-radius: 50px;
}

/* ===============================
   EMPTY STATE
================================= */

.empty-state {
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
  /* ===== CLEAN SIDEBAR FOOTER ===== */

  /* ===== FIXED SIDEBAR LAYOUT ===== */

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;   /* Important */
}

.sidebar-nav {
    padding-top: 10px;
}

.sidebar-brand img {
    background: #ffffff;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-footer {
    margin-top: auto;   /* This pushes it to bottom */
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

  .sidebar-user {
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .sidebar-user-left {
      display: flex;
      align-items: center;
      gap: 12px;
  }

  .sidebar-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 14px;
      color: #fff;
  }

  .sidebar-user-info {
      display: flex;
      flex-direction: column;
  }

  .sidebar-user-name {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
      line-height: 1.2;
  }

  .sidebar-user-status {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
  }

  .sidebar-logout {
      color: rgba(255,255,255,0.6);
      font-size: 18px;
      text-decoration: none;
      transition: 0.2s ease;
  }

  .sidebar-logout:hover {
      color: #fff;
  }
  /* Layout Fix for Sidebar + Navbar */
.page-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 30px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .page-content {
        margin-left: 0;
        margin-top: 70px;
        padding: 20px;
    }
}

/* ================= PROFILE DASHBOARD ================= */

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 45, 114, 0.15);
}

.profile-header-banner {
    background: linear-gradient(to bottom, rgba(0, 45, 114, 0.03), transparent) !important;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
}

.info-item:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 45, 114, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 2px;
}

.info-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.logout-card {
    background: rgba(220, 53, 69, 0.03) !important;
    border: 1px solid rgba(220, 53, 69, 0.1) !important;
}

/* Bootstrap Overrides for Theme Consistency */
.bg-primary { background-color: var(--primary) !important; }
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.text-primary { color: var(--primary) !important; }

.bg-warning { background-color: var(--accent) !important; }
.btn-warning { background-color: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.text-warning { color: var(--accent) !important; }

/* ================= SUPPORT CENTER ================= */
.support-card { border-radius: 20px; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.support-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 45, 114, 0.08); border-color: var(--primary); }
.support-icon-box { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; }
.support-icon-box.primary { background: rgba(0, 45, 114, 0.1); color: var(--primary); }
.support-icon-box.orange { background: rgba(244, 107, 36, 0.1); color: var(--accent); }
.support-icon-box.secondary { background: rgba(108, 117, 125, 0.1); color: #6c757d; }
.faq-card { transition: all 0.3s ease; border: 1px solid #f1f5f9 !important; }
.faq-card:hover { border-color: var(--primary) !important; transform: translateX(5px); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }

/* ================= LOAN CARDS MODERNIZATION ================= */
.loan-card { border-radius: 20px; overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.3s ease; position: relative; }
.loan-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 45, 114, 0.1); }
.status-strip { height: 6px; width: 100%; position: absolute; top: 0; left: 0; }
.loan-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.loan-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.loan-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #475569; font-weight: 500; }
.loan-meta-item i { color: var(--primary); font-size: 1.1rem; opacity: 0.85; }
.loan-meta-item .meta-label { color: #64748b; font-weight: 500; margin-right: 4px; }
.loan-meta-item .meta-value { color: var(--primary); font-weight: 800; }

/* ================= ACTION CARDS MODERNIZATION ================= */
.action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 30px; }
.action-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.action-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 45, 114, 0.08); border-color: var(--primary); }
.action-card-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(0, 45, 114, 0.06); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; transition: 0.3s; }
.action-card:hover .action-card-icon { background: var(--primary); color: #fff; }
.action-card h5 { font-weight: 800; color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.action-card p { font-size: 0.875rem; color: #64748b; line-height: 1.5; margin-bottom: 0; }

/* ================= EMPTY STATE MODERNIZATION ================= */
.empty-state { padding: 80px 40px; text-align: center; border-radius: 30px; background: #fff; border: 1px solid #f1f5f9; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); }
.empty-state-badge { display: inline-flex; align-items: center; padding: 8px 20px; border-radius: 50px; background: rgba(244, 107, 36, 0.08); color: var(--accent); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 30px; }
.empty-state-icon { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, rgba(244, 107, 36, 0.1), rgba(0, 45, 114, 0.05)); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto 30px; position: relative; }
.empty-state-icon::after { content: ''; position: absolute; width: 120%; height: 120%; border-radius: 50%; border: 1px dashed rgba(244, 107, 36, 0.2); animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.empty-state h3 { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; letter-spacing: -0.02em; }
.empty-state p { color: #64748b; font-size: 1.1rem; line-height: 1.6; max-width: 500px; margin: 0 auto 40px; }
.cta-button { padding: 16px 40px; font-weight: 700; border-radius: 14px; box-shadow: 0 10px 25px rgba(0, 45, 114, 0.2); transition: 0.3s; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0, 45, 114, 0.3); }

/* ================= LOAN MODAL MODERNIZATION ================= */
.loan-modal-card { border-radius: 24px; border: none; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; }
.loan-section-label { display: block; font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; margin-bottom: 12px; }
.loan-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loan-plan { padding: 16px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; transition: 0.3s; }
.loan-plan:hover { border-color: var(--primary); background: rgba(0, 45, 114, 0.02); }
.loan-plan.active { border-color: var(--primary); border-width: 2px; background: rgba(0, 45, 114, 0.04); }
.loan-plan strong { display: block; color: var(--primary); font-size: 1rem; margin-bottom: 4px; }
.loan-plan span { font-size: 0.8rem; color: #64748b; }
.emi-box { background: #f8fafc; border-radius: 20px; padding: 24px; border: 1px solid #e2e8f0; }
.emi-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.emi-row span { color: #64748b; font-size: 0.9rem; }
.emi-row strong { color: var(--primary); font-weight: 700; }
.emi-row.highlight { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #cbd5e1; }
.emi-row.highlight strong { font-size: 1.5rem; color: var(--accent); }
.form-range::-webkit-slider-thumb { background: var(--primary); }
.form-range::-moz-range-thumb { background: var(--primary); }
.form-range::-ms-thumb { background: var(--primary); }

/* ================= PENDING LOAN STATE ================= */
.pending-loan-card { border-radius: 30px; background: #fff; border: 1px solid #f1f5f9; }
.pending-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 193, 7, 0.1); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }

/* ================= LOGO VISIBILITY FIX ================= */
.sidebar-brand img, .navbar-brand img, .brand-logo img, .topbar img { background: #ffffff !important; padding: 6px !important; border-radius: 50% !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; object-fit: contain !important; border: 2px solid rgba(255, 255, 255, 0.2) !important; }

/* ================= COMPACT LOAN MODAL ================= */
.loan-plan { padding: 12px 16px !important; }
.loan-plan-grid { gap: 10px !important; }
.loan-modal-card .modal-body { padding: 1.5rem 2rem !important; }
#autopayWarning { font-size: 0.8rem !important; line-height: 1.4 !important; }
.form-switch .form-check-input { cursor: pointer; transition: 0.2s ease; }
.form-switch .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ================= ACTIVE LOAN MODERNIZATION ================= */
.active-loan-card { border-radius: 24px; border: none; overflow: hidden; position: relative; }
.active-loan-card::before { content: ''; position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--primary); }
.loan-progress-container { height: 8px; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin: 20px 0; }
.loan-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%); border-radius: 10px; transition: width 1s ease; }
.loan-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loan-stat-item { padding: 15px; border-radius: 16px; background: #f8fafc; border: 1px solid #f1f5f9; }
.loan-stat-label { font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 5px; }
.loan-stat-value { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.loan-stat-value.danger { color: #ef4444; }
.autopay-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.autopay-badge.active { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.autopay-badge.inactive { background: rgba(244, 63, 94, 0.1); color: #e11d48; }
.live-pulse { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 rgba(34, 197, 94, 0.4); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ================= DASHBOARD LAYOUT HARDENING ================= */
body { background-color: #f8fafc !important; }
.main-content { background-color: #f8fafc !important; }
.quick-actions-section { margin-top: 60px !important; padding-top: 40px !important; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.active-loan-card { margin-bottom: 50px !important; }
.action-card { box-shadow: 0 10px 30px rgba(0, 45, 114, 0.04) !important; background: #ffffff !important; }
/* Ensure Welcome Banner stays on top */
.welcome-banner { margin-bottom: 40px !important; }

/* ================= DASHBOARD SEPARATION FIX ================= */
body, .main-content { background-color: #f1f5f9 !important; }
.content-section { background: transparent !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
.active-loan-card, .action-card, .welcome-banner, .pending-loan-card, .empty-state { background: #ffffff !important; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05) !important; border-radius: 20px !important; }
.welcome-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important; }

/* ================= MANUAL REPAYMENT CUSTOM STYLES (MODERN PORTAL) ================= */
#manualPaymentModal .modal-content {
    max-height: 98vh;
    display: flex;
    flex-direction: column;
    border-radius: 24px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

#manualPaymentModal {
    backdrop-filter: blur(12px) !important;
    background-color: rgba(15, 23, 42, 0.45) !important;
    transition: backdrop-filter 0.3s ease;
}

@keyframes modalSpring {
    0% { transform: scale(0.92) translateY(20px); opacity: 0; }
    50% { transform: scale(1.01) translateY(-4px); opacity: 0.95; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

#manualPaymentModal.show .modal-dialog {
    animation: modalSpring 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#manualPaymentModal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.amount-premium-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    border-radius: 16px !important;
    padding: 14px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
    border: none !important;
}

.amount-premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 107, 36, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.amount-premium-card .amount-label {
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.amount-premium-card .amount-value {
    font-weight: 800;
    font-size: 1.55rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.amount-premium-card .badge-premium {
    background: rgba(244, 107, 36, 0.2);
    color: #ff8c3a !important;
    border: 1px solid rgba(244, 107, 36, 0.35);
    border-radius: 20px;
    font-size: 0.65rem;
    padding: 4px 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#manualPaymentModal .segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

#manualPaymentModal .segmented-control .nav-item {
    flex: 1;
    text-align: center;
}

#manualPaymentModal .segmented-control .nav-link {
    color: #64748b;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#manualPaymentModal .segmented-control .nav-link.active {
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

#manualPaymentModal .segmented-control .nav-link:hover:not(.active) {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.02);
}

.qr-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 45, 114, 0.06);
}

#manualPaymentModal #upi-pay img {
    max-height: 180px !important;
    width: 180px !important;
    transition: all 0.3s ease;
}

@keyframes scanLineAnimation {
    0% { top: 12px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 15px); opacity: 0; }
}

.scan-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
    animation: scanLineAnimation 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 10;
}

.upi-id-badge {
    transition: all 0.22s ease;
    border: 1px solid #e2e8f0;
}

.upi-id-badge:hover {
    background: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(244, 107, 36, 0.08) !important;
    transform: translateY(-1px);
}

.upi-id-badge:active {
    transform: scale(0.97);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bank-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bank-detail-card:hover {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(244, 107, 36, 0.08);
    transform: translateY(-1px);
}

.bank-detail-card:active {
    transform: scale(0.985);
}

.bank-detail-card .card-info-title {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1px;
}

.bank-detail-card .card-info-value {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
}

.bank-detail-card .card-info-value.primary-highlight {
    color: var(--primary) !important;
}

.bank-detail-card .copy-glyph {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 8px;
    background: transparent;
}

.bank-detail-card:hover .copy-glyph {
    color: var(--accent);
    background: rgba(244, 107, 36, 0.06);
}

.utr-input-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.25s ease;
    margin-top: 14px;
    margin-bottom: 4px;
}

.utr-input-group:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.08);
}

.utr-input-group label {
    display: block;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.utr-input-group input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}

.utr-input-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

#manualPaymentModal .whatsapp-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15) !important;
}

#manualPaymentModal .whatsapp-btn:hover {
    background: #1ebc56 !important;
    border-color: #1ebc56 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25) !important;
}

#manualPaymentModal .whatsapp-btn:active {
    transform: translateY(0) !important;
}

#manualPaymentModal .modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

#manualPaymentModal .modal-dialog {
    max-width: 440px;
    margin: 1.75rem auto;
}

@media (max-width: 576px) {
    #manualPaymentModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

@media (max-height: 660px) {
    #manualPaymentModal .modal-dialog {
        margin: 0.25rem auto !important;
    }
    #manualPaymentModal .modal-header {
        padding: 10px 16px !important;
    }
    #manualPaymentModal .modal-header h6 {
        font-size: 0.9rem !important;
    }
    #manualPaymentModal .modal-header small {
        display: none !important;
    }
    #manualPaymentModal .modal-body {
        padding: 0.75rem !important;
    }
    .amount-premium-card {
        padding: 10px 16px !important;
        margin-bottom: 10px !important;
    }
    .amount-premium-card .amount-value {
        font-size: 1.3rem !important;
    }
    #manualPaymentModal .segmented-control {
        margin-bottom: 10px !important;
    }
    #manualPaymentModal .segmented-control .nav-link {
        padding: 6px 10px !important;
        font-size: 0.72rem !important;
    }
    #manualPaymentModal #paymentTabsContent {
        min-height: 100px !important;
        padding: 0.5rem !important;
    }
    #manualPaymentModal #upi-pay img {
        max-height: 110px !important;
        width: 110px !important;
    }
    .qr-wrapper {
        padding: 8px !important;
        margin-bottom: 6px !important;
    }
    .scan-line {
        left: 8px !important;
        right: 8px !important;
    }
    .upi-id-badge {
        padding: 4px 12px !important;
        margin-bottom: 6px !important;
    }
    .bank-detail-card {
        padding: 6px 12px !important;
        margin-bottom: 6px !important;
    }
    .bank-detail-card .card-info-title {
        font-size: 0.6rem !important;
    }
    .bank-detail-card .card-info-value {
        font-size: 0.78rem !important;
    }
    .utr-input-group {
        padding: 6px 12px !important;
        margin-top: 8px !important;
    }
    .utr-input-group label {
        font-size: 0.6rem !important;
    }
    .utr-input-group input {
        font-size: 0.78rem !important;
    }
    #manualPaymentModal .alert-info {
        margin-top: 8px !important;
        padding: 6px 10px !important;
        font-size: 0.65rem !important;
    }
    #manualPaymentModal .modal-footer {
        padding: 0.4rem 1rem !important;
    }
}

/* ================= REFACTORED UTILITY & REUSABLE CLASSES ================= */
.brand-text-wrapper { line-height: 1; }
.brand-title-primary { font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700; }
.brand-title-secondary { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--accent); }

.max-w-450 { max-width: 450px !important; }
.max-w-500 { max-width: 500px !important; }
.max-w-640 { max-width: 640px !important; }
.cursor-pointer { cursor: pointer !important; }
.text-xxs { font-size: 0.65rem !important; }
.text-xs-caps { font-size: 0.7rem !important; letter-spacing: 0.05em; text-transform: uppercase; }
.text-sm-spaced { font-size: 0.85rem !important; }
.bg-error-soft { background: rgba(239, 68, 68, 0.02) !important; }

.modal-header-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-bottom: none;
    padding-top: 14px;
    padding-bottom: 14px;
}
.tab-content-premium {
    min-height: 130px;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: #f1f5f9 !important;
}
.qr-image-premium {
    max-height: 180px;
    width: 180px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 5;
    margin: 0 auto;
}
.payment-help-box {
    background: rgba(0, 45, 114, 0.03);
    border: 1px dashed var(--primary);
}
.welcome-banner-anim {
    animation-delay: 0.1s;
}
.stats-header-caps {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}
.payment-trigger-icon {
    width: 32px;
    height: 32px;
}
.modal-title-size {
    font-size: 1rem;
}
.modal-subtitle-size {
    font-size: 0.75rem;
}
.modal-close-size {
    font-size: 0.8rem;
}
.qr-wrapper-margin {
    margin-top: 5px;
}
.upi-badge-text-size {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.upi-badge-val-size {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.upi-badge-btn-size {
    font-size: 0.65rem;
}
.upi-app-hint-size {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}
.bank-transfer-meta-grid {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
}
.bank-transfer-meta-title {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
}
.payment-help-alert {
    font-size: 0.72rem;
    border-left: 3px solid var(--primary) !important;
    background: rgba(0, 45, 114, 0.04);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
}
.payment-help-icon {
    font-size: 0.85rem;
}
.btn-premium-modal-footer {
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}
.loan-accent-color {
    color: var(--accent);
}

/* =====================
   MAIN THEME FOOTER
===================== */
.main-footer {
  background-color: #0b1329; /* Theme deep navy dark */
  border-top: 1px solid #1e293b; /* Subtle slate border */
  position: relative;
}
/* Decorative top accent line to make it look premium */
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
}
.footer-text {
  color: #94a3b8; /* Soft slate gray */
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.developer-link {
  color: #3b82f6; /* Bright blue link */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.developer-link:hover {
  color: #60a5fa; /* Lighter blue on hover */
  text-decoration: underline;
}

/* =====================
   DASHBOARD PENALTY STYLE
===================== */
.penalty-alert {
  background-color: rgba(220, 53, 69, 0.05) !important;
  border-left: 4px solid #dc3545 !important;
}
.penalty-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

/* =====================
   PREMIUM SUPPORT CARD STYLE
===================== */
.premium-support-card {
  background: linear-gradient(135deg, #002D72 0%, #001D4A 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 2.5rem 2rem !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 45, 114, 0.15) !important;
}
.premium-support-card h5 {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}
.premium-support-card p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.95rem !important;
}
.premium-support-card .btn-support {
  background-color: #ffffff !important;
  color: #002D72 !important;
  border: none !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.premium-support-card .btn-support:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2) !important;
  background-color: #f8fafc !important;
}


