/* =========================================================================
   CarLink design system
   A single, hand-built system: tokens first, then primitives, then the few
   composite pieces the marketplace actually needs. No framework, no unused
   utilities, no gradient soup.
   ========================================================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */

:root {
    /* Warm neutral ramp — cooler greys make vehicle photography look dull. */
    --c-bg: #fbfaf9;
    --c-surface: #ffffff;
    --c-surface-2: #f5f4f2;
    --c-surface-3: #edebe8;
    --c-line: #e4e1dd;
    --c-line-strong: #d3cfca;

    --c-text: #14181d;
    --c-text-2: #4d5560;
    --c-text-3: #7b8490;
    --c-text-inv: #ffffff;

    /* Jade: the single brand accent. Used for action, never for decoration. */
    --c-brand: #0f7b69;
    --c-brand-hover: #0c6555;
    --c-brand-active: #0a5346;
    --c-brand-soft: #e6f3f0;
    --c-brand-soft-2: #cfe8e2;
    --c-brand-text: #0a5346;

    --c-ink: #101519;
    --c-ink-2: #1b2229;
    --c-ink-3: #2a333c;

    --c-amber: #b8791b;
    --c-amber-soft: #fdf3e0;
    --c-danger: #b4342a;
    --c-danger-soft: #fdeceb;
    --c-success: #14795f;
    --c-success-soft: #e4f4ef;
    --c-info: #2f5fbe;
    --c-info-soft: #eaf0fd;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 999px;

    /* Restrained elevation: two levels, both subtle. */
    --shadow-sm: 0 1px 2px rgba(16, 21, 25, .05), 0 1px 3px rgba(16, 21, 25, .04);
    --shadow: 0 4px 16px rgba(16, 21, 25, .07), 0 1px 3px rgba(16, 21, 25, .04);
    --shadow-lg: 0 18px 48px rgba(16, 21, 25, .14);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    --step-0: 0.9375rem;
    --step-1: 1.0625rem;
    --step-2: 1.25rem;
    --step-3: 1.5rem;
    --step-4: 1.9rem;
    --step-5: 2.4rem;
    --step-6: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --sp-8: 64px;
    --sp-9: 96px;

    --header-h: 68px;
    --container: 1280px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv05' 1, 'ss03' 1;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

h1, h2, h3, h4, h5 {
    line-height: 1.16;
    letter-spacing: -0.022em;
    font-weight: 640;
    text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

p { text-wrap: pretty; }

:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

::selection { background: var(--c-brand-soft-2); }

[hidden] { display: none !important; }

/* Alpine: hide templated markup until the component has initialised. */
[x-cloak] { display: none !important; }

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

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1480px; }

@media (min-width: 768px) {
    .container { padding-inline: var(--sp-6); }
}

.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--dark { background: var(--c-ink); color: #e9ecef; }
.section--muted { background: var(--c-surface-2); }

@media (min-width: 900px) {
    .section { padding-block: var(--sp-8); }
}

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, var(--sp-4)); }

.row {
    display: flex;
    align-items: center;
    gap: var(--gap, var(--sp-3));
    flex-wrap: wrap;
}

.row--between { justify-content: space-between; }
.row--nowrap { flex-wrap: nowrap; }
.row--tight { --gap: var(--sp-2); }

.grid { display: grid; gap: var(--sp-4); }

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-4);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

@media (max-width: 560px) {
    .grid--cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
}

.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--c-text-2); margin-top: 4px; font-size: var(--step-0); }

.eyebrow {
    font-size: .75rem;
    font-weight: 660;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-brand);
}

.section--dark .eyebrow { color: #6fd3bd; }

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 11px 18px;
    border-radius: var(--radius-full);
    font-size: var(--step-0);
    font-weight: 580;
    letter-spacing: -0.01em;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
    white-space: nowrap;
    text-align: center;
}

.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-hover); }

.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-ink-3); }

.btn--ghost { background: var(--c-surface); border-color: var(--c-line-strong); color: var(--c-text); }
.btn--ghost:hover { background: var(--c-surface-2); border-color: var(--c-text-3); }

.btn--soft { background: var(--c-brand-soft); color: var(--c-brand-text); }
.btn--soft:hover { background: var(--c-brand-soft-2); }

.btn--quiet { color: var(--c-text-2); padding-inline: 12px; }
.btn--quiet:hover { background: var(--c-surface-3); color: var(--c-text); }

.btn--danger { background: var(--c-danger-soft); color: var(--c-danger); }
.btn--danger:hover { background: var(--c-danger); color: #fff; }

.btn--lg { padding: 14px 26px; font-size: var(--step-1); }
.btn--sm { padding: 7px 13px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius-full); }

.section--dark .btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* -------------------------------------------------------------------------
   5. Forms
   ------------------------------------------------------------------------- */

