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

:root {
    --bg: #121416;
    --surface: #161a1e;
    --surface-2: #1c2228;
    --border: #1e2a30;
    --border-bright: #2a3a42;
    --text: #c4ccd0;
    --text-muted: #4a5a62;
    --accent: #ff4400;
    --accent-light: #ff6b1a;
    --accent-dim: #cc3300;
    --accent-glow: rgba(255,68,0,0.25);
    --accent-bg: rgba(255,68,0,0.06);
    --chrome-hi: #dde0e4;
    --chrome-lo: #556060;
    --neon: #22ff44;
    --neon-dim: #18cc33;
    --neon-glow: rgba(34,255,68,0.2);
    --neon-bg: rgba(34,255,68,0.06);
    --teal: #0d2a2e;
    --teal-light: #1a4a50;
    --green: #22ff44;
    --yellow: #ddaa00;
    --red: #cc2200;
    --pink: #ff2d8a;
    --pink-dim: #cc1a6a;
    --pink-glow: rgba(255,45,138,0.25);
    --blue: #00bbff;
    --blue-dim: #0099dd;
    --blue-glow: rgba(0,187,255,0.2);
    --blue-bg: rgba(0,187,255,0.06);
    --radius: 3px;
}

body {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='%23151719'/%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%231e2024' opacity='0.9'/%3E%3Ccircle cx='4' cy='0' r='0.6' fill='%23202226' opacity='0.7'/%3E%3Ccircle cx='0' cy='4' r='0.7' fill='%231c1e22' opacity='0.8'/%3E%3Ccircle cx='3' cy='3' r='1' fill='%23191b1f' opacity='0.6'/%3E%3Ccircle cx='5' cy='2' r='0.5' fill='%23222428' opacity='0.9'/%3E%3Ccircle cx='2' cy='5' r='0.9' fill='%231d2024' opacity='0.7'/%3E%3Ccircle cx='5' cy='5' r='0.6' fill='%23232528' opacity='0.8'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%230e1012' opacity='0.5'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%230d0f12' opacity='0.4'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.008) 0px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.006) 0px,
            transparent 1px,
            transparent 4px
        );
    color: var(--text);
    line-height: 1.5;
}

/* ============ HEADER ============ */

