:root {
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #ff9900;
  --accent-glow: rgba(255, 153, 0, 0.45);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #040404 0%, #090909 48%, #050505 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.noise,
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cursor-glow {
  z-index: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 153, 0, 0.08),
    transparent 60%
  );
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.noise {
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0.7px, transparent 1px),
    radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.3) 0.8px, transparent 1.1px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.35) 0.6px, transparent 1px),
    radial-gradient(circle at 60% 15%, rgba(255, 255, 255, 0.25) 0.8px, transparent 1px);
  background-size: 220px 220px, 260px 260px, 280px 280px, 320px 320px;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 6, 7, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name {
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-cta:hover {
  color: var(--accent);
  border-color: rgba(255, 153, 0, 0.35);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.btn {
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.94), rgba(255, 126, 0, 0.9));
  color: #111;
  box-shadow:
    0 0 0 1px rgba(255, 196, 120, 0.2),
    0 14px 34px rgba(255, 153, 0, 0.22),
    0 0 28px rgba(255, 153, 0, 0.22);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.danger-btn {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}
.danger-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 196, 120, 0.3),
    0 18px 40px rgba(255, 153, 0, 0.32),
    0 0 36px rgba(255, 153, 0, 0.28);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Hero background — geo-located slideshow ─────────────────────────────── */

/* Oversized so parallax translations never reveal a gap */
.hero-bg {
  position: absolute;
  top:    -160px;
  bottom: -40px;
  left:   -40px;
  right:  -40px;
  z-index: 0;
  overflow: hidden;
  filter: saturate(0.70) brightness(0.58);
  will-change: transform;
}

/* Individual slides — crossfade between them */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: opacity, transform;
}

.hero-bg-slide.active            { opacity: 1; }

/* Each variant starts/ends at a different corner/direction for variety */
.hero-bg-slide.kb-1.active { animation: kenBurns1 18s ease-out forwards; }
.hero-bg-slide.kb-2.active { animation: kenBurns2 18s ease-out forwards; }
.hero-bg-slide.kb-3.active { animation: kenBurns3 18s ease-out forwards; }
.hero-bg-slide.kb-4.active { animation: kenBurns4 18s ease-out forwards; }

/* ── Location badge ──────────────────────────────────────────────────────── */

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.06);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  animation: fadeSlideDown 0.55s ease forwards;
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* Left-side text contrast gradient */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(4, 4, 4, 0.94) 0%,
    rgba(4, 4, 4, 0.72) 38%,
    rgba(4, 4, 4, 0.22) 65%,
    rgba(4, 4, 4, 0.04) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade into next section */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, #050505, transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero copy — plain text, no card chrome */
.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-kicker,
.label,
.service-index,
.mini-card-label {
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent-glow);
}

h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.section-text,
.service-card p,
.process-step p,
.faq-item p,
.cta-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.8vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ── Stats row (glassmorphism card below hero copy) ─────────────────────── */

.stats-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 520px;
  backdrop-filter: blur(14px);
}

.stats-row::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.stat {
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.stat-label,
.service-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

/* ── Shared card chrome ──────────────────────────────────────────────────── */

.service-card,
.gallery-card,
.contact-card,
.process-step,
.faq-item,
.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.service-card::before,
.gallery-card::before,
.contact-card::before,
.process-step::before,
.faq-item::before,
.mini-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.section-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section,
.cta-band {
  padding: 34px 0 80px;
}

.section-heading {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 2px;
  bottom: -1px;
  left: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.section-kicker,
.label,
.service-index,
.mini-card-label {
  font-size: 11px;
  letter-spacing: 0.22em;
}

.section-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.28em;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-text {
  margin: 0;
  max-width: 58ch;
}

/* ── Service cards ───────────────────────────────────────────────────────── */

.services-grid,
.faq-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.process-grid {
  position: relative;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.service-card,
.faq-item,
.contact-card,
.process-step {
  padding: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card h3,
.faq-item h3 {
  margin: 12px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.service-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Booking wizard ──────────────────────────────────────────────────────── */

/* Progress stepper */
.wiz-progress {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 36px auto 52px;
}
.wiz-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wiz-prog-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.wiz-prog-step--active .wiz-prog-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent-glow);
}
.wiz-prog-step--done .wiz-prog-dot {
  background: rgba(255, 153, 0, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}
.wiz-prog-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.wiz-prog-step--active .wiz-prog-label,
.wiz-prog-step--done .wiz-prog-label { color: var(--text); }
.wiz-prog-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

/* Panes */
.wiz-pane { display: none; animation: fadeSlideDown 0.28s ease; }
.wiz-pane--active { display: block; }

.wiz-pane__title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 0 0 8px;
}
.wiz-pane__sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Inline validation error */
.wiz-error {
  font-size: 13px;
  color: rgba(248, 113, 113, 0.9);
  margin: 0 0 8px;
}

/* Step 1 — Category cards */
.wiz-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 860px;
}
@media (max-width: 680px) { .wiz-cat-grid { grid-template-columns: 1fr; } }

.wiz-cat-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wiz-cat-card:hover {
  border-color: rgba(255, 153, 0, 0.3);
  transform: translateY(-2px);
}
.wiz-cat-card--selected {
  border-color: var(--accent);
  background: rgba(255, 153, 0, 0.06);
  box-shadow: 0 0 0 1px var(--accent);
}
.wiz-cat-card--coming-soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.wiz-coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: 4px;
  padding: 2px 7px;
}
.wiz-cat-card__icon {
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}
.wiz-cat-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.wiz-cat-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Step 2 — Vehicle size row */
.wiz-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.wiz-size-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.wiz-size-btn:hover {
  background: rgba(255, 153, 0, 0.15);
  border-color: rgba(255, 153, 0, 0.4);
}
.wiz-size-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}