.field { display: block; }

.field__label {
    display: block;
    font-size: .8125rem;
    font-weight: 580;
    color: var(--c-text-2);
    margin-bottom: 6px;
}

.field__hint { font-size: .75rem; color: var(--c-text-3); margin-top: 6px; }
.field__error { font-size: .78rem; color: var(--c-danger); margin-top: 6px; font-weight: 520; }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-sm);
    font-size: var(--step-0);
    color: var(--c-text);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
    appearance: none;
}

.input::placeholder, .textarea::placeholder { color: var(--c-text-3); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-3); }

.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-soft);
}

.input[aria-invalid="true"], .is-invalid {
    border-color: var(--c-danger);
    background: #fffbfb;
}

.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8490' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
    cursor: pointer;
}

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 42px; }
.input-group__icon {
    position: absolute;
    left: 14px;
    color: var(--c-text-3);
    pointer-events: none;
    display: flex;
}
.input-group__icon svg { width: 18px; height: 18px; }

.input-prefix {
    position: absolute;
    left: 14px;
    color: var(--c-text-3);
    font-size: .875rem;
    pointer-events: none;
}
.input-group--prefixed .input { padding-left: 46px; }

/* Checkbox / radio / switch */

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: var(--step-0);
    line-height: 1.4;
    user-select: none;
}

.check input[type="checkbox"], .check input[type="radio"] {
    appearance: none;
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: 1px;
    border: 1.5px solid var(--c-line-strong);
    border-radius: 5px;
    background: var(--c-surface);
    transition: all .16s var(--ease);
    cursor: pointer;
}

.check input[type="radio"] { border-radius: 50%; }

.check input:checked {
    background: var(--c-brand);
    border-color: var(--c-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 13px;
    background-position: center;
    background-repeat: no-repeat;
}

.check input[type="radio"]:checked {
    background-image: none;
    box-shadow: inset 0 0 0 4px var(--c-surface);
}

.check:hover input:not(:checked) { border-color: var(--c-brand); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--c-line-strong); position: relative; transition: background .2s var(--ease); flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked { background: var(--c-brand); }
.switch input:checked::after { transform: translateX(18px); }

/* Segmented control */

.segmented {
    display: inline-flex;
    background: var(--c-surface-3);
    padding: 3px;
    border-radius: var(--radius-full);
    gap: 2px;
}

.segmented__item {
    padding: 7px 15px;
    border-radius: var(--radius-full);
    font-size: .8125rem;
    font-weight: 560;
    color: var(--c-text-2);
    transition: all .16s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.segmented__item:hover { color: var(--c-text); }
.segmented__item[aria-selected="true"], .segmented__item.is-active {
    background: var(--c-surface);
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------------------
   6. Surfaces
   ------------------------------------------------------------------------- */

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card--pad { padding: var(--sp-5); }
.card--flat { border-radius: var(--radius); }

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-line);
    flex-wrap: wrap;
}

.panel__title { font-size: var(--step-1); font-weight: 620; }

/* -------------------------------------------------------------------------
   7. Badges, chips, pills
   ------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: .72rem;
    font-weight: 620;
    letter-spacing: .01em;
    line-height: 1.4;
    white-space: nowrap;
}

.badge svg { width: 13px; height: 13px; }

.badge--neutral { background: var(--c-surface-3); color: var(--c-text-2); }
.badge--success { background: var(--c-success-soft); color: var(--c-success); }
.badge--warning { background: var(--c-amber-soft); color: var(--c-amber); }
.badge--danger  { background: var(--c-danger-soft); color: var(--c-danger); }
.badge--info    { background: var(--c-info-soft); color: var(--c-info); }
.badge--muted   { background: var(--c-surface-3); color: var(--c-text-3); }
.badge--brand   { background: var(--c-brand-soft); color: var(--c-brand-text); }
.badge--solid   { background: var(--c-ink); color: #fff; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px 7px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--radius-full);
    font-size: .8125rem;
    font-weight: 520;
    transition: all .16s var(--ease);
}

.chip:hover { border-color: var(--c-text-3); }
.chip__remove {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-surface-3);
    color: var(--c-text-2);
    transition: all .16s var(--ease);
}
.chip__remove:hover { background: var(--c-danger); color: #fff; }
.chip__remove svg { width: 12px; height: 12px; }

/* Filter/quick-link pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    font-size: .875rem;
    font-weight: 520;
    color: var(--c-text-2);
    transition: all .18s var(--ease);
}

.pill:hover { border-color: var(--c-brand); color: var(--c-brand-text); background: var(--c-brand-soft); }
.pill.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* -------------------------------------------------------------------------
   8. Header
   ------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--c-line);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--sp-5);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 720;
    font-size: 1.2rem;
    letter-spacing: -0.035em;
    flex: none;
}

.logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--c-ink);
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
}
.logo__mark svg { width: 19px; height: 19px; }
.logo__text b { color: var(--c-brand); font-weight: 720; }

.nav { display: none; gap: 2px; margin-left: auto; }

.nav__link {
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 520;
    color: var(--c-text-2);
    transition: all .16s var(--ease);
}

.nav__link:hover { background: var(--c-surface-3); color: var(--c-text); }
.nav__link.is-active { color: var(--c-brand-text); background: var(--c-brand-soft); }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }

@media (min-width: 1000px) {
    .nav { display: flex; }
    .header__actions { margin-left: 0; }
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand-text);
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 640;
    overflow: hidden;
    flex: none;
    border: 1px solid var(--c-line);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar--xl { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar--sm { width: 28px; height: 28px; font-size: .68rem; }

/* Dropdown */

.dropdown { position: relative; }

.dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 80;
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    font-size: .875rem;
    color: var(--c-text-2);
    text-align: left;
    transition: all .14s var(--ease);
}

