:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --primary-dark: #0f2440;
  --primary-rgb: 30, 58, 95;
  --accent: #d42929;
  --accent-hover: #b82222;
  --accent-glow: rgba(212, 41, 41, 0.2);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --bg-alt: #e8ecf1;
  --bg-hover: #f1f4f9;
  --border: #dce1e8;
  --border-hover: #b8c1cc;
  --success: #0a8f5c;
  --success-bg: rgba(10, 143, 92, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-alt { background: var(--bg-alt); }
.section-pt0 { padding-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

.section-head { margin-bottom: 36px; }
.section-head.text-center { text-align: center; display: block; }
@media (min-width: 768px) { .section-head:not(.text-center) { display: flex; align-items: flex-end; justify-content: space-between; } }
.section-label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 8px;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: -0.16em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .lucide { width: 0.65rem; height: 0.65rem; opacity: 0.5; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none !important;
  transition: all var(--transition);
  justify-content: center;
  line-height: 1;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-hover); color: var(--text) !important; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}
.btn-outline:hover { background: var(--primary); color: #ffffff !important; }
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary) !important;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text) !important; }
.btn-sm { padding: 7px 16px; min-height: 36px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; min-height: 52px; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-light {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffffff; color: var(--text);
  border: none; border-radius: 8px; padding: 10px 24px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: all 0.15s;
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  min-height: 44px;
  transition: all var(--transition);
  font-family: var(--font);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control {
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 540px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(10, 143, 92, 0.2); }
.alert-error { background: rgba(212, 41, 41, 0.1); color: var(--accent); border: 1px solid rgba(212, 41, 41, 0.15); }
.alert-info { background: rgba(30, 58, 95, 0.08); color: var(--primary); border: 1px solid rgba(30, 58, 95, 0.12); }

/* ============ PROMO BANNER ============ */
.promo-banner {
  background: linear-gradient(135deg, var(--accent), #8b1a1a);
  color: #ffffff;
  padding: 9px 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.promo-banner .lucide { margin-right: 6px; }

/* ============ HEADER ============ */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.header-scrolled { box-shadow: var(--shadow-lg); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.logo-text small { display: block; font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.logo img { max-height: 42px; border-radius: 0; }

.nav { display: flex; gap: 2px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }
.nav-link-active { color: var(--primary); font-weight: 600; background: rgba(var(--primary-rgb), 0.04); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--bg-hover); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}
.header-phone:hover { border-color: var(--primary); color: var(--primary) !important; }
.header-phone .lucide { color: var(--accent); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .header-phone span { display: none; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }
}

/* ============ HOMEPAGE HERO ============ */
.hp-hero { position: relative; overflow: hidden; min-height: 640px; background: var(--primary-dark); }
.hp-hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease;
}
.hp-hero-slide.active { opacity: 1; }
.hp-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%);
}
.hp-hero-content {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  min-height: 640px; padding: 120px 0 160px;
}
.hp-hero-content .container { text-align: center; }
.hp-hero-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.hp-hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 16px; letter-spacing: -0.03em;
  color: #ffffff;
}
.hp-hero-content h1 span { background: linear-gradient(135deg, var(--accent), #ff6b35); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hp-hero-content p {
  color: rgba(255,255,255,0.65);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  max-width: 560px; margin: 0 auto 28px;
  line-height: 1.7;
}
.hp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hp-hero-slide-nav {
  position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hp-hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; transition: all var(--transition);
}
.hp-hero-dot.active { background: var(--accent); width: 28px; border-radius: 999px; }

/* --- Hero Search --- */
.hp-hero-search {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  padding: 24px 0 32px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 100%);
}
.hp-hero-search-form { margin: 0; }
.hp-hero-search-form .btn { min-height: 48px; padding: 10px 28px; border-radius: 10px; flex-shrink: 0; }
.hp-search-input-wrap,
.hp-search-select-wrap {
  display: flex; align-items: center; gap: 8px;
  flex: 1; padding: 0 14px;
  min-height: 48px;
}
.hp-search-input-wrap {
  flex: 2;
}
.hp-search-input-wrap .lucide,
.hp-search-select-wrap .lucide { width: 1rem; height: 1rem; color: var(--text-muted); flex-shrink: 0; }
.hp-search-input-wrap input,
.hp-search-select-wrap select {
  border: none; background: transparent; outline: none;
  font-size: 0.85rem; font-family: inherit;
  width: 100%; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.hp-search-select-wrap select { cursor: pointer; }

@media (min-width: 641px) {
  .hp-hero-search-form {
    display: flex; gap: 0; align-items: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px; border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  }
  .hp-search-input-wrap { border-right: 1px solid rgba(0,0,0,0.06); }
  .hp-search-select-wrap { border-right: 1px solid rgba(0,0,0,0.06); }
  .hp-search-select-wrap:last-of-type { border-right: none; }
}
@media (max-width: 640px) {
  .hp-hero { min-height: auto; }
  .hp-hero-content { min-height: 440px; padding: 80px 0 200px; }
  .hp-hero-slide-nav { bottom: 160px; }
  .hp-hero-search { padding: 14px 0 20px; }
  .hp-hero-search-form {
    display: flex; flex-direction: column; gap: 6px;
    background: rgba(255,255,255,0.95);
    padding: 10px; border-radius: 12px;
  }
  .hp-search-input-wrap,
  .hp-search-select-wrap { padding: 4px 10px; border-bottom: 1px solid rgba(0,0,0,0.05); min-height: 40px; }
  .hp-search-select-wrap:last-of-type { border-bottom: none; }
  .hp-hero-search-form .btn { width: 100%; justify-content: center; }
}

/* ============ PAGE HEADER (Inventory, etc.) ============ */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.page-header-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.page-header-content h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.page-header-content p { font-size: 0.88rem; color: var(--text-secondary); max-width: 520px; }
.result-count {
  flex-shrink: 0;
  background: var(--bg-alt);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============ FILTER PANEL ============ */
.filter-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.filter-panel .filter-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: end;
}
.filter-group { margin: 0; }
.filter-group .form-control { min-height: 42px; font-size: 0.82rem; }
.filter-grid .btn { min-height: 42px; font-size: 0.82rem; padding: 8px 16px; }

/* ============ VEHICLE CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #dce1e8;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card-image img { transform: scale(1.08); }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-badge.available, .card-badge.featured { background: var(--success); color: #ffffff; }
.card-badge.sold { background: var(--accent); color: #ffffff; }
.card-badge.pending { background: #d97706; color: #ffffff; }
.card-badge.coming-soon { background: var(--primary); color: #ffffff; }
.card-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-image-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 0.95rem; font-weight: 700; line-height: 1.25; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-subtitle { color: var(--text-muted); font-size: 0.68rem; }

.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-price .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-price .price-tag .lucide { width: 0.6rem; height: 0.6rem; }
.card-price s { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.card-payment {
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}
.card-payment small { display: block; font-weight: 400; font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-hover);
  font-size: 0.68rem;
  color: var(--text-secondary);
}
.card-specs span .lucide { color: var(--accent); }

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  margin-top: auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.card-btn:hover { color: #ffffff; box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-1px); }
.card-btn .lucide { width: 0.85rem; height: 0.85rem; }

.vehicle-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.page-link {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
  min-width: 40px;
  text-align: center;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }
.page-current { background: var(--primary); border-color: var(--primary); color: #ffffff; font-weight: 600; }
.page-current:hover { background: var(--primary); color: #ffffff; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state .lucide { width: 2.5rem; height: 2.5rem; opacity: 0.35; margin: 0 auto 14px; display: block; }
.empty-state h3 { color: var(--text-secondary); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ============ HOMEPAGE VALUE ============ */
.hp-value-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 540px) { .hp-value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .hp-value-grid { grid-template-columns: repeat(4, 1fr); } }
.hp-value-card {
  text-align: center; padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.hp-value-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.hp-value-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.hp-value-icon .lucide { width: 1.3rem; height: 1.3rem; color: #ffffff; }
.hp-value-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.hp-value-card p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; }

/* ============ HOMEPAGE CTAS ============ */
.hp-ctas { padding: 64px 0; }
@media (min-width: 768px) { .hp-ctas { padding: 88px 0; } }
.hp-ctas-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hp-ctas-grid { grid-template-columns: 1fr 1fr; } }
.hp-cta-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background-size: cover; background-position: center;
  min-height: 280px; display: flex; align-items: center;
}
.hp-cta-content { padding: 40px; color: #ffffff; }
.hp-cta-content .lucide { width: 2rem; height: 2rem; margin-bottom: 16px; }
.hp-cta-content h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.hp-cta-content p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; opacity: 0.8; }

