/* ============================================================
   Motiyard — tokens
   ============================================================ */
:root {
    --black: #0A0A0A;
    --white: #FFFFFF;
    --red: #C8102E;
    --red-dark: #9B0C23;
    --panel: #F5F5F3;
    --line: #DDDDDD;
    --text-soft: #5A5A5A;
    --radius-sm: 3px;
    --radius-md: 6px;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    letter-spacing: 0.2px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    border-bottom: 1px solid var(--black);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.logo .dot { color: var(--red); }

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

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--red); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #262626; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

@media (max-width: 768px) {
    .btn-sm {
        padding: 9px 18px;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }

    .row-actions {
        gap: 8px;
        flex-wrap: wrap;
    }

    .dash-table th,
    .dash-table td {
        padding: 12px 10px;
    }

    .dash-thumb {
        width: 56px;
        height: 40px;
    }

    .dash-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .btn-sm {
        padding: 10px 20px;
        font-size: 14px;
    }

    .row-actions {
        flex-direction: column;
        gap: 6px;
    }

    .row-actions .btn,
    .row-actions form {
        width: 100%;
    }

    .row-actions .btn {
        text-align: center;
        justify-content: center;
    }

    .dash-table {
        min-width: 400px;
    }

    .dash-thumb {
        width: 48px;
        height: 34px;
    }
}
.btn-block { width: 100%; }
.btn-danger-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger-outline:hover { background: var(--red); color: var(--white); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 72px 0 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero-with-ads {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 24px;
    align-items: start;
}

.hero-ad-side {
    position: sticky;
    top: 96px;
}

.hero-ad-card {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #262626;
    transition: border-color 0.15s ease;
}

.hero-ad-card:hover {
    border-color: var(--red);
}

.hero-ad-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-center {
    min-width: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 18px;
}
.hero h1 .accent { color: var(--red); }

.hero p {
    font-size: 18px;
    color: #C9C9C9;
    max-width: 540px;
    margin-bottom: 36px;
}

/* Search panel */
.search-panel {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 12px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.field select,
.field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--black);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select:focus, .field input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
    outline: none;
}

.search-panel .btn { height: 44px; align-self: end; }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.hero-stats div { border-left: 2px solid var(--red); padding-left: 14px; }
.hero-stats .num { font-family: var(--font-display); font-size: 32px; display: block; }
.hero-stats .label { font-size: 13px; color: #B5B5B5; }

/* Hero visuals strip — continuous scroll */
.hero-visuals {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-top: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
    margin-top: 0;
    height: 180px;
}

.hero-visuals-mobile {
    display: none;
}

.hero-visuals-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation: hero-scroll 40s linear infinite;
}

.hero-visual {
    flex: 0 0 auto;
    width: 280px;
    height: 100%;
    border-right: 3px solid var(--black);
    overflow: hidden;
    position: relative;
}

.hero-visual:last-child { border-right: none; }

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-visual-plate {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.hero-visual-ad {
    position: relative;
}

.hero-visual-ad .hero-visual-plate {
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    padding: 4px 12px;
    bottom: 10px;
}

.hero-leftover-ads {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-visuals-track { animation: none; }
    .split-slider-track { animation: none; }
}

@keyframes hero-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes split-slider-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .hero-visuals { display: none; }
    .hero-visuals-mobile {
        display: block;
        height: 140px;
        border-top: 3px solid var(--black);
        border-bottom: 3px solid var(--black);
        overflow: hidden;
    }
    .hero-visuals-mobile .hero-visual { width: 200px; }
    .hero-leftover-ads {
        display: none;
    }
}

