/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand */
  --primary:        #4F46E5;
  --primary-hover:  #4338CA;
  --primary-light:  #EEF2FF;
  --primary-rgb:    79, 70, 229;

  /* Sidebar */
  --sidebar-width:      260px;
  --sidebar-bg:         #0F172A;
  --sidebar-border:     rgba(255,255,255,0.07);
  --sidebar-text:       #94A3B8;
  --sidebar-text-hover: #F1F5F9;
  --sidebar-active-bg:  rgba(99, 102, 241, 0.14);
  --sidebar-active-txt: #A5B4FC;
  --topbar-h:           56px;

  /* Login / register — same family as sidebar, full-viewport gradient */
  --auth-shell-gradient: linear-gradient(
    145deg,
    var(--sidebar-bg) 0%,
    #1e1b4b 38%,
    #312e81 62%,
    #1e293b 82%,
    var(--sidebar-bg) 100%
  );

  /* Surfaces */
  --bg:      #F1F5F9;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --surface-elevated: #FFFFFF;
  --border:  #E2E8F0;

  /* Text */
  --text:       #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.045);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 35px rgba(15, 23, 42, 0.08);

  /* Shape */
  --radius:    0.625rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1rem;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    200ms;
}

/* ─── BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}
h1,h2,h3,h4,h5,h6 { font-weight: 650; color: var(--text); letter-spacing: -0.015em; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* ─── BOOTSTRAP OVERRIDES ────────────────────────────────────── */
.btn-primary {
  --bs-btn-bg:              var(--primary);
  --bs-btn-border-color:    var(--primary);
  --bs-btn-hover-bg:        var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg:       #3730A3;
  --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color:           var(--primary);
  --bs-btn-border-color:    var(--primary);
  --bs-btn-hover-bg:        var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}
