:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-text: #10121b;
    --color-bg: #f6f7fb;
    --color-card: #ffffff;
    --primary: #2563eb;
    --accent: #7c3aed;
    --muted: #6f7492;
    --radius: 1rem;
    --small-radius: 0.75rem;
    --container-max: 1180px;
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
    --padding-card: 1.5rem;
    --gap-grid: 1.5rem;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
}

body.no-scroll {
    overflow: hidden;
}

main.container {
    overflow-x: hidden;
}

/* Dark theme variables */
:root[data-theme='dark'] {
    --color-bg: #0b1220;
    --color-card: #0f1724;
    --color-text: #e6eef8;
    --muted: #9aa6bd;
    --primary: #60a5fa;
    --accent: #a78bfa;
}

.container {
    width: min(var(--container-max), 90vw);
    margin: 0 auto;
    padding: 1.25rem 0;
}

.site-header,
.site-footer {
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.site-footer {
    margin-top: 2rem;
}

.site-header .container,
.site-footer .container {
    padding: 0.75rem 0;
}

/* Logo image in header/footer */
.logo img {
    display: inline-block;
    vertical-align: middle;
    border-radius: 6px;
}

.logo span {
    font-weight: 700;
}

.flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.between {
    justify-content: space-between;
}

.center {
    text-align: center;
}

.logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.2rem;
}

.logo span {
    color: var(--primary);
}

.nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #374151;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.site-nav.open {
    display: block;
}

