/* =============================================================
   MOTIYARD — Master stylesheet
   Sections: reset, variables, base, buttons, forms, header,
             home, browse, listing detail, footer, utilities,
             dark mode, responsive
   ============================================================= */

/* -------------------------------------------------------------
   1. RESET
   ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; margin: 0; }

img, picture, svg, video {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

a { color: inherit; text-decoration: none; }

input, select, textarea { font: inherit; color: inherit; }

/* -------------------------------------------------------------
   2. VARIABLES
   ------------------------------------------------------------- */
:root {
    /* Brand */
    --red:         #C8102E;
    --red-hover:   #a60d26;
    --red-soft:    rgba(200, 16, 46, 0.12);

    /* Surfaces */
    --bg:          #f7f7f8;
    --bg-soft:     #f0f0f2;
    --surface:     #ffffff;
    --surface-2:   #fafafa;

    /* Text */
    --text:        #111111;
    --text-soft:   #6b7280;
    --text-mute:   #9ca3af;

    /* Lines */
    --border:      #e5e5e8;
    --border-soft: #eeeeee;

    /* States */
    --success:     #16a34a;
    --success-bg:  #dcfce7;
    --error:       #dc2626;
    --error-bg:    #fee2e2;

    /* Typography */
    --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;

    /* Layout */
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.10);

    --header-h: 72px;

    /* Transition */
    --t-fast: .15s ease;
    --t:      .25s ease;
}

/* -------------------------------------------------------------
   3. BASE
   ------------------------------------------------------------- */
html, body { height: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background var(--t), color var(--t);
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { color: var(--text); }

::selection {
    background: var(--red);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }
::-webkit-scrollbar-track { background: transparent; }

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 56px 0;
}
.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--text-soft); font-size: 14px; }

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.btn-dark {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}
.btn-dark:hover { background: #000; border-color: #000; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--text-mute);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-soft); }

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; text-align: center; }

/* -------------------------------------------------------------
   6. FORMS (generic)
   ------------------------------------------------------------- */
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}
input::placeholder,
textarea::placeholder { color: var(--text-mute); }

textarea { resize: vertical; min-height: 100px; }

/* -------------------------------------------------------------
   7. HEADER
   ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: saturate(180%) blur(8px);
    transition: background var(--t), border-color var(--t);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    flex-shrink: 0;
}
.logo .dot { color: var(--red); }

.main-nav {
    display: flex;
    gap: 22px;
    margin-left: 8px;
}
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color var(--t-fast);
}
.main-nav a:hover { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Icon buttons (theme toggle, install) */
.theme-toggle,
.install-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-soft);
    transition: background var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover,
.install-btn:hover {
    background: var(--bg-soft);
    color: var(--text);
}
.theme-toggle svg,
.install-btn svg { width: 20px; height: 20px; }

/* Show/hide sun/moon by theme */
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* -------------------------------------------------------------
   8. MOBILE BOTTOM NAV
   ------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
    color: var(--text-soft);
    transition: color var(--t-fast);
}
.mobile-nav-item:hover,
.mobile-nav-item:active { color: var(--red); }
.mobile-nav-item svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 68px; }
}

/* -------------------------------------------------------------
   9. FLASH / ALERTS
   ------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(22,163,74,.25);
}
.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: rgba(220,38,38,.25);
}

/* -------------------------------------------------------------
   10. HOME — HERO
   ------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 40px 0 32px;
    overflow: hidden;
}

.hero-with-ads {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 20px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-ad-side {
    display: flex;
    align-items: stretch;
}
.hero-ad-card {
    flex: 1;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hero-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.hero-ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-center { min-width: 0; }

.hero-inner {
    text-align: center;
    padding: 40px 20px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--red);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 16px;
    line-height: 1.05;
}
.hero h1 .accent { color: var(--red); }

.hero p {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* Search panel */
.search-panel {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr auto;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto 28px;
    align-items: end;
}
.search-panel .field { text-align: left; }
.search-panel label {
    font-size: 12px;
    margin-bottom: 4px;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.hero-stats > div { text-align: center; }
.hero-stats .num {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.hero-stats .label {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Hero visuals (vehicle strip) */
.hero-visuals {
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.hero-visuals-mobile { display: none; }

.hero-visuals-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: hero-scroll 42s linear infinite;
}
.hero-visuals:hover .hero-visuals-track { animation-play-state: paused; }

@keyframes hero-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-soft);
}
.hero-visual img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.hero-visual-plate {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 8px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

/* Leftover ads row */
.hero-leftover-ads {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-leftover-ad {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-soft);
}
.hero-leftover-ad img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.hero-leftover-ad span {
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-soft);
    text-align: center;
}

/* -------------------------------------------------------------
   11. HOME — SECTIONS
   ------------------------------------------------------------- */
.type-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.type-chip {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.type-chip:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Listing grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.lot-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.lot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.lot-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-soft);
}
.lot-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t);
}
.lot-card:hover .lot-media img { transform: scale(1.04); }

.lot-number,
.lot-condition {
    position: absolute;
    top: 10px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 4px;
    color: #fff;
}
.lot-number {
    left: 10px;
    background: rgba(0,0,0,.72);
}
.lot-condition {
    right: 10px;
    text-transform: uppercase;
}
.lot-condition.new  { background: var(--success); }
.lot-condition.used { background: var(--red); }

