/* =============================================================
   EMERALD FINANCE — Premium Design System
   Luxury White + Emerald Green | Glassmorphism | Soft UI
   ============================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Core Palette */
  --primary:        #16A34A;
  --primary-dark:   #15803D;
  --primary-darker: #166534;
  --primary-light:  #22C55E;
  --accent:         #22C55E;
  --accent-light:   #4ADE80;

  /* Neutrals */
  --white:          #FFFFFF;
  --bg-body:        #F9FAFB;
  --bg-section:     #F3F4F6;
  --bg-card:        #FFFFFF;
  --light-green:    #DCFCE7;
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;

  /* Text */
  --text-primary:   #111827;
  --text-secondary: #374151;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;

  /* Semantic */
  --success:        #15803D;
  --warning:        #D97706;
  --danger:         #DC2626;
  --info:           #0891B2;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  --grad-primary-h: linear-gradient(135deg, #15803D 0%, #16A34A 100%);
  --grad-hero:      linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #F9FAFB 100%);
  --grad-cta:       linear-gradient(135deg, #14532D 0%, #166534 40%, #15803D 100%);
  --grad-glass:     linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.65) 100%);

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-green:   0 8px 32px rgba(22,163,74,0.20), 0 2px 8px rgba(22,163,74,0.12);
  --shadow-green-lg: 0 16px 48px rgba(22,163,74,0.28), 0 6px 16px rgba(22,163,74,0.16);
  --shadow-card:    0 2px 20px rgba(0,0,0,0.07);

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* Spacing */
  --section-py:  6rem;
  --navbar-height: 72px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans-fast: 0.15s var(--ease);
  --trans-base: 0.25s var(--ease);
  --trans-slow: 0.4s var(--ease);

  /* Glassmorphism */
  --glass-bg:     rgba(255, 255, 255, 0.80);
  --glass-border: rgba(255, 255, 255, 0.60);
  --glass-blur:   blur(20px);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ── Dark Mode Overrides ── */
body.dark-mode {
  --bg-body:      #0A0F0A;
  --bg-section:   #111711;
  --bg-card:      #141F14;
  --white:        #141F14;
  --text-primary: #F9FAFB;
  --text-secondary:#D1D5DB;
  --text-muted:   #9CA3AF;
  --border:       #1F2F1F;
  --border-light: #1A271A;
  --light-green:  #052e16;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.40);
  --shadow-xl:    0 20px 60px rgba(0,0,0,0.45);
  --glass-bg:     rgba(20, 31, 20, 0.85);
  --glass-border: rgba(255,255,255,0.08);
  --grad-hero:    linear-gradient(135deg, #0A150A 0%, #0D1F0D 50%, #0A0F0A 100%);
}

/* ══════════════════════════════════════════════
   BASE RESET & TYPOGRAPHY
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

p { color: var(--text-muted); line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Typography Utilities ── */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-poppins { font-family: 'Poppins', sans-serif; }

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-py { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-section); padding: var(--section-py) 0; }
.section-white { background: var(--white); padding: var(--section-py) 0; }

/* ── Section Labels ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--light-green);
  border: 1px solid rgba(22,163,74,0.20);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: all var(--trans-base);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  height: 64px;
}

body.dark-mode .navbar {
  background: rgba(10,15,10,0.95);
  border-bottom-color: var(--border);
}

.navbar-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary) !important;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: var(--shadow-green);
  flex-shrink: 0;
}

/* Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary) !important; background: var(--light-green); }
.nav-link.active { color: var(--primary) !important; font-weight: 600; }

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  background: var(--white);
  min-width: 200px;
  animation: dropIn 0.2s var(--ease);
}
body.dark-mode .dropdown-menu { background: var(--bg-card); border-color: var(--border); }

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

.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  transition: all var(--trans-fast);
}
.dropdown-item:hover {
  background: var(--light-green);
  color: var(--primary);
}
body.dark-mode .dropdown-item { color: var(--text-secondary); }
body.dark-mode .dropdown-item:hover { background: rgba(22,163,74,0.15); }

/* Nav Search */
.nav-search-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 14px;
}
.nav-search-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--light-green);
}

