:root {
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.24);

  /* Brand */
  --gold-primary: #d4af37;
  --gold-soft: #c9a24d;
  --gold-hover: #e6c76a;

  /* Typography */
  --font:
    "Rubik", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Light theme defaults */
  --bg: #f7f7f8;
  --bg-elev: #ffffff;
  --bg-section: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: rgba(15, 23, 42, 0.12);

  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.12);

  --focus: rgba(212, 175, 55, 0.35);

  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

html[data-theme="dark"],
html[data-theme="system"][data-resolved-theme="dark"] {
  --bg: #0b0b0b;
  --bg-elev: #101010;
  --bg-section: #121212;

  --text: #ffffff;
  --text-muted: #cfcfcf;
  --text-soft: #9a9a9a;

  --border: rgba(255, 255, 255, 0.12);
  --card: #141414;
  --card-border: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.55);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  background: var(--bg);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------
Layout helpers
------------------------- */
.container {
  width: 100%;
  max-width: min(120rem, 100%);
  padding: 0 clamp(1.2rem, 4vw, 3.2rem);
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}
.section-full {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section {
  margin-bottom: 9.6rem;
}

/* -------------------------
Header / Nav 
------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 9rem;
  padding: 0 clamp(1.6rem, 3vw, 3.2rem);
  min-width: 0;

  background: color-mix(in srgb, var(--bg-elev) 76%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo {
  width: clamp(6rem, 10vw, 8.6rem);
  max-height: 8.6rem;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.user-greeting {
  margin-left: 16px;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
  max-width: 22rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  margin-left: auto;
  min-width: 0;
}

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2vw, 3.2rem);
  padding: 0;
  margin: 0;
}
.nav-links:link,
.nav-links:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2vw, 2rem);
  opacity: 0.92;
}

.nav-links:hover,
.nav-links:active {
  color: var(--gold-soft);
}

.nav-btn:link,
.nav-btn:visited {
  padding: 1.1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--gold-soft) 20%, transparent);
  color: var(--text);
}

.nav-btn {
  padding: 1.1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--gold-soft) 20%, transparent);
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2vw, 2rem);
  line-height: 1;
  cursor: pointer;
}

.nav-btn:hover,
.nav-btn:active {
  background: color-mix(in srgb, var(--gold-soft) 28%, transparent);
  border-color: color-mix(in srgb, var(--gold-soft) 40%, var(--border));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* -------------------------
/* THEME SWITCH
-------------------------- */

.theme-toggle {
  position: relative;
  z-index: 1201;
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-menu {
  position: absolute;
  z-index: 1200;
  top: 6.4rem;
  right: 3.2rem;
  width: 18rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.6rem;
  display: none;
}
.theme-menu.is-open {
  display: grid;
  gap: 0.4rem;
}
.theme-item {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
}
.theme-item:hover {
  background: color-mix(in srgb, var(--gold-soft) 18%, transparent);
  border-color: color-mix(in srgb, var(--gold-soft) 32%, transparent);
}

/* Search icon */
.btn-search {
  font-size: 3rem;
  color: var(--gold-soft);
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-search:hover {
  transform: scale(1.06);
  color: var(--gold-hover);
}
.btn-search {
  display: none;
}

.btn-mobile-nav {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--gold-soft);
  margin: 6px 0;
  transition: all 0.3s ease;
}
/* -------------------------
Hero
------------------------- */

.section-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 6rem;
}

.section-hero.hero-video-fallback {
  background: url("video/bg-IOS.mp4") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  z-index: 0;
  pointer-events: none;
  background: #000;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

.section-hero.hero-video-fallback .hero-video {
  opacity: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72));
  z-index: 1;
}
.hero {
  max-width: 120rem;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-text-box {
  display: flex;
  flex-direction: column;
  gap: 3.6rem;
  max-width: 62rem;
}
.heading-primary {
  font-size: 7.5rem;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-self: center;
  margin-top: 6rem;
}
.hero-trust {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-self: center;
  gap: 0.8rem;
}
/* -------------------------
   Typography (sections)
------------------------- */
.heading-secondary {
  font-size: 4.2rem;
  line-height: 1.15;
  margin: 2rem 0 1rem;
}
.heading-tertiary {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

.subtitle {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  margin-bottom: 2rem;
}
.trust-us-text,
.note {
  display: block;
  max-width: 80rem;
  font-size: 1.7rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem auto 0;
}
/* =========================
   ABOUT US - HOW IT WORKS
========================= */
.grid-5-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 2.4rem;
  width: 100%;
  max-width: 100rem;
  margin: 0 auto;
}
.grid-5-cols .how-card {
  grid-column: span 2;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  max-height: 100rem;
}
.grid-5-cols .how-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.grid-5-cols .how-card:nth-child(5) {
  grid-column: 4 / span 2;
}
.how-it-works {
  margin: 10.8rem 0;
  text-align: center;
}

.how-title {
  margin-bottom: 1.2rem;
}

.how-subtitle {
  margin-bottom: 3.2rem;
}

.how-cards {
  align-items: stretch;
  margin-bottom: 1.6rem;
}

.how-card {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 2.4rem 2.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  max-width: 100%;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(212, 175, 55, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.how-step {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  letter-spacing: 0.04em;
}

.how-icon {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.how-icon i {
  font-size: 28px;
  color: rgba(212, 175, 55, 0.95);
}

.how-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.how-text {
  opacity: 0.9;
  line-height: 1.6;
  font-size: 1.6rem;
  flex: 0 0 auto;
  overflow: visible;
}

.reach-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 2.4rem 2.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.reach-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(212, 175, 55, 0.18),
    transparent 55%
  );
  pointer-events: none;
}
.reach-cards {
  align-items: stretch;
}
.reach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}
.reach-text {
  font-size: 1.6rem;
  color: var(--text-muted);
}
.trust-us {
  margin-top: 9.6rem;
}

/* -------------------------
   Buttons
------------------------- */
.btn:link,
.btn:visited,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  padding: 1.2rem 2rem;
  font-size: 1.6rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px);
}
.car-btn:link,
.car-btn:visited,
.car-btn {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-primary));
  color: #0b0b0b;
  border-color: color-mix(in srgb, var(--gold-soft) 70%, transparent);
  box-shadow: var(--shadow-sm);
}
.car-btn:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
}