.btn {
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: var(--small-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform .12s ease, box-shadow .12s ease;
    font-weight: 600;
    min-height: 44px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.btn-outline {
    border: 1px solid rgba(37, 99, 235, 0.5);
    color: #2563eb;
    background: transparent;
}

.btn.small,
.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn.small {
    min-height: 42px;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 1.5rem 0 0;
    align-items: stretch;
    margin-bottom: 1rem;
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card .hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-stats li {
    flex: 1 1 100px;
}

.hero-stats strong {
    font-size: 1.5rem;
    display: block;
}

.lookup-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.lookup-card form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.lookup-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.lookup-input .btn {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .lookup-input {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .lookup-input .form-input {
        width: 100%;
    }

    .lookup-input .btn {
        width: 100%;
    }
}

.lookup-card input {
    flex: 1;
}

.lookup-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

.lookup-inline .form-label {
    margin-bottom: 0;
}

.lookup-inline__action {
    display: flex;
    align-items: flex-end;
}

.lookup-inline__action .btn {
    width: 100%;
}

@media (max-width: 640px) {
    .lookup-inline {
        grid-template-columns: 1fr;
    }
}

.lookup-result {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.lookup-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.lookup-meta {
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.lookup-grid article {
    background: rgba(37, 99, 235, 0.05);
    padding: 0.85rem;
    border-radius: var(--small-radius);
}

.lookup-grid span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.lookup-grid strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
    word-break: break-word;
}

.lookup-error {
    color: #b91c1c;
    margin-top: 0.5rem;
}

.lookup-status {
    margin: 0.25rem 0 0;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--small-radius);
    margin: 1rem 0;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #b91c1c;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #047857;
}

.card {
    background: var(--color-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

main.container > section + section {
    margin-top: 2.5rem;
}

/* Hero specifics */
.hero-card h1 {
    font-size: 1.9rem;
    margin: 0.25rem 0 0.5rem;
}
.hero-card p {
    color: var(--muted);
}

.hero-card .badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-card .hero-actions .btn-primary {
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
}

/* Hamburger animation */
.nav-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}
.nav-toggle .line {
    transition: transform .18s ease, opacity .12s ease;
    transform-origin: center;
}
.nav-toggle.active .line1 { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active .line2 { opacity: 0; }
.nav-toggle.active .line3 { transform: translateY(-6px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--small-radius);
    border: 1px solid #d4d7e5;
    background: var(--color-card);
    color: var(--color-text);
    box-sizing: border-box;
    font-size: 0.95rem;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--small-radius);
    border: 1px solid #d4d7e5;
    background: var(--color-card);
    color: var(--color-text);
    box-sizing: border-box;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
}

.radio-pill {
    border: 1px solid #d4d7e5;
    border-radius: var(--small-radius);
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: var(--color-card);
    min-height: 52px;
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    text-align: left;
}

.radio-pill input {
    margin: 0;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.radio-pill span {
    line-height: 1.3;
    flex: 1;
    display: block;
    font-weight: 600;
    word-break: break-word;
    text-align: left;
}

.ai-generator {
    border: 1px dashed rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.05);
    padding: 1rem;
    border-radius: var(--small-radius);
}

.ai-ack {
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.3;
}

.upload-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upload-summary {
    background: var(--color-card);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    border-radius: var(--small-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 120px));
    justify-content: flex-start;
    gap: 0.5rem;
}

.upload-preview__item {
    background: var(--color-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--small-radius);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    max-width: 120px;
}

.upload-preview__thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--tiny-radius);
}

.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.upload-overlay[hidden] {
    display: none !important;
}

.upload-overlay__box {
    background: #fff;
    color: #0f172a;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    width: min(420px, 90vw);
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
}

.upload-overlay__title {
    font-weight: 700;
    margin: 0;
}

.upload-progress {
    width: 100%;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.upload-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    width: 0;
    transition: width 0.25s ease;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.form-progress {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}

.form-progress__status {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-progress__count {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-progress__label {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.form-progress__track {
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    margin: 0.75rem 0;
    overflow: hidden;
}

.form-progress__value {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    width: 0%;
    transition: width .2s ease;
}

.form-progress__dots {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.form-progress__dot {
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: transparent;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    padding: 0;
}

.form-progress__dot span {
    pointer-events: none;
}

.form-progress__dot.is-active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.form-progress__dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-progress__dot[hidden] {
    display: none;
}

.form-step {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.form-step:last-of-type {
    margin-bottom: 1rem;
}

.form-step + .form-step {
    margin-top: 2rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.form-step .step-title,
.form-step .muted,
.form-step label,
.form-step small {
    line-height: 1.4;
}

.form-step .muted.small {
    padding: 0;
    display: block;
    margin-bottom: 0.65rem;
}

.valuation-panel {
    border: 1px dashed rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.04);
    border-radius: var(--small-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.valuation-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.valuation-panel__eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.valuation-grid article {
    background: #fff;
    border-radius: var(--small-radius);
    padding: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.valuation-grid span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.valuation-grid strong {
    font-size: 1.15rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 0.75rem;
}

.form-grid .form-label {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label.full-width {
    grid-column: 1 / -1;
}

.auction-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 0.75rem;
}

.auction-grid .form-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.auction-fields__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.auction-summary article {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--small-radius);
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.04);
}

.auction-summary span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auction-summary strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1rem;
}

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

    .lookup-card form {
        gap: 1rem;
    }

    .grid.three,
    .grid.four {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .equipment-list {
        columns: 1;
    }

    .form-grid,
    .auction-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-step {
        padding: 1rem;
    }

    .form-progress {
        position: sticky;
        top: 72px;
        z-index: 6;
    }
}

@media (max-width: 900px) {
    .ai-generator .flex {
        flex-direction: column;
        width: 100%;
    }

    .ai-generator .flex .btn {
        width: 100%;
    }
}

.card.highlight {
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.sell-landing .grid .card {
    text-align: center;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
    margin: 2rem 0;
}

.grid.four {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 2rem 0;
}

@media (min-width: 1200px) {
    .grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.detail-gallery__main {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-gallery__main-trigger {
    border: none;
    padding: 0;
    background: transparent;
    display: block;
    width: 100%;
    cursor: pointer;
}

.detail-gallery__main img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.detail-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    max-width: 100%;
}

.detail-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}

.detail-gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.detail-gallery__thumb {
    border: 2px solid transparent;
    border-radius: var(--small-radius);
    padding: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 96px;
    overflow: hidden;
}

.detail-gallery__thumb.is-active {
    border-color: var(--primary);
}

.detail-gallery__thumb img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.gallery-viewer {
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 32, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.gallery-viewer.is-open {
    display: flex;
}

.gallery-viewer img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.gallery-viewer__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

.gallery-viewer__nav {
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.gallery-viewer__counter {
    position: absolute;
    bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.filter-panel {
    margin: 0;
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-grid + .filter-panel {
    margin-top: 3rem;
}

.filter-grid {
    display: grid;
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #111827;
}

.filter-grid select,
.filter-grid input {
    min-height: 54px;
}

.filter-grid .btn {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.auction-fields {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: rgba(124, 58, 237, 0.05);
    padding: 1rem;
    border-radius: var(--small-radius);
    margin-bottom: 1rem;
}

.badge--ghost {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.seller-chip {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.seller-profile .seller-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.contact-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 0.5rem;
}

.equipment-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.equipment-grid .checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--small-radius);
    background: var(--color-card);
}

.equipment-grid .checkbox input {
    flex-shrink: 0;
    margin: 0;
    width: 1rem;
    height: 1rem;
}

.equipment-grid .checkbox span {
    flex: 1;
    white-space: normal;
    word-break: normal;
    line-height: 1.4;
}

@media (min-width: 900px) {
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
}

.equipment-list {
    padding-left: 1.2rem;
    columns: 2;
    column-gap: 1.5rem;
}

.equipment-list li {
    margin-bottom: 0.35rem;
}

.contact-details {
    display: grid;
    gap: 0.5rem;
}

.contact-details div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding-bottom: 0.35rem;
}

.contact-details span {
    font-weight: 600;
}

.contact-details strong {
    font-weight: 500;
}

.conversation-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.conversation-list li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.conversation-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 0;
    text-decoration: none;
    color: inherit;
}

.message-thread .message-feed {
    max-height: 360px;
    overflow-y: auto;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-thread .message {
    padding: 0.75rem 1rem;
    border-radius: var(--small-radius);
    background: rgba(15, 23, 42, 0.05);
}

.message-thread .message--self {
    margin-left: auto;
    background: rgba(37, 99, 235, 0.15);
}

.message-thread .message header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.message-reply textarea {
    width: 100%;
    margin: 0.5rem 0;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
}

.gallery-lightbox__inner img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--small-radius);
    display: block;
}

.gallery-lightbox__close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    border: none;
    background: #ffffff;
    color: #0b1220;
    font-size: 1.5rem;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}
.countdown {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(11, 18, 32, 0.75);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.listing-card {
    position: relative;
}

.detail-head {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.listing-card--auction .price {
    color: var(--accent);
}

.listing-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap-grid);
    margin-bottom: 2rem;
    width: 100%;
}

.detail-layout > * {
    min-width: 0;
}

.detail-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    background: rgba(37, 99, 235, 0.05);
    padding: 1rem;
    border-radius: var(--small-radius);
}

.auction-summary.is-leading {
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.bid-panel form label {
    display: block;
    margin-bottom: 0.75rem;
}

.bid-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vehicle-data dl {
    margin: 0;
}

.vehicle-data dl div {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vehicle-data dt {
    font-weight: 600;
}

.nested-card {
    margin-top: 1.5rem;
}

.lookup-card,
.bid-panel,
.vehicle-data,
.listing-detail {
    position: relative;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .grid.three {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.badge {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.85rem;
}

.muted {
    color: #6f7492;
}

.listing-card img {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    border-radius: 0.9rem;
    margin-bottom: 0.8rem;
    background: #e5e7eb;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
    margin-bottom: 0.8rem;
}

.listing-card {
    display: flex;
    flex-direction: column;
}

.listing-card .title {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.05rem;
}

.listing-card .title a {
    color: var(--color-text);
    text-decoration: none;
}

.listing-card .title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.listing-card .price {
    font-weight: 700;
    color: var(--primary);
    margin: 0.25rem 0;
}

.listing-card .listing-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.photo-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
    margin-bottom: 0.8rem;
}

.stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 180px;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.05);
}

form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #3e425b;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #d4d7e5;
    margin-top: 0.4rem;
    font-size: 1rem;
    background: white;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid #edeff7;
    text-align: left;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    border-radius: 1rem;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Admin Panel Form Styles */
.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--small-radius);
    box-sizing: border-box;
    font-size: 0.95rem;
}

.admin-form .row {
    display: grid;
    gap: var(--gap-grid);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: start;
}

/* Dark mode form adjustments */
:root[data-theme='dark'] .lookup-card input,
:root[data-theme='dark'] .lookup-card select,
:root[data-theme='dark'] .admin-form input,
:root[data-theme='dark'] .admin-form select,
:root[data-theme='dark'] .admin-form textarea {
    background: var(--color-card);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

/* Feature Cards */
.features {
    margin: 4rem 0;
}

.feature-card {
    padding: var(--padding-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.feature-card h3 {
    margin-top: 0;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer layout */
.footer-grid {
    gap: 1.5rem;
    align-items: flex-start;
}

.site-footer h4 {
    margin: 0 0 0.5rem 0;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
    border-color: var(--primary);
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
}

.alert.error {
    background: rgba(248, 113, 113, 0.2);
    color: #b91c1c;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.5rem 0;
}

.checklist .ok {
    color: #15803d;
}

.checklist .error {
    color: #b91c1c;
}

.bid-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bid-list li {
    border-bottom: 1px solid #edeff7;
    padding: 0.75rem 0;
}

.auth-card {
    max-width: 450px;
    margin: 2rem auto;
}

/* Responsive header nav */
@media (max-width: 720px) {
    .site-header .container {
        padding: 0.5rem 0;
        position: relative;
    }
    .nav-toggle {
        display: inline-block;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-top: 1px solid #f1f5f9;
    }
    .site-nav.open {
        display: flex;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header {
    margin: 2rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.section-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.section-header form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.section-header .form-input {
    width: auto;
    min-width: 140px;
    margin: 0;
}

.gap-2 {
    gap: 0.75rem;
}

.tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #312e81;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .mode-options {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    .radio-pill {
        flex: 1 1 220px;
        width: auto;
        min-height: 48px;
    }
}
