:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-muted: #f8fafc;
  --border: #e4eaf3;
  --border-strong: #d6deea;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;
  --danger: #b91c1c;
  --danger-dark: #991b1b;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning-bg: #fff7ed;
  --warning-border: #fdba74;
  --warning-text: #9a3412;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 240px);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main.page-shell {
  flex: 1;
  width: 100%;
  max-width: 100%;
  background: transparent;
  overflow-x: clip;
}

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

img {
  max-width: 100%;
}

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

.page-shell {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 920px;
}

.section {
  padding: 40px 0 56px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 234, 243, 0.95);
}

.header-inner {
  max-width: 1440px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  display: block;
  height: 34px;
  width: auto;
}


.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.main-nav a,
.nav-link-btn,
.nav-user {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--text-soft);
}

.main-nav a:hover,
.nav-link-btn:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4db3ff, var(--primary));
  transition: width 0.22s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link-muted {
  color: var(--text-soft);
}

.nav-user {
  color: var(--text-soft);
}

.nav-cta,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-link,
.btn-pill,
.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-cta,
.btn-primary,
.btn-pill.is-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.nav-cta:hover,
.btn-primary:hover,
.btn-pill.is-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn-secondary,
.btn-pill,
.action-chip {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-pill:hover,
.action-chip:hover {
  background: #f8fbff;
  border-color: #c9d6ea;
}

.btn-danger {
  background: #fff5f5;
  color: var(--danger);
  border-color: #f4caca;
  box-shadow: none;
}

.btn-danger:hover {
  background: #feecec;
  border-color: #efb7b7;
}

.btn-link {
  background: transparent;
  color: var(--primary);
  min-height: auto;
  padding: 0;
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.disabled-btn {
  opacity: 0.58;
  pointer-events: none;
}

.page-head,
.section-header-inline,
.garage-feature-top,
.manager-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1,
.section-title,
.section h2,
.garage-feature-top h2,
.manager-hero-top h1,
.form-shell-head h1 {
  margin: 0 0 8px;
}

.page-head p,
.section-header-inline p,
.lead,
.form-shell-head p {
  margin: 0;
  color: var(--text-muted);
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card,
.auth-card,
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-grid,
.feature-grid,
.vehicle-grid,
.timeline-list,
.suggestion-list,
.manager-stack {
  display: grid;
  gap: 20px;
}

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

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

.card-actions,
.actions-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card p {
  line-height: 1.6;
  color: var(--text-soft);
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  font-weight: 600;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border-color: var(--danger-border);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.empty-card {
  text-align: center;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.record-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.timeline-entry {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.site-footer {
  padding: 26px 0 44px;
  color: var(--text-muted);
}

/* Hero / marketing */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  color: #fff;
}

.hero-home::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.66), rgba(0,0,0,.16)), url('../img/car-hero.jpg') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.features {
  padding: 60px 0;
}

.features h2 {
  margin: 0 0 30px;
  font-size: 2rem;
}

.vehicle-hero {
  position: relative;
  min-height: 560px;
  background: url('../img/car-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  color: #fff;
}

.vehicle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.52), rgba(0,0,0,.28));
}

.vehicle-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.vehicle-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin: 0 0 10px;
}

.vehicle-content p {
  margin-bottom: 20px;
  color: #e5e7eb;
  font-size: 1.2rem;
}

.vehicle-stats {
  display: flex;
  gap: 40px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.vehicle-stats div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vehicle-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
}

.vehicle-stats span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.8);
  margin-top: 2px;
}

.profile-strip {
  max-width: 1100px;
  margin: -30px auto 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 6;
  box-shadow: var(--shadow-md);
}

.profile-strip-item {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.profile-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-section h2 {
  margin-bottom: 20px;
  position: relative;
  font-size: 1.9rem;
}

.profile-section h2::after {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--primary);
  display: block;
  margin-top: 8px;
}

.profile-section p {
  max-width: 760px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--text-soft);
}

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

.timeline-item {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

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

.photo-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: transform .2s ease;
  display: block;
}

.photo-grid img:hover {
  transform: scale(1.03);
}

.photo-grid-premium {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.photo-main img {
  height: 100%;
  min-height: 360px;
}

.photo-side {
  display: grid;
  gap: 16px;
}

.photo-side img {
  min-height: 172px;
}

.share-box {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  max-width: 600px;
  flex-wrap: wrap;
}

.share-box input {
  flex: 1;
  min-width: 240px;
}

.action-chip-button {
  border: 0;
  cursor: pointer;
}

.share-box .btn-primary,
.share-box .btn-secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Form system */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.auth-card {
  width: 100%;
  max-width: 540px;
}

.form-shell {
  display: grid;
  gap: 22px;
}

.form-shell-head {
  display: grid;
  gap: 8px;
}

.form-shell-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

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

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  align-items: start;
}

.form-field,
.form-grid label {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-grid textarea,
.form-control,
.form-grid input,
.form-grid select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-control,
.form-grid input,
.form-grid select {
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.98rem;
  font-weight: 600;
}

.form-grid textarea {
  min-height: 116px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 0.98rem;
  line-height: 1.5;
}

.form-grid textarea:focus,
.form-control:focus,
.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #94a3b8;
}

select.form-control,
.form-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) calc(50% - 4px),
    calc(100% - 15px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.vehicle-form select:disabled,
.vehicle-form input:disabled {
  background: #f3f4f6;
  color: var(--text-muted);
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.inline-field input {
  min-width: 0;
}

.field-help {
  display: block;
  min-height: 18px;
  margin-top: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.error-text {
  color: var(--danger);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 2px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.full-width {
  grid-column: 1 / -1;
}

/* Garage dashboard */
.garage-shell {
  padding-top: 14px;
}

.garage-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.plan-pill,
.usage-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.plan-label,
.usage-pill span {
  color: var(--text-muted);
}

.plan-link {
  color: var(--text);
  font-weight: 800;
}

.garage-head {
  margin-bottom: 24px;
}

.garage-usage {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
}

.garage-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.garage-sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.garage-vehicle-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.garage-vehicle-card.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14), var(--shadow-sm);
}

.garage-vehicle-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.garage-vehicle-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
}

.garage-vehicle-select {
  text-decoration: none;
  display: block;
}

.compact-actions {
  gap: 10px;
}

.garage-main {
  display: grid;
  gap: 24px;
  align-content: start;
  min-height: auto;
}

.garage-feature {
  padding: 28px;
  border-radius: 26px;
}

.garage-feature-top h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.garage-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
}

.garage-feature-body {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, .85fr);
  gap: 20px;
  align-items: stretch;
}

.garage-feature-image {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #60a5fa 100%);
  color: #fff;
  position: relative;
  min-height: 300px;
}

.vehicle-hero-art {
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.vehicle-hero-art::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -48px;
  bottom: -56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  filter: blur(2px);
}

.vehicle-hero-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
}

.vehicle-hero-copy,
.vehicle-hero-meta {
  position: relative;
  z-index: 2;
}

.vehicle-hero-kicker {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vehicle-hero-title {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.vehicle-hero-copy p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.vehicle-hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700;
  color: #fff;
}

.garage-feature-stats {
  background: linear-gradient(180deg, #f8fbff, #f2f7fd);
  border: 1px solid #deebfb;
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.garage-feature-stats .stat-block {
  display: grid;
  gap: 6px;
}

.garage-feature-stats strong {
  font-size: 1.45rem;
}

.vehicle-subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-top: 22px;
  padding-bottom: 2px;
}

.vehicle-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.vehicle-subnav a.is-active,
.vehicle-subnav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #bfdbfe;
}

.section-header-inline {
  margin-bottom: 18px;
}

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

.market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: center;
}

.market-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.market-card p {
  margin: 0 0 18px;
}

.market-visual {
  display: grid;
  place-items: center;
  min-height: 110px;
  line-height: 1;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #eef4fb);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.market-visual.is-tires::before { content: "TR"; }
.market-visual.is-brakes::before { content: "BP"; }
.market-visual.is-filters::before { content: "CF"; }
.market-visual.is-accessories::before { content: "AC"; }

.market-visual-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.market-visual-image::before {
  content: none !important;
  display: none !important;
}

.market-visual-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}


/* Vehicle manager */
.vehicle-manager-shell {
  padding-top: 14px;
}

.manager-hero-card {
  padding: 30px;
  border-radius: 26px;
  margin-bottom: 24px;
}

.manager-hero-copy {
  max-width: 720px;
}

.manager-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.manager-stat {
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid #d9e7fa;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.manager-stat strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.2;
}

.manager-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 24px;
}

.manager-panel h3 {
  margin-top: 0;
}

.suggestion-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #deebfb;
}

.suggestion-item p {
  margin: 8px 0 0;
}

.photo-placeholder {
  min-height: 180px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: #f8fafc;
}

.manager-marketplace {
  margin-bottom: 28px;
}

/* Utilities */
.surface-muted {
  background: var(--surface-muted);
}

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

.text-soft {
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .feature-grid,
  .vehicle-grid,
  .stats-row,
  .timeline,
  .garage-layout,
  .garage-feature-body,
  .manager-panel-grid,
  .manager-overview-grid,
  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .garage-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .form-grid.two-col,
  .timeline {
    grid-template-columns: 1fr;
  }

  .page-head,
  .timeline-entry {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding-top: 88px;
  }

  body.nav-open {
    overflow: hidden;
  }
	
  body.nav-open .page-shell {
    filter: blur(2px);
  }

  .header-inner {
    position: relative;
    min-height: 72px;
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .site-logo {
    height: 30px;
  }

  .nav-toggle {
    position: relative;
    z-index: 10001;
    display: inline-flex;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav-shell {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-height: 100dvh;
    padding: calc(72px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.28s ease, opacity 0.2s ease, visibility 0.2s ease;
	justify-content: flex-start;
  }

  .site-nav-shell.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .main-nav,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav {
    flex: 0 0 auto;
  }

  .main-nav a,
  .nav-actions a,
  .nav-user {
    width: 100%;
    padding: 18px 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    font-size: 1.3rem;
    line-height: 1.2;
  }

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

  .main-nav a::after {
    display: none;
  }

  .nav-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    gap: 12px;
  }

  .nav-actions a,
  .nav-actions .nav-user {
    padding: 0;
    border-bottom: 0;
  }

  .nav-link-btn,
  .nav-cta {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
  }

  .nav-link-btn {
    background: #fff;
    border: 1px solid var(--border-strong);
  }

  .container {
    padding: 0 18px;
  }

  .garage-feature,
  .form-shell-card,
  .manager-hero-card,
  .card,
  .auth-card,
  .surface-card {
    padding: 22px;
  }

  .market-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .feature-grid,
  .vehicle-grid,
  .stats-row,
  .timeline {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding-top: 88px;
  }

  .vehicle-content h1 {
    font-size: 2.35rem;
  }

  .vehicle-content p {
    font-size: 1.05rem;
  }

  .vehicle-hero {
    min-height: 420px;
    padding: 24px 20px;
  }

  .profile-section {
    padding: 48px 20px;
  }

  .photo-grid-premium {
    grid-template-columns: 1fr;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .vehicle-subnav {
    gap: 18px;
  }

  .garage-feature-actions,
  .card-actions,
  .actions-inline {
    width: 100%;
  }

  .garage-feature-actions > *,
  .card-actions > *,
  .actions-inline > * {
    flex: 1 1 100%;
  }
}


.form-shell-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.context-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-actions-split {
  align-items: center;
  justify-content: space-between;
}

.form-actions-split .actions-inline {
  margin-left: auto;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.manager-panel,
.manager-marketplace,
#records {
  border-radius: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .form-actions-split .actions-inline {
    width: 100%;
    margin-left: 0;
  }
}

.vin-updated {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
  transition: all 0.3s ease;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;

  padding: 0 16px;
  border-radius: 14px;

  background: #ffffff;
  border: 1px solid var(--border-strong);

  font-weight: 600;
  color: var(--text);

  text-decoration: none;
  cursor: pointer;

  transition: all 0.2s ease;
}

.btn-google:hover {
  background: #f8fbff;
  border-color: #c9d6ea;
}

.btn-google:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-actions .btn-google {
  margin-top: 10px;
}


.auth-provider-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-microsoft::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background: linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52% 100%),
              linear-gradient(90deg, #00a4ef 0 48%, transparent 48% 52%, #ffb900 52% 100%);
  background-size: 100% 48%, 100% 48%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
  border-radius: 2px;
  flex: 0 0 auto;
}

.btn-microsoft:hover {
  background: #f8fbff;
  border-color: #c9d6ea;
}

.btn-microsoft:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.profile-state-wrap {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.profile-state-card {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.profile-state-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-state-card h1,
.profile-state-card h2 {
  margin: 0 0 12px;
}

.profile-state-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.profile-state-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.profile-state-meta-item {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.profile-state-meta-item .label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-state-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.vehicle-hero-private {
  min-height: 260px;
}

@media (max-width: 640px) {
  .profile-state-card {
    padding: 24px;
  }

  .profile-state-meta {
    grid-template-columns: 1fr;
  }
}

.checkbox-row-share {
  position: relative;
  border-radius: 16px;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.checkbox-row-share input[type="checkbox"] {
  transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.checkbox-row-share.share-focus-active {
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.checkbox-row-share.share-focus-active input[type="checkbox"] {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
  transform: scale(1.06);
}

.checkbox-row-share.share-focus-active span {
  color: #1d4ed8;
}

[data-save-vehicle].save-focus-active {
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.16), 0 18px 40px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
  animation: savePulse 1.1s ease-in-out 3;
}

@keyframes savePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.28), 0 18px 40px rgba(37, 99, 235, 0.18);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0), 0 18px 40px rgba(37, 99, 235, 0.26);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 18px 40px rgba(37, 99, 235, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-save-vehicle].save-focus-active {
    animation: none;
  }
}

@media (max-width: 768px) {
  .nav-actions .nav-link-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border-strong);
  }

  .nav-actions .nav-cta {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
  }
}

@media (max-width: 768px) {
  .nav-actions .nav-link-btn,
  .nav-actions .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .nav-actions .nav-link-btn {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .btn-google {
    min-height: 52px;
    font-size: 0.95rem;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.modal .btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
}

.modal .btn-danger:hover {
  background: #dc2626;
}

.modal-content {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease;
}

.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  line-height: normal;
  padding: 0 14px;
  height: 52px;
  display: flex;
  align-items: center;
  text-align: left;
}

.vehicle-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.vehicle-photo-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.vehicle-photo-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

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

.vehicle-photo-meta {
  display: grid;
  gap: 10px;
}

.vehicle-photo-meta .actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vehicle-photo-meta form {
  margin: 0;
}

@media (max-width: 640px) {
  .vehicle-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.manager-photo-hero {
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

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

.manager-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.manager-photo-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}

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

.manager-photo-thumb .record-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  margin: 0;
}

.manager-photo-thumb.is-cover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

@media (max-width: 640px) {
  .manager-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.public-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.public-gallery-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
  aspect-ratio: 4 / 3;
}

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

.photo-placeholder {
  min-height: 172px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .public-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.garage-vehicle-thumb {
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #60a5fa 100%);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 8;
}

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

.garage-vehicle-thumb-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #60a5fa 100%);
}

.garage-feature-image {
  position: relative;
  min-height: 300px;
}

.garage-feature-image.has-photo {
  background: #0f172a;
}

.garage-feature-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.garage-feature-image.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.24));
  z-index: 1;
}

.garage-feature-image .vehicle-hero-art {
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .garage-vehicle-thumb {
    aspect-ratio: 4 / 3;
  }
}

.manager-photo-upload-form {
  display: grid;
  gap: 12px;
}

.manager-thumb-actions,
.manager-cover-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.manager-thumb-actions form,
.manager-cover-actions form {
  margin: 0;
}