.dropdown__item:hover { background: var(--c-surface-2); color: var(--c-text); }
.dropdown__item svg { width: 16px; height: 16px; flex: none; color: var(--c-text-3); }
.dropdown__item.is-danger { color: var(--c-danger); }
.dropdown__item.is-danger:hover { background: var(--c-danger-soft); }
.dropdown__sep { height: 1px; background: var(--c-line); margin: 5px 0; }
.dropdown__head { padding: 10px 12px 8px; }
.dropdown__head strong { display: block; font-size: .9rem; }
.dropdown__head span { font-size: .78rem; color: var(--c-text-3); }

/* Notification bell */

.bell { position: relative; }
.bell__dot {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding-inline: 4px;
    border-radius: 999px;
    background: var(--c-danger);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid var(--c-surface);
}

/* Mobile bottom bar */

.mobilebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--c-line);
    display: flex;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.mobilebar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: .66rem;
    font-weight: 540;
    color: var(--c-text-3);
    border-radius: var(--radius-sm);
    transition: color .16s var(--ease);
}

.mobilebar__item svg { width: 21px; height: 21px; }
.mobilebar__item.is-active { color: var(--c-brand); }

@media (min-width: 1000px) { .mobilebar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 68px; } }

/* -------------------------------------------------------------------------
   9. Hero + home search
   ------------------------------------------------------------------------- */

.hero {
    position: relative;
    background: var(--c-ink);
    color: #fff;
    overflow: hidden;
    padding-block: var(--sp-8) var(--sp-9);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 78% 8%, rgba(15, 123, 105, .38), transparent 58%),
        radial-gradient(90% 70% at 12% 100%, rgba(24, 40, 52, .9), transparent 62%);
    pointer-events: none;
}

.hero__grid {
    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: 64px 64px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 78%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
    font-size: var(--step-6);
    font-weight: 700;
    letter-spacing: -0.038em;
    max-width: 15ch;
}

.hero__sub {
    margin-top: var(--sp-4);
    font-size: var(--step-1);
    color: rgba(255, 255, 255, .74);
    max-width: 52ch;
}

.hero__stats {
    display: flex;
    gap: var(--sp-6);
    margin-top: var(--sp-6);
    flex-wrap: wrap;
}

.hero__stat strong { display: block; font-size: var(--step-3); font-weight: 680; letter-spacing: -0.03em; }
.hero__stat span { font-size: .8rem; color: rgba(255, 255, 255, .6); }

.searchbox {
    margin-top: var(--sp-6);
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    padding: var(--sp-3);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: var(--sp-2);
    grid-template-columns: 1fr;
}

.searchbox__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background .16s var(--ease);
    min-width: 0;
}

.searchbox__field:hover { background: var(--c-surface-2); }
.searchbox__field label { font-size: .68rem; font-weight: 660; letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-3); }
.searchbox__field select, .searchbox__field input {
    border: 0;
    background: none;
    padding: 0;
    font-size: .95rem;
    font-weight: 540;
    color: var(--c-text);
    width: 100%;
}
.searchbox__field select:focus, .searchbox__field input:focus { outline: none; box-shadow: none; }
.searchbox__field select { background-position: right 0 center; padding-right: 22px; }

@media (min-width: 860px) {
    .searchbox {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        align-items: center;
    }
    .searchbox__field + .searchbox__field { border-left: 1px solid var(--c-line); }
    .searchbox .btn { height: 52px; padding-inline: 28px; }
}

/* -------------------------------------------------------------------------
   10. Vehicle card
   ------------------------------------------------------------------------- */

.vcard {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s var(--ease);
}

@media (hover: hover) {
    .vcard:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: var(--c-line-strong);
    }
    .vcard:hover .vcard__img { transform: scale(1.045); }
}

.vcard__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-surface-3);
    overflow: hidden;
}

.vcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease-out);
}