.split-section {
    background: var(--white);
    padding: 32px 0;
}
.split-inner {
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    align-items: center;
    gap: 24px;
}
.split-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.split-col h3 {
    font-size: 22px;
    font-weight: 700;
}
.split-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.split-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.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);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
}
.split-selling .split-steps,
.split-buying .split-steps {
    counter-reset: step;
}
.split-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.split-image img {
    max-width: 100%;
    height: auto;
    filter: grayscale(30%);
}
.split-image-slider {
    display: none;
}
.split-selling .btn-primary,
.split-buying .btn-outline {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .split-section {
        padding: 24px 0;
    }
    .split-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        text-align: center;
    }
    .split-image {
        grid-column: 1 / -1;
        grid-row: 1;
        order: 0;
    }
    .split-buying { grid-column: 1; grid-row: 2; }
    .split-selling { grid-column: 2; grid-row: 2; }
    .split-col {
        gap: 8px;
    }
    .split-col h3 {
        font-size: 18px;
    }
    .split-steps li {
        font-size: 13px;
    }
    .split-steps li::before {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .split-image > img { display: none; }
    .split-image-slider {
        display: block;
        overflow: hidden;
        width: 100%;
        max-width: 280px;
        border-radius: var(--radius-md);
        border: 1px solid var(--line);
    }
    .split-slider-track {
        display: flex;
        width: max-content;
        height: 140px;
        animation: split-slider-scroll 24s linear infinite;
    }
    .split-slider-item {
        flex: 0 0 auto;
        width: 280px;
        height: 100%;
        overflow: hidden;
    }
    .split-slider-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .split-image { display: flex; justify-content: center; }
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ad-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.ad-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ad-meta {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ad-meta strong {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   Section headers
   ============================================================ */
.section { padding: 40px 0; }
.section-alt { background: var(--panel); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--black);
    padding-bottom: 18px;
}
.section-head h2 { font-size: 34px; }
.section-head p { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; }

/* Body-type quick filters */
.type-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.type-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
}
.type-chip:hover { border-color: var(--black); }
.type-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ============================================================
   Listing grid ("lot" cards)
   ============================================================ */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.lot-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lot-card:hover { border-color: var(--black); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }

.lot-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--panel);
    overflow: hidden;
}
.lot-media img { width: 100%; height: 100%; object-fit: cover; }

.lot-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.lot-condition {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
}
.lot-condition.new { background: var(--red); color: var(--white); }

.lot-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.lot-title { font-size: 18px; font-family: var(--font-display); }
.lot-sub { font-size: 12px; color: var(--text-soft); margin-top: -2px; }

.lot-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-soft);
    border-top: 1px solid var(--line);
    padding-top: 8px;
    flex-wrap: wrap;
}
.lot-meta span { display: flex; align-items: center; gap: 4px; }

.lot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.plate {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 3px 12px;
    background: var(--white);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
}
.empty-state h3 { font-size: 26px; margin-bottom: 10px; }
.empty-state p { color: var(--text-soft); margin-bottom: 24px; }

/* ============================================================
   Browse page
   ============================================================ */
.browse-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.browse-head h2 { font-size: 36px; }
.browse-head p { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; }

.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sort-select {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    appearance: auto;
}
.sort-select:focus { border-color: var(--black); }

.gap-8 { gap: 8px; }

/* ============================================================
   Filter panel (browse page aside)
   ============================================================ */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    position: sticky;
    top: 96px;
}

.filter-panel-header {
    background: var(--black);
    color: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: 0.4px;
}

.filter-panel-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-panel-body { padding: 22px 20px 24px; }