.lot-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    flex: 1;
}
.lot-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}
.lot-sub {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
}
.lot-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-soft);
}
.lot-meta span {
    padding: 3px 8px;
    background: var(--bg-soft);
    border-radius: 4px;
}
.lot-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
}
.lot-footer .plate {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* Split section (buy/sell) */
.split-section { padding: 56px 0; }
.split-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}
.split-col h3 { margin-bottom: 18px; }
.split-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 12px;
}
.split-steps li {
    display: flex;
    gap: 12px;
    align-items: start;
    font-size: 14px;
    color: var(--text-soft);
}
.split-steps li span { flex: 1; }
.split-steps li::before {
    content: counter(step);
    counter-increment: step;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.split-steps { counter-reset: step; }

.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-soft);
}
.split-image > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.split-image-slider {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: var(--shadow);
    background: #000;
}
.split-slider-track {
    display: flex;
    height: 100%;
    animation: hero-scroll 24s linear infinite;
}
.split-slider-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
}
.split-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty state */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p {
    color: var(--text-soft);
    margin-bottom: 20px;
}

/* -------------------------------------------------------------
   12. BROWSE PAGE
   ------------------------------------------------------------- */
.browse-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.browse-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.15;
}
.browse-count {
    color: var(--text-soft);
    margin: 0;
    font-size: 14px;
}

.browse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar filters */
.filters {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    padding-right: 4px;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.filters::-webkit-scrollbar-track { background: transparent; }

.filter-form {
    display: grid;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.filter-group { display: grid; gap: 6px; }
.filter-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    margin: 0;
}
.filter-form select,
.filter-form input[type="text"],
.filter-form input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-form select:focus,
.filter-form input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-form .btn-block {
    width: 100%;
    text-align: center;
}

/* Sort bar */
.sort-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.sort-form label {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0;
}
.sort-form select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}
.sort-form select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumbs a {
    color: var(--text-soft);
    transition: color var(--t-fast);
}
.breadcrumbs a:hover { color: var(--red); }

.browse-results { min-width: 0; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}
.pagination .btn {
    min-width: 38px;
    text-align: center;
}

/* -------------------------------------------------------------
   13. LISTING DETAIL
   ------------------------------------------------------------- */
.listing-detail {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.gallery-thumb {
    width: 84px;
    height: 62px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--t-fast), opacity var(--t-fast);
    flex-shrink: 0;
    opacity: .75;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--red);
    opacity: 1;
}

.listing-info h1 {
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 6px;
}
.listing-info .price {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--red);
    margin: 16px 0 20px;
}

.specs {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 22px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}
.specs li {
    font-size: 14px;
    display: flex;
    flex-direction: column;
}
.specs strong {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* -------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------- */
.site-footer {
    margin-top: 64px;
    padding: 48px 0 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 14px;
}
.site-footer .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.site-footer h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 12px;
}
.site-footer a {
    color: var(--text-soft);
    transition: color var(--t-fast);
}
.site-footer a:hover { color: var(--red); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-mute);
    text-align: center;
}

/* -------------------------------------------------------------
   15. UTILITIES
   ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-soft { color: var(--text-soft); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.form-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------------
   16. DARK MODE
   ------------------------------------------------------------- */
[data-theme="dark"] {
    --bg:          #0d0d0f;
    --bg-soft:     #16161a;
    --surface:     #1a1a1e;
    --surface-2:   #202024;

    --text:        #f2f2f3;
    --text-soft:   #a1a1aa;
    --text-mute:   #71717a;

    --border:      #2a2a30;
    --border-soft: #232328;

    --red-soft:    rgba(200, 16, 46, 0.20);

    --success-bg:  rgba(22,163,74,.15);
    --error-bg:    rgba(220,38,38,.15);
}

[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .site-header {
    background: rgba(26, 26, 30, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
}
[data-theme="dark"] .mobile-bottom-nav {
    background: var(--surface);
    border-color: var(--border);
}
[data-theme="dark"] .btn-outline { border-color: var(--border); }
[data-theme="dark"] .btn-outline:hover { background: var(--surface-2); }
[data-theme="dark"] .btn-dark { background: var(--text); color: #0d0d0f; }
[data-theme="dark"] .lot-card:hover { border-color: var(--border); }
[data-theme="dark"] .hero-visual-plate,
[data-theme="dark"] .lot-number { background: rgba(255,255,255,.14); }

/* -------------------------------------------------------------
   17. RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-with-ads { grid-template-columns: 1fr; }
    .hero-ad-side { display: none; }
    .split-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .split-steps li { justify-content: center; text-align: left; }
    .split-image { max-width: 560px; margin: 0 auto; }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .browse-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .filters {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .listing-detail { grid-template-columns: 1fr; }
    .search-panel {
        grid-template-columns: 1fr 1fr;
    }
    .search-panel button { grid-column: span 2; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .site-header .container { gap: 12px; }
    .nav-actions .btn-ghost,
    .nav-actions .btn-outline { display: none; }

    .section { padding: 40px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }

    .hero { padding: 24px 0 20px; }
    .hero-inner { padding: 24px 12px; }
    .hero-stats { gap: 24px; }
    .hero-stats .num { font-size: 24px; }

    .listing-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .lot-body { padding: 12px; }
    .lot-title { font-size: 15px; }
    .lot-footer .plate { font-size: 16px; }

    .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 520px) {
    .search-panel { grid-template-columns: 1fr; }
    .search-panel button { grid-column: auto; }
    .listing-grid { grid-template-columns: 1fr; }
    .specs { grid-template-columns: 1fr; }
    .browse-head { flex-direction: column; align-items: flex-start; }
    .sort-form { width: 100%; }
    .sort-form select { flex: 1; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-visuals-track,
    .split-slider-track { animation: none; }
}