:root {
  --navy: #061a3d;
  --navy-2: #0d2a5c;
  --gold: #d9aa3d;
  --gold-2: #f4cf72;
  --black: #080a0f;
  --white: #ffffff;
  --ink: #172033;
  --muted: #657086;
  --line: #d9deea;
  --surface: #f6f8fc;
  --success: #147a4b;
  --danger: #9d2f2f;
  --shadow: 0 20px 60px rgba(6, 26, 61, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
}

.brand-mark svg {
  width: 30px;
  fill: currentColor;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 750;
}

.desktop-nav a:hover {
  color: #8a641c;
}

.whatsapp-link,
.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  border: 0;
  font-size: 0.93rem;
  font-weight: 800;
}

.whatsapp-link {
  padding: 0 18px;
  color: var(--white);
  background: var(--black);
}

.whatsapp-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--black);
  font-size: 0.62rem;
  font-weight: 900;
}

.primary-button {
  padding: 0 18px;
  color: var(--black);
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(217, 170, 61, 0.28);
}

.secondary-button {
  width: 100%;
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
}

.text-button {
  padding: 0 8px;
  color: var(--navy);
  background: transparent;
}

.primary-button svg,
.chat-compose button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

main {
  overflow: hidden;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  min-height: 580px;
  gap: 48px;
  padding: 56px clamp(20px, 5vw, 82px) 24px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 12, 29, 0.9) 0%, rgba(6, 26, 61, 0.67) 36%, rgba(6, 26, 61, 0.16) 61%, rgba(3, 7, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(4, 12, 28, 0.14) 0%, rgba(4, 12, 28, 0.16) 56%, rgba(4, 12, 28, 0.92) 100%),
    url("assets/dmv-hero-triptych.png") center / cover no-repeat;
  isolation: isolate;
}

.hero-section::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.94));
}

.hero-copy,
.hero-scene {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

.private-seller-note {
  padding: 12px 14px;
  color: var(--gold-2) !important;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.hero-scene {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}

.hero-scene::before {
  position: absolute;
  right: -9%;
  bottom: 20px;
  left: -5%;
  height: 154px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(244, 207, 114, 0.68) 10% 18%, transparent 18% 32%, rgba(244, 207, 114, 0.68) 32% 40%, transparent 40% 54%, rgba(244, 207, 114, 0.68) 54% 62%, transparent 62% 100%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.38), rgba(6, 9, 15, 0.92));
  border-top: 2px solid rgba(244, 207, 114, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: perspective(640px) rotateX(58deg) skewX(-15deg);
  transform-origin: bottom;
  z-index: -1;
}

.hero-brand-seal {
  position: absolute;
  top: 26px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--gold-2);
  background: rgba(5, 7, 12, 0.74);
  border: 1px solid rgba(244, 207, 114, 0.76);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.hero-brand-seal svg {
  width: 42px;
  height: 34px;
  fill: currentColor;
}

.hero-brand-seal span {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-car {
  position: absolute;
  right: -48px;
  bottom: 28px;
  width: min(720px, 114%);
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.52));
}

.hero-car svg {
  width: 100%;
  overflow: visible;
}

.for-sale-sign {
  position: absolute;
  top: 92px;
  left: 50%;
  z-index: 3;
  min-width: 158px;
  padding: 13px 18px 12px;
  color: var(--black);
  background: var(--gold-2);
  border: 4px solid var(--white);
  border-radius: 6px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.34);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-18%) rotate(-8deg);
}

.for-sale-sign::before,
.for-sale-sign::after {
  position: absolute;
  top: -58px;
  width: 3px;
  height: 58px;
  content: "";
  background: rgba(255, 255, 255, 0.74);
}

.for-sale-sign::before {
  left: 28px;
  transform: rotate(-8deg);
}

.for-sale-sign::after {
  right: 28px;
  transform: rotate(8deg);
}

.model-car-body {
  fill: var(--gold);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 5;
}

.model-car-hood,
.model-car-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-linecap: round;
  stroke-width: 7;
}

.model-car-glass {
  fill: #0e2d62;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 6;
}

.model-car-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.34);
  stroke-linecap: round;
  stroke-width: 24;
}

.model-wheel {
  fill: #07090d;
  stroke: #ffffff;
  stroke-width: 13;
}

.model-hub {
  fill: var(--gold-2);
}

.model-headlight {
  fill: #fff6be;
  opacity: 0.96;
}

.search-panel {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 40px));
  margin: -24px auto 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel form {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 170, 61, 0.2);
}