header {
    position: relative;
    padding: 18px 24px 14px;
    background:
        radial-gradient(ellipse 800px 8px at 15% 50%, rgba(255,180,30,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 500px 4px at 10% 56%, rgba(255,200,50,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 350px 5px at 25% 44%, rgba(255,150,20,0.11) 0%, transparent 60%),
        radial-gradient(ellipse 600px 7px at 80% 48%, rgba(34,255,68,0.11) 0%, transparent 70%),
        radial-gradient(ellipse 300px 4px at 85% 55%, rgba(34,255,68,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 200px 40px at 5% 50%, rgba(255,160,30,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 180px 40px at 92% 50%, rgba(34,255,68,0.06) 0%, transparent 70%),
        linear-gradient(180deg, #0f1c20 0%, #0a0e12 100%);
    border-bottom: 2px solid var(--accent);
    overflow: hidden;
    text-align: center;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -65deg,
            transparent,
            transparent 18px,
            rgba(255,68,0,0.02) 18px,
            rgba(255,68,0,0.02) 19px
        ),
        repeating-linear-gradient(
            65deg,
            transparent,
            transparent 24px,
            rgba(34,255,68,0.012) 24px,
            rgba(34,255,68,0.012) 25px
        );
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-dim) 0%, var(--accent) 25%, var(--pink) 50%, var(--accent) 75%, var(--neon-dim) 100%);
}

/* Logo */

.logo {
    position: relative;
    display: inline-block;
}

.logo-text {
    font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
    font-size: 44px;
    font-style: italic;
    letter-spacing: 5px;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    transform: skewX(-8deg);
    position: relative;
}

.logo-chrome {
    background: linear-gradient(180deg,
        #999 0%, #fff 18%, #aaa 40%, #ddd 55%, #888 70%, #aaa 85%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-hot {
    color: var(--neon);
    text-shadow:
        0 0 30px var(--neon-glow),
        0 0 60px rgba(34,255,68,0.15);
}

.logo-badge {
    font-size: 14px;
    font-style: normal;
    letter-spacing: 2px;
    background: var(--pink);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: super;
    transform: skewX(8deg);
    display: inline-block;
    text-shadow: none;
    box-shadow: 0 0 10px var(--pink-glow);
}

.logo-glow {
    position: absolute;
    inset: 0;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    letter-spacing: inherit;
    color: var(--accent);
    filter: blur(18px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

/* Speed lines */

.speed-lines {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}

.speed-lines::before,
.speed-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.speed-lines::before {
    right: 55%;
    width: 140px;
    opacity: 0.35;
    background: linear-gradient(90deg, var(--neon), transparent);
    box-shadow:
        0 -10px 0 0 rgba(34,255,68,0.12),
        0 -5px 0 0 rgba(34,255,68,0.08),
        0 10px 0 0 rgba(34,255,68,0.12),
        0 18px 0 0 rgba(34,255,68,0.06);
}

.speed-lines::after {
    left: 55%;
    width: 140px;
    opacity: 0.35;
    background: linear-gradient(-90deg, var(--accent), transparent);
    box-shadow:
        0 -10px 0 0 rgba(255,68,0,0.12),
        0 -5px 0 0 rgba(255,68,0,0.08),
        0 10px 0 0 rgba(255,68,0,0.12),
        0 18px 0 0 rgba(255,68,0,0.06);
}

.tagline {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 10px;
    font-style: italic;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-top: 4px;
    transform: skewX(-5deg);
}

/* ============ MAIN ============ */

main {
    padding: 16px 24px 0;
}

/* ============ PANEL ============ */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, var(--neon-dim), var(--blue), var(--accent-dim)) 1;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(34,255,68,0.006) 3px,
            rgba(34,255,68,0.006) 4px
        );
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 14px;
    font-style: italic;
    color: var(--blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--blue-glow);
}

.panel-search {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.search-field { flex: 1; }
.search-field.narrow { flex: 0 0 90px; }

.search-field label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.search-field input {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.search-field input::placeholder { color: var(--text-muted); }

.search-field select {
    width: 100%;
    padding: 7px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.search-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Typeahead */

.typeahead { position: relative; }

.ta-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-top: 2px solid var(--neon-dim);
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 8px var(--neon-glow);
}

.ta-item {
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.08s;
}

.ta-item:hover,
.ta-item.ta-active {
    background: var(--neon-bg);
    color: var(--neon);
}

.ta-item:last-child { border-bottom: none; }

.ta-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.filter-ta { flex: 0 1 160px; }

.filter-ta input {
    width: 100%;
    padding: 4px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 11px;
    outline: none;
}

.filter-ta input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

.filter-ta input::placeholder { color: var(--text-muted); }
.filter-ta .ta-list { font-size: 11px; max-height: 200px; }
.filter-ta-sm { flex: 0 1 110px; }

/* Search button */

.search-btn {
    padding: 7px 28px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.1s;
}

.search-btn:hover {
    box-shadow: 0 0 20px rgba(255,68,0,0.4), 0 0 40px rgba(34,255,68,0.12);
    transform: scale(1.02);
}

.search-btn:active { transform: scale(0.98); }

.htmx-request .search-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* ============ SPINNER ============ */

.spinner {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.htmx-indicator.htmx-request { opacity: 1; }

/* ============ CRAWL STATUS ============ */

.status-bar {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    font-size: 12px;
}

.status-bar.done {
    display: flex;
    align-items: center;
}

.status-bar.done { border-left-color: var(--neon); }

.status-label {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 12px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-right: 6px;
}

.status-bar.done .status-label { color: var(--neon); }

.dot-pulse::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.status-info { font-size: 12px; color: var(--text-muted); }

.progress-bar {
    height: 3px;
    background: var(--surface-2);
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-dim), var(--accent-light));
    border-radius: 2px;
    transition: width 0.8s ease;
    box-shadow: 0 0 6px var(--neon-glow);
}

.results-summary {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ============ FILTER BAR ============ */

.filter-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}

.filter-bar input:not([type="range"]):not([type="checkbox"]),
.filter-bar select {
    padding: 4px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 11px;
    outline: none;
}

.filter-bar input:not([type="range"]):not([type="checkbox"]) { flex: 1; min-width: 120px; }
.filter-check {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    flex: none;
}
.filter-check input {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    position: relative;
}
.filter-check input:checked {
    background: var(--neon);
    border-color: var(--neon);
}
.filter-check input:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 1px;
    font-size: 11px;
    color: #000;
    font-weight: 700;
}
.filter-bar input:not([type="range"]):focus, .filter-bar select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 6px var(--blue-glow);
}
.filter-bar input::placeholder { color: var(--text-muted); }
.filter-bar select { max-width: 180px; }

/* Year range slider */

.year-range {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    flex: 1;
}

.yr-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 70px;
}

