/* ==========================================================================
   K-AUTO MARKETPLACE - LUXURY KORAUTO-STYLE DESIGN SYSTEM & THEME CSS
   ========================================================================== */

:root,
html[data-theme="dark"],
body[data-theme="dark"] {
  /* Dark Luxury KorAuto Color Palette */
  --lx-bg-main: #080808;
  --lx-bg-surface: #101010;
  --lx-bg-card: #141414;
  --lx-bg-elevated: #1a1a1a;
  --lx-bg-input: #1e1e1e;
  
  --lx-text-primary: #f3f4f6;
  --lx-text-secondary: #9ca3af;
  --lx-text-muted: #6b7280;
  --lx-text-white: #ffffff;
  --lx-text-watermark: rgba(255, 255, 255, 0.02);
  
  --lx-border-subtle: #242424;
  --lx-border-medium: #333333;
  --lx-border-hover: #444444;

  --lx-color-surface: #141414;
  --lx-color-bg: #080808;
  --lx-color-text: #ffffff;
  --lx-color-text-muted: #9ca3af;
  --lx-color-border: #242424;

  --lx-accent-white: #ffffff;
  --lx-accent-red: #ef4444;
  --lx-accent-green: #10b981;
  --lx-accent-blue: #3b82f6;
  --lx-accent-amber: #f59e0b;

  /* Typography */
  --lx-font-heading: 'Space Grotesk', 'Outfit', -apple-system, sans-serif;
  --lx-font-body: 'Inter', -apple-system, sans-serif;

  /* Radius */
  --lx-radius-sm: 6px;
  --lx-radius-md: 10px;
  --lx-radius-lg: 16px;
  --lx-radius-xl: 24px;
  --lx-radius-pill: 9999px;

  /* Shadows */
  --lx-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
  --lx-shadow-glow: 0 0 25px rgba(255, 255, 255, 0.08);

  /* Container */
  --lx-container-max: 1320px;
  --lx-container-pad: 1.5rem;
}

html[data-theme="light"],
body[data-theme="light"] {
  --lx-bg-main: #f8fafc;
  --lx-bg-surface: #ffffff;
  --lx-bg-card: #ffffff;
  --lx-bg-elevated: #f1f5f9;
  --lx-bg-input: #ffffff;
  
  --lx-text-primary: #0f172a;
  --lx-text-secondary: #475569;
  --lx-text-muted: #64748b;
  --lx-text-white: #0f172a;
  --lx-text-watermark: rgba(0, 0, 0, 0.03);
  
  --lx-border-subtle: #e2e8f0;
  --lx-border-medium: #cbd5e1;
  --lx-border-hover: #94a3b8;

  --lx-color-surface: #ffffff;
  --lx-color-bg: #f8fafc;
  --lx-color-text: #0f172a;
  --lx-color-text-muted: #64748b;
  --lx-color-border: #e2e8f0;

  --lx-accent-white: #0f172a;
  --lx-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --lx-shadow-glow: 0 0 25px rgba(0, 0, 0, 0.04);
}

/* Theme Toggle Button */
.lx-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--lx-bg-elevated);
  border: 1px solid var(--lx-border-subtle);
  color: var(--lx-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.lx-theme-toggle-btn:hover {
  background: var(--lx-border-medium);
  border-color: var(--lx-border-hover);
  transform: translateY(-1px);
}

[data-theme="dark"] .lx-theme-icon-light { display: inline-block !important; }
[data-theme="dark"] .lx-theme-icon-dark { display: none !important; }
[data-theme="light"] .lx-theme-icon-dark { display: inline-block !important; }
[data-theme="light"] .lx-theme-icon-light { display: none !important; }

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--lx-bg-main);
  color: var(--lx-text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  font-family: var(--lx-font-body);
  background-color: var(--lx-bg-main);
  color: var(--lx-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lx-font-heading);
  font-weight: 700;
  color: var(--lx-text-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lx-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--lx-bg-main);
  transition: background-color 0.25s ease;
}

.lx-main-content {
  flex: 1 0 auto;
}

.lx-container {
  width: 100%;
  max-width: var(--lx-container-max);
  margin: 0 auto;
  padding: 0 var(--lx-container-pad);
}

/* ==========================================================================
   KORAUTO LUXURY HEADER & NAVIGATION
   ========================================================================== */

