/**
 * Modern Ultra-Responsive Fintech Theme for Payment Gateway
 * Supports Dynamic Bengali (Hind Siliguri, Noto Serif Bengali) & Global Fonts
 * Fully Dynamic CSS Variables & Mobile First Design
 */

:root {
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-rgb: 2, 132, 199;
  --accent-color: #6366f1;
  --accent-rgb: 99, 102, 241;
  --font-base: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --border-radius: 16px;
  --card-radius: 20px;

  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --body-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 10px 30px -5px rgba(var(--primary-rgb), 0.25);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base HTML & Body Styles */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
}

body {
  font-family: var(--font-base) !important;
  color: var(--text-main);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-font {
  font-family: var(--font-heading) !important;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Glassmorphism Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.modern-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.modern-header .logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Modern Navbar Links */
.modern-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.modern-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
}

.modern-nav a:not(.btn-modern-primary):hover,
.modern-nav a:not(.btn-modern-primary).active {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.08);
}

/* Primary Glow Button */
.btn-modern-primary,
.modern-nav a.btn-modern-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  transition: var(--transition);
  text-decoration: none !important;
  cursor: pointer;
}

.btn-modern-primary:hover,
.btn-modern-primary:focus,
.modern-nav a.btn-modern-primary:hover,
.modern-nav a.btn-modern-primary:focus {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.55);
}

.btn-modern-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main) !important;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-modern-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Mobile Offcanvas Drawer */
.mobile-nav-toggle {
  display: none;
  font-size: 26px;
  color: #1e293b;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

@media (max-width: 991.98px) {
  .mobile-nav-toggle {
    display: block;
  }

  .desktop-nav {
    display: none !important;
  }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

/* HERO SECTION */
.modern-hero {
  position: relative;
  padding: 140px 0 90px;
  background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(var(--accent-rgb), 0.06) 0%, transparent 40%),
    #ffffff;
  overflow: hidden;
}

.modern-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--body-bg));
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.22;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-mockup-wrapper {
  position: relative;
}

.hero-mockup-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border: 4px solid #ffffff;
  transition: var(--transition);
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 4s ease-in-out infinite alternate;
}

.hero-floating-card.card-left {
  top: 10%;
  left: -20px;
}

.hero-floating-card.card-right {
  bottom: 8%;
  right: -20px;
  animation-delay: -2s;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* SECTION HEADERS */
.modern-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.modern-section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.modern-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.modern-section-subtitle {
  font-size: 17px;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

/* MODERN VALUES / OFFERS CARDS */
.value-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.value-card:hover .value-card-icon {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.08);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.value-card p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* STATS / COUNTERS BAR */
.modern-stats-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0;
  border-radius: 30px;
  margin: 40px auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.modern-stats-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: 16px;
  transition: transform 0.3s ease;
}

.stat-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  color: #38bdf8;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover .stat-icon-box {
  transform: translateY(-4px) scale(1.1);
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
  border-color: var(--primary-color);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}

/* MODERN SERVICES */
.service-card-modern {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

/* Modern Brand & Gateway Showcase */
.brand-showcase-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 22px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  min-width: 130px;
  transition: var(--transition);
}

.brand-showcase-box:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.brand-showcase-box img {
  max-height: 38px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.brand-showcase-box:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.service-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.service-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* PRICING CARDS */
.modern-pricing-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modern-pricing-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #475569;
}

.pricing-features li i {
  color: var(--primary-color);
  font-size: 18px;
}

/* MODERN FAQ ACCORDION */
.modern-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.modern-accordion .accordion-item:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
}

.modern-accordion .accordion-button {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  padding: 18px 24px;
  box-shadow: none !important;
}

.modern-accordion .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.04);
}

.modern-accordion .accordion-body {
  padding: 16px 24px 22px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

/* CTA BANNER */
.modern-cta-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 28px;
  padding: 60px 40px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.modern-cta-card h2 {
  color: #ffffff !important;
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.modern-cta-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* MODERN FOOTER */
.modern-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-brand p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  text-decoration: none;
  margin-right: 8px;
}

.footer-social-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: #94a3b8;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .modern-section-title {
    font-size: 28px;
  }

  .modern-stats-section {
    padding: 30px 10px;
  }

  .stat-number {
    font-size: 30px;
  }

  .modern-cta-card {
    padding: 40px 20px;
  }

  .modern-cta-card h2 {
    font-size: 26px;
  }

  .hero-floating-card {
    display: none !important;
  }
}

/* ========================================================
   WORLD-CLASS FRONTEND THEME TOGGLE & DARK MODE ENGINE
   ======================================================== */

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--border-color);
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.25);
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
  color: #f59e0b;
}

.theme-toggle-btn .theme-icon-moon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* ========================================================
   FRONTEND DARK MODE STYLES ([data-bs-theme="dark"])
   ======================================================== */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --card-bg: #111827;
  --body-bg: #0b0f19;
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --dark-bg: #070b13;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7);
}

