/* new comment testing by sharjeel on /dev2 */
/* public/assets/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Base palette (overridden by PHP inline vars) */
  --bg: #0b0b0d;
  --bg-2: #111114;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted-2: rgba(255, 255, 255, 0.52);

  /* Brand colors (will be overridden from PHP + /admin).
     Defaults are PurCo blue so static pages still look on-brand. */
  --brand: #0A63A8;
  --brand-2: #2B8FE0;
  --brand-soft: rgba(10, 99, 168, 0.18);
  --brand-soft-strong: rgba(10, 99, 168, 0.30);
  --brand-border-soft: rgba(10, 99, 168, 0.26);
  --brand-border-strong: rgba(10, 99, 168, 0.35);

  --danger: var(--brand);

  --shadow: 0 24px 70px rgba(0,0,0,0.55);
  --radius: 18px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Assets */
  /* Use secondary hero image for login background */
  --auth-bg-url: url('../img/hero-secondary.jpg');
  /* This default logo will be overridden by inline CSS from PHP theme config when changed via /admin. */
  --brand-logo-url: url('../img/logo.webp');
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 18% 18%, var(--brand-soft), transparent 60%),
    radial-gradient(900px 600px at 84% 26%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #070709, var(--bg));
}

/* Auth page base background (NO car image below hero) */
body.page-auth {
  overflow-x: hidden;
  color: rgba(255,255,255,0.92);
  background:
    radial-gradient(900px 600px at 18% 18%, var(--brand-soft), transparent 60%),
    radial-gradient(900px 600px at 86% 18%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #070709, var(--bg));
}
body.page-auth .muted { color: rgba(255,255,255,0.68); }

/* Car image only in the hero section */
.landing-hero {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.92);
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--auth-bg-url) center / cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  z-index: 0;
}
.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 18% 18%, var(--brand-soft-strong), transparent 60%),
    radial-gradient(900px 700px at 84% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.86));
  z-index: 1;
}
.landing-hero > * {
  position: relative;
  z-index: 2;
}

.landing-hero .hero-h1 {
  margin: 18px 0 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.landing-hero .hero-p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.65;
  font-size: 16px;
  max-width: 42ch;
}
.landing-hero .hero-bullets {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.landing-hero .hero-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}
.landing-hero .hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px var(--brand-soft-strong);
}

.container {
  /* widened so 800px hero + key details can fit side-by-side */
  width: min(1300px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

.link { color: rgba(255,255,255,0.86); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.22); }
.link:hover { border-bottom-color: rgba(255,255,255,0.5); }

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
/* Logo in header (sidebar + topbar): use --brand-logo-url from theme or CSS default */
.brand-mark {
  width: 190px;
  height: 62px;
  min-width: 120px;
  min-height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-logo-url) center / contain no-repeat;
  background-color: transparent;
  box-shadow: none;
}
.brand-name {
  font-weight: 830;
  letter-spacing: 0.22px;
  font-size: 32px;
}
.brand-tagline {
  color: var(--muted);
  font-size: 18px;
  margin-top: 4px;
}

/* Buttons */
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 22px 70px var(--brand-soft-strong);
  color: #0b0b0d;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}

.btn-secondary {
  background: rgba(255,255,255,0.10);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
}

.btn-full { width: 100%; }

/* Alerts */
.alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  border: 1px solid rgba(255,255,255,0.14);
}
.alert-danger {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
}

/* Auth layout */
.auth-shell {
  min-height: 78vh;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 40px;
}

/* make hero text look premium */
.landing-hero .brand-name { color: rgba(255,255,255,0.96); }
.landing-hero .brand-tagline { color: rgba(255,255,255,0.72); }
.landing-hero .notice-card {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 22px 70px rgba(0,0,0,0.36);
}
.landing-hero .notice-title { color: rgba(255,255,255,0.86); }
.landing-hero .notice-text { color: rgba(255,255,255,0.78); }

.auth-hero {
  padding: 0;
  display: flex;
  align-items: center;
}

.auth-hero-inner {
  width: min(560px, 100%);
  margin: 0;
}

