/* ========================================
   AutoTrust Car - Professional Design System
   ======================================== */

:root {
  --primary: #991b1b;
  --primary-light: #dc2626;
  --primary-dark: #7f1d1d;
  --accent: #c8a45c;
  --accent-light: #dfc07f;
  --accent-dark: #a88a3e;
  --success: #2d8a4e;
  --warning: #d4a72c;
  --danger: #c0392b;
  --text: #1a1a2e;
  --text-secondary: #5a6478;
  --text-muted: #8c95a6;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e2e5ea;
  --border-light: #f0f1f3;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'IBM Plex Sans Thai', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; border: none; outline: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- NAV ---- */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
}
.nav-brand .brand-icon {
  width: 38px; height: 38px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.nav-brand .brand-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-brand span:last-child { font-weight: 300; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: rgba(220,38,38,.05);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--primary);
  color: #fff; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: var(--transition); cursor: pointer;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

.nav-mobile-btn {
  display: none; padding: 8px; background: none;
  color: var(--text); cursor: pointer; border-radius: var(--radius-sm);
}
.nav-mobile-btn:hover { background: var(--bg); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(200,164,92,.08);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 80px 0; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; font-size: .8rem;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero-badge svg { width: 14px; height: 14px; fill: var(--accent); }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--accent-light); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat-box {
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center;
}
.hero-stat-box .number { font-size: 3.5rem; font-weight: 700; }
.hero-stat-box .label { font-size: .95rem; opacity: .7; margin-top: 4px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-line { background: #06c755; color: #fff; border-color: #06c755; }
.btn-line:hover { background: #05b34a; border-color: #05b34a; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- SEARCH BAR ---- */
.search-bar {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px; margin-top: -36px; position: relative; z-index: 10;
}
.search-bar form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.search-bar label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; display: block; }
.search-bar select, .search-bar input[type="text"] {
  width: 100%; padding: 10px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text);
  transition: var(--transition);
}
.search-bar select:focus, .search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

/* ---- STATS ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 48px 0; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ---- SECTION HEADERS ---- */
.section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.section-header p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.section-header a { font-size: .875rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.section-header a:hover { color: var(--primary-light); }

/* ---- VEHICLE CARDS ---- */
.vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vehicle-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer;
}
.vehicle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.vehicle-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg);
}
.vehicle-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.05); }
.vehicle-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge {
  padding: 4px 10px; border-radius: 6px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.badge-featured { background: var(--accent); color: var(--primary-dark); }
.badge-reserved { background: #dc2626; color: #fff; }
.grade-circle {
  position: absolute; bottom: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.grade-A { background: linear-gradient(135deg, #22c55e, #15803d); }
.grade-B { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.grade-C { background: linear-gradient(135deg, #eab308, #a16207); }
.vehicle-card-body { padding: 16px; }
.vehicle-card-title { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.vehicle-card-sub { font-size: .8rem; color: var(--text-muted); }
.vehicle-card-specs {
  display: flex; gap: 12px; margin-top: 10px;
  font-size: .75rem; color: var(--text-muted);
}
.vehicle-card-specs span { display: flex; align-items: center; gap: 4px; }
.vehicle-card-specs svg { width: 12px; height: 12px; fill: var(--text-muted); opacity: .6; }
.vehicle-card-price {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.vehicle-card-price .price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.vehicle-card-price .installment { font-size: .7rem; color: var(--text-muted); }

/* ---- WHY US ---- */
.why-us { background: var(--card); padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card { text-align: center; padding: 24px; }
.why-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; }

/* ---- BRANDS ---- */
.brand-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brand-tag {
  padding: 10px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition); cursor: pointer;
}
.brand-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(220,38,38,.03); }
.brand-tag .count { font-size: .75rem; color: var(--text-muted); margin-left: 4px; }

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 64px 0; text-align: center;
}
.cta h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.cta p { font-size: 1rem; opacity: .75; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { background: #0f1923; color: rgba(255,255,255,.6); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: 16px; }
.footer-brand { font-size: .85rem; line-height: 1.7; }
.footer-brand .name { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: .85rem; transition: var(--transition); }
.footer ul li a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; }
.footer-contact svg { width: 14px; height: 14px; fill: var(--accent); margin-top: 4px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; text-align: center; font-size: .8rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); }
.footer-socials svg { width: 16px; height: 16px; fill: rgba(255,255,255,.7); }

/* ---- LINE FLOAT ---- */
.line-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #06c755; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(6,199,85,.4);
  transition: var(--transition);
}
.line-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(6,199,85,.5); }
.line-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---- FILTER SIDEBAR ---- */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0; }
.filter-sidebar {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 24px;
  position: sticky; top: 84px; height: fit-content;
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.filter-group select, .filter-group input {
  width: 100%; padding: 9px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .85rem; color: var(--text); transition: var(--transition);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }
.filter-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-header .count { font-size: .9rem; color: var(--text-secondary); }
.results-header .count strong { color: var(--text); }
.sort-select {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .8rem; background: var(--card); color: var(--text);
}

/* ---- DETAIL PAGE ---- */
.detail-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; padding: 32px 0; }
.detail-gallery {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-light);
}
.detail-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.detail-sidebar { position: sticky; top: 84px; height: fit-content; }
.detail-price-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 28px;
}
.detail-price-card h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.detail-price-card .sub { font-size: .9rem; color: var(--text-muted); }
.detail-price-box {
  margin-top: 20px; padding: 20px; background: rgba(220,38,38,.04);
  border-radius: var(--radius-sm); border: 1px solid rgba(220,38,38,.08);
}
.detail-price-box .label { font-size: .8rem; color: var(--primary); font-weight: 600; }
.detail-price-box .amount { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-top: 4px; }
.detail-price-box .install { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.detail-grade { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.detail-actions .btn { width: 100%; justify-content: center; }

.detail-tabs {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); margin-top: 24px; overflow: hidden;
}
.tab-nav { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn {
  padding: 14px 20px; font-size: .85rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; background: none;
  border-bottom: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: 24px; display: none; }
.tab-content.active { display: block; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--bg); border-radius: var(--radius-sm);
}
.spec-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.spec-icon svg { width: 18px; height: 18px; }
.spec-label { font-size: .7rem; color: var(--text-muted); }
.spec-value { font-size: .85rem; font-weight: 600; color: var(--text); }

.inspection-bar { margin-bottom: 14px; }
.inspection-bar .bar-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.inspection-bar .bar-label { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.inspection-bar .bar-score { font-size: .85rem; font-weight: 700; color: var(--text); }
.inspection-bar .bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.inspection-bar .bar-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ---- CALCULATOR ---- */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0; }
.calc-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border-light); padding: 32px; }
.calc-result {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 32px; color: #fff;
}
.calc-result .monthly { font-size: 2.5rem; font-weight: 800; }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .9rem; }
.calc-row .label { opacity: .7; }
.calc-divider { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 8px 0; }