/* Step 2 — Package cards */
.wiz-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.wiz-pkg-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.wiz-pkg-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.wiz-pkg-card:hover {
  border-color: rgba(255, 153, 0, 0.25);
  transform: translateY(-2px);
}
.wiz-pkg-card--selected {
  border-color: var(--accent);
  background: rgba(255, 153, 0, 0.06);
  box-shadow: 0 0 0 1px var(--accent);
}
.wiz-pkg-card--featured { border-color: rgba(255, 153, 0, 0.22); }
.wiz-pkg-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.wiz-pkg-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.wiz-pkg-card__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.15s;
}
.wiz-pkg-card__list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wiz-pkg-card__list li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.wiz-pkg-card__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Steps 2 & 3 — Add-on rows */
.wiz-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
.wiz-addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.wiz-addon-row:has(input:checked) {
  border-color: rgba(255, 153, 0, 0.38);
  background: rgba(255, 153, 0, 0.05);
}
.wiz-addon-row:hover { border-color: rgba(255, 153, 0, 0.22); }
.wiz-addon-chk {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.wiz-addon-row__name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
}
.wiz-addon-row__price {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

/* Pane navigation */
.wiz-pane__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

/* Step 4 — Price bar */
.wiz-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 153, 0, 0.06);
  border: 1px solid rgba(255, 153, 0, 0.22);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.wiz-price-bar__left { flex: 1; min-width: 0; }
.wiz-price-bar__breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wiz-price-bar__breakdown span {
  font-size: 13px;
  color: var(--muted);
}
.wiz-price-bar__breakdown span:first-child { color: var(--text); font-weight: 500; }
.wiz-price-bar__note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  opacity: 0.7;
}
.wiz-price-bar__total {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .wiz-price-bar { flex-direction: column; align-items: flex-start; }
}

/* Step 4 — Contact form */
.wiz-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wiz-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .wiz-form-row { grid-template-columns: 1fr; } }

/* ── Process ─────────────────────────────────────────────────────────────── */

.process-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 153, 0, 0.12),
    rgba(255, 153, 0, 0.42),
    rgba(255, 153, 0, 0.12)
  );
  box-shadow: 0 0 24px rgba(255, 153, 0, 0.10);
}

.process-step {
  z-index: 1;
  min-height: 220px;
}

.process-number {
  margin-bottom: 18px;
  font-size: 34px;
  letter-spacing: -0.06em;
  color: var(--accent);
}

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 153, 0, 0.12), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(255, 153, 0, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-right: 10px;
}