.notice-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}
.notice-title {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.notice-text { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }

.auth-hero-foot { margin-top: 18px; }

.auth-panel {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.auth-panel-inner {
  width: 100%;
  background: rgba(6, 8, 18, 0.68);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  padding: 30px;
  backdrop-filter: blur(16px);
}

.auth-title { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.auth-subtitle { margin: 8px 0 18px; color: var(--muted); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.label { font-size: 13px; color: var(--muted); }

.input {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  outline: none;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.auth-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.divider { color: rgba(255,255,255,0.35); }

.auth-panel-foot { margin-top: 18px; text-align: center; }

/* App layout */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.10); }

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.sidebar-brand-text { letter-spacing: 0.2px; }

.nav { margin-top: 18px; display: grid; gap: 8px; }
.nav-item {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
}
.nav-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}
.nav-item.is-active {
  background: var(--brand-soft);
  border-color: var(--brand-border-soft);
  color: var(--text);
}

.sidebar-foot {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

/* .main { padding: 12px 0 40px; } */

.topbar {
  padding: 12px 0;
  background: radial-gradient(600px 420px at 0% 0%, rgba(255,255,255,0.04), transparent 55%), rgba(4, 6, 16, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-label {
  color: var(--muted);
  font-size: 13px;
}
.search-input {
  width: min(460px, 46vw);
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: var(--text);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 900;
  color: #0b0b0d;
}

.user-chip-text { display: grid; line-height: 1.05; text-align: left; }
.user-name { font-weight: 780; font-size: 13px; }
.user-org { color: var(--muted); font-size: 12px; }

.page-head {
  padding: 26px 0 18px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  margin-bottom: 8px;
}
.page-head h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

/* Vehicles page: search in left sidebar; main column = results only */
body.page-app .container.vehicles-page-wrap {
  width: min(1280px, calc(100% - 48px));
}

.vehicles-layout {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.vehicles-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.vehicles-sidebar-panel {
  padding: 18px 16px 20px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 20, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
}

body.page-app .vehicles-sidebar-panel {
  background: var(--surface);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.vehicles-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.vehicles-sidebar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.vehicles-sidebar-lead {
  margin: 0 0 14px;
  line-height: 1.4;
}

.vehicles-sidebar-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
  align-items: start;
}

.vehicles-sidebar-form > .field {
  min-width: 0;
}

.vehicles-sidebar-seg {
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

/* Higher specificity than .actions { display:flex } later in this file */
.vehicles-sidebar-form .vehicles-sidebar-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  align-items: stretch;
}

.vehicles-sidebar-form .vehicles-sidebar-actions .btn-full {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.vehicles-main-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.vehicles-page-head {
  flex: 1 1 auto;
  min-width: min(100%, 220px);
  margin-bottom: 0;
  padding-bottom: 14px;
}

.vehicles-filters-toggle,
.vehicles-sidebar-close {
  flex-shrink: 0;
}

.vehicles-sidebar-close {
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
}

.vehicles-sidebar-scrim {
  display: none;
}

@media (min-width: 961px) {
  .vehicles-filters-toggle {
    display: none;
  }

  .vehicles-sidebar-close {
    display: none;
  }
}

@media (max-width: 960px) {
  .vehicles-layout {
    grid-template-columns: 1fr;
  }

  .vehicles-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    max-height: 100dvh;
    width: min(380px, calc(100vw - 24px));
    max-width: 100%;
    z-index: 100;
    padding: 12px 12px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    background: transparent;
  }

  .vehicles-sidebar.is-open {
    transform: translateX(0);
  }

  .vehicles-sidebar-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  /* Drawer is narrow: stack fields; keep Search + Clear on one row */
  .vehicles-sidebar .vehicles-sidebar-form {
    grid-template-columns: 1fr;
  }

  .vehicles-sidebar .vehicles-sidebar-form .vehicles-sidebar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .vehicles-sidebar-scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .vehicles-sidebar-scrim.is-open {
    opacity: 1;
  }

  body.vehicles-drawer-open {
    overflow: hidden;
  }
}

.card {
  background: rgba(10, 12, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.65);
  margin-top: 24px;
  overflow: hidden;
}

.card-head { padding: 18px 18px 8px; }
.card-title { margin: 0; font-size: 16px; letter-spacing: -0.01em; }

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  text-align: left;
}
.table tr:hover td { background: rgba(255,255,255,0.03); }

/* Vehicles results: tablet + mobile — real data table with horizontal scroll (default .card overflow:hidden clips wide tables) */
@media screen and (max-width: 960px) {
  .vehicles-main {
    min-width: 0;
  }

  .card.vehicles-results-card {
    overflow-x: visible;
    overflow-y: visible;
  }

  .vehicles-results-card .table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .vehicles-results-card .vehicles-results-table {
    min-width: 680px;
    width: max-content;
    max-width: none;
  }

  .vehicles-results-card .vehicle-thumb {
    width: 120px;
    max-width: 120px;
    height: auto;
    max-height: 78px;
    object-fit: cover;
    vertical-align: middle;
  }
}

/* Vehicles list: SalvageNow-style horizontal cards (screen); table hidden except print/PDF */
.vehicles-print-table-wrap {
  display: none;
}

.vehicles-results-table .vehicle-print-summary-cell {
  min-width: 12em;
  max-width: 22em;
  vertical-align: top;
  white-space: normal;
}

.vehicle-print-summary-block {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.vehicle-print-summary-line {
  margin-bottom: 0.2em;
}

.vehicle-print-summary-line:last-child {
  margin-bottom: 0;
}

.vehicles-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 18px;
}

.vehicles-list-empty {
  margin: 12px 22px 20px;
}

.vehicle-list-card {
  display: grid;
  grid-template-columns: minmax(100px, 220px) minmax(0, 1fr) minmax(200px, 326px);
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.vehicle-list-image {
  padding: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15, 23, 42, 0.03);
}

.vehicle-list-thumb-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  cursor: zoom-in;
  background: transparent;
  line-height: 0;
  overflow: hidden;
  width: 100%;
}

.vehicle-list-thumb-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.vehicle-list-card-img {
  width: 100%;
  /* max-width: 132px; */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: block;
}

.vehicle-list-details {
  padding: 14px 16px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.vehicle-list-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.vehicle-list-heading-row .vehicle-list-title {
  margin-bottom: 0;
}

.vehicle-list-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(71, 85, 105, 0.95);
  text-decoration: none;
  padding: 2px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

.vehicle-list-edit-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.vehicle-list-edit-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.vehicle-list-edit-icon {
  flex-shrink: 0;
  opacity: 0.88;
}

.vehicle-header-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 4px;
}

.vehicle-list-sale-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.vehicle-list-title-link {
  text-decoration: underline;
  color: inherit;
}

.vehicle-list-title-link:hover .vehicle-list-title {
  color: var(--brand);
  text-decoration: underline;
}

.vehicle-list-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.vehicle-list-spec-row,
.vehicle-list-reruns {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.vehicle-list-spec-row li {
  margin: 0;
}

.vehicle-list-inline-sep {
  color: var(--muted);
  margin: 0 6px;
  font-weight: 400;
}

.vehicle-list-line {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.vehicle-list-line strong,
.vehicle-list-spec-row strong {
  font-weight: 700;
}

.vehicle-list-status-wrap {
  margin-top: 8px;
}

.vehicle-list-actions {
  padding: 14px 14px 16px;
  border-left: 1px solid rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: rgba(15, 23, 42, 0.02);
  min-width: 0;
}

.vehicle-list-prices {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vehicle-price-box {
  font-size: 12px;
  line-height: 1.35;
}

.vehicle-price-box strong {
  display: block;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.vehicle-price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.vehicle-list-action-btns {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 8px;
}

.vehicle-btn-sell {
  background: #198754 !important;
  border-color: #157347 !important;
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
}

.vehicle-btn-offer {
  background: #032f66 !important;
  border-color: #021f44 !important;
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
}

.vehicle-btn-nosell {
  background: #dc3545 !important;
  border-color: #b02a37 !important;
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  width: 100%;
  /* max-width: 160px; */
}

.vehicle-list-nosell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin-top: 5px;
}

.vehicle-list-reruns {
  font-size: 12px;
  color: var(--muted);
}

.vehicle-list-reruns li {
  margin-bottom: 4px;
}

.vehicle-list-reruns label:has(input:disabled) {
  cursor: not-allowed;
}

.vehicle-list-reruns label:has(input:enabled) {
  cursor: pointer;
}

.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;
}

.vehicle-action-field {
  flex: 1 1 100%;
  margin: 0;
}

.vehicle-input-counter,
.vehicle-input-qs {
  width: 100%;
  max-width: 160px;
  font-size: 13px;
  padding: 8px 10px;
}

.vehicle-list-qs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.vehicle-btn-qs {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media screen and (max-width: 900px) {
  .vehicle-list-card {
    grid-template-columns: 1fr;
  }

  .vehicle-list-details {
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .vehicle-list-actions {
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    flex-direction: column;
  }

  .vehicle-btn-nosell {
    max-width: 160px;
  }

  .vehicle-list-image {
    justify-content: flex-start;
  }

  .vehicle-list-card-img {
    max-width: 100%;
  }

  .vehicle-gallery-thumbs {
    overflow-x: scroll;
  }

}

/* Quick-view gallery modal */
.vehicle-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.vehicle-gallery-modal[hidden] {
  display: none !important;
}

.vehicle-gallery-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.vehicle-gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 880px);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vehicle-gallery-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vehicle-gallery-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.vehicle-gallery-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.vehicle-gallery-modal-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.88);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.vehicle-gallery-modal-close:focus-visible {
  outline: 2px solid var(--brand, #032f66);
  outline-offset: 2px;
}

.vehicle-gallery-modal-close:active {
  transform: scale(0.94);
}

.vehicle-gallery-modal-close-icon {
  display: block;
  pointer-events: none;
}

.vehicle-gallery-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.vehicle-gallery-hero {
  position: relative;
  flex-shrink: 0;
  min-height: min(52vh, 440px);
  background: rgba(15, 23, 42, 0.06);
}

.vehicle-gallery-main-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 440px);
  padding: 12px 52px;
  box-sizing: border-box;
}

.vehicle-gallery-main {
  max-width: 100%;
  max-height: min(52vh, 440px);
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.vehicle-gallery-arrow {
  position: absolute;
  top: 50%;
  /* bottom: 0; */
  width: 44px;
  margin: 0;
  padding: 5px 0px 10px 0px;
  border: none;
  background: var(--brand, #032f66);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, filter 0.2s;
  /* border-radius: 10px; */
}

.status {
  border-color: #015a9c !important;
}

.vehicle-gallery-arrow:hover {
  opacity: 0.92;
  filter: brightness(1.06);
}

.vehicle-gallery-prev {
  left: 0;
}

.vehicle-gallery-next {
  right: 0;
}

.vehicle-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

.vehicle-gallery-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  overflow: hidden;
  box-sizing: border-box;
}

.vehicle-gallery-thumb.is-active {
  border-color: var(--brand);
}

.vehicle-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  pointer-events: none;
}

.right { text-align: right; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 800;
  min-width: 40px;
}

.card-actions {
  padding: 14px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-footer {
  padding: 20px 0 30px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(10px);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Light theme for APP pages (portal after login) */
body.page-app {
  color: var(--text);
  background: var(--app-bg);
}

/* make layout feel like a website (top header + content), not a sidebar app */
body.page-app .app-shell {
  grid-template-columns: 1fr;
}
body.page-app .container {
  /* desktop width reverted to original */
  width: min(1100px, calc(100% - 64px));
  padding: 24px 0 40px;
  margin-left: auto;
  margin-right: auto;
}

body.page-app .muted { color: var(--muted); }
body.page-app .link {
  color: var(--brand);
  border-bottom-color: rgba(15,23,42,0.25);
}
body.page-app .link:hover { border-bottom-color: var(--brand); }

body.page-app .sidebar {
  display: none; /* desktop */
  background: rgba(0,0,0,0.55);
  border-right: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}
body.page-app .sidebar-brand,
body.page-app .sidebar-brand-text { color: rgba(255,255,255,0.92); }

body.page-app .nav-item {
  color: rgba(255,255,255,0.74);
}
body.page-app .nav-item:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border-soft);
  color: rgba(255,255,255,0.92);
}
body.page-app .nav-item.is-active {
  background: var(--brand-soft-strong);
  border-color: var(--brand-border-strong);
  color: rgba(255,255,255,0.92);
}

body.page-app .topbar {
  background: linear-gradient(180deg, #0e4a82 0%, #0a3d6e 48%, #083556 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(6, 28, 52, 0.35);
  flex-wrap: nowrap;
}

body.page-app .topbar-inner {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px 18px;
  min-height: 52px;
}

body.page-app .topbar-menu { display: none; }

/* Brand + primary nav: one horizontal band, no scroll strip */
body.page-app .topbar-leading {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
}

body.page-app .topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: rgba(255,255,255,0.95);
  font-weight: 850;
  letter-spacing: -0.01em;
}
body.page-app .topbar-brand-text { font-weight: 850; }

body.page-app .topnav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.page-app .topnav::-webkit-scrollbar {
  display: none;
}
body.page-app .topnav-item {
  flex: 0 0 auto;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
body.page-app .topnav-item:hover {
  background: var(--brand-soft);
  border-color: var(--brand-border-soft);
  color: rgba(255,255,255,0.96);
}
body.page-app .topnav-item.is-active {
  background: rgba(125, 185, 255, 0.38);
  border-color: rgba(186, 220, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(30, 100, 180, 0.25);
}

/* Search: label above field; icon submit inside input (saves header width) */
body.page-app .topbar-search.search {
  display: block;
  flex: 0 1 380px;
  min-width: min(300px, 100%);
  max-width: 420px;
  margin: 0;
}
body.page-app .topbar-search-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

body.page-app .topbar-search-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

body.page-app .topbar-search-select {
  flex: 0 0 auto;
  min-width: 6.5rem;
  max-width: 42%;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.94);
  cursor: pointer;
}

body.page-app .topbar-search-select option {
  color: #111;
  background: #fff;
}

body.page-app .topbar-search-row .topbar-search-field {
  flex: 1 1 auto;
  min-width: 0;
}
body.page-app .topbar-search .search-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  line-height: 1;
}
body.page-app .topbar-search-field {
  position: relative;
  width: 100%;
}
body.page-app .topbar-search-field .topbar-search-input,
body.page-app .topbar-search-field .search-input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0 42px 0 11px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.94);
}
body.page-app .topbar-search-field .search-input::placeholder {
  color: rgba(255,255,255,0.45);
}
body.page-app .topbar-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: rgba(255,255,255,0.96);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15,23,42,0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
}
body.page-app .topbar-search-submit:hover {
  filter: brightness(1.08);
}
body.page-app .topbar-search-submit:active {
  transform: translateY(-50%) scale(0.96);
}
body.page-app .topbar-search-icon {
  width: 16px;
  height: 16px;
  display: block;
}

body.page-app .topbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 4px;
}

body.page-app .topbar-logout {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

body.page-app .icon-btn {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  flex-shrink: 0;
}
body.page-app .icon-btn:hover { background: rgba(255,255,255,0.14); }

body.page-app .search-input,
body.page-app .input {
  border-color: rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.92);
}
body.page-app .search-input:focus,
body.page-app .input:focus {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
  outline: none;
}

body.page-app .user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(220px, 28vw);
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.94);
  text-decoration: none;
}
body.page-app .user-chip-text {
  min-width: 0;
  overflow: hidden;
}
body.page-app .user-name,
body.page-app .user-org {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-app .user-name { font-weight: 780; font-size: 13px; }
body.page-app .user-org { color: rgba(255,255,255,0.65); font-size: 11px; margin-top: 1px; }
body.page-app .user-chip .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
  flex-shrink: 0;
}

