/* ==========================================================================
   VELORA ENTERPRISE COMMERCE DESIGN SYSTEM
   AI-Native B2B SaaS · Enterprise Marketplace · Digital Storefront
   ========================================================================== */

:root {
  /* Surface & Background */
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #090d16;
  --bg-dark-surface: #111726;

  /* Typography & Ink (High Contrast) */
  --ink: #090d16;
  --ink-secondary: #334155;
  --slate: #475569;
  --muted: #64748b;
  --faint: #94a3b8;

  /* Border & Dividers */
  --line-subtle: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Brand / Primary Accent: Royal Sapphire & Deep Indigo */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-light: #eff6ff;
  --brand-accent: #4f46e5;
  --ai-purple: #7c3aed;
  --ai-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  --grad-brand: linear-gradient(135deg, #2563eb 0%, #4f46e5 60%, #06b6d4 100%);

  /* Functional Status */
  --green: #10b981;
  --green-light: #ecfdf5;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --rose: #ef4444;
  --rose-light: #fef2f2;
  --cyan: #06b6d4;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Calibrated Elevation & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 24px -4px rgba(37, 99, 235, 0.25);

  /* Layout & Sizing */
  --maxw: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-hover);
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

svg.svg-icon,
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

button, input, select, textarea {
  font: inherit;
}

::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--ink);
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
  border: 2px solid #fff;
}
*::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --------------------------------------------------------------------------
   Layout Containers & Grid Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.center { text-align: center; }