.btn-outline:link,
.btn-outline:visited,
.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--gold-soft) 45%, var(--border));
  color: var(--text);
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--gold-soft) 16%, transparent);
  border-color: color-mix(in srgb, var(--gold-soft) 65%, var(--border));
}
.hero-outline-btn {
  color: #fff !important;
}

.btn.small {
  padding: 0.9rem 1.3rem;
  font-size: 1.3rem;
  border-radius: 12px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------
Grids / Cards
------------------------- */

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
}
.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}

.cars-grid {
  gap: 3rem;
}

.about-us-icon {
  width: 100%;
  object-fit: contain;
  max-width: 16rem;
  min-width: 0 auto 1rem;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  margin: 0 auto 1.6rem;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stock-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stock-mobile-stage {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.stock-mobile-nav {
  display: none;
  position: absolute;
  top: 42%;
  transform: translateY(-20%);
  width: 40px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 85%, transparent);
  color: var(--text);
  z-index: 6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.stock-mobile-prev {
  left: 0;
}

.stock-mobile-next {
  right: 0;
}

.stock-more-wrap {
  margin-top: 1.8rem;
  display: none;
  justify-content: center;
}
.car-card {
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: center;
  justify-items: center;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}
.stock-grid {
  display: grid;
  position: relative;
  width: 100%;
  min-height: 25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.stock-grid img,
.stock-grid .price {
  grid-area: 1/1;
}

.stock-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.stock-grid:not(.has-image)::after {
  content: "No image";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}
.price {
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0.8rem 1rem;
  background: color-mix(in srgb, var(--bg-elev) 75%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.stock-topline {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.status-ribbon {
  position: absolute;
  top: 16px;
  right: -56px;
  z-index: 6;
  width: 190px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.55rem 0;
  transform: rotate(45deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.sold-ribbon {
  background: #4d2e2e;
  color: #ff9a9a;
}

.new-stock-ribbon {
  background: #1f5a36;
  color: #bff8cc;
}

.on-sale-ribbon {
  background: #5c4515;
  color: #ffe49a;
}

.car-details {
  padding: 1.6rem;
  text-align: left;
}
.car-name {
  font-size: 1.7rem;
  margin: 1.2rem 0;
  text-align: left;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin: 1.2rem 0;
  justify-items: left;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.spec-item .fa {
  color: var(--gold-soft);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  flex: 0 0 1.6rem;
  text-align: center;
}

.spec-item img {
  width: 22px;
  filter: grayscale(1);
  opacity: 0.9;
}

.card-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.btn-card.btn {
  width: 100%;
}

/* Filters */

.select-form {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 2.4rem 0;
  align-items: center;
  justify-content: center;
}

.select-form select {
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--bg-elev);
  max-width: 18rem;
  font-size: 1.4rem;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
}
.select-form select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.pagination-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}
.page-indicator {
  font-size: 1.4rem;
  color: var(--text-muted);
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
}

.stock-page-body {
  min-height: 100svh;
}

.stock-page-body .our-stock.section-full {
  align-items: flex-start;
}

.stock-page-body .our-stock > .container {
  text-align: left;
}

.stock-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 1rem 0 1.6rem;
  opacity: 0.9;
  text-decoration: none;
  font-size: 1.6rem;
}

.stock-page-back:hover {
  opacity: 1;
}
.emty-state {
  grid-column: 1/-1;
  padding: 3.6rem 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
}
/* -------------------------
   Build form 
------------------------- */
.build-form {
  box-sizing: border-box;
  justify-items: center;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100rem;
  margin: 0 auto 9.6rem;
  padding: 2.4rem;
}
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}
.build-form select,
.build-form input,
.build-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  font-size: 1.6rem;
  border: 1px solid var(--border);
  color: var(--text);
}
.build-form select:focus-visible,
.build-form input:focus-visible,
.build-form textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.features-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.features-head .line {
  flex: 1;
  height: 2px;
  background-color: color-mix(in srgb, var(--gold-soft) 60%, transparent);
}
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.6rem;
  align-items: flex-start;
  gap: 1.6rem 2.4rem;
  color: var(--text-muted);
}
.features-head span {
  font-size: 1.6rem;
}
.checkbox {
  display: none;
}
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  position: relative;
  line-height: 1.2;
  flex: 1 1 calc(50% - 1.2rem);
  min-width: 0;
}
.check span {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.check span::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid color-mix(in srgb, var(--gold-soft) 75%, var(--border));
  border-radius: 6px;
  transition: 0.2s ease;
}
.checkbox:checked + span::before {
  background-color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.checkbox:checked + span::after {
  content: "✓";
  left: 5px;
  position: absolute;
  font-size: 18px;
  color: #0b0b0b;
}

.client-info {
  display: flex;
  gap: 14px;
}
.send-request {
  font-weight: 800;
  font-size: 1.8rem;
  padding: 1.2rem 1.6rem;
  border-radius: 999px;
  width: min(60rem, 100%);
  align-self: center;
  justify-self: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-primary));
  color: #0b0b0b;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-sm);
  margin: 2.6rem 0;
}

.send-request:hover {
  background: none;
  color: var(--gold-soft);
  border: 2px solid var(--gold-soft);
  transform: translateY(-1px);
}
/* -------------------------
   Footer (removed background image)
------------------------- */
.footer {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 80%, transparent),
    var(--bg-section)
  );
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.grid--footer {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.footer-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.footer-tagline {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  max-width: 32rem;
}

.footer-heading {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
  color: var(--text);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}
.small-muted {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-link {
  display: flex;
  gap: 3px;
  align-items: center;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-link:hover,
.footer-link:active {
  color: var(--gold-soft);
}

.social-icon {
  font-size: 2.6rem;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 1.2rem;
}

.address {
  color: var(--text-muted);
}

.contacts {
  color: var(--text-muted);
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.6;
}

.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.copyright {
  text-align: center;
  padding: 2.4rem 0;
  opacity: 0.7;
  font-size: 1.6rem;
  margin-top: 1.6rem;
  color: var(--gold-soft);
}
.small-muted {
  font-size: 1.3rem;
  color: var(--text-soft);
  margin: 0;
}
.small-muted code {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
}

/* ===============================
   AUTH PAGES (Login / Register)
================================ */

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
}
[data-theme="light"] .auth-body {
  background: linear-gradient(135deg, #f7f7f8, #e0e0e0);
}
.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 42rem;
  background: #1c1c1c;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: 0.2s ease;
}
[data-theme="light"] .auth-card {
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.auth-top {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  opacity: 0.7;
}

/* ===============================
   FORM
================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.auth-input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-family: inherit;
  transition: 0.2s ease;
}

[data-theme="light"] .auth-input {
  background: #f5f5f5;
  color: #111;
  border: 1px solid #ddd;
}

.auth-input:focus {
  outline: none;
  border-color: #caa552;
  box-shadow: 0 0 0 2px rgba(202, 165, 82, 0.3);
}

/* ===============================
   BUTTON
================================ */

.auth-submit {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===============================
   FOOTER LINKS
================================ */

.auth-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 14px;
}

.auth-footer a {
  color: #caa552;
  text-decoration: none;
  transition: 0.2s ease;
}

.auth-footer a:hover {
  opacity: 0.7;
}

/* ===============================
   HINT / MESSAGE
================================ */

.auth-hint {
  font-size: 13px;
  min-height: 18px;
  margin-top: 4px;
}

.auth-hint.is-error {
  color: #ff4d4f;
}

.auth-hint.is-success {
  color: #4caf50;
}

/* ===============================
   HEADER ON AUTH PAGES
================================ */

.auth-header {
  padding: 20px 40px;
  background: transparent;
}

/* =========================
   DETAILS PAGE
========================= */
.details-main {
  padding: 6rem 0;
}
.details-container {
  max-width: 100rem;
  width: 100%;
  padding: 0;
  margin: 0 auto;
  text-align: left;
}

.details-back {
  display: inline-flex;
  gap: 10px;
  margin: 1rem 0 2rem;
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  font-size: 1.6rem;
}
.details-back:hover {
  opacity: 1;
}

.details-card {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 1000px) minmax(32rem, 1fr);
  align-items: start;
}

.details-media {
  position: relative;
  background: radial-gradient(
    circle at 30% 10%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  padding: 18px;
  width: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.details-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 1000 / 800;
}

@media (max-width: 900px) {
  .details-stage {
    height: auto;
  }
}

.details-stage-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.details-stage-scroll::-webkit-scrollbar {
  display: none;
}
.details-stage-scroll {
  scrollbar-width: none;
}

.details-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  user-select: none;
  -webkit-user-drag: none;
}

.details-price {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.6rem;
}

.details-fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.details-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 70px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
  z-index: 5;
}
.details-prev {
  left: 24px;
}
.details-next {
  right: 24px;
}
.details-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.details-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow: auto;
  padding-bottom: 4px;
}