.yr-slider {
    position: relative;
    flex: 1;
    height: 20px;
}

.yr-slider input[type="range"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 20px;
    margin: 0; padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    touch-action: none;
}

.yr-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 16px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--blue);
    box-shadow: 0 0 6px var(--blue-glow);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.yr-slider input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--blue);
    box-shadow: 0 0 6px var(--blue-glow);
    cursor: pointer;
    pointer-events: all;
}

.yr-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.yr-slider input[type="range"]::-moz-range-track { height: 4px; background: transparent; }

.yr-track {
    position: absolute;
    top: 8px; height: 4px;
    background: var(--neon);
    border-radius: 2px;
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 4px var(--neon-glow);
}

.yr-slider::before {
    content: '';
    position: absolute;
    top: 8px; left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    z-index: 0;
}

.filter-count {
    font-size: 11px;
    color: var(--blue);
    margin-left: auto;
}

/* ============ RESULTS TABLE ============ */

.table-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 320px);
    padding: 0 4px;
}

.results-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.results-table th {
    position: relative;
}

.col-resize {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background: transparent;
}
.col-resize:hover { background: var(--blue); }

.results-table thead { position: sticky; top: 0; z-index: 5; }

.results-table th {
    background: linear-gradient(180deg, #162228 0%, #0c1418 100%);
    border-bottom: 2px solid var(--accent);
    padding: 6px 8px;
    text-align: left;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 10px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    white-space: nowrap;
}

.results-table td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-table tbody tr {
    transition: background 0.08s, border-color 0.08s;
    border-left: 2px solid transparent;
}

.results-table tbody tr:hover {
    background: var(--neon-bg);
    border-left-color: var(--neon);
}

.results-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.results-table tbody tr:nth-child(even):hover { background: var(--neon-bg); }

.c-year { font-weight: 700; }
.c-desc { color: var(--text-muted); }
.c-grade { }
.c-loc { font-size: 11px; color: var(--text-muted); }
.c-age { font-size: 11px; color: var(--blue-dim); }
.c-price {
    font-family: Impact, "Arial Black", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: var(--pink);
    font-size: 13px;
}
.c-dealer a { color: var(--blue); text-decoration: none; }
.c-dealer a:hover { color: var(--neon); text-decoration: underline; }
.source-via { display: block; font-size: 9px; color: var(--text-muted); opacity: 0.6; line-height: 1.2; }
.source-via a { color: var(--text-muted); text-decoration: none; }
.source-via a:hover { color: var(--blue-dim); }
.c-compat { text-align: center; }
.compat-check {
    display: inline-block;
    color: var(--neon);
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--neon-glow);
    cursor: help;
}
.c-photo a { color: var(--neon-dim); font-size: 11px; text-decoration: none; }
.c-photo a:hover { text-decoration: underline; }
.photo-icon { display: inline-block; width: 16px; height: 16px; vertical-align: middle; }
.photo-text { display: none; }
.listing-thumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border);
    vertical-align: middle;
    cursor: pointer;
}
.listing-thumb:hover { border-color: var(--neon); box-shadow: 0 0 4px var(--neon-glow); }