.vcard__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 60px);
    z-index: 2;
}

.vcard__badges .badge { box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }

.vcard__like {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(6px);
    color: var(--c-text-2);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .14);
    transition: all .2s var(--ease);
}

.vcard__like svg { width: 19px; height: 19px; transition: transform .25s var(--ease-out); }
.vcard__like:hover { transform: scale(1.08); color: var(--c-danger); }
.vcard__like.is-liked { color: var(--c-danger); }
.vcard__like.is-liked svg { fill: currentColor; }
.vcard__like.is-pulsing svg { animation: heart-pop .4s var(--ease-out); }

@keyframes heart-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.32); }
    100% { transform: scale(1); }
}

.vcard__count {
    position: absolute;
    bottom: 9px;
    right: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(16, 21, 25, .74);
    color: #fff;
    font-size: .68rem;
    font-weight: 560;
    backdrop-filter: blur(4px);
}
.vcard__count svg { width: 12px; height: 12px; }

.vcard__body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.vcard__title {
    font-size: .95rem;
    font-weight: 620;
    letter-spacing: -0.015em;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vcard__meta {
    font-size: .78rem;
    color: var(--c-text-2);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
}

.vcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.vcard__meta svg { width: 13px; height: 13px; color: var(--c-text-3); }

.vcard__spec {
    font-size: .75rem;
    color: var(--c-text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}
.vcard__spec i { font-style: normal; }
.vcard__spec i + i::before { content: '•'; margin-right: 6px; color: var(--c-line-strong); }

.vcard__foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--c-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vcard__price { font-size: 1.06rem; font-weight: 680; letter-spacing: -0.028em; }
.vcard__price small { display: block; font-size: .68rem; font-weight: 500; color: var(--c-text-3); letter-spacing: 0; }

.vcard__social { display: flex; gap: 9px; font-size: .72rem; color: var(--c-text-3); }
.vcard__social span { display: inline-flex; align-items: center; gap: 3px; }
.vcard__social svg { width: 13px; height: 13px; }

.vcard__link { position: absolute; inset: 0; z-index: 1; }

.vcard.is-sold .vcard__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(251, 250, 249, .58);
}

/* List variant */

.vcard--list { flex-direction: row; }
.vcard--list .vcard__media { width: 260px; flex: none; aspect-ratio: 4 / 3; }
.vcard--list .vcard__body { padding: var(--sp-4) var(--sp-5); gap: 9px; }
.vcard--list .vcard__title { font-size: var(--step-1); -webkit-line-clamp: 1; }
.vcard--list .vcard__price { font-size: var(--step-2); }

@media (max-width: 720px) {
    .vcard--list { flex-direction: column; }
    .vcard--list .vcard__media { width: 100%; }
    .vcard--list .vcard__body { padding: 13px 14px 14px; }
}

/* Rail — horizontally scrollable card row on mobile */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: var(--sp-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-inline: calc(var(--sp-4) * -1);
    padding-inline: var(--sp-4);
    scrollbar-width: thin;
}

.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 999px; }

@media (min-width: 1000px) {
    .rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
    }
}

/* -------------------------------------------------------------------------
   11. Search results & filters
   ------------------------------------------------------------------------- */

.results {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    align-items: start;
}

@media (min-width: 1060px) {
    .results { grid-template-columns: 288px minmax(0, 1fr); gap: var(--sp-6); }
}

/* One filter panel, two presentations: a sticky sidebar on desktop and a
   bottom sheet on mobile. Rendering it once keeps the form inputs unique. */

.filters {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--c-line);
    background: var(--c-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex: none;
}

.filters__body { overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; }

.filters__foot {
    flex: none;
    padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-line);
    background: var(--c-surface);
}

/* Chrome that belongs to the filter sheet shares the sheet's breakpoint
   rather than the generic mobile one. */
@media (min-width: 1060px) {
    .filters-scrim,
    .sheet-only { display: none !important; }
}

@media (max-width: 1059px) {
    .filters-wrap {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 95;
        transform: translateY(101%);
        transition: transform .32s var(--ease-out);
        max-height: 88vh;
        display: flex;
    }
    .filters-wrap.is-open { transform: none; }
    .filters {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border-bottom: 0;
        box-shadow: var(--shadow-lg);
        width: 100%;
        max-height: 88vh;
    }
    .filters__head { border-radius: 0; }
}

@media (min-width: 1060px) {
    .filters-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
    .filters { max-height: calc(100vh - var(--header-h) - 32px); }
}

.fgroup { border-bottom: 1px solid var(--c-line); }
.fgroup:last-child { border-bottom: 0; }

.fgroup__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--sp-4);
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
}