.details-thumb {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 0;
  width: 110px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}
.details-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.details-thumb.is-active {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.details-info {
  padding: 26px 26px 28px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.details-info .heading-tertiary {
  text-align: left;
}

.details-title {
  margin: 8px 0 16px;
  font-size: 34px;
  line-height: 1.15;
}

.details-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
  opacity: 0.95;
  font-size: 1.6rem;
}
.details-specs > .fa {
  font-size: 1.6rem;
}
@media (max-width: 900px) {
  .details-card {
    display: flex;
    flex-direction: column;
  }

  .details-media {
    border-right: 0;
  }

  .details-info {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .details-nav {
    display: none;
  }

  .details-stage {
    touch-action: pan-x pan-y;
  }

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

.details-spec {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.details-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 18px 0;
}

.details-desc {
  opacity: 0.9;
  line-height: 1.6;
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}

.details-list {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.7;
  opacity: 0.92;
  font-size: 1.4rem;
  list-style: none;
}

.details-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.details-media:fullscreen,
.details-media:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: #000;
  padding: 16px;
}

.details-media:fullscreen .details-stage,
.details-media:-webkit-full-screen .details-stage {
  height: calc(100vh - 130px);
  width: 100%;
  aspect-ratio: auto !important;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.details-media:fullscreen .details-stage-scroll,
.details-media:-webkit-full-screen .details-stage-scroll {
  width: 100%;
  height: 100%;
}

.details-media:fullscreen .details-stage-img,
.details-media:-webkit-full-screen .details-stage-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}

.details-media:fullscreen .details-thumbs,
.details-media:-webkit-full-screen .details-thumbs {
  margin-top: 10px;
  padding-bottom: 0;
}

.details-media:fullscreen .details-nav,
.details-media:-webkit-full-screen .details-nav {
  top: 50%;
}

@media (max-width: 900px) {
  .details-media:fullscreen,
  .details-media:-webkit-full-screen {
    padding: 10px;
  }

  .details-media:fullscreen .details-stage,
  .details-media:-webkit-full-screen .details-stage {
    height: min(62dvh, calc(100dvh - 185px));
    min-height: 220px;
  }

  .details-media:fullscreen .details-price,
  .details-media:-webkit-full-screen .details-price {
    top: 10px;
    left: 10px;
    padding: 10px 12px;
    font-size: 1.5rem;
  }

  .details-media:fullscreen .details-fullscreen,
  .details-media:-webkit-full-screen .details-fullscreen {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .details-media:fullscreen .details-nav,
  .details-media:-webkit-full-screen .details-nav {
    width: 42px;
    height: 62px;
  }

  .details-media:fullscreen .details-prev,
  .details-media:-webkit-full-screen .details-prev {
    left: 10px;
  }

  .details-media:fullscreen .details-next,
  .details-media:-webkit-full-screen .details-next {
    right: 10px;
  }
}

/* Modal */
.details-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.details-modal.is-open {
  display: block;
}

.details-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.details-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px));
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.details-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.details-modal-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: inherit;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.details-modal-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.details-contact-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
/* --------------------
Admin page
---------------------- */

.admin-body .admin-container,
.admin-body .container.admin-container {
  max-width: 120rem;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.admin-body .admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem 3rem;
  align-items: end;
}

.admin-body .admin-input {
  width: 100%;
  max-width: 100%;
}
.admin-body .admin-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: end;
  margin-bottom: 3.6rem;
}
.admin-card .heading-tertiary {
  text-align: center;
  margin: 3.6rem;
}
.admin-table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  white-space: nowrap;
}