.lx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lx-border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lx-header.scrolled {
  background: rgba(8, 8, 8, 0.98);
  border-bottom-color: var(--lx-border-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .lx-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .lx-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  border-bottom-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lx-header .lx-container {
  max-width: 1520px;
  padding: 0 1.5rem;
}

.lx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 80px;
}

/* Logo */
.lx-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lx-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lx-text-white);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.lx-brand-logo svg {
  color: var(--lx-text-white);
  flex-shrink: 0;
}

.lx-brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--lx-accent-white);
  color: var(--lx-bg-main);
  padding: 2px 7px;
  border-radius: var(--lx-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

[data-theme="light"] .lx-brand-tag {
  background: #0f172a;
  color: #ffffff;
}

/* Nav Menu */
.lx-main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.lx-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.lx-nav-menu li {
  white-space: nowrap;
  flex-shrink: 0;
}

.lx-nav-menu a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lx-text-secondary);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  display: block;
}

.lx-nav-menu a:hover,
.lx-nav-menu .current-menu-item > a {
  color: var(--lx-text-white);
}

.lx-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lx-accent-white);
  transition: width 0.2s ease;
  border-radius: 2px;
}

.lx-nav-menu a:hover::after,
.lx-nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* Header Utilities */
.lx-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lx-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lx-text-primary);
  background: var(--lx-bg-elevated);
  padding: 5px 12px;
  border-radius: var(--lx-radius-pill);
  border: 1px solid var(--lx-border-medium);
  white-space: nowrap;
}

.lx-phone-badge:hover {
  border-color: var(--lx-text-primary);
}

@media (max-width: 1380px) {
  .lx-phone-badge {
    display: none;
  }
  .lx-nav-menu {
    gap: 1rem;
  }
  .lx-nav-menu a {
    font-size: 0.84rem;
  }
}

/* Buttons */
.lx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--lx-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--lx-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lx-btn-primary {
  background-color: var(--lx-accent-white);
  color: var(--lx-bg-main);
}

.lx-btn-primary:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .lx-btn-primary {
  background-color: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .lx-btn-primary:hover {
  background-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.lx-btn-secondary {
  background-color: var(--lx-bg-elevated);
  color: var(--lx-text-primary);
  border-color: var(--lx-border-medium);
}

.lx-btn-secondary:hover {
  background-color: var(--lx-border-subtle);
  border-color: var(--lx-border-hover);
  color: var(--lx-text-primary);
}

.lx-btn-outline {
  background-color: transparent;
  color: var(--lx-text-primary);
  border-color: var(--lx-border-medium);
}

.lx-btn-outline:hover {
  border-color: var(--lx-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .lx-btn-outline:hover {
  background: rgba(15, 23, 42, 0.05);
}

.lx-btn-whatsapp {
  background-color: #10b981;
  color: #ffffff;
}

.lx-btn-whatsapp:hover {
  background-color: #059669;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.lx-btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.lx-btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Mobile Toggle & Drawer */
.lx-mobile-toggle {
  display: none;
  background: var(--lx-bg-elevated);
  border: 1px solid var(--lx-border-subtle);
  color: var(--lx-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--lx-radius-md);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lx-mobile-toggle:hover {
  background: var(--lx-border-medium);
}

[data-theme="light"] .lx-mobile-toggle {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .lx-mobile-toggle:hover {
  background: #e2e8f0;
}

.lx-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--lx-bg-surface);
  z-index: 2000;
  padding: 1.75rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-mobile-drawer {
  background: #ffffff;
  border-left-color: #e2e8f0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.lx-mobile-drawer.is-active {
  right: 0;
}

.lx-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

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

.lx-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-mobile-drawer-header {
  border-bottom-color: #e2e8f0;
}

.lx-mobile-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--lx-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lx-mobile-close:hover {
  color: var(--lx-text-white);
}

[data-theme="light"] .lx-mobile-close {
  color: #64748b;
}

[data-theme="light"] .lx-mobile-close:hover {
  color: #0f172a;
}

.lx-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lx-mobile-menu a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lx-text-primary);
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--lx-radius-md);
  transition: all 0.2s ease;
}

.lx-mobile-menu a:hover,
.lx-mobile-menu .current-menu-item > a {
  background: var(--lx-bg-elevated);
  color: var(--lx-text-white);
}

[data-theme="light"] .lx-mobile-menu a {
  color: #334155;
}

[data-theme="light"] .lx-mobile-menu a:hover,
[data-theme="light"] .lx-mobile-menu .current-menu-item > a {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   VEHICLE CARDS (KORAUTO DARK LUXURY STYLE)
   ========================================================================== */

.lx-vehicle-card {
  background: var(--lx-bg-card);
  border: 1px solid var(--lx-border-subtle);
  border-radius: var(--lx-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.lx-vehicle-card:hover {
  transform: translateY(-5px);
  border-color: var(--lx-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.05);
}

.lx-vehicle-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000000;
}

.lx-vehicle-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lx-vehicle-card:hover .lx-vehicle-card-thumb img {
  transform: scale(1.06);
}

.lx-vehicle-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}

.lx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--lx-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lx-badge-success {
  background: #064e3b;
  color: #34d399;
  border: 1px solid #059669;
}

.lx-badge-encar {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #b91c1c;
}

.lx-badge-stock {
  background: #1e3a8a;
  color: #93c5fd;
  border: 1px solid #2563eb;
}

.lx-vehicle-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lx-vehicle-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--lx-text-white);
  line-height: 1.3;
}

.lx-vehicle-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--lx-text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--lx-border-subtle);
}

