/* =====================================================================
   FindMotos design system
   All brand colours live in :root. To match an exact palette, change
   --brand / --brand-600 / --brand-50 and --ink below.
   ===================================================================== */

:root {
  --brand: #074c9b;
  --brand-600: #063f82;
  --brand-700: #05336a;
  --brand-50: #ebf2fa;
  --brand-100: #d4e3f4;
  --accent: #f05a1a;
  --accent-600: #d64a0f;
  --accent-50: #fff1e9;

  --ink: #0b1220;
  --ink-2: #1c2433;
  --text: #1b2230;
  --muted: #5d6778;
  --subtle: #8a93a3;
  --line: #e6e9ef;
  --line-2: #eef1f5;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;

  --success: #0f9d63;
  --success-50: #e7f7ef;
  --warning: #c27803;
  --warning-50: #fff6e0;
  --danger: #d92d3a;
  --danger-50: #fdecee;
  --info: #2563eb;
  --info-50: #eaf1ff;

  --radius-sm: 5px;
  --radius: 7px;
  --radius-lg: 10px;
  --radius-xl: 10px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --ring: 0 0 0 4px rgba(7, 76, 155, .16);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.022em; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.028em; }
h3 { font-size: 1.125rem; }
p { margin: 0; }
.icon { flex-shrink: 0; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 920px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 550; color: var(--ink); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h);
  padding: 0 18px; border-radius: 6px; border: 1px solid transparent; font-weight: 550; font-size: 14.5px;
  white-space: nowrap; transition: background .18s var(--ease), border-color .18s, color .18s, box-shadow .18s, transform .18s;
  background: var(--surface); color: var(--ink); user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(7, 76, 155, .55); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: #cfd5df; background: var(--surface-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(15, 23, 42, .05); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f3f7; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #bd2230; }