.admin-sort-control span {
  opacity: 0.8;
}

.admin-sort-select {
  width: auto;
  max-width: none;
  min-width: 24rem;
  height: 3.6rem;
  padding: 0 1rem;
}
.admin-body .admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 2rem;
  font-size: 1.6rem;
}

.admin-body .admin-table {
  width: 100%;
  min-width: 90rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-body .admin-table th,
.admin-body .admin-table td {
  padding: 1.2rem 1.2rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-body .admin-table th:first-child,
.admin-body .admin-table td:first-child {
  width: 4.6rem;
  text-align: center;
}

.admin-body .admin-table th:nth-child(2),
.admin-body .admin-table td:nth-child(2) {
  width: 32rem;
}

.admin-body .admin-table th:last-child,
.admin-body .admin-table td:last-child {
  width: 16rem;
  text-align: right;
}
.admin-body #carId {
  display: none;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.admin-row-draggable {
  cursor: move;
}

.admin-row-draggable.is-drag-over {
  outline: 2px dashed rgba(212, 175, 55, 0.55);
  outline-offset: -2px;
}

.admin-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.9;
}
.admin-header {
  padding: 20px 40px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-pass-wrap {
  position: relative;
}
.auth-pass-wrap .auth-input {
  width: 100%;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-eye:hover {
  color: rgba(212, 175, 55, 0.95);
}

.admin-input {
  font-size: 1.6rem;
  padding: 8px;
  background-color: var(--bg);
  color: var(--gold-soft);
}
.admin-label {
  font-size: 2rem;
}
.admin-head {
  text-align: center;
  margin: 3.6rem 0;
}
.admin-preview span {
  font-size: 1.6rem;
}

.admin-extra-item {
  position: relative;
  width: 120px;
  height: 80px;
  margin: 6px;
}

.admin-extra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-extra-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.admin-extra-remove:hover {
  background: rgba(220, 38, 38, 0.95);
}