.lx-vehicle-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lx-vehicle-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.lx-vehicle-price-main {
  font-family: var(--lx-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lx-text-white);
  line-height: 1;
}

.lx-vehicle-price-label {
  font-size: 0.72rem;
  color: var(--lx-text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* ==========================================================================
   DYNAMIC CUSTOMS & LOAN CALCULATOR MODAL (KORAUTO-STYLE)
   ========================================================================== */

.lx-calc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lx-calc-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.lx-calc-modal {
  background: var(--lx-bg-surface);
  border: 1px solid var(--lx-border-medium);
  border-radius: var(--lx-radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  padding: 2rem;
  position: relative;
}

[data-theme="light"] .lx-calc-modal {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.lx-calc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--lx-border-subtle);
}

.lx-calc-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--lx-bg-main);
  padding: 4px;
  border-radius: var(--lx-radius-pill);
  border: 1px solid var(--lx-border-subtle);
  margin-bottom: 1.5rem;
}

.lx-calc-tab-btn {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  color: var(--lx-text-secondary);
  border: none;
  border-radius: var(--lx-radius-pill);
  font-family: var(--lx-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lx-calc-tab-btn.is-active {
  background: var(--lx-accent-white);
  color: var(--lx-bg-main);
}

[data-theme="light"] .lx-calc-tab-btn.is-active {
  background: #0f172a;
  color: #ffffff;
}

.lx-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lx-border-subtle);
  font-size: 0.95rem;
}

.lx-calc-total-box {
  background: var(--lx-bg-elevated);
  padding: 1.25rem;
  border-radius: var(--lx-radius-lg);
  border: 1px solid var(--lx-border-medium);
  margin-top: 1.5rem;
}

/* ==========================================================================
   FOOTER (KORAUTO DARK & LIGHT AESTHETICS)
   ========================================================================== */

.lx-footer {
  background: #040404;
  border-top: 1px solid var(--lx-border-subtle);
  padding: 5rem 0 2rem;
  margin-top: auto;
  color: var(--lx-text-secondary);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] .lx-footer {
  background: #f8fafc;
  border-top-color: #e2e8f0;
  color: #475569;
}

.lx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.lx-footer-brand h3,
.lx-footer-brand-title {
  font-family: var(--lx-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lx-text-white);
  letter-spacing: -0.02em;
}

.lx-footer-logo-svg {
  color: var(--lx-text-white);
}

[data-theme="light"] .lx-footer-brand-title,
[data-theme="light"] .lx-footer-logo-svg {
  color: #0f172a;
}