.fgroup__head svg { width: 16px; height: 16px; color: var(--c-text-3); transition: transform .22s var(--ease); }
.fgroup__head[aria-expanded="true"] svg { transform: rotate(180deg); }
.fgroup__body { padding: 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: 10px; }
.fgroup__body--scroll { max-height: 230px; overflow-y: auto; padding-right: 8px; }

.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}

.toolbar__count { font-size: var(--step-1); font-weight: 620; letter-spacing: -0.02em; }
.toolbar__count span { color: var(--c-text-3); font-weight: 450; font-size: .875rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }

/* Mobile filter drawer */

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 21, 25, .45);
    backdrop-filter: blur(2px);
    z-index: 90;
}

.drawer {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 88vh;
    background: var(--c-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--c-line);
}

.drawer__handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--c-line-strong);
    margin: 10px auto 0;
}

.drawer__body { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }

.drawer__foot {
    padding: var(--sp-4) var(--sp-5) calc(var(--sp-4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-line);
    display: flex;
    gap: var(--sp-3);
    background: var(--c-surface);
}

.filterbar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(251, 250, 249, .94);
    backdrop-filter: blur(10px);
    padding-block: 10px;
    margin-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-line);
}

/* The sidebar takes over from 1060px, so the trigger is no longer needed. */
@media (min-width: 1060px) { .filterbar { display: none; } }

/* -------------------------------------------------------------------------
   12. Vehicle detail
   ------------------------------------------------------------------------- */

.vdetail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    align-items: start;
}

@media (min-width: 1060px) {
    .vdetail { grid-template-columns: minmax(0, 1fr) 372px; gap: var(--sp-6); }
    .vdetail__aside { position: sticky; top: calc(var(--header-h) + 16px); }
}

.gallery { background: var(--c-ink); border-radius: var(--radius-lg); overflow: hidden; }

.gallery__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--c-ink-2);
    overflow: hidden;
    cursor: zoom-in;
}

@media (min-width: 700px) { .gallery__stage { aspect-ratio: 16 / 10; } }

.gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.gallery__slide.is-active { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }

.gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .9);
    color: var(--c-ink);
    box-shadow: var(--shadow);
    transition: all .18s var(--ease);
    z-index: 2;
}
.gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__nav svg { width: 20px; height: 20px; }

.gallery__counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: rgba(16, 21, 25, .72);
    color: #fff;
    font-size: .76rem;
    font-weight: 560;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery__thumb {
    width: 84px;
    height: 62px;
    flex: none;
    border-radius: var(--radius-xs);
    overflow: hidden;
    opacity: .5;
    border: 2px solid transparent;
    transition: all .18s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--c-brand); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 13, 16, .97);
    display: flex;
    flex-direction: column;
}

.lightbox__stage { flex: 1; position: relative; display: grid; place-items: center; padding: var(--sp-4); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 3; color: #fff; }
.lightbox__bar { padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom)); }

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--c-line);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec {
    background: var(--c-surface);
    padding: 13px 15px;
}
.spec dt { font-size: .72rem; color: var(--c-text-3); font-weight: 540; letter-spacing: .02em; }
.spec dd { font-size: .9rem; font-weight: 580; margin-top: 3px; }

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--sp-3);
}

.highlight {
    text-align: center;
    padding: var(--sp-4) var(--sp-3);
    background: var(--c-surface-2);
    border-radius: var(--radius);
}
.highlight svg { width: 20px; height: 20px; margin: 0 auto 8px; color: var(--c-brand); }
.highlight strong { display: block; font-size: .92rem; font-weight: 620; }
.highlight span { font-size: .72rem; color: var(--c-text-3); }

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 9px 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--c-text-2);
    list-style: none;
}
.feature-list svg { width: 15px; height: 15px; color: var(--c-brand); flex: none; }

/* Seller / contact box */

.seller-box { display: flex; flex-direction: column; gap: var(--sp-4); }