.range-group { margin-bottom: 28px; }
.range-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.range-header .label { font-size: .85rem; font-weight: 500; color: var(--text-secondary); }
.range-header .value { font-size: .85rem; font-weight: 700; color: var(--primary); }
input[type="range"] {
  width: 100%; height: 6px; background: var(--border);
  border-radius: 3px; appearance: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: pointer;
}
.term-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.term-btn {
  padding: 10px; text-align: center; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; background: var(--card);
  transition: var(--transition);
}
.term-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(220,38,38,.03); }
.term-btn:hover { border-color: var(--primary); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 32px;
  text-align: center; transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.contact-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.contact-card .value { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.contact-card .note { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 200; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius-lg);
  max-width: 460px; width: 100%; padding: 32px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.modal .sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; color: var(--text);
  background: var(--card); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- TRADE-IN ---- */
.condition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.condition-option {
  padding: 16px 12px; text-align: center; border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.condition-option:hover { border-color: var(--primary); }
.condition-option.active { border-color: var(--primary); background: rgba(220,38,38,.03); }
.condition-option .icon { font-size: 1.5rem; margin-bottom: 6px; }
.condition-option .name { font-size: .85rem; font-weight: 600; }
.condition-option .desc { font-size: .7rem; color: var(--text-muted); }

.result-box {
  margin-top: 32px; padding: 32px; text-align: center;
  background: linear-gradient(135deg, rgba(220,38,38,.04), rgba(200,164,92,.06));
  border: 1px solid rgba(220,38,38,.1); border-radius: var(--radius);
  display: none;
}
.result-box.active { display: block; }
.result-box .label { font-size: .9rem; color: var(--primary); font-weight: 600; }
.result-box .amount { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 8px 0; }
.result-box .note { font-size: .85rem; color: var(--text-muted); }

/* ---- ADMIN ---- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-dark); color: #fff; padding: 24px 0; position: fixed; width: 250px; height: 100%; overflow-y: auto; }
.admin-sidebar .brand { padding: 0 20px 24px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  font-size: .875rem; color: rgba(255,255,255,.6); transition: var(--transition);
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar nav a svg { width: 18px; height: 18px; fill: currentColor; opacity: .6; }
.admin-sidebar nav a.active svg { opacity: 1; }
.admin-content { margin-left: 250px; padding: 24px; background: var(--bg); }
.admin-header { background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; margin: -24px -24px 24px; }
.admin-header h1 { font-size: 1.15rem; font-weight: 600; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-stat {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border-light);
}
.admin-stat .label { font-size: .8rem; color: var(--text-muted); }
.admin-stat .value { font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.admin-stat .sub { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

.admin-table {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); overflow: hidden;
}
.admin-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--border-light); }
.admin-table tr:hover td { background: rgba(220,38,38,.01); }

.status-badge { padding: 4px 10px; border-radius: 6px; font-size: .7rem; font-weight: 600; display: inline-block; }
.status-available { background: #dcfce7; color: #166534; }
.status-reserved { background: #ede9fe; color: #5b21b6; }
.status-inspecting { background: #fef9c3; color: #854d0e; }
.status-incoming { background: #fee2e2; color: #991b1b; }
.status-sold { background: #fee2e2; color: #991b1b; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stat-box { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
  .search-bar form { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vehicle-grid { grid-template-columns: 1fr; }
  .search-bar form { grid-template-columns: 1fr; }
  .term-options { grid-template-columns: repeat(2, 1fr); }
}