.manager-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manager-photo-thumb {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.manager-photo-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

@media (max-width: 640px) {
  .manager-photo-grid {
    grid-template-columns: 1fr;
  }
}

main.page-shell {
  flex: 1;
}

/* =========================
   Showcase Page
========================= */

.showcase-page {
  background: #f5f7fb;
  min-height: calc(100vh - 120px);
  padding: 2rem 0 3rem;
}

.showcase-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.showcase-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.showcase-hero-copy {
  flex: 1 1 420px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #e8efff;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.showcase-title {
  margin: 0 0 0.35rem;
  font-size: 2.5rem;
  line-height: 1.05;
  color: #0f172a;
}

.showcase-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
}

.showcase-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 420px;
  justify-content: flex-end;
}

.showcase-toolbar input,
.showcase-toolbar select {
  height: 50px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  padding: 0 1rem;
  font-size: 0.95rem;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase-toolbar input:focus,
.showcase-toolbar select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.showcase-toolbar .btn-primary,
.showcase-toolbar button {
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: 0 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.showcase-toolbar .btn-primary:hover,
.showcase-toolbar button:hover {
  background: #1d4ed8;
}

.showcase-toolbar .btn-primary:active,
.showcase-toolbar button:active {
  transform: translateY(1px);
}

.showcase-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.showcase-summary-text {
  color: #475569;
  font-size: 0.98rem;
}

.showcase-summary-text strong {
  color: #0f172a;
  font-size: 1.05rem;
}

.showcase-clear {
  text-decoration: none;
  font-weight: 700;
  color: #2563eb;
}

.showcase-clear:hover {
  text-decoration: underline;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.vehicle-card {
  display: block;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: #d8e3f5;
}

.vehicle-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  overflow: hidden;
}

.vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.vehicle-card:hover .vehicle-card-media img {
  transform: scale(1.02);
}

.vehicle-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.vehicle-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.vehicle-card-body {
  padding: 1rem;
}

.vehicle-card-title {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.3;
}

.vehicle-card-subtitle {
  margin: 0 0 0.8rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.vehicle-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0.95rem;
}

.vehicle-card-owner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #334155;
}

.vehicle-card-owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex: 0 0 40px;
}

