/* ==========================================================================
   SOLARITHM ENERGY SOLUTIONS — MODERN BOOTSTRAP 5 STYLESHEET
   ========================================================================== */

:root {
  --solar-orange: #f97316;
  --solar-orange-dark: #ea580c;
  --solar-amber: #f59e0b;
  --solar-gold: #fbbf24;
  --solar-yellow: #fde047;
  --navy-darkest: #07111e;
  --navy-dark: #0a192f;
  --navy-surface: #112240;
  --navy-border: rgba(255, 255, 255, 0.12);
  --emerald-accent: #10b981;
  --body-bg: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--body-bg);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.display-1, .display-2, .display-3, .display-4 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1, .h1 { font-size: calc(1.75rem + 1.5vw); }
h2, .h2 { font-size: calc(1.45rem + 1vw); }
h3, .h3 { font-size: calc(1.25rem + 0.6vw); }

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Gradients */
.gradient-text-solar {
  background: linear-gradient(135deg, #ffffff 0%, #fde047 35%, #fbbf24 65%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-green {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-navy-darkest {
  background-color: var(--navy-darkest) !important;
}

.bg-navy-dark {
  background-color: var(--navy-dark) !important;
}

.bg-navy-surface {
  background-color: var(--navy-surface) !important;
}

/* Custom Buttons with Crisp Typography & Glow */
.btn-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  box-shadow: 0 8px 24px -4px rgba(249, 115, 22, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(249, 115, 22, 0.65);
  color: #ffffff !important;
}

.btn-glow:active {
  transform: translateY(0);
}

.btn-outline-solar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 9999px;
  padding: 12px 26px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-solar:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.25);
}

/* Modern Glassmorphism & Surface Cards */
.glass-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.15), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(249, 115, 22, 0.3);
}

.glass-card-dark {
  background: rgba(17, 34, 64, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #e2e8f0;
}

.glass-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.25);
}

/* Site Header (Unified Fixed Header) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.18);
}

/* Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 50%, #d97706 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

/* Navbar */
.navbar-custom {
  background: rgba(7, 17, 30, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px 0;
}

.site-header.scrolled .navbar-custom,
.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
}

.site-header.scrolled .navbar-custom .nav-link,
.navbar-custom.scrolled .nav-link {
  color: #1e293b !important;
}

.site-header.scrolled .navbar-custom .nav-link:hover,
.navbar-custom.scrolled .nav-link:hover {
  color: var(--solar-orange-dark) !important;
  background: rgba(249, 115, 22, 0.08);
}

.navbar-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 4px 8px;
}

.site-header.scrolled .navbar-pill,
.navbar-custom.scrolled .navbar-pill {
  background: rgba(241, 245, 249, 0.6);
  border-color: rgba(203, 213, 225, 0.5);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  padding: 7px 15px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 9999px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(234, 88, 12, 0.45)) !important;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

/* Dropdown Menu Styles */
.navbar-custom .dropdown-menu {
  background: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 260px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .navbar-custom .dropdown-menu {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.navbar-custom .dropdown-item {
  color: #f1f5f9;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  font-size: 13.5px;
}

.navbar-custom .dropdown-item strong {
  font-family: var(--font-heading);
  font-size: 14px;
}

.navbar-custom .dropdown-item:hover {
  background: rgba(249, 115, 22, 0.15);
  color: #fbbf24;
  transform: translateX(3px);
}

.site-header.scrolled .navbar-custom .dropdown-item {
  color: #1e293b;
}

.site-header.scrolled .navbar-custom .dropdown-item:hover {
  background: rgba(249, 115, 22, 0.08);
  color: var(--solar-orange-dark);
}

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 6px;
  }
}

