:root {
  --bg: #0c0d0e;
  --bg-soft: #161412;
  --card: rgba(255, 250, 239, 0.94);
  --card-dark: rgba(22, 22, 22, 0.82);
  --ink: #161616;
  --ink-light: #fff9ef;
  --muted: #736e67;
  --muted-light: #c7bfb4;
  --line: rgba(29, 25, 21, 0.14);
  --line-light: rgba(255, 249, 239, 0.16);
  --signal: #b51216;
  --signal-deep: #6e0709;
  --gold: #d9a441;
  --cream: #f6efe2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 7%, rgba(181, 18, 22, 0.38), transparent 31rem),
    radial-gradient(circle at 88% 12%, rgba(217, 164, 65, 0.22), transparent 24rem),
    linear-gradient(135deg, #0c0d0e 0%, #161412 44%, #f1e8d8 44.2%, #f8f2e8 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 6vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 13, 0.72);
  backdrop-filter: blur(18px);
}

.logo {
  position: relative;
  display: inline-flex;
  gap: 0.12rem;
  align-items: baseline;
  font-family: 'Saira Condensed', sans-serif;
  color: var(--ink-light);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
  text-decoration: none;
}

.image-logo {
  align-items: center;
  min-height: 42px;
}

.image-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: min(230px, 52vw);
  object-fit: contain;
}

.logo strong {
  color: var(--gold);
}

.wordmark::before {
  content: '';
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--signal);
  border-right-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(181, 18, 22, 0.14);
}

.logo::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--gold));
}

.image-logo::after,
.image-logo::before {
  content: none;
}

nav {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

nav a {
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

nav a.admin-nav-link {
  border-color: rgba(181, 18, 22, 0.72);
  background: rgba(181, 18, 22, 0.2);
  color: #ffefef;
}

nav a.admin-nav-link:hover {
  background: linear-gradient(135deg, var(--signal), var(--signal-deep));
  border-color: transparent;
  color: #fff;
}

.page {
  width: min(1180px, 92vw);
  margin: 2.1rem auto 4.5rem;
  animation: reveal 420ms ease both;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: var(--ink-light);
  border: 1px solid var(--line-light);
  border-radius: 34px;
  padding: clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(110deg, rgba(10, 10, 11, 0.96), rgba(19, 16, 15, 0.9) 48%, rgba(109, 7, 9, 0.78)),
    radial-gradient(circle at 74% 22%, rgba(217, 164, 65, 0.24), transparent 19rem);
  box-shadow: var(--shadow);
}

.hero::before {
  content: 'DNA';
  position: absolute;
  right: -0.7rem;
  top: -2.5rem;
  color: rgba(255, 255, 255, 0.035);
  font-family: 'Saira Condensed', sans-serif;
  font-size: clamp(9rem, 24vw, 22rem);
  font-weight: 800;
  line-height: 0.78;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -6rem;
  bottom: -7rem;
  width: 27rem;
  height: 27rem;
  border: 1.2rem solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(217, 164, 65, 0.22);
}

.hero > div {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero.compact {
  max-width: 760px;
  min-height: auto;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12rem;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: var(--signal);
}

h1, h2, h3, h4 {
  font-family: 'Saira Condensed', sans-serif;
  letter-spacing: 0.02rem;
  line-height: 0.95;
  margin: 0.35rem 0 0.85rem;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.55rem;
}

p {
  line-height: 1.7;
}

a {
  color: var(--signal);
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted-light);
  font-size: 1.05rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.45rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.hero-stats span,
.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.46rem 0.8rem;
  color: var(--ink-light);
  font-size: 0.82rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  color: white;
  background: linear-gradient(135deg, var(--signal), var(--signal-deep));
  box-shadow: 0 12px 26px rgba(181, 18, 22, 0.25);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(181, 18, 22, 0.32);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.ghost.light {
  color: var(--ink-light);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.small {
  min-height: 34px;
  padding: 0.42rem 0.78rem;
  font-size: 0.82rem;
}

.cards-section {
  margin-top: 2rem;
}

.cards-section > h2,
.panel > h2,
.panel > h1 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cards-section > h2::before,
.panel > h2::before,
.panel > h1::before {
  content: '';
  display: inline-block;
  width: 0.42rem;
  height: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(var(--signal), var(--gold));
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.cars-grid {
  grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
}

.card,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 17, 12, 0.11);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 44px rgba(31, 24, 17, 0.1);
}

.card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(31, 24, 17, 0.17);
}

.card-image {
  height: 210px;
  background:
    linear-gradient(135deg, rgba(181, 18, 22, 0.22), rgba(12, 13, 14, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 8px, transparent 8px 16px);
}

.card-image img,
.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.66);
  font-family: 'Saira Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
}

.placeholder.large {
  min-height: 330px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 22%, rgba(217, 164, 65, 0.18), transparent 12rem),
    linear-gradient(135deg, #161616, #2a0d0e);
}

.card-body {
  padding: 1.15rem;
}

.card-body h3 {
  min-height: 2.75rem;
}

.dossier-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.72rem 0 0.85rem;
}