/* Nav Primary CTA */
.btn-nav-primary {
  background: var(--grad-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  padding: 0.45rem 1.2rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  box-shadow: var(--shadow-green);
  transition: all var(--trans-base) !important;
}
.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-green-lg) !important;
  background: var(--grad-primary-h) !important;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 14px;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--light-green); }

/* Navbar divider */
.nav-vr {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 0.5rem;
  flex-shrink: 0;
}

/* ── Badge ── */
.badge-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--white);
}

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
  justify-content: space-around;
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
body.dark-mode .mobile-bottom-nav { background: var(--bg-card); }

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  text-decoration: none;
}
.mob-nav-item i { font-size: 18px; }
.mob-nav-item.active, .mob-nav-item:hover { color: var(--primary); }

@media (max-width: 991px) {
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 60px; }
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--trans-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--trans-fast);
  background: rgba(255,255,255,0.15);
}
.btn:hover::before { opacity: 1; }

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%,-50%);
  transition: width 0.5s, height 0.5s, opacity 0.5s;
  opacity: 0;
}
.btn:active::after {
  width: 300px; height: 300px;
  opacity: 0;
  transition: 0s;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff !important;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-lg);
  background: var(--grad-primary-h);
  color: #fff !important;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--primary) !important;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--light-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--light-green);
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--shadow-green);
}

.btn-pill { border-radius: var(--radius-full) !important; }
.btn-lg   { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm   { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-base);
}
body.dark-mode .card { background: var(--bg-card); border-color: var(--border); }

.card-body { padding: 1.5rem; }

/* Lift hover */
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(22,163,74,0.25);
}

/* Glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}
body.dark-mode .glass-card {
  background: rgba(20,31,20,0.8);
  border-color: rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════ */
.form-control, .form-select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: all var(--trans-fast);
  width: 100%;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  background: var(--white);
}
body.dark-mode .form-control,
body.dark-mode .form-select {
  background: var(--bg-section);
  border-color: var(--border);
  color: var(--text-primary);
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
}
.form-range { accent-color: var(--primary); }

/* ══════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════ */
.hero-section {
  min-height: calc(100vh - var(--navbar-height));
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}

body.dark-mode .hero-section { background: var(--grad-hero); }

/* Floating background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blob-drift 12s ease-in-out infinite;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,163,74,0.12) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,0.10) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -5s;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
  top: 50%; left: 40%;
  animation-delay: -8s;
}
@keyframes blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,30px) scale(0.95); }
}

/* Hero grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,163,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(22,163,74,0.12);
}
.hero-badge .badge-icon {
  width: 24px; height: 24px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px;
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.hero-title .highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.trust-badge i { color: var(--primary); font-size: 12px; }

/* Hero Right Column */
.hero-visual {
  position: relative;
  min-height: 520px;
}

/* Main Hero Card (EMI widget) */
.hero-card-main {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: float-slow 6s ease-in-out infinite;
}
.hero-card-header {
  height: 5px;
  background: var(--grad-primary);
}
.hero-card-body { padding: 1.75rem; }
.hero-emi-value {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Floating Glass Cards */
.hero-float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1rem;
  z-index: 10;
}
body.dark-mode .hero-float-card {
  background: rgba(20,31,20,0.85);
  border-color: rgba(255,255,255,0.06);
}

.hero-float-approval {
  top: 12%; right: -5%;
  animation: float-right 5s ease-in-out infinite;
}
.hero-float-credit {
  bottom: 18%; left: -5%;
  animation: float-left 7s ease-in-out infinite;
}
.hero-float-emi {
  bottom: 5%; right: 5%;
  animation: float-slow 8s ease-in-out infinite;
}