.lx-footer-brand-desc {
  color: var(--lx-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

[data-theme="light"] .lx-footer-brand-desc {
  color: #64748b;
}

.lx-footer-column h4 {
  color: var(--lx-text-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: var(--lx-font-heading);
  font-weight: 700;
}

[data-theme="light"] .lx-footer-column h4 {
  color: #0f172a;
}

.lx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lx-footer-links a {
  color: var(--lx-text-secondary);
  transition: all 0.2s ease;
}

.lx-footer-links a:hover {
  color: var(--lx-text-white);
  transform: translateX(4px);
}

[data-theme="light"] .lx-footer-links a {
  color: #475569;
}

[data-theme="light"] .lx-footer-links a:hover {
  color: #0f172a;
}

.lx-footer-contact-link {
  color: var(--lx-text-white);
  font-weight: 700;
  transition: color 0.2s ease;
}

.lx-footer-contact-link:hover {
  color: var(--lx-accent-blue);
}

[data-theme="light"] .lx-footer-contact-link {
  color: #0f172a;
}

[data-theme="light"] .lx-footer-contact-link:hover {
  color: #2563eb;
}

.lx-footer-contact-text {
  color: var(--lx-text-primary);
}

[data-theme="light"] .lx-footer-contact-text {
  color: #334155;
}

.lx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--lx-border-subtle);
  font-size: 0.88rem;
  color: var(--lx-text-muted);
}

.lx-footer-bottom a {
  color: var(--lx-text-muted);
  transition: color 0.2s ease;
}

.lx-footer-bottom a:hover {
  color: var(--lx-text-white);
}

[data-theme="light"] .lx-footer-bottom {
  border-top-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .lx-footer-bottom a {
  color: #64748b;
}

[data-theme="light"] .lx-footer-bottom a:hover {
  color: #0f172a;
}

/* Sticky Mobile Quick Action Bar */
.lx-mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--lx-border-subtle);
  z-index: 1200;
}

[data-theme="light"] .lx-mobile-action-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: #e2e8f0;
}

/* Bilingual Language Switcher */
.k-lang-switcher {
  display: inline-flex;
  align-items: center;
}
.k-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lx-bg-elevated);
  border: 1px solid var(--lx-border-subtle);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lx-text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
.k-lang-btn:hover {
  background: var(--lx-border-medium);
  border-color: var(--lx-border-hover);
  transform: translateY(-1px);
}
.k-lang-flag,
.k-curr-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.k-flag-svg {
  width: 17px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
[data-theme="light"] .k-flag-svg {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.k-lang-code {
  color: var(--lx-text-primary);
}
.k-lang-divider {
  color: var(--lx-text-muted);
  font-size: 0.75rem;
}
.k-lang-target {
  color: var(--lx-text-secondary);
  font-weight: 500;
}

/* Multi-Currency Switcher Dropdown */
.k-curr-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.k-curr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lx-bg-elevated);
  border: 1px solid var(--lx-border-subtle);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lx-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.k-curr-btn:hover {
  background: var(--lx-border-medium);
  border-color: var(--lx-border-hover);
}
.k-curr-arrow {
  font-size: 0.65rem;
  color: var(--lx-text-muted);
  transition: transform 0.2s ease;
}
.k-curr-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--lx-bg-card);
  border: 1px solid var(--lx-border-subtle);
  border-radius: 12px;
  padding: 6px;
  min-width: 165px;
  box-shadow: var(--lx-shadow-card);
  z-index: 2000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.k-curr-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 18px;
  width: 9px;
  height: 9px;
  background: var(--lx-bg-card);
  border-top: 1px solid var(--lx-border-subtle);
  border-left: 1px solid var(--lx-border-subtle);
  transform: rotate(45deg);
}
.k-curr-switcher:hover .k-curr-dropdown,
.k-curr-switcher:focus-within .k-curr-dropdown,
.k-curr-switcher.is-open .k-curr-dropdown {
  display: block;
}
.k-curr-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--lx-text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.k-curr-option:hover {
  background: var(--lx-bg-elevated);
  color: var(--lx-text-primary);
}
.k-curr-option.is-active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--lx-accent-blue);
}
.k-curr-option .code {
  font-weight: 700;
}
.k-curr-option .sym {
  color: var(--lx-text-muted);
  font-size: 0.78rem;
}
.k-curr-option .name {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--lx-text-muted);
}