.muted { color: var(--muted); }
.lead {
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

.section {
  padding: 88px 0;
  position: relative;
}
.section-soft {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-head {
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.85rem); letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.45rem); letter-spacing: -0.028em; line-height: 1.2; }
h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow svg {
  width: 14px;
  height: 14px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Badges, Pills & Status Indicators
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--slate);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}
.pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.pill:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.pill-brand {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--brand);
}
.pill-brand svg {
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--slate);
  border: 1px solid transparent;
}
.badge svg,
.badge-cert svg {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  flex-shrink: 0 !important;
}
.badge-pop {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.badge-ai {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--ai-purple);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1.25;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 1px 2px rgba(9, 13, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-brand {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.24);
}
.btn-brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ai {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}
.btn-ai:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-call {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-call:hover {
  background: linear-gradient(135deg, #047857, #059669);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}
.btn-call svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}
.btn-call .call-short-text {
  display: none;
}
.btn-call .call-full-number {
  display: inline;
}
@media (max-width: 680px) {
  .btn-call .call-full-number {
    display: none !important;
  }
  .btn-call .call-short-text {
    display: inline !important;
  }
}

/* Hide the bottom-right "Ask Velora AI" widget button */
#nb-fab {
  display: none !important;
}

/* Position Call Agent FAB on original bottom-left position */
#cl-fab {
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
}
#cl-panel {
  left: 24px !important;
  right: auto !important;
  bottom: 84px !important;
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: #f8fafc;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius-xs);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Cards, Tiles & Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Category Tones */
.tone-0 { background: #eff6ff; color: #2563eb; border-color: rgba(37, 99, 235, 0.2); }
.tone-1 { background: #eef2ff; color: #4f46e5; border-color: rgba(79, 70, 229, 0.2); }
.tone-2 { background: #f5f3ff; color: #7c3aed; border-color: rgba(124, 58, 237, 0.2); }
.tone-3 { background: #ecfeff; color: #0891b2; border-color: rgba(8, 145, 178, 0.2); }
.tone-4 { background: #ecfdf5; color: #059669; border-color: rgba(5, 150, 105, 0.2); }
.tone-5 { background: #fffbeb; color: #d97706; border-color: rgba(217, 119, 6, 0.2); }
.tone-6 { background: #fef2f2; color: #dc2626; border-color: rgba(220, 38, 38, 0.2); }
.tone-7 { background: #f8fafc; color: #475569; border-color: rgba(71, 85, 105, 0.2); }

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  height: 100%;
  padding: 24px;
}
.product-card .pc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.product-card .pc-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.product-card .pc-sum {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}
.product-card .pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 0.825rem;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card .pc-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-card .pc-features li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.product-card .pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
  margin-top: auto;
}
.product-card .pc-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.product-card .pc-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.product-card .pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-card .pc-view {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Category Card */
.cat-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  padding: 24px;
  height: 100%;
}
.cat-card .ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.cat-card .ic svg {
  width: 22px;
  height: 22px;
}
.cat-card h3 {
  margin-bottom: 4px;
}
.cat-card .muted {
  font-size: 0.875rem;
}
.cat-card .arrow {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-card .arrow svg,
.arrow svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.cat-card:hover .arrow {
  color: var(--brand-dark);
}
.cat-card:hover .arrow svg,
.arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Global Shell: Header & Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-subtle);
  transition: all 0.2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
  max-width: 100%;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.brand:hover .logo {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.36);
}
.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
  color: var(--slate);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-subtle);
}
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Cart Button in Header */
.cart-btn {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
}
.cart-btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}
.cart-btn svg {
  width: 18px;
  height: 18px;
  color: var(--slate);
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}
.cart-count[hidden] {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}
.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1160px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-cta .btn-call { display: none; }
}

@media (max-width: 768px) {
  .city-selector { display: none; }
  .nav-leads-btn span:not(.nav-badge) { display: none; }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: #ffffff;
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-xl);
  transform: translateY(-100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}
.mobile-nav-drawer.open {
  transform: translateY(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav-drawer a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-subtle);
}

/* --------------------------------------------------------------------------
   Homepage / Hero & Console
   -------------------------------------------------------------------------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.038em;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 35%, #0284c7 70%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  white-space: nowrap;
}
.hero-actions .btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats .num {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-stats .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Hero Console / Visual */
.hero-visual {
  position: relative;
}
.hero-panel {
  background: #080c18;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--faint);
}
.hero-panel-bar .dots {
  display: flex;
  gap: 7px;
}
.hero-panel-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-panel-bar i:nth-child(1) { background: #ef4444; }
.hero-panel-bar i:nth-child(2) { background: #f59e0b; }
.hero-panel-bar i:nth-child(3) { background: #10b981; }
.hero-panel-bar span {
  font-family: monospace;
  opacity: 0.75;
}
.panel-badge-live {
  font-size: 0.75rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Real-Time Console Metrics */
.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.console-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.console-metric .val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.console-metric .lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.app-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.app-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}
.app-tile .ic {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.app-tile .ic svg {
  width: 16px;
  height: 16px;
}
.app-tile b {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
}

/* Simulated AI Voice Bar inside console */
.console-voice-bar {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-voice-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
  animation: pulseGlow 2s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
}
.console-voice-info {
  flex: 1;
  min-width: 0;
}
.console-voice-info strong {
  display: block;
  font-size: 0.78rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-voice-info span {
  display: block;
  font-size: 0.7rem;
  color: #93c5fd;
  margin-top: 1px;
}

/* Floating Badges */
.hero-float {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  z-index: 2;
  animation: floatBounce 4s ease-in-out infinite alternate;
}
.hero-float .ic {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.hero-float .ic svg {
  width: 16px;
  height: 16px;
}
.hero-float div {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-float small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.float-a {
  bottom: -16px;
  left: -20px;
}
.float-b {
  top: -14px;
  right: -16px;
  animation-delay: 2s;
}
@keyframes floatBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
@media (max-width: 600px) {
  .hero-float { display: none; }
}

/* Trust Strip */
.trust-strip {
  padding: 36px 0 52px;
  border-bottom: 1px solid var(--line-subtle);
}
.trust-cap {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate);
  transition: all 0.2s ease;
  user-select: none;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}
.trust-item:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.trust-cap {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
}
.trust-logos span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--line-strong);
  filter: grayscale(1);
  transition: color 0.15s ease;
}
.trust-logos span:hover {
  color: var(--slate);
}

/* Bento Feature Grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bento .feature {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.bento .feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bento .feature.wide {
  grid-column: span 2;
}
.bento .ic {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.bento .ic svg {
  width: 22px;
  height: 22px;
}
.bento h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.bento p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feature.wide { grid-column: span 1; }
}

/* Call to Action Band */
.cta-band {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-band h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 16px;
}
.cta-band p {
  color: var(--faint);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Marketplace Listing & Filter Components
   -------------------------------------------------------------------------- */
.marketplace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}
.search-box input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.sort-select {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
}

.chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 7px 15px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.chip svg {
  width: 15px;
  height: 15px;
}
.chip:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
  color: var(--ink);
}
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

/* Empty Results Card */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-subtle);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}
.empty-state h3 {
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Product Detail Page Experience
   -------------------------------------------------------------------------- */
.detail-hero {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line-subtle);
}
.crumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--brand);
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.detail-thumb-box {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  background: #0f172a;
}
.detail-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.detail-head .pc-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.detail-gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  background: #0f172a;
}
.detail-hero-car-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.dg-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #10b981;
  font-size: 0.825rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* Sticky Purchase Card */
.side-card {
  position: sticky;
  top: 96px;
  padding: 28px;
}
.price-big {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 16px 0 28px;
}
.spec-table tr {
  border-bottom: 1px solid var(--line-subtle);
}
.spec-table td {
  padding: 12px 14px;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--slate);
  width: 35%;
}
.spec-table td:last-child {
  color: var(--ink);
}