.c-basket { text-align: center; overflow: visible; }
.basket-add-btn {
    padding: 3px 8px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 9px;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.15s;
}
.basket-add-btn:hover { box-shadow: 0 0 8px var(--accent-glow); }
.basket-add-btn.in-basket {
    background: linear-gradient(180deg, var(--neon) 0%, #1a9944 100%);
    border-color: var(--neon);
}

.basket-btn {
    padding: 7px 28px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.1s;
}
.basket-btn:hover {
    box-shadow: 0 0 20px rgba(255,68,0,0.4), 0 0 40px rgba(34,255,68,0.12);
    transform: scale(1.02);
}
.basket-btn:active { transform: scale(0.98); }
.basket-count {
    display: inline-block;
    background: #fff;
    color: #cc2200;
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    padding: 0 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.basket-modal-content {
    position: relative;
    width: 94vw;
    max-width: 1200px;
    height: 80vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}
.basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.basket-header h2 { margin: 0; font-size: 16px; color: var(--text); }
.basket-header-actions { display: flex; align-items: center; gap: 10px; }
.basket-header-actions .modal-close { position: static; }
.basket-empty-btn {
    padding: 5px 16px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 11px;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.basket-empty-btn:hover { box-shadow: 0 0 12px var(--accent-glow); }
.basket-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.basket-empty { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 14px; }
.basket-table .c-desc { max-width: 200px; }
.basket-remove-btn {
    padding: 4px 12px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 10px;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s;
}
.basket-remove-btn:hover { box-shadow: 0 0 12px var(--accent-glow); }

/* Basket picker popup */
.basket-picker {
    position: fixed;
    z-index: 120;
    min-width: 160px;
    max-height: 240px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--neon-dim);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.basket-picker .ta-item { padding: 8px 12px; font-size: 12px; cursor: pointer; }
.basket-picker .ta-item:hover { background: var(--neon-bg); color: var(--neon); }
.basket-picker-new { color: var(--accent) !important; }

/* Basket select bar */
.basket-select-bar {
    padding: 6px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.basket-select-row { display: flex; gap: 6px; align-items: center; }
.basket-select {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--neon);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.basket-select:hover { border-color: var(--neon); }
.basket-select-arrow { font-size: 8px; color: var(--neon); margin-left: 8px; }
.basket-select-list {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    z-index: 10;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--neon-dim);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
}
.basket-select-list .ta-item {
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
}
.basket-select-list .ta-item:hover { background: var(--neon-bg); color: var(--neon); }
.basket-select-list .ta-item.active { color: var(--neon); }

/* Basket card rows */
.basket-card {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid var(--neon-dim);
}
.basket-card:hover { border-left-color: var(--neon); background: var(--neon-bg); }
.basket-card-year { font-weight: 700; font-size: 12px; color: var(--text); margin-right: 4px; }
.basket-card-model { font-size: 11px; color: var(--text-muted); margin-right: 6px; }
.basket-card-part { font-size: 12px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.basket-card-price {
    margin-left: auto;
    font-family: Impact, "Arial Black", sans-serif;
    font-style: italic;
    color: var(--pink);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.basket-card-remove { margin-left: 6px; flex-shrink: 0; }
.basket-card-dealer {
    flex-basis: 100%;
    font-size: 10px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.basket-card-dealer a { color: var(--blue); text-decoration: none; }
.basket-card-dealer a:hover { color: var(--neon); }
.basket-card-feedback {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.basket-card-feedback .fb-label { font-size: 10px; color: var(--text-muted); margin-right: 2px; }
.fb-btn {
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.4;
}
.fb-btn:hover { border-color: var(--text-muted); color: var(--text); }
.fb-up.active { border-color: var(--neon); color: var(--neon); background: var(--neon-bg); }
.fb-down.active { border-color: var(--pink); color: var(--pink); }

/* Modal */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90vw;
    max-width: 850px;
    height: 80vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 101;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
}

#imgModal { z-index: 110; }
.modal-close:hover { background: var(--accent-light); }

.modal-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.site-footer { position: fixed; bottom: 0; left: 0; right: 0; text-align: center; padding: 3px 0; font-size: 11px; line-height: 1; color: var(--text-muted); background: var(--bg); z-index: 50; }
.site-footer a { color: var(--blue-dim); text-decoration: none; }
.site-footer a:hover { color: var(--neon); }

.paged-out { display: none !important; }

.mobile-sort { display: none; }

.results-table th.sortable { cursor: pointer; user-select: none; }
.results-table th.sortable:hover { color: #fff; }
.results-table th .sort-arrow { font-size: 9px; margin-left: 3px; opacity: 0.4; }
.results-table th.sort-asc .sort-arrow,
.results-table th.sort-desc .sort-arrow { opacity: 1; }

/* Pagination */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 20px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.pagination-controls { display: flex; align-items: center; gap: 4px; }

.pagination-controls button {
    padding: 6px 18px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 12px;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: box-shadow 0.2s, transform 0.1s;
}

.pagination-controls button:hover { box-shadow: 0 0 20px rgba(255,68,0,0.4); transform: scale(1.02); }
.pagination-controls button:active { transform: scale(0.98); }
.pagination-controls button:disabled { opacity: 0.3; cursor: default; box-shadow: none; transform: none; }
.pagination-controls button:disabled:hover { box-shadow: none; transform: none; }

.page-size select {
    padding: 3px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 11px;
}

/* Badges */

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grade-a { background: rgba(34,255,68,0.12); color: var(--neon); text-shadow: 0 0 6px var(--neon-glow); }
.grade-b { background: rgba(255,45,138,0.12); color: var(--pink); }
.grade-c { background: rgba(204,34,0,0.12); color: var(--red); }
.grade-na { background: var(--surface-2); color: var(--text-muted); }
.badge-youpull { background: rgba(0,170,255,0.15); color: #00aaff; border: 1px solid rgba(0,170,255,0.3); }

/* States */

.browse-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.browse-label {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 16px;
    font-style: italic;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.browse-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mobile browse prompt (hidden on desktop) */

.mobile-browse-prompt { display: none; }

/* States */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.seo-copy { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.parts-intro {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--accent);
}
.parts-intro h2 {
    font-family: Impact, "Arial Black", sans-serif;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 16px;
    color: var(--text);
    margin: 0 0 6px;
}
.parts-intro p { margin: 6px 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }

.avail-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.avail-high { background: var(--neon-bg); color: var(--neon); border-color: var(--neon-dim); }

/* ============ VIEW TOGGLE + GALLERY ============ */
.view-toggle {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    padding: 6px 12px;
}
.vt-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
}
.vt-btn.active { border-color: var(--accent); color: var(--text); background: var(--neon-bg); }

/* Gallery is the default view; <html>.view-table opts into the table.
   Driven by a persistent class so htmx swaps never flash the wrong view. */
html.view-table #gallery { display: none; }
html:not(.view-table) #tableScroll,
html:not(.view-table) .mobile-sort { display: none; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    padding: 12px;
}
.gallery-empty { padding: 40px; text-align: center; color: var(--text-muted); }
.gallery-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel, #16161c);
    display: flex;
    flex-direction: column;
}
.gallery-card:hover { border-color: var(--neon-dim); }
.gallery-media { aspect-ratio: 4 / 3; background: #0e0e12; overflow: hidden; position: relative; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }

/* inline image carousel */
.gc-carousel { position: relative; width: 100%; height: 100%; }
.gc-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.gc-track::-webkit-scrollbar { display: none; }
.gc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.gc-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    z-index: 2;
}
.gc-prev { left: 0; }
.gc-next { right: 0; }
.gc-carousel.multi .gc-nav { display: flex; }
.gc-carousel.multi:hover .gc-nav { opacity: 0.9; }
.gc-nav:hover { background: rgba(0,0,0,0.3); }
.gc-count {
    position: absolute;
    bottom: 6px;
    right: 8px;
    display: none;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 1px 7px;
    border-radius: 10px;
    z-index: 2;
}
.gc-carousel.multi .gc-count { display: block; }
@media (max-width: 768px) {
    /* mobile navigates by swiping the snap track; hide the click arrows */
    .gc-nav { display: none !important; }
}
.gallery-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    background: repeating-linear-gradient(45deg, #121218, #121218 10px, #16161e 10px, #16161e 20px);
}
.gallery-noimg svg { width: 38px; height: 38px; opacity: 0.5; }
.gallery-noimg span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.gallery-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gallery-title { font-weight: 700; font-size: 12px; color: var(--text); }
.gallery-part { font-size: 13px; font-weight: 700; color: #fff; }
.gallery-dealer { font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-dealer a { color: var(--blue); text-decoration: none; }
.gallery-dealer a:hover { color: var(--neon); }
.gallery-via { color: var(--text-muted); opacity: 0.7; }
.gallery-loc { font-size: 10px; color: var(--text-muted); }
.gallery-sub { font-size: 10px; color: var(--text-muted); }
.gallery-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.gallery-price { font-family: Impact, "Arial Black", sans-serif; font-style: italic; color: var(--pink); font-size: 14px; }
.gallery-add {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.gallery-add.in-basket { background: transparent; color: var(--neon); border-color: var(--neon); }
.avail-mid { background: rgba(245, 179, 1, 0.12); color: #f5b301; border-color: rgba(245, 179, 1, 0.35); }
.avail-low { background: rgba(255, 60, 120, 0.1); color: var(--pink); border-color: rgba(255, 60, 120, 0.3); }

.popular-searches { margin-top: 20px; }
.popular-searches h3 {
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 11px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.popular-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.popular-links a {
    padding: 3px 10px;
    font-size: 11px;
    color: var(--blue);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
}
.popular-links a:hover { border-color: var(--neon); color: var(--neon); }

.parts-search-link {
    font-size: 11px;
    color: var(--blue);
    text-decoration: none;
}
.parts-search-link:hover { color: var(--neon); }
.parts-summary {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.about-content {
    padding: 24px 32px;
    line-height: 1.7;
    color: var(--text);
    font-size: 14px;
}
.about-content h2 {
    font-family: Impact, "Arial Black", sans-serif;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    font-size: 14px;
    margin: 28px 0 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin: 8px 0; color: var(--text-muted); }
.about-content ol {
    margin: 8px 0;
    padding-left: 20px;
    color: var(--text-muted);
}
.about-content ol li { margin: 6px 0; }
.about-content strong { color: var(--text); }
.about-content a { color: var(--blue); text-decoration: none; }
.about-content a:hover { color: var(--neon); }
.about-cta {
    text-align: center;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.about-cta a {
    display: inline-block;
    padding: 8px 32px;
    background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
    border: 1px solid #ff4400;
    border-radius: var(--radius);
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    text-decoration: none;
    box-shadow: 0 0 12px var(--accent-glow);
}
.about-cta a:hover {
    box-shadow: 0 0 20px rgba(255,68,0,0.4), 0 0 40px rgba(34,255,68,0.12);
    color: #fff;
}

.error-box {
    background: rgba(204,34,0,0.1);
    border: 1px solid rgba(204,34,0,0.3);
    border-left: 3px solid var(--red);
    padding: 12px 16px;
    color: var(--red);
    font-size: 13px;
}

.no-results { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.no-results strong { color: var(--text); }
.hint { font-size: 12px; color: var(--text-muted); }

/* ============ MOBILE ============ */

@media (max-width: 768px) {
    body { -webkit-text-size-adjust: 100%; }

    header {
        padding: 6px 10px 4px;
        position: sticky;
        top: 0;
        z-index: 30;
    }

    .logo-text { font-size: 22px; letter-spacing: 2px; }
    .logo-badge { font-size: 8px; padding: 1px 3px; }
    .tagline { font-size: 7px; letter-spacing: 3px; }
    .speed-lines::before, .speed-lines::after { width: 40px; }

    main { padding: 4px 6px; }

    .panel-header { padding: 4px 8px; }
    .panel-title { font-size: 11px; }

    .panel-search {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3px;
        padding: 4px 6px;
    }

    .search-field { grid-column: 1 / -1; }
    .search-field.narrow { grid-column: auto; flex: none; width: auto; }

    .search-field input,
    .search-field select {
        padding: 4px 6px;
        font-size: 13px;
        border-radius: 3px;
        height: 28px;
    }

    .search-field label { font-size: 8px; margin-bottom: 0; }

    .search-btn {
        grid-column: 1 / 3;
        width: 100%;
        padding: 0;
        font-size: 10px;
        letter-spacing: 2px;
        border-radius: 3px;
        height: 28px;
        box-shadow: none;
    }
    .basket-btn {
        grid-column: 3;
        width: 100%;
        padding: 0;
        font-size: 10px;
        letter-spacing: 1px;
        border-radius: 3px;
        height: 28px;
        box-shadow: none;
    }

    /* Typeahead: touch targets */
    .ta-list { max-height: 50vh; -webkit-overflow-scrolling: touch; }
    .ta-item { padding: 8px 10px; font-size: 13px; min-height: 36px; display: flex; align-items: center; }

    /* Filter bar: 3-col grid on mobile */
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr auto auto;
        gap: 3px;
        padding: 4px 6px;
    }
    .filter-bar > #ft { grid-column: 1 / -1; }
    .filter-bar > .filter-ta#ta-fd { grid-column: 1 / -1; }
    .filter-bar > .filter-ta#ta-fprov { grid-column: 1 / -1; }
    .filter-check { font-size: 10px; }

    .filter-bar input:not([type="range"]):not([type="checkbox"]), .filter-bar select {
        width: 100%;
        padding: 4px 6px;
        font-size: 12px;
        min-height: 28px;
        border-radius: 3px;
    }

    .filter-ta-sm { flex: none; }
    .filter-ta { flex: none; width: 100%; }
    .filter-ta input { padding: 4px 6px; font-size: 12px; }
    .filter-ta .ta-list { max-height: 40vh; }
    .filter-ta .ta-item { padding: 8px 10px; font-size: 13px; min-height: 36px; }

    .year-range {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        padding: 2px 0;
        margin-bottom: 0;
        gap: 6px;
    }
    .yr-label { margin-bottom: 0; font-size: 10px; min-width: auto; }
    .yr-slider {
        height: 24px;
        margin: 0 10px;
    }
    .yr-slider input[type="range"] { height: 24px; }
    .yr-slider input[type="range"]::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
        margin-top: -6px;
    }
    .yr-slider input[type="range"]::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
    .yr-slider::before { top: 10px; height: 4px; }
    .yr-track { top: 10px; height: 4px; }
    .yr-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; }
    .yr-slider input[type="range"]::-moz-range-track { height: 4px; }

    .filter-count { text-align: center; grid-column: 1 / -1; font-size: 11px; }

    /* ---- TABLE TO CARDS ---- */

    .results-table { display: block; overflow: visible; }
    .results-table thead { display: none; }
    .results-table tbody { display: flex; flex-direction: column; gap: 2px; }

    .results-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        padding: 5px 8px;
        border-bottom: 1px solid var(--border);
        border-left: 2px solid var(--neon-dim);
        background: var(--surface);
    }

    .results-table tr:hover {
        border-left-color: var(--neon);
        background: var(--neon-bg);
    }

    .results-table td {
        display: inline;
        padding: 0;
        border: none;
        white-space: nowrap;
        max-width: none;
        width: auto;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Line 1: Year Part ........... Price Add */
    .c-year { font-weight: 700; font-size: 11px; color: var(--text); margin-right: 4px; }
    .c-year::after { content: ''; }
    .c-model { font-size: 11px; color: var(--text-muted); margin-right: 4px; }
    .c-part { font-size: 11px; font-weight: 700; color: #fff; }
    .c-part::after { content: ''; }
    .c-photo { display: inline !important; margin-left: 4px; flex-shrink: 0; }
    .c-photo a { font-size: 12px; padding: 0; border: none; }
    .c-photo .photo-icon { width: 14px; height: 14px; }
    .c-photo .listing-thumb { width: 28px; height: 20px; }
    .c-grade { display: none !important; }
    .c-price {
        display: inline !important;
        font-size: 11px;
        order: 2;
    }
    .c-compat { display: inline !important; margin-left: auto; margin-right: 2px; order: 1; }
    .c-compat .compat-check { font-size: 12px; position: relative; }
    .c-compat .compat-check::after {
        content: attr(title);
        display: none;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 11px;
        font-weight: 400;
        font-style: normal;
        padding: 4px 8px;
        border-radius: 4px;
        white-space: nowrap;
        z-index: 20;
        pointer-events: none;
    }
    .c-compat .compat-check:active::after { display: block; }
    .c-basket {
        overflow: visible;
        margin-left: 6px;
        order: 3;
    }
    .basket-add-btn { font-size: 8px; padding: 2px 6px; }

    /* Line 2: Dealer · Location · Age */
    .c-dealer {
        flex-basis: 100%;
        display: block !important;
        font-size: 10px;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .source-via { display: inline; margin-left: 4px; font-size: 9px; }
    .c-loc { display: inline !important; font-size: 10px; color: var(--text-muted); }
    .c-loc::before { content: ' \00b7 '; }
    .c-age { font-size: 10px; color: var(--text-muted); }
    .c-age::before { content: ' \00b7 '; }

    .c-desc { display: none !important; }
    .c-stock, .c-miles { display: none !important; }

    .mobile-browse-prompt {
        display: block;
        text-align: center;
        padding: 12px 10px;
    }

    .mbp-count {
        font-family: Impact, "Arial Black", sans-serif;
        font-size: 13px;
        font-style: italic;
        color: var(--accent-light);
        margin-bottom: 6px;
    }

    .mbp-btn {
        padding: 0 20px;
        height: 28px;
        background: linear-gradient(180deg, #ff5500 0%, #cc2200 100%);
        border: 1px solid #ff4400;
        border-radius: 3px;
        color: #fff;
        font-family: Impact, "Arial Black", sans-serif;
        font-size: 10px;
        font-style: italic;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: none;
        margin-bottom: 6px;
    }

    .mbp-hint {
        font-size: 11px;
        color: var(--text-muted);
    }

    .browse-initial { display: none; }

    .mobile-sort {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-sort label {
        font-size: 11px;
        color: var(--text-muted);
        white-space: nowrap;
    }

    .mobile-sort .filter-ta { flex: 1; }
    .mobile-sort .filter-ta-sm { flex: 0 1 120px; }
    .mobile-sort .filter-ta input {
        padding: 6px 8px;
        font-size: 13px;
        min-height: 32px;
    }


    /* Pagination */
    .pagination {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
    }
    .pagination-controls button {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 40px;
    }

    /* Crawl status */
    .status-info { font-size: 13px; }
    .status-note { font-size: 12px; }
}

@media (max-width: 375px) {
    main { padding: 6px; }
    .search-bar { padding: 8px; gap: 5px; }
    .logo-text { font-size: 24px; letter-spacing: 2px; }
    .c-price { font-size: 16px; }
}