/* ============ HOMEPAGE CONTACT ============ */
.hp-contact-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hp-contact-grid { grid-template-columns: 1fr 1fr; } }
.hp-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hp-contact-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.hp-contact-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }
.hp-contact-list { display: flex; flex-direction: column; }
.hp-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hp-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.hp-contact-item:first-child { padding-top: 0; }
.hp-contact-item .lucide {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow); color: var(--accent);
  flex-shrink: 0;
}
.hp-contact-item strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.hp-contact-item span,
.hp-contact-item a { display: block; color: var(--text-secondary); font-size: 0.82rem; text-decoration: none; }
.hp-contact-item a:hover { color: var(--primary); }
.hp-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; min-height: 100%;
}
.hp-map-card iframe { width: 100%; height: 100%; min-height: 320px; border: none; display: block; }
.hp-map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 320px; background: var(--bg-alt); color: var(--text-muted); font-size: 0.85rem; gap: 12px;
}
.hp-map-placeholder .lucide { width: 2rem; height: 2rem; }

/* ============ FINANCING PAGE ============ */
.fin-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 52px 0 48px;
  color: #ffffff;
}
.fin-hero .breadcrumb { margin-bottom: 14px; }
.fin-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.fin-hero .breadcrumb a:hover { color: #ffffff; }
.fin-hero .breadcrumb span { color: rgba(255,255,255,0.35); }
.fin-hero .breadcrumb .sep { color: rgba(255,255,255,0.2); }
.fin-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.fin-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  max-width: 560px;
  line-height: 1.7;
}