/* Admin Link Button */
.btn-admin-nav {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-admin-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.site-header.scrolled .btn-admin-nav,
.navbar-custom.scrolled .btn-admin-nav {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.site-header.scrolled .btn-admin-nav:hover,
.navbar-custom.scrolled .btn-admin-nav:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Mobile Drawer Styling */
@media (max-width: 991.98px) {
  #navbarSolarithm {
    background: #081220;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    max-height: 80vh;
    overflow-y: auto;
  }

  #navbarSolarithm .navbar-pill {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
  }

  #navbarSolarithm .navbar-nav {
    width: 100%;
    gap: 4px;
  }

  #navbarSolarithm .nav-link {
    width: 100%;
    padding: 10px 16px !important;
    border-radius: 10px;
    color: #f8fafc !important;
  }

  #navbarSolarithm .nav-link:hover,
  #navbarSolarithm .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
              var(--navy-darkest);
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding-top: 175px;
  padding-bottom: 80px;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 205px;
    padding-bottom: 60px;
  }
}

.page-hero {
  padding-top: 175px !important;
  padding-bottom: 60px !important;
}

@media (max-width: 991.98px) {
  .page-hero {
    padding-top: 205px !important;
  }
}

/* 3D Canvas */
#solar-canvas-container {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

/* Live Telemetry Ticker */
.telemetry-ticker {
  background: #050c18;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 16px 0;
}

/* Before/After Slider */
.ba-container {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #061121 0%, #0a192f 50%, #0f2e59 100%);
  z-index: 1;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #061121;
  font-weight: 800;
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-whatsapp-float {
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.btn-call-float {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0a192f;
  border: 2px solid #f59e0b;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-call-float:hover {
  transform: scale(1.1);
  background: #f59e0b;
  color: #0a192f;
}

/* Form Styles */
.form-control-solar {
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: all 0.25s ease;
  background-color: #ffffff;
  color: var(--text-primary);
}

.form-control-solar:focus {
  border-color: var(--solar-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  background-color: #ffffff;
  color: var(--text-primary);
}

/* Custom Range Slider */
.form-range-solar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  accent-color: var(--solar-orange);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-range-solar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-range-solar::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.6);
}

.form-range-solar::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

/* Print proposal */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-proposal-card, #printable-proposal-card * {
    visibility: visible;
  }
  #printable-proposal-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* ==========================================================================
   ALL NEW ADVANCED MODULES STYLING
   ========================================================================== */

/* WhatsApp Multi-Option Menu */
.whatsapp-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 270px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e2e8f0;
  z-index: 1000;
  animation: fadeInPop 0.25s ease forwards;
}

.whatsapp-menu.show {
  display: flex;
}

@keyframes fadeInPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-bubble-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  color: #1e293b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wa-bubble-item:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

/* EMI Comparison Cards */
.emi-card-before {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  border-radius: 16px;
}

.emi-card-after {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 16px;
}

/* Project Filter Tabs */
.filter-btn {
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--solar-orange);
  color: #ffffff;
  border-color: var(--solar-orange);
}

/* FAQ Accordion */
.accordion-solar .accordion-button:not(.collapsed) {
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--solar-orange);
  box-shadow: none;
}

.accordion-solar .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.accordion-solar .accordion-item {
  border-radius: 16px !important;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* Language Switcher Badge */
.lang-switcher-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-custom.scrolled .lang-switcher-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   MODULES PHASE 2: INVESTMENT, WEATHER, CERTIFICATE, SLOTS, DARK MODE
   ========================================================================== */

/* Dark Mode Theme */
body.light-theme {
  --body-bg: #f8fafc;
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

body.light-theme .hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
              #0f172a !important;
}

/* Investment Comparison Cards */
.invest-card {
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.invest-card-solar {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.15);
}

.invest-card-solar:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.25);
}