[data-theme="light"] .k-lang-btn,
[data-theme="light"] .k-curr-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .k-lang-btn:hover,
[data-theme="light"] .k-curr-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .k-curr-dropdown {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .k-curr-dropdown::before {
  background: #ffffff;
  border-top-color: #e2e8f0;
  border-left-color: #e2e8f0;
}

[data-theme="light"] .k-curr-option {
  color: #475569;
}

[data-theme="light"] .k-curr-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .k-curr-option.is-active {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

/* ==========================================================================
   HOMEPAGE & GLOBAL RESPONSIVE COMPONENT LAYOUTS
   ========================================================================== */

.lx-section {
  padding: 5rem 0;
}

.lx-hero-section {
  padding: 5rem 0 4rem;
}

.lx-hero-search-card {
  padding: 1.75rem 2rem;
  background: var(--lx-bg-card);
  border: 1px solid var(--lx-border-subtle);
  border-radius: var(--lx-radius-xl);
  box-shadow: var(--lx-shadow-card);
}

.lx-hero-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 180px;
  gap: 1rem;
  align-items: flex-end;
}

.lx-stats-bar-section {
  padding: 2.25rem 0;
  background: var(--lx-bg-main);
  border-top: 1px solid var(--lx-border-subtle);
  border-bottom: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-stats-bar-section {
  background: #ffffff;
  border-top-color: #e2e8f0;
  border-bottom-color: #e2e8f0;
}

.lx-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.lx-stat-item {
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--lx-border-subtle);
}

.lx-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--lx-font-heading);
  color: var(--lx-text-white);
}

.lx-stat-label {
  font-size: 0.85rem;
  color: var(--lx-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}

.lx-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.lx-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.lx-feature-card {
  background: var(--lx-bg-card);
  padding: 2.25rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--lx-border-subtle);
  transition: all 0.3s ease;
}

.lx-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--lx-border-hover);
  box-shadow: var(--lx-shadow-card);
}

/* Enhanced Luxury 6-Step Roadmap (2 Lines / 3 Columns with Deep Glassmorphism) */
.lx-roadmap-section {
  background: var(--lx-bg-main);
  border-bottom: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-roadmap-section {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.lx-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .lx-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .lx-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.lx-roadmap-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), var(--lx-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.25rem 1.85rem;
  border-radius: 24px;
  border: 1px solid var(--lx-border-subtle);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 20px 45px -15px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.lx-roadmap-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), rgba(56, 189, 248, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lx-roadmap-item:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.25), 0 25px 50px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(59, 130, 246, 0.2);
}

.lx-roadmap-item:hover::before {
  opacity: 1;
}

.lx-roadmap-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.lx-roadmap-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.lx-roadmap-item:hover .lx-roadmap-icon-box {
  transform: scale(1.1) rotate(3deg);
  border-color: rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.08) 100%);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.lx-roadmap-step-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.lx-roadmap-step-badge-highlight {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 2px 10px rgba(52, 211, 153, 0.15);
}

.lx-roadmap-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--lx-text-white);
  margin-bottom: 0.65rem;
  line-height: 1.3;
  font-family: var(--lx-font-heading);
  letter-spacing: -0.02em;
}

.lx-roadmap-desc {
  font-size: 0.92rem;
  color: var(--lx-text-muted);
  line-height: 1.7;
  margin-top: auto;
}

[data-theme="light"] .lx-roadmap-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .lx-roadmap-title {
  color: #0f172a;
}

[data-theme="light"] .lx-roadmap-desc {
  color: #64748b;
}

[data-theme="light"] .lx-roadmap-icon-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Calculator Section */
.lx-calc-section {
  background: var(--lx-bg-main);
  border-bottom: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-calc-section {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

.lx-home-calc-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--lx-bg-card);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--lx-border-subtle);
  box-shadow: var(--lx-shadow-card);
}

[data-theme="light"] .lx-home-calc-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.lx-home-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.lx-testimonials-section {
  padding: 5.5rem 0;
  background: var(--lx-bg-main);
  border-bottom: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-testimonials-section {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.lx-testimonial-card {
  background: var(--lx-bg-card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--lx-border-subtle);
  transition: all 0.3s ease;
}

[data-theme="light"] .lx-testimonial-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.lx-testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--lx-border-hover);
  box-shadow: var(--lx-shadow-card);
}

/* CTA Banner Section */
.lx-cta-banner-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, #1e1e1e 0%, #0a0a0a 100%);
  border-top: 1px solid var(--lx-border-subtle);
}

[data-theme="light"] .lx-cta-banner-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-top-color: #e2e8f0;
}

/* ==========================================================================
   TABLET & MOBILE COMPACT SCALING (TYPOGRAPHY, BUTTONS, IMAGES, CARDS)
   ========================================================================== */