.fin-stats {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 52px;
}
@media (min-width: 540px) { .fin-stats { grid-template-columns: repeat(3, 1fr); } }
.fin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.fin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.fin-stat-card .lucide {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.fin-stat-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.fin-stat-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fin-steps {
  margin-bottom: 52px;
}
.fin-steps h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
  color: var(--primary-dark);
}
.fin-steps-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .fin-steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .fin-steps-grid { grid-template-columns: repeat(4, 1fr); } }
.fin-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.fin-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.fin-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.fin-step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.fin-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fin-benefits {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.fin-benefits h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.fin-benefits > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ============ DETAIL PAGE (trade-in, contact) ============ */
.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.detail-panel h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}
.detail-panel h2 .lucide { color: var(--accent); }
.form-section { margin-bottom: 20px; }
.form-section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-section h3 .lucide { color: var(--accent); width: 0.88rem; height: 0.88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.lead-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .lead-form-grid { grid-template-columns: 1fr; } }
.lead-form-grid .form-span { grid-column: 1 / -1; }
.lead-form-grid .form-group { margin-bottom: 0; }

.map-container { 
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
}
.map-container iframe { width: 100%; height: 300px; border: none; }
.map-spaced { margin-top: 20px; }

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-columns { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-columns { grid-template-columns: 1fr 1fr; } }