[data-bs-theme="dark"] body {
  background-color: var(--body-bg) !important;
  color: var(--text-main) !important;
}

/* Theme Toggle Button in Dark Mode */
[data-bs-theme="dark"] .theme-toggle-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: #334155;
  color: #fcd34d;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
  background: #1e293b;
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transform: scale(1.08) rotate(-15deg);
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-sun {
  display: inline-block;
}

[data-bs-theme="dark"] .theme-toggle-btn .theme-icon-moon {
  display: none;
}

/* Typography in Dark Mode */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .heading-font,
[data-bs-theme="dark"] .hero-title,
[data-bs-theme="dark"] .modern-section-title,
[data-bs-theme="dark"] .pricing-price,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-black {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .hero-subtitle,
[data-bs-theme="dark"] .modern-section-subtitle,
[data-bs-theme="dark"] .pricing-features li,
[data-bs-theme="dark"] .modern-accordion .accordion-body,
[data-bs-theme="dark"] .value-card p,
[data-bs-theme="dark"] .service-card-modern p,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}

/* Header & Navigation in Dark Mode */
[data-bs-theme="dark"] .modern-header {
  background: rgba(11, 15, 25, 0.88) !important;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8) !important;
}

[data-bs-theme="dark"] .modern-header.scrolled {
  background: rgba(11, 15, 25, 0.96) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .modern-nav a {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .modern-nav a:not(.btn-modern-primary):hover,
[data-bs-theme="dark"] .modern-nav a:not(.btn-modern-primary).active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

[data-bs-theme="dark"] .mobile-nav-toggle {
  color: #f8fafc !important;
}

/* Mobile Drawer in Dark Mode */
[data-bs-theme="dark"] .mobile-drawer {
  background: #0f172a !important;
  border-left: 1px solid #1e293b !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7) !important;
}

[data-bs-theme="dark"] .mobile-drawer .border-bottom,
[data-bs-theme="dark"] .mobile-drawer .border-top {
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .mobile-drawer-links a {
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .mobile-drawer-links a:hover,
[data-bs-theme="dark"] .mobile-drawer-links a.active {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
}

[data-bs-theme="dark"] #mobileMenuClose {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

/* Hero Section in Dark Mode */
[data-bs-theme="dark"] .modern-hero {
  background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.14) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(var(--accent-rgb), 0.1) 0%, transparent 40%),
    #0b0f19 !important;
  border-bottom-color: #1e293b !important;
}

[data-bs-theme="dark"] .modern-hero::after {
  background: linear-gradient(to bottom, transparent, #0b0f19) !important;
}

[data-bs-theme="dark"] .hero-mockup-img {
  border-color: #1e293b !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .hero-floating-card {
  background: rgba(17, 24, 39, 0.94) !important;
  border-color: #1e293b !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45) !important;
  color: #f8fafc !important;
}

/* Cards & Components in Dark Mode */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .value-card,
[data-bs-theme="dark"] .service-card-modern,
[data-bs-theme="dark"] .modern-pricing-card,
[data-bs-theme="dark"] .brand-showcase-box {
  background-color: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

[data-bs-theme="dark"] .bg-white {
  background-color: var(--card-bg) !important;
  color: var(--text-main) !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-main) !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom {
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .btn-modern-outline {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .btn-modern-outline:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}

/* Accordion (FAQ) in Dark Mode */
[data-bs-theme="dark"] .modern-accordion .accordion-item {
  background: #111827 !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .modern-accordion .accordion-button {
  color: #f8fafc !important;
  background: transparent !important;
}

[data-bs-theme="dark"] .modern-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--primary-rgb), 0.12) !important;
  color: #38bdf8 !important;
}

[data-bs-theme="dark"] .modern-accordion .accordion-button::after {
  filter: invert(1);
}

/* Brand Showcase in Dark Mode */
[data-bs-theme="dark"] .brand-showcase-box img {
  filter: brightness(0.9) contrast(1.1);
}

[data-bs-theme="dark"] .brand-showcase-box:hover img {
  filter: brightness(1) contrast(1.1);
}

/* Modern Footer in Dark Mode */
[data-bs-theme="dark"] .modern-footer {
  background: #070b13 !important;
  border-top-color: #1e293b !important;
}

[data-bs-theme="dark"] .footer-heading {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .footer-brand p,
[data-bs-theme="dark"] .footer-links-list a {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .footer-links-list a:hover {
  color: #38bdf8 !important;
}

[data-bs-theme="dark"] .footer-social-btn {
  background: #111827 !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .footer-social-btn:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .footer-bottom {
  border-top-color: #1e293b !important;
  color: #64748b !important;
}

/* Modals & Popups in Dark Mode */
[data-bs-theme="dark"] .modal-content {
  background-color: #111827 !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .modal-header {
  border-bottom-color: #1e293b !important;
}

[data-bs-theme="dark"] .modal-footer {
  border-top-color: #1e293b !important;
}