body.page-app .card {
  background: var(--surface);
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}
body.page-app .card-head {
  padding: 22px 22px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
body.page-app .card-actions { padding: 16px 22px 22px; }
body.page-app .card-body { padding: 18px 22px 22px; }
body.page-app .card-title {
  font-size: 18px;
  letter-spacing: -0.02em;
}
body.page-app .table th {
  color: var(--muted);
}
body.page-app .table th,
body.page-app .table td {
  border-top-color: rgba(15, 23, 42, 0.06);
  padding: 14px 22px;
  color: var(--text);
}
body.page-app .table tr:hover td { background: rgba(15,23,42,0.02); }

body.page-app .pill,
body.page-app .badge,
body.page-app .status,
body.page-app .seg,
body.page-app .seg-item,
body.page-app .tile,
body.page-app .faq-item {
  background: var(--surface);
  border-color: rgba(15,23,42,0.08);
}

body.page-app a.btn {
  text-decoration: none !IMPORTANT;
}

body.page-app .btn {
  background: var(--btn-secondary-bg);
  border: 1px solid rgba(15,23,42,0.12);
  color: var(--btn-secondary-text);
}
body.page-app .btn:hover { opacity: 0.7; }

body.page-app .btn-primary {
  background: var(--btn-primary-bg);
  border-color: transparent;
  color: var(--btn-primary-text);
}

body.page-app .btn-secondary {
  background: var(--btn-secondary-bg);
  border-color: rgba(15,23,42,0.12);
  color: var(--btn-secondary-text);
}

body.page-app .btn-ghost {
  background: transparent;
}

body.page-app .app-footer .muted { color: var(--muted); }

/* Website-like hero section for dashboard */
body.page-app .hero {
  margin-top: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.80), rgba(15,23,42,0.92)),
    url('../img/hero-dashboard.jpg') center/cover no-repeat;
  border: 1px solid rgba(15,23,42,0.25);
  box-shadow: 0 40px 120px rgba(15,23,42,0.55);
  overflow: hidden;
  color: #FFFFFF;
}
body.page-app .hero-inner {
  padding: 28px 28px 26px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}