/* Tags & Badges */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 28px;
}
.tag {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}
.feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Accordion FAQs */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--muted);
}
.faq[open] summary::after {
  content: "−";
}
.faq-body {
  padding: 0 20px 18px;
  font-size: 0.925rem;
  color: var(--slate);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Pricing Tiers Grid
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s ease;
}
.tier:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tier.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand);
}
.tier.featured .badge-pop {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.t-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.t-price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 2px;
}
.t-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.t-unit {
  font-size: 0.825rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tier ul li {
  font-size: 0.875rem;
  color: var(--slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier ul li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}
.t-limits {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Shopping Cart Slide-Over Drawer
   -------------------------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.cart-drawer.open {
  display: block;
}
.cart-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  margin: 0;
  font-size: 1.2rem;
}
.cart-x {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
}
.cart-x:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}
.cart-x svg {
  width: 18px;
  height: 18px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-item {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cart-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.cart-item span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.cart-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}
.cart-item-right span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.cart-remove {
  background: transparent;
  border: none;
  color: var(--rose);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
}
.cart-remove:hover {
  background: var(--rose-light);
}
.cart-remove svg {
  width: 16px;
  height: 16px;
}

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.cart-total strong {
  font-size: 1.45rem;
  color: var(--ink);
}
.cart-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.cart-done {
  margin: 16px 24px;
  background: var(--green-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #065f46;
}
.cart-done svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex-shrink: 0;
}

/* Toast */
.velora-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  white-space: nowrap;
}
.velora-toast svg {
  display: none !important;
}
.velora-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Stripe Checkout & Test Simulator */
.stripe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10002;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.stripe-modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stripe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.stripe-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: #635bff;
  color: #fff;
  display: grid;
  place-items: center;
}
.stripe-badge-icon svg {
  width: 18px;
  height: 18px;
}

.stripe-pill-test {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  letter-spacing: 0.04em;
}

.stripe-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
}
.stripe-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}
.stripe-modal-close svg {
  width: 18px;
  height: 18px;
}

.stripe-modal-body {
  padding: 24px;
}

.stripe-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.stripe-sim-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stripe-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stripe-form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
}
.stripe-form-group input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stripe-form-group input:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.stripe-card-input-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.stripe-card-input-wrapper input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
}
.stripe-card-split {
  display: flex;
  border-top: 1px solid var(--line);
}
.stripe-card-split input:first-child {
  border-right: 1px solid var(--line) !important;
}

/* --------------------------------------------------------------------------
   Footer Layout
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  color: var(--slate);
  font-size: 0.9rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  color: var(--slate);
}
.footer ul a:hover {
  color: var(--brand);
}

.footer-tag {
  font-size: 0.9375rem;
  color: var(--slate);
  margin: 12px 0 8px;
  max-width: 320px;
}
.fictitious {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Animation & Viewport Reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   AUTOMOTIVE USED-CAR MARKETPLACE & LEAD GENERATION DESIGN SYSTEM
   ========================================================================== */

/* City Selector in Header */
.city-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
}
.city-pin { font-size: 0.9rem; }
.city-selector select {
  background: transparent;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* Header Deals Button & Badges */
.nav-leads-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.nav-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.badge-cert {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  font-size: 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.badge-cert svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
}

/* Automotive Hero & Search */
.auto-hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%),
              var(--bg-page);
  border-bottom: 1px solid var(--line-subtle);
}
.auto-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.auto-hero-search-card {
  margin: 32px 0 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
}
.hero-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  transition: border-color 0.2s;
}
.hero-search-input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.hero-search-input-wrap .search-ic {
  color: var(--muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
}
.hero-search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}
.hero-filter-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
}
.filter-tab-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-group-lbl {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 80px;
}
.filter-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--slate);
  transition: all 0.15s;
}
.filter-pill:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
}

/* 4 Trust Pillars Strip */
.auto-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .auto-trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .auto-trust-strip { grid-template-columns: 1fr; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.trust-ic {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.3;
}
.trust-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Automotive Used-Car Card */
.auto-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--line);
  background: #ffffff;
}
.auto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.4);
}
.ac-media {
  position: relative;
  height: 180px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ac-car-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.auto-card:hover .ac-car-photo {
  transform: scale(1.06);
}
.ac-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.05) 45%, rgba(15, 23, 42, 0.75) 100%);
  pointer-events: none;
}
.ac-icon {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0.85;
}
.ac-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.ac-badges .badge {
  padding: 4px 9px;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}