.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label.group-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.filter-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--black);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.filter-field:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.filter-field::placeholder { color: #999; }

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

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.filter-clear {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    margin-top: 2px;
}
.filter-clear:hover { color: var(--red); }

/* Browse page mobile */
@media (max-width: 768px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .filter-panel {
        position: static;
        top: auto;
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .filter-panel-header {
        padding: 14px 20px;
        border-radius: 0;
    }
    .filter-panel-body {
        padding: 0;
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-panel-body::-webkit-scrollbar {
        display: none;
    }
    .filter-group {
        flex: 0 0 auto;
        min-width: 160px;
        margin-bottom: 0;
        padding: 16px 18px;
        border-right: 1px solid var(--line);
    }
    .filter-group:last-child {
        border-right: none;
    }
    .filter-group label.group-label {
        font-size: 10px;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    .filter-field {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: var(--radius-sm);
    }
    .range-row {
        flex-direction: column;
        gap: 8px;
    }
    .filter-actions {
        flex-direction: row;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        align-items: center;
    }
    .filter-actions .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .filter-clear {
        margin-top: 0;
        font-size: 12px;
    }
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .browse-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .browse-head h2 { font-size: 28px; }
    .sort-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .results-count { margin-bottom: 0; }
}

@media (max-width: 480px) {
    .browse-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .filter-group {
        min-width: 140px;
        padding: 12px 14px;
    }
    .filter-field {
        padding: 7px 9px;
        font-size: 12px;
    }
}

/* ============================================================
   Results + sort
   ============================================================ */
.form-card {
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 40px;
}
.form-card.wide { max-width: 860px; }

.form-card h1, .form-card h2 { font-size: 32px; margin-bottom: 8px; }
.form-card .sub { color: var(--text-soft); margin-bottom: 28px; font-size: 15px; }

.form-row { margin-bottom: 20px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--black);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--black); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hint { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }

.form-foot { margin-top: 8px; font-size: 14px; color: var(--text-soft); text-align: center; }
.form-foot a { color: var(--red); font-weight: 600; }

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 22px;
    border: 1px solid;
}
.alert-success { background: #F1F8F1; border-color: #B9DEB9; color: #256029; }
.alert-error { background: #FDEDEE; border-color: var(--red); color: var(--red-dark); }

/* File upload dropzone */
.dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}
.dropzone strong { color: var(--black); }

/* ============================================================
   Dashboard
   ============================================================ */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-header h2 {
    font-size: 32px;
    font-family: var(--font-display);
    font-weight: 700;
}

.dash-header p {
    color: var(--text-soft);
    margin-top: 4px;
    font-size: 15px;
}

.dash-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dash-tabs a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    color: var(--text-soft);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.dash-tabs a:hover {
    color: var(--black);
}

.dash-tabs a.active {
    color: var(--black);
    border-bottom-color: var(--red);
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dash-stat:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dash-stat-icon.listings { background: #EAF6EA; color: #256029; }
.dash-stat-icon.active { background: #E3F2FD; color: #1565C0; }
.dash-stat-icon.inquiries { background: #FFF3E0; color: #E65100; }

.dash-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-stat .num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.dash-stat .label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
}

.dash-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.dash-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    padding: 14px 16px;
    border-bottom: 2px solid var(--black);
    font-weight: 600;
    background: #FAFAFA;
}

.dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: middle;
}

.dash-table tr:hover {
    background: #F8F8F8;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-thumb {
    width: 64px;
    height: 46px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.dash-row-title {
    font-weight: 600;
    color: var(--black);
}

.dash-row-sub {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 2px;
}

.inquiry-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.15s ease;
}

.inquiry-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.inquiry-item .meta {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.inquiry-item .meta strong {
    color: var(--black);
}

.inquiry-item .msg {
    margin: 0 0 10px;
    color: #333;
    line-height: 1.6;
}

.inquiry-item .contact {
    font-size: 13px;
    color: var(--text-soft);
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ad-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ad-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.ad-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ad-meta {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ad-meta strong {
    font-size: 14px;
    font-weight: 600;
}

.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dash-stats {
        grid-template-columns: 1fr;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .dash-stat {
        padding: 18px;
    }

    .dash-stat .num {
        font-size: 26px;
    }
}

/* ============================================================
   Listing detail page
   ============================================================ */
.listing-page { padding: 24px 0 64px; }

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}
.back-link:hover { color: var(--black); }

.listing-title {
    font-size: 22px;
    font-weight: 700;
    flex: 1;
    min-width: 200px;
}

.listing-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}
.action-btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.wishlist-btn.active {
    color: var(--red);
    border-color: var(--red);
}
.wishlist-btn.active:hover {
    background: var(--red);
    color: var(--white);
}

.listing-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.listing-gallery-col {
    min-width: 0;
}

.gallery-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow: hidden;
}

.gallery-main {
    aspect-ratio: 16/10;
    background: var(--panel);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 12px 14px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}
.gallery-thumbs img {
    width: 92px; height: 66px; object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    flex-shrink: 0;
    background: var(--white);
}
.gallery-thumbs img.active { border-color: var(--red); }

.listing-status-badges {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-verified {
    background: #EAF6EA;
    color: #256029;
}

.badge-available {
    background: #F0F8FF;
    color: #0052CC;
}

.badge-yard {
    background: #FFF8E6;
    color: #B35900;
}

.listing-heading {
    font-size: 28px;
    margin-top: 20px;
    font-weight: 700;
}

.listing-subtitle {
    color: var(--text-soft);
    margin-top: 6px;
    font-size: 14px;
}

.listing-description {
    margin-top: 28px;
}
.listing-description h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}
.listing-description p {
    color: #333;
    line-height: 1.7;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.spec-item {
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.spec-item:nth-child(5n) {
    border-right: none;
}

.spec-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    margin-bottom: 6px;
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.seller-box {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    background: var(--white);
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.seller-name {
    font-weight: 600;
    font-size: 16px;
}

.seller-meta {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
}

.seller-actions {
    display: flex;
    gap: 10px;
}

.similar-section {
    margin-top: 48px;
}

.similar-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.similar-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.similar-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.similar-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.similar-info {
    padding: 14px;
}

.similar-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.similar-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.listing-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
}

.price-label {
    font-size: 13px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-top: 4px;
}

.lot-id {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 4px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.loan-calculator {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.loan-calculator h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.calc-field label {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 6px;
    font-weight: 600;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--black);
}

.calc-result {
    margin-top: 16px;
    padding: 16px;
    background: var(--panel);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result span {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
}

.calc-result strong {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

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

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-soft);
    line-height: 1;
}

.modal h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
    .listing-sidebar {
        position: static;
        top: auto;
    }
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .listing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Forms
   ============================================================ */

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    z-index: 1000;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 0;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--black);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.mobile-nav-item.active {
    color: var(--red);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .site-footer {
        margin-bottom: 64px;
    }

    .section {
        padding-bottom: 80px;
    }

    .listing-page {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-item {
        font-size: 10px;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
}
.site-footer { background: var(--black); color: #C9C9C9; padding: 56px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer-grid a { display: block; color: #B5B5B5; font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #262626; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: #8A8A8A; }
.footer-logo { font-family: var(--font-display); font-size: 26px; color: var(--white); margin-bottom: 12px; }
.footer-logo .dot { color: var(--red); }

/* ============================================================
   Responsive
   ============================================================ */
/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .site-footer {
        padding: 32px 0 20px;
        margin-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-grid h4 {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .footer-grid a {
        font-size: 12px;
        margin-bottom: 6px;
    }
    .footer-bottom {
        padding-top: 14px;
        font-size: 11px;
    }
    .footer-logo {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .hero { padding: 24px 0 0; }
    .hero h1 { font-size: 40px; margin-bottom: 10px; }
    .hero p { font-size: 15px; margin-bottom: 16px; }
    .hero-eyebrow { font-size: 12px; margin-bottom: 10px; }
    .search-panel { padding: 14px; gap: 10px; }
    .field label { font-size: 11px; margin-bottom: 4px; }
    .field select, .field input { padding: 8px 10px; font-size: 13px; }
    .search-panel .btn { height: 38px; font-size: 13px; }
    .hero-stats { gap: 18px; margin-top: 18px; }
    .hero-stats .num { font-size: 24px; }
    .hero-stats .label { font-size: 12px; }

    .search-panel { grid-template-columns: 1fr 1fr; }
    .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .detail-layout, .browse-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .hero-with-ads {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: center;
        gap: 12px;
    }
    .hero-ad-side { display: none; }
    .stat-cards { grid-template-columns: 1fr; }
    .hero-visuals { height: 160px; }
    .hero-visual { width: 240px; }

    .section { padding: 40px 0; }
    .section-head { margin-bottom: 24px; padding-bottom: 14px; }
    .section-head h2 { font-size: 28px; }
    .type-row { gap: 10px; margin-bottom: 24px; }
    .type-chip { padding: 8px 16px; font-size: 13px; }

    .lot-media { aspect-ratio: 4/3; }
    .lot-number { top: 10px; left: 10px; font-size: 12px; padding: 3px 8px; }
    .lot-condition { top: 10px; right: 10px; font-size: 10px; padding: 3px 8px; }
    .lot-body { padding: 12px; gap: 5px; }
    .lot-title { font-size: 16px; }
    .lot-sub { font-size: 11px; }
    .lot-meta { gap: 8px; font-size: 11px; padding-top: 7px; }
    .lot-footer { padding-top: 7px; }
    .plate { font-size: 18px; padding: 2px 10px; }

    .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }

    .dash-table th,
    .dash-table td {
        padding: 12px 10px;
    }

    .dash-thumb {
        width: 56px;
        height: 40px;
    }

    .dash-table {
        min-width: 500px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
    }

    .admin-table {
        min-width: 700px;
    }

    .filter-panel {
        position: static;
        top: auto;
    }
    .filter-panel-body {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 20px;
    }
    .filter-group {
        margin-bottom: 0;
        padding: 0 10px;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
    }
    .filter-group:nth-child(even) {
        border-right: none;
    }
    .filter-group:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }
    .range-row {
        flex-direction: row;
    }
    .filter-actions {
        flex-direction: row;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
        grid-column: 1 / -1;
    }
    .filter-clear {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero { padding: 16px 0 0; }
    .hero h1 { font-size: 26px; margin-bottom: 6px; }
    .hero p { font-size: 13px; margin-bottom: 10px; }
    .hero-eyebrow { font-size: 10px; margin-bottom: 6px; }
    .search-panel { padding: 10px; gap: 6px; }
    .field label { font-size: 10px; margin-bottom: 2px; }
    .field select, .field input { padding: 6px 8px; font-size: 11px; }
    .search-panel .btn { height: 34px; font-size: 12px; }
    .hero-stats { gap: 10px; margin-top: 10px; flex-wrap: wrap; }
    .hero-stats .num { font-size: 20px; }
    .hero-stats .label { font-size: 10px; }

    .hero h1 { font-size: 26px; }
    .search-panel { grid-template-columns: 1fr 1fr; }
    .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-layout, .browse-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .hero-with-ads {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: center;
        gap: 12px;
    }
    .hero-ad-side { display: none; }
    .stat-cards { grid-template-columns: 1fr; }
    .hero-visuals { height: 120px; }
    .hero-visual { width: 180px; }

    .section { padding: 28px 0; }
    .section-head { margin-bottom: 18px; padding-bottom: 10px; }
    .section-head h2 { font-size: 22px; }
    .type-row { gap: 6px; margin-bottom: 16px; }
    .type-chip { padding: 6px 12px; font-size: 12px; }

    .lot-media { aspect-ratio: 4/3; }
    .lot-number { top: 8px; left: 8px; font-size: 11px; padding: 3px 8px; }
    .lot-condition { top: 8px; right: 8px; font-size: 10px; padding: 3px 7px; }
    .lot-body { padding: 10px; gap: 4px; }
    .lot-title { font-size: 15px; }
    .lot-sub { font-size: 11px; }
    .lot-meta { gap: 6px; font-size: 11px; padding-top: 6px; }
    .lot-footer { padding-top: 6px; }
    .plate { font-size: 18px; padding: 2px 10px; }

    .btn-sm {
        padding: 8px 14px;
        font-size: 12px;
    }

    .row-actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .dash-table th,
    .dash-table td {
        padding: 10px 8px;
    }

    .dash-thumb {
        width: 48px;
        height: 34px;
    }

    .dash-table {
        min-width: 500px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .admin-table {
        min-width: 700px;
    }

    .filter-panel-body {
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    .filter-group {
        flex: 0 0 auto;
        min-width: 150px;
        padding: 14px 16px;
        border-right: 1px solid var(--line);
        border-bottom: none;
    }
    .filter-group:last-child {
        border-right: none;
    }
    .filter-actions {
        flex-direction: row;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        align-items: center;
        gap: 10px;
    }
    .filter-clear {
        margin-top: 0;
        font-size: 12px;
    }

    .site-footer {
        padding: 28px 0 16px;
        margin-top: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    .footer-grid h4 {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .footer-grid a {
        font-size: 11px;
        margin-bottom: 5px;
    }
    .footer-bottom {
        padding-top: 12px;
        font-size: 10px;
    }
    .footer-logo {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .listing-page {
        padding-bottom: 80px;
    }

    .section {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .browse-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .search-panel { grid-template-columns: 1fr; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 24px; }
    .hero { padding: 12px 0 0; }
    .hero h1 { font-size: 22px; margin-bottom: 4px; }
    .hero p { font-size: 12px; margin-bottom: 8px; }
    .hero-eyebrow { font-size: 9px; margin-bottom: 4px; }
    .search-panel { padding: 8px; gap: 6px; }
    .field label { font-size: 9px; margin-bottom: 2px; }
    .field select, .field input { padding: 6px 8px; font-size: 11px; }
    .search-panel .btn { height: 32px; font-size: 11px; }
    .hero-stats { gap: 8px; margin-top: 8px; flex-wrap: wrap; }
    .hero-stats .num { font-size: 18px; }
    .hero-stats .label { font-size: 9px; }

    .section { padding: 24px 0; }
    .section-head { margin-bottom: 16px; padding-bottom: 10px; }
    .section-head h2 { font-size: 20px; }
    .type-row { gap: 6px; margin-bottom: 16px; }
    .type-chip { padding: 6px 12px; font-size: 12px; }

    .lot-media { aspect-ratio: 4/3; }
    .lot-number { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
    .lot-condition { top: 6px; right: 6px; font-size: 9px; padding: 2px 6px; }
    .lot-body { padding: 8px; gap: 3px; }
    .lot-title { font-size: 13px; }
    .lot-sub { font-size: 10px; }
    .lot-meta { gap: 4px; font-size: 10px; padding-top: 5px; }
    .lot-footer { padding-top: 5px; }
    .plate { font-size: 15px; padding: 2px 8px; }
    .btn-dark.btn-sm { padding: 5px 10px; font-size: 10px; }

    .btn-sm {
        padding: 8px 14px;
        font-size: 11px;
    }

    .row-actions {
        gap: 4px;
        flex-wrap: wrap;
    }

    .dash-table th,
    .dash-table td {
        padding: 8px 6px;
    }

    .dash-thumb {
        width: 40px;
        height: 28px;
    }

    .dash-table {
        min-width: 400px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }

    .admin-table {
        min-width: 600px;
    }

    .mobile-nav-item {
        font-size: 9px;
    }

    .mobile-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .mobile-bottom-nav {
        padding: 4px 0;
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }

    .filter-panel-body {
        padding: 0;
    }
    .filter-group {
        min-width: 130px;
        padding: 12px 14px;
    }
    .filter-field {
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* ============================================================
   Dark mode
   ============================================================ */
[data-theme="dark"] {
    --bg: #121212;
    --surface: #1E1E1E;
    --surface-2: #2D2D2D;
    --border: #3A3A3A;
    --text: #E0E0E0;
    --text-soft: #AAAAAA;
    --red: #E8253E;
    --red-dark: #FF4D5E;
    --panel: #1A1A1A;
    --line: #333333;
    --white: #121212;
    --black: #E0E0E0;
}

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .site-header {
    background: var(--surface);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .main-nav a {
    color: var(--text);
}

[data-theme="dark"] .main-nav a:hover {
    border-bottom-color: var(--red);
}

[data-theme="dark"] .btn-outline {
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .btn-ghost {
    color: var(--text);
}

[data-theme="dark"] .btn-ghost:hover {
    color: var(--red);
}

[data-theme="dark"] .btn-dark {
    background: var(--surface-2);
    color: var(--text);
}

[data-theme="dark"] .hero {
    background: #0A0A0A;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .hero-stats .num {
    color: #FFFFFF;
}

[data-theme="dark"] .hero p {
    color: #C9C9C9;
}

[data-theme="dark"] .hero-stats .label {
    color: #B5B5B5;
}

[data-theme="dark"] .hero-ad-card {
    border-color: #333333;
}

[data-theme="dark"] .hero-visuals {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .hero-visual {
    border-right-color: var(--border);
}

[data-theme="dark"] .hero-visuals-mobile {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .split-section {
    background: var(--bg);
}

[data-theme="dark"] .split-steps li::before {
    background: var(--red);
    color: var(--bg);
}

[data-theme="dark"] .split-image-slider {
    border-color: var(--line);
}

[data-theme="dark"] .section-alt {
    background: var(--surface);
}

[data-theme="dark"] .section-head {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .section-head p {
    color: var(--text-soft);
}

[data-theme="dark"] .type-chip {
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .type-chip:hover {
    border-color: var(--text);
}

[data-theme="dark"] .type-chip.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

[data-theme="dark"] .lot-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .lot-card:hover {
    border-color: var(--text);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

[data-theme="dark"] .lot-media {
    background: var(--surface-2);
}

[data-theme="dark"] .lot-condition {
    background: var(--surface-2);
    color: var(--text);
}

[data-theme="dark"] .lot-number {
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .lot-sub {
    color: var(--text-soft);
}

[data-theme="dark"] .lot-meta {
    border-top-color: var(--border);
    color: var(--text-soft);
}

[data-theme="dark"] .plate {
    border-color: var(--text);
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] .empty-state {
    border-color: var(--border);
}

[data-theme="dark"] .empty-state p {
    color: var(--text-soft);
}

[data-theme="dark"] .form-card {
    border-color: var(--border);
    background: var(--surface);
}

[data-theme="dark"] .form-card .sub {
    color: var(--text-soft);
}

[data-theme="dark"] .form-row label {
    color: var(--text);
}

[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row select,
[data-theme="dark"] .form-row textarea {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form-row input:focus,
[data-theme="dark"] .form-row select:focus,
[data-theme="dark"] .form-row textarea:focus {
    border-color: var(--text);
}

[data-theme="dark"] .hint {
    color: var(--text-soft);
}

[data-theme="dark"] .form-foot a {
    color: var(--red);
}

[data-theme="dark"] .alert-success {
    background: #1A2A1A;
    border-color: #2D5A2D;
    color: #7ED47E;
}

[data-theme="dark"] .alert-error {
    background: #2A1A1C;
    border-color: var(--red);
    color: var(--red);
}

[data-theme="dark"] .dropzone {
    border-color: var(--border);
    color: var(--text-soft);
}

[data-theme="dark"] .dropzone strong {
    color: var(--text);
}

[data-theme="dark"] .filter-panel {
    border-color: var(--border);
    background: var(--surface);
}

[data-theme="dark"] .filter-panel-header {
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .filter-field {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .filter-field:focus {
    border-color: var(--text);
}

[data-theme="dark"] .filter-field::placeholder {
    color: #777;
}

[data-theme="dark"] .filter-actions {
    border-top-color: var(--border);
}

[data-theme="dark"] .filter-group label.group-label {
    color: var(--text-soft);
}

[data-theme="dark"] .sort-select {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .dash-stat {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .dash-stat:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .dash-table-wrap {
    border-color: var(--border);
    background: var(--surface);
}

[data-theme="dark"] .dash-table th {
    border-bottom-color: var(--border);
    background: var(--surface-2);
    color: var(--text-soft);
}

[data-theme="dark"] .dash-table td {
    border-bottom-color: var(--border);
}

[data-theme="dark"] .dash-table tr:hover {
    background: var(--surface-2);
}

[data-theme="dark"] .dash-row-title {
    color: var(--text);
}

[data-theme="dark"] .dash-row-sub {
    color: var(--text-soft);
}

[data-theme="dark"] .dash-thumb {
    border-color: var(--border);
}

[data-theme="dark"] .inquiry-item {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .inquiry-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-theme="dark"] .inquiry-item .msg {
    color: var(--text);
}

[data-theme="dark"] .ad-item {
    border-color: var(--border);
    background: var(--surface);
}

[data-theme="dark"] .ad-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .back-link {
    color: var(--text-soft);
}

[data-theme="dark"] .back-link:hover {
    color: var(--text);
}

[data-theme="dark"] .action-btn {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .action-btn:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .gallery-wrapper {
    border-color: var(--border);
}

[data-theme="dark"] .gallery-main {
    background: var(--surface-2);
}

[data-theme="dark"] .gallery-thumbs img {
    border-color: var(--surface);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

[data-theme="dark"] .badge-verified {
    background: #1A2A1A;
    color: #7ED47E;
}

[data-theme="dark"] .badge-available {
    background: #1A2A3A;
    color: #5B9BD5;
}

[data-theme="dark"] .badge-yard {
    background: #2A2210;
    color: #D4A44C;
}

[data-theme="dark"] .listing-description p {
    color: var(--text);
}

[data-theme="dark"] .specs-grid {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .spec-item {
    border-right-color: var(--border);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .spec-value {
    color: var(--text);
}

[data-theme="dark"] .seller-box {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .seller-avatar {
    background: var(--text);
    color: var(--bg);
}

[data-theme="dark"] .similar-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .similar-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .similar-price {
    color: var(--text);
}

[data-theme="dark"] .sidebar-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .sidebar-actions {
    border-top-color: var(--border);
}

[data-theme="dark"] .loan-calculator {
    border-top-color: var(--border);
}

[data-theme="dark"] .calc-field input,
[data-theme="dark"] .calc-field select {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .calc-result {
    background: var(--surface-2);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.7);
}

[data-theme="dark"] .modal {
    background: var(--surface);
}

[data-theme="dark"] .modal-close {
    color: var(--text-soft);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: var(--surface);
    border-top-color: var(--border);
}

[data-theme="dark"] .mobile-nav-item {
    color: var(--text-soft);
}

[data-theme="dark"] .mobile-nav-item:hover,
[data-theme="dark"] .mobile-nav-item:active {
    color: var(--text);
}

[data-theme="dark"] .site-footer {
    background: #0A0A0A;
}

[data-theme="dark"] .footer-grid h4 {
    color: var(--text);
}

[data-theme="dark"] .footer-grid a {
    color: #888888;
}

[data-theme="dark"] .footer-grid a:hover {
    color: var(--text);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #333333;
    color: #777777;
}

[data-theme="dark"] .footer-logo {
    color: var(--text);
}

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--surface-2);
    border-color: var(--text);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Install button */
.install-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.install-btn:hover {
    background: var(--surface-2);
    border-color: var(--text);
}

.install-btn svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