body.page-app .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
body.page-app .hero-title {
  margin: 12px 0 0;
  font-size: 38px;
  letter-spacing: -0.06em;
  line-height: 1.05;
  color: rgba(255,255,255,0.97);
}
body.page-app .hero-sub {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 60ch;
}
body.page-app .hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.page-app .hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
body.page-app .stat-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
body.page-app .stat-k { font-size: 12px; color: rgba(255,255,255,0.70); font-weight: 800; }
body.page-app .stat-v { font-size: 24px; font-weight: 950; letter-spacing: -0.03em; margin-top: 6px; color: rgba(255,255,255,0.96); }
body.page-app .stat-m { font-size: 12px; color: rgba(255,255,255,0.68); margin-top: 4px; }

@media (max-width: 1100px) {
  body.page-app .hero-inner { grid-template-columns: 1fr; }
}

/* Dashboard home — AI mockup layout */
body.page-app .container-dashboard-home {
  width: min(1180px, calc(100% - 40px));
  padding-bottom: 16px;
}

body.page-app .dashboard-home-hero {
  margin-top: 16px;
  border-radius: 20px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(59, 130, 246, 0.28), transparent 55%),
    radial-gradient(700px 380px at 88% 100%, rgba(99, 102, 241, 0.22), transparent 50%),
    linear-gradient(105deg, rgba(6, 18, 42, 0.88) 0%, rgba(12, 52, 108, 0.82) 45%, rgba(72, 56, 140, 0.78) 100%),
    url('../img/hero-dashboard.jpg') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(6, 30, 56, 0.4);
  color: #fff;
}

body.page-app .dashboard-home-hero .dashboard-hero-inner {
  padding: 26px 28px 24px;
  display: block;
}

body.page-app .dashboard-hero-top {
  display: flex;
  /* justify-content: flex-end; */
  /* margin-bottom: 14px; */
}

body.page-app .dashboard-hero-manual-add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.page-app .dashboard-hero-manual-add:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

body.page-app .dashboard-hero-manual-add-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

body.page-app .dashboard-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 30px;
  align-items: stretch;
}

body.page-app .dashboard-hero-col-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

body.page-app .dashboard-home-hero .hero-eyebrow {
  color: rgba(186, 220, 255, 0.75);
  font-size: 10px;
}

body.page-app .dashboard-home-hero .hero-title {
  font-size: 34px;
  margin-top: 6px;
  font-weight: 800;
}

body.page-app .dashboard-home-hero .hero-sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

body.page-app .dashboard-hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.page-app .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #3b9ae8 0%, #1d7fd4 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(15, 80, 150, 0.35);
}

body.page-app .btn-hero-primary:hover {
  opacity: 0.92;
}

body.page-app .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

body.page-app .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.page-app .btn-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Summary stat cards */
body.page-app .dashboard-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  width: 80%;
}

body.page-app .dash-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 14px 12px;
  min-height: 108px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.page-app .dash-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

body.page-app .dash-stat-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

body.page-app .dash-stat-card--total .dash-stat-icon {
  background: rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

body.page-app .dash-stat-card--live .dash-stat-icon {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

body.page-app .dash-stat-card--qa .dash-stat-icon {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
}

body.page-app .dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

body.page-app .dash-stat-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

/* Category column — glass panel (mockup) */
body.page-app .dashboard-hero-col-categories {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-app .dashboard-cat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  border-radius: 16px;
  /* background: rgba(6, 24, 48, 0.52); */
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

body.page-app .dashboard-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 0;
}

body.page-app .dashboard-cat-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(186, 220, 255, 0.88);
}

body.page-app .dashboard-cat-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

body.page-app .process-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: row;
  gap: 15px 10px;
  flex: 1;
}

body.page-app a.process-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px 10px;
  min-height: 44px;
  padding: 7px 10px 7px 8px;
  border-radius: 11px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