.cta-copy h3 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.contact-card {
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.select option,
.input option {
  background: #111;
  color: #f5f5f5;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(255, 153, 0, 0.55);
  box-shadow:
    0 0 0 4px rgba(255, 153, 0, 0.08),
    0 0 22px rgba(255, 153, 0, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  padding: 0 0 44px;
}

.footer-shell {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-phone a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-phone a:hover { opacity: 0.75; }

.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s ease;
}

.footer-social-link:hover { color: var(--accent); }

.nav-phone {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.nav-phone:hover { opacity: 0.75; }

/* ── Sticky CTA ──────────────────────────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.24);
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(16px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 153, 0, 0.08);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 153, 0, 0.08),
    0 0 0 1px rgba(255, 196, 120, 0.3),
    0 18px 40px rgba(255, 153, 0, 0.22),
    0 0 36px rgba(255, 153, 0, 0.22);
}

/* ── Reveal animation ────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.65; }
  50%       { transform: scale(1.05); opacity: 0.95; }
}

/* Zoom out from center */
@keyframes kenBurns1 {
  from { transform: scale(1.09) translate(0%,     0%);    }
  to   { transform: scale(1.0)  translate(0%,     0%);    }
}
/* Drift right-to-left while pulling back */
@keyframes kenBurns2 {
  from { transform: scale(1.10) translate(-2.5%, -1.2%); }
  to   { transform: scale(1.0)  translate( 1.2%,  0.6%); }
}
/* Slow push in from bottom-left */
@keyframes kenBurns3 {
  from { transform: scale(1.0)  translate( 1.2%,  0.5%); }
  to   { transform: scale(1.09) translate(-1.0%, -1.2%); }
}
/* Float left while zooming out from top-right */
@keyframes kenBurns4 {
  from { transform: scale(1.08) translate( 1.8%,  0.8%); }
  to   { transform: scale(1.0)  translate(-0.6%, -1.0%); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;    box-shadow: 0 0 8px var(--accent-glow);  }
  50%      { opacity: 0.55; box-shadow: 0 0 14px var(--accent-glow); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .cta-shell {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-line {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-inner {
    padding: 80px 0 80px;
  }

  .contact-card,
  .service-card,
  .faq-item {
    padding: 22px;
  }

  .cta-shell {
    padding: 22px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .services-grid,
  .faq-grid,
  .process-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  .sticky-cta {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Dealer access — left-side sticky entry point ────────────────────────── */

.dealer-access {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.30);
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.40),
    0 0 16px rgba(255, 153, 0, 0.07);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dealer-access::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.dealer-access:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 196, 120, 0.22),
    0 0 28px rgba(255, 153, 0, 0.20);
}

/* ── Footer dealer link ──────────────────────────────────────────────────── */

.footer-dealer-link,
.footer-back {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s ease;
}

.footer-dealer-link:hover,
.footer-back:hover {
  color: var(--accent);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 6px;
}

/* ── Dealer hero ─────────────────────────────────────────────────────────── */

.dealer-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dealer-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 88% at 80% 50%, rgba(255, 153, 0, 0.055) 0%, transparent 64%),
    radial-gradient(ellipse at 18% 78%, rgba(255, 153, 0, 0.022) 0%, transparent 40%),
    linear-gradient(180deg, #030303 0%, #070707 60%, #050505 100%);
}

.dealer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    rgba(4, 4, 4, 0.90) 0%,
    rgba(4, 4, 4, 0.64) 42%,
    rgba(4, 4, 4, 0.10) 78%,
    rgba(4, 4, 4, 0.00) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.dealer-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, #050505, transparent);
  z-index: 1;
  pointer-events: none;
}

/* ── Dealer inquiry layout ───────────────────────────────────────────────── */

.dealer-inquiry-shell {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 153, 0, 0.12), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(255, 153, 0, 0.10), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dealer-rate-notes {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dealer-rate-notes li::marker {
  color: var(--accent);
}

.dealer-form-card {
  padding: 24px;
}

/* ── Form row helpers ────────────────────────────────────────────────────── */

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Services checkbox grid ──────────────────────────────────────────────── */

.check-section {
  display: grid;
  gap: 12px;
}

.check-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.check-item:hover {
  border-color: rgba(255, 153, 0, 0.30);
  background: rgba(255, 153, 0, 0.04);
  color: var(--text);
}

.check-item:has(input:checked) {
  border-color: rgba(255, 153, 0, 0.42);
  background: rgba(255, 153, 0, 0.07);
  color: var(--text);
}

.check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Consent checkbox ────────────────────────────────────────────────────── */

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  cursor: pointer;
  line-height: 1.55;
}

.consent-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-check a {
  color: var(--accent);
  text-decoration: none;
}

.consent-check a:hover {
  text-decoration: underline;
}

/* ── Dealer responsive ───────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .dealer-inquiry-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  /* Hide the floating dealer-access widget on mobile — it's in the nav instead */
  .dealer-access {
    display: none;
  }

  /* Stack vehicle identity inputs on mobile */
  .vehicle-id-row {
    flex-direction: column;
  }

  .vehicle-id-row .input:first-child,
  .vehicle-id-row .input:nth-child(2),
  .vehicle-id-row .input:last-child {
    flex: 1 1 auto;
    max-width: none !important;
  }

  .vehicle-type-row {
    flex-direction: column;
  }

  .vehicle-type-row .input {
    flex: 1 1 auto;
    max-width: none;
  }

  /* Footer on mobile */
  .footer-right {
    gap: 4px;
  }

  /* Nav phone — smaller on tight screens */
  .nav-phone {
    font-size: 11px;
  }
}

/* ── Photo gallery ───────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 290px 180px 200px;
  grid-template-areas:
    "hero hero p2"
    "p3   p4   p2"
    "p3   p5   p6";
  gap: 10px;
}

.gallery-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  margin: 0;
}

.gallery-photo:nth-child(1) { grid-area: hero; }
.gallery-photo:nth-child(2) { grid-area: p2; }
.gallery-photo:nth-child(3) { grid-area: p3; }
.gallery-photo:nth-child(4) { grid-area: p4; }
.gallery-photo:nth-child(5) { grid-area: p5; }
.gallery-photo:nth-child(6) { grid-area: p6; }

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.gallery-photo:hover img {
  transform: scale(1.04);
}

.gallery-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 240px 200px 200px 200px;
    grid-template-areas:
      "hero hero"
      "p2   p3"
      "p4   p5"
      "p6   p6";
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hero"
      "p2"
      "p3"
      "p4"
      "p5"
      "p6";
  }
  .gallery-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ── Trust tiles (Why IED) ───────────────────────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.trust-tile {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.trust-tile-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.trust-tile h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.trust-tile p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 820px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Service area text ───────────────────────────────────────────────────── */

.service-area-text {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.service-area-text strong {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Inquiry funnel (admin) ──────────────────────────────────────────────── */

.funnel-card {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.funnel-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.funnel-step:last-child {
  border-bottom: none;
}

.funnel-bar-wrap {
  width: 180px;
  flex-shrink: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.funnel-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.funnel-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 80px;
}

.funnel-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

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

/* ── Dealer churn alert (admin) ──────────────────────────────────────────── */

.churn-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.churn-alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.churn-alert-body {
  flex: 1;
  min-width: 0;
}

.churn-alert-body strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 200, 100, 0.95);
  margin-bottom: 3px;
}

.churn-alert-names {
  font-size: 12px;
  color: var(--muted);
}

.churn-alert-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.churn-alert-link:hover {
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════════════════
   DEALER PORTAL — dealer-account.html
   ════════════════════════════════════════════════════════════════════════════ */

/* Account for sticky batch bar — portal pages only */
.page-portal .site-shell {
  padding-bottom: 80px;
}

/* ── Portal Banner ───────────────────────────────────────────────────────── */

.portal-banner {
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.035) 0%, transparent 100%);
}

.portal-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.portal-identity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.32);
  background: rgba(255, 153, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  width: fit-content;
}

.portal-tier-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.portal-tier-badge.tier-silver  { border-color: rgba(190,200,216,0.32); background: rgba(190,200,216,0.06); color: #bec8d8; }
.portal-tier-badge.tier-gold    { border-color: rgba(245,158,11,0.32);  background: rgba(245,158,11,0.06);  color: #f59e0b; }
.portal-tier-badge.tier-elite   { border-color: rgba(248,113,113,0.32); background: rgba(248,113,113,0.06); color: #f87171; }

.portal-terms-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(148,163,184,0.06);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
}

.portal-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.portal-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.portal-stats {
  max-width: 380px;
  flex-shrink: 0;
}

/* ── Batch form meta row ─────────────────────────────────────────────────── */

.batch-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
  margin-bottom: 32px;
}

.batch-meta-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.field-label-muted {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
  text-transform: none;
  font-size: 10px;
  margin-left: 6px;
}

/* ── Location toggle ─────────────────────────────────────────────────────── */

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.toggle-opt input[type="radio"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-opt:has(input:checked) {
  border-color: rgba(255, 153, 0, 0.42);
  background: rgba(255, 153, 0, 0.06);
  color: var(--text);
}

/* ── Vehicles list header ────────────────────────────────────────────────── */

.vehicles-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Vehicle card ────────────────────────────────────────────────────────── */

.vehicle-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vehicle-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.vehicle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-number-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.vehicle-remove-btn {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 999px;
}

.vehicle-card-body {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.vehicle-card-subtotal {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.vehicle-subtotal-val {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-left: 8px;
}

/* ── Tier options ────────────────────────────────────────────────────────── */

.tier-section,
.addon-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-option {
  position: relative;
}

.tier-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tier-option-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-width: 116px;
  text-align: center;
}

.tier-option-label:hover {
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.04);
}

.tier-option input:checked + .tier-option-label {
  border-color: rgba(255, 153, 0, 0.5);
  background: rgba(255, 153, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tier-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.tier-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.tier-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  transition: color 0.2s ease;
}

.tier-option input:checked + .tier-option-label .tier-name {
  color: var(--accent);
}

.tier-option input:checked + .tier-option-label .tier-price {
  color: rgba(255, 153, 0, 0.75);
}

/* ── Policy summary card ─────────────────────────────────────────────────── */

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.policy-tile {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.policy-tile-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.policy-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.policy-tile p em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

/* ── Add-on grid (override check-grid for 3 cols) ───────────────────────── */

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

.addon-price {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin-left: 4px;
}

/* ── Upcoming batches ────────────────────────────────────────────────────── */

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

.batch-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.batch-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.batch-card-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.batch-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.batch-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-confirmed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: rgb(134, 239, 172);
}

.status-pending {
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.28);
  color: var(--accent);
}

.batch-card-vehicles {
  flex: 1;
}

.batch-vehicle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.batch-vehicle-row:last-child {
  border-bottom: none;
}

.batch-vehicle-name {
  font-size: 13px;
  color: var(--muted);
}

.batch-vehicle-service {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-tag       { color: var(--text); }
.tier-tag-low   { color: rgba(255, 255, 255, 0.42); }
.tier-tag-high  { color: var(--accent); }
.tier-tag-top   { color: var(--accent); text-shadow: 0 0 10px rgba(255, 153, 0, 0.4); }

/* ── Tier badge — admin table & pipeline ─────────────────────────────────── */

.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}

.tier-badge.tier-standard,
.tier-standard {
  color: var(--accent);
  border-color: rgba(255, 153, 0, 0.32);
  background: rgba(255, 153, 0, 0.10);
}

.tier-badge.tier-silver,
.tier-silver {
  color: #bec8d8;
  border-color: rgba(190, 200, 216, 0.32);
  background: rgba(190, 200, 216, 0.08);
}

.tier-badge.tier-gold,
.tier-gold {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.10);
}

.tier-badge.tier-elite,
.tier-elite {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.10);
}

.batch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.batch-card-total {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ── History list ────────────────────────────────────────────────────────── */

.history-list {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
}

.history-row:last-of-type {
  border-bottom: none;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.history-expand-btn {
  font-size: 12px;
  padding: 2px 6px;
  opacity: 0.45;
  transition: opacity 0.15s;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.history-row:hover .history-expand-btn {
  opacity: 0.8;
}

.history-detail {
  padding: 4px 24px 16px 164px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-vehicle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.history-vehicle-row:last-child {
  border-bottom: none;
}

.history-vehicle-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.history-vehicle-total {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.history-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.history-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.history-breakdown {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.history-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.history-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-done {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Sticky batch bar ────────────────────────────────────────────────────── */

.batch-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 153, 0, 0.2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.batch-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.batch-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.batch-bar-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.batch-bar-sep {
  color: rgba(255, 255, 255, 0.22);
}

.batch-bar-breakdown {
  font-size: 12px;
  color: var(--muted);
}

.batch-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.batch-bar-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.batch-bar-total {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  white-space: nowrap;
}

.batch-bar-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(134, 239, 172);
  padding: 14px 0;
}

.batch-bar-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 13px;
}

/* ── Portal responsive ───────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .batch-meta-row {
    grid-template-columns: 1fr 1fr;
  }

  .batch-meta-row .batch-meta-card:last-child {
    grid-column: 1 / -1;
  }

  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .history-date { grid-column: 1; }
  .history-status { grid-column: 2; text-align: right; }
  .history-label { grid-column: 1 / -1; }
  .history-breakdown { grid-column: 1 / -1; }
  .history-total { grid-column: 1 / -1; }

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

/* ── Portal empty state ─────────────────────────────────────────────────────── */

.portal-empty {
  margin: 0;
  padding: 40px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ── Login page ──────────────────────────────────────────────────────────────── */

.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.login-card {
  padding: 36px;
}

.login-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
}

.login-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Portal responsive ───────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .portal-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-stats {
    max-width: 100%;
    width: 100%;
  }

  .batch-meta-row {
    grid-template-columns: 1fr;
  }

  .batch-meta-row .batch-meta-card:last-child {
    grid-column: auto;
  }

  .tier-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .addon-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .batch-bar-left {
    display: none;
  }

  .batch-bar-note {
    display: none;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .history-status {
    text-align: left;
    grid-column: auto;
    width: fit-content;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Admin section layout ────────────────────────────────────────────────────── */

.admin-section {
  padding: 80px 0;
}

.admin-section + .admin-section {
  padding-top: 0;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.admin-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  white-space: nowrap;
}

/* ── KPI cards ───────────────────────────────────────────────────────────────── */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.kpi-card:hover {
  border-color: rgba(255, 153, 0, 0.3);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Charts ──────────────────────────────────────────────────────────────────── */

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.chart-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

/* ── Add-on performance card ─────────────────────────────────────────────────── */

.addon-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.addon-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.addon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-row {
  display: grid;
  grid-template-columns: 1fr 60px 100px 80px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.addon-row-name {
  font-weight: 500;
}

.addon-row-count {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.addon-row-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.addon-row-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.addon-row-pct {
  text-align: right;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Pipeline board ──────────────────────────────────────────────────────────── */

.pipeline-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.pipeline-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.pipeline-col-header {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-pending    { background: rgba(255,200,0,0.12);  color: #ffd700; }
.pipeline-confirmed  { background: rgba(96,165,250,0.12); color: #60a5fa; }
.pipeline-scheduled  { background: rgba(74,222,128,0.12); color: #4ade80; }
.pipeline-inprogress { background: rgba(255,153,0,0.15);  color: var(--accent); }

.pipeline-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}

.pipeline-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-card-dealer {
  font-weight: 700;
  font-size: 14px;
}

.pipeline-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.pipeline-card-value {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.pipeline-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pipeline-action-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.pipeline-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pipeline-action-btn.danger:hover {
  border-color: #f87171;
  color: #f87171;
}

/* ── Dealer table ────────────────────────────────────────────────────────────── */

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead tr {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.dealer-name-cell {
  font-weight: 600;
}

.dealer-test-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.dealer-inactive-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.dealer-nodocs-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(249,115,22,0.15);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.table-action-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.table-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Invite / create dealer shell ────────────────────────────────────────────── */

.invite-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.invite-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}

.invite-step {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.invite-step-num {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 1px;
}

.invite-send-card {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.invite-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.dealer-create-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

/* ── Admin responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .pipeline-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .charts-row {
    grid-template-columns: 1fr;
  }

  .pipeline-cols {
    grid-template-columns: 1fr;
  }

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

  .addon-row {
    grid-template-columns: 1fr 60px 80px;
  }

  .addon-row-bar-wrap {
    display: none;
  }
}

@media (max-width: 600px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .kpi-value {
    font-size: 26px;
  }
}

/* ── Edit Dealer Modal ───────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: #111113;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Batch detail modal ──────────────────────────────────────────────────────── */

.modal-card-wide { max-width: 760px; }

/* ── Sign agreement modal — two-column with PDF viewer ──────────────────────── */

.sign-modal-card {
  max-width: min(92vw, 980px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sign-modal-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: 0;
  flex: 1;
}

.sign-pdf-pane {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 560px;
}

.sign-sig-pane {
  overflow-y: auto;
  padding-right: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .sign-modal-card {
    max-height: 95vh;
    overflow-y: auto;
  }
  .sign-modal-body {
    grid-template-columns: 1fr;
  }
  .sign-pdf-pane {
    min-height: 320px;
  }
}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.batch-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  max-height: 38vh;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-vehicle-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.bv-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}

.bv-tier-price {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.bv-notes {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.bv-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bv-addon {
  font-size: 11px;
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
}

.bv-addon-none {
  font-size: 12px;
  color: var(--muted);
}

.bv-subtotal {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.batch-modal-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-totals-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.batch-total-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-total-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.batch-total-val {
  font-size: 22px;
  font-weight: 700;
}

.batch-final-input {
  width: 160px;
  padding: 8px 12px;
  font-size: 15px;
}

.batch-dealer-notes {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.pipeline-card { cursor: pointer; }

/* ── Batch vehicle inline edit ───────────────────────────────────────────────── */

.bv-edit-btn {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  white-space: nowrap;
}

.bv-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bv-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bv-save-btn {
  grid-column: 1 / -1;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
}

.ghost-btn.danger-btn {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.ghost-btn.danger-btn:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.6);
}

/* ── Inquiry section ─────────────────────────────────────────────────────────── */

.inquiry-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.filter-btn.active {
  background: rgba(255, 153, 0, 0.15);
  border-color: rgba(255, 153, 0, 0.4);
  color: var(--accent);
}

.inquiry-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.inquiry-type-badge.consumer { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.inquiry-type-badge.fleet    { background: rgba(255, 153, 0, 0.15);  color: var(--accent); }

.inquiry-name    { font-weight: 600; font-size: 14px; }
.inquiry-contact { font-size: 12px; color: var(--muted); }
.inquiry-service { font-size: 13px; color: var(--muted); max-width: 200px; }

.inquiry-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.inquiry-status.pending   { background: rgba(251, 191, 36,  0.15); color: #fbbf24; }
.inquiry-status.approved  { background: rgba(74,  222, 128, 0.15); color: #4ade80; }
.inquiry-status.denied    { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.inquiry-status.scheduled { background: rgba(96,  165, 250, 0.15); color: #60a5fa; }
.inquiry-status.completed { background: rgba(74,  222, 128, 0.15); color: #4ade80; }
.inquiry-status.converted { background: rgba(255, 153,  0,  0.15); color: #ff9900; }

/* Inquiry detail modal body */
.inquiry-detail-body {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
}

.inquiry-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.inquiry-detail-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inquiry-detail-value {
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
}

/* ── Scheduling sub-form (inside inquiry modal) ───────────────────────────── */
.schedule-sub-form {
  background: rgba(255, 153, 0, 0.04);
  border: 1px solid rgba(255, 153, 0, 0.18);
  border-radius: 10px;
  padding: 18px 20px 16px;
  margin-bottom: 16px;
}

.schedule-sub-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ── Promo code row ──────────────────────────────────────────────────────── */
.promo-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.promo-row .input {
  flex: 1;
  min-width: 0;
}

/* ── Small button variant ─────────────────────────────────────────────────── */
.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  height: auto;
}

/* ── Vehicle structured input rows (dealer portal batch form) ─────────────── */
.vehicle-id-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.vehicle-id-row .input:first-child {
  flex: 0 0 100px;
}

.vehicle-id-row .input:nth-child(2) {
  flex: 1 1 160px;
}

.vehicle-id-row .input:last-child {
  flex: 2 1 200px;
}

.vehicle-type-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.vehicle-type-row .select {
  flex: 1 1 auto;
}

.vehicle-type-row .input {
  flex: 0 0 130px;
}

/* ── Dealer portal — batch card actions (cancel / edit pending) ─────────────── */

.batch-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 24px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Admin notes log ─────────────────────────────────────────────────────────── */

.notes-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.notes-log-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notes-log-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.notes-log-text {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.55;
}

/* ── Edit batch modal — existing vehicle row ─────────────────────────────────── */

.eb-existing-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  transition: opacity 0.2s;
}

/* ── Admin dashboard — mobile responsive improvements ────────────────────────── */

@media (max-width: 860px) {
  .admin-section-head {
    flex-direction: column;
    gap: 12px;
  }

  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5),
  .admin-table th:nth-child(7),
  .admin-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 600px) {
  .admin-section {
    padding: 48px 0;
  }

  .modal-card {
    padding: 20px;
    border-radius: 12px;
  }

  .batch-totals-row {
    flex-direction: column;
    gap: 14px;
  }

  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4),
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6) {
    display: none;
  }

  .pipeline-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-action-btn {
    text-align: center;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions .btn,
  .modal-actions .ghost-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .batch-bar-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .batch-bar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Activity feed ───────────────────────────────────────────────────────────── */

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.activity-row-left {
  flex: 1;
  min-width: 0;
}

.activity-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-row-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.activity-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.activity-row-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-complete {
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: rgb(165, 180, 252);
}

.status-cancel {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: rgb(252, 165, 165);
}

/* ── CRM / segmentation ──────────────────────────────────────────────────────── */

.crm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.crm-tile {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.crm-active  { border-color: rgba(34, 197, 94, 0.2); }
.crm-risk    { border-color: rgba(255, 153, 0, 0.2); }
.crm-lapsed  { border-color: rgba(239, 68, 68, 0.2); }
.crm-new     { border-color: rgba(99, 102, 241, 0.2); }

.crm-tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.crm-tile-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.crm-active  .crm-tile-value { color: rgb(134, 239, 172); }
.crm-risk    .crm-tile-value { color: var(--accent); }
.crm-lapsed  .crm-tile-value { color: rgb(252, 165, 165); }
.crm-new     .crm-tile-value { color: rgb(165, 180, 252); }

.crm-tile-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.crm-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.crm-panel {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
}

.crm-panel-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.crm-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.crm-list-row:last-child {
  border-bottom: none;
}

.crm-list-label {
  color: var(--muted);
}

.crm-list-val {
  font-weight: 600;
}

@media (max-width: 900px) {
  .crm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .crm-grid,
  .crm-lower {
    grid-template-columns: 1fr;
  }
}

/* ── B2B trust bar (dealers.html) ────────────────────────────────────────── */

.b2b-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 153, 0, 0.18);
  background: rgba(255, 153, 0, 0.04);
}

.b2b-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 20px;
  font-size: 13px;
  color: rgba(245, 245, 245, 0.9);
}

.b2b-trust-item strong {
  color: var(--fg);
}

.b2b-trust-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.b2b-trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .b2b-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
  }

  .b2b-trust-divider {
    display: none;
  }

  .b2b-trust-item {
    padding: 0;
  }
}

/* ── WCAG 2.1 AA — global focus indicators ───────────────────────────────── */

/* Keyboard-only focus ring for all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons already have their own visible hover/active states; supplement with ring */
.btn:focus-visible,
.ghost-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Nav links */
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Consent checkboxes */
.consent-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline only when custom one is provided */
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
}

/* Skip-to-content link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   SERVICE CALENDAR — admin-dashboard.html
   ════════════════════════════════════════════════════════════════════════════ */

.cal-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-month-label {
  font-size: 15px;
  font-weight: 700;
  min-width: 168px;
  text-align: center;
  letter-spacing: -0.01em;
}

.cal-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 18px;
}

/* ── Calendar shell ──────────────────────────────────────────────────────── */

.cal-wrap {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day-headers > div {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* ── Calendar cells ──────────────────────────────────────────────────────── */

.cal-cell {
  min-height: 100px;
  padding: 8px 7px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.cal-other-month {
  opacity: 0.3;
}

.cal-cell.cal-today {
  background: rgba(255, 153, 0, 0.06);
}

.cal-cell.cal-conflict {
  background: rgba(248, 113, 113, 0.04);
}

.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  line-height: 1;
}

.cal-cell.cal-today .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 11px;
  margin-bottom: 4px;
}

/* ── Calendar events ─────────────────────────────────────────────────────── */

.cal-event {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: none;
  text-align: left;
  background: none;
  transition: opacity 0.15s, transform 0.1s;
}

.cal-event:hover {
  opacity: 0.78;
  transform: translateX(1px);
}

.cal-event:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cal-event.cal-status-pending {
  background: rgba(147, 197, 253, 0.12);
  border-left: 2px dashed rgba(147, 197, 253, 0.5);
  color: rgba(147, 197, 253, 0.85);
}

.cal-event.cal-status-confirmed {
  background: rgba(253, 224, 71, 0.11);
  border-left: 2px solid rgba(253, 224, 71, 0.5);
  color: rgba(253, 224, 71, 0.85);
}

.cal-event.cal-status-scheduled {
  background: rgba(255, 153, 0, 0.14);
  border-left: 2px solid var(--accent);
  color: #ffc84d;
}

.cal-event.cal-status-in_progress {
  background: rgba(74, 222, 128, 0.13);
  border-left: 2px solid #4ade80;
  color: #4ade80;
}

.cal-event.cal-status-completed {
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.cal-event-meta {
  font-size: 10px;
  opacity: 0.7;
}

/* ── Conflict badge ──────────────────────────────────────────────────────── */

.cal-conflict-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(248, 113, 113, 0.22);
  color: #f87171;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* ── Legend ──────────────────────────────────────────────────────────────── */

.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
}

.cal-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cal-dot-pending    { background: rgba(147, 197, 253, 0.70); }
.cal-dot-confirmed  { background: rgba(253, 224, 71, 0.70); }
.cal-dot-scheduled  { background: rgba(255, 153, 0, 0.70); }
.cal-dot-inprogress { background: rgba(74, 222, 128, 0.70); }
.cal-dot-completed  { background: rgba(255, 255, 255, 0.20); }
.cal-dot-conflict   { background: rgba(248, 113, 113, 0.55); }

.cal-legend-label {
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .cal-cell {
    min-height: 72px;
    padding: 6px 5px;
  }

  .cal-event {
    font-size: 10px;
    padding: 2px 4px;
  }

  .cal-month-label {
    min-width: 130px;
    font-size: 13px;
  }
}

@media (max-width: 540px) {
  .cal-cell {
    min-height: 50px;
    padding: 4px 3px;
  }

  /* Hide text labels — show dot indicator only */
  .cal-event {
    display: none;
  }

  .cal-cell.has-events .cal-day-num::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin: 3px auto 0;
  }

  .cal-conflict-badge {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — HAMBURGER NAV (mobile)
   ════════════════════════════════════════════════════════════════════════════ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.15s;
}

.hamburger.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .page-admin .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 82vw);
    z-index: 200;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    flex-direction: column;
    align-items: flex-start;
    padding: 72px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-admin .nav.nav-open {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  }

  .page-admin .nav a,
  .page-admin .nav .ghost-btn,
  .page-admin .nav .nav-cta {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
  }

  .page-admin .nav a:hover,
  .page-admin .nav .ghost-btn:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — GLOBAL SEARCH OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */

.admin-search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
}

.admin-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.admin-search-overlay[hidden] { display: none; }

.admin-search-inner {
  width: min(600px, calc(100vw - 32px));
  background: rgba(12, 12, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.admin-search-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.admin-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.admin-search-results {
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.search-result-type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 50px;
}

.search-result-text {
  min-width: 0;
}

.search-result-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — REVENUE FORECAST CARD
   ════════════════════════════════════════════════════════════════════════════ */

.forecast-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.forecast-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.forecast-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.forecast-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
}

.forecast-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.forecast-panel-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.forecast-panel-sub {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .forecast-panels {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — BULK BATCH ACTION BAR
   ════════════════════════════════════════════════════════════════════════════ */

.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(255, 153, 0, 0.07);
  border: 1px solid rgba(255, 153, 0, 0.22);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bulk-selected-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-right: auto;
}

.bulk-confirm-btn {
  font-size: 13px;
  padding: 8px 18px;
}

/* Select-all checkbox wrapper in pipeline header */
.pipeline-select-all-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  cursor: pointer;
}

.pipeline-select-all-wrap input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Checkbox on each pending card */
.pipeline-card-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 2;
}

.pipeline-card {
  position: relative; /* ensure checkbox positioning works */
}

/* Primary action button (Confirm) */
.pipeline-action-btn.pipeline-action-primary {
  background: rgba(255, 153, 0, 0.16);
  border-color: rgba(255, 153, 0, 0.45);
  color: var(--accent);
  font-weight: 600;
}

.pipeline-action-btn.pipeline-action-primary:hover {
  background: rgba(255, 153, 0, 0.28);
}

/* ════════════════════════════════════════════════════════════════════════════
   CALENDAR — BLOCKED DAY, INQUIRY CHIP, REVENUE OVERLAY, CTRL BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

/* Blocked date cell */
.cal-cell.cal-blocked {
  background: rgba(248, 113, 113, 0.06);
  cursor: pointer;
}

.cal-cell.cal-blocked .cal-day-num {
  color: #f87171;
}

.cal-blocked-banner {
  font-size: 9px;
  font-weight: 700;
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-radius: 3px;
  padding: 2px 5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Consumer inquiry chip */
.cal-event.cal-event-inquiry {
  background: rgba(167, 139, 250, 0.14);
  border-left: 2px solid #a78bfa;
  color: #c4b5fd;
}

/* Revenue overlay label */
.cal-rev-overlay {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 153, 0, 0.85);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

/* Calendar control buttons */
.cal-ctrl-btn {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 7px;
}

.cal-ctrl-btn.cal-ctrl-active {
  background: rgba(255, 153, 0, 0.15);
  border-color: rgba(255, 153, 0, 0.45);
  color: var(--accent);
}

/* Legend additions */
.cal-dot-inquiry { background: rgba(167, 139, 250, 0.7); }
.cal-dot-blocked { background: rgba(248, 113, 113, 0.55); }

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — PIPELINE MOBILE RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .pipeline-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .forecast-panels {
    grid-template-columns: 1fr 1fr;
  }

  .cal-nav-controls {
    gap: 6px;
  }

  .cal-ctrl-btn {
    font-size: 10px;
    padding: 4px 9px;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .charts-row {
    grid-template-columns: 1fr;
  }

  .admin-search-overlay {
    padding-top: 60px;
    align-items: flex-start;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   DEALER PORTAL — MINI-CALENDAR
   ════════════════════════════════════════════════════════════════════════════ */

.dealer-cal {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  max-width: 380px;
}

.dealer-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dealer-cal-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dealer-cal-nav {
  font-size: 16px;
  padding: 4px 10px;
  line-height: 1;
}

.dealer-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.dealer-cal-days > div {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

.dealer-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dealer-cal-cell {
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  cursor: default;
  flex-direction: column;
  align-items: center;
}

.dealer-cal-cell.dealer-cal-other {
  opacity: 0.25;
}

.dealer-cal-cell.dealer-cal-today {
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.dealer-cal-cell.dealer-cal-has-service {
  background: rgba(255, 153, 0, 0.08);
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255, 153, 0, 0.25);
}

.dealer-cal-cell.dealer-cal-past {
  opacity: 0.35;
}

.dealer-cal-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 2px auto 0;
}

.dealer-cal-dot-scheduled  { background: var(--accent); }
.dealer-cal-dot-in_progress { background: #4ade80; }
.dealer-cal-dot-pending    { background: rgba(255, 255, 255, 0.4); }
.dealer-cal-dot-confirmed  { background: #60a5fa; }
.dealer-cal-dot-completed  { background: #4ade80; opacity: 0.6; }

.dealer-cal-cell.dealer-cal-completed {
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.15);
  opacity: 0.7;
}

/* ── Before & After Slider ──────────────────────────────────────────────────── */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: ew-resize;
  aspect-ratio: 4 / 3;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
}

/* AFTER is clipped from the right — JS moves this */
.ba-after {
  clip-path: inset(0 50% 0 0);
}

.ba-before img,
.ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Before / After labels */
.ba-tag {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ba-tag--before {
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.75);
}

.ba-tag--after {
  right: 12px;
  background: rgba(255, 153, 0, 0.85);
  color: #000;
}

/* Drag handle */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 10;
  pointer-events: none;
}

.ba-handle-bar {
  flex: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.ba-handle-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

/* Caption below each slider */
.ba-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  text-align: center;
  pointer-events: none;
}

@media (max-width: 680px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ba-slider {
    aspect-ratio: 3 / 2;
  }
}

/* ── Condition Report — Admin Modal ─────────────────────────────────────────── */

.cr-vehicle-forms {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cr-vehicle-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cr-card-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.cr-flags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cr-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  color: rgba(255,255,255,0.55);
}

.cr-flag-chip input[type="checkbox"] {
  display: none;
}

.cr-flag-chip:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.cr-flag-chip.cr-flag-active {
  background: rgba(255,153,0,0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.cr-notes-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cr-notes {
  min-height: 56px;
  font-size: 13px;
}

.cr-photo-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-photo-label {
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}

.cr-photo-input {
  display: none;
}

/* Hide native file pickers — labels trigger them via for= */
.cr-slot-input,
.cr-extras-input {
  display: none;
}

/* Photo slot grid */
.cr-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.cr-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cr-slot-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.cr-slot-btn {
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.cr-slot-preview {
  width: 100%;
  min-height: 0;
}

.cr-slot-thumb-wrap {
  position: relative;
  width: 100%;
}

.cr-slot-thumb-wrap img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.cr-slot-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 3px;
  cursor: pointer;
}

.cr-extras-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cr-photo-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  max-width: 200px;
}

.cr-photo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-photo-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.cr-photo-remove:hover { color: #f87171; }

.cr-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

/* ── Condition Report — Dealer Portal View ──────────────────────────────────── */

.cr-report-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cr-report-btn {
  font-size: 11px;
  padding: 3px 12px;
  opacity: 0.7;
}

.cr-report-btn:hover { opacity: 1; }

.cr-report-block {
  padding: 4px 0 8px;
}

.cr-report-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.cr-report-vehicle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cr-report-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cr-flag-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,153,0,0.14);
  color: var(--accent);
  border: 1px solid rgba(255,153,0,0.3);
}

.cr-no-flags {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.cr-report-notes {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}

.cr-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-photo-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.cr-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cr-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  padding: 8px 0;
}