.campus-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.campus-quicklinks button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--navy);
  background: #edf2fb;
  border: 1px solid #dce5f4;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.api-status {
  margin: 12px 0 0;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 800;
}

.api-status.offline {
  color: var(--danger);
}

.inventory-section,
.campus-section,
.ai-section {
  padding: 72px clamp(20px, 5vw, 82px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2,
.vehicle-summary h2,
.chat-header h2,
.admin-panel h2,
.campus-section h2,
.ai-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.vehicle-summary p,
.chat-header p,
.campus-section p,
.ai-section p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.car-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.car-card:not(.sold):hover,
.car-card.active {
  transform: translateY(-3px);
  border-color: rgba(217, 170, 61, 0.8);
  box-shadow: var(--shadow);
}

.car-card.sold {
  border-color: #c9cfdb;
}

.car-card.sold .car-image,
.car-card.sold .card-body {
  filter: grayscale(0.65);
}

.car-image,
.photo-stage {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  min-height: 220px;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #111827 100%);
}

.car-image svg,
.photo-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vehicle-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-ribbon {
  position: absolute;
  top: 30px;
  left: -62px;
  z-index: 3;
  width: 260px;
  padding: 10px 0;
  color: var(--white);
  background: #b00020;
  border: 3px solid var(--white);
  box-shadow: 0 14px 30px rgba(8, 10, 15, 0.32);
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-36deg);
}

.detail-sold-ribbon {
  top: 48px;
  left: -72px;
  width: 320px;
  padding: 14px 0;
  font-size: 1.9rem;
}

.card-body {
  padding: 18px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
}

.card-title h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.card-title strong {
  color: var(--black);
  font-size: 1.05rem;
  white-space: nowrap;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-meta span,
.card-tags span {
  padding: 5px 8px;
  background: var(--surface);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-tags .sold-tag {
  color: var(--white);
  background: #b00020;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.card-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-weight: 850;
}

.card-actions button:disabled {
  cursor: not-allowed;
  color: var(--white);
  background: #7f1d1d;
  border-color: #7f1d1d;
  opacity: 1;
}

.card-actions button:first-child {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 0.75fr) minmax(300px, 0.65fr);
  gap: 22px;
  padding: 74px clamp(20px, 5vw, 82px);
  background: var(--surface);
}

.vehicle-media,
.vehicle-summary,
.action-panel,
.chat-window,
.admin-panel,
.ai-dashboard article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vehicle-media {
  overflow: hidden;
}

.photo-stage {
  min-height: 390px;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px;
}

.thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 68px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #dde4f0;
}

.thumb.active {
  border-color: var(--gold);
}

.thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vehicle-summary,
.action-panel {
  padding: 22px;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.title-row strong {
  color: var(--black);
  font-size: 1.55rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.spec {
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec strong {
  color: var(--navy);
}

.vehicle-summary h3 {
  margin: 24px 0 10px;
  color: var(--navy);
}

.vehicle-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.inspection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.disclosure-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.disclosure-item {
  padding: 10px;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

.disclosure-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.disclosure-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.inspection-list span {
  padding: 7px 10px;
  color: var(--navy);
  background: #edf2fb;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.listing-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  background: var(--surface);
  border-radius: var(--radius);
}

.tab-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  font-weight: 850;
}

.tab-button.active {
  color: var(--black);
  background: var(--gold);
}

.action-panel form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hidden {
  display: none;
}

.spam-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.full-width {
  width: 100%;
}

.confirmation {
  min-height: 22px;
  margin: 0;
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 800;
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  padding: 74px clamp(20px, 5vw, 82px);
  background: var(--navy);
}

.chat-window,
.admin-panel {
  padding: 20px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 900;
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.messages {
  display: grid;
  gap: 12px;
  min-height: 310px;
  align-content: end;
  padding: 22px 0;
}

.message {
  max-width: 76%;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
}

.message.admin {
  justify-self: start;
  border-top-left-radius: 2px;
}

.message.buyer {
  justify-self: end;
  color: var(--black);
  background: var(--gold-2);
  border-top-right-radius: 2px;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
}

.chat-compose button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--black);
  background: var(--gold);
}

.conversation-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.conversation {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.conversation strong {
  display: block;
  color: var(--navy);
}

.conversation span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.conversation.closed {
  border-color: rgba(157, 47, 47, 0.32);
  background: #fff6f6;
}

.admin-dashboard-link {
  margin-top: 10px;
}

.campus-section,
.trust-section,
.reviews-section {
  background: var(--white);
  padding: 72px clamp(20px, 5vw, 82px);
}

.campus-grid,
.trust-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.campus-grid article,
.trust-grid article,
.review-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.campus-grid strong,
.campus-grid span,
.trust-grid strong,
.trust-grid span,
.review-card strong,
.review-card span {
  display: block;
}

.campus-grid strong,
.trust-grid strong,
.review-card strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.campus-grid span,
.campus-grid a,
.trust-grid span,
.review-card p,
.review-card span {
  margin-top: 6px;
  color: var(--muted);
}

.campus-grid a {
  display: inline-block;
  color: var(--navy);
  font-weight: 850;
}

.stars {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}

.shortlist-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shortlist-panel strong,
.shortlist-panel span,
.shortlist-panel button {
  display: block;
}

.shortlist-panel button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  color: var(--navy);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.campus-hero {
  min-height: 420px;
  padding: 80px clamp(20px, 5vw, 82px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--black) 100%);
}

.campus-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
}

.campus-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
}

.ai-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1.3fr);
  gap: 30px;
  align-items: start;
  color: var(--white);
  background: linear-gradient(135deg, #05070c 0%, var(--navy) 100%);
}