.phone-reveal {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    background: var(--c-brand);
    color: #fff;
    text-align: center;
    font-weight: 620;
    font-size: var(--step-1);
    letter-spacing: -0.01em;
    transition: background .18s var(--ease);
}
.phone-reveal:hover { background: var(--c-brand-hover); }
.phone-reveal small { display: block; font-weight: 480; font-size: .74rem; opacity: .82; margin-top: 3px; letter-spacing: 0; }
.phone-reveal.is-locked { background: var(--c-ink); }
.phone-reveal .masked { font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.sticky-actions {
    position: fixed;
    bottom: 68px;
    left: 0;
    right: 0;
    z-index: 65;
    padding: 10px var(--sp-4);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--c-line);
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (min-width: 1060px) { .sticky-actions { display: none; } }

/* -------------------------------------------------------------------------
   13. Comments
   ------------------------------------------------------------------------- */

.comment { display: flex; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
.comment:last-child { border-bottom: 0; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.comment__name { font-weight: 600; font-size: .89rem; }
.comment__time { font-size: .75rem; color: var(--c-text-3); }
.comment__text { font-size: .9rem; color: var(--c-text-2); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comment__actions { display: flex; gap: 12px; margin-top: 8px; }
.comment__action { font-size: .76rem; font-weight: 540; color: var(--c-text-3); transition: color .16s var(--ease); }
.comment__action:hover { color: var(--c-brand); }
.comment__replies { margin-top: var(--sp-4); margin-left: var(--sp-5); padding-left: var(--sp-4); border-left: 2px solid var(--c-line); display: flex; flex-direction: column; gap: var(--sp-3); }
.comment__replies .comment { padding: 0; border: 0; }

.comment-form { display: flex; gap: var(--sp-3); align-items: flex-start; }

/* -------------------------------------------------------------------------
   14. Dashboard
   ------------------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }

@media (min-width: 1000px) {
    .shell { grid-template-columns: 246px minmax(0, 1fr); gap: var(--sp-6); }
}

.sidenav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.sidenav::-webkit-scrollbar { display: none; }

@media (min-width: 1000px) {
    .sidenav {
        flex-direction: column;
        position: sticky;
        top: calc(var(--header-h) + 16px);
        overflow: visible;
    }
}

.sidenav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 540;
    color: var(--c-text-2);
    white-space: nowrap;
    transition: all .16s var(--ease);
}
.sidenav__link svg { width: 17px; height: 17px; flex: none; color: var(--c-text-3); }
.sidenav__link:hover { background: var(--c-surface-3); color: var(--c-text); }
.sidenav__link.is-active { background: var(--c-ink); color: #fff; }
.sidenav__link.is-active svg { color: #fff; }
.sidenav__badge { margin-left: auto; background: var(--c-brand-soft); color: var(--c-brand-text); border-radius: 999px; padding: 1px 7px; font-size: .68rem; font-weight: 660; }
.sidenav__link.is-active .sidenav__badge { background: rgba(255, 255, 255, .18); color: #fff; }
.sidenav__group { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--c-text-3); font-weight: 640; padding: 14px 13px 6px; display: none; }
@media (min-width: 1000px) { .sidenav__group { display: block; } }

.stat {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: var(--sp-4);
}
.stat__label { font-size: .74rem; color: var(--c-text-3); font-weight: 560; display: flex; align-items: center; gap: 6px; }
.stat__label svg { width: 14px; height: 14px; }
.stat__value { font-size: var(--step-3); font-weight: 680; letter-spacing: -0.03em; margin-top: 6px; }
.stat__delta { font-size: .74rem; color: var(--c-text-3); margin-top: 2px; }
.stat__delta.is-up { color: var(--c-success); }

.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }

.table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.table th {
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-3);
    font-weight: 640;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-line);
    background: var(--c-surface-2);
    white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: var(--c-surface-2); }
.table__media { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.table__thumb { width: 56px; height: 42px; border-radius: var(--radius-xs); object-fit: cover; flex: none; background: var(--c-surface-3); }
.table__num { font-variant-numeric: tabular-nums; }

/* Sparkline / bar chart */

.sparkline { display: flex; align-items: flex-end; gap: 2px; height: 56px; }
.sparkline__bar { flex: 1; background: var(--c-brand-soft-2); border-radius: 2px 2px 0 0; min-height: 2px; transition: background .16s var(--ease); }
.sparkline__bar:hover { background: var(--c-brand); }

.barchart { display: flex; flex-direction: column; gap: 10px; }
.barchart__row { display: grid; grid-template-columns: minmax(80px, 130px) 1fr auto; gap: 12px; align-items: center; font-size: .82rem; }
.barchart__track { height: 8px; background: var(--c-surface-3); border-radius: 999px; overflow: hidden; }
.barchart__fill { height: 100%; background: var(--c-brand); border-radius: 999px; }
.barchart__value { font-variant-numeric: tabular-nums; color: var(--c-text-3); font-size: .78rem; }

/* -------------------------------------------------------------------------
   15. Wizard
   ------------------------------------------------------------------------- */

.wizard { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }

@media (min-width: 1000px) {
    .wizard { grid-template-columns: 232px minmax(0, 1fr); gap: var(--sp-6); }
}

.steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }

@media (min-width: 1000px) {
    .steps { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); overflow: visible; }
}

.step {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 540;
    color: var(--c-text-3);
    white-space: nowrap;
    transition: all .18s var(--ease);
    text-align: left;
    width: 100%;
}

.step__num {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-surface-3);
    color: var(--c-text-3);
    font-size: .74rem;
    font-weight: 660;
    flex: none;
    transition: all .18s var(--ease);
}
.step__num svg { width: 13px; height: 13px; }
.step.is-active { background: var(--c-brand-soft); color: var(--c-brand-text); }
.step.is-active .step__num { background: var(--c-brand); color: #fff; }
.step.is-done { color: var(--c-text); }
.step.is-done .step__num { background: var(--c-success-soft); color: var(--c-success); }
.step:hover:not(.is-active) { background: var(--c-surface-2); color: var(--c-text); }

.progress { height: 4px; background: var(--c-surface-3); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--c-brand); border-radius: 999px; transition: width .4s var(--ease-out); }

.typecard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--sp-4);
    border: 1.5px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-surface);
    text-align: left;
    transition: all .18s var(--ease);
    cursor: pointer;
}
.typecard:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }
.typecard.is-selected { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.typecard strong { font-size: .95rem; font-weight: 620; }
.typecard span { font-size: .76rem; color: var(--c-text-3); line-height: 1.4; }
.typecard svg { width: 24px; height: 24px; color: var(--c-brand); }

/* -------------------------------------------------------------------------
   16. Photo uploader
   ------------------------------------------------------------------------- */

.dropzone {
    border: 2px dashed var(--c-line-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-7) var(--sp-5);
    text-align: center;
    background: var(--c-surface-2);
    transition: all .2s var(--ease);
    cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--c-brand); background: var(--c-brand-soft); }