/* Tablet Scaling (<= 1024px) */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .lx-section {
    padding: 3.5rem 0;
  }
  .lx-hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .lx-btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
  }
  .lx-btn-lg {
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
  }
  .lx-vehicle-card-thumb {
    max-height: 210px;
  }
  .lx-hero-filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .lx-hero-filter-grid button[type="submit"] {
    grid-column: 1 / -1;
    height: 44px;
    font-size: 0.9rem;
  }
  .lx-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .lx-stat-item:nth-child(2) {
    border-right: none;
  }
  .lx-stat-num {
    font-size: 1.85rem;
  }
  .lx-stat-label {
    font-size: 0.78rem;
  }
  .lx-vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
  .lx-roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Mobile Scaling (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  :root {
    --lx-container-pad: 1rem;
  }
  .lx-section {
    padding: 2.5rem 0;
  }
  .lx-hero-section {
    padding: 2.5rem 0 1.75rem;
  }
  .lx-hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.8rem) !important;
    line-height: 1.12 !important;
  }
  .lx-section-title {
    font-size: clamp(1.4rem, 4vw, 1.85rem) !important;
  }
  .lx-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.84rem;
    gap: 0.35rem;
  }
  .lx-btn-lg {
    padding: 0.6rem 1.35rem;
    font-size: 0.88rem;
  }
  .lx-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }
  .lx-hero-search-card {
    padding: 1.15rem 0.9rem;
    border-radius: 16px;
  }
  .lx-ai-search-row {
    padding: 4px 6px 4px 10px !important;
    margin-bottom: 0.85rem !important;
  }
  .lx-ai-search-row input {
    font-size: 0.85rem !important;
  }
  .lx-hero-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .lx-hero-filter-grid select {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.84rem !important;
    border-radius: 10px !important;
  }
  .lx-hero-filter-grid button[type="submit"] {
    height: 42px !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
  }
  .lx-vehicle-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .lx-vehicle-card-thumb {
    max-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .lx-vehicle-card-body {
    padding: 0.9rem 1rem;
  }
  .lx-vehicle-card-title {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
  }
  .lx-vehicle-card-specs {
    font-size: 0.78rem;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
  .lx-vehicle-price-main {
    font-size: 1.25rem !important;
  }
  .lx-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lx-features-grid > div {
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }
  .lx-features-grid h3 {
    font-size: 1.08rem !important;
    margin-bottom: 0.4rem !important;
  }
  .lx-features-grid p {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
  }
  .lx-features-grid > div > div:first-child {
    font-size: 1.65rem !important;
    margin-bottom: 0.65rem !important;
  }
  .lx-roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .lx-roadmap-item {
    padding: 1.25rem 0.95rem !important;
    border-radius: 16px !important;
  }
  .lx-roadmap-icon-box {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
  }
  .lx-roadmap-step-badge {
    font-size: 0.62rem !important;
    padding: 3px 6px !important;
  }
  .lx-roadmap-title {
    font-size: 0.92rem !important;
    margin-bottom: 0.35rem !important;
  }
  .lx-roadmap-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
  .lx-home-calc-card {
    padding: 1.25rem 0.9rem;
    border-radius: 16px;
  }
  .lx-home-calc-inputs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .lx-home-calc-inputs input,
  .lx-home-calc-inputs select {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
  }
  .lx-home-calc-inputs label {
    font-size: 0.74rem !important;
    margin-bottom: 0.25rem !important;
  }
  .lx-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .lx-footer {
    padding: 3rem 0 1.5rem;
  }
  .lx-footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
  }
  .lx-footer-column h4 {
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
  }
  .lx-footer-links {
    gap: 0.5rem;
    font-size: 0.84rem;
  }
}

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 13.5px;
  }
  :root {
    --lx-container-pad: 0.85rem;
  }
  .lx-stats-bar-section {
    padding: 1.25rem 0;
  }
  .lx-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .lx-stat-item {
    padding: 0.4rem 0.2rem;
    border-right: none !important;
  }
  .lx-stat-num {
    font-size: 1.45rem;
  }
  .lx-stat-label {
    font-size: 0.68rem;
  }
  .lx-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .lx-hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 2rem auto !important;
    gap: 0.5rem !important;
  }
  .lx-hero-btns .lx-btn {
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
  }
  .lx-vehicle-card-thumb {
    max-height: 185px;
  }
}


