:root {
  --eh-red: #ef292f;
  --eh-red-dark: #b51218;
  --eh-ink: #08090b;
  --eh-panel: #111216;
  --eh-panel-soft: #17181d;
  --eh-line: #2b2d33;
  --eh-muted: #9a9ca5;
  --eh-white: #f7f7f8;
}

.eh-hidden {
  display: none !important;
}

.eh-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 10px;
  border: 1px solid #303139;
  border-radius: 8px;
  background: #121318;
  flex: 0 0 auto;
}

.eh-lang-switch button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #8f9199;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.eh-lang-switch button[aria-pressed="true"] {
  color: white;
  background: var(--eh-red);
}

.eh-lang-mobile {
  display: none;
}

.eh-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: #20c66a;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.eh-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 38px rgba(32, 198, 106, .28);
}

.eh-whatsapp svg {
  width: 29px;
  height: 29px;
}

.eh-vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
}

.eh-btn,
.eh-btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--eh-red);
  border-radius: 7px;
  font: 700 14px/1.1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.eh-btn {
  color: white;
  background: var(--eh-red);
}

.eh-btn-secondary {
  color: white;
  background: transparent;
}

.eh-btn:hover,
.eh-btn-secondary:hover {
  color: white;
  background: var(--eh-red-dark);
  transform: translateY(-1px);
}

.eh-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  animation: eh-fade .18s ease both;
}

.eh-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 34px;
  border: 1px solid #34363d;
  border-radius: 14px;
  color: var(--eh-white);
  background: var(--eh-panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
  animation: eh-rise .24s ease both;
}

.eh-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--eh-line);
  border-radius: 50%;
  color: white;
  background: #1b1c21;
  cursor: pointer;
}

.eh-eyebrow {
  margin: 0 0 8px;
  color: var(--eh-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eh-title {
  margin: 0;
  color: white;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.eh-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--eh-muted);
  font-size: 16px;
  line-height: 1.7;
}

.eh-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.eh-field {
  display: grid;
  gap: 8px;
}

.eh-field-full {
  grid-column: 1 / -1;
}

.eh-field label {
  color: #d7d7db;
  font-size: 13px;
  font-weight: 700;
}

.eh-field input,
.eh-field select,
.eh-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #34363d;
  border-radius: 7px;
  outline: none;
  color: white;
  background: #0c0d10;
  font: 500 14px/1.4 Inter, system-ui, sans-serif;
}

.eh-field textarea {
  min-height: 112px;
  resize: vertical;
}

.eh-field input:focus,
.eh-field select:focus,
.eh-field textarea:focus {
  border-color: var(--eh-red);
  box-shadow: 0 0 0 3px rgba(239, 41, 47, .11);
}

.eh-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.eh-form-status {
  min-height: 20px;
  color: #9da0a8;
  font-size: 13px;
}

.eh-form-status.is-success {
  color: #55d98b;
}

.eh-form-status.is-error {
  color: #ff7377;
}

.eh-booking-page {
  min-height: 70vh;
  padding: 86px max(24px, calc((100vw - 1216px) / 2)) 110px;
  color: var(--eh-white);
  background:
    radial-gradient(circle at 85% 8%, rgba(239, 41, 47, .11), transparent 28%),
    var(--eh-ink);
}

.eh-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(560px, 1.15fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.eh-booking-copy {
  position: sticky;
  top: 150px;
}

.eh-booking-points {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--eh-line);
}

.eh-booking-point {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--eh-line);
  color: #d8d8dc;
  font-size: 14px;
}

.eh-booking-point span:first-child {
  color: var(--eh-red);
  font-weight: 900;
}

.eh-booking-form {
  padding: 30px;
  border: 1px solid var(--eh-line);
  border-radius: 14px;
  background: rgba(17, 18, 22, .92);
}

.eh-stock-section {
  width: min(1216px, calc(100% - 32px));
  margin: 54px auto 12px;
  padding-top: 34px;
  border-top: 1px solid var(--eh-line);
}

.eh-stock-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eh-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.eh-stock-card {
  overflow: hidden;
  border: 1px solid var(--eh-line);
  border-radius: 12px;
  color: white;
  background: #101115;
  transition: transform .25s ease, border-color .25s ease;
}

