:root {
  --bg: #09111f;
  --bg-soft: #101b30;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e2f0;
  --primary: #0f4c81;
  --primary-dark: #0b3459;
  --accent: #12b981;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f6f8fb;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.stack { display: grid; gap: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 17, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
}
.brand small { display: block; color: rgba(255,255,255,0.72); }
.nav__actions { display: flex; gap: 10px; }

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.18);
}
.btn:hover { filter: brightness(1.04); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.btn-whatsapp {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.18);
}
.btn-danger {
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #fecaca;
  box-shadow: none;
}
.btn-block { width: 100%; }

.hero {
  background:
    radial-gradient(circle at top left, rgba(18, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 76, 129, 0.22), transparent 35%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #fff;
  padding: 48px 0 36px;
}
.hero__grid {
  display: grid;
  gap: 24px;
}
.hero__eyebrow, .section-eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
}
.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}
.hero p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero__points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__points li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

.hero-card, .panel {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card h2, .panel h1, .panel h2, .panel h3 {
  margin: 0 0 8px;
}
.panel--sticky {
  align-self: start;
}

.section {
  padding: 28px 0;
}
.section--soft { background: var(--surface-2); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading h2 { margin: 6px 0 0; }
.muted {
  color: var(--muted);
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 8px; }
.field span, .field__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.field input, .field select, .field textarea, .toolbar input, .toolbar select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
}
.field textarea { padding: 14px; min-height: 120px; resize: vertical; }
.field--full { grid-column: 1 / -1; }
.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding-top: 24px;
}
.check-line input { width: 18px; height: 18px; }

.vehicle-grid {
  display: grid;
  gap: 16px;
}

.vehicle-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.vehicle-card__media {
  position: relative;
}
.vehicle-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.vehicle-card__body {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.vehicle-card__top h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.vehicle-card__top p {
  margin: 0;
  color: var(--muted);
}
.vehicle-price {
  display: grid;
  gap: 4px;
}
.vehicle-price strong {
  font-size: 1.4rem;
  color: var(--primary-dark);
}
.vehicle-price__old {
  text-decoration: line-through;
  color: #64748b;
}
.vehicle-specs, .dash-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vehicle-specs span, .dash-card__meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.vehicle-actions, .dash-card__actions, .actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.badge--featured {
  background: rgba(15, 76, 129, 0.92);
  color: #fff;
}
.badge--discount {
  left: auto;
  right: 12px;
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
}

.vehicle-detail {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.vehicle-detail.is-open { display: block; }
.vehicle-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.74);
}
.vehicle-detail__panel {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 24px));
  margin: 12px auto;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.vehicle-detail__close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 4;
  margin: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 28px;
  cursor: pointer;
}
.vehicle-detail__media img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}
.vehicle-detail__content {
  padding: 20px;
}
.detail-price {
  display: block;
  font-size: 1.7rem;
  margin: 12px 0;
  color: var(--primary-dark);
}
.detail-description {
  line-height: 1.7;
  color: var(--muted);
}
.detail-specs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.detail-specs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.optionals-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.optionals-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}
.toolbar {
  display: grid;
  gap: 10px;
}
.dash-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.dash-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.dash-card__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.dash-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.dash-card__header h3 {
  margin: 0 0 4px;
}
.dash-card__header p {
  margin: 0;
  color: var(--muted);
}
.dash-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-card__price strong {
  color: var(--primary-dark);
  font-size: 1.2rem;
}
.dash-card__price small {
  color: var(--muted);
  text-decoration: line-through;
}
.status-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.status-chip--active {
  background: #dcfce7;
  color: #166534;
}
.status-chip--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.cover-preview {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.cover-preview img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.checks-grid {
  display: grid;
  gap: 10px;
}
.check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.check-pill input {
  width: 18px;
  height: 18px;
}

.card-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.page-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.empty-state {
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #fff;
}

@media (min-width: 720px) {
  .hero__grid,
  .dashboard-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr 220px;
  }

  .checks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-detail__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .vehicle-detail__media img {
    height: 100%;
    max-height: none;
  }

  .dash-card {
    grid-template-columns: 280px 1fr;
  }
}