.dropzone svg { width: 34px; height: 34px; color: var(--c-text-3); margin: 0 auto var(--sp-3); }
.dropzone.is-dragging svg { color: var(--c-brand); }
.dropzone.is-full { opacity: .55; pointer-events: none; }

.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-3);
}

.photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface-3);
    border: 1px solid var(--c-line);
    cursor: grab;
}
.photo.is-dragging { opacity: .4; }
.photo.is-over { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 21, 25, .72), transparent 46%);
    opacity: 0;
    transition: opacity .2s var(--ease);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8px;
    gap: 6px;
}
.photo:hover .photo__overlay, .photo:focus-within .photo__overlay { opacity: 1; }

.photo__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--c-ink);
    transition: all .16s var(--ease);
}
.photo__btn svg { width: 15px; height: 15px; }
.photo__btn:hover { background: #fff; transform: scale(1.08); }
.photo__btn--danger:hover { background: var(--c-danger); color: #fff; }

.photo__primary {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.photo__progress {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .9);
    display: grid;
    place-items: center;
    gap: 8px;
}
.photo__progress .progress { width: 70%; }

.photo-counter { font-variant-numeric: tabular-nums; font-weight: 620; }

/* -------------------------------------------------------------------------
   17. Feedback: toasts, empty, skeleton, alerts
   ------------------------------------------------------------------------- */

.toasts {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: var(--sp-4);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: .875rem;
    animation: toast-in .32s var(--ease-out);
}

.toast--error { border-left-color: var(--c-danger); }
.toast--info { border-left-color: var(--c-info); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast--success svg { color: var(--c-success); }
.toast--error svg { color: var(--c-danger); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.alert {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: var(--radius);
    font-size: .875rem;
    line-height: 1.55;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert--info { background: var(--c-info-soft); color: #1e3f80; }
.alert--warning { background: var(--c-amber-soft); color: #7d5210; }
.alert--danger { background: var(--c-danger-soft); color: var(--c-danger); }
.alert--success { background: var(--c-success-soft); color: var(--c-success); }
.alert--brand { background: var(--c-brand-soft); color: var(--c-brand-text); }

.empty {
    text-align: center;
    padding: var(--sp-8) var(--sp-4);
    max-width: 420px;
    margin-inline: auto;
}
.empty__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-surface-3);
    display: grid;
    place-items: center;
    margin: 0 auto var(--sp-4);
    color: var(--c-text-3);
}
.empty__icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: var(--step-2); margin-bottom: 8px; }
.empty p { color: var(--c-text-2); margin-bottom: var(--sp-5); font-size: .9rem; }

.skeleton {
    background: linear-gradient(100deg, var(--c-surface-3) 30%, var(--c-surface-2) 50%, var(--c-surface-3) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -20% 0; }
}

.skeleton-card { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.skeleton-card__media { aspect-ratio: 4 / 3; }
.skeleton-card__body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

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

/* -------------------------------------------------------------------------
   18. Pagination
   ------------------------------------------------------------------------- */

.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin-top: var(--sp-6); }

.pagination__link {
    min-width: 38px;
    height: 38px;
    padding-inline: 11px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .86rem;
    font-weight: 540;
    color: var(--c-text-2);
    border: 1px solid var(--c-line);
    background: var(--c-surface);
    transition: all .16s var(--ease);
}
.pagination__link:hover { border-color: var(--c-text-3); color: var(--c-text); }
.pagination__link.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pagination__link.is-disabled { opacity: .4; pointer-events: none; }
.pagination__dots { padding-inline: 6px; color: var(--c-text-3); }

/* -------------------------------------------------------------------------
   19. Footer
   ------------------------------------------------------------------------- */

.footer { background: var(--c-ink); color: rgba(255, 255, 255, .68); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-8); }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-4); font-weight: 640; }
.footer a { color: rgba(255, 255, 255, .68); font-size: .875rem; transition: color .16s var(--ease); display: block; padding-block: 5px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-6); }
.footer__brand { max-width: 300px; }
.footer__bottom {
    margin-top: var(--sp-7);
    padding-top: var(--sp-5);
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    font-size: .8rem;
}