.vehicle-card-owner-name {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.showcase-empty {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  padding: 2.8rem 1.5rem;
  text-align: center;
  color: #64748b;
}

.showcase-empty h2 {
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-size: 1.5rem;
}

.showcase-empty p {
  margin: 0;
  line-height: 1.6;
}

.showcase-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.showcase-pagination a,
.showcase-pagination span {
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
}

.showcase-pagination a:hover {
  border-color: #c5d4ee;
  background: #f8fbff;
}

.showcase-pagination .is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.showcase-pagination-gap {
  border: 0 !important;
  background: transparent !important;
  min-width: auto !important;
  padding: 0 0.2rem !important;
}

@media (max-width: 1100px) {
  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .showcase-page {
    padding: 1.5rem 0 2.5rem;
  }

  .showcase-title {
    font-size: 2rem;
  }

  .showcase-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .showcase-toolbar input,
  .showcase-toolbar select,
  .showcase-toolbar .btn-primary,
  .showcase-toolbar button {
    width: 100%;
    min-width: 0;
  }

  .showcase-summary {
    align-items: flex-start;
  }

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

.showcase-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.showcase-sidebar {
  position: sticky;
  top: 1.5rem;
}

.showcase-filter-form {
  display: block;
}

.showcase-filter-card {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  padding: 1.1rem 1rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.showcase-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.showcase-filter-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.showcase-filter-head a {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.showcase-filter-head a:hover {
  text-decoration: underline;
}

.showcase-filter-group + .showcase-filter-group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef3f9;
}

.showcase-filter-group h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.showcase-filter-options {
  display: grid;
  gap: 0.6rem;
  max-height: 220px;
  overflow: auto;
  padding-right: 0.15rem;
}

.showcase-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}

.showcase-check input[type="checkbox"] {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.showcase-check span {
  display: inline-block;
}

.showcase-check em {
  font-style: normal;
  color: #64748b;
}

.showcase-filter-submit {
  width: 100%;
  margin-top: 1.25rem;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.showcase-filter-submit:hover {
  background: #1d4ed8;
}

.showcase-filter-submit:active {
  transform: translateY(1px);
}

.showcase-main {
  min-width: 0;
}

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

  .showcase-sidebar {
    position: static;
  }
}

.form-alert {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
}

.form-alert-success {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.form-alert-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

/* Public profile page alignment */
.profile-page {
  width: 100%;
}

.profile-hero {
  width: 100%;
}

.profile-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  box-sizing: border-box;
}

.profile-section {
  width: 100%;
  margin: 0 0 40px;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h2 {
  margin: 0 0 18px;
}

.profile-summary,
.share-box,
.report-card,
.timeline-card,
.snapshot-grid,
.profile-meta-card {
  width: 100%;
  box-sizing: border-box;
}

/* share section */
.share-box {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.share-box input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
}

/* report section */
.report-card {
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.report-form {
  display: grid;
  gap: 16px;
}

.report-form .form-group {
  display: grid;
  gap: 8px;
}

.report-form select,
.report-form textarea,
.report-form input[type="text"],
.report-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
}

.report-actions {
  display: flex;
  justify-content: flex-start;
}

/* timeline */
.timeline-card {
  width: 100%;
  max-width: 100%;
}

/* snapshot grid */
.snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.snapshot-grid img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.snapshot-grid .snapshot-stack {
  display: grid;
  gap: 16px;
}

@media (max-width: 900px) {
  .profile-content {
    padding: 32px 20px 56px;
  }

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

@media (max-width: 640px) {
  .profile-content {
    padding: 28px 16px 44px;
  }

  .share-box {
    flex-direction: column;
    align-items: stretch;
  }

  .share-box button,
  .report-actions button {
    width: 100%;
  }
}

.report-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-link:hover {
  color: #1d4ed8;
}

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

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.report-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.report-modal__dialog h3 {
  margin: 0 0 10px;
}

.report-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.report-form .form-group {
  display: grid;
  gap: 8px;
}

.report-form select,
.report-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.report-form textarea {
  min-height: 110px;
  resize: vertical;
}

.report-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

/* =========================
   Public Profile Redesign Overrides
========================= */

.site-footer-rich {
  margin-top: 48px;
  padding: 40px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 8px 0 28px;
}

.footer-logo {
  display: block;
  height: 34px;
  width: auto;
}

.footer-copy {
  margin: 14px 0 0;
  max-width: 320px;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-col a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-col a:hover,
.footer-bottom-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.vehicle-hero-profile {
  min-height: 520px;
}

.profile-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.profile-strip-compact {
  margin-top: -34px;
  margin-bottom: 28px;
}

.profile-strip-link {
  word-break: break-word;
}

.profile-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 24px;
  align-items: start;
}

.profile-main,
.profile-sidebar {
  display: grid;
  gap: 24px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.45rem;
}

.profile-card-meta {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.profile-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: none;
}

.profile-side-card {
  position: sticky;
  top: 96px;
}

.profile-side-copy {
  margin: 0 0 16px;
}

.share-box-stacked {
  display: grid;
  gap: 12px;
  max-width: none;
  margin-top: 0;
}

.share-box-stacked input {
  min-width: 0;
}

.report-link-card {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.report-link-card:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.timeline-single {
  grid-template-columns: 1fr;
}

.timeline-single .timeline-item {
  padding: 18px 20px;
}

.timeline-single .timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.timeline-single .timeline-item p {
  margin: 0;
}

.photo-grid-premium {
  margin-bottom: 14px;
}

.photo-main img {
  min-height: 400px;
  border-radius: 18px;
}

.photo-side img,
.photo-placeholder {
  min-height: 192px;
  border-radius: 18px;
}

.public-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.public-gallery-thumb {
  border-radius: 16px;
}

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

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.report-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.report-modal__dialog h3 {
  margin: 0 0 12px;
}

.report-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

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

.report-form .form-group {
  display: grid;
  gap: 8px;
}

.report-form select,
.report-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.report-form textarea {
  min-height: 110px;
  resize: vertical;
}

.report-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

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

  .profile-side-card {
    position: static;
  }

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

@media (max-width: 768px) {
  .profile-shell {
    padding: 0 18px 28px;
  }

  .profile-strip {
    padding: 18px;
    gap: 18px;
  }

  .vehicle-hero-profile {
    min-height: 440px;
    padding: 24px 20px;
  }

  .photo-grid-premium {
    grid-template-columns: 1fr;
  }

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

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

/* ===================================================
   FEATURES PAGE – DRIFOLIO PREMIUM
   Add to bottom of style.css
=================================================== */

.features-premium{
  padding:56px 0 72px;
  background:linear-gradient(180deg,#f8fbff 0%, #f3f6fb 100%);
}

.features-hero{
  text-align:center;
  max-width:860px;
  margin:0 auto 42px;
}

.features-eyebrow{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.features-hero h1{
  margin:0 0 14px;
  font-size:clamp(2.2rem,5vw,3.5rem);
  line-height:1.05;
  color:#0f172a;
  letter-spacing:-0.02em;
}

.features-lead{
  margin:0 auto;
  max-width:760px;
  color:#64748b;
  font-size:1.08rem;
  line-height:1.75;
}

/* GRID */

.features-grid-premium{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.feature-box{
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:28px;
  background:#ffffff;
  border:1px solid #e4eaf3;
  border-radius:22px;
  box-shadow:0 12px 32px rgba(15,23,42,.05);
  transition:all .18s ease;
}

.feature-box:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 42px rgba(15,23,42,.08);
  border-color:#d5e3ff;
}

.feature-icon{
  width:64px;
  height:64px;
  flex:0 0 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:linear-gradient(180deg,#2563eb 0%, #1d4ed8 100%);
  color:#fff;
  font-size:1.55rem;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}

.feature-copy h3{
  margin:0 0 10px;
  font-size:1.35rem;
  line-height:1.2;
  color:#0f172a;
}

.feature-copy p{
  margin:0;
  color:#64748b;
  line-height:1.7;
  font-size:1rem;
}

/* CTA */

.features-bottom-callout{
  margin-top:44px;
  padding:42px 34px;
  text-align:center;
  border-radius:28px;
  background:linear-gradient(135deg,#0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color:#fff;
  box-shadow:0 22px 55px rgba(15,23,42,.16);
}

.features-bottom-callout h2{
  margin:0 0 10px;
  font-size:clamp(1.8rem,4vw,2.6rem);
  line-height:1.1;
}

.features-bottom-callout p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:1.05rem;
}

.features-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

.features-actions .btn-primary{
  min-width:180px;
}

.features-actions .btn-secondary{
  min-width:180px;
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(255,255,255,.45);
}

.features-actions .btn-secondary:hover{
  background:#f8fbff;
}

/* MOBILE */

@media (max-width: 900px){

  .features-grid-premium{
    grid-template-columns:1fr;
  }

}

@media (max-width: 640px){

  .features-premium{
    padding:38px 0 56px;
  }

  .feature-box{
    padding:22px;
    gap:14px;
  }

  .feature-icon{
    width:56px;
    height:56px;
    flex-basis:56px;
    font-size:1.3rem;
    border-radius:16px;
  }

  .feature-copy h3{
    font-size:1.15rem;
  }

  .features-bottom-callout{
    padding:30px 22px;
  }

  .features-actions{
    flex-direction:column;
  }

  .features-actions a{
    width:100%;
  }

}

/* ===================================================
   ABOUT PAGE – DRIFOLIO PREMIUM
=================================================== */

.about-premium{
  padding:56px 0 72px;
  background:linear-gradient(180deg,#f8fbff 0%, #f3f6fb 100%);
}

.about-hero{
  text-align:center;
  max-width:860px;
  margin:0 auto 42px;
}

.about-eyebrow{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.about-hero h1{
  margin:0 0 14px;
  font-size:clamp(2.2rem,5vw,3.5rem);
  line-height:1.05;
  color:#0f172a;
  letter-spacing:-0.02em;
}

.about-lead{
  margin:0 auto;
  max-width:760px;
  color:#64748b;
  font-size:1.08rem;
  line-height:1.75;
}

.about-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:22px;
  margin-bottom:24px;
}

.about-card{
  background:#ffffff;
  border:1px solid #e4eaf3;
  border-radius:22px;
  padding:28px;
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}

.about-card-primary{
  grid-row:span 2;
}

.about-card h2,
.about-card h3{
  margin:0 0 14px;
  color:#0f172a;
}

.about-card h2{
  font-size:1.8rem;
  line-height:1.15;
}

.about-card h3{
  font-size:1.25rem;
  line-height:1.2;
}

.about-card p{
  margin:0 0 14px;
  color:#64748b;
  line-height:1.75;
}

.about-card p:last-child{
  margin-bottom:0;
}

.about-list{
  margin:0;
  padding-left:18px;
  color:#64748b;
}

.about-list li{
  margin-bottom:10px;
  line-height:1.7;
}

.about-values{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  margin-top:10px;
}

.about-value{
  background:#ffffff;
  border:1px solid #e4eaf3;
  border-radius:22px;
  padding:26px;
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}

.about-value-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:.92rem;
  font-weight:800;
  margin-bottom:14px;
}

.about-value h3{
  margin:0 0 10px;
  color:#0f172a;
  font-size:1.2rem;
}

.about-value p{
  margin:0;
  color:#64748b;
  line-height:1.7;
}

.about-bottom-callout{
  margin-top:44px;
  padding:42px 34px;
  text-align:center;
  border-radius:28px;
  background:linear-gradient(135deg,#0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color:#fff;
  box-shadow:0 22px 55px rgba(15,23,42,.16);
}

.about-bottom-callout h2{
  margin:0 0 10px;
  font-size:clamp(1.8rem,4vw,2.6rem);
  line-height:1.1;
}

.about-bottom-callout p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:1.05rem;
}

.about-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

.about-actions .btn-primary{
  min-width:180px;
}

.about-actions .btn-secondary{
  min-width:180px;
  background:#ffffff;
  color:#0f172a;
  border:1px solid rgba(255,255,255,.45);
}

.about-actions .btn-secondary:hover{
  background:#f8fbff;
}

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

  .about-card-primary{
    grid-row:auto;
  }

  .about-values{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .about-premium{
    padding:38px 0 56px;
  }

  .about-card,
  .about-value{
    padding:22px;
  }

  .about-bottom-callout{
    padding:30px 22px;
  }

  .about-actions{
    flex-direction:column;
  }

  .about-actions a{
    width:100%;
  }
}

/* ===================================================
   HOME PAGE – DRIFOLIO PREMIUM HERO
   Hero feature cards + dotted connector layout
=================================================== */

.home-premium {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.home-hero {
  background: url('../img/car-hero.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 0;
}

  .home-hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
  }

  .home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 78% 18%, rgba(255, 190, 90, 0.18), transparent 36%),
      linear-gradient(90deg, rgba(5, 11, 24, 0.74) 0%, rgba(5, 11, 24, 0.48) 34%, rgba(5, 11, 24, 0.22) 64%, rgba(5, 11, 24, 0.38) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .home-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: center;
    gap: 48px;
  }

  .home-hero-copy {
    position: relative;
    z-index: 4;
    max-width: 560px;
  }

  .home-hero-feature-layer {
    position: relative;
    z-index: 3;
    min-height: 430px;
    align-self: stretch;
  }

  .home-feature-card {
    position: absolute;
    top: 54px;
    width: 205px;
    min-height: 150px;
    padding: 22px 22px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #0f172a;
  }

  .home-feature-card:nth-child(1) { left: 0%; }
  .home-feature-card:nth-child(2) { left: 25%; }
  .home-feature-card:nth-child(3) { left: 50%; }
  .home-feature-card:nth-child(4) { left: 75%; }

  .home-feature-card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    height: 158px;
    border-left: 2px dashed rgba(255, 255, 255, 0.72);
    transform: translateX(-50%);
  }

  .home-feature-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 154px);
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
    transform: translateX(-50%);
    z-index: 2;
  }

  .home-feature-icon-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .home-feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 19px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(15,23,42,.18);
  }

  .home-feature-icon.records { background: linear-gradient(135deg, #6d5dfc, #3949db); }
  .home-feature-icon.upgrades { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
  .home-feature-icon.due { background: linear-gradient(135deg, #f59e0b, #ea580c); }
  .home-feature-icon.share { background: linear-gradient(135deg, #22c55e, #16a34a); }

  .home-feature-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(34, 197, 94, 0.65);
    color: #22a65a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .home-feature-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.18;
    font-weight: 800;
    color: #0f172a;
  }

  .home-feature-card p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.48;
    color: #1f2937;
  }

  .home-feature-card a {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #2557e8;
  }

  .home-hero-trust-rail {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: min(1180px, calc(100vw - 96px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    z-index: 4;
  }

  .home-trust-item {
    min-height: 112px;
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 30px;
    color: #fff;
    position: relative;
  }

  .home-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 0;
    bottom: 25px;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
  }

  .home-trust-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
  }

  .home-trust-icon.shield { background: linear-gradient(135deg, #4f46e5, #312e81); }
  .home-trust-icon.camera { background: linear-gradient(135deg, #3b82f6, #1e40af); }
  .home-trust-icon.value { background: linear-gradient(135deg, #16a34a, #14532d); }
  .home-trust-icon.owners { background: linear-gradient(135deg, #f59e0b, #92400e); }

  .home-trust-item strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
  }

  .home-trust-item span {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.35;
  }

  @media (max-width: 1180px) {
    .home-hero {
      min-height: 760px;
    }

    .home-hero-inner {
      grid-template-columns: 1fr;
      align-items: start;
      padding-top: 74px;
    }

    .home-hero-feature-layer {
      min-height: 260px;
    }

    .home-feature-card {
      top: 8px;
      width: 22.5%;
      min-height: 140px;
      padding: 18px 16px 16px;
    }

    .home-feature-card::after,
    .home-feature-card::before {
      display: none;
    }

    .home-hero-trust-rail {
      width: min(940px, calc(100vw - 40px));
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 760px) {
    .home-hero {
      min-height: auto;
      padding: 68px 0 28px;
    }

    .home-hero-inner {
      min-height: auto;
      padding-top: 0;
      gap: 26px;
    }

    .home-hero-feature-layer {
      min-height: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .home-feature-card {
      position: relative;
      top: auto;
      left: auto !important;
      width: auto;
      min-height: 0;
    }

    .home-hero-trust-rail {
      position: relative;
      left: auto;
      bottom: auto;
      width: 100%;
      transform: none;
      margin-top: 22px;
      grid-template-columns: 1fr;
    }

    .home-trust-item:not(:last-child)::after {
      top: auto;
      left: 24px;
      right: 24px;
      bottom: 0;
      width: auto;
      height: 1px;
    }
  }

  @media (max-width: 480px) {
    .home-hero-feature-layer {
      grid-template-columns: 1fr;
    }
  }

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.home-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 560px;
}

.home-hero p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.home-hero-actions .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe2ea;
}

.home-hero-actions .btn-secondary:hover {
  background: #f8fbff;
}

.home-feature-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.home-section {
  padding: 56px 0 10px;
}

.home-section-tight {
  padding-top: 34px;
  padding-bottom: 10px;
}

.home-section-head {
  margin-bottom: 22px;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-info-card {
  background: #ffffff;
  border: 1px solid #e4eaf3;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  min-height: 180px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  border-color: #d5e3ff;
}

.home-info-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.2;
}

.home-info-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
  font-size: 1rem;
}

.home-bottom-cta {
  padding: 42px 0 72px;
}

.home-bottom-cta-card {
  text-align: center;
  padding: 42px 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.home-bottom-cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.home-bottom-cta-card p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-bottom-cta-card .home-hero-actions {
  justify-content: center;
}

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

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: 2.5rem;
  }

  .home-hero p {
    font-size: 1rem;
  }

  .home-info-card {
    padding: 22px;
    min-height: auto;
  }

  .home-bottom-cta-card {
    padding: 30px 22px;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature-card,
  .home-info-card {
    transition: none;
  }

  .home-feature-card:hover,
  .home-info-card:hover {
    transform: none;
  }
}

/* ===================================================
   DEMO PROFILE PAGE
=================================================== */

.demo-profile-hero{
  background:
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.56)),
    linear-gradient(135deg, #05070c 0%, #0a0f1a 45%, #111827 100%);
  min-height: 360px;
}

.vehicle-hero-profile,
.demo-profile-hero {
  min-height: 420px;
  background-position: center 72%;
}

.profile-kicker{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#e2e8f0;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-bottom:16px;
}

@media (max-width: 768px) {
  .vehicle-hero-profile,
  .demo-profile-hero {
    min-height: 300px !important;
    background-position: center 78% !important;
    background-size: cover !important;
  }
}

@media (max-width: 480px) {
  .vehicle-hero-profile,
  .demo-profile-hero {
    min-height: 280px !important;
    background-position: center 82% !important;
  }
}

.profile-shell{
  max-width:1100px;
  margin:-34px auto 72px;
  padding:0 24px;
  position:relative;
  z-index:4;
}

.profile-strip-compact{
  margin:0 0 20px;
  border-radius:18px;
  padding:18px 22px;
}

.profile-strip-link{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.profile-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.6fr) minmax(280px, .78fr);
  gap:20px;
  align-items:start;
}

.profile-main,
.profile-sidebar{
  display:grid;
  gap:20px;
}

.profile-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:22px;
  box-shadow:var(--shadow-sm);
}

.profile-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.profile-card-head h2{
  margin:0;
  font-size:1.35rem;
  color:var(--text);
}

.profile-card-meta{
  color:var(--text-muted);
  font-size:.92rem;
  font-weight:700;
}

.profile-side-copy{
  margin:0 0 14px;
  color:var(--text-soft);
  line-height:1.7;
}

.share-box-stacked{
  display:grid;
  gap:12px;
}

.share-box-stacked input{
  width:100%;
}

.report-link-card{
  width:100%;
  min-height:46px;
  border-radius:14px;
  border:1px solid var(--border-strong);
  background:#f8fbff;
  color:var(--primary);
  font-weight:700;
  cursor:pointer;
}

.report-link-card:disabled{
  opacity:1;
  cursor:default;
}

.timeline-single{
  grid-template-columns:1fr;
}

.profile-card-summary p{
  margin:0;
  color:var(--text-soft);
  line-height:1.75;
}

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

@media (max-width: 640px){
  .profile-shell{
    padding:0 16px;
    margin:-26px auto 48px;
  }

  .profile-card{
    padding:18px;
  }

  .profile-card-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

.legal-page{
  padding:56px 0 72px;
  background:linear-gradient(180deg,#f8fbff 0%, #f3f6fb 100%);
}

.legal-shell{
  max-width:900px;
}

.legal-hero{
  text-align:center;
  margin-bottom:26px;
}

.legal-eyebrow{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  margin-bottom:14px;
}

.legal-hero h1{
  margin:0 0 10px;
  font-size:clamp(2rem,5vw,3.2rem);
  color:#0f172a;
}

.legal-hero p{
  margin:0;
  color:#64748b;
}

.legal-card{
  background:#fff;
  border:1px solid #e4eaf3;
  border-radius:24px;
  padding:34px;
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}

.legal-card h2{
  margin:28px 0 12px;
  color:#0f172a;
  font-size:1.35rem;
}

.legal-card h3{
  margin:20px 0 10px;
  color:#0f172a;
  font-size:1.1rem;
}

.legal-card p,
.legal-card li{
  color:#64748b;
  line-height:1.8;
}

.legal-card ul{
  padding-left:22px;
}

.legal-card h2:first-child{
  margin-top:0;
}

@media (max-width:640px){
  .legal-card{
    padding:22px;
  }
}

/* =========================
   Garage Empty State
========================= */

.garage-empty-shell {
  display: grid;
  gap: 24px;
}

.garage-empty-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.garage-empty-hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.03;
  color: var(--text);
}

.garage-empty-hero-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.02rem;
}

.garage-empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.garage-empty-hero-art {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #60a5fa 100%);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.garage-empty-hero-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
}

.garage-empty-hero-art::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -42px;
  bottom: -42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.garage-empty-art-card {
  position: absolute;
  z-index: 2;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.garage-empty-art-card-main {
  left: 24px;
  top: 26px;
  right: 24px;
  padding: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  color: #fff;
}

.garage-empty-art-card-main strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.garage-empty-art-card-main p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.garage-empty-art-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.garage-empty-art-card-float {
  left: 24px;
  bottom: 24px;
  min-width: 190px;
  padding: 18px 18px 16px;
  background: #fff;
  color: var(--text);
}

.garage-empty-art-card-float strong {
  display: block;
  margin-top: 8px;
}

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

.garage-empty-step {
  padding: 24px;
}

.garage-empty-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.garage-empty-step h3,
.garage-empty-benefit h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.garage-empty-step p,
.garage-empty-benefit p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

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

.garage-empty-benefit {
  min-height: 100%;
}

@media (max-width: 1100px) {
  .garage-empty-hero,
  .garage-empty-steps,
  .garage-empty-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .garage-empty-hero {
    padding: 24px;
  }

  .garage-empty-hero-art {
    min-height: 250px;
  }
}

@media (max-width: 640px) {
  .garage-empty-actions {
    flex-direction: column;
  }

  .garage-empty-actions > * {
    width: 100%;
  }

  .garage-empty-art-card-main {
    left: 18px;
    right: 18px;
    top: 18px;
    padding: 18px;
  }

  .garage-empty-art-card-float {
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-width: 0;
  }
}

/* =========================
   Signup Page
========================= */

.signup-premium {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 26px;
  align-items: stretch;
}

.signup-panel {
  min-width: 0;
}

.signup-panel-copy {
  padding: 24px 8px 24px 0;
}

.signup-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.signup-panel-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 620px;
}

.signup-lead {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 1.04rem;
}

.signup-benefits {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.signup-benefit {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.signup-benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.signup-benefit h3 {
  margin: 2px 0 8px;
  color: var(--text);
  font-size: 1.06rem;
}

.signup-benefit p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.signup-form-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.signup-form-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.8rem;
}

.signup-form-copy {
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.signup-form-grid {
  gap: 16px;
}

.signup-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-divider {
  position: relative;
  text-align: center;
  margin: 18px 0 16px;
}

.signup-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--border);
}

.signup-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.signup-login-link {
  margin: 18px 0 0;
  text-align: center;
  color: var(--text-muted);
}

.signup-login-link a {
  color: var(--primary);
  font-weight: 700;
}

.signup-login-link a:hover {
  text-decoration: underline;
}

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

  .signup-panel-copy {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .signup-premium {
    padding: 40px 0 56px;
  }

  .signup-form-card {
    padding: 22px;
  }

  .signup-name-grid {
    grid-template-columns: 1fr;
  }

  .signup-benefit {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }
}

/* =========================
   Contact Page
========================= */

.contact-premium {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.contact-shell {
  display: grid;
  gap: 28px;
}

.contact-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.contact-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
}

.contact-lead {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.contact-main,
.contact-sidebar {
  min-width: 0;
}

.contact-sidebar {
  display: grid;
  gap: 18px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2,
.contact-card h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.contact-form-card h2 {
  font-size: 1.7rem;
}

.contact-copy,
.contact-card p,
.contact-list li,
.contact-form-note {
  color: var(--text-soft);
  line-height: 1.75;
}

.contact-copy {
  margin: 0 0 18px;
}

.contact-link {
  color: var(--primary);
  font-weight: 700;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-list {
  margin: 0;
  padding-left: 18px;
}

.contact-form-grid {
  display: grid;
  gap: 16px;
}

.contact-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form-grid label {
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-grid textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-security-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.contact-security-note,
.contact-security-warning {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.contact-security-warning {
  color: #b45309;
  font-weight: 700;
}

.contact-form-grid input,
.contact-form-grid select {
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.98rem;
  font-weight: 600;
}

.contact-form-grid textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-form-grid input:focus,
.contact-form-grid select:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.contact-form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.contact-note-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

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

@media (max-width: 640px) {
  .contact-premium {
    padding: 40px 0 56px;
  }

  .contact-card {
    padding: 22px;
  }

  .contact-name-grid {
    grid-template-columns: 1fr;
  }
}

.vault-hero-card,
.vault-plan-card,
.vault-inline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.vault-plan-card.is-locked,
.vault-inline-card.is-locked {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vault-hero-card h1,
.vault-plan-card h2 {
  margin-bottom: 8px;
}

.vault-shell,
.vault-hero {
  display: grid;
  gap: 20px;
}

.vault-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
}

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

.vault-card-wide {
  grid-column: 1 / -1;
}

.vault-plan-label,
.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vault-plan-actions,
.vault-inline-actions,
.vault-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.vault-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vault-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.vault-dot {
  opacity: 0.5;
  margin: 0 6px;
}

.vault-card-soft,
.vault-public-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 920px) {
  .vault-hero-card,
  .vault-plan-card,
  .vault-inline-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .vault-grid,
  .vault-grid-content,
  .vault-stat-grid {
    grid-template-columns: 1fr;
  }
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.vault-form-card label {
  font-weight: 700;
  color: var(--text-strong, #111827);
}

.vault-form-card textarea,
.vault-form-card select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  resize: vertical;
  min-height: 52px;
}

.vault-form-card textarea:focus,
.vault-form-card select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.vault-form-card textarea:disabled,
.vault-form-card select:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.vault-form-card small {
  color: #64748b;
}

.vault-form-actions,
.vault-inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.vault-form-actions {
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .vault-form-grid {
    grid-template-columns: 1fr;
  }

  .vault-form-actions {
    justify-content: stretch;
  }

  .vault-form-actions > * ,
  .vault-inline-actions > * {
    width: 100%;
  }
}

.vault-form-card input[type="text"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  min-height: 52px;
}

.vault-form-card input[type="text"]:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.share-links-list {
  display: grid;
  gap: 14px;
}

.share-link-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
}

.share-link-main {
  flex: 1 1 auto;
  min-width: 0;
}

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

.share-url-text {
  margin: 0;
  color: #2563eb;
  word-break: break-all;
  font-size: 0.94rem;
}

.share-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.share-photo-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  min-height: 180px;
}

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

@media (max-width: 760px) {
  .share-link-card {
    flex-direction: column;
  }

  .share-link-actions > * {
    width: 100%;
  }

  .share-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PUBLIC PROFILE – MOBILE FIXES
   Append to very bottom of style.css
========================================== */

@media (max-width: 768px) {
  .vehicle-hero-profile {
    min-height: 360px;
    padding: 20px 16px 18px;
    background-position: center center;
  }

  .vehicle-content {
    max-width: 100%;
  }

  .vehicle-content h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .vehicle-content p {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .profile-kicker {
    font-size: 0.72rem;
    min-height: 30px;
    padding: 0 10px;
  }

  .vehicle-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
  }

  .vehicle-stats div {
    min-width: 0;
  }

  .vehicle-stats strong {
    font-size: 1.2rem;
  }

  .vehicle-stats span {
    font-size: 0.75rem;
  }

  .profile-shell {
    padding: 0 14px 28px;
    margin: 0 auto;
  }

  .profile-strip.profile-strip-compact {
    margin-top: -22px;
    margin-bottom: 20px;
    padding: 14px;
    gap: 14px;
    border-radius: 18px;
  }

  .profile-strip-item {
    min-width: 0;
    flex: 1 1 100%;
  }

  .profile-strip-link {
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-main,
  .profile-sidebar {
    gap: 18px;
  }

  .profile-card {
    padding: 18px;
    border-radius: 18px;
  }

  .profile-card h2,
  .profile-card-head h2 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .profile-card-meta {
    font-size: 0.82rem;
  }

  .profile-card p,
  .profile-side-copy,
  .timeline-item p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .profile-state-actions {
    width: 100%;
  }

  .profile-state-actions .btn-primary,
  .profile-state-actions .btn-secondary {
    width: 100%;
  }

  .photo-grid-premium {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .photo-main img {
    min-height: 220px;
    border-radius: 14px;
  }

  .photo-side {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .photo-side img,
  .photo-placeholder {
    min-height: 140px;
    border-radius: 14px;
  }

  .public-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .public-gallery-thumb {
    border-radius: 12px;
  }

  .share-box-stacked {
    gap: 10px;
  }

  .share-box-stacked input,
  .share-box-stacked .btn-primary {
    width: 100%;
  }

  .report-link-card {
    min-height: 48px;
    width: 100%;
  }

  .timeline-single .timeline-item {
    padding: 16px;
  }

  .site-footer-rich {
    margin-top: 32px;
    padding: 28px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-copy {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .vehicle-hero-profile {
    min-height: 320px;
    padding: 18px 14px 16px;
  }

  .vehicle-content h1 {
    font-size: 1.75rem;
  }

  .vehicle-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }

  .profile-shell {
    padding: 0 12px 24px;
  }

  .profile-strip.profile-strip-compact {
    padding: 12px;
  }

  .profile-card {
    padding: 16px;
  }

  .photo-main img {
    min-height: 200px;
  }

  .photo-side img,
  .photo-placeholder {
    min-height: 120px;
  }
}


/* ==========================================
   PUBLIC PROFILE – FINAL MOBILE OVERRIDES
========================================== */
@media (max-width: 768px) {
  .vehicle-hero-profile {
    min-height: 300px !important;
    padding: 14px 14px 12px !important;
    align-items: flex-end;
    background-position: center center !important;
  }

  .vehicle-hero-profile .vehicle-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.28)) !important;
  }

  .vehicle-hero-profile .vehicle-content {
    width: 100%;
    max-width: 100% !important;
  }

  .vehicle-hero-profile .profile-kicker {
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 8px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .vehicle-hero-profile .vehicle-content h1 {
    font-size: 1.72rem !important;
    line-height: 1.04 !important;
    margin: 0 0 6px;
  }

  .vehicle-hero-profile .vehicle-content p {
    margin: 0 0 10px;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }

  .vehicle-hero-profile .vehicle-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 0;
  }

  .vehicle-hero-profile .vehicle-stats > div {
    min-width: 0;
    padding: 10px 10px 9px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
  }

  .vehicle-hero-profile .vehicle-stats strong {
    font-size: 1.02rem !important;
    line-height: 1.05;
  }

  .vehicle-hero-profile .vehicle-stats span {
    margin-top: 2px;
    font-size: 0.68rem !important;
    line-height: 1.1;
  }

  .profile-shell {
    max-width: 100%;
    margin: 0 auto 28px !important;
    padding: 0 10px 28px !important;
  }

  .profile-strip.profile-strip-compact {
    margin: -4px 0 16px !important;
    padding: 14px 14px 12px !important;
    gap: 12px !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm);
  }

  .profile-strip-item {
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  .profile-strip-item strong {
    display: block;
    min-width: 0;
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .profile-strip-link {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 0.88rem !important;
  }

  .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .profile-main,
  .profile-sidebar {
    gap: 14px !important;
  }

  .profile-side-card {
    position: static !important;
    top: auto !important;
  }

  .profile-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .profile-card-head {
    margin-bottom: 10px !important;
  }

  .profile-card h2,
  .profile-card-head h2 {
    font-size: 1.02rem !important;
    line-height: 1.22 !important;
  }

  .profile-card p,
  .profile-side-copy,
  .timeline-item p {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
  }

  .profile-state-actions,
  .profile-state-actions .btn-primary,
  .profile-state-actions .btn-secondary,
  .share-box-stacked input,
  .share-box-stacked .btn-primary,
  .report-link-card {
    width: 100%;
  }

  .share-box-stacked input {
    min-width: 0;
  }

  .photo-grid-premium {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .photo-main img {
    min-height: 200px !important;
    border-radius: 14px !important;
  }

  .photo-side {
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  .photo-side img,
  .photo-placeholder {
    min-height: 104px !important;
    border-radius: 12px !important;
  }

  .public-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .timeline-single .timeline-item {
    padding: 14px !important;
  }

  .site-footer-rich {
    margin-top: 24px !important;
    padding: 24px 0 18px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .vehicle-hero-profile {
    min-height: 280px !important;
    padding: 12px 12px 10px !important;
  }

  .vehicle-hero-profile .vehicle-content h1 {
    font-size: 1.52rem !important;
  }

  .vehicle-hero-profile .vehicle-content p {
    font-size: 0.8rem !important;
    margin-bottom: 8px;
  }

  .vehicle-hero-profile .vehicle-stats {
    gap: 5px;
  }

  .vehicle-hero-profile .vehicle-stats > div {
    padding: 8px 8px 7px;
  }

  .vehicle-hero-profile .vehicle-stats strong {
    font-size: 0.95rem !important;
  }

  .vehicle-hero-profile .vehicle-stats span {
    font-size: 0.64rem !important;
  }

  .profile-shell {
    padding: 0 8px 22px !important;
  }

  .profile-strip.profile-strip-compact,
  .profile-card {
    border-radius: 14px !important;
  }

  .profile-strip.profile-strip-compact {
    padding: 12px 12px 10px !important;
  }

  .profile-card {
    padding: 14px !important;
  }

  .photo-main img {
    min-height: 180px !important;
  }

  .photo-side {
    grid-template-columns: 1fr 1fr;
  }

  .photo-side img,
  .photo-placeholder {
    min-height: 92px !important;
  }
}


/* ==========================================
   PROFILE SEO / TRUST / ANALYTICS POLISH
========================================== */
.profile-cta-actions {
  align-items: center;
}

.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badge {
  min-width: 152px;
  flex: 1 1 180px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.trust-badge strong {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text);
}

.trust-badge span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.trust-badge.is-public {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.trust-badge.is-verified {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.trust-badge.is-records {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.trust-badge.is-owner {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

@media (max-width: 768px) {
  .trust-badge-row {
    gap: 10px;
  }

  .trust-badge {
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
    padding: 12px 14px;
    border-radius: 16px;
  }

  .profile-cta-actions .btn-primary,
  .profile-cta-actions .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .trust-badge {
    flex-basis: 100%;
  }
}

/* ==========================================
   PUBLIC PROFILE FINAL LAYOUT RESTORE
========================================== */
html,
body {
  background: var(--bg);
}

body.profile-page-body,
.profile-page,
.profile-page main.page-shell,
.profile-page .page-shell {
  background: var(--bg);
}

.profile-page {
  width: 100%;
  overflow-x: clip;
}

.profile-shell {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin: -34px auto 72px;
  padding: 0 24px 40px;
}

.profile-strip.profile-strip-compact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  margin: 0 0 28px;
  padding: 20px 24px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.profile-main,
.profile-sidebar {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.profile-sidebar {
  align-content: start;
}

.profile-card,
.profile-sidebar .profile-card,
.profile-side-card,
.share-box-card,
.report-card,
.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.profile-card,
.profile-sidebar .profile-card,
.profile-side-card,
.report-card,
.timeline-card {
  padding: 24px;
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profile-card h2,
.profile-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text);
}

.profile-card p,
.profile-side-copy,
.timeline-item p {
  color: var(--text-soft);
}

.profile-side-card {
  position: sticky;
  top: 96px;
}

.share-box-stacked {
  display: grid;
  gap: 12px;
}

.share-box-stacked input,
.share-box-stacked .btn-primary,
.report-link-card {
  width: 100%;
}

.report-link-card {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #f8fbff;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 980px) {
  .profile-shell {
    margin: -26px auto 56px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-main,
  .profile-sidebar {
    gap: 18px;
  }

  .profile-side-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .profile-shell {
    padding: 0 16px 28px;
  }

  .profile-strip.profile-strip-compact,
  .profile-card,
  .profile-sidebar .profile-card,
  .profile-side-card,
  .report-card,
  .timeline-card {
    border-radius: 18px;
  }

  .profile-strip.profile-strip-compact,
  .profile-card,
  .profile-sidebar .profile-card,
  .profile-side-card,
  .report-card,
  .timeline-card {
    padding: 18px;
  }

  .profile-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ===== Drifolio profile fix: restore rounded white cards + stack For Sale Snapshot data ===== */

.profile-strip-compact,
.profile-summary,
.profile-sale-card,
.profile-snapshot-card,
.profile-timeline-card,
.profile-side-card,
.profile-sidebar .card,
.profile-sidebar > .card,
.profile-sidebar .profile-side-card,
.profile-main .card,
.profile-main > .card,
.profile-main > section,
.profile-sidebar > section {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-main,
.profile-sidebar {
  gap: 20px;
  align-content: start;
}

.profile-sidebar {
  position: sticky;
  top: 96px;
}

@media (max-width: 980px) {
  .profile-sidebar {
    position: static;
    top: auto;
  }
}

/* Right sidebar: For Sale Snapshot should stack label over value like the rest of the page */
.profile-sale-snapshot,
.for-sale-snapshot,
.sale-snapshot-card,
.profile-side-card--sale {
  display: grid;
  gap: 0;
}

.profile-sale-snapshot .snapshot-item,
.for-sale-snapshot .snapshot-item,
.sale-snapshot-card .snapshot-item,
.profile-side-card--sale .snapshot-item,
.profile-sale-snapshot .meta-item,
.for-sale-snapshot .meta-item,
.sale-snapshot-card .meta-item,
.profile-side-card--sale .meta-item,
.profile-sale-snapshot .profile-meta-item,
.for-sale-snapshot .profile-meta-item,
.sale-snapshot-card .profile-meta-item,
.profile-side-card--sale .profile-meta-item,
.profile-sale-snapshot li,
.for-sale-snapshot li,
.sale-snapshot-card li,
.profile-side-card--sale li {
  display: grid;
  gap: 6px;
  align-items: start;
  padding: 14px 0 0;
  margin: 14px 0 0;
  border-top: 1px solid var(--border);
}

.profile-sale-snapshot .snapshot-item:first-child,
.for-sale-snapshot .snapshot-item:first-child,
.sale-snapshot-card .snapshot-item:first-child,
.profile-side-card--sale .snapshot-item:first-child,
.profile-sale-snapshot .meta-item:first-child,
.for-sale-snapshot .meta-item:first-child,
.sale-snapshot-card .meta-item:first-child,
.profile-side-card--sale .meta-item:first-child,
.profile-sale-snapshot .profile-meta-item:first-child,
.for-sale-snapshot .profile-meta-item:first-child,
.sale-snapshot-card .profile-meta-item:first-child,
.profile-side-card--sale .profile-meta-item:first-child,
.profile-sale-snapshot li:first-child,
.for-sale-snapshot li:first-child,
.sale-snapshot-card li:first-child,
.profile-side-card--sale li:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.profile-sale-snapshot .label,
.for-sale-snapshot .label,
.sale-snapshot-card .label,
.profile-side-card--sale .label,
.profile-sale-snapshot .meta-label,
.for-sale-snapshot .meta-label,
.sale-snapshot-card .meta-label,
.profile-side-card--sale .meta-label {
  display: block;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.profile-sale-snapshot strong,
.for-sale-snapshot strong,
.sale-snapshot-card strong,
.profile-side-card--sale strong,
.profile-sale-snapshot .meta-value,
.for-sale-snapshot .meta-value,
.sale-snapshot-card .meta-value,
.profile-side-card--sale .meta-value,
.profile-sale-snapshot .value,
.for-sale-snapshot .value,
.sale-snapshot-card .value,
.profile-side-card--sale .value {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.profile-sale-snapshot p,
.for-sale-snapshot p,
.sale-snapshot-card p,
.profile-side-card--sale p {
  margin: 0;
}

/* =========================
   Private Vault VIN Fix
========================= */

.vault-stat-grid .stat-block strong {
  max-width: 100%;
}

.vault-stat-grid .stat-block strong.vin-value,
.vault-stat-grid .stat-block .vin-value {
  display: block;
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.02em;

  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 768px) {
  .vault-stat-grid .stat-block strong.vin-value,
  .vault-stat-grid .stat-block .vin-value {
    font-size: 0.95rem;
  }
}

/* =========================
   Photo Lightbox
========================= */

.profile-photo-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.profile-photo-trigger img {
  display: block;
  width: 100%;
}

.profile-gallery-hint {
  margin: 0 0 12px;
  color: #667085;
  font-size: 0.95rem;
}

.drifolio-lightbox[hidden] {
  display: none !important;
}

.drifolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.drifolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
}

.drifolio-lightbox__dialog {
  position: relative;
  z-index: 10000;
  width: min(1120px, calc(100vw - 32px));
  margin: 32px auto;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drifolio-lightbox__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
}

.drifolio-lightbox__image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drifolio-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  background: #fff;
}

.drifolio-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.drifolio-lightbox__close span,
.drifolio-lightbox__close svg {
  pointer-events: none;
}

.drifolio-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  z-index: 10020;
}

.drifolio-lightbox__nav--prev {
  left: -26px;
}

.drifolio-lightbox__nav--next {
  right: -26px;
}

.drifolio-lightbox__footer {
  margin-top: 14px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .drifolio-lightbox__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    height: calc(100vh - 16px);
  }

  .drifolio-lightbox__nav--prev {
    left: 8px;
  }

  .drifolio-lightbox__nav--next {
    right: 8px;
  }

  .drifolio-lightbox__close {
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .drifolio-lightbox__image {
    max-height: calc(100vh - 140px);
  }
}

.showcase-filter-group h4 {
    margin-bottom: 12px;
	margin-top: 12px;
}
/* =========================
   Garage News Blog
========================= */

.garage-news-page {
  background: #f5f7fb;
  min-height: calc(100vh - 120px);
  padding: 2rem 0 3rem;
}

.garage-news-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.garage-news-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.garage-news-heading {
  flex: 1 1 520px;
}

.garage-news-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.garage-news-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.garage-news-sidebar {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.garage-news-main {
  min-width: 0;
}

.garage-news-filter-card {
  display: grid;
  gap: 1rem;
}

.garage-news-sidebar-list {
  display: grid;
  gap: 0.25rem;
}

.garage-news-sidebar-link {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.garage-news-sidebar-link:hover,
.garage-news-sidebar-link.is-active {
  background: #eef4ff;
  color: #2563eb;
}

.garage-news-sidebar-link em {
  font-style: normal;
  color: #64748b;
  font-weight: 700;
}

.garage-news-mini-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.garage-news-mini-icon svg,
.garage-news-category-strip svg,
.garage-news-category-list svg {
  width: 22px;
  height: 22px;
  display: block;
}

.garage-news-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.garage-news-topic-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.garage-news-topic-pills a:hover {
  background: #e8efff;
  color: #2563eb;
}

.garage-news-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 330px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  color: inherit;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.garage-news-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 36%, rgba(255,255,255,0) 62%);
}

.garage-news-featured img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  grid-column: 2;
}

.garage-news-featured-copy {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.garage-news-featured-copy span,
.garage-news-card-body span,
.garage-article-kicker a {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.garage-news-featured-copy h2 {
  margin: 0.65rem 0 0.85rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.03;
  max-width: 520px;
}

.garage-news-featured-copy p {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 490px;
}

.garage-news-meta,
.garage-news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.garage-news-featured-copy strong {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.2rem;
  padding: 0 1.2rem;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.garage-news-category-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
}

.garage-news-category-strip a {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  text-align: center;
  color: #0f172a;
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.garage-news-category-strip a:hover {
  background: #f8fbff;
}

.garage-news-category-strip span {
  color: #2563eb;
}

.garage-news-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
}

.garage-news-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
}

.garage-news-section-head a,
.garage-news-widget-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
}

.garage-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.garage-news-card {
  display: block;
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.garage-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border-color: #d8e3f5;
}

.garage-news-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

.garage-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.garage-news-card-body {
  padding: 1rem;
}

.garage-news-card-body h3 {
  margin: 0.45rem 0 0.45rem;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.garage-news-card-body p {
  margin: 0 0 0.8rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.48;
}

.garage-news-widget,
.garage-news-cta-card {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.garage-news-widget h3,
.garage-news-cta-card h3 {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.25;
}

.garage-news-widget p,
.garage-news-widget small {
  color: #64748b;
  line-height: 1.55;
}

.garage-news-search-row,
.garage-news-subscribe-row {
  display: flex;
  gap: 0.5rem;
}

.garage-news-search-row input,
.garage-news-subscribe-row input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 0 0.9rem;
  outline: none;
}

.garage-news-search-row button,
.garage-news-subscribe-row button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  padding: 0 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.garage-news-trending-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.garage-news-trending-list a {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.garage-news-trending-list img {
  width: 82px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #dbeafe;
}

.garage-news-trending-list strong {
  display: block;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.garage-news-trending-list em,
.garage-news-category-list em {
  font-style: normal;
  color: #64748b;
  font-size: 0.84rem;
}

.garage-news-cta-card {
  background: #061831;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.garage-news-cta-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 190px;
  height: 130px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.3);
  filter: blur(16px);
}

.garage-news-cta-card h3 {
  color: #fff;
  font-size: 1.45rem;
}

.garage-news-cta-card ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.garage-news-cta-card li::before {
  content: '✓';
  margin-right: 0.5rem;
}

.garage-news-cta-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.garage-news-category-list {
  display: grid;
  gap: 0.6rem;
}

.garage-news-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.garage-news-category-list a:hover,
.garage-news-category-list a.is-active {
  color: #2563eb;
}

.garage-news-category-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.garage-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.garage-article-card {
  background: #fff;
  border: 1px solid #e5ebf5;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
}

.garage-article-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: #64748b;
}

.garage-article-card h1 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  max-width: 900px;
}

.garage-article-excerpt {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 850px;
}

.garage-article-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 1.4rem 0;
  background: #dbeafe;
}

.garage-article-body {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
}

.garage-article-body h2,
.garage-article-body h3 {
  color: #0f172a;
  margin: 1.4rem 0 0.55rem;
}

.garage-article-body p {
  margin: 0 0 1rem;
}

.garage-article-cta {
  margin-top: 1.75rem;
  padding: 1.2rem;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.garage-article-cta span {
  display: block;
  color: #475569;
  margin-bottom: 0.25rem;
}

.garage-article-cta strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.garage-article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 0 1rem;
  font-weight: 800;
}

.garage-news-related-head {
  margin-top: 2rem;
}

@media (max-width: 1180px) {
  .garage-news-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .garage-news-sidebar-right {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .garage-news-layout,
  .garage-news-two-col,
  .garage-article-layout {
    grid-template-columns: 1fr;
  }
  .garage-news-sidebar {
    position: static;
  }
  .garage-news-sidebar-right {
    grid-template-columns: 1fr;
  }
  .garage-news-featured {
    grid-template-columns: 1fr;
  }
  .garage-news-featured::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.86) 48%, rgba(255,255,255,0));
  }
  .garage-news-featured-copy {
    grid-row: 1;
  }
  .garage-news-featured img {
    grid-column: 1;
    grid-row: 1;
  }
  .garage-news-category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .garage-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .garage-news-page {
    padding: 1.5rem 0 2.5rem;
  }
  .garage-news-grid {
    grid-template-columns: 1fr;
  }
  .garage-news-featured-copy {
    padding: 1.25rem;
  }
  .garage-news-featured-copy h2 {
    font-size: 2rem;
  }
  .garage-news-category-strip {
    grid-template-columns: 1fr;
  }
  .garage-news-search-row,
  .garage-news-subscribe-row {
    flex-direction: column;
  }
  .garage-article-card {
    padding: 1rem;
  }
  .garage-article-hero {
    aspect-ratio: 16 / 10;
  }
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.footer-social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
  outline: none;
}

/* Vehicle Story Mode */
.manager-timeline-card {
  margin-bottom: 28px;
}

.timeline-header-row {
  gap: 18px;
  align-items: flex-start;
}

.timeline-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.timeline-view-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font-size: .92rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0 18px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.timeline-view-btn:hover,
.timeline-view-btn:focus-visible {
  color: var(--primary);
  outline: none;
}

.timeline-view-btn.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}

.timeline-view-panel {
  display: none;
}

.timeline-view-panel.is-active {
  display: block;
}

.story-mode-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.story-mode-intro h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
}

.story-mode-intro p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.story-timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 46px;
}

.story-timeline-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, #dbeafe, #e2e8f0);
  border-radius: 999px;
}

.story-milestone {
  position: relative;
}

.story-milestone-marker {
  position: absolute;
  left: -46px;
  top: 16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.16);
}

.story-milestone-card {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.story-milestone-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.story-milestone h3 {
  margin: 8px 0 8px;
  font-size: 1.18rem;
}

.story-milestone p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.story-milestone-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 700;
}

.story-milestone-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 900;
}

.story-milestone.is-story-orange .story-milestone-marker { background: #f97316; }
.story-milestone.is-story-blue .story-milestone-marker { background: #2563eb; }
.story-milestone.is-story-green .story-milestone-marker { background: #16a34a; }
.story-milestone.is-story-red .story-milestone-marker { background: #dc2626; }
.story-milestone.is-story-purple .story-milestone-marker { background: #7c3aed; }
.story-milestone.is-story-gold .story-milestone-marker { background: #d97706; }
.story-milestone.is-story-slate .story-milestone-marker { background: #475569; }

@media (max-width: 768px) {
  .timeline-header-row {
    align-items: stretch;
  }

  .timeline-view-switch {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .story-mode-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .story-timeline-list {
    padding-left: 38px;
  }

  .story-timeline-list::before {
    left: 15px;
  }

  .story-milestone-marker {
    left: -38px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    font-size: .84rem;
  }
}

/* Profile Share buttons fix */
.profile-share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.profile-share-actions .btn {
  width: 220px;              /* consistent width */
  max-width: 90%;
  height: 44px;              /* standard mobile button height */
  font-size: 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

/* Copy button (secondary style) */
.profile-share-actions .btn-copy {
  background: #f5f7fb;
  border: 1px solid #e3e8ef;
  color: #2c3e50;
}

/* Open profile (primary but not oversized) */
.profile-share-actions .btn-open {
  background: linear-gradient(135deg, #2f6bff, #1e4ed8);
  color: #fff;
  border: none;
}

/* Kill any inherited giant sizing */
.profile-share-actions .btn,
.profile-share-actions .btn-copy,
.profile-share-actions .btn-open {
  min-height: unset;
  line-height: normal;
}


/* ============================================================
   Drifolio Vehicle Manager cleanup patch
   - Profile Share utility buttons stay compact
   - Profile Share URL input hidden on manager page
   - Timeline record image/actions stay centered and consistent
   - Needs History reminder actions stand out more
   ============================================================ */

/* Profile Share should be a compact utility action area, not a hero CTA block. */
.vehicle-manager-shell .share-box {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* Hide the raw share URL on the vehicle manager page; keep Copy/Open buttons only. */
.vehicle-manager-shell .share-box input[type="text"] {
  display: none !important;
}

/* Keep Profile Share buttons small, equal-width, and centered. */
.vehicle-manager-shell .share-box .btn-primary,
.vehicle-manager-shell .share-box .btn-secondary,
.vehicle-manager-shell .share-box button.btn-primary,
.vehicle-manager-shell .share-box button.btn-secondary,
.vehicle-manager-shell .share-box a.btn-primary,
.vehicle-manager-shell .share-box a.btn-secondary {
  flex: 0 0 180px !important;
  width: 180px !important;
  max-width: 100%;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  line-height: 1 !important;
  box-shadow: none;
}

/* Keep the primary Open Profile button branded without oversized mobile scaling. */
.vehicle-manager-shell .share-box .btn-primary,
.vehicle-manager-shell .share-box a.btn-primary {
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

/* Vehicle manager record/timeline action buttons: centered, equal width. */
.vehicle-manager-shell .timeline-entry .card-actions,
.vehicle-manager-shell .record-action-row,
.vehicle-manager-shell .timeline-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Prevent global mobile button rules from stretching timeline actions unevenly. */
.vehicle-manager-shell .timeline-entry .card-actions > *,
.vehicle-manager-shell .record-action-row > *,
.vehicle-manager-shell .timeline-action-row > * {
  flex: 0 0 auto !important;
}

.vehicle-manager-shell .timeline-entry .card-actions .btn-small,
.vehicle-manager-shell .timeline-entry .card-actions button.btn-small,
.vehicle-manager-shell .record-action-row .btn-small,
.vehicle-manager-shell .record-action-row button.btn-small,
.vehicle-manager-shell .timeline-action-row .btn-small,
.vehicle-manager-shell .timeline-action-row button.btn-small {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  text-align: center;
}

/* Attached record image: float below the buttons, small enough to avoid pushing controls left. */
.vehicle-manager-shell .timeline-record-media,
.vehicle-manager-shell .record-timeline-media,
.vehicle-manager-shell .timeline-media-preview,
.vehicle-manager-shell .record-media-timeline-preview {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.vehicle-manager-shell .timeline-record-media img,
.vehicle-manager-shell .record-timeline-media img,
.vehicle-manager-shell .timeline-media-preview img,
.vehicle-manager-shell .record-media-timeline-preview img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.vehicle-manager-shell .timeline-record-media small,
.vehicle-manager-shell .record-timeline-media small,
.vehicle-manager-shell .timeline-media-preview small,
.vehicle-manager-shell .record-media-timeline-preview small {
  display: block;
  margin-top: 6px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Needs History / reminder Add service record links should look actionable. */
.vehicle-manager-shell .suggestion-item .text-link-button,
.vehicle-manager-shell .suggestion-item a.text-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.vehicle-manager-shell .suggestion-item .text-link-button:hover,
.vehicle-manager-shell .suggestion-item a.text-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.24);
}

/* Mobile-specific guardrails for manager page buttons. */
@media (max-width: 640px) {
  .vehicle-manager-shell .share-box {
    flex-direction: column;
  }

  .vehicle-manager-shell .share-box .btn-primary,
  .vehicle-manager-shell .share-box .btn-secondary,
  .vehicle-manager-shell .share-box button.btn-primary,
  .vehicle-manager-shell .share-box button.btn-secondary,
  .vehicle-manager-shell .share-box a.btn-primary,
  .vehicle-manager-shell .share-box a.btn-secondary {
    flex-basis: 220px !important;
    width: 220px !important;
    max-width: 82vw;
    min-height: 44px !important;
    height: 44px !important;
  }

  .vehicle-manager-shell .timeline-entry {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vehicle-manager-shell .timeline-entry .card-actions,
  .vehicle-manager-shell .record-action-row,
  .vehicle-manager-shell .timeline-action-row {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  .vehicle-manager-shell .suggestion-item .text-link-button,
  .vehicle-manager-shell .suggestion-item a.text-link-button {
    width: 100%;
    min-height: 44px;
  }
}


/* Private Vault Documents */
.vault-documents-head {
  align-items: flex-start;
}

.vault-doc-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

.vault-document-upload-form {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(37, 79, 219, 0.18);
  border-radius: 18px;
  background: rgba(37, 79, 219, 0.04);
}

.vault-document-upload-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
  margin-bottom: 12px;
}

.vault-document-upload-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #111827;
}

.vault-document-upload-form select,
.vault-document-upload-form input[type="file"] {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.vault-doc-help {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.9rem;
}

.vault-documents-list {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.vault-folder-row {
  border-bottom: 1px solid #f1f5f9;
}

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

.vault-folder-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vault-folder-summary::-webkit-details-marker {
  display: none;
}

.vault-folder-summary:hover {
  background: #fafafa;
}

.vault-folder-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.vault-folder-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 79, 219, 0.08);
  color: #254fdb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vault-folder-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vault-folder-content strong {
  font-size: 0.98rem;
  color: #111827;
}

.vault-folder-content span {
  margin-top: 3px;
  font-size: 0.86rem;
  color: #64748b;
}

.vault-folder-menu {
  color: #64748b;
  font-weight: 900;
  letter-spacing: 2px;
}

.vault-folder-files {
  padding: 0 20px 18px 78px;
  display: grid;
  gap: 10px;
}

.vault-folder-empty {
  padding: 0 20px 18px 78px;
  color: #64748b;
  font-size: 0.92rem;
}

.vault-document-file {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fbfdff;
}

.vault-document-file-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vault-document-file-main strong {
  color: #111827;
  overflow-wrap: anywhere;
}

.vault-document-file-main span {
  color: #64748b;
  font-size: 0.86rem;
}

.vault-document-file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vault-document-file-actions form {
  margin: 0;
}

.vault-documents-actions {
  margin-top: 18px;
}

.vault-documents-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.98rem;
  padding: 14px 18px;
  border: none !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #3564f4 0%, #254fdb 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 79, 219, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.vault-documents-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 79, 219, 0.34);
  opacity: 0.98;
}

.vault-documents-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 79, 219, 0.24);
}

@media (max-width: 760px) {
  .vault-document-upload-grid {
    grid-template-columns: 1fr;
  }

  .vault-folder-summary {
    padding: 16px;
  }

  .vault-folder-left {
    gap: 12px;
  }

  .vault-folder-icon {
    width: 38px;
    height: 38px;
  }

  .vault-folder-files,
  .vault-folder-empty {
    padding: 0 16px 16px;
  }

  .vault-document-file {
    align-items: flex-start;
    flex-direction: column;
  }

  .vault-document-file-actions,
  .vault-document-file-actions .btn-secondary,
  .vault-document-file-actions form,
  .vault-document-file-actions button {
    width: 100%;
  }
}


/* Private vault document delete modal */
.document-delete-modal__dialog {
  max-width: 560px;
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.document-delete-modal__dialog h3 {
  margin: 0 0 16px;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.document-delete-modal__dialog .report-copy {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.document-delete-modal__actions {
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.document-delete-modal__actions .btn-secondary,
.document-delete-modal__actions .btn-danger {
  min-width: 140px;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .document-delete-modal__dialog {
    padding: 26px;
    border-radius: 24px;
  }

  .document-delete-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-delete-modal__actions .btn-secondary,
  .document-delete-modal__actions .btn-danger {
    width: 100%;
  }
}


/* =========================
   Drifolio PWA Install Banner
========================= */
.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-banner {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(214, 222, 234, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.pwa-install-banner__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pwa-install-banner__copy strong {
  color: var(--text);
  font-size: 1rem;
}

.pwa-install-banner__copy span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pwa-install-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .pwa-install-banner__actions {
    width: 100%;
  }

  .pwa-install-banner__actions .btn-primary,
  .pwa-install-banner__actions .btn-secondary {
    flex: 1;
  }
}


/* ===================================================
   HOME PAGE MOBILE HERO FIX
   Keeps desktop hero intact while simplifying the
   mobile layout so the homepage does not overflow.
=================================================== */

@media (max-width: 768px) {
  .home-premium {
    overflow-x: hidden;
  }

  .home-hero {
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
    background-position: center top !important;
    background-size: cover !important;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 11, 24, 0.72) 0%, rgba(5, 11, 24, 0.52) 42%, rgba(5, 11, 24, 0.86) 100%),
      linear-gradient(90deg, rgba(5, 11, 24, 0.72) 0%, rgba(5, 11, 24, 0.3) 100%) !important;
  }

  .home-hero-inner {
    width: 100% !important;
    min-height: auto !important;
    display: block !important;
    padding-top: 74px !important;
    padding-bottom: 44px !important;
  }

  .home-hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .home-eyebrow {
    margin-bottom: 14px !important;
    padding: 7px 12px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.04em !important;
    color: #dbeafe !important;
    background: rgba(255, 255, 255, 0.11) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }

  .home-hero h1 {
    max-width: 360px !important;
    margin-bottom: 14px !important;
    font-size: clamp(2.55rem, 13vw, 4.25rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.06em !important;
    text-wrap: balance;
  }

  .home-hero p {
    max-width: 360px !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  .home-hero-actions {
    width: 100% !important;
    max-width: 360px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  .home-hero-actions a,
  .home-hero-actions .btn-primary,
  .home-hero-actions .btn-secondary {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
  }

  .home-hero-feature-layer {
    display: none !important;
  }

  .home-feature-card {
    position: static !important;
  }

  .home-feature-card::before,
  .home-feature-card::after {
    display: none !important;
  }

  .home-hero-trust-rail {
    display: none !important;
  }

  .home-section {
    padding: 38px 0 8px !important;
  }

  .home-section-tight {
    padding-top: 24px !important;
  }

  .home-section-head {
    margin-bottom: 16px !important;
  }

  .home-section-head h2 {
    font-size: clamp(1.65rem, 8vw, 2.1rem) !important;
  }

  .home-card-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .home-info-card {
    min-height: auto !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .home-info-card h3 {
    font-size: 1.05rem !important;
  }

  .home-info-card p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .home-bottom-cta {
    padding: 34px 0 56px !important;
  }

  .home-bottom-cta-card {
    padding: 30px 22px !important;
    border-radius: 24px !important;
    text-align: center !important;
  }

  .home-bottom-cta-card h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem) !important;
  }

  .home-bottom-cta-card p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }

  .home-bottom-cta-card .home-hero-actions {
    max-width: 100% !important;
    margin-top: 22px !important;
  }
}

@media (max-width: 420px) {
  .home-hero-inner {
    padding-top: 62px !important;
    padding-bottom: 38px !important;
  }

  .home-hero h1 {
    max-width: 320px !important;
    font-size: clamp(2.45rem, 15vw, 3.6rem) !important;
  }

  .home-hero p,
  .home-hero-actions {
    max-width: 320px !important;
  }
}

/* =========================
   Home Hero Feature Card Overlap Fix
   Keeps the desktop floating-card design but prevents card text overlap.
========================= */
@media (min-width: 1181px) {
  .home-hero-inner {
    grid-template-columns: minmax(320px, 520px) minmax(760px, 1fr);
    gap: 52px;
  }

  .home-hero-feature-layer {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 18px;
    align-items: start;
    min-height: 430px;
    padding-top: 54px;
  }

  .home-feature-card,
  .home-feature-card:nth-child(1),
  .home-feature-card:nth-child(2),
  .home-feature-card:nth-child(3),
  .home-feature-card:nth-child(4) {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    min-width: 0;
    min-height: 164px;
    padding: 20px 18px 18px;
    overflow: visible;
  }

  .home-feature-card h3 {
    font-size: 17px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: normal;
  }

  .home-feature-card p {
    font-size: 13px;
    line-height: 1.45;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .home-feature-card a {
    display: inline-flex;
    max-width: 100%;
    white-space: nowrap;
  }

  .home-feature-card::after {
    height: 150px;
  }

  .home-feature-card::before {
    top: calc(100% + 146px);
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .home-hero-inner {
    grid-template-columns: minmax(300px, 490px) minmax(680px, 1fr);
    gap: 38px;
  }

  .home-hero-feature-layer {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
  }

  .home-feature-card,
  .home-feature-card:nth-child(1),
  .home-feature-card:nth-child(2),
  .home-feature-card:nth-child(3),
  .home-feature-card:nth-child(4) {
    padding: 18px 14px 16px;
    min-height: 160px;
  }

  .home-feature-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .home-feature-card h3 {
    font-size: 16px;
  }

  .home-feature-card p,
  .home-feature-card a {
    font-size: 12px;
  }
}
/* =========================
   Home Hero CTA / Trust Rail Spacing Fix
   Keeps hero buttons clear of the bottom benefit banner.
========================= */
@media (min-width: 1181px) {
  .home-hero {
    min-height: 760px;
    padding-bottom: 170px;
  }

  .home-hero-inner {
    min-height: 590px;
    align-items: center;
  }

  .home-hero-copy {
    transform: translateY(-14px);
  }

  .home-hero-actions {
    position: relative;
    z-index: 8;
    margin-top: 28px;
  }

  .home-hero-trust-rail {
    bottom: 34px;
    z-index: 5;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .home-hero {
    min-height: 790px;
    padding-bottom: 190px;
  }

  .home-hero-copy {
    max-width: 520px;
  }

  .home-hero-copy h1 {
    font-size: clamp(3.25rem, 4.6vw, 5rem);
  }

  .home-hero-trust-rail {
    bottom: 28px;
    width: min(1100px, calc(100vw - 96px));
  }
}

@media (max-width: 1180px) {
  .home-hero-actions {
    position: relative;
    z-index: 8;
  }
}


/* =========================
   Referral Rewards / Growth Center
========================= */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.referral-stat-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.referral-stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.referral-stat-card strong {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.referral-progress-card {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.referral-progress-card.is-complete {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.referral-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.referral-progress-top strong {
  color: var(--text);
}

.referral-progress-top span {
  color: var(--primary);
  font-weight: 800;
}

.referral-progress-track {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.referral-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.referral-progress-card p {
  margin: 12px 0 0;
}

.referral-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.referral-reward-card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.referral-reward-card.is-unlocked {
  border-color: #86efac;
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.referral-reward-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.referral-reward-top span {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
}

.referral-reward-top em {
  font-style: normal;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.referral-reward-card.is-unlocked .referral-reward-top em {
  background: #dcfce7;
  color: #166534;
}

.referral-reward-card h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.referral-reward-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 780px) {
  .referral-stats-grid,
  .referral-reward-grid {
    grid-template-columns: 1fr;
  }
}

.vehicle-card-badge-sale {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
}

/* =========================
   Account Center Dashboard
========================= */
.account-center-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 94px;
}

.account-sidebar-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.account-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.account-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 900;
}

.account-sidebar-profile strong,
.account-sidebar-profile span {
  display: block;
}

.account-sidebar-profile span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: .9rem;
}

.account-side-nav {
  display: grid;
  gap: 6px;
}

.account-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--text-soft);
  font-weight: 800;
}

.account-side-nav a:hover,
.account-side-nav a.is-active {
  background: #eff6ff;
  color: var(--primary);
}

.account-sidebar-upgrade {
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.account-sidebar-upgrade p {
  margin: 6px 0 14px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: .92rem;
}

.account-main {
  min-width: 0;
}

.account-main-head {
  margin-bottom: 22px;
}

.account-panel {
  scroll-margin-top: 100px;
  margin-bottom: 22px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.account-stat-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.account-stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-weight: 800;
  font-size: .86rem;
}

.account-stat-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.account-stat-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.account-profile-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.account-liked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.account-liked-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.account-liked-card a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf1fb;
}

.account-liked-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-liked-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 800;
}

.account-liked-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #e11d48;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
}

.account-liked-body {
  padding: 16px;
}

.account-liked-body h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.account-liked-body p,
.account-liked-body span {
  display: block;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.account-liked-body span {
  margin-top: 6px;
  font-size: .88rem;
}

@media (max-width: 1100px) {
  .account-center-shell {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-sidebar-card {
    grid-template-columns: 1fr;
  }

  .account-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .account-center-shell {
    width: min(100% - 28px, 100%);
    padding-top: 24px;
  }

  .account-side-nav,
  .account-stat-grid,
  .account-liked-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    display: block;
  }
}

/* =========================
   Account Dashboard Next Polish
========================= */
.account-completion-card,
.account-usage-card,
.account-referral-progress {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.account-usage-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.account-completion-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.account-completion-top strong {
  color: var(--text);
  font-size: 1rem;
}

.account-completion-top p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.account-completion-top span {
  color: var(--primary);
  font-weight: 900;
}

.account-completion-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.account-completion-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
}

.account-completion-track.is-warning span {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.account-completion-list,
.account-reward-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-completion-list span,
.account-reward-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 800;
}

.account-completion-list span.is-done,
.account-reward-mini-list span.is-done {
  background: #dcfce7;
  color: #166534;
}

.account-recent-garage-card {
  margin-top: 18px;
}

.account-recent-vehicle-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.account-recent-vehicle {
  display: grid;
  gap: 8px;
  color: var(--text);
}

.account-recent-vehicle img,
.account-recent-vehicle span {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  object-fit: cover;
  background: #eff6ff;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
}

.account-recent-vehicle strong {
  font-size: .9rem;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .account-recent-vehicle-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .account-recent-vehicle-strip {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Account Sidebar Scroll Spy
========================= */
.account-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
}

.account-side-nav a {
  position: relative;
}

.account-side-nav a.is-active {
  background: #eaf2ff;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}

.account-side-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.account-panel {
  scroll-margin-top: 115px;
}

@media (max-width: 1100px) {
  .account-sidebar {
    position: sticky;
    top: 72px;
    z-index: 20;
    max-height: none;
    overflow: visible;
  }

  .account-sidebar-card {
    border-radius: 20px;
  }

  .account-side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .account-side-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .account-side-nav a.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
  }

  .account-side-nav a.is-active::after {
    display: none;
  }
}

/* =========================
   Account Nav Section Alignment
========================= */
.account-side-nav a {
  white-space: normal;
  line-height: 1.25;
}

#account-recent-garage,
#account-settings {
  scroll-margin-top: 115px;
}
/* =========================================================
   DRIFOLIO ACCOUNT MOBILE NAV / UPGRADE CTA FIX
   Keeps the account section nav sticky on mobile without
   letting the "Grow your garage" card overlap page content.
   ========================================================= */

@media (max-width: 1100px) {
  .account-center-shell {
    display: flex;
    flex-direction: column;
  }

  .account-sidebar {
    position: sticky;
    top: 72px;
    z-index: 45;
    max-height: none;
    overflow: visible;
    background: var(--bg);
    padding: 8px 0 10px;
    margin-bottom: 14px;
  }

  .account-sidebar-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  }

  .account-sidebar-profile {
    padding-bottom: 12px;
  }

  .account-side-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .account-side-nav::-webkit-scrollbar {
    display: none;
  }

  .account-side-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
    background: #f8fafc;
    line-height: 1;
  }

  .account-side-nav a.is-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  }

  .account-side-nav a.is-active::after {
    display: none;
  }

  /*
    Mobile CTA behavior:
    The upgrade card should not sit inside the sticky mobile nav.
    Hide it in the sticky sidebar on mobile. Membership/plan CTAs
    remain available in the Membership section lower on the page.
  */
  .account-sidebar-upgrade {
    display: none !important;
  }

  .account-panel,
  #account-recent-garage,
  #account-settings {
    scroll-margin-top: 165px;
  }
}

@media (min-width: 1101px) {
  .account-sidebar-upgrade {
    display: block;
  }
}

/* =========================
   Mobile Account Nav Active Item Visibility
========================= */
@media (max-width: 1100px) {
  .account-sidebar-card {
    overflow: hidden;
  }

  .account-side-nav {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .account-side-nav a:first-child {
    margin-left: 2px;
  }

  .account-side-nav a:last-child {
    margin-right: 18px;
  }

  .account-side-nav a {
    max-width: none;
  }
}

/* =========================
   Account Likes Preview Rail
========================= */
.account-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-liked-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 16px;
  overflow-x: auto;
  padding: 16px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.account-liked-rail .account-liked-card {
  scroll-snap-align: start;
}

.account-liked-rail::-webkit-scrollbar {
  height: 8px;
}

.account-liked-rail::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.account-liked-rail::-webkit-scrollbar-thumb {
  background: #bfdbfe;
  border-radius: 999px;
}

/* =========================
   Full Liked Vehicles Page
========================= */
.liked-page-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.liked-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.liked-page-head h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.liked-page-head p {
  margin: 0;
  color: var(--text-muted);
}

.liked-page-sort label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 800;
}

.liked-page-sort select {
  min-width: 220px;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
}

.liked-page-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--text-soft);
}

.liked-page-summary strong {
  color: var(--text);
}

.liked-page-summary a {
  color: var(--primary);
  font-weight: 800;
}

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

.liked-page-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.liked-page-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf1fb;
}

.liked-page-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.liked-page-card:hover .liked-page-card-media img {
  transform: scale(1.025);
}

.liked-page-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 800;
}

.liked-page-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #e11d48;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.liked-page-card-body {
  padding: 18px;
}

.liked-page-card-body h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.25;
}

.liked-page-card-body p,
.liked-page-card-body span {
  display: block;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.liked-page-card-body span {
  margin-top: 7px;
  font-size: .9rem;
}

.liked-empty-card {
  max-width: 720px;
}

.liked-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.liked-pagination a,
.liked-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.liked-pagination .is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 980px) {
  .liked-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .liked-page-shell {
    width: min(100% - 28px, 100%);
    padding-top: 28px;
  }

  .liked-page-grid {
    grid-template-columns: 1fr;
  }

  .liked-page-sort,
  .liked-page-sort select {
    width: 100%;
  }

  .account-liked-rail {
    grid-auto-columns: minmax(245px, 82vw);
  }
}
/* =========================================================
   DRIFOLIO ACCOUNT MOBILE VEHICLE RAIL FIX
   Keeps Recent Garage and Liked Vehicles compact on mobile.
   ========================================================= */

@media (max-width: 720px) {
  .account-main {
    min-width: 0;
    width: 100%;
  }

  .account-panel,
  .account-profile-card,
  .account-recent-garage-card,
  .account-liked-card,
  .card {
    min-width: 0;
  }

  /* Recent Garage: horizontal rail instead of huge stacked images */
  .account-recent-vehicle-strip {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 72vw);
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .account-recent-vehicle-strip::-webkit-scrollbar {
    height: 7px;
  }

  .account-recent-vehicle-strip::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
  }

  .account-recent-vehicle-strip::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 999px;
  }

  .account-recent-vehicle {
    scroll-snap-align: start;
    display: grid;
    gap: 8px;
  }

  .account-recent-vehicle img,
  .account-recent-vehicle span {
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    border-radius: 14px;
  }

  .account-recent-vehicle strong {
    font-size: 0.9rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Liked Vehicles preview: compact horizontal rail */
  .account-liked-rail,
  .account-liked-grid {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 82vw);
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 2px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .account-liked-rail::-webkit-scrollbar,
  .account-liked-grid::-webkit-scrollbar {
    height: 7px;
  }

  .account-liked-rail::-webkit-scrollbar-track,
  .account-liked-grid::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
  }

  .account-liked-rail::-webkit-scrollbar-thumb,
  .account-liked-grid::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 999px;
  }

  .account-liked-card {
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
  }

  .account-liked-card a {
    height: 136px !important;
    min-height: 136px !important;
    max-height: 136px !important;
    aspect-ratio: auto !important;
  }

  .account-liked-card img,
  .account-liked-placeholder {
    height: 136px !important;
    min-height: 136px !important;
    max-height: 136px !important;
    object-fit: cover;
  }

  .account-liked-body {
    padding: 13px;
  }

  .account-liked-body h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 5px;
  }

  .account-liked-body p,
  .account-liked-body span {
    font-size: 0.86rem;
  }

  .account-liked-heart {
    top: 9px;
    right: 9px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.84rem;
  }

  /* Full liked vehicles page should still stack cleanly, but not oversized */
  .liked-page-card-media {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    aspect-ratio: auto !important;
  }

  .liked-page-card-media img,
  .liked-page-placeholder {
    height: 170px !important;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .account-recent-vehicle-strip {
    grid-auto-columns: 74vw;
  }

  .account-liked-rail,
  .account-liked-grid {
    grid-auto-columns: 84vw;
  }

  .account-recent-vehicle img,
  .account-recent-vehicle span {
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
  }

  .account-liked-card a,
  .account-liked-card img,
  .account-liked-placeholder {
    height: 128px !important;
    min-height: 128px !important;
    max-height: 128px !important;
  }
}

/* =========================
   Stationary Like Button Fixes
========================= */
.liked-page-card {
  position: relative;
}

.liked-page-like-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  margin: 0;
}

.liked-page-heart-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, .94);
  color: #e11d48;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.liked-page-heart-button:hover {
  transform: translateY(-1px);
  background: #fff1f2;
}

.liked-page-heart-button span {
  line-height: 1;
}

@media (max-width: 640px) {
  .liked-page-like-form {
    top: 10px;
    right: 10px;
  }

  .liked-page-heart-button {
    min-height: 32px;
    padding: 0 10px;
  }
}
/* =========================================================
   DRIFOLIO TABLET / iPAD LAYOUT FIX
   Prevents header, hero copy, hero cards, and bottom banner
   from overflowing on iPad/tablet widths.
   ========================================================= */

@media (min-width: 769px) and (max-width: 1180px) {
  body,
  main.page-shell {
    overflow-x: hidden;
  }

  .header-inner {
    max-width: 100%;
    padding: 0 24px;
    gap: 18px;
  }

  .site-logo {
    height: 30px;
  }

  .site-nav-shell {
    min-width: 0;
    gap: 16px;
  }

  .main-nav {
    min-width: 0;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .main-nav a,
  .nav-link-btn,
  .nav-user {
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.15;
  }

  .nav-actions {
    gap: 10px;
    flex-shrink: 0;
  }

  .nav-cta,
  .btn-primary,
  .btn-secondary {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .home-hero,
  .home-premium,
  .home-premium-hero {
    min-height: auto !important;
    overflow: hidden;
  }

  .home-hero {
    padding: 120px 32px 56px !important;
  }

  .home-hero-inner {
    width: min(100%, 1040px);
    max-width: 100%;
    grid-template-columns: 1fr !important;
    gap: 28px;
    min-height: auto !important;
  }

  .home-hero-copy,
  .home-hero-content {
    max-width: 720px !important;
    transform: none !important;
    position: relative;
    z-index: 5;
  }

  .home-hero-title,
  .home-hero h1,
  .home-premium h1 {
    font-size: clamp(3rem, 7vw, 4.8rem) !important;
    line-height: 0.98 !important;
    max-width: 720px;
  }

  .home-hero-description,
  .home-hero p,
  .home-premium p {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .home-hero-actions,
  .home-hero-buttons {
    position: relative;
    z-index: 8;
    margin-top: 24px;
  }

  .home-hero-feature-layer,
  .home-floating-cards {
    width: 100%;
    max-width: 100%;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin-top: 24px;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    z-index: 4;
  }

  .home-feature-card {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 160px;
    transform: none !important;
  }

  .home-feature-card::after,
  .home-feature-line,
  .home-feature-dot {
    display: none !important;
  }

  .home-feature-card h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .home-feature-card p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .home-trust-bar,
  .home-hero-trust-rail {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 30px auto 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
    z-index: 6;
  }

  .home-trust-item {
    min-width: 0;
  }

  .home-trust-title {
    font-size: 1rem;
  }

  .home-trust-text {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (min-width: 769px) and (max-width: 920px) {
  .header-inner {
    padding: 0 18px;
    gap: 14px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a,
  .nav-link-btn,
  .nav-user {
    font-size: 0.82rem;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .home-hero {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .home-hero-feature-layer,
  .home-floating-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust-bar,
  .home-hero-trust-rail {
    grid-template-columns: 1fr !important;
  }
}


/* Drifolio growth/navigation layer — 2026 traffic + UX patch */
.drifolio-page-recovery{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:0 auto 1.25rem;max-width:1180px;padding:.85rem 1rem;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(255,255,255,.86);box-shadow:0 10px 28px rgba(15,23,42,.06);backdrop-filter:blur(12px)}
.drifolio-page-recovery a,.drifolio-back-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 .9rem;border-radius:999px;border:1px solid rgba(37,99,235,.16);background:#fff;color:#1d4ed8;font-weight:800;text-decoration:none;cursor:pointer;font:inherit;font-size:.9rem}.drifolio-page-recovery a:hover,.drifolio-back-button:hover{background:#eff6ff;transform:translateY(-1px)}
.drifolio-growth-cta{max-width:1180px;margin:2rem auto;padding:clamp(1.25rem,3vw,2rem);border-radius:28px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.25rem;align-items:center;box-shadow:0 24px 70px rgba(29,78,216,.22)}.drifolio-growth-cta h2{margin:.25rem 0 .55rem;color:#fff;font-size:clamp(1.55rem,3vw,2.35rem);letter-spacing:-.035em}.drifolio-growth-cta p{margin:0;color:rgba(255,255,255,.84);max-width:720px;line-height:1.65}.drifolio-eyebrow{display:inline-flex;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem;color:#bfdbfe}.drifolio-growth-actions{display:flex;gap:.75rem;flex-wrap:wrap}.drifolio-growth-actions .btn-secondary{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.25)}
.drifolio-proof-strip{max-width:1180px;margin:1.5rem auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.drifolio-proof-strip article{padding:1.15rem;border-radius:20px;border:1px solid rgba(148,163,184,.18);background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.05)}.drifolio-proof-strip strong{display:block;color:#0f172a;font-size:1rem;margin-bottom:.35rem}.drifolio-proof-strip span{display:block;color:#64748b;font-size:.92rem;line-height:1.45}
.drifolio-share-panel{max-width:1180px;margin:1rem auto;display:flex;align-items:center;gap:.7rem;justify-content:flex-end;flex-wrap:wrap;color:#64748b;font-weight:700}.drifolio-share-panel button{border:1px solid rgba(148,163,184,.28);background:#fff;color:#1d4ed8;border-radius:999px;min-height:36px;padding:0 .85rem;font-weight:800;cursor:pointer}.drifolio-share-panel button:hover{background:#eff6ff}.drifolio-share-panel .copied{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.drifolio-seo-hub{max-width:1180px;margin:2rem auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.drifolio-seo-hub a{display:block;padding:1.25rem;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.18);text-decoration:none;color:#0f172a;box-shadow:0 12px 32px rgba(15,23,42,.05)}.drifolio-seo-hub a:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.08)}.drifolio-seo-hub strong{display:block;font-size:1.1rem;margin-bottom:.35rem}.drifolio-seo-hub span{display:block;color:#64748b;line-height:1.5;font-size:.94rem}.drifolio-pill-list{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1rem}.drifolio-pill-list span{display:inline-flex;border-radius:999px;background:#eff6ff;color:#1d4ed8;padding:.35rem .65rem;font-weight:800;font-size:.82rem}
@media(max-width:820px){.drifolio-growth-cta{grid-template-columns:1fr}.drifolio-proof-strip,.drifolio-seo-hub{grid-template-columns:1fr}.drifolio-share-panel{justify-content:flex-start}.drifolio-page-recovery{margin-left:.75rem;margin-right:.75rem}.drifolio-page-recovery a:nth-of-type(2){display:none}}

/* Drifolio Car MeetUps */
.meetups-page{background:#f5f7fb;min-height:calc(100vh - 120px);padding:2rem 0 3rem}.meetups-shell{width:min(1320px,calc(100% - 2rem));margin:0 auto}.meetups-hero{border-radius:28px;min-height:340px;background:linear-gradient(90deg,rgba(15,23,42,.92),rgba(29,78,216,.5)),url('/assets/img/car-hero.jpg') center/cover;display:flex;align-items:end;padding:2.5rem;color:#fff;box-shadow:var(--shadow-md);margin-bottom:1.25rem}.meetups-badge{display:inline-flex;padding:.42rem .75rem;border-radius:999px;background:rgba(219,234,254,.16);color:#bfdbfe;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.meetups-hero h1{font-size:clamp(2.4rem,6vw,5rem);line-height:.95;margin:.85rem 0 .35rem}.meetups-hero p{max-width:560px;color:#e0e7ff;font-size:1.08rem;line-height:1.6}.meetups-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.35rem}.btn-secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:12px;padding:.85rem 1.05rem;font-weight:800}.meetups-feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border:1px solid var(--border);border-radius:22px;overflow:hidden;background:var(--border);margin-bottom:1.25rem}.meetups-feature-row div{background:#fff;padding:1.2rem}.meetups-feature-row strong{display:block;color:#0f172a}.meetups-feature-row span{display:block;color:#64748b;margin-top:.25rem;font-size:.9rem}.meetups-filter{display:flex;gap:.75rem;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:18px;padding:1rem;margin-bottom:1.5rem}.meetups-filter input,.meetups-filter select,.meetup-form input,.meetup-form select,.meetup-form textarea,.meetup-side-card input{width:100%;border:1px solid #dbe3ef;border-radius:12px;padding:.85rem 1rem;background:#fff;color:#0f172a}.meetups-filter input{flex:2 1 320px}.meetups-filter select{flex:1 1 220px}.meetups-grid-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);gap:1.5rem}.meetups-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.85rem}.meetups-section-head h2{margin:0}.meetups-section-head span{color:#64748b;font-weight:800}.meetups-list{display:grid;gap:.85rem}.meetup-card{display:grid;grid-template-columns:150px 86px minmax(0,1fr) auto;gap:1rem;align-items:center;background:#fff;border:1px solid var(--border);border-radius:18px;padding:.75rem;box-shadow:var(--shadow-sm)}.meetups-list.compact .meetup-card{grid-template-columns:120px minmax(0,1fr) auto}.meetup-card img{height:92px;width:150px;object-fit:cover;border-radius:14px;background:#e2e8f0}.meetups-list.compact .meetup-card img{width:120px}.meetup-date{border:1px solid var(--border);border-radius:14px;padding:.7rem;text-align:center}.meetup-date strong{display:block;color:#1d4ed8}.meetup-date span{font-size:.8rem;color:#64748b;font-weight:800}.meetup-card-main h3{margin:0 0 .2rem}.meetup-card-main p{margin:.1rem 0;color:#475569}.meetup-card-main span,.meetup-card-main small{display:block;color:#64748b;margin-top:.2rem}.meetup-arrow{font-size:2rem;color:#94a3b8}.meetups-side{display:grid;gap:1rem;align-content:start}.meetups-map-card,.meetups-trending,.meetup-side-card,.meetups-community-cta,.meetups-empty,.meetups-upgrade-card,.meetup-form-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:1.25rem;box-shadow:var(--shadow-sm)}.meetups-map-card{background:linear-gradient(145deg,#fff,#eef4ff)}.meetups-trending a{display:grid;grid-template-columns:28px 1fr auto;gap:.7rem;align-items:center;padding:.75rem 0;border-top:1px solid var(--border);color:#0f172a}.meetups-trending strong{color:#1d4ed8}.meetups-trending em{font-style:normal;color:#64748b;font-size:.85rem}.meetups-community-cta{margin-top:1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,#111827,#1e3a8a);color:#fff}.meetups-community-cta p{color:#dbeafe}.meetup-detail{background:#fff;border:1px solid var(--border);border-radius:28px;overflow:hidden;box-shadow:var(--shadow-md)}.meetup-detail-hero{min-height:420px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:end;padding:2.5rem;color:#fff}.meetup-detail-hero h1{font-size:clamp(2rem,5vw,4.5rem);line-height:1;margin:.7rem 0}.meetup-detail-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:1.5rem;padding:1.5rem}.meetup-info-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-bottom:1.25rem}.meetup-info-strip div{border:1px solid var(--border);border-radius:16px;padding:1rem}.meetup-info-strip strong{display:block;color:#1d4ed8}.meetup-info-strip span{display:block;color:#475569;margin-top:.25rem}.meetup-description{line-height:1.7;color:#334155}.meetup-expire-note{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:16px;padding:1rem;margin-top:1rem}.meetup-form{display:grid;gap:1rem}.meetup-form .form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.meetup-form .form-grid.three{grid-template-columns:repeat(3,1fr)}.meetup-form label{display:grid;gap:.4rem;font-weight:800;color:#0f172a}.meetup-form label span,.form-note{font-weight:500;color:#64748b;font-size:.9rem}.meetup-form-actions,.meetup-actions-stack{display:flex;gap:.65rem;flex-wrap:wrap}.meetup-actions-stack{justify-content:flex-end}.account-side-nav a.is-active{background:#e8efff;color:#1d4ed8}@media(max-width:900px){.meetups-grid-layout,.meetup-detail-body{grid-template-columns:1fr}.meetups-feature-row,.meetup-info-strip{grid-template-columns:1fr 1fr}.meetup-card,.meetups-list.compact .meetup-card{grid-template-columns:110px minmax(0,1fr)}.meetup-date,.meetup-arrow{display:none}.meetup-form .form-grid,.meetup-form .form-grid.three{grid-template-columns:1fr}.meetups-community-cta{align-items:flex-start;flex-direction:column}.meetups-hero{padding:1.5rem}}@media(max-width:620px){.meetups-feature-row,.meetup-info-strip{grid-template-columns:1fr}.meetup-card img{width:110px;height:86px}.meetups-filter .btn-primary,.meetups-filter .btn-secondary{width:100%}}


/* Car MeetUps address validation */
.meetup-address-tools{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.35rem 0 1rem;}
.meetup-address-tools .form-note{font-size:.9rem;color:#64748b;}
.meetup-address-tools .form-note.is-success{color:#047857;font-weight:700;}
.meetup-address-tools .form-note.is-error{color:#b91c1c;font-weight:700;}

/* Drifolio header notification center and profile menu */
.nav-notification-wrap,
.nav-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-icon-btn,
.nav-profile-button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  font: inherit;
}
.nav-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus-visible,
.nav-profile-button:hover,
.nav-profile-button:focus-visible {
  background: #eef6ff;
  color: var(--primary);
  outline: none;
}
.nav-notification-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}
.nav-profile-button {
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  flex: 0 0 auto;
}
.nav-avatar-large {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1100;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  overflow: hidden;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-notification-wrap.is-open .nav-dropdown-panel,
.nav-profile-wrap.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-header,
.nav-notification-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.nav-dropdown-header strong {
  color: var(--text);
  font-size: .98rem;
}
.nav-dropdown-header a,
.nav-notification-view-all {
  color: var(--primary);
  font-weight: 800;
  font-size: .84rem;
}
.nav-notification-list {
  max-height: 430px;
  overflow: auto;
  background: #fff;
}
.nav-notification-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.nav-notification-item:hover {
  background: #f4f8ff;
}
.nav-notification-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  font-size: 1.2rem;
}
.nav-notification-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.nav-notification-copy strong {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.2;
}
.nav-notification-copy span {
  color: var(--text-soft);
  font-size: .86rem;
  line-height: 1.25;
}
.nav-notification-copy small {
  color: #94a3b8;
  font-weight: 800;
  font-size: .76rem;
}
.nav-notification-empty {
  display: grid;
  gap: 6px;
  padding: 22px 16px;
  color: var(--text-soft);
}
.nav-notification-empty strong {
  color: var(--text);
}
.nav-notification-footer {
  justify-content: flex-start;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  background: #f8fafc;
}
.nav-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.nav-mini-icon:hover,
.nav-mini-icon:focus-visible {
  color: var(--primary);
  border-color: rgba(37, 99, 235, .28);
  outline: none;
}
.nav-notification-view-all {
  margin-left: auto;
}
.nav-profile-panel {
  width: 290px;
  padding: 8px 0;
}
.nav-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.nav-profile-summary div {
  display: grid;
  gap: 3px;
}
.nav-profile-summary strong {
  color: var(--text);
  font-size: .95rem;
}
.nav-profile-summary span {
  color: var(--text-soft);
  font-weight: 800;
  font-size: .78rem;
}
.nav-profile-panel a {
  display: block;
  padding: 10px 16px;
  color: var(--text-soft);
  font-weight: 700;
  text-decoration: none;
}
.nav-profile-panel a:hover {
  background: #f4f8ff;
  color: var(--primary);
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 14px;
}

@media (max-width: 980px) {
  .nav-notification-wrap,
  .nav-profile-wrap {
    width: 100%;
    display: block;
  }
  .nav-icon-btn,
  .nav-profile-button {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: #fff;
  }
  .nav-profile-button .nav-user {
    width: auto;
    padding: 0;
    border: 0;
    font-size: 1rem;
  }
  .nav-dropdown-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .nav-dropdown-panel::before {
    display: none;
  }
  .nav-notification-wrap.is-open .nav-dropdown-panel,
  .nav-profile-wrap.is-open .nav-dropdown-panel {
    display: block;
  }
  .nav-notification-list {
    max-height: none;
  }
}

/* Drifolio notification intelligence polish — grouped alerts, categories, mobile tray */
.nav-notification-dot{animation:drifolioBellPulse 2.8s ease-in-out infinite}.nav-icon-btn:hover span[aria-hidden="true"]{animation:drifolioBellRing .55s ease-in-out}@keyframes drifolioBellPulse{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.32)}50%{box-shadow:0 0 0 7px rgba(239,68,68,0)}}@keyframes drifolioBellRing{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-7deg)}80%{transform:rotate(4deg)}}
.nav-notification-panel{width:min(440px,calc(100vw - 32px))}.nav-notification-group-label{position:sticky;top:0;z-index:2;padding:8px 16px;background:#f8fafc;border-bottom:1px solid rgba(226,232,240,.85);color:#64748b;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.nav-notification-item{position:relative;grid-template-columns:48px minmax(0,1fr);transition:background .16s ease,transform .16s ease,box-shadow .16s ease}.nav-notification-item:hover{background:#f8fbff;transform:translateX(2px)}.nav-notification-item.is-unread{background:linear-gradient(90deg,rgba(239,246,255,.98),#fff)}.nav-notification-item.is-unread:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 999px 999px 0;background:#2563eb}.nav-notification-meta{width:max-content;max-width:100%;border-radius:999px;padding:2px 8px;background:#eef2ff;color:#1d4ed8!important;font-size:.68rem!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.06em}.nav-notification-row-foot{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-top:2px}.nav-notification-row-foot em{font-style:normal;color:#2563eb;font-size:.74rem;font-weight:900}.nav-notification-category-maintenance .nav-notification-icon,.notification-preview-category-maintenance .notification-preview-icon,.notification-preview-category-maintenance .smart-suggestion-icon{background:#dbeafe}.nav-notification-category-marketplace .nav-notification-icon,.notification-preview-category-marketplace .notification-preview-icon,.notification-preview-category-marketplace .smart-suggestion-icon{background:#dcfce7}.nav-notification-category-ownership .nav-notification-icon,.notification-preview-category-ownership .notification-preview-icon,.notification-preview-category-ownership .smart-suggestion-icon{background:#fef3c7}.nav-notification-category-vault .nav-notification-icon,.notification-preview-category-vault .notification-preview-icon,.notification-preview-category-vault .smart-suggestion-icon{background:#ede9fe}.nav-notification-category-security .nav-notification-icon,.notification-preview-category-security .notification-preview-icon,.notification-preview-category-security .smart-suggestion-icon{background:#fee2e2}.nav-notification-category-community .nav-notification-icon,.notification-preview-category-community .notification-preview-icon,.notification-preview-category-community .smart-suggestion-icon{background:#ccfbf1}.nav-notification-category-profile .nav-notification-icon,.notification-preview-category-profile .notification-preview-icon,.notification-preview-category-profile .smart-suggestion-icon{background:#e0f2fe}.nav-mini-icon[data-notification-quiet-toggle].is-quiet{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.nav-profile-panel{width:310px}.nav-profile-summary{padding:10px 14px 11px}.nav-profile-panel a{padding:8px 16px;font-size:.92rem}.nav-profile-section-label{padding:8px 16px 5px;color:#94a3b8;font-size:.7rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.smart-suggestions-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin:18px 0 12px;padding-top:16px;border-top:1px solid var(--border)}.smart-suggestions-head h4{margin:0 0 4px;color:var(--text);font-size:1.05rem}.smart-suggestions-head p{margin:0}.smart-suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.smart-suggestion-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;padding:12px;border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--text);text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}.smart-suggestion-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.08);border-color:rgba(37,99,235,.22);background:#fbfdff}.smart-suggestion-card.is-unread:before{content:"";position:absolute;left:9px;top:9px;width:8px;height:8px;border-radius:999px;background:#ef4444;border:2px solid #fff}.smart-suggestion-icon{width:42px;height:42px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem}.smart-suggestion-copy{display:grid;gap:4px;min-width:0}.smart-suggestion-copy small,.notification-preview-meta{color:#2563eb!important;font-size:.68rem!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.06em}.smart-suggestion-copy strong{color:var(--text);font-size:.92rem;line-height:1.2}.smart-suggestion-copy em{color:var(--text-soft);font-size:.8rem;line-height:1.28;font-style:normal}.smart-suggestion-copy b{width:max-content;max-width:100%;margin-top:2px;color:#1d4ed8;font-size:.78rem}.notification-preview-item.is-unread{background:linear-gradient(90deg,#eff6ff,#fff)}
@media(max-width:980px){.nav-notification-panel{max-height:calc(100vh - 130px);overflow:auto}.nav-notification-list{max-height:60vh;overflow:auto}.nav-profile-panel{width:100%}.smart-suggestion-grid{grid-template-columns:1fr}.smart-suggestions-head{align-items:flex-start;flex-direction:column}.nav-notification-item:hover{transform:none}}
@media(max-width:620px){.nav-dropdown-panel{position:fixed!important;left:10px!important;right:10px!important;top:78px!important;width:auto!important;max-width:none!important;max-height:calc(100vh - 92px);overflow:auto;border-radius:22px;box-shadow:0 24px 80px rgba(15,23,42,.24)}.nav-notification-list{max-height:calc(100vh - 230px)}.nav-dropdown-panel::before{display:none}.nav-profile-panel a{min-height:42px;display:flex;align-items:center}.smart-suggestion-card{grid-template-columns:38px minmax(0,1fr);padding:11px}.smart-suggestion-icon{width:38px;height:38px}}

/* Garage Health score cards */
.account-garage-health-card{margin-top:18px;overflow:hidden}.garage-health-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 12px;background:#eff6ff;color:#1d4ed8;font-size:.78rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;border:1px solid #bfdbfe}.garage-health-pill-excellent{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.garage-health-pill-strong{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}.garage-health-pill-building{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.garage-health-pill-starter{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.garage-health-list{display:grid;gap:12px;margin-top:16px}.garage-health-row{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,#fff,#f8fbff)}.garage-health-score-ring{--health-score:0;width:62px;height:62px;border-radius:999px;display:grid;place-items:center;background:conic-gradient(#2563eb calc(var(--health-score)*1%),#e5edf8 0);position:relative}.garage-health-score-ring:after{content:"";position:absolute;inset:6px;border-radius:999px;background:#fff}.garage-health-score-ring strong{position:relative;z-index:1;color:var(--text);font-size:.95rem}.garage-health-copy{min-width:0}.garage-health-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.garage-health-title-line strong{font-size:1rem;color:var(--text)}.garage-health-title-line span{border-radius:999px;background:#eef2ff;color:#1d4ed8;padding:3px 8px;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.garage-health-copy p{margin:5px 0 0;color:var(--text-soft);font-size:.88rem;line-height:1.35}.garage-health-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.garage-health-tags span{border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:4px 8px;font-size:.72rem;font-weight:800}.garage-health-tags span.is-win{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.notification-preview-category-health .notification-preview-icon,.notification-preview-category-health .smart-suggestion-icon,.nav-notification-category-health .nav-notification-icon{background:#dcfce7}@media(max-width:720px){.garage-health-row{grid-template-columns:58px minmax(0,1fr);align-items:start}.garage-health-row .btn-secondary{grid-column:1 / -1;width:100%;justify-content:center}.garage-health-score-ring{width:52px;height:52px}.garage-health-score-ring strong{font-size:.82rem}}


/* Garage Health score transparency + mobile notification drawer polish */
.nav-health-checks{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;max-width:100%}.nav-health-check{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 7px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:.68rem;font-weight:850;line-height:1.1}.nav-health-check b{font-size:.72rem}.nav-health-check.is-complete{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.nav-health-check.is-missing{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.garage-health-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.garage-health-check{display:flex;align-items:center;gap:7px;min-width:0;border-radius:12px;padding:7px 9px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-size:.78rem;font-weight:850}.garage-health-check b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;background:#fed7aa;color:#9a3412;font-size:.74rem;flex:0 0 auto}.garage-health-check em{margin-left:auto;font-style:normal;color:inherit;opacity:.82;font-size:.72rem}.garage-health-check.is-complete{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.garage-health-check.is-complete b{background:#bbf7d0;color:#047857}.garage-health-check.is-missing{background:#fff7ed;color:#9a3412;border-color:#fed7aa}
@media(max-width:620px){.nav-health-checks{gap:4px;margin-top:6px}.nav-health-check{font-size:.64rem;padding:3px 6px}.nav-health-checks .nav-health-check:nth-child(n+5){display:none}.nav-notification-copy strong{font-size:.94rem}.nav-notification-copy span{font-size:.82rem;line-height:1.25}.garage-health-breakdown{grid-template-columns:1fr}.garage-health-check{font-size:.76rem;padding:7px 8px}.garage-health-title-line strong{font-size:.95rem}.garage-health-tags{display:none}}

/* =========================
   Showcase Discovery View
========================= */
.showcase-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 0 0 1.35rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.showcase-view-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.showcase-view-switch a:hover {
  color: #2563eb;
  background: #f8fbff;
}

.showcase-view-switch a.is-active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.showcase-discovery {
  margin-top: 0.25rem;
  padding: 1.35rem 0 0.25rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 28rem),
    linear-gradient(180deg, #0d111a 0%, #111827 46%, #0b0f17 100%);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.showcase-discovery-row {
  padding: 0 1.25rem 1.5rem;
}

.showcase-discovery-row + .showcase-discovery-row {
  padding-top: 0.25rem;
}

.showcase-discovery-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.showcase-discovery-row-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.showcase-discovery-row-head p {
  margin: 0.25rem 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.95rem;
  line-height: 1.4;
}

.showcase-discovery-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.showcase-discovery-controls span {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.26);
}

.showcase-discovery-controls span.is-active {
  background: rgba(226, 232, 240, 0.9);
}

.showcase-discovery-strip-wrap {
  position: relative;
}

.showcase-discovery-strip {
  --discovery-gap: 0.9rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--discovery-gap) * 5)) / 6);
  gap: var(--discovery-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 0;
  padding: 0 0.15rem 0.9rem;
  scrollbar-width: none;
}

.showcase-discovery-arrow[hidden],
.showcase-discovery-controls[hidden] {
  display: none !important;
}

.showcase-discovery-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 76px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  font-size: 3.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.showcase-discovery-row.has-overflow:hover .showcase-discovery-arrow:not(:disabled),
.showcase-discovery-row.has-overflow:focus-within .showcase-discovery-arrow:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

.showcase-discovery-arrow:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.04);
}

.showcase-discovery-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.showcase-discovery-arrow.is-prev {
  left: 0.35rem;
}

.showcase-discovery-arrow.is-next {
  right: 0.35rem;
}

.showcase-discovery-strip::-webkit-scrollbar {
  display: none;
}

 .vehicle-card.vehicle-card-discovery {
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.vehicle-card.vehicle-card-discovery:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

 .vehicle-card.vehicle-card-discovery .vehicle-card-media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: #020617;
  line-height: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.vehicle-card.vehicle-card-discovery .vehicle-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.vehicle-card.vehicle-card-discovery .vehicle-card-title {
  min-height: 4.6rem;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-subtitle {
  min-height: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-meta {
  min-height: 1.35rem;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-owner {
  margin-top: auto;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-title,
.vehicle-card.vehicle-card-discovery .vehicle-card-owner-name {
  color: #f8fafc;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-subtitle,
.vehicle-card.vehicle-card-discovery .vehicle-card-meta {
  color: rgba(226, 232, 240, 0.74);
}

.vehicle-card.vehicle-card-discovery .vehicle-card-owner-avatar {
  background: #2563eb;
  color: #fff;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-price {
  color: #93c5fd;
}

.vehicle-card.vehicle-card-discovery .vehicle-card-location {
  color: rgba(226, 232, 240, 0.72);
}

@media (max-width: 780px) {
  .showcase-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .showcase-view-switch a {
    padding: 0 0.65rem;
    font-size: 0.86rem;
  }

  .showcase-discovery {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 22px;
  }

  .showcase-discovery-row {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .showcase-discovery-row-head {
    align-items: flex-start;
  }

  .showcase-discovery-row-head p {
    display: none;
  }

  .showcase-discovery-controls {
    gap: 0.22rem;
  }

  .showcase-discovery-controls span {
    width: 14px;
    height: 3px;
  }

  .showcase-discovery {
    padding-top: 1rem;
  }

  .showcase-discovery-row {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    padding-bottom: 1.05rem;
  }

  .showcase-discovery-row-head {
    margin-bottom: 0.55rem;
  }

  .showcase-discovery-row-head h2 {
    font-size: clamp(1.08rem, 6vw, 1.35rem);
  }

  .showcase-discovery-strip {
    --discovery-gap: 0.45rem;
    grid-auto-columns: calc((100% - (var(--discovery-gap) * 2)) / 3);
    gap: var(--discovery-gap);
    padding-bottom: 0.55rem;
  }

  .vehicle-card.vehicle-card-discovery {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .vehicle-card.vehicle-card-discovery:hover {
    transform: none;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-media {
    aspect-ratio: 4 / 3;
  }

  .vehicle-card.vehicle-card-discovery {
    min-height: 238px;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-body {
    min-height: 128px;
    padding: 0.5rem;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-title {
    min-height: 2.5rem;
    max-height: 2.5rem;
    margin-bottom: 0.24rem;
    font-size: 0.72rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-subtitle,
  .vehicle-card.vehicle-card-discovery .vehicle-card-meta {
    min-height: 0.78rem;
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-owner {
    gap: 0.35rem;
    margin-top: 0.45rem;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-owner-avatar {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.58rem;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-card-owner-name {
    font-size: 0.62rem;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-badge,
  .vehicle-card.vehicle-card-discovery .vehicle-like-count {
    z-index: 2;
    transform: scale(0.72);
    transform-origin: top left;
  }

  .vehicle-card.vehicle-card-discovery .vehicle-like-count {
    transform-origin: top right;
  }

  .showcase-discovery-arrow {
    display: grid;
    width: 34px;
    height: 54px;
    border-radius: 12px;
    font-size: 2.5rem;
    background: rgba(2, 6, 23, 0.74);
    opacity: 1;
    pointer-events: auto;
  }

  .showcase-discovery-arrow.is-prev {
    left: 0.15rem;
  }

  .showcase-discovery-arrow.is-next {
    right: 0.15rem;
  }
}
