:root {
  --bg: #f6f6f4;
  --text: #111111;
  --muted: #555555;
  --brand: #8b1d1d;
  --accent: #8b1d1d;
  --accent-2: #d4821f;
  --card: #ffffff;
  --line: #e5e2dc;
  --shadow: 0 14px 30px rgba(16, 16, 16, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 240px at 10% -10%, rgba(198, 32, 32, 0.12), transparent 60%),
    radial-gradient(800px 220px at 90% -20%, rgba(17, 17, 17, 0.08), transparent 60%),
    var(--bg);
}

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

.page { min-height: 100%; display: flex; flex-direction: column; }
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }
.pad { padding: 20px 0; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap { gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.muted { color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.h1 {
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  text-transform: uppercase;
  font-size: 46px;
  letter-spacing: 0.02em;
  margin: 0;
}
.h2 {
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 0;
}
.h3 {
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 0;
}
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 10px 0 0; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 64px; width: auto; }
.brand__name {
  font-family: "Montserrat", "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--brand);
}
.nav { display: flex; gap: 18px; align-items: center; text-transform: uppercase; font-size: 13px; letter-spacing: 0.14em; }
.nav a { color: var(--brand); font-weight: 700; }
.nav a.active { color: var(--accent); }
.nav__cta {
  padding: 12px 14px; border-radius: 12px;
  background: var(--accent);
  color: white !important;
}
.iconbtn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
}

.float-contact {
  position: fixed;
  right: 16px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}
body.admin-page .float-contact { display: none; }
.float-contact__btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float-shake-strong 3.2s ease-in-out infinite;
  gap: 8px;
  padding: 0 0;
}
.float-contact__btn--text {
  width: 52px;
  height: 52px;
  padding: 0;
  flex-direction: column;
  gap: 2px;
}
.float-contact__btn--text svg {
  width: 20px;
  height: 20px;
}
.float-contact__text {
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b63ff;
}
.float-contact__btn:nth-child(2) { animation-delay: 0.5s; }
.float-contact__btn:nth-child(3) { animation-delay: 1s; }
.float-contact__btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(140, 29, 29, 0.45);
  opacity: 0;
  transform: scale(0.9);
  animation: pulse-ring 3.2s ease-out infinite;
}
.float-contact__btn:nth-child(2)::after { animation-delay: 0.5s; }
.float-contact__btn:nth-child(3)::after { animation-delay: 1s; }
.float-contact__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #111;
  stroke-width: 1.7;
}
.float-contact__btn:nth-child(1) svg { stroke: #0f7a2c; }
.float-contact__btn:nth-child(2) svg { stroke: #0b63ff; }
.float-contact__btn:nth-child(2) svg circle { fill: #0b63ff; }
.float-contact__btn:nth-child(2) svg path { stroke: #fff; stroke-width: 2; }
.float-contact__btn:nth-child(3) svg { stroke: #111; }

@keyframes float-shake-strong {
  0%, 88%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  90% { transform: translate3d(-2px, -2px, 0) rotate(-4deg); }
  92% { transform: translate3d(2px, 1px, 0) rotate(4deg); }
  94% { transform: translate3d(-2px, 2px, 0) rotate(-3deg); }
  96% { transform: translate3d(2px, -1px, 0) rotate(3deg); }
}
@keyframes pulse-ring {
  0% { opacity: 0.6; transform: scale(0.9); }
  70% { opacity: 0; transform: scale(1.45); }
  100% { opacity: 0; transform: scale(1.45); }
}
.mobile-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(139, 29, 29, 0.35);
  color: var(--brand);
  font-weight: 700;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 16px; }

.hero {
  padding: 30px 0 20px;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.heroBox {
  background: linear-gradient(135deg, #ffffff 0%, #f0efe9 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.heroBox--glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(140%);
}
.heroFull {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 440px;
  background: #111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}
.heroInfo {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #faf7f1 100%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.heroInfo .kicker {
  color: #a33;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.heroInfo .h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0;
}
.heroInfo .lead {
  color: #4b4b4b;
}
.heroInfo .searchbar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eaded0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}
.heroInfo .btn {
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(185, 28, 28, 0.28);
}
.heroArt {
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a1a, #4a1b1b);
  color: #fff;
  padding: 18px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.heroArt__car {
  width: 100%; height: 150px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: 0.18em;
}

.heroSlider__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.heroSlider__track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.heroSlide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.heroSlide.is-active { opacity: 1; transform: scale(1); }
.heroSlide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.heroSlide__title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 18px;
}
.heroSlider__dots {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  right: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.heroDot {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.heroDot.is-active { background: #fff; }
.heroSlider__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.searchbar {
  display: flex; gap: 8px; margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.searchbar input {
  flex: 1; border: 0; outline: 0;
  background: transparent;
  padding: 8px 10px;
}

.btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}
.btn--ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #111;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.section { padding: 18px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.section__title { display: flex; gap: 10px; align-items: center; }
.section__title::before {
  content: "";
  width: 4px; height: 20px; background: var(--accent);
}

.gridCars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gridCars--wide { grid-template-columns: repeat(3, 1fr); }
.gridCars--showcase { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.carcard { overflow: hidden; position: relative; }
.carcard--showcase {
  border: 1px solid rgba(196, 22, 22, 0.25);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}
.carcard__link { color: inherit; display: block; }
.carcard__img {
  aspect-ratio: 16/10;
  background: #f4f2ee;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(196, 22, 22, 0.12);
}
.carcard__img img { width: 100%; height: 100%; object-fit: cover; }
.carcard__tag { position: absolute; top: 10px; right: 10px; }
.carcard__body { padding: 12px 4px 6px; }
.carcard__pricebar {
  background: #d10f0f;
  color: #ffd36b;
  font-weight: 900;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 14px;
  display: block;
  width: 100%;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.carcard__title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  margin: 12px 0 0;
}
.carcard__specs {
  margin-top: 12px;
  background: #f4f6fb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.carcard__spec {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 600;
  color: #1b1f2a;
}
.carcard__icon { width: 20px; height: 20px; color: #25306b; }
.carcard__actions { display: flex; gap: 10px; margin-top: 10px; }
.mini {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mini.primary { background: #111; color: #fff; border-color: #111; }
.mini.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  padding: 6px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.tag.sold { border-color: #d7b1b1; color: #b41b1b; }
.tag.available { border-color: #cfd5c7; color: #2d5a27; }
.tag.read { border-color: #c7d7e8; color: #1d4e89; }
.tag.contacted { border-color: #cfe7cf; color: #206a35; }
.tag.hidden { border-color: #e1e1e1; color: #777; }
.lead-note {
  display: inline-block;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.filters { position: sticky; top: 84px; }

.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  outline: none;
}
.field textarea { resize: vertical; }
.field__label { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.12em; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.drawer {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex; justify-content: flex-end;
  padding: 16px;
}
.drawer__panel { width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }

.detail { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 20px; align-items: start; }
.detail__side { display: flex; flex-direction: column; gap: 14px; }
.crumbs { margin-bottom: 10px; }
.crumbs a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.commitment {
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}
.commitment__head {
  background: #0aa34f;
  color: #0b1f12;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-transform: uppercase;
  font-size: 16px;
}
.commitment__list {
  list-style: none;
  margin: 0;
  padding: 12px 14px 14px 14px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.commitment__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px;
}
.commitment__list li::before {
  content: "★";
  color: #f5c542;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gallery__main { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery__main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery__main img { cursor: zoom-in; }
.gallery__thumbs { display: flex; gap: 10px; overflow: auto; padding: 0 4px 10px; }
.thumb {
  width: 140px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}
.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detail__summary {
  padding: 14px;
  border: 1px solid rgba(196, 22, 22, 0.25);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}
.detail__pricebar {
  background: #d10f0f;
  color: #ffd36b;
  font-weight: 900;
  font-size: 22px;
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.detail__price { font-size: 22px; }
.detail__priceNote {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail__priceNote::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #1b63ff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.detail__titleRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.detail__title { font-weight: 900; font-size: 22px; margin: 8px 0 0; line-height: 1.2; }
.detail__summary .kicker { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.detail__specbox {
  margin-top: 12px;
  background: #f4f6fb;
  border-radius: 14px;
  padding: 12px;
}
.detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detailSpec {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.detailSpec__icon { width: 20px; height: 20px; color: #25306b; }
.detailSpec__v { font-weight: 800; font-size: 14px; }
.detailSpec__k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.detail__specLink {
  display: inline-block;
  margin-top: 8px;
  color: #1b49b6;
  font-weight: 700;
  font-size: 12px;
}
.detail__contactGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail__contactBox {
  background: #f4f6fb;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.detail__contactLabel {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.detail__contactValue {
  display: inline-block;
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
  color: #c41414;
}
.detail__contactValue--zalo { color: #1b63ff; }
.detail__ctaRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn--gold {
  background: #f0d779;
  color: #4a2a00;
}
.detail__tools {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose { white-space: pre-line; line-height: 1.7; }

.footer { margin-top: auto; padding: 22px 0; border-top: 1px solid var(--line); background: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.footer__title { font-weight: 900; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer__link { display: block; color: #111; margin: 8px 0; }
.footer__bottom { margin-top: 12px; }

.admin { display: flex; flex-direction: column; gap: 18px; }
.admin .card { border-radius: 16px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06); }
.admin__hero {
  background: linear-gradient(135deg, #fff 0%, #f7f2ec 100%);
  border: 1px solid #efe4d8;
}
.admin__hero .kicker { color: var(--brand); }
.admin__hero .h2 { font-size: 26px; margin: 4px 0 0; }
.admin__meta { font-size: 13px; }
.admin__title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: #8b1d1d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin__title::before {
  content: "";
  width: 6px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
}
.admin .mini.primary { background: var(--accent); border-color: var(--accent); }
.admin .table th { background: #f9f5f1; }
.admin .table tr:nth-child(even) td { background: #fcfaf7; }
.admin .table td { font-size: 13px; }
.admin-car { display: flex; gap: 10px; align-items: center; }
.admin-car__thumb {
  width: 72px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f4ef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-car__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-car__thumb.is-empty {
  color: #999;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th { background: #fafafa; text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.table tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  z-index: 120;
}
.modal__panel { width: min(920px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }

.toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.toast.success { background: #0f7a2c; }
.toast.error { background: #b91c1c; }

.list-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.list-chips a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .gridCars--wide { grid-template-columns: repeat(2, 1fr); }
  .gridCars--showcase { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .filters { position: relative; top: auto; }
  .detail { grid-template-columns: 1fr; }
  .detail__specs { grid-template-columns: 1fr; }
  .detail__contactGrid { grid-template-columns: 1fr; }
  .detail__ctaRow { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .iconbtn { display: inline-flex; }
  .nav { display: none; }
  .mobile-nav { display: flex; }
  .iconbtn { display: none; }
}
@media (max-width: 640px) {
  .h1 { font-size: 34px; }
  .gridCars { grid-template-columns: repeat(2, 1fr); }
  .carcard__title { font-size: 16px; }
  .carcard__pricebar { font-size: 18px; padding: 8px 10px; }
  .carcard__specs { padding: 10px; }
  .carcard__spec { font-size: 12px; }
  .heroFull { min-height: 320px; }
  .heroInfo { margin-top: 10px; }
  .heroInfo { padding: 14px; }
  .heroInfo .kicker { font-size: 10px; letter-spacing: 0.16em; }
  .heroInfo .h1 { font-size: 24px; }
  .heroInfo .lead { font-size: 13px; }
  .heroInfo .searchbar { padding: 6px; }
  .heroInfo .searchbar input { padding: 6px 8px; font-size: 13px; }
  .heroInfo .btn { padding: 8px 10px; font-size: 11px; }
  .detail__pricebar { font-size: 18px; }
  .detail__price { font-size: 18px; }
  .detail__title { font-size: 20px; }
  .thumb { width: 110px; }
  .commitment { max-width: 100%; }
  .modal__panel { width: 100%; max-height: 90vh; }
  .modal { align-items: flex-end; }
  .modal__panel { border-radius: 16px 16px 0 0; }
  .modal__panel .grid2, .modal__panel .grid3 { grid-template-columns: 1fr; }
  .modal__panel .row.gap { flex-wrap: wrap; }
  .modal__panel input[type="file"] { width: 100%; }
}
@media (max-width: 860px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
    background: #fff;
  }
  .table td {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
  }
  .table td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
  }
  .admin-car__thumb { width: 120px; height: 80px; }
  .admin .table td[data-label="Xe"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin .table td[data-label="Xe"]::before { margin-bottom: 2px; }
  .admin .table td[data-label="Xe"] .admin-car {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
    width: 100%;
  }
  .admin .table td[data-label="Xe"] .admin-car__thumb { grid-column: 2; justify-self: end; }
  .admin .table td[data-label="Xe"] .admin-car > div:last-child { grid-column: 1; }
  .admin .table td[data-label="Hành động"] {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .admin .table td[data-label="Hành động"] .row.gap { flex-wrap: wrap; }
  .admin .table td[data-label="Đời"],
  .admin .table td[data-label="Giá"],
  .admin .table td[data-label="Trạng thái"] {
    padding: 6px 10px;
  }
  .admin .table td[data-label="Đời"],
  .admin .table td[data-label="Giá"] {
    border-bottom: 1px dashed var(--line);
  }
  .table td.mobile-hide { display: none; }
  .mobile-only { display: inline-flex; }
}
@media (min-width: 861px) {
  .mobile-only { display: none; }
}