.text-primary   { color: var(--primary) !important; }
.bg-primary     { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.btn {
  border-radius: var(--radius-sm);
  font-weight: 550;
  font-size: 0.875rem;
  transition: all var(--t) var(--ease);
  box-shadow: none;
}
.btn-sm { border-radius: 0.35rem; font-size: 0.8rem; }
.btn-lg { border-radius: var(--radius); }

.card {
  border: 1px solid color-mix(in srgb, var(--border) 50%, white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--surface-elevated) 0%, #FCFDFE 100%);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  overflow: hidden;
}
.card-header {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}
.card-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.card-body { padding: 1.25rem; }
.card-body > .row.g-3,
.card-body > .row.g-4 { --bs-gutter-y: 0.9rem; }

.table {
  --bs-table-border-color: var(--border);
  font-size: 0.875rem;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom-width: 1px;
  padding: 0.72rem 1rem;
  background: var(--surface-soft);
}
.table > tbody > tr > td {
  padding: 0.78rem 1rem;
  border-bottom-color: color-mix(in srgb, var(--border) 86%, white);
}
.table-hover > tbody > tr:hover > * { background-color: #F8FAFC; }
.table-light { --bs-table-bg: #F8FAFC; }
.table > :not(caption) > * > th:first-child,
.table > :not(caption) > * > td:first-child { padding-left: 1.15rem; }
.table > :not(caption) > * > th:last-child,
.table > :not(caption) > * > td:last-child { padding-right: 1.15rem; }
.table-responsive {
  border: 1px solid color-mix(in srgb, var(--border) 52%, white);
  border-radius: var(--radius);
  background: #fff;
}

.badge {
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.28em 0.65em;
  letter-spacing: 0.01em;
}
.badge.bg-secondary { background-color: #E2E8F0 !important; color: #475569; }
.badge.bg-light      { background-color: #F1F5F9 !important; color: #475569; }
.badge.bg-success    { background-color: #D1FAE5 !important; color: #065F46; }
.badge.bg-danger     { background-color: #FEE2E2 !important; color: #991B1B; }
.badge.bg-warning    { background-color: #FEF3C7 !important; color: #92400E; }
.badge.bg-info       { background-color: #DBEAFE !important; color: #1E40AF; }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-size: 0.875rem;
  color: var(--text);
  background-color: var(--surface);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  min-height: 2.45rem;
  padding: 0.56rem 0.78rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14), 0 1px 2px rgba(15, 23, 42, 0.03);
}
.form-label     { font-size: 0.8rem; font-weight: 650; color: #334155; margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.form-text      { font-size: 0.78rem; color: var(--text-muted); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.input-group > .btn { border-color: color-mix(in srgb, var(--border) 82%, white); }

.alert {
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
}
.alert-danger  { background: #FEF2F2; color: #991B1B; }
.alert-warning { background: #FFFBEB; color: #92400E; }
.alert-success { background: #F0FDF4; color: #166534; }
.alert-info    { background: #EFF6FF; color: #1E40AF; }
.alert-dismissible .btn-close { padding: 0.75rem; }

.breadcrumb { font-size: 0.82rem; margin-bottom: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb {
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid color-mix(in srgb, var(--border) 50%, white);
  border-radius: 999px;
  display: inline-flex;
}

.nav-tabs { border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  margin-bottom: -1px;
  border-radius: 0;
}
.nav-tabs .nav-link:hover  { color: var(--text); border-bottom-color: var(--border); }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }

.list-group-item { border-color: var(--border); font-size: 0.875rem; }
.list-group-flush .list-group-item {
  padding: 0.78rem 1rem;
  background: transparent;
}
.list-group-item .fw-semibold { font-weight: 650 !important; }

dl.row dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  font-weight: 700;
}
dl.row dd { color: #0F172A; font-weight: 500; }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  padding: 0.4rem;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  color: var(--text);
}
.dropdown-item:hover { background: var(--bg); }

/* ─── APP LAYOUT ─────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--t) var(--ease);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  color: #F8FAFC;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em;
}
.sidebar-brand-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.sidebar-close {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--sidebar-text);
  font-size: 1.2rem; line-height: 1; padding: 0.2rem;
  border-radius: var(--radius-sm);
  transition: color var(--t);
}
.sidebar-close:hover { color: var(--sidebar-text-hover); }

.sidebar-garage-name {
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--sidebar-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-section {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #475569;
  padding: 0.8rem 0.625rem 0.3rem;
}
.sidebar-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 0.5rem 0.625rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.525rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem; font-weight: 450;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  margin-bottom: 0.1rem;
}
.sidebar-link i { font-size: 0.975rem; flex-shrink: 0; width: 1rem; text-align: center; }
.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--sidebar-text-hover);
}
.sidebar-link.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-txt);
  font-weight: 500;
}

.sidebar-link-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}
.sidebar-link-row .sidebar-link {
  flex: 1;
  margin-bottom: 0;
}
.sidebar-quick-add {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.46rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C7D2FE;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(165, 180, 252, 0.28);
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.sidebar-quick-add:hover {
  color: #EEF2FF;
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(165, 180, 252, 0.45);
}

/* Emphasize Vehicles entry in sidebar */
.sidebar-link[href*="/vehicles"] {
  font-size: 1.4rem;
  font-weight: 700;
}
.sidebar-link[href*="/vehicles"] i {
  font-size: 1.14rem;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 0.875rem 1rem;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-user-name  { font-size: 0.8rem; font-weight: 600; color: #E2E8F0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-email { font-size: 0.72rem; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-logout-btn {
  width: 100%; background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--sidebar-text);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  transition: background var(--t), color var(--t), border-color var(--t);
  font-family: inherit;
}
.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1039;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.sidebar-backdrop.show { opacity: 1; }

/* ─── MAIN WRAPPER ───────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Mobile topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-xs);
}
.topbar-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.35rem; line-height: 1;
  padding: 0.25rem; border-radius: var(--radius-sm);
  transition: color var(--t);
}
.topbar-toggle:hover { color: var(--text); }
.topbar-brand {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}

/* Page content */
.page-content { flex: 1; padding: 1.75rem 2rem; }
.content-shell {
  max-width: 1200px;
  margin: 0 auto;
}
.page-content .row.g-4,
.page-content .row.g-3 { --bs-gutter-y: 1.15rem; }
.page-content .table-responsive { border-radius: calc(var(--radius) - 1px); }
.page-content .text-muted.small { color: #64748B !important; }
.page-content h2 {
  font-size: clamp(1.35rem, 1.4vw, 1.75rem);
  margin-bottom: 0.2rem;
}

/* ─── DASHBOARD ─────────────────────────────────────────────── */
.metric-card { border: none; color: #fff; }
.metric-card .card-body { padding: 1rem 1.1rem; }
.metric-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.92;
  font-weight: 600;
}
.metric-value {
  font-size: 1.55rem;
  font-weight: 750;
  margin-top: 0.2rem;
  letter-spacing: -0.01em;
}
.metric-indigo { background: linear-gradient(135deg, #4338CA, #6366F1); }
.metric-cyan { background: linear-gradient(135deg, #0891B2, #06B6D4); }
.metric-violet { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }
.metric-amber { background: linear-gradient(135deg, #D97706, #F59E0B); }

/* ─── VEHICLE FORM ───────────────────────────────────────────── */
.vehicle-form-modern .form-section-title {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #64748B;
  padding-top: 0.15rem;
  margin-bottom: 0.15rem;
}
.vehicle-form-modern .input-group .btn {
  min-width: 2.5rem;
}
.form-side-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.form-side-card ul li + li {
  margin-top: 0.35rem;
}
@media (min-width: 992px) {
  .form-side-offset {
    margin-top: 6.7rem;
  }
}

/* ─── DETAIL PAGE ACTIONS ───────────────────────────────────── */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.detail-action-btn {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.58rem;
}
.detail-actions-bottom {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 55%, white);
}

.service-row-clickable {
  cursor: pointer;
}

/* ─── AUTH LAYOUT ────────────────────────────────────────────── */
.auth-layout {
  min-height: 100vh;
  background: var(--auth-shell-gradient);
  display: flex; flex-direction: column;
}
.auth-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem;
}
.auth-brand {
  font-size: 1.2rem; font-weight: 700;
  color: #F8FAFC; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.auth-brand-icon {
  width: 28px; height: 28px; background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.auth-nav-links { display: flex; gap: 0.5rem; align-items: center; }
.btn-ghost {
  background: rgba(255,255,255,0.07); color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.13); color: #fff; border-color: rgba(255,255,255,0.2); }

.auth-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem 3rem;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 2.25rem;
  width: 100%; max-width: 420px;
}
.auth-card-title    { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-card-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.25rem 0; color: var(--text-light); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* login / register — sidebar-toned gradient shell, light card */
/* Paint gradient on html/body so it fills the viewport; inner layout stays transparent */
html:has(body.auth-public-shell),
body.auth-public-shell {
  background-color: var(--sidebar-bg) !important;
  background-image: var(--auth-shell-gradient) !important;
  background-attachment: fixed;
}
body.auth-public-shell {
  margin: 0;
  min-height: 100vh;
}
.auth-layout.auth-layout-light {
  background: transparent !important;
  min-height: 100vh;
}
.auth-nav-light {
  padding: 1.25rem 2rem;
}
.auth-brand-light {
  color: #F8F9FA;
}
.auth-brand-light:hover {
  color: #F8F9FA;
}
.auth-body-light {
  align-items: flex-start;
  justify-content: center;
  padding: 3.25rem 1rem 3rem;
}
.auth-login-clean {
  width: 100%;
  max-width: 460px;
}
.auth-login-clean-head {
  text-align: center;
  margin-bottom: 1rem;
}
.auth-login-clean-head h1 {
  font-size: 1.85rem;
  font-weight: 750;
  margin-bottom: 0.45rem;
  color: #F8F9FA;
}
.auth-login-clean-head p {
  color: #ADB5BD;
  font-size: 0.95rem;
  margin-bottom: 0;
}
.auth-card-clean {
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.auth-register-card .auth-card-subtitle {
  margin-bottom: 1.25rem;
}
.auth-register-step-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.auth-register-divider {
  height: 1px;
  background: var(--border);
  margin: 1.1rem 0 0.85rem;
}
.auth-register-form .form-label {
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.875rem;
}

/* ─── LANDING PAGE ───────────────────────────────────────────── */

/* shared button styles (used across landing page) */
.btn-landing-primary {
  background: var(--primary); color: #fff; border: none;
  padding: 0.75rem 1.65rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  font-family: inherit; display: inline-flex; align-items: center;
}
.btn-landing-primary:hover {
  background: var(--primary-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79,70,229,0.4);
}
.btn-landing-ghost {
  background: rgba(255,255,255,0.07); color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.75rem 1.65rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: background var(--t), color var(--t); font-family: inherit;
  display: inline-flex; align-items: center;
}
.btn-landing-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* eyebrow badge (reused across sections) */
.landing-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(79,70,229,0.18); border: 1px solid rgba(99,102,241,0.3);
  color: #A5B4FC; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
}

/* ── Hero ── */
.lp-hero {
  display: flex; justify-content: center; align-items: center;
  padding: 5rem 1.5rem 4rem; text-align: center;
}
.lp-hero-inner { max-width: 720px; width: 100%; }
.lp-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800; color: #F8FAFC;
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1.1rem;
}
.lp-title span {
  background: linear-gradient(135deg, #818CF8, #C084FC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lp-subtitle {
  font-size: 1.05rem; color: #94A3B8; line-height: 1.7;
  max-width: 580px; margin: 0 auto 2rem;
}
.lp-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* stats strip */
.lp-stats {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 0.75rem 1.5rem; flex-wrap: wrap;
  justify-content: center;
}
.lp-stat { display: flex; flex-direction: column; align-items: center; padding: 0 1.25rem; }
.lp-stat-value { font-size: 1.3rem; font-weight: 800; color: #F8FAFC; line-height: 1.1; }
.lp-stat-label { font-size: 0.7rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }
.lp-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ── Shared section wrapper ── */
.lp-container { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.lp-section { padding: 5rem 0; }
.lp-section--alt { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.lp-section-eyebrow {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #818CF8; margin-bottom: 0.6rem; text-align: center;
}
.lp-section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  color: #F8FAFC; text-align: center; letter-spacing: -0.02em;
  margin-bottom: 0.75rem; line-height: 1.2;
}
.lp-section-sub {
  font-size: 0.975rem; color: #94A3B8; text-align: center;
  max-width: 520px; margin: 0 auto 3rem; line-height: 1.65;
}

/* ── Features grid ── */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.lp-feature-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 1.4rem;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.lp-feature-card:hover {
  background: rgba(255,255,255,0.07); border-color: rgba(99,102,241,0.35);
  transform: translateY(-2px);
}
.lp-feature-card--accent {
  border-color: rgba(129,140,248,0.3);
  background: rgba(79,70,229,0.08);
}
.lp-feature-card--accent:hover { background: rgba(79,70,229,0.13); border-color: rgba(129,140,248,0.5); }
.lp-feature-icon  { font-size: 1.6rem; margin-bottom: 0.75rem; }
.lp-feature-title { font-size: 0.9rem; font-weight: 700; color: #F1F5F9; margin-bottom: 0.35rem; }
.lp-feature-desc  { font-size: 0.8rem; color: #94A3B8; line-height: 1.6; margin: 0; }

/* ── How it works ── */
.lp-steps {
  display: flex; align-items: flex-start; gap: 0;
  flex-wrap: wrap; justify-content: center;
}
.lp-step {
  flex: 1; min-width: 200px; max-width: 280px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1rem;
}
.lp-step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  color: #fff; font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(79,70,229,0.35);
}
.lp-step-title { font-size: 0.95rem; font-weight: 700; color: #F1F5F9; margin-bottom: 0.4rem; }
.lp-step-desc  { font-size: 0.82rem; color: #94A3B8; line-height: 1.65; margin: 0; }
.lp-step-connector {
  flex: 0 0 60px; height: 2px; background: rgba(99,102,241,0.3);
  margin-top: 1.5rem; display: none;
}

/* ── Why CarCare / benefits ── */
.lp-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.lp-benefit { text-align: center; padding: 0 0.5rem; }
.lp-benefit-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(79,70,229,0.15); border: 1px solid rgba(99,102,241,0.25);
  color: #818CF8; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.lp-benefit-title { font-size: 0.9rem; font-weight: 700; color: #F1F5F9; margin-bottom: 0.35rem; }
.lp-benefit-desc  { font-size: 0.8rem; color: #94A3B8; line-height: 1.65; margin: 0; }

/* ── Final CTA band ── */
.lp-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.15) 0%, rgba(124,58,237,0.12) 100%);
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  text-align: center;
}
.lp-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.lp-cta-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #F8FAFC; letter-spacing: -0.02em; margin: 0; }
.lp-cta-sub   { font-size: 0.95rem; color: #94A3B8; margin: 0 0 0.5rem; }
.lp-cta-btn   { padding: 0.875rem 2rem; font-size: 1rem; }

/* ── Footer ── */
.lp-footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0 0;
}
.lp-footer-top {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lp-footer-brand { flex: 0 0 220px; }
.lp-footer-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 700; color: #F8FAFC; text-decoration: none;
  margin-bottom: 0.75rem;
}
.lp-footer-tagline { font-size: 0.8rem; color: #64748B; line-height: 1.6; margin: 0; }
.lp-footer-links {
  flex: 1; display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.lp-footer-col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 110px; }
.lp-footer-col-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #475569; margin-bottom: 0.25rem;
}
.lp-footer-col a {
  font-size: 0.82rem; color: #64748B; text-decoration: none;
  transition: color var(--t);
}
.lp-footer-col a:hover { color: #94A3B8; }
.lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.78rem; color: #475569;
}

/* ── Landing responsive ── */
@media (min-width: 860px) {
  .lp-step-connector { display: block; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 3rem 1rem 2.5rem; }
  .lp-section { padding: 3.5rem 0; }
  .lp-stats { gap: 0; }
  .lp-stat { padding: 0 0.75rem; }
  .lp-footer-top { flex-direction: column; gap: 2rem; }
  .lp-footer-brand { flex: none; }
  .lp-footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── VEHICLE SEARCH ─────────────────────────────────────────── */
.vehicle-search-wrap {
  position: relative;
  max-width: 480px;
}
.vehicle-search-wrap .bi-search {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.95rem; pointer-events: none;
}
.vehicle-search-box {
  width: 100%;
  padding: 0.55rem 2.6rem 0.55rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.vehicle-search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.vehicle-search-box::placeholder { color: var(--text-light); }
.search-clear-btn {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; line-height: 1;
  padding: 0.2rem; border-radius: 4px;
  display: none;
  transition: color var(--t);
}
.search-clear-btn:hover { color: var(--text); }
.search-clear-btn.visible { display: flex; align-items: center; justify-content: center; }
.vehicle-search-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.vehicle-col { transition: opacity 0.12s; }
.client-row { transition: opacity 0.12s; }
.vehicle-col.v-hidden { display: none !important; }
.client-row.v-hidden { display: none !important; }
.search-empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.search-empty.visible { display: block; }
.search-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }

/* ─── VEHICLE CARD MEDIA ────────────────────────────────────── */
.vehicle-card-split .card-body {
  padding: 0 !important;
}
.vehicle-card-main {
  display: flex;
  align-items: stretch;
  min-height: clamp(170px, 24vw, 205px);
}
.vehicle-card-content {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem !important;
}
.vehicle-vin {
  font-size: inherit;
  font-family: inherit;
  color: #e83e8c;
}
.vehicle-card-media-right {
  width: clamp(165px, 42%, 235px);
  min-width: 165px;
  max-width: 235px;
  border-left: 1px solid color-mix(in srgb, var(--border) 65%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
}
.vehicle-card-media-right img {
  width: 100%;
  height: 100%;
  max-height: clamp(145px, 20vw, 190px);
  object-fit: contain;
  object-position: center;
  display: block;
}
.vehicle-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
}
.vehicle-card-split .card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.vehicle-card-split .card-footer .btn {
  white-space: nowrap;
}
@media (max-width: 1199px) {
  .vehicle-card-main {
    min-height: 185px;
  }
  .vehicle-card-media-right {
    width: clamp(160px, 44%, 220px);
    min-width: 160px;
    padding: 0.65rem;
  }
}
@media (max-width: 767px) {
  .vehicle-card-main {
    min-height: 176px;
  }
  .vehicle-card-content {
    padding: 0.9rem 0.95rem !important;
  }
  .vehicle-card-media-right {
    width: 46%;
    min-width: 145px;
    max-width: 205px;
  }
  .vehicle-card-split .card-footer {
    padding: 0.75rem 0.85rem;
  }
  .vehicle-card-split .card-footer .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 125px;
    text-align: center;
  }
  .vehicle-card-split .card-footer .btn.ms-auto {
    margin-left: 0 !important;
  }
}
@media (max-width: 576px) {
  .vehicle-card-main {
    flex-direction: column;
    min-height: unset;
  }
  .vehicle-card-media-right {
    width: 100%;
    max-width: none;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 65%, white);
    min-height: 175px;
    padding: 0.75rem;
  }
  .vehicle-card-media-right img {
    max-height: 190px;
  }
  .vehicle-card-split .card-footer .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ─── UTILITIES ──────────────────────────────────────────────── */
.text-muted      { color: var(--text-muted) !important; }
.border-dashed   { border-style: dashed !important; border-color: var(--border) !important; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.4); }
  .sidebar-close { display: flex; }
  .sidebar-backdrop { display: block; pointer-events: none; }
  .sidebar-backdrop.show { pointer-events: auto; }
  .main-wrapper { margin-left: 0; }
}
@media (min-width: 1024px) {
  .topbar { display: none !important; }
  .sidebar-backdrop { display: none !important; }
}
@media (max-width: 767px) {
  .page-content { padding: 1.1rem 0.875rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .auth-nav-light { padding: 1rem 1rem 0.45rem; }
  .auth-body-light { padding-top: 2rem; }
  .landing-hero { padding: 2rem 1rem; }
  .table-responsive { font-size: 0.8rem; }
}