.btn-danger-ghost { color: var(--danger); background: transparent; }
.btn-danger-ghost:hover { background: var(--danger-50); }
.btn-sm { --h: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 6px; }
.btn-xs { --h: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; gap: 6px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 550; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-dark { background: rgba(11, 18, 32, .78); color: #fff; backdrop-filter: blur(6px); }
.badge-glass { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-xs); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: all .15s var(--ease); cursor: pointer;
}
.chip:hover { border-color: #cdd3dd; }
.chip.active, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { display: none; }
.chip-remove { height: 30px; font-size: 13px; background: var(--brand-50); border-color: transparent; color: var(--brand-700); }
.chip-remove:hover { background: var(--brand-100); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.label .opt { font-weight: 400; color: var(--subtle); }
.hint { font-size: 12.5px; color: var(--subtle); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; transition: border-color .15s, box-shadow .15s; outline: none; appearance: none; color: var(--ink);
}
.input::placeholder, .textarea::placeholder { color: #a3abb8; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfd5df; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .icon { position: absolute; left: 14px; color: var(--subtle); pointer-events: none; }
.input-group > .icon + .input { padding-left: 42px; }
.input-group .prefix { position: absolute; left: 14px; color: var(--muted); font-weight: 500; pointer-events: none; }
.input-group .prefix + .input { padding-left: 30px; }
.input-group .suffix { position: absolute; right: 14px; color: var(--subtle); font-size: 13px; pointer-events: none; }
.input-validation-error, .input.is-invalid { border-color: var(--danger) !important; }
.input-validation-error:focus { box-shadow: 0 0 0 4px rgba(217, 45, 58, .12) !important; }
.field-validation-error, .error-text { font-size: 12.5px; color: var(--danger); font-weight: 500; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid #c5ccd7; border-radius: 4px; margin: 0; display: grid; place-items: center; transition: all .15s; background: #fff; flex-shrink: 0; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked::after { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check .count { margin-left: auto; color: var(--subtle); font-size: 12.5px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #d4d9e2; position: relative; transition: background .2s; margin: 0; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }

.segmented { display: inline-flex; padding: 4px; background: var(--line-2); border-radius: 7px; gap: 2px; }
.segmented a, .segmented button, .segmented label { height: 34px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 550; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.segmented .active, .segmented label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h3 { font-size: 16px; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(230, 233, 239, .8); }
.site-header.on-dark { background: rgba(11, 18, 32, .55); border-bottom-color: rgba(255, 255, 255, .08); color: #fff; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; --lm-tile: #0b2b5b; }
.logo-mark .lm-tile { fill: var(--lm-tile); }
.logo-mark .lm-fm { fill: none; stroke: #fff; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.logo span b { color: var(--brand); font-weight: 600; }
.on-dark .logo { color: #fff; }
.on-dark .logo-mark, .auth-side .logo-mark, .sidebar .logo-mark { --lm-tile: rgba(255, 255, 255, .14); }
.on-dark .logo span b { color: #8fb8ea; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 5px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.nav a.active { color: var(--ink); font-weight: 550; }
.on-dark .nav a { color: rgba(255, 255, 255, .72); }
.on-dark .nav a:hover, .on-dark .nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .saved-link { position: relative; }
.count-pill { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; }
.on-dark .count-pill { border-color: var(--ink); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.menu-toggle { display: none; }

.mobile-nav { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(11, 18, 32, .45); opacity: 0; transition: opacity .25s; }
.mobile-nav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 20px; gap: 6px; }
.mobile-nav.open { pointer-events: auto; }
.mobile-nav.open .scrim { opacity: 1; }
.mobile-nav.open .panel { transform: none; box-shadow: var(--shadow-lg); }
.mobile-nav .panel a.link { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 6px; font-weight: 550; color: var(--ink); }
.mobile-nav .panel a.link:hover { background: var(--line-2); }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 72px) 0 120px; background: radial-gradient(1200px 500px at 85% 10%, rgba(7, 76, 155, .35), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(255, 106, 61, .12), transparent 60%), linear-gradient(180deg, #0a1020 0%, #0d1528 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; max-width: 620px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #9fb3ff, #ffffff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .72); max-width: 520px; }
.hero-badges { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; color: rgba(255, 255, 255, .78); font-size: 14px; }
.hero-badges span { display: inline-flex; gap: 8px; align-items: center; }
.hero-badges .icon { color: #8fb8ea; }
.hero-visual { position: relative; aspect-ratio: 16 / 10.5; }
.hero-visual .frame { position: absolute; inset: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255,255,255,.08); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 13px; animation: float 6s ease-in-out infinite; }
.hero-float .ic { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; }
.hero-float.f1 { left: -28px; bottom: 34px; }
.hero-float.f2 { right: -18px; top: 26px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.search-panel { position: relative; z-index: 5; margin-top: -64px; }
.search-box { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 0; border: 1px solid var(--line); }
.search-box .sb-field { padding: 10px 18px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.search-box .sb-field:nth-last-child(2) { border-right: 0; }
.search-box label { font-size: 11.5px; font-weight: 600; color: var(--subtle); letter-spacing: .06em; text-transform: uppercase; }
.search-box input, .search-box select { border: 0; outline: none; padding: 4px 0 0; font-size: 15px; font-weight: 550; color: var(--ink); background: transparent; width: 100%; appearance: none; cursor: pointer; }
.search-box input { cursor: text; }
.search-box input::placeholder { color: #9aa3b2; font-weight: 500; }
.search-box .btn { height: 60px; border-radius: 8px; padding: 0 28px; }
.quick-links { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.quick-links .muted { margin-right: 4px; font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head p { margin-top: 8px; color: var(--muted); max-width: 560px; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.body-types { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.body-type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 16px; text-align: center; transition: all .2s var(--ease); }
.body-type:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.body-type .art { aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; margin-bottom: 10px; background: var(--line-2); }
.body-type .art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.body-type b { display: block; font-size: 14px; color: var(--ink); font-weight: 550; }
.body-type span { font-size: 12.5px; color: var(--subtle); }

.makes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.make { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s var(--ease); }
.make:hover { border-color: var(--ink); }
.make .mono { width: 38px; height: 38px; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink); letter-spacing: -.02em; }
.make b { font-size: 14px; font-weight: 550; color: var(--ink); display: block; }
.make span { font-size: 12.5px; color: var(--subtle); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.step .num { width: 44px; height: 44px; border-radius: 7px; display: grid; place-items: center; background: rgba(142, 166, 255, .14); color: #a9bbff; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .64); font-size: 14.5px; }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-band .stat b { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.stats-band .stat span { color: var(--muted); font-size: 14px; }

.cta-band { border-radius: var(--radius-xl); padding: 56px; background: radial-gradient(600px 300px at 90% 0%, rgba(142, 166, 255, .35), transparent 60%), linear-gradient(135deg, #0f1730, #0b1220); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .7); margin-top: 12px; }
.cta-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cta-band li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .86); }
.cta-band li .icon { color: #8fb8ea; }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.listing-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lcard { position: relative; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; display: flex; flex-direction: column; }
.lcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.lcard .media { position: relative; aspect-ratio: 16 / 10.5; background: var(--line-2); overflow: hidden; }
.lcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lcard:hover .media img { transform: scale(1.04); }
.lcard .media .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.lcard .media .photos { position: absolute; bottom: 12px; left: 12px; }
.save-btn { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s, color .15s; z-index: 2; }
.save-btn:hover { transform: scale(1.08); }
.save-btn.saved { color: var(--accent); }
.save-btn.saved svg { fill: currentColor; }
.lcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lcard .title { font-weight: 550; font-size: 16px; color: var(--ink); letter-spacing: -.015em; line-height: 1.3; }
.lcard .variant { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.lcard .specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lcard .specs span { display: inline-flex; align-items: center; gap: 5px; }
.lcard .specs .icon { color: var(--subtle); }
.lcard .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.025em; line-height: 1.1; }
.price-was { font-size: 13px; color: var(--subtle); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.monthly { font-size: 12.5px; color: var(--muted); }
.lcard .loc { font-size: 12.5px; color: var(--subtle); display: inline-flex; gap: 4px; align-items: center; }
.lcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.lcard.horizontal { flex-direction: row; }
.lcard.horizontal .media { width: 340px; flex-shrink: 0; aspect-ratio: auto; min-height: 220px; }
.lcard.horizontal .body { padding: 20px 24px; }
.lcard.horizontal .title { font-size: 18px; }

/* ---------- Search results ---------- */
.page-head { padding: 36px 0 24px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--subtle); margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.results-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.filters-head h3 { font-size: 15px; }
.filters-body { overflow-y: auto; padding: 4px 20px; flex: 1; }
.filters-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: none; gap: 10px; }
.fgroup { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.fgroup:last-child { border-bottom: 0; }
.fgroup > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 550; font-size: 14px; color: var(--ink); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .icon { transition: transform .2s; color: var(--subtle); }
.fgroup[open] > summary .icon { transform: rotate(180deg); }
.fgroup .fcontent { padding-top: 14px; display: grid; gap: 10px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .select, .range .input { height: 40px; font-size: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { font-size: 15px; color: var(--muted); }
.toolbar .count b { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.filter-trigger { display: none; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 550; color: var(--ink-2); border: 1px solid transparent; }
.pagination a:hover { background: #fff; border-color: var(--line); }
.pagination .current { background: var(--ink); color: #fff; }
.pagination .disabled { color: #c3c9d3; }

.empty { text-align: center; padding: 72px 24px; background: #fff; border: 1px dashed #d6dbe4; border-radius: var(--radius-lg); }
.empty .ic { width: 64px; height: 64px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* ---------- Details ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; padding-bottom: 80px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--line-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-count { position: absolute; bottom: 16px; right: 16px; }
.gallery-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.thumb { aspect-ratio: 16 / 10.5; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--line-2); opacity: .72; transition: all .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--brand); opacity: 1; }

.detail-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 28px 0 22px; }
.detail-title h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.detail-title .variant { font-size: 17px; color: var(--muted); margin-top: 6px; }
.key-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.key-spec { padding: 16px; border-right: 1px solid var(--line-2); }
.key-spec:last-child { border-right: 0; }
.key-spec .icon { color: var(--brand); margin-bottom: 10px; }
.key-spec span { display: block; font-size: 12px; color: var(--subtle); font-weight: 500; }
.key-spec b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 550; margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 36px 0 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; border: 0; background: none; font-weight: 550; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .active { color: var(--ink); border-bottom-color: var(--ink); }
.prose { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; gap: 12px; }
.spec-row span { color: var(--muted); }
.spec-row b { color: var(--ink); font-weight: 550; text-align: right; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.feature { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.feature .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success); flex-shrink: 0; }

.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.price-card .price { font-size: 34px; }
.price-card .row-between { align-items: flex-start; }
.seller { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 17px; letter-spacing: -.02em; flex-shrink: 0; }
.avatar-sm { width: 36px; height: 36px; border-radius: 6px; font-size: 13px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 10px; font-size: 28px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.rating .icon { color: #f5a524; fill: #f5a524; }
.seller-meta { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.seller-meta div { display: flex; gap: 10px; align-items: center; }
.seller-meta .icon { color: var(--subtle); }
.trust { display: grid; gap: 12px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.trust b { color: var(--ink); display: block; font-size: 14px; font-weight: 550; }
.trust .icon { color: var(--success); margin-top: 2px; }

.calc { display: grid; gap: 16px; }
.calc input[type=range] { width: 100%; accent-color: var(--brand); }
.calc-result { display: flex; align-items: baseline; gap: 6px; }
.calc-result b { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }

.success-panel { text-align: center; padding: 12px 6px; }
.success-panel .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; margin: 0 auto 14px; }

/* ---------- Lightbox / modal ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 15, .94); display: none; align-items: center; justify-content: center; padding: 60px 80px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 7px; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: rgba(11, 18, 32, .5); backdrop-filter: blur(2px); animation: fade .2s; }
.modal .dialog { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.modal .dialog-body { padding: 28px; }
.modal .dialog-body .ic { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 16px; }
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal .dialog-foot { padding: 16px 28px 24px; display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; border-radius: 7px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toastIn .35s var(--ease); min-width: 280px; }
.toast .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 157, 99, .2); color: #4ade80; }
.toast.error .ic { background: rgba(217, 45, 58, .2); color: #ff8a93; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Dealers ---------- */
.dealer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dealer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s var(--ease); position: relative; }
.dealer-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.dealer-card .cover { height: 96px; position: relative; }
.dealer-card .avatar { position: absolute; left: 22px; bottom: -26px; border: 4px solid #fff; width: 60px; height: 60px; }
.dealer-card .body { padding: 38px 22px 22px; }
.dealer-hero { padding: 48px 0; color: #fff; position: relative; overflow: hidden; }
.dealer-hero .container { display: flex; gap: 24px; align-items: center; position: relative; }
.dealer-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.dealer-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255, 255, 255, .78); font-size: 14px; margin-top: 10px; }
.dealer-hero .meta span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .64); padding: 72px 0 32px; font-size: 14px; }
.site-footer .logo { color: #fff; }
.site-footer .logo span b { color: #8fb8ea; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; font-weight: 550; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.newsletter { display: flex; gap: 8px; margin-top: 20px; max-width: 360px; }
.newsletter .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.newsletter .input::placeholder { color: rgba(255, 255, 255, .4); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-side { position: relative; background: radial-gradient(700px 400px at 100% 0%, rgba(7, 76, 155, .45), transparent 60%), linear-gradient(160deg, #0b1220, #101a35); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-side .logo { color: #fff; }
.auth-side .logo span b { color: #8fb8ea; }
.auth-side h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.5rem); max-width: 460px; }
.auth-side .art { border-radius: 10px; overflow: hidden; margin: 32px 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); aspect-ratio: 16/9.5; }
.auth-side .art img { width: 100%; height: 100%; object-fit: cover; }
.auth-quote { font-size: 15px; color: rgba(255, 255, 255, .8); max-width: 460px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 30px; }
.demo-box { margin-top: 24px; padding: 14px 16px; border-radius: 7px; background: var(--brand-50); color: var(--brand-700); font-size: 13.5px; display: flex; gap: 12px; align-items: flex-start; }
.alert { padding: 12px 14px; border-radius: 6px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-danger { background: var(--danger-50); color: #a01d28; }
.alert-info { background: var(--info-50); color: #1d4ed8; }
.alert-warning { background: var(--warning-50); color: #8a5300; }
.alert-success { background: var(--success-50); color: #0a7148; }

/* ---------- Trader app shell ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--ink); color: rgba(255, 255, 255, .7); display: flex; flex-direction: column; padding: 20px 14px; }
.sidebar .logo { color: #fff; padding: 6px 10px 22px; }
.sidebar .logo span b { color: #8fb8ea; }
.side-section { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .38); padding: 18px 12px 8px; font-weight: 550; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .72); transition: all .15s; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active { background: rgba(255, 255, 255, .1); color: #fff; }
.side-link.active .icon { color: #8fb8ea; }
.side-link .pill { margin-left: auto; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 600; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; }
.side-plan { margin-top: auto; padding: 16px; border-radius: 8px; background: linear-gradient(135deg, rgba(7, 76, 155, .35), rgba(7, 76, 155, .08)); border: 1px solid rgba(142, 166, 255, .2); color: #fff; }
.side-plan .meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin: 10px 0 8px; overflow: hidden; }
.side-plan .meter i { display: block; height: 100%; border-radius: inherit; background: #8fb8ea; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user b { color: #fff; font-size: 13.5px; display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { font-size: 12px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: rgba(246, 247, 249, .85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.topbar .search { max-width: 380px; flex: 1; }
.topbar .search .input { height: 40px; background: #fff; }
.app-content { padding: 32px; max-width: 1360px; width: 100%; }
.app-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.app-title h1 { font-size: 28px; letter-spacing: -.03em; }
.app-title p { color: var(--muted); margin-top: 6px; }
.app-menu-toggle { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 20px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; }
.kpi .ic { width: 38px; height: 38px; border-radius: 7px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi .value { font-size: 30px; font-weight: 600; letter-spacing: -.035em; color: var(--ink); margin-top: 16px; line-height: 1.1; }
.kpi .label { font-size: 13.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 550; padding: 3px 7px; border-radius: 999px; }
.delta.up { color: var(--success); background: var(--success-50); }
.delta.down { color: var(--danger); background: var(--danger-50); }
.spark { margin-top: 12px; height: 36px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line-2); }
.chart .axis { fill: var(--subtle); font-size: 11px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 5px; transform: translate(-50%, -110%); white-space: nowrap; opacity: 0; transition: opacity .12s; box-shadow: var(--shadow); }
.chart-tip b { display: block; font-size: 13.5px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.mini-list { display: grid; }
.mini-item { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.mini-item:last-child { border-bottom: 0; }
.mini-item:hover { background: var(--surface-2); }
.mini-thumb { width: 72px; height: 48px; border-radius: 5px; overflow: hidden; flex-shrink: 0; background: var(--line-2); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bar-track { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 550; color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vehicle-cell { display: flex; gap: 14px; align-items: center; min-width: 260px; }
.vehicle-cell b { color: var(--ink); font-weight: 550; display: block; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; display: none; }
.dropdown.open .dropdown-menu { display: block; animation: pop .18s var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; border: 0; background: none; font-size: 14px; color: var(--ink-2); text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); }
.dropdown-menu .danger { color: var(--danger); }
.dropdown-menu hr { border: 0; height: 1px; background: var(--line-2); margin: 6px 0; }

.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.status-tabs a { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 550; color: var(--muted); }
.status-tabs a:hover { background: #fff; }
.status-tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.status-tabs a span { font-size: 12px; color: var(--subtle); background: var(--line-2); padding: 1px 7px; border-radius: 999px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.editor-nav { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; }
.form-section { scroll-margin-top: 90px; }
.form-section + .form-section { margin-top: 20px; }
.form-section .card-header p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.feature-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature-picker .check { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; transition: all .15s; }
.feature-picker .check:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--brand); }
.dropzone { border: 1.5px dashed #c9d0db; border-radius: 8px; padding: 28px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .15s; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone .ic { width: 48px; height: 48px; border-radius: 8px; background: #fff; display: grid; place-items: center; margin: 0 auto 12px; color: var(--brand); box-shadow: var(--shadow-sm); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.photo-grid .ph { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .ph .badge { position: absolute; top: 6px; left: 6px; }
.preview-card { position: sticky; top: 88px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; margin-top: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; box-shadow: var(--shadow); }

/* Inbox */
.inbox { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-height: 640px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 760px; }
.inbox-item { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); position: relative; transition: background .12s; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.active { background: var(--brand-50); }
.inbox-item.unread::before { content: ""; position: absolute; left: 7px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.inbox-item.unread .who { font-weight: 600; }
.inbox-item .who { color: var(--ink); font-size: 14px; font-weight: 550; }
.inbox-item .snippet { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.inbox-view { display: flex; flex-direction: column; min-width: 0; }
.inbox-view .head { padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.thread { padding: 24px; display: grid; gap: 16px; flex: 1; align-content: start; background: var(--surface-2); }
.bubble { max-width: 560px; padding: 14px 16px; border-radius: 8px; font-size: 14.5px; line-height: 1.6; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.out { background: var(--ink); color: #fff; justify-self: end; border-top-right-radius: 4px; }
.bubble .meta { font-size: 12px; opacity: .6; margin-top: 6px; }
.composer { padding: 16px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.composer .textarea { min-height: 84px; }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; }

/* Billing */
.pay-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cc { position: relative; aspect-ratio: 1.586; border-radius: 8px; padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: var(--shadow); }
.cc::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: rgba(255, 255, 255, .08); }
.cc::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: -60px; bottom: -120px; background: rgba(255, 255, 255, .06); }
.cc.visa { background: linear-gradient(135deg, #1a2b6b, #2f4fd6); }
.cc.mastercard { background: linear-gradient(135deg, #1b1b1f, #3b3b44); }
.cc.amex { background: linear-gradient(135deg, #0e5e6f, #1c9aa8); }
.cc .num { font-size: 18px; letter-spacing: .14em; font-weight: 550; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.cc .row-between { position: relative; z-index: 1; }
.cc .chip-ic { width: 38px; height: 28px; border-radius: 4px; background: linear-gradient(135deg, #e8d18b, #b9993f); }
.cc .brand { font-weight: 600; font-style: italic; font-size: 20px; letter-spacing: -.02em; }
.cc small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.cc-actions { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px 0; gap: 8px; }
.add-card { border: 1.5px dashed #c9d0db; border-radius: 8px; aspect-ratio: 1.586; display: grid; place-items: center; text-align: center; color: var(--muted); background: transparent; transition: all .15s; }
.add-card:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.plan.popular { border: 2px solid var(--brand); box-shadow: 0 20px 40px -16px rgba(7, 76, 155, .35); }
.plan.current { background: linear-gradient(180deg, var(--brand-50), #fff 40%); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan .amount { display: flex; align-items: baseline; gap: 4px; }
.plan .amount b { font-size: 44px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { color: var(--brand); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usage .bar-track { height: 8px; margin-top: 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare thead th { font-size: 14px; color: var(--ink); }
.compare .icon { margin: 0 auto; color: var(--success); }
.compare .no { color: #c7cdd6; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 550; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary .icon { transition: transform .2s; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: 90px; }
.settings-nav a { padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.settings-nav a:hover { background: #fff; color: var(--ink); }
.settings-nav a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); font-weight: 550; }

/* Legal / content pages */
.content-hero { padding: 64px 0 40px; background: #fff; border-bottom: 1px solid var(--line); }
.content-hero p { color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 640px; }
.content { padding: 48px 0 96px; }
.content h2 { font-size: 22px; margin: 36px 0 12px; }
.content p, .content li { color: var(--ink-2); line-height: 1.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .body-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .makes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .key-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key-spec:nth-child(3) { border-right: 0; }
  .key-spec:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .preview-card { display: none; }
}

@media (max-width: 1024px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .hero-float.f1 { left: 8px; }
  .hero-float.f2 { right: 8px; }
  .search-box { grid-template-columns: 1fr 1fr; gap: 4px; }
  .search-box .sb-field { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .search-box .sb-field:first-child { grid-column: 1 / -1; }
  .search-box .btn { grid-column: 1 / -1; margin-top: 6px; height: 54px; }
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0; top: auto; z-index: 120; max-height: 88vh; border-radius: 10px 10px 0 0; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; }
  .filters-foot { display: flex; }
  .filter-trigger { display: inline-flex; }
  .filters-scrim { position: fixed; inset: 0; background: rgba(11, 18, 32, .45); z-index: 110; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-sticky { position: static; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(11, 18, 32, .45); z-index: 90; }
  .app-menu-toggle { display: inline-flex; }
  .topbar { padding: 0 20px; }
  .app-content { padding: 24px 20px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox.has-active .inbox-list { display: none; }
  .inbox:not(.has-active) .inbox-view { display: none; }
  .inbox-list { border-right: 0; max-height: none; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .dealer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .usage { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { padding: calc(var(--header-h) + 40px) 0 96px; }
  .hero .lead { font-size: 16px; }
  .hero-float { display: none; }
  .search-box { grid-template-columns: 1fr; }
  .listing-grid, .listing-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .listing-grid .lcard .body { padding: 12px; gap: 8px; }
  .listing-grid .lcard .title { font-size: 14.5px; }
  .listing-grid .lcard .variant { font-size: 12.5px; }
  .listing-grid .lcard .specs { font-size: 12px; gap: 4px 10px; }
  .listing-grid .lcard .specs span:nth-child(n+3) { display: none; }
  .listing-grid .price { font-size: 17px; }
  .listing-grid .lcard .loc, .listing-grid .monthly { display: none; }
  .listing-grid .save-btn { width: 32px; height: 32px; top: 8px; right: 8px; }
  .lcard.horizontal { flex-direction: column; }
  .lcard.horizontal .media { width: 100%; min-height: 0; aspect-ratio: 16/10.5; }
  .body-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .makes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .thumbs .thumb:nth-child(n+6) { display: none; }
  .gallery-main { border-radius: 8px; }
  .gallery-nav { opacity: 1; width: 38px; height: 38px; }
  .detail-title { flex-direction: column; gap: 12px; }
  .key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key-spec { border-bottom: 1px solid var(--line-2); }
  .key-spec:nth-child(2n) { border-right: 0; }
  .key-spec:nth-child(3) { border-right: 1px solid var(--line-2); }
  .spec-table { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .feature-picker { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .kpi .value { font-size: 24px; }
  .dealer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-band .stat b { font-size: 28px; }
  .cta-band { padding: 28px; border-radius: 10px; }
  .card-pad, .card-body { padding: 18px; }
  .card-header { padding: 16px 18px; }
  .topbar .search { display: none; }
  .app-title h1 { font-size: 24px; }
  .hide-sm { display: none !important; }
  .lightbox { padding: 60px 12px; }
  .dealer-hero .container { flex-direction: column; align-items: flex-start; }
  .sticky-actions { flex-direction: column; align-items: stretch; }
  .sticky-actions .row { justify-content: stretch; }
  .sticky-actions .row .btn { flex: 1; }
  .table .hide-sm-cell { display: none; }
}

@media (max-width: 420px) {
  .listing-grid, .listing-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .lcard .specs span:nth-child(n+3) { display: inline-flex; }
  .lcard .loc, .monthly { display: inline-flex; }
  .price { font-size: 20px; }
  .features, .feature-picker { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.validation-summary-valid { display: none !important; }
.field-validation-valid { display: none; }
.count-pill[hidden] { display: none; }
.sidebar-scrim, .filters-scrim { display: none; }
@media (max-width: 1024px) {
  .sidebar-scrim.open, .filters-scrim.open { display: block; }
}
.listing-search .input-group { width: 240px; }
.editor-nav { display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.editor-nav a { flex-shrink: 0; }
@media (max-width: 760px) {
  .listing-search { width: 100%; }
  .listing-search .input-group { width: auto; flex: 1; min-width: 0; }
  .vehicle-cell { min-width: 200px; gap: 10px; }
  .vehicle-cell .mini-thumb { width: 56px; height: 38px; }
  .app-title > .btn, .app-title > a.btn { width: 100%; }
  .status-tabs a { padding: 0 10px; }
}
@media (max-width: 760px) {
  .sticky-actions .row { flex-wrap: wrap; }
  .sticky-actions .row .btn-ghost { display: none; }
}
.fgroup .fcontent.chip-row { display: flex; }
.fgroup .fcontent.range { display: grid; }
@media (max-width: 1024px) {
  .filters { visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .filters.open { visibility: visible; transition: transform .3s var(--ease); }
}

/* Busy screen while a form is saving (site.js): blocks the page until the next one loads. */
.busy-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(245, 246, 248, .78); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: busy-in .15s ease-out; }
.busy-screen[hidden] { display: none; }
.busy-card { display: grid; justify-items: center; gap: 10px; width: min(360px, 100%); padding: 28px 26px 24px; border: 1px solid #e3e7ed; border-radius: 10px; background: #fff; text-align: center; box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .45); }
.busy-card b { font-size: 16.5px; font-weight: 600; color: var(--ink, #111827); }
.busy-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted, #5d6778); }
.busy-spin { width: 40px; height: 40px; margin-bottom: 4px; border: 3px solid var(--brand-50, #ebf2fa); border-top-color: var(--brand, #074c9b); border-radius: 50%; animation: busy-spin .8s linear infinite; }
html.is-busy, html.is-busy body { overflow: hidden; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-in { from { opacity: 0; } }

/* Plans not ready yet: cards stay on the page under a frosted white layer */
.plans-veil { position: relative; }
.plans-veil > [inert] { filter: blur(5px) grayscale(.6); opacity: .55; user-select: none; pointer-events: none; }
.plans-veil::after { content: ""; position: absolute; inset: -6px; background: rgba(255, 255, 255, .45); border-radius: 8px; pointer-events: none; }
.plans-veil-msg { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; box-shadow: 0 12px 32px rgba(7, 76, 155, .12); padding: 22px 24px; text-align: center; }
.plans-veil-msg b { display: block; font-size: 18px; font-weight: 600; color: #0f1b2d; }
.plans-veil-msg p { margin: 6px 0 0; color: #5b6676; font-size: 14px; line-height: 1.5; }
.plans-veil-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef4fb; color: #074C9B; margin-bottom: 10px; }

/* FindMotos logo: the name drawn in the FM line style (Mr M 2026-11-30) */
.fm-logo { display: block; height: 23px; width: auto; overflow: visible; }
.fm-logo path { fill: none; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.fm-logo .fl-fm { stroke: var(--brand, #074C9B); }
.fm-logo .fl-bar { stroke: var(--brand, #074C9B); } /* no orange in the logo (Mr M 2026-11-30) */
.on-dark .fm-logo path, .auth-side .fm-logo path { stroke: #fff; }