/* ============ PAGE CONTENT ============ */
.page-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  line-height: 1.8;
  box-shadow: var(--shadow);
}
.page-content h2 { font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px; color: var(--primary-dark); }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; }
.page-content p { color: var(--text-secondary); margin-bottom: 14px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 14px; }
.page-content li { color: var(--text-secondary); margin-bottom: 6px; }
.page-content a { color: var(--accent); }
.page-content blockquote { border-left: 3px solid var(--accent); padding-left: 16px; margin: 16px 0; color: var(--text-secondary); font-style: italic; }
.page-content img { border-radius: var(--radius-sm); margin: 16px 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark);
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, 0.65);
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col p, .footer-col li { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; margin-bottom: 8px; line-height: 1.6; }
.footer-col a { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.footer-col a:hover { color: #ffffff; }
.footer-col ul li { margin-bottom: 8px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.footer-contact span { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.footer-contact .lucide { width: 0.8rem; height: 0.8rem; opacity: 0.6; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-credit {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.05em;
}

/* ============ VEHICLE DETAIL ============ */
.vd-hero-overlay { position: relative; min-height: 500px; overflow: hidden; }
.vd-hero-overlay-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 0.2s ease; }
.vd-hero-overlay-dark { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.05) 100%); }
.vd-hero-overlay-box {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 300px; padding: 24px; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 12px 0 0 12px; box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.vd-hero-overlay-price { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.vd-hero-overlay-msrp { font-size: 0.78rem; color: var(--text-muted); }
.vd-hero-overlay-msrp s { margin-right: 4px; }
.vd-hero-overlay-save { display: inline-block; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 1px 8px; border-radius: 3px; font-size: 0.72rem; }
.vd-hero-overlay-payment { font-size: 0.78rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.vd-hero-overlay-payment strong { color: var(--accent); }
.vd-hero-overlay-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; border: none; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit;
  background: var(--primary); color: #ffffff; text-decoration: none; transition: all 0.15s;
}
.vd-hero-overlay-btn:hover { opacity: 0.85; color: #ffffff; }
.vd-hero-overlay-btn .lucide { width: 0.85rem; height: 0.85rem; }
.vd-hero-overlay-btn-sm { background: var(--text-secondary); font-size: 0.76rem; padding: 8px; }
.vd-hero-overlay-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.06); font-size: 0.7rem; color: var(--text-muted); }
@media (max-width: 767px) {
  .vd-hero-overlay { min-height: auto; }
  .vd-hero-overlay-bg { position: relative; min-height: 280px; }
  .vd-hero-overlay-box { position: relative; right: auto; top: auto; transform: none; width: 100%; border-radius: 0; background: var(--bg-card); }
}

.vd-gallery-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 14px 0; }
.vd-gallery-bar .container { display: flex; align-items: center; gap: 12px; }
.vd-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px 0; }
.vd-gallery-thumbs::-webkit-scrollbar { display: none; }
.vd-gallery-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  background: #dce1e8;
}
.vd-gallery-thumb:hover { border-color: var(--border-hover); }
.vd-gallery-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.vd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vd-gallery-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.vd-gallery-expand:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }

.vd-layout { display: block; padding: 28px 0 60px; }
.vd-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.vd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.vd-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}
.vd-card-title .lucide { color: var(--accent); }

.vd-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (min-width: 640px) { .vd-spec-grid { grid-template-columns: 1fr 1fr 1fr; } }
.vd-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.vd-spec-item:nth-last-child(-n+2) { border-bottom: none; }
@media (min-width: 640px) { .vd-spec-item:nth-last-child(-n+3) { border-bottom: none; } }
.vd-spec-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.vd-spec-icon .lucide { width: 0.85rem; height: 0.85rem; color: var(--accent); }
.vd-spec-label { font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; min-width: 50px; }
.vd-spec-value { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-left: auto; text-align: right; }

.vd-description { color: var(--text-secondary); line-height: 1.8; font-size: 0.9rem; }
.vd-history-actions { display: flex; flex-direction: column; gap: 12px; }

/* ============ VEHICLE DETAIL CATEGORIES ============ */
.vd-category-groups { display: flex; flex-direction: column; gap: 24px; }
.vd-category-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vd-category-title .lucide { width: 0.9rem; height: 0.9rem; color: var(--accent); }
.vd-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
@media (min-width: 768px) { .vd-feature-grid { grid-template-columns: 1fr 1fr 1fr; } }
.vd-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: background var(--transition);
}
.vd-feature-item:hover { background: var(--bg-hover); }
.vd-feature-item .lucide {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--success);
}
.vd-feature-item-safety .lucide { color: var(--primary); }
.vd-feature-item span { line-height: 1.3; }

.vd-similar { padding: 0 0 48px; }
.vd-section-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }
.vd-section-title .lucide { color: var(--accent); }

/* ============ VEHICLE DETAIL FORMS ============ */
.vd-form { display: flex; flex-direction: column; gap: 14px; }
.vd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .vd-form-row { grid-template-columns: 1fr; } }
.vd-form-group { margin: 0; }
.vd-form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  min-height: 44px;
  transition: all var(--transition);
  font-family: var(--font);
}
.vd-form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08); }
.vd-form-control::placeholder { color: var(--text-muted); }
textarea.vd-form-control { min-height: 80px; resize: vertical; }
.vd-form-label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.vd-form-label .lucide { width: 0.78rem; height: 0.78rem; }