.ai-section h2,
.ai-section p {
  color: var(--white);
}

.ai-section p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-dashboard article {
  min-height: 150px;
  padding: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 207, 114, 0.28);
}

.ai-dashboard span,
.ai-dashboard small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.ai-dashboard strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--gold-2);
  font-size: 1.45rem;
  line-height: 1.12;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 82px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--black);
}

.site-footer .brand strong,
.site-footer h3 {
  color: var(--white);
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 8px 0 0;
}

.admin-body {
  background: var(--surface);
}

.admin-main {
  overflow: visible;
}

.login-panel {
  display: grid;
  min-height: calc(100vh - 74px);
  place-items: center;
  padding: 42px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--black) 100%);
}

.login-panel .admin-card {
  width: min(460px, 100%);
}

.login-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: 56px clamp(20px, 5vw, 82px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--black) 100%);
}

.admin-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.admin-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: end;
}

.admin-metrics article,
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-metrics article {
  padding: 18px;
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 2rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  gap: 22px;
  padding: 34px clamp(20px, 5vw, 82px);
}

.conversation-admin {
  align-items: start;
  padding-top: 0;
}

.admin-card {
  padding: 22px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row strong {
  color: var(--navy);
}

.admin-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.danger-button,
.restore-button {
  min-height: 38px;
  min-width: max-content;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 850;
}

.danger-button {
  background: var(--danger);
}

.restore-button {
  background: var(--success);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.photo-manager {
  display: grid;
  gap: 8px;
}

.photo-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-preview {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  height: 64px;
  overflow: hidden;
  background: #e7edf6;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-label-editor {
  flex: 1 1 220px;
  min-width: 180px;
}

.photo-manager-row button,
.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.read-row {
  opacity: 0.65;
}

.admin-thread-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-thread-actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.admin-thread-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.admin-thread-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-thread {
  min-height: 360px;
}

.admin-reply {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .search-panel form,
  .detail-section,
  .admin-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel .primary-button,
  .action-panel {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-link {
    width: 100%;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
    background-position: center top;
  }

  .hero-scene {
    min-height: 330px;
  }

  .hero-brand-seal {
    top: 4px;
    right: 0;
  }

  .hero-car {
    right: 50%;
    bottom: 8px;
    width: min(720px, 118vw);
    transform: translateX(50%);
  }

  .search-panel form,
  .inventory-grid,
  .detail-section,
  .chat-section,
  .campus-grid,
  .trust-grid,
  .reviews-grid,
  .ai-section,
  .ai-dashboard,
  .site-footer,
  .admin-hero,
  .admin-layout,
  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .chat-header,
  .title-row,
  .admin-thread-header,
  .admin-row {
    align-items: start;
    flex-direction: column;
  }

  .photo-stage {
    min-height: 300px;
  }

  .thumbnail-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-scene {
    min-height: 275px;
  }

  .hero-brand-seal {
    padding: 9px 10px;
  }

  .hero-brand-seal svg {
    width: 34px;
    height: 28px;
  }

  .hero-brand-seal span {
    font-size: 0.72rem;
  }

  .for-sale-sign {
    top: 74px;
    min-width: 118px;
    padding: 10px 12px;
  }

  .search-panel {
    width: calc(100% - 24px);
    padding: 14px;
  }

  .form-grid,
  .card-actions,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 92%;
  }
}