@keyframes float-slow {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes float-right {
  0%,100% { transform: translateY(0) rotate(1deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float-left {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}
@keyframes animate-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.animate-float { animation: animate-float 5s ease-in-out infinite; }

/* Approval badge inside float card */
.approval-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.approval-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.approval-text-sm { font-size: 0.7rem; color: var(--text-muted); }
.approval-text-lg { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }

/* Credit Score Arc */
.credit-score-ring {
  width: 56px; height: 56px;
  position: relative;
}
.credit-score-ring svg { transform: rotate(-90deg); }
.credit-score-ring .score-text {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  transform: rotate(0);
}

/* ── Hero Animations ── */
.animate-fade { animation: fadeIn 0.8s var(--ease) both; }
.animate-fade-up { animation: fadeUp 0.8s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   PARTNERS / TRUSTED BY
══════════════════════════════════════════════ */
.partners-section {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
body.dark-mode .partners-section { background: var(--bg-card); }

.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.partner-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  opacity: 0.5;
  transition: opacity var(--trans-base);
  font-family: 'Poppins', sans-serif;
}
.partner-logo:hover { opacity: 0.8; }
.partner-logo i { font-size: 1.4rem; }

/* ══════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════ */
.stats-strip {
  background: var(--white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
body.dark-mode .stats-strip { background: var(--bg-card); }

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.stat-strip-item {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-strip-item:last-child { border-right: none; }

.stat-strip-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-strip-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* counter animation target: .stat-value[data-target] */

/* ══════════════════════════════════════════════
   LOAN CATEGORY CARDS
══════════════════════════════════════════════ */
.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.loan-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.dark-mode .loan-card { background: var(--bg-card); }

.loan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,163,74,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans-base);
}
.loan-card:hover::before { opacity: 1; }

.loan-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(22,163,74,0.35);
  box-shadow: var(--shadow-green-lg);
}

.loan-card-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 1.25rem;
  position: relative;
  transition: all var(--trans-base);
}
.loan-card:hover .loan-card-icon { transform: scale(1.1) rotate(-5deg); }

/* Icon color variants */
.icon-emerald { background: rgba(22,163,74,0.10);  color: #16A34A; }
.icon-teal    { background: rgba(20,184,166,0.10); color: #0D9488; }
.icon-violet  { background: rgba(139,92,246,0.10); color: #7C3AED; }
.icon-amber   { background: rgba(245,158,11,0.10); color: #D97706; }
.icon-rose    { background: rgba(244,63,94,0.10);  color: #E11D48; }
.icon-sky     { background: rgba(14,165,233,0.10); color: #0284C7; }
.icon-indigo  { background: rgba(99,102,241,0.10); color: #4F46E5; }
.icon-lime    { background: rgba(132,204,22,0.10); color: #65A30D; }
.icon-orange  { background: rgba(249,115,22,0.10); color: #EA580C; }

.loan-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.loan-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.loan-card-rate {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 2px;
}
.loan-card-rate-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.loan-card-amount { font-size: 0.72rem; color: var(--text-light); margin-bottom: 1.25rem; }

.loan-card .btn-loan {
  font-size: 0.8rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--light-green);
  color: var(--primary) !important;
  border: 1px solid rgba(22,163,74,0.20);
  font-weight: 600;
  transition: all var(--trans-base);
  margin-top: auto;
}
.loan-card:hover .btn-loan {
  background: var(--grad-primary);
  color: #fff !important;
  border-color: transparent;
  box-shadow: var(--shadow-green);
}

/* ══════════════════════════════════════════════
   FEATURES / WHY CHOOSE US
══════════════════════════════════════════════ */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: all var(--trans-base);
  position: relative;
  overflow: hidden;
  height: 100%;
}
body.dark-mode .feature-card { background: var(--bg-card); }

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-base);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
  border-color: rgba(22,163,74,0.20);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 1.25rem;
  transition: all var(--trans-base);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }

.feature-icon-primary   { background: rgba(22,163,74,0.12);  color: var(--primary); }
.feature-icon-secondary { background: rgba(14,165,233,0.12); color: #0284C7; }
.feature-icon-success   { background: rgba(22,163,74,0.12);  color: var(--success); }
.feature-icon-accent    { background: rgba(139,92,246,0.12); color: #7C3AED; }
.feature-icon-warning   { background: rgba(245,158,11,0.12); color: var(--warning); }
.feature-icon-danger    { background: rgba(239,68,68,0.12);  color: var(--danger); }

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS — PROCESS STEPS
══════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(22,163,74,0.2) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-green);
  position: relative;
  transition: all var(--trans-base);
}
.process-step:hover .process-step-number { transform: scale(1.12); box-shadow: var(--shadow-green-lg); }
.process-step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,0.25);
}
.process-step-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin: 0 auto 0.75rem;
  background: var(--light-green);
  color: var(--primary);
}
.process-step-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.process-step-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════════════
   EMI CALCULATOR
══════════════════════════════════════════════ */
.emi-section { background: var(--white); }
body.dark-mode .emi-section { background: var(--bg-card); }

.emi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
body.dark-mode .emi-card { background: var(--bg-card); }

.emi-result-card {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emi-result-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px; right: -60px;
}
.emi-result-card::after {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -60px; left: -50px;
}
.emi-amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.emi-breakdown-item {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.range-track {
  position: relative;
  margin-bottom: 1.5rem;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.range-value-display {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* ══════════════════════════════════════════════
   ELIGIBILITY CHECKER
══════════════════════════════════════════════ */
.eligibility-section {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  padding: var(--section-py) 0;
}
body.dark-mode .eligibility-section { background: linear-gradient(135deg, #052e16 0%, #0a4a1e 100%); }

.eligibility-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(22,163,74,0.15);
}
body.dark-mode .eligibility-card { background: var(--bg-card); }

/* ══════════════════════════════════════════════
   STATISTICS SECTION
══════════════════════════════════════════════ */
.stats-section {
  background: var(--grad-cta);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -300px; right: -200px;
}
.stats-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  bottom: -200px; left: -100px;
}

.stat-big-value {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.stat-big-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.stat-big-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════
   DOCUMENTS SECTION
══════════════════════════════════════════════ */
.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--trans-base);
}
body.dark-mode .doc-card { background: var(--bg-card); }
.doc-card:hover {
  border-color: rgba(22,163,74,0.30);
  box-shadow: var(--shadow-green);
  transform: translateX(4px);
}
.doc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--light-green);
  border: 1px solid rgba(22,163,74,0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 18px;
  flex-shrink: 0;
}
.doc-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  transition: all var(--trans-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.dark-mode .testimonial-card { background: var(--bg-card); }

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.12;
  position: absolute;
  top: -10px; left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-green);
  border-color: rgba(22,163,74,0.25);
}

.testimonial-stars { color: #F59E0B; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.72rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   SUCCESS STORIES
══════════════════════════════════════════════ */
.success-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all var(--trans-base);
  cursor: pointer;
}
.success-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.success-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}
.success-card:hover .success-card-bg { transform: scale(1.05); }
.success-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,46,22,0.85) 0%, transparent 60%);
}
.success-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: #fff;
}
.success-amount {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent-light);
}