.vd-alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-align: center; }
.vd-alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(10, 143, 92, 0.2); }
.vd-alert-error { background: rgba(212, 41, 41, 0.1); color: var(--accent); border: 1px solid rgba(212, 41, 41, 0.15); }

.vd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  text-decoration: none;
  transition: all var(--transition);
  justify-content: center;
  line-height: 1;
  font-family: var(--font);
}
.vd-btn:hover { transform: translateY(-2px); }
.vd-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #ffffff !important; box-shadow: 0 4px 14px var(--accent-glow); }
.vd-btn-primary:hover { color: #ffffff !important; box-shadow: 0 8px 24px var(--accent-glow); }
.vd-btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #ffffff !important; box-shadow: 0 4px 14px var(--accent-glow); }
.vd-btn-accent:hover { color: #ffffff !important; box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-2px); }
.vd-btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary) !important; }
.vd-btn-outline:hover { background: var(--primary); color: #ffffff !important; }
.vd-btn-block { width: 100%; justify-content: center; }

.vd-btn-carfax {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  font-family: var(--font);
}
.vd-btn-carfax:hover { box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.3); transform: translateY(-2px); color: #ffffff !important; }
.vd-btn-carfax .vd-btn-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.12); border-radius: 10px; flex-shrink: 0; }
.vd-btn-carfax .vd-btn-text { flex: 1; }
.vd-btn-carfax .vd-btn-text strong { display: block; font-size: 0.9rem; }
.vd-btn-carfax .vd-btn-text small { display: block; font-size: 0.72rem; opacity: 0.75; font-weight: 400; }
.vd-btn-carfax .vd-btn-arrow { opacity: 0.6; margin-left: auto; }

.vd-btn-history {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  text-decoration: none;
}
.vd-btn-history:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text) !important; }
.vd-btn-history .vd-btn-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb), 0.06); border-radius: 10px; flex-shrink: 0; }
.vd-btn-history .vd-btn-text { flex: 1; }
.vd-btn-history .vd-btn-text strong { display: block; font-size: 0.9rem; }
.vd-btn-history .vd-btn-text small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.vd-btn-history .vd-btn-arrow { opacity: 0.4; margin-left: auto; }

/* ============ MODALS ============ */
.vd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}
.vd-modal-overlay.active { display: flex; opacity: 1; }
.vd-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.vd-modal-overlay.active .vd-modal { transform: scale(1) translateY(0); }
.vd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vd-modal-header h3 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.vd-modal-header h3 .lucide { color: var(--accent); }
.vd-modal-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-size: 1.15rem;
}
.vd-modal-close:hover { background: rgba(212, 41, 41, 0.1); color: var(--accent); }
.vd-modal-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.vd-modal-body.p-4 { padding: 24px; overflow-y: auto; }
.vd-modal-iframe { width: 100%; height: 70vh; border: none; flex: 1; }
.vd-modal-gallery { max-width: 1000px; }
.vd-gallery-slides { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--primary-dark); min-height: 400px; }
.vd-gallery-slides img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.vd-gallery-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; border-top: 1px solid var(--border); }
.vd-gallery-nav-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); cursor: pointer; transition: all var(--transition); color: var(--text); }
.vd-gallery-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.vd-gallery-counter { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); min-width: 60px; text-align: center; }

@media (max-width: 768px) {
  .vd-card { padding: 18px; }
  .vd-spec-grid { grid-template-columns: 1fr 1fr; }
  .vd-modal { max-height: 85vh; border-radius: var(--radius-lg); margin: 12px; }
  .vd-modal-iframe { height: 55vh; }
  .vd-spec-item { padding: 10px 8px; }
  .vd-spec-icon { width: 30px; height: 30px; }
  .vd-spec-label { min-width: 42px; font-size: 0.62rem; }
  .vd-spec-value { font-size: 0.78rem; }
  .vd-feature-grid { grid-template-columns: 1fr; }
  .vd-category-title { font-size: 0.78rem; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in { animation: fadeInUp 0.5s ease forwards; }