/* -------------------------------------------------------------------------
   20. Misc components
   ------------------------------------------------------------------------- */

.makecard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: var(--sp-4) var(--sp-3);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    transition: all .2s var(--ease);
    text-align: center;
}
.makecard:hover { border-color: var(--c-brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.makecard__mark {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--c-surface-2);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--c-text-2);
    letter-spacing: -0.03em;
}
.makecard strong { font-size: .84rem; font-weight: 580; }
.makecard span { font-size: .72rem; color: var(--c-text-3); }

.dealercard { display: flex; gap: var(--sp-3); padding: var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); transition: all .2s var(--ease); }
.dealercard:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-sm); }
.dealercard__logo { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--c-surface-2); display: grid; place-items: center; font-weight: 680; color: var(--c-text-2); overflow: hidden; flex: none; }
.dealercard__logo img { width: 100%; height: 100%; object-fit: cover; }

.steps-flow { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: flow; }
.flowstep { position: relative; padding-top: var(--sp-5); }
.flowstep::before {
    counter-increment: flow;
    content: counter(flow);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--c-brand-soft);
    color: var(--c-brand-text);
    display: grid;
    place-items: center;
    font-weight: 680;
    font-size: .9rem;
}
.section--dark .flowstep::before { background: rgba(111, 211, 189, .16); color: #6fd3bd; }
.flowstep h4 { font-size: var(--step-1); margin-bottom: 6px; }
.flowstep p { font-size: .875rem; color: var(--c-text-2); }
.section--dark .flowstep p { color: rgba(255, 255, 255, .62); }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--c-text-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--c-brand); }
.breadcrumb svg { width: 13px; height: 13px; }

.prose { font-size: .95rem; line-height: 1.7; color: var(--c-text-2); }
.prose h2 { font-size: var(--step-2); color: var(--c-text); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--step-1); color: var(--c-text); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p + p { margin-top: var(--sp-3); }
.prose ul, .prose ol { margin: var(--sp-3) 0 var(--sp-3) var(--sp-5); }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 13px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    background: var(--c-surface);
    font-size: .74rem;
    font-weight: 540;
    color: var(--c-text-2);
    transition: all .18s var(--ease);
}
.share-btn:hover { border-color: var(--c-brand); color: var(--c-brand-text); background: var(--c-brand-soft); }
.share-btn svg { width: 19px; height: 19px; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 21, 25, .5);
    backdrop-filter: blur(3px);
    z-index: 150;
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    overflow-y: auto;
}

.modal {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in .26s var(--ease-out);
}

.modal--wide { max-width: 680px; }
.modal__head { padding: var(--sp-5) var(--sp-5) 0; }
.modal__body { padding: var(--sp-5); }
.modal__foot { padding: 0 var(--sp-5) var(--sp-5); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 11px 15px;
    font-size: .875rem;
    font-weight: 540;
    color: var(--c-text-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all .16s var(--ease);
}
.tab:hover { color: var(--c-text); }
.tab.is-active { color: var(--c-brand-text); border-bottom-color: var(--c-brand); }
.tab__count { color: var(--c-text-3); font-weight: 500; }

.colour-swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--c-line-strong); flex: none; }

/* -------------------------------------------------------------------------
   21. Utilities — a deliberately tiny set
   ------------------------------------------------------------------------- */

.u-muted { color: var(--c-text-2); }
.u-dim { color: var(--c-text-3); }
.u-small { font-size: .8rem; }
.u-xs { font-size: .72rem; }
.u-strong { font-weight: 620; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-nowrap { white-space: nowrap; }
.u-tabular { font-variant-numeric: tabular-nums; }
.u-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-flex1 { flex: 1; min-width: 0; }
.u-mt-2 { margin-top: var(--sp-2); }
.u-mt-3 { margin-top: var(--sp-3); }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-5 { margin-top: var(--sp-5); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mb-4 { margin-bottom: var(--sp-4); }
.u-mb-5 { margin-bottom: var(--sp-5); }
.u-hide-mobile { display: none !important; }
.u-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (min-width: 700px) {
    .u-hide-mobile { display: revert !important; }
    .u-only-mobile { display: none !important; }
}

.fade-in { animation: fade-in .4s var(--ease-out) both; }

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

@media print {
    .header, .footer, .mobilebar, .sticky-actions, .btn { display: none !important; }
}