.badge-city {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.ac-tag-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  text-align: center;
}
.ac-content {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ac-cat-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.ac-owner-pill {
  font-size: 0.72rem;
  padding: 2px 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--slate);
  font-weight: 600;
}
.ac-title {
  margin: 2px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.ac-title a {
  color: var(--ink);
}
.ac-title a:hover {
  color: var(--brand);
}
.ac-summary {
  font-size: 0.8125rem;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 4-Box Spec Grid */
.ac-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  margin-bottom: 12px;
}
.ac-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.ac-spec-icon { font-size: 0.85rem; }
.ac-spec-val {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Tech Highlights Strip */
.ac-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ac-tech-item {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: var(--radius-xs);
  color: var(--slate);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ac-tech-item svg {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  flex-shrink: 0 !important;
}

/* Pricing & EMI */
.ac-pricing {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line-subtle);
  margin-top: auto;
}
.ac-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.ac-emi {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.ac-emi strong { color: var(--brand); }
.ac-inclusions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  line-height: 1.4;
}

/* Lead Actions */
.ac-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.ac-inspect-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}
.ac-inspect-link:hover {
  color: var(--brand);
}

/* Comparison Matrix */
.auto-compare-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.auto-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.auto-compare-table th, .auto-compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 0.875rem;
  vertical-align: middle;
}
.auto-compare-table thead th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
}
.auto-compare-table .highlight-col {
  background: rgba(37, 99, 235, 0.04);
  color: var(--brand);
  font-weight: 600;
}
.table-check {
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.table-check svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}
.table-cross {
  color: var(--rose);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.table-cross svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
}

/* Auto EMI Calculator Widget */
.emi-widget-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.emi-widget-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .emi-widget-grid { grid-template-columns: 1fr; }
}
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  outline: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.emi-result-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.emi-big-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand);
  margin: 6px 0 16px;
}
.emi-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

/* Reviews */
.review-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate);
  flex: 1;
}
.review-author {
  border-top: 1px solid var(--line-subtle);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

/* Auto Banner Box */
.auto-banner-box {
  background: linear-gradient(135deg, #090d16 0%, #1e3a8a 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-xl);
}
.banner-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Inventory Marketplace Controls */
.auto-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.auto-filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Product Detail Inspection Checklist */
.auto-spec-tiles-card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .auto-spec-tiles-card { grid-template-columns: repeat(3, 1fr); }
}
.spec-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.st-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.st-val {
  font-size: 0.9rem;
  color: var(--ink);
}

.inspection-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.insp-row {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-subtle);
  align-items: flex-start;
}
.insp-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.insp-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.insp-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}
.insp-mechanic-box {
  background: var(--brand-light);
  padding: 14px 18px;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   LEAD GENERATION MODAL & DEAL DRAWER CSS
   ========================================================================== */

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lead-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lead-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
}
.lead-modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.lead-modal-header h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}
.lead-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.lead-modal-close:hover { color: var(--ink); }

.lm-vehicle-picker {
  padding: 10px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}
.lm-vehicle-picker label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.lm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-subtle);
}
.lm-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.15s ease;
}
.lm-tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}
.lm-tab-btn.active {
  color: var(--brand);
  background: #fff;
  border-bottom-color: var(--brand);
}
.lead-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}
.lm-tab-content {
  display: none;
}
.lm-tab-content.active {
  display: block;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lm-success-view {
  text-align: center;
  padding: 24px 12px;
}
.lm-success-icon {
  width: 60px;
  height: 60px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.lm-success-icon svg { width: 32px; height: 32px; }
.lm-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* Deals & Test Drives Drawer */
.lead-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  transition: visibility 0.3s;
}
.lead-drawer.open {
  visibility: visible;
}
.lead-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lead-drawer.open .lead-drawer-backdrop {
  opacity: 1;
}
.lead-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.lead-drawer.open .lead-drawer-panel {
  transform: translateX(0);
}
.lead-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lead-drawer-header h3 { margin: 0; font-size: 1.15rem; }
.lead-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}
.lead-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ld-card {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
}
.ld-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ld-card-del {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.ld-card-del:hover { color: var(--rose); }
.ld-card-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}
.ld-card-details {
  font-size: 0.8125rem;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ld-mechanic-badge {
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.ld-card-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ld-empty {
  text-align: center;
  padding: 60px 20px;
}
.ld-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.ld-empty-icon svg { width: 28px; height: 28px; }
.lead-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
