/* =====================
   CSS VARIABLES
===================== */
:root {
  --primary: #0A2540;
  --primary-dark: #081F36;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-body: #334155;
  --border-radius: 0.5rem;
}

/* =====================
   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(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
}

/* 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);
}

/* =====================
   HERO SECTION
===================== */
.hero-full {
  background-color: #ffffff;
  min-height: 100vh;
  padding-top: 0px; /* Account for fixed navbar */
}

/* Background pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

/* Left accent ribbon */
.hero-accent-ribbon {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 100%;
  background-color: var(--primary);
  transform: skewX(-6deg);
  transform-origin: top left;
  z-index: 1;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.08);
}

/* Content container */
.hero-content {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Trust Badge */
.hero-badge {
  display: inline-block;
  background-color: rgba(10, 37, 64, 0.08);
  color: var(--primary);
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title .text-primary {
  color: var(--primary) !important;
}

/* Description text */
.hero-text {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--text-body);
}

/* Stats */
.hero-stats {
  margin-top: 3rem;
}

.hero-stats .stat {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.hero-stats strong {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
}

/* Image area */
/* =====================
   TILTED HERO IMAGE (INNER)
===================== */

.hero-image {
  position: relative;
  overflow: hidden;
}

/* Actual image layer */
.hero-image-inner {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-image: url("https://images.pexels.com/photos/7567443/pexels-photo-7567443.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
}

/* White diagonal cut */
.hero-image-inner::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 0;
  width: 240px;
  height: 100%;
  background: #ffffff;
  transform: skewX(-6deg);
  z-index: 2;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.06);
}

/* Solid theme ribbon bar */
.hero-image-inner::after {
  content: "";
  position: absolute;
  left: 122px;
  top: 0px;
  width: 50px;
  height: 100%;
  background-color: var(--primary);
  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;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats .stat {
    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;
  }
}
/* 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);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #0d6efd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.built-card:hover .icon-wrapper {
  background-color: var(--primary) !important;
}

.built-card:hover .icon-wrapper i {
  color: white !important;
}

.icon-wrapper i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

/* 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;
}

.cap-icon {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-block;
}

.cap-card h6 {
  font-weight: 600;
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.cap-card:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}
/* =====================
   CORE CAPABILITIES SECTION
===================== */
.capabilities-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
  position: relative;
}

.capabilities-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(10, 37, 64, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10, 37, 64, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.capabilities-accent-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.05) 0%, transparent 70%);
  filter: blur(20px);
  top: 10%;
  right: 10%;
}

/* Left Intro Styling */
.line-accent {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.stat-item {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.05);
  min-width: 120px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-body);
  opacity: 0.8;
}

/* Cards Styling */
.cap-card {
  border-radius: var(--border-radius);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  background: white;
  position: relative;
  border: 1px solid rgba(10, 37, 64, 0.1);
}

.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(10, 37, 64, 0.12) !important;
  border-color: var(--primary) !important;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.4s ease;
}

.cap-card:hover::before {
  height: 100%;
}

.cap-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.1), rgba(10, 37, 64, 0.05));
  transition: all 0.3s ease;
}

.cap-card:hover .cap-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.05);
}

.cap-icon {
  font-size: 1.75rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.cap-card:hover .cap-icon {
  color: white;
}

/* Card Lists */
.cap-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cap-card ul li:last-child {
  border-bottom: none;
}

.cap-card ul li i {
  flex-shrink: 0;
}

/* Badge Styling */
.cap-card .badge {
  padding: 0.35rem 0.75rem;
  font-weight: 500;
  border-radius: 50px;
}

/* Card Footer Links */
.cap-card .card-footer a {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.cap-card:hover .card-footer a {
  opacity: 1;
  transform: translateX(4px);
}

.cap-card .card-footer a i {
  transition: transform 0.3s ease;
}

.cap-card:hover .card-footer a i {
  transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
  .capabilities-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .display-6 {
    font-size: 2.5rem;
  }
  
  .cap-card .card-body {
    padding: 2rem !important;
  }
}

@media (max-width: 991.98px) {
  .sticky-top {
    position: static !important;
    margin-bottom: 3rem;
  }
  
  .capabilities-accent-circle {
    width: 200px;
    height: 200px;
    right: 5%;
  }
  
  .stat-item {
    min-width: 100px;
  }
}

@media (max-width: 767.98px) {
  .capabilities-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .display-6 {
    font-size: 2rem;
  }
  
  .cap-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .cap-icon {
    font-size: 1.5rem;
  }
  
  .cap-card h4 {
    font-size: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .row.g-5 {
    gap: 2rem !important;
  }
  
  .cap-card {
    margin-bottom: 1rem;
  }
  
  .cap-card .card-body {
    padding: 1.5rem !important;
  }
  
  .stat-item {
    min-width: 100%;
  }
}

/* Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cap-card:hover .cap-icon-wrapper {
  animation: float 1.5s ease-in-out infinite;
}
/* =====================
   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;
  transition: all 0.3s ease;
}

.workflow-step:hover .step-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  transform: rotate(5deg) scale(1.05);
}

.workflow-step:hover .step-icon-box i {
  color: white !important;
}

.step-icon-box i {
  font-size: 2rem;
  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 */
.text-gradient-primary {
  background: linear-gradient(90deg, var(--primary), #1e5bc9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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(10, 37, 64, 0.08);
  margin-left: auto;
  margin-right: auto;
}

.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(10, 37, 64, 0.08);
  flex-shrink: 0;
}

.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: 70vh;
    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: 95%;
}
 :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%;
    }

    .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.12);
      border-radius: 12px;
      padding: 1.25rem;
      text-align: center;
      backdrop-filter: blur(10px);
      color: white;
    }

    .stat-card h3 {
      font-size: 1.4rem;
      font-weight: 700;
      margin: 0;
      color: white;
    }

    .stat-label {
      font-size: 1.0rem;
      opacity: 0.8;
      display: block;
      margin-bottom: 0.25rem;
      color: white;
      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: 0 auto;
    }

    .empty-state-icon {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
      font-size: 2.5rem;
      color: var(--primary);
    }

    .empty-state-badge {
      display: inline-block;
      background: #e2e8f0;
      color: #334155;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
    }

    .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: 56px;
      height: 56px;
      border-radius: 50%;
      background: rgba(10, 37, 64, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--primary);
      margin-bottom: 1rem;
      flex-shrink: 0;
    }

    .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);
      }
    }

    /* 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);
  }
}