.eh-stock-card:hover {
  transform: translateY(-4px);
  border-color: #5b2a2d;
}

.eh-stock-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #18191e;
}

.eh-stock-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.eh-stock-card:hover .eh-stock-image img {
  transform: scale(1.035);
}

.eh-stock-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  border-radius: 5px;
  color: white;
  background: rgba(0, 0, 0, .72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.eh-stock-body {
  padding: 19px;
}

.eh-stock-price {
  color: var(--eh-red);
  font-size: 23px;
  font-weight: 900;
}

.eh-stock-title {
  margin: 7px 0 12px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
}

.eh-stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  color: var(--eh-muted);
  font-size: 12px;
}

.eh-stock-description {
  min-height: 44px;
  margin: 15px 0 18px;
  color: #b5b7be;
  font-size: 13px;
  line-height: 1.6;
}

.eh-dashboard-page {
  min-height: 78vh;
  padding: 38px max(22px, calc((100vw - 1380px) / 2)) 80px;
  color: white;
  background: #08090b;
}

.eh-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--eh-line);
}

.eh-dashboard-tabs {
  display: flex;
  gap: 2px;
  margin: 24px 0;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--eh-line);
}

.eh-dashboard-tabs button {
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #92949c;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.eh-dashboard-tabs button.is-active {
  color: white;
  border-color: var(--eh-red);
}

.eh-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 22px 0 28px;
}

.eh-kpi {
  min-width: 150px;
}

.eh-kpi strong {
  display: block;
  color: white;
  font: 800 36px/1 "Barlow Condensed", Impact, sans-serif;
}

.eh-kpi span {
  color: var(--eh-muted);
  font-size: 12px;
}

.eh-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--eh-line);
}

.eh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.eh-table th,
.eh-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #22242a;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.eh-table th {
  color: #7f818a;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.eh-table select,
.eh-table input {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #34363d;
  border-radius: 5px;
  color: white;
  background: #131419;
}

.eh-empty {
  padding: 54px 0;
  color: var(--eh-muted);
  text-align: center;
}

.eh-admin-login {
  width: min(480px, 100%);
  margin: 70px auto;
  padding: 34px;
  border: 1px solid var(--eh-line);
  border-radius: 14px;
  background: var(--eh-panel);
}

.eh-offline-note {
  margin-top: 14px;
  color: #747680;
  font-size: 12px;
  line-height: 1.6;
}

.eh-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(520px, calc(100% - 32px));
  padding: 13px 17px;
  border: 1px solid #34363d;
  border-radius: 8px;
  color: white;
  background: #17181d;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .45);
  transform: translateX(-50%);
  animation: eh-rise .2s ease both;
}

@keyframes eh-fade {
  from { opacity: 0; }
}

@keyframes eh-rise {
  from { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 1060px) {
  .eh-booking-layout {
    grid-template-columns: 1fr;
  }

  .eh-booking-copy {
    position: static;
  }

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

@media (max-width: 760px) {
  .eh-lang-desktop {
    display: none !important;
  }

  .eh-lang-mobile {
    display: inline-flex;
  }

  .eh-lang-switch {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .eh-lang-switch button {
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
  }

  .eh-whatsapp {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .eh-modal-overlay {
    align-items: end;
    padding: 0;
  }

  .eh-modal {
    width: 100%;
    max-height: 92vh;
    padding: 28px 18px 24px;
    border-radius: 16px 16px 0 0;
  }

  .eh-form {
    grid-template-columns: 1fr;
  }

  .eh-field-full,
  .eh-form-actions {
    grid-column: auto;
  }

  .eh-booking-page {
    padding: 58px 16px 78px;
  }

  .eh-booking-form {
    padding: 20px 16px;
  }

  .eh-stock-head {
    align-items: start;
    flex-direction: column;
  }

  .eh-stock-grid {
    grid-template-columns: 1fr;
  }

  .eh-dashboard-page {
    padding: 28px 16px 64px;
  }

  .eh-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .eh-dashboard-tabs {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