.dossier-strip span {
  border: 1px solid rgba(181, 18, 22, 0.14);
  border-radius: 999px;
  background: rgba(181, 18, 22, 0.07);
  color: var(--signal-deep);
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-dossier {
  margin-bottom: 1.1rem;
}

.meta {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-active {
  background: #dff5e7;
  color: #0f6f3c;
}

.status-reserved {
  background: #fff0d9;
  color: #8b4b00;
}

.status-inactive {
  background: #ececec;
  color: #555;
}

.price {
  margin: 0.7rem 0 1rem;
  color: var(--signal-deep);
  font-family: 'Saira Condensed', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
}

.detail-top > div:first-child,
.detail-gallery,
.panel {
  padding: 1.25rem;
}

.detail-top > div:first-child {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 44px rgba(31, 24, 17, 0.1);
}

.detail-gallery {
  min-height: 360px;
  border: 1px solid rgba(22, 17, 12, 0.11);
  border-radius: var(--radius);
  background: var(--card-dark);
  box-shadow: var(--shadow);
}

.lead {
  font-size: 1.04rem;
  color: #4f4a43;
}

.two-col {
  grid-template-columns: 1.15fr 0.85fr;
}

.timeline-item {
  position: relative;
  padding: 0.85rem 0 0.85rem 1rem;
  margin-bottom: 0.3rem;
  border-left: 2px solid rgba(181, 18, 22, 0.2);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.36rem;
  top: 1.05rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(181, 18, 22, 0.12);
}

.stack {
  display: grid;
  gap: 0.7rem;
}

.stack.slim {
  margin-top: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(22, 17, 12, 0.13);
  border-radius: 16px;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(181, 18, 22, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(181, 18, 22, 0.1);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.listing-form {
  gap: 0.95rem;
}

.form-section {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(22, 17, 12, 0.11);
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.38);
}

.form-section legend {
  padding: 0 0.35rem;
  color: var(--signal-deep);
  font-family: 'Saira Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-panel {
  display: grid;
  gap: 0.5rem;
  border: 1px dashed rgba(181, 18, 22, 0.32);
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.file-panel.compact {
  padding: 0.78rem;
}

.file-panel span {
  color: var(--signal-deep);
  font-weight: 900;
}

.file-panel small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.message {
  margin: 0 0 0.85rem;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-weight: 800;
}

.message.error {
  border: 1px solid rgba(181, 18, 22, 0.24);
  background: rgba(181, 18, 22, 0.08);
  color: var(--signal-deep);
}

.message.success {
  border: 1px solid rgba(15, 111, 60, 0.2);
  background: rgba(15, 111, 60, 0.09);
  color: #0f6f3c;
}

.checkbox-row {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
  padding: 0.55rem 0;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.22rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.analytics-panel {
  margin-bottom: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  min-height: 112px;
  border: 1px solid rgba(181, 18, 22, 0.12);
  border-radius: 18px;
  padding: 0.95rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 229, 211, 0.72)),
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.16), transparent 8rem);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 0.34rem;
  color: var(--signal-deep);
  font-family: 'Saira Condensed', sans-serif;
  font-size: 2.35rem;
  line-height: 1;
}

.analytics-grid {
  align-items: start;
}

.analytics-table-wrap .admin-table {
  min-width: 520px;
}

.admin-car {
  position: relative;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(22, 17, 12, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
}

.admin-car-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chip {
  border-color: rgba(22, 17, 12, 0.12);
  background: #efe5d3;
  color: var(--ink);
}

.table-wrap {
  border: 1px solid rgba(22, 17, 12, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(22, 17, 12, 0.09);
  text-align: left;
  padding: 0.72rem;
  vertical-align: top;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.empty-state {
  margin-bottom: 1rem;
  padding: 1.2rem;
  border: 1px dashed rgba(181, 18, 22, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.order-summary {
  max-width: 760px;
  margin: 0 auto;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 10% 4%, rgba(181, 18, 22, 0.32), transparent 20rem),
      linear-gradient(180deg, #0c0d0e 0%, #171312 32%, #f8f2e8 32.2%, #f8f2e8 100%);
  }

  .topbar {
    padding: 0.75rem 4vw;
  }

  nav a {
    padding: 0.45rem 0.62rem;
    font-size: 0.76rem;
  }

  .page {
    width: min(1100px, 94vw);
    margin-top: 1rem;
  }

  .hero {
    min-height: 430px;
    border-radius: 24px;
  }

  .detail-top,
  .admin-grid,
  .two-col,
  .grid.two,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-car-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .hero-actions,
  .inline-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .panel,
  .detail-top > div:first-child,
  .detail-gallery {
    padding: 1rem;
  }

  input,
  textarea,
  select {
    min-height: 46px;
    font-size: 1rem;
  }

  .form-section,
  .file-panel {
    border-radius: 14px;
    padding: 0.8rem;
  }
}