.invest-card-other {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* Weather Sunshine Card */
.weather-card {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
}

/* Green Certificate */
.certificate-frame {
  border: 10px solid #15803d;
  outline: 2px dashed #bbf7d0;
  outline-offset: -8px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Time Slot Buttons */
.slot-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn.active, .slot-btn:hover {
  background: var(--solar-orange);
  color: #ffffff;
  border-color: var(--solar-orange);
}

/* Drone Video Play Overlay */
.video-preview-box {
  position: relative;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1509391365360-2e959784a276?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pulse-btn {
  width: 70px;
  height: 70px;
  background: #f97316;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 28px;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: pulseBtn 1.8s infinite;
  cursor: pointer;
  border: none;
}

@keyframes pulseBtn {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* ==========================================================================
   MODULES PHASE 3: COMPASS, LOAD CALC, QUIZ, REFERRAL, DISTRICTS, SAVINGS
   ========================================================================== */

/* Solar Compass Widget */
.compass-dial {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  position: relative;
  margin: auto;
  background: radial-gradient(circle, #0a192f 60%, #061121 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.2);
}

.compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 90px;
  background: linear-gradient(to top, #ef4444 50%, #e2e8f0 50%);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(180deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.compass-center-point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f59e0b;
}

/* Appliance Counter Box */
.appliance-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.appliance-box:hover {
  border-color: #f97316;
  background: #fffbf7;
}

/* Quiz Options */
.quiz-opt-btn {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  width: 100%;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-opt-btn.active, .quiz-opt-btn:hover {
  border-color: #10b981;
  background: #f0fdf4;
  color: #15803d;
}

/* Referral Card */
.referral-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border: 2px dashed #fbbf24;
  border-radius: 20px;
  padding: 30px;
}

/* District Card */
.district-pill {
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.district-pill.active, .district-pill:hover {
  background: #0a192f;
  color: #fbbf24;
  border-color: #0a192f;
}

/* ==========================================================================
   MODULES PHASE 4: EV CHARGING, WIND SAFETY, DUST LOSS, BANK EMI, WARRANTY, VOICE
   ========================================================================== */

/* EV Solar Card */
.ev-solar-card {
  background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #10b981;
}

/* Voice Button */
.btn-voice-mic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f97316;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-voice-mic.listening {
  background: #ef4444;
  animation: pulseVoice 1.2s infinite;
}

@keyframes pulseVoice {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Wind Safety Card */
.wind-safety-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.wind-safety-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1);
}

/* Warranty Lookup Box */
.warranty-status-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 20px;
}

/* ==========================================================================
   MODULE: PM SURYA GHAR & DISCOM LIVE APPLICATION TRACKER
   ========================================================================== */
.tracking-pipeline {
  position: relative;
  padding-left: 10px;
}

.tracking-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}

.tracking-step:last-child {
  padding-bottom: 0;
}

.tracking-step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.tracking-step:last-child::before {
  display: none;
}

.tracking-step.step-complete::before {
  background: #10b981;
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  z-index: 2;
  transition: all 0.3s ease;
}

.step-complete .step-icon {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.step-active .step-icon {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  animation: pulseActiveStep 1.8s infinite;
}

@keyframes pulseActiveStep {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.step-pending .step-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-content {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.step-active .step-content {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.step-title {
  font-size: 15px;
  color: #ffffff;
  display: block;
}

.step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  margin-top: 4px;
}

.spin-slow {
  animation: spinSlow 3s linear infinite;
  display: inline-block;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* --- UI UPGRADE CSS --- */

html { scroll-behavior: smooth; }
::selection { background: rgba(249, 115, 22, 0.3); color: #0f172a; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #fbbf24, #f97316, #ea580c); z-index: 9999; width: 0%; transition: width 0.15s linear; }
.back-to-top { position: fixed; bottom: 90px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #f97316); color: #fff; border: none; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 998; box-shadow: 0 8px 25px rgba(249,115,22,0.35); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(249,115,22,0.5); }
.reveal-section { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-section.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.section-divider-wave { position: relative; overflow: hidden; line-height: 0; }
.section-divider-wave svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.section-divider-wave .shape-fill { fill: var(--body-bg); }
.section-divider-wave-dark .shape-fill { fill: var(--navy-darkest); }
@media (max-width: 767.98px) { .section-divider-wave svg { height: 35px; } }
.section-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2); color: #f97316; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.section-title-underline { position: relative; display: inline-block; padding-bottom: 12px; }
.section-title-underline::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: linear-gradient(90deg, #fbbf24, #f97316); border-radius: 4px; }
.section-title-underline.text-center::after, .text-center .section-title-underline::after { left: 50%; transform: translateX(-50%); }
.glass-card { position: relative; overflow: hidden; }
.glass-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; z-index: 0; }
.glass-card:hover::before { opacity: 1; }
.glass-card > * { position: relative; z-index: 1; }
.stat-number { font-family: var(--font-heading); font-weight: 900; font-size: 2.75rem; line-height: 1; background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 14px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.form-floating-solar { position: relative; }
.form-floating-solar .form-control-solar { padding-top: 20px; }
.form-floating-solar label { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: 14px; color: #94a3b8; transition: all 0.2s ease; pointer-events: none; }
.form-floating-solar .form-control-solar:focus ~ label, .form-floating-solar .form-control-solar:not(:placeholder-shown) ~ label { top: 8px; font-size: 11px; color: #f97316; transform: translateY(0); }
.solar-tooltip { position: relative; cursor: help; }
.solar-tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: #0f172a; color: #f8fafc; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.25s ease; pointer-events: none; z-index: 100; }
.solar-tooltip:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.live-dot { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; margin-right: 6px; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }
.gradient-border { position: relative; border-radius: 20px; background: #fff; }
.gradient-border::before { content: ''; position: absolute; inset: -2px; border-radius: 22px; background: linear-gradient(135deg, #fbbf24, #f97316, #10b981, #0ea5e9); z-index: -1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { display: flex; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* Tier-1 Brands Infinite Marquee */
.brand-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: brandMarquee 25s linear infinite;
}

.brand-marquee-wrapper:hover .brand-marquee-track {
  animation-play-state: paused;
}

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

.brand-marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.brand-marquee-item:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fbbf24;
  transform: translateY(-2px);
}

/* Mobile App-Style Bottom Quick Dock */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 17, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  z-index: 1040;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-dock .dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  min-width: 60px;
}

.mobile-bottom-dock .dock-item i {
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-bottom-dock .dock-item:hover,
.mobile-bottom-dock .dock-item.active {
  color: #fbbf24;
}

.mobile-bottom-dock .dock-item-highlight {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mobile-bottom-dock .dock-item-highlight i,
.mobile-bottom-dock .dock-item-highlight span {
  color: #ffffff !important;
}

.mobile-bottom-dock .dock-item-whatsapp {
  color: #25d366 !important;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 60px; /* offset for bottom dock */
  }
}
img[loading='lazy'] { opacity: 0; transition: opacity 0.5s ease; }
img[loading='lazy'].loaded, img.loaded { opacity: 1; }
@media (max-width: 767.98px) {
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.6rem !important; }
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  section { margin-bottom: 0; }
  .glass-card, .glass-card-dark { border-radius: 16px; }
  .btn-glow { padding: 10px 22px; font-size: 14px; }
  .stat-number { font-size: 2rem; }
  .floating-actions { bottom: 14px; right: 14px; gap: 8px; }
  .btn-whatsapp-float { padding: 9px 14px; font-size: 12px; }
  .btn-call-float { width: 42px; height: 42px; }
  .chatbot-fab { bottom: 78px !important; right: 14px !important; width: 44px !important; height: 44px !important; font-size: 18px !important; }
  .back-to-top { bottom: 132px !important; right: 14px !important; width: 38px !important; height: 38px !important; font-size: 15px !important; }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #fbbf24, #f97316); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #f97316, #ea580c); }
.announcement-bar { background-size: 200% auto; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }
:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; border-radius: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
.dot-grid-bg { background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 24px 24px; }
.text-shimmer { background: linear-gradient(90deg, #fde047 0%, #fbbf24 25%, #ffffff 50%, #fbbf24 75%, #fde047 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textShimmer 3s linear infinite; }
@keyframes textShimmer { to { background-position: 200% center; } }
.count-up { display: inline-block; tabular-nums; font-variant-numeric: tabular-nums; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s ease; padding: 4px 0; display: inline-block; position: relative; }
.footer-link:hover { color: #fbbf24; transform: translateX(4px); }
.footer-link::before { content: '→'; margin-right: 6px; opacity: 0; transition: all 0.2s ease; display: inline-block; }
.footer-link:hover::before { opacity: 1; }


/* ==========================================================================
   PHASE 5: CHATBOT, SOCIAL PROOF, TESTIMONIALS, PRELOADER
   ========================================================================== */

/* --- Solar AI Chatbot --- */
.chatbot-fab {
  position: fixed;
  bottom: 160px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 997;
  box-shadow: 0 8px 25px rgba(99,102,241,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: chatBotBounce 2s ease infinite;
}
.chatbot-fab:hover { transform: scale(1.12); box-shadow: 0 12px 35px rgba(99,102,241,0.6); }
@keyframes chatBotBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chatbot-fab.active { animation: none; background: #ef4444; }

.chatbot-window {
  position: fixed;
  bottom: 225px;
  right: 28px;
  width: 370px;
  max-height: 480px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  z-index: 996;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: chatSlideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}
.chatbot-window.open { display: flex; }
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-header {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header h6 { margin: 0; font-weight: 700; font-size: 15px; }
.chatbot-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.8; }
.chatbot-close:hover { opacity: 1; }
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  animation: msgFade 0.3s ease;
}
@keyframes msgFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: #f1f5f9;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-input {
  display: flex;
  border-top: 1px solid #e2e8f0;
  padding: 10px 12px;
  gap: 8px;
  align-items: center;
}
.chatbot-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.chatbot-input input:focus { border-color: #6366f1; }
.chatbot-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chatbot-input button:hover { background: #4f46e5; }
.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chat-quick-btn {
  background: #ede9fe;
  color: #6366f1;
  border: 1px solid #c4b5fd;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-quick-btn:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

@media (max-width: 480px) {
  .chatbot-window { width: calc(100vw - 24px); right: 12px; bottom: 200px; }
  .chatbot-fab { bottom: 140px; right: 16px; }
}

/* --- Social Proof Toast --- */
.social-proof-toast {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 990;
  min-width: 300px;
  max-width: 380px;
  border-left: 4px solid #10b981;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.social-proof-toast.show { transform: translateX(0); }
.social-proof-toast .sp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.social-proof-toast .sp-text { font-size: 13px; color: #334155; line-height: 1.4; }
.social-proof-toast .sp-text strong { color: #0f172a; }
.social-proof-toast .sp-time { font-size: 11px; color: #94a3b8; display: block; margin-top: 2px; }
.social-proof-toast .sp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .social-proof-toast { left: 12px; right: 12px; min-width: auto; max-width: none; bottom: 16px; }
}

/* --- Testimonials Carousel --- */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  border-color: rgba(249,115,22,0.3);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 60px;
  font-family: Georgia, serif;
  color: rgba(249,115,22,0.12);
  line-height: 1;
}
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 16px;
}
.testimonial-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.testimonial-role { font-size: 12px; color: #94a3b8; }

/* Carousel Auto-scroll */
.testimonial-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 8px 0;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track .testimonial-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}
@media (max-width: 767.98px) {
  .testimonial-track .testimonial-card { flex: 0 0 280px; }
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: #f97316;
  width: 28px;
  border-radius: 5px;
}

/* --- Preloader --- */
.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy-darkest);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-preloader.hide { opacity: 0; visibility: hidden; }
.preloader-sun {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(251,191,36,0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: preloaderSpin 0.8s linear infinite;
}
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
.preloader-text {
  color: #fbbf24;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* --- Typing indicator --- */
.typing-indicator { display: flex; gap: 4px; padding: 8px 0; }
.typing-indicator span {
  width: 7px; height: 7px; background: #94a3b8; border-radius: 50%;
  animation: typeDot 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