body.page-app a.process-row:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.page-app a.process-row.is-active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(186, 220, 255, 0.35);
}

body.page-app .process-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-app .process-row-icon svg {
  width: 18px;
  height: 18px;
}

body.page-app .process-row--purple .process-row-icon { background: rgba(167, 139, 250, 0.28); color: #ddd6fe; }
body.page-app .process-row--green .process-row-icon { background: rgba(74, 222, 128, 0.22); color: #bbf7d0; }
body.page-app .process-row--red .process-row-icon { background: rgba(248, 113, 113, 0.22); color: #fecaca; }
body.page-app .process-row--blue .process-row-icon { background: rgba(96, 165, 250, 0.28); color: #bfdbfe; }
body.page-app .process-row--cyan .process-row-icon { background: rgba(34, 211, 238, 0.2); color: #a5f3fc; }
body.page-app .process-row--orange .process-row-icon { background: rgba(251, 146, 60, 0.24); color: #fed7aa; }
body.page-app .process-row--yellow .process-row-icon { background: rgba(250, 204, 21, 0.22); color: #fef08a; }

body.page-app .process-row-label {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.92);
  min-width: 0;
}

body.page-app .process-row-count {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  min-width: 1.5rem;
  text-align: right;
}

body.page-app a.process-row:not(.is-active) .process-row-count {
  color: rgba(255, 255, 255, 0.5);
}

body.page-app .process-row-chevron {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-app .process-row-chevron svg {
  width: 16px;
  height: 16px;
}

/* Quick actions card */
body.page-app .dashboard-quick-actions {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.page-app .dashboard-quick-actions-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 24px;
}

body.page-app .dashboard-quick-actions .card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f3d6e;
}

body.page-app .dashboard-quick-actions-copy .muted {
  margin: 6px 0 14px;
  max-width: 52ch;
}

body.page-app .dashboard-quick-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* body.page-app .btn-scan-vin[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
} */

body.page-app .btn-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-app .btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid rgba(10, 99, 168, 0.35);
}

body.page-app .btn-outline:hover {
  background: rgba(10, 99, 168, 0.06);
}

body.page-app .dashboard-quick-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

body.page-app .dashboard-quick-art-svg {
  width: min(200px, 28vw);
  height: auto;
}

@media (max-width: 1100px) {
  body.page-app .dashboard-hero-layout {
    grid-template-columns: 1fr;
  }

  body.page-app .dashboard-hero-stats {
    margin-top: 0;
  }

  body.page-app .process-row-grid {
    grid-auto-flow: row;
    grid-template-rows: unset;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-app .dashboard-cat-panel {
    padding: 14px 12px 12px;
  }

  body.page-app .dashboard-quick-actions-inner {
    grid-template-columns: 1fr;
  }

  body.page-app .dashboard-quick-art {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body.page-app .dashboard-hero-stats {
    grid-template-columns: 1fr;
    width: 100% !important;
  }

  body.page-app .process-row-grid {
    grid-template-columns: 1fr;
  }

  body.page-app .dashboard-home-hero .hero-title {
    font-size: 28px;
  }
}

/* Login panel: lighter + more "website" feel */
body.page-auth .auth-panel-inner {
  background: rgba(6, 8, 14, 0.94);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
  backdrop-filter: blur(18px);
}
body.page-auth .auth-panel-inner {
  color: rgba(255,255,255,0.92);
}
body.page-auth .auth-subtitle,
body.page-auth .label,
body.page-auth .divider {
  color: rgba(255,255,255,0.68);
}
body.page-auth .input {
  background: rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
}
body.page-auth .link {
  color: rgba(255,255,255,0.84);
  border-bottom-color: rgba(255,255,255,0.24);
}
body.page-auth .link:hover { border-bottom-color: rgba(255,255,255,0.45); }

/* Marketing sections on login page (clean, colored sections; no glass) */
body.page-auth .m-shell {
  background: transparent;
  padding: 0 0 40px;
}
/* Ensure text inside light marketing sections uses dark colors */
body.page-auth .m-section,
body.page-auth .m-section * {
  color: inherit;
}
body.page-auth .m-section .muted {
  color: #6B7280;
}
body.page-auth .m-section .link {
  color: #0A63A8;
  border-bottom-color: rgba(15,23,42,0.25);
}
body.page-auth .m-section .link:hover {
  border-bottom-color: #0A63A8;
}
body.page-auth .m-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

body.page-auth .m-section {
  padding: 72px 0;
}
/* Make marketing sections light like PurCo.com (white + blue) */
body.page-auth .m-section.is-alt {
  background: #F5F7FB;
}
body.page-auth .m-section.is-tint {
  background: linear-gradient(180deg, #F7FAFF, #F0F4FA);
}
body.page-auth .m-section.is-dark {
  background: #E4ECF7;
  color: #12212F;
}
body.page-auth .m-section.is-dark .m-p {
  color: #334155;
}
body.page-auth .m-section.is-dark .m-kicker { color: #1E3A5F; }

body.page-auth .m-section-head { max-width: 760px; }
body.page-auth .m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1E3A5F;
  font-weight: 800;
}
body.page-auth .m-h2 {
  margin: 12px 0 0;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: #111827;
}
body.page-auth .m-section.is-dark .m-h2 { color: #0F172A; }
body.page-auth .m-p {
  margin: 12px 0 0;
  color: #4B5563;
  line-height: 1.7;
  font-size: 16px;
}

body.page-auth .m-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
body.page-auth .m-card {
  grid-column: span 4;
  padding: 18px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}
body.page-auth .m-card.m-span-3 { grid-column: span 3; }
body.page-auth .m-card.m-span-6 { grid-column: span 6; }
body.page-auth .m-section.is-dark .m-card {
  background: #FFFFFF;
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 18px 50px rgba(15,23,42,0.12);
}
body.page-auth .m-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
}
body.page-auth .m-section.is-dark .m-icon {
  color: rgba(255,255,255,0.92);
  background: var(--brand-soft);
  border-color: var(--brand-border-soft);
}
body.page-auth .m-card-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111827;
}
body.page-auth .m-section.is-dark .m-card-title { color: #0F172A; }
body.page-auth .m-card-text {
  margin-top: 10px;
  color: #4B5563;
  line-height: 1.65;
}
body.page-auth .m-section.is-dark .m-card-text { color: #4B5563; }

body.page-auth .m-steps {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.page-auth .m-step {
  padding: 18px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.10);
}
body.page-auth .m-step-k {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border-soft);
  color: rgba(255,255,255,0.92);
}
body.page-auth .m-step-title { margin-top: 10px; font-weight: 900; color: #111827; }
body.page-auth .m-step-text { margin-top: 8px; color: #4B5563; line-height: 1.65; }

body.page-auth .m-faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
body.page-auth .m-faq-item {
  border-radius: 18px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(15,23,42,0.08);
}
body.page-auth .m-faq-item summary { cursor: pointer; font-weight: 900; color: #111827; }
body.page-auth .m-faq-body { margin-top: 10px; color: #4B5563; line-height: 1.65; }

body.page-auth .m-cta {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0A63A8, #2B8FE0);
  border: 1px solid rgba(15,23,42,0.12);
}
body.page-auth .m-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
body.page-auth .m-cta-title { font-weight: 950; letter-spacing: -0.03em; font-size: 18px; color: rgba(255,255,255,0.96); }
body.page-auth .m-cta-text { margin-top: 6px; color: rgba(255,255,255,0.72); }

/* Responsive */
@media (max-width: 980px) {
  .landing-hero .hero-h1 { font-size: 34px; }

  body.page-auth .m-container { width: min(560px, calc(100% - 40px)); }
  /* Login stacks to ~560px; marketing (.m-shell) should stay full-width like desktop */
  body.page-auth .m-shell .m-container {
    width: min(1120px, calc(100% - 32px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Tablet (≤980px, >767px): two columns (~50% each) */
  body.page-auth .m-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-auth .m-card,
  body.page-auth .m-card.m-span-3,
  body.page-auth .m-card.m-span-6 {
    grid-column: auto;
  }
  body.page-auth .m-steps { grid-template-columns: 1fr; }
  body.page-auth .m-cta-inner { flex-direction: column; align-items: stretch; }

  body.page-app .hero-inner { grid-template-columns: 1fr; }
  body.page-app .hero-stats { grid-template-columns: 1fr; }

  .auth-shell {
    min-height: auto;
    width: min(560px, calc(100% - 40px));
    padding: 30px 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .auth-hero { display: block; }
  .auth-hero-inner { width: 100%; }
  .auth-panel { padding: 0; justify-content: center; }

  .app-shell { grid-template-columns: 1fr; }

  /* Mobile: show hamburger, hide top nav, re-enable sidebar drawer */
  body.page-app .topbar-menu { display: inline-flex; }
  body.page-app .topnav { display: none; }
  body.page-app .topbar-brand-text { display: none; }
  body.page-app .topbar-logout { display: none; }

  body.page-app .topbar-inner {
    flex-wrap: wrap;
    width: calc(100% - 28px);
    min-height: 0;
    gap: 10px 12px;
  }
  body.page-app .topbar-leading {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
  }
  body.page-app .topbar-search.search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }
  body.page-app .topbar-actions {
    order: 2;
    margin-left: auto;
  }

  body.page-app .sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    z-index: 70;
  }

  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .drawer-scrim { opacity: 1; pointer-events: auto; }

  .topbar { padding: 14px 0; }
  .topbar-inner { flex-wrap: wrap; padding: 0 14px; }
  .search { flex: 1; }
  .search-input { width: 100%; }

  body.page-app .topbar-search-field .search-input {
    min-width: 0;
  }

  /* keep content readable with fixed drawer */
  .main { padding-top: 0; }
}

.vehicle-edit-page .input {
  color: #000 !important;
}

/* Login page marketing: phone — one column, cards full width */
@media (max-width: 767px) {
  body.page-auth .m-grid {
    grid-template-columns: 1fr;
  }

  body.page-app .dash-stat-card {
    align-items: center !important;
  }

  .vehicle-hero-side {
    margin-top: 20px;
  }

  body.page-app .dashboard-home-hero .dashboard-hero-inner {
    padding: 20px !important;
  }

  body.page-app .dashboard-quick-art-svg {
    width: min(200px, 100vw) !important;
    }
  
.topbar-actions {
  margin: unset !important;
}

.topbar-actions>a {
  max-width: 100% !important;
}

}

/* Utilities for new pages */
.card-body { padding: 16px 18px 18px; }

.row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.grow { flex: 1 1 280px; }

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}
.grid-span-12 { grid-column: span 12; }
.grid-span-6 { grid-column: span 6; }
.grid-span-4 { grid-column: span 4; }
.grid-span-3 { grid-column: span 3; }

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Add / edit vehicle (dev2) */
.form-grid {
  display: grid;
  gap: 14px 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.form-grid .field.full,
.form-grid .actions.full {
  grid-column: 1 / -1;
}

.form-grid .field.grow {
  grid-column: span 2;
}

body.page-app .input-field-caption {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted, #6b7280);
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 10px;
}

body.page-app .input-field-caption:focus {
  color: var(--text, #111827);
  border-style: solid;
  border-color: rgba(10, 99, 168, 0.45);
  background: #fff;
}

@media (max-width: 720px) {
  .form-grid .field.grow {
    grid-column: 1 / -1;
  }
}

.vehicle-edit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.vehicle-edit-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vehicle-edit-tab:hover {
  border-color: rgba(10, 99, 168, 0.45);
  background: rgba(10, 99, 168, 0.12);
}

.vehicle-edit-tab.is-active {
  color: #fff;
  background: var(--brand, #0a63a8);
  border-color: transparent;
}

.vehicle-edit-page .vehicle-edit-panel {
  margin-bottom: 20px;
}

.vehicle-edit-yn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 6px;
}

.vehicle-edit-yn-row label.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.vehicle-add-flash {
  margin-bottom: 16px;
  border-radius: var(--radius, 14px);
}

.vehicle-add-flash.is-success {
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.vehicle-add-flash.is-error {
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}

.vehicle-add-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vehicle-edit-vin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-edit-filing .muted {
  margin-top: 4px;
}

.vehicle-edit-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vehicle-edit-photo-slot {
  position: relative;
}

.vehicle-edit-photo-cell {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  line-height: 0.5rem;
}

.vehicle-edit-photo-cell--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  background: rgba(15, 23, 42, 0.04);
  border-style: dashed;
  color: var(--muted, #6b7280);
}

.vehicle-edit-photo-empty-label {
  font-size: 13px;
  font-weight: 600;
}

.vehicle-edit-photo-slot-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  text-align: center;
}

.vehicle-edit-photo-remove-form {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  z-index: 2;
}

.vehicle-edit-photo-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.12s ease;
}

.vehicle-edit-photo-remove:hover {
  background: rgba(220, 38, 38, 0.92);
  transform: scale(1.05);
}

.vehicle-edit-photo-remove svg {
  width: 16px;
  height: 16px;
}

.vehicle-edit-photo-cell img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.vehicle-edit-photo-slot.dragging {
  opacity: 0.5;
  border: 2px dashed rgba(59, 130, 246, 0.85);
}

.vehicle-edit-photo-slot.drag-over {
  outline: 3px dashed rgba(59, 130, 246, 0.8);
  outline-offset: -6px;
}

.vehicle-edit-photo-order {
  margin-bottom: 16px;
}

.vehicle-edit-photo-order-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vehicle-edit-photo-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.vehicle-edit-photo-upload-field {
  display: grid;
  gap: 8px;
}

.vehicle-edit-photo-file {
  padding: 10px 12px;
  cursor: pointer;
}

.vehicle-edit-photo-limit-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.08);
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.vehicle-add-flash.is-warn {
  border-left: 4px solid #d97706;
}

.vehicle-add-flash.is-warn .card-body p {
  color: #92400e;
}

.vehicle-edit-photo-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12.5px; }

.vehicle-thumb {
  width: 280px;
  /* height: 50px; */
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.12);
}

a.vehicle-thumb-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  text-decoration: none;
}
a.vehicle-thumb-link:hover .vehicle-thumb {
  border-color: var(--brand-border-soft, rgba(10, 99, 168, 0.45));
}
a.vehicle-thumb-link:focus-visible {
  outline: 2px solid var(--brand, #0A63A8);
  outline-offset: 2px;
}

.seg {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.seg-label { color: var(--muted); font-size: 13px; margin-right: 6px; }
.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  user-select: none;
}
.seg-item input { accent-color: var(--brand); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  font-weight: 750;
  font-size: 12px;
}
.badge-danger {
  border-color: var(--brand-border-strong);
  background: var(--brand-soft-strong);
}
.badge-neutral {
  border-color: var(--brand-border-soft);
  background: var(--brand-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  font-weight: 760;
  font-size: 12px;
}
.status-live { border-color: var(--brand-border-strong); background: var(--brand-soft-strong); }
.status-sold { border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.16); }
.status-pending { border-color: rgba(234, 179, 8, 0.45); background: rgba(234, 179, 8, 0.18); }
.status-neutral { border-color: rgba(148, 163, 184, 0.45); background: rgba(148, 163, 184, 0.16); }

.tile {
  grid-column: span 4;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8, 10, 18, 0.94);
  display: grid;
  gap: 10px;
}
.tile-title { font-weight: 820; letter-spacing: -0.02em; }

.faq { display: grid; gap: 10px; }
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 10px 12px;
}
.faq-item summary { cursor: pointer; font-weight: 760; }
/* .faq-item summary::marker { color: rgba(255,255,255,0.55); } */

@media (max-width: 980px) {
  .grid-span-6, .grid-span-4, .grid-span-3 { grid-column: span 12; }
  .tile { grid-column: span 12; }
}

/* Vehicle detail page layout (new design) */
body.page-app .vehicle-header {
  padding: 22px 0 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

body.page-app .vehicle-header h1 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.vehicle-meta-line {
  margin: 10px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(51, 65, 85, 0.92);
}

.vehicle-meta-sep {
  margin: 0 11px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 12px;
  font-weight: 300;
  user-select: none;
}

.vehicle-header-aside {
  display: grid;
  justify-items: flex-end;
}

.vehicle-status-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.35), transparent 55%),
              linear-gradient(135deg, #0F172A, #1E293B);
  box-shadow: 0 0 0 1px rgba(148,163,184,0.55), 0 18px 55px rgba(15,23,42,0.8);
  color: rgba(248,250,252,0.98);
  animation: vehicleGlow 3.8s ease-in-out infinite alternate;
}

.vehicle-status-line {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vehicle-status-line.is-muted {
  opacity: 0.7;
}

.vehicle-status-price {
  font-size: 14px;
  font-weight: 800;
}

body.page-app .vehicle-hero-card {
  margin-top: 12px;
  display: grid;
  /* Left: 800px hero, Right: key details column */
  grid-template-columns: 800px 260px;
  align-items: start;
  column-gap: 24px;
  padding: 14px 14px 12px;
  max-width: 1100px; /* match lower cards + container for clean alignment */
}

.vehicle-hero-main {
  display: grid;
  gap: 8px;
}

.vehicle-full-spec-card dd {
  color: #000 !important;
}

.vehicle-hero-image-wrap {
  position: relative;
  width: 800px;    /* adjust width here */
  height: 500px;   /* adjust height here */
  margin: 0;       /* keep flush left so grid math is exact */
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(600px 420px at 0% 0%, rgba(15,23,42,0.85), transparent 60%), #020617;
  border: 1px solid rgba(15,23,42,0.24);
}

/* Hero image with fixed pixel size */
.vehicle-hero-image-wrap img {
  display: block;
  width: 800px;   /* adjust this value */
  height: 500px;  /* adjust this value */
  object-fit: cover;
}

.vehicle-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.82);
  color: rgba(248,250,252,0.96);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grey strip of thumbnails under the hero image, like the reference */
.vehicle-gallery-strip {
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #d1d5db;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-gallery-strip .vehicle-thumb {
  width: 100%;
  height: 140px;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(15,23,42,0.30);
}

.vehicle-gallery-strip .vehicle-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.vehicle-gallery-strip .vehicle-thumb.is-active {
  border-color: var(--brand-border-strong);
  box-shadow: 0 0 0 1px var(--brand-soft-strong);
}

@media (min-width: 981px) {
  .vehicle-gallery-strip .vehicle-thumb {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .vehicle-gallery-strip .vehicle-thumb:hover,
  .vehicle-gallery-strip .vehicle-thumb:focus-visible {
    border-color: var(--brand-border-strong);
    box-shadow: 0 0 0 2px var(--brand-soft-strong);
  }
  .vehicle-gallery-strip .vehicle-thumb.is-active {
    border-color: var(--brand, #0A63A8);
    box-shadow: 0 0 0 2px rgba(10, 99, 168, 0.35);
  }
}

.vehicle-hero-side {
  display: grid;
  align-content: start;
  justify-items: stretch; /* let Key details fill its column */
}

/* Key Details panel ~205 x 250 */
.vehicle-facts {
  width: 250px;      /* matches your tweaks */
  min-height: 250px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.28), transparent 55%),
    linear-gradient(145deg, #020617, #020617 30%, #0B1120 70%, #020617 100%);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 18px 50px rgba(15,23,42,0.80);
  color: rgba(248,250,252,0.98);
  animation: vehicleGlow 4.2s ease-in-out infinite alternate;
}

.vehicle-facts-title {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(226,232,240,0.96);
}

/* Secondary facts panel (Vehicle overview) */
.vehicle-facts--overview {
  margin-top: 14px;
}

.vehicle-facts-list {
  margin: 0;
  display: grid;
  gap: 6px;
}

.vehicle-facts-list div {
  display: grid;
  gap: 2px;
}

.vehicle-facts-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  /* color: #000; */
}

.vehicle-facts-list dd {
  margin: 0;
  font-size: 13px;
  color: rgba(248,250,252,0.98);
}

.vehicle-details-card {
  margin-top: 18px;
  max-width: 1100px;
}

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

.vehicle-details-col {
  min-width: 0;
  display: flex;
}

.vehicle-details-col>div {
  width: 50%;
}

.vehicle-full-spec-card {
  margin-top: 20px;
  max-width: 1100px;
}

.vehicle-full-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.vehicle-spec-column {
  min-width: 0;
}

.vehicle-options-wrap {
  padding-top: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 8px;
}

.vehicle-options-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 16px;
}

@media (max-width: 720px) {
  .vehicle-full-spec-grid {
    grid-template-columns: 1fr;
  }
}

.vehicle-public-estimates-card {
  margin-top: 20px;
  max-width: 1100px;
}

.vehicle-documents-card {
  margin-top: 20px;
  max-width: 1100px;
}

.vehicle-documents-card .vehicle-pdf-list li > .muted.small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.vehicle-pdf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vehicle-pdf-list li {
  margin-bottom: 10px;
}

.vehicle-pdf-list li:last-child {
  margin-bottom: 0;
}

.vehicle-notes-card {
  margin-top: 18px;
  max-width: 1100px;
}

.vehicle-notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 18px;
}

.vehicle-notes-col {
  min-width: 0;
}

@keyframes vehicleGlow {
  0% {
    box-shadow: 0 12px 40px rgba(15,23,42,0.8);
  }
  100% {
    box-shadow: 0 20px 70px rgba(15,23,42,0.95);
  }
}

/* New combined summary card under hero */
.vehicle-summary-card {
  margin-top: 18px;
  max-width: 1100px;
}

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

.vehicle-summary-col {
  min-width: 0;
}

.vehicle-summary-col--wide {
  grid-column: 1 / -1; /* full width row for comments & parts */
}

.vehicle-summary-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.vehicle-summary-notes-block {
  min-width: 0;
}

@media (max-width: 980px) {
  body.page-app .vehicle-hero-card {
    grid-template-columns: 1fr;
    padding: 0px;
  }

  /* On mobile, hero becomes fluid instead of fixed 800px */
  .vehicle-hero-image-wrap {
    width: 100%;
    height: auto;
  }

  .vehicle-hero-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  .vehicle-facts {
    width: 100%;
  }

  .vehicle-gallery-strip {
    padding: 8px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vehicle-summary-grid,
  .vehicle-summary-notes {
    grid-template-columns: 1fr;
  }

  body.page-app .vehicle-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .vehicle-header-aside {
    justify-items: flex-start;
  }
}

/* Export as PDF: print only the card marked .export-print-root (Purco.printExportArea) */
.export-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media print {
  @page {
    margin: 12mm;
  }

  /* Vehicles list: wide table — use landscape so Title / Summary columns are not clipped off the page */
  @page purco-vehicles-export {
    size: A4 landscape;
    margin: 8mm;
  }

  body.export-print-active * {
    visibility: hidden;
  }

  body.export-print-active .export-print-root.export-print-target,
  body.export-print-active .export-print-root.export-print-target * {
    visibility: visible;
  }

  body.export-print-active .export-print-root.export-print-target .export-print-exclude {
    display: none !important;
  }

  body.export-print-active .export-print-root.export-print-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 0 12px !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    color: #111 !important;
  }

  body.export-print-active .export-print-root.export-print-target.vehicles-results-card {
    page: purco-vehicles-export;
  }

  body.export-print-active .export-print-root.export-print-target .table-wrap {
    overflow: visible !important;
  }

  body.export-print-active .export-print-root.export-print-target thead {
    display: table-header-group;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table thead {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table tbody {
    display: table-row-group !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table tbody tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table tbody td {
    display: table-cell !important;
    padding: 8px 10px !important;
    border-top: 1px solid #ccc !important;
    text-align: inherit !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table tbody td::before {
    content: none !important;
    display: none !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-results-table tbody tr:hover td {
    background: #fff !important;
  }

  body.export-print-active .export-print-root.export-print-target .table th,
  body.export-print-active .export-print-root.export-print-target .table td {
    color: #111 !important;
    border-color: #ccc !important;
    background: #fff !important;
  }

  body.export-print-active .export-print-root.export-print-target .muted,
  body.export-print-active .export-print-root.export-print-target .muted.small {
    color: #444 !important;
  }

  body.export-print-active .export-print-root.export-print-target a {
    color: #111 !important;
    text-decoration: none !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicle-thumb {
    max-height: 52px !important;
    width: auto !important;
  }

  body.export-print-active .export-print-root.export-print-target .pill,
  body.export-print-active .export-print-root.export-print-target .status {
    border-color: #ccc !important;
    color: #111 !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-list-screen {
    display: none !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicles-print-table-wrap {
    display: block !important;
  }

  /* Same data as “Summary” — hide in PDF to save width (Summary sits right after Mileage) */
  body.export-print-active .export-print-root.export-print-target.vehicles-results-card .vehicle-print-col-dup {
    display: none !important;
  }

  body.export-print-active .export-print-root.export-print-target.vehicles-results-card .vehicles-results-table {
    font-size: 8pt !important;
    table-layout: fixed;
    width: 100%;
  }

  body.export-print-active .export-print-root.export-print-target.vehicles-results-card .vehicles-results-table th,
  body.export-print-active .export-print-root.export-print-target.vehicles-results-card .vehicles-results-table td {
    padding: 4px 5px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  body.export-print-active .export-print-root.export-print-target .vehicle-print-summary-cell {
    white-space: normal !important;
    max-width: none;
    width: 22%;
    vertical-align: top !important;
  }

  body.export-print-active .export-print-root.export-print-target .vehicle-print-summary-block {
    font-size: 8pt !important;
    line-height: 1.35 !important;
  }
}