/* ══════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════ */
.accordion-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all var(--trans-base);
}
body.dark-mode .accordion-item { background: var(--bg-card); border-color: var(--border); }
.accordion-item:hover { border-color: rgba(22,163,74,0.30); }
.accordion-item.open { border-color: rgba(22,163,74,0.35); box-shadow: var(--shadow-green); }

.accordion-header { margin: 0; }
.accordion-button {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.25rem 1.5rem;
  border: none;
  width: 100%;
  text-align: left;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.accordion-button::after {
  background-image: none !important;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 1rem;
  transition: transform var(--trans-base);
  flex-shrink: 0;
}
.accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.accordion-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════════ */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--trans-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.dark-mode .blog-card { background: var(--bg-card); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(22,163,74,0.20); }

.blog-card-img {
  height: 180px;
  background: var(--light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,163,74,0.08) 0%, transparent 60%);
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.blog-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}
.blog-excerpt { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.blog-meta { font-size: 0.72rem; color: var(--text-light); display: flex; align-items: center; gap: 0.75rem; }

/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */
.cta-section {
  background: var(--grad-cta);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-section::before { width: 500px; height: 500px; top: -200px; left: -150px; }
.cta-section::after  { width: 400px; height: 400px; bottom: -200px; right: -100px; }

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.cta-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-cta-white {
  background: #fff;
  color: var(--primary) !important;
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.btn-cta-white:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.2); background: #f0fdf4; }
.btn-cta-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* CTA trust row */
.cta-trust { margin-top: 2rem; color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.cta-trust i { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════
   PREMIUM FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}
body.dark-mode .site-footer { background: #060c06; }

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.footer-top {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
.footer-brand-tag { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.footer-brand-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin: 1rem 0 1.25rem; max-width: 260px; }

.footer-logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: var(--shadow-green);
  flex-shrink: 0;
}

.footer-col-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-links a i { font-size: 12px; color: var(--primary); width: 14px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}
.footer-contact-icon {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Newsletter */
.footer-newsletter { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-newsletter input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--trans-fast);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button {
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.footer-newsletter button:hover { box-shadow: var(--shadow-green); }

/* Social */
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer bottom */
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--trans-fast);
}
.footer-bottom-links a:hover { color: var(--accent-light); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.40s; }
.stagger-9 { transition-delay: 0.45s; }

/* ══════════════════════════════════════════════
   ADMIN & USER DASHBOARDS (preserved)
══════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 800;
  transition: transform var(--trans-base);
  padding: 1rem 0;
}
body.dark-mode .sidebar { background: var(--bg-card); border-color: var(--border); }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  transition: all var(--trans-fast);
  text-decoration: none;
  position: relative;
}
.sidebar-link:hover, .sidebar-link.active {
  color: var(--primary);
  background: var(--light-green);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.sidebar-link i { width: 18px; font-size: 14px; text-align: center; }

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  padding: 1rem 1.25rem 0.4rem;
}

.main-content {
  margin-left: 260px;
  min-height: calc(100vh - var(--navbar-height));
  padding: 2rem;
}

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); top: 0; height: 100vh; z-index: 1050; }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-content { margin-left: 0; padding: 1.25rem; }
}

/* ══════════════════════════════════════════════
   ALERTS & TOASTS
══════════════════════════════════════════════ */
.alert {
  border-radius: var(--radius-lg);
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info     { background: #f0f9ff; color: #0c4a6e; border: 1px solid #bae6fd; }
body.dark-mode .alert-success { background: #052e16; border-color: rgba(22,163,74,0.25); color: #4ade80; }
body.dark-mode .alert-danger  { background: #450a0a; border-color: rgba(220,38,38,0.25); color: #fca5a5; }

/* ══════════════════════════════════════════════
   TABLE STYLES
══════════════════════════════════════════════ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.table th {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
body.dark-mode .table td { border-bottom-color: var(--border); }
.table tr:last-child td { border-bottom: none; }
.table-hover tr:hover td { background: rgba(22,163,74,0.04); }
body.dark-mode .table-hover tr:hover td { background: rgba(22,163,74,0.08); }
body.dark-mode .table th { background: var(--bg-section); }

/* ══════════════════════════════════════════════
   BADGES & PILLS
══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
}
.badge-success  { background: #dcfce7; color: #166534; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-secondary{ background: var(--bg-section); color: var(--text-muted); }
body.dark-mode .badge-success  { background: rgba(22,163,74,0.15); color: #4ade80; }
body.dark-mode .badge-danger   { background: rgba(220,38,38,0.15);  color: #fca5a5; }
body.dark-mode .badge-warning  { background: rgba(217,119,6,0.15);  color: #fcd34d; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-item .page-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--trans-fast);
}
.page-item .page-link:hover { border-color: var(--primary); color: var(--primary); background: var(--light-green); }
.page-item.active .page-link { background: var(--grad-primary); color: #fff; border-color: transparent; }
.page-item.disabled .page-link { opacity: 0.45; cursor: default; }
body.dark-mode .page-item .page-link { background: var(--bg-card); }

/* ══════════════════════════════════════════════
   MISCELLANEOUS UTILITIES
══════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.divider-green { height: 2px; background: var(--grad-primary); border-radius: 2px; }

.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--text-light); margin-bottom: 1rem; display: block; }
.empty-state h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ── Smooth scroll offset for sticky nav ── */
[id] { scroll-margin-top: calc(var(--navbar-height) + 1rem); }

/* ── Overflow ── */
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Width utility ── */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ── Gap utilities ── */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ── Flex utilities ── */
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.ms-auto { margin-left: auto; }
.mt-auto { margin-top: auto; }

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-primary-green { color: var(--primary); }
.text-muted   { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

/* ══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .hero-float-approval { right: 0; }
  .hero-float-credit   { left: 0; }
}

@media (max-width: 991px) {
  :root { --section-py: 4rem; --navbar-height: 64px; }

  .hero-section { padding: 3.5rem 0 2.5rem; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero-visual { min-height: 360px; margin-top: 2rem; }
  .hero-float-card { display: none; }

  .loan-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* Collapse for Bootstrap */
  .navbar-collapse { position: fixed; top: var(--navbar-height); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--navbar-height)); overflow-y: auto; }
  body.dark-mode .navbar-collapse { background: var(--bg-card); }
  .navbar-nav { flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; }
  .nav-link { width: 100%; border-radius: var(--radius-sm); }
  .nav-vr { display: none !important; }
  .dropdown-menu { position: static !important; box-shadow: none; border: none; background: var(--bg-section); padding: 0.25rem 0.5rem; }
  body.dark-mode .dropdown-menu { background: rgba(22,163,74,0.05); }
}

@media (max-width: 767px) {
  :root { --section-py: 3rem; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-top .row { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .stats-strip .row > div { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-strip .row > div:last-child { border-bottom: none; }

  .cta-title { font-size: 2rem; }
  .emi-card { padding: 1.5rem; }
  .loan-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .loan-grid { grid-template-columns: 1fr 1fr; }
  .trust-badges { gap: 0.5rem; }
  .trust-badge { font-size: 0.72rem; padding: 4px 10px; }
}

/* ══════════════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-base);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.3s var(--ease-spring) both;
}
body.dark-mode .search-box { background: var(--bg-card); }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  font-family: 'Inter', sans-serif;
}
body.dark-mode .search-input { color: var(--text-primary); }
.search-input::placeholder { color: var(--text-light); }

/* ══════════════════════════════════════════════
   TILT EFFECT (JS-driven via inline style)
══════════════════════════════════════════════ */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1s var(--ease);
}

/* ══════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 0.5rem; }

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 50%, #F9FAFB 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
body.dark-mode .page-hero { background: linear-gradient(135deg, #0a150a 0%, #0d1f0d 100%); border-color: var(--border); }
.page-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
  top: -200px; right: 0;
  pointer-events: none;
}
.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ══════════════════════════════════════════════
   AVATAR GROUP
══════════════════════════════════════════════ */
.avatar-group { display: flex; }
.avatar-group .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 12px;
  border: 2px solid var(--white);
  margin-left: -8px;
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ══════════════════════════════════════════════
   DARK MODE – MAIN CONTENT OVERRIDES
══════════════════════════════════════════════ */
body.dark-mode .section-white { background: var(--bg-card); }
body.dark-mode .section-alt   { background: var(--bg-section); }
body.dark-mode .partners-section { border-color: var(--border); }
body.dark-mode .stats-strip   { background: var(--bg-card); }
body.dark-mode .hero-grid { opacity: 0.5; }

/* ══════════════════════════════════════════════
   CUSTOM SCROLLBAR
══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Selection ── */
::selection { background: rgba(22,163,74,0.20); color: var(--primary); }

/* ══════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
body.dark-mode .auth-page { background: var(--grad-hero); }

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 10;
  animation: slideDown 0.4s var(--ease-spring) both;
}
body.dark-mode .auth-card {
  background: rgba(20, 31, 20, 0.85);
  border-color: rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════ */
@media print {
  .navbar, .mobile-bottom-nav, .sidebar { display: none !important; }
  .main-content { margin: 0; padding: 0; }
  body { background: #fff; }
}

/* ══════════════════════════════════════════════
   DASHBOARD SIDEBAR & LAYOUT
══════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  z-index: 1020;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-base);
  overflow-y: auto;
}
body.dark-mode .sidebar { background: var(--bg-card); }

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-green);
}
.sidebar-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.25rem 0 0.35rem 0.6rem;
  opacity: 0.7;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--trans-fast);
  text-decoration: none;
  position: relative;
}
.sidebar-nav a .nav-icon {
  width: 28px;
  height: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  flex-shrink: 0;
}
.sidebar-nav a:hover {
  background: var(--light-green);
  color: var(--primary);
}
.sidebar-nav a.active {
  background: var(--light-green);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav a:hover .nav-icon, .sidebar-nav a.active .nav-icon {
  color: var(--primary);
  background: rgba(22,163,74,0.12);
}
.sidebar-nav a .nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.sidebar-logout:hover {
  background: var(--danger);
  color: #fff;
}

/* Dashboard Stat Cards */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-base);
  height: 100%;
}
body.dark-mode .stat-card { background: var(--bg-card); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(22,163,74,0.3); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.stat-icon-primary { background: rgba(22,163,74,0.1); color: var(--primary); }
.stat-icon-success { background: rgba(21,128,61,0.1); color: var(--success); }
.stat-icon-warning { background: rgba(217,119,6,0.1); color: var(--warning); }
.stat-icon-info    { background: rgba(8,145,178,0.1); color: var(--info); }
.stat-icon-danger  { background: rgba(220,38,38,0.1); color: var(--danger); }
.stat-icon-accent  { background: rgba(249,115,22,0.1); color: #EA580C; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}
.bg-icon {
  position: absolute;
  bottom: -15%; right: -5%;
  font-size: 5rem;
  color: var(--border);
  opacity: 0.2;
  transform: rotate(-15deg);
}

/* Badges */
.badge { font-weight: 600; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); }
.badge-primary { background: rgba(22,163,74,0.1); color: var(--primary); }
.badge-secondary { background: rgba(107,114,128,0.1); color: var(--text-secondary); }
.badge-success { background: rgba(21,128,61,0.1); color: var(--success); }
.badge-warning { background: rgba(217,119,6,0.1); color: var(--warning); }
.badge-danger { background: rgba(220,38,38,0.1); color: var(--danger); }
.badge-info { background: rgba(8,145,178,0.1); color: var(--info); }

/* ══════════════════════════════════════════════
   DASHBOARD MAIN CONTENT LAYOUT
══════════════════════════════════════════════ */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: 0;
  background: var(--bg-body);
  width: calc(100% - 260px);
  display: flex;
  flex-direction: column;
}
body.dark-mode .main-content { background: var(--bg-body); }

/* Panel Topbar */
.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  width: 100%;
  min-height: 60px;
}
body.dark-mode .panel-topbar { background: var(--bg-card); }

/* Topbar Left */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
body.dark-mode .sidebar-toggle { background: var(--bg-card); }
.sidebar-toggle:hover {
  background: var(--light-green);
  color: var(--primary);
  border-color: var(--primary);
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.topbar-title-icon {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Topbar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.topbar-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.topbar-icon-btn:hover {
  background: var(--light-green);
  color: var(--primary);
}
body.dark-mode .topbar-icon-btn { color: var(--text-muted); }
body.dark-mode .topbar-icon-btn:hover { color: var(--primary); }

/* Notification dot */
.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* User Dropdown */
.topbar-dropdown {
  position: relative;
}
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
body.dark-mode .topbar-user-btn { background: var(--bg-card); }
.topbar-user-btn:hover {
  border-color: var(--primary);
  background: var(--light-green);
}
.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}
.topbar-avatar-admin {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}
.topbar-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.topbar-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
  max-width: 160px;
}
.topbar-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-user-email {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-caret {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.topbar-user-btn.open .topbar-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.topbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1000;
}
body.dark-mode .topbar-dropdown-menu { background: var(--bg-card); }
.topbar-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.topbar-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.topbar-dropdown-menu a:hover {
  background: var(--light-green);
  color: var(--primary);
}
.topbar-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
}
.topbar-dropdown-menu a:hover i {
  color: var(--primary);
}
.topbar-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
}
.topbar-dropdown-logout {
  color: var(--danger) !important;
}
.topbar-dropdown-logout i {
  color: var(--danger) !important;
}
.topbar-dropdown-logout:hover {
  background: rgba(239,68,68,0.1) !important;
  color: var(--danger) !important;
}

/* Sidebar Close (mobile) */
.sidebar-close {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--light-green);
  color: var(--primary);
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.sidebar-close:hover {
  background: var(--danger);
  color: #fff;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1019;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* Inner page padding wrapper */
.page-inner {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-content { margin-left: 0; width: 100%; }
  .page-inner { padding: 1rem; }
  .sidebar-toggle { display: flex; }
  .sidebar-close { display: flex; }
  .topbar-user-info { display: none; }
  .topbar-caret { display: none; }
  .topbar-title { font-size: 0.95rem; }
}

@media (max-width: 576px) {
  .panel-topbar { padding: 0.5rem 1rem; }
  .topbar-title { font-size: 0.85rem; }
  .topbar-title-icon { display: none; }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Cards inside dashboard */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.table thead tr {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
body.dark-mode .table thead tr { background: rgba(22,163,74,0.05); }
.table thead th {
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  border: none;
}
.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--trans-fast);
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: rgba(22,163,74,0.03); }
.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border: none;
  color: var(--text-secondary);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 260px;
  width: 100%;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
}
.alert-warning {
  background: rgba(217,119,6,0.1);
  color: #92400E;
  border-color: rgba(217,119,6,0.3);
}
body.dark-mode .alert-warning { color: #FCD34D; }
.alert-danger {
  background: rgba(220,38,38,0.08);
  color: #991B1B;
  border-color: rgba(220,38,38,0.25);
}
body.dark-mode .alert-danger { color: #FCA5A5; }
.alert-success {
  background: rgba(22,163,74,0.08);
  color: #166534;
  border-color: rgba(22,163,74,0.2);
}
body.dark-mode .alert-success { color: #86EFAC; }
.alert-info {
  background: rgba(8,145,178,0.08);
  color: #155E75;
  border-color: rgba(8,145,178,0.2);
}
body.dark-mode .alert-info { color: #7DD3FC; }
.alert-permanent { flex-wrap: wrap; }

/* Animate utilities */
@keyframes fade-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-up { animation: fade-up 0.5s var(--ease) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }

@keyframes glow-pulse { 0%,100%{box-shadow:var(--shadow-green);} 50%{box-shadow:var(--shadow-green-lg);} }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }

/* btn-outline-secondary */
.btn-outline-secondary {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1.5px solid var(--border);
}
.btn-outline-secondary:hover {
  background: var(--bg-section);
  border-color: var(--text-muted);
  color: var(--text-primary) !important;
}

/* Input Group */
.input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md) !important; }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0 !important; padding: 0.7rem 1rem; }
.input-group-text {
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* Utility margin */
.mb-6 { margin-bottom: 4rem !important; }

/* radius-pill for badge */
.radius-pill { border-radius: var(--radius-full) !important; }
.danger-light { background: rgba(220,38,38,0.1); }
.warning-light { background: rgba(217,119,6,0.1); }
.success-light { background: rgba(22,163,74,0.1); }

/* Danger light var fix */
:root {
  --secondary: #0284C7;
  --secondary-light: rgba(2,132,199,0.1);
  --danger-light: rgba(220,38,38,0.1);
  --warning-light: rgba(217,119,6,0.1);
  --success-light: rgba(22,163,74,0.1);
  --radius-pill: 9999px;
}

/* ══════════════════════════════════════════════
   BUTTON VARIANTS — Dashboard
══════════════════════════════════════════════ */
.btn-success {
  background: var(--grad-primary);
  color: #fff !important;
  box-shadow: var(--shadow-green);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: var(--shadow-green-lg); color: #fff !important; }

.btn-warning {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff !important;
}
.btn-warning:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff !important; }

.btn-danger {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff !important;
}
.btn-danger:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff !important; }

.btn-info {
  background: linear-gradient(135deg, #0891B2, #06B6D4);
  color: #fff !important;
}
.btn-info:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff !important; }

/* ══════════════════════════════════════════════
   TABLE UTILITIES
══════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; }

/* ══════════════════════════════════════════════
   TEXT / DISPLAY UTILITIES
══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-end    { text-align: right; }
.text-muted  { color: var(--text-muted) !important; }
.text-primary-color { color: var(--primary) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 500 !important; }

/* ══════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════ */
.modal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
body.dark-mode .modal-content { background: var(--bg-card); }
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

/* ══════════════════════════════════════════════
   FORM HELPERS
══════════════════════════════════════════════ */
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }
.form-text { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
