/* ===========================================================================
   Maple Brothers — Editorial Auction House Design System
   ---------------------------------------------------------------------------
   Aesthetic: motorsport press-kit meets premium auction catalogue.
   Warm paper-toned background, ink-black type, hot brand red, gold-leaf
   accents. Display serif (Fraunces) for headlines, refined grotesque (Geist)
   for body, monospace (JetBrains Mono) for numerics — VIN, prices, lot index.
   Hairline rules. Generous negative space. Editorial tabular numerals.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
    /* Brand — kept identical so existing inline styles still read */
    --brand:        #b4211a;
    --brand-dark:   #7a1610;
    --brand-soft:   rgba(180, 33, 26, 0.08);
    --brand-ink:    #4a0e0a;

    /* Refined CTA — warm amber instead of pure orange, prints better on paper */
    --cta:          #c97a16;
    --cta-dark:     #9c5d10;
    --cta-soft:     rgba(201, 122, 22, 0.10);

    /* Gold — secondary editorial accent for "premium / won / sold" highlights */
    --gold:         #b88b3a;
    --gold-dark:    #856629;
    --gold-soft:    rgba(184, 139, 58, 0.12);

    /* Surfaces — warm catalogue paper */
    --paper:        #f3eee3;     /* primary page bg */
    --paper-deep:   #ebe5d6;     /* alt section bg */
    --bg:           #f3eee3;     /* legacy alias for --paper */
    --bg-soft:      #ebe5d6;     /* legacy alias for --paper-deep */
    --surface:      #fbf9f3;     /* cards */
    --surface-raise:#ffffff;     /* elevated tile inside a card */
    --hero-dark:    #14110a;     /* near-ink for hero / dark sections */
    --hero-overlay: rgba(0, 0, 0, 0.55);

    /* Text — warm ink rather than cold black */
    --ink:          #16130c;
    --ink-soft:     #3a352a;
    --ink-mute:     #6e6657;
    --ink-faint:    #a39a8a;
    --on-dark:      #fbf9f3;
    --on-dark-soft: rgba(251, 249, 243, 0.74);

    /* Lines — warm hairline */
    --border:       #d4cbb6;
    --border-soft:  #e6dfcc;
    --border-dark:  #2a2620;

    /* Semantic */
    --live:         #b4211a;
    --won:          #4a6c3d;
    --info:         #2a5a8a;

    /* Type — Inter is used everywhere for readability. The "display" variable
       points to the same family (with tighter tracking applied per element)
       so headlines/buttons/numerics stay visually consistent with body copy. */
    --font-display: 'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-body:    'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-mono:    'JetBrains Mono', 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;

    /* Rhythm — slightly softer */
    --radius-sm:    3px;
    --radius:       6px;
    --radius-lg:    12px;

    --shadow-card:  0 1px 0 rgba(22, 19, 12, 0.04), 0 10px 30px -16px rgba(22, 19, 12, 0.18);
    --shadow-hover: 0 1px 0 rgba(22, 19, 12, 0.06), 0 24px 48px -22px rgba(22, 19, 12, 0.28);
    --shadow-deep:  0 30px 80px -28px rgba(22, 19, 12, 0.38);

    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ──────────────────────────────────────────────────────────────── */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; box-sizing: border-box; }

html { background: var(--paper); }

body {
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%,   rgba(184, 139, 58, 0.06), transparent 60%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(180, 33, 26, 0.05),  transparent 60%),
        var(--paper);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.55;
    margin: 0;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "ss02", "cv11"; /* Geist stylistic alternates */
}

/* Headings — Inter, ink default. Slightly heavier than the old Fraunces
   weights because sans-serif at light weights looks anaemic. */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: none;
    color: var(--ink);
    letter-spacing: -0.022em;
    line-height: 1.08;
    margin: 0 0 0.55em;
}

h1, .h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.032em;
}
h2, .h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.7rem);
    font-weight: 650;
    letter-spacing: -0.026em;
}
h3, .h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.018em;
}
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }

/* Display variants — huge editorial headlines */
.display-hero {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    font-size: clamp(3.25rem, 9vw, 7.5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    color: var(--on-dark);
}
.display-hero em {
    font-style: italic;
    color: var(--cta);
    font-weight: 600;
}
.display-xl {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.038em;
}

p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; transition: color 180ms; }
a:hover { color: var(--brand-dark); }

/* Eyebrow — small caps tracker in mono */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--brand);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}
.eyebrow--bare::before { display: none; }
.eyebrow--ink     { color: var(--ink-mute); }
.eyebrow--gold    { color: var(--gold); }
.eyebrow--on-dark { color: var(--on-dark-soft); }

/* Numeric / tabular — switches to mono for ledger feel */
.numeric {
    font-family: var(--font-mono);
    font-feature-settings: "tnum", "zero";
    letter-spacing: -0.01em;
}

/* Hairlines */
.hairline      { height: 1px; background: var(--brand); width: 56px; margin: 1.25rem 0; }
.hairline-full { height: 1px; background: var(--border); }
.hairline-gold { height: 1px; background: var(--gold); width: 56px; margin: 1.25rem 0; }

/* Index label — used to mark catalogue items: "N° 042 / 200" */
.index-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-transform: uppercase;
}
.index-label strong { color: var(--ink); font-weight: 600; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.65rem;
    font-family: var(--font-body);
    font-weight: 550;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 200ms var(--ease-out), color 200ms var(--ease-out),
                border-color 200ms var(--ease-out), transform 180ms var(--ease-out),
                box-shadow 220ms var(--ease-out);
    line-height: 1;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; flex-shrink: 0; }

/* Primary — brand red, refined */
.btn-primary {
    background: var(--brand);
    color: var(--on-dark);
    border-color: var(--brand);
}
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--on-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(180, 33, 26, 0.55);
}

.btn-brand { background: var(--brand); color: var(--on-dark); border-color: var(--brand); }
.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--on-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(180, 33, 26, 0.55);
}

/* Amber CTA — gold-leaf feel */
.btn-orange {
    background: var(--cta);
    color: var(--on-dark);
    border-color: var(--cta);
}
.btn-orange:hover {
    background: var(--cta-dark);
    border-color: var(--cta-dark);
    color: var(--on-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(201, 122, 22, 0.55);
}

/* Gold — premium / catalogue accent */
.btn-gold {
    background: var(--gold);
    color: var(--on-dark);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(184, 139, 58, 0.55);
}

/* Ghost — hairline outline */
.btn-ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: var(--on-dark); transform: translateY(-1px); }

.btn-ghost-light {
    background: transparent;
    color: var(--on-dark);
    border: 1px solid rgba(251, 249, 243, 0.7);
}
.btn-ghost-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Ghost ink — for paper backgrounds */
.btn-ink {
    background: var(--ink);
    color: var(--on-dark);
    border-color: var(--ink);
}
.btn-ink:hover {
    background: #000;
    color: var(--on-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(22, 19, 12, 0.55);
}

.btn-ghost-ink {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.btn-ghost-ink:hover {
    background: var(--ink);
    color: var(--on-dark);
    transform: translateY(-1px);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; letter-spacing: 0.05em; }
.btn-xs { padding: 0.45rem 0.95rem; font-size: 0.72rem; letter-spacing: 0.08em; }

/* Inline icon-only arrow */
.btn-arrow { position: relative; padding-right: 2.5rem; }
.btn-arrow::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    transition: transform 220ms var(--ease-out);
    font-family: var(--font-mono);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Tabular link (used in nav, listings) */
.tabular-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    transition: color 180ms;
}
.tabular-link:hover { color: var(--brand); }

/* ── Forms ─────────────────────────────────────────────────────────────── */

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="datetime-local"],
input[type="date"], input[type="search"],
select, textarea {
    width: 100%;
    background: var(--surface-raise);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
    padding: 0.78rem 1rem;
    transition: border-color 180ms, box-shadow 180ms, background 180ms;
    line-height: 1.4;
}
input[type="number"], input[type="tel"], input[type="datetime-local"], input[type="date"] {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 19, 12, 0.08);
}
label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--ink-mute);
    display: block;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.form-required::after { content: ' *'; color: var(--brand); }

/* ── Lot bid panel frame — card chrome only on desktop, bare on mobile ── */
/* On phones the bid actions live in the sticky bottom bar + modal, so the
   surviving inline content (title, status banner, timer) should read as
   ordinary page text — no border, no shadow, no "page within a page" feel. */
.lot-bid-frame {
    transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out), border-color 280ms;
}
@media (min-width: 1024px) {
    .lot-bid-frame {
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius);
        box-shadow: var(--shadow-card);
    }
}

/* ── Cards — dossier style ─────────────────────────────────────────────── */

.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out), border-color 280ms;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--border); }

/* Catalogue dossier card — heavier ink card for headline pieces */
.dossier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.dossier::before {
    content: '';
    position: absolute;
    top: 0; left: 1.75rem; right: 1.75rem;
    height: 2px;
    background: var(--ink);
    transform-origin: left;
}
.dossier--brand::before { background: var(--brand); }
.dossier--gold::before  { background: var(--gold); }
.dossier:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Vehicle/auction card */
.vehicle-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 320ms var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.vehicle-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--ink);
    color: inherit;
}
.vehicle-card .image-wrap {
    aspect-ratio: 4 / 3;
    background: var(--paper-deep);
    overflow: hidden;
    position: relative;
}
.vehicle-card .image-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(22, 19, 12, 0.08));
    pointer-events: none;
}
.vehicle-card .image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 700ms var(--ease-expo);
}
.vehicle-card:hover .image-wrap img { transform: scale(1.06); }
.vehicle-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.vehicle-card .title {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 36, "SOFT" 25;
    font-weight: 480;
    text-transform: none;
    font-size: 1.3rem;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 0.5rem 0 0.4rem;
}
.vehicle-card:hover .title { color: var(--brand); }
.vehicle-card .lot-num {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--on-dark);
    background: rgba(22, 19, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.32rem 0.6rem;
    border-radius: 2px;
}

/* Pills/badges */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 2px;
    line-height: 1;
}
.pill-live    { background: var(--brand); color: var(--on-dark); }
.pill-soon    { background: var(--cta); color: var(--on-dark); }
.pill-closed  { background: var(--paper-deep); color: var(--ink-mute); border: 1px solid var(--border); }
.pill-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.pill-gold    { background: var(--gold); color: var(--on-dark); }

/* Live ribbon (top-left of cards) */
.ribbon-live {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--brand);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    z-index: 2;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(180, 33, 26, 0.35);
}
.ribbon-live::before {
    content: '';
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 0 currentColor;
    animation: live-pulse 1.5s ease-in-out infinite;
}

/* Live pulse dot */
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180, 33, 26, 0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(180, 33, 26, 0); }
}
.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: live-pulse 1.5s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ── Hero — dark editorial pane ─────────────────────────────────────────── */

.hero {
    background-color: var(--hero-dark);
    background-image: var(--hero-bg-url, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 17, 10, 0.55) 0%, rgba(20, 17, 10, 0.92) 100%),
        radial-gradient(ellipse at 75% 25%, rgba(184, 139, 58, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 80%, rgba(180, 33, 26, 0.20) 0%, transparent 55%);
    z-index: 1;
}
.hero::after {
    /* Hairline grain — barely visible texture */
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image:
        repeating-linear-gradient(0deg,   rgba(255,255,255,0.02) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg,  rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
}

/* Home hero — even stronger overlay for legibility over photo */
.hero-home::before {
    background:
        linear-gradient(180deg, rgba(20, 17, 10, 0.50) 0%, rgba(20, 17, 10, 0.82) 60%, rgba(10, 8, 4, 0.96) 100%),
        radial-gradient(ellipse at 78% 22%, rgba(184, 139, 58, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse at 12% 78%, rgba(180, 33, 26, 0.18) 0%, transparent 55%);
}

.hero > * { position: relative; z-index: 2; }
.hero h1, .hero .h1 { color: var(--on-dark); }

/* Editorial corner marks — used on hero corners */
.corner-marks { position: absolute; inset: 1.5rem; z-index: 3; pointer-events: none; }
.corner-marks::before,
.corner-marks::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid rgba(251, 249, 243, 0.45);
}
.corner-marks::before { top: 0;    left: 0;    border-right: 0; border-bottom: 0; }
.corner-marks::after  { bottom: 0; right: 0;   border-left: 0;  border-top: 0; }

/* ── Section spacing ───────────────────────────────────────────────────── */

.section { padding: clamp(3.5rem, 6.5vw, 6.5rem) 0; }
.section-alt { background: var(--paper-deep); }
.section-ink {
    background: var(--ink);
    color: var(--on-dark);
}
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--on-dark); }

/* Section header — eyebrow + serif title + hairline */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.25rem;
}
.section-head__title { margin: 0.4rem 0 0; }
.section-head__count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Announcement marquee — refined ribbon ─────────────────────────────── */

.marquee-bar {
    background: var(--ink);
    color: var(--on-dark);
    overflow: hidden;
    border-bottom: 1px solid rgba(184, 139, 58, 0.35);
    position: relative;
}
.marquee-bar::before,
.marquee-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-bar::before { left: 0;  background: linear-gradient(90deg, var(--ink) 0%, transparent 100%); }
.marquee-bar::after  { right: 0; background: linear-gradient(270deg, var(--ink) 0%, transparent 100%); }

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    padding: 0.6rem 0;
    white-space: nowrap;
    animation: marquee-scroll 50s linear infinite;
    will-change: transform;
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--on-dark);
}
.marquee-sep {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

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

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ── Top utility / contact bar ─────────────────────────────────────────── */

.utility-bar {
    background: var(--ink);
    color: var(--on-dark);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(184, 139, 58, 0.18);
}
.utility-bar a { color: var(--on-dark-soft); transition: color 180ms; }
.utility-bar a:hover { color: var(--gold); }

/* ── Header / nav — editorial masthead ────────────────────────────────── */

.site-header {
    background: rgba(243, 238, 227, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 0.55rem 0.85rem;
    transition: color 180ms;
    text-decoration: none;
    position: relative;
}
.site-header .nav-link:hover { color: var(--ink); }
.site-header .nav-link.active { color: var(--ink); }
.site-header .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.85rem; right: 0.85rem; bottom: -1px;
    height: 2px;
    background: var(--brand);
}

/* Wordmark — display serif + brand red accent */
.wordmark {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 0;
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: -0.022em;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
}
.wordmark .accent { color: var(--brand); font-style: italic; font-variation-settings: "opsz" 36, "SOFT" 100, "WONK" 1; }

/* ── Footer — editorial colophon ──────────────────────────────────────── */

.site-footer {
    background: var(--ink);
    color: var(--on-dark-soft);
    padding: 4.5rem 0 1.75rem;
    margin-top: 5rem;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--brand) 50%, var(--gold) 75%, transparent);
}
.site-footer h4 {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(184, 139, 58, 0.2);
}
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark .accent { color: var(--gold); }
.site-footer a { color: var(--on-dark-soft); transition: color 180ms; }
.site-footer a:hover { color: var(--gold); }
.footer-legal {
    border-top: 1px solid rgba(184, 139, 58, 0.18);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: rgba(251, 249, 243, 0.55);
}

/* ── Spec list (vehicle details) — ledger style ───────────────────────── */

.spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: baseline;
    gap: 1rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}
.spec-row dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: 1rem;
}

/* ── Tables (admin) ────────────────────────────────────────────────────── */

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--bg-soft);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--brand);
}
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-soft); color: var(--ink-soft); }
.admin-table tr:hover td { background: var(--bg-soft); }

/* ── Prose for legal/about ─────────────────────────────────────────────── */

.prose {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 70ch;
}
.prose h2 { color: var(--brand); margin: 3rem 0 1rem; font-size: 2rem; }
.prose h3 { color: var(--ink); margin: 2rem 0 0.75rem; font-size: 1.5rem; }
.prose p { margin: 1.1rem 0; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.5rem; margin: 0.4rem 0; }
.prose ul li::before { content: '▸'; position: absolute; left: 0; color: var(--brand); font-weight: bold; }
.prose ol { padding-left: 1rem; }
.prose ol li { margin: 0.4rem 0; }
.prose a { color: var(--brand); border-bottom: 1px solid var(--brand-soft); }
.prose strong { color: var(--ink); }
.prose blockquote {
    border-left: 4px solid var(--brand);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--ink);
    font-size: 1.2rem;
}

/* ── Dashboard tabs — slim editorial nav ──────────────────────────────── */

.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dash-tab {
    padding: 0.85rem 1.4rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    background: var(--surface);
    border-right: 1px solid var(--border-soft);
    text-decoration: none;
    transition: all 180ms;
    flex: 1 1 auto;
    text-align: center;
    min-width: max-content;
    position: relative;
}
.dash-tab:last-child { border-right: none; }
.dash-tab:hover { background: var(--paper); color: var(--ink); }
.dash-tab.active {
    background: var(--ink);
    color: var(--on-dark);
}
.dash-tab.active:hover { background: #0a0905; color: var(--on-dark); }

/* Dashboard stat tiles — editorial figures */
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    transition: border-color 180ms, box-shadow 180ms;
    position: relative;
    overflow: hidden;
}
.stat-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 1.75rem; right: 1.75rem;
    height: 2px;
    background: var(--ink);
}
.stat-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-card); }
.stat-tile .label {
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--ink-mute);
}
.stat-tile .value {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
    font-weight: 400;
    font-size: 3.25rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--brand);
    margin-top: 0.65rem;
}
.stat-tile.is-success { }
.stat-tile.is-success::before { background: var(--won); }
.stat-tile.is-success .value { color: var(--won); }
.stat-tile.is-info::before { background: var(--info); }
.stat-tile.is-info .value    { color: var(--info); }
.stat-tile.is-gold::before { background: var(--gold); }
.stat-tile.is-gold .value { color: var(--gold); }

/* ── File upload tile (KYC, branding) ─────────────────────────────────── */

.upload-tile {
    display: block;
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 200ms var(--ease-out);
    overflow: hidden;
}
.upload-tile:hover {
    border-color: var(--brand);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}
.upload-tile.has-file {
    border-style: solid;
    border-color: var(--won);
    background: #fff;
    padding: 0;
}
.upload-tile input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.upload-tile-icon {
    width: 48px; height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--ink-mute);
    transition: color 180ms;
}
.upload-tile:hover .upload-tile-icon { color: var(--brand); }
.upload-tile-title {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.upload-tile-hint {
    font-size: 0.78rem;
    color: var(--ink-mute);
    line-height: 1.45;
}
.upload-tile-types {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--ink-mute);
    background: rgba(0,0,0,0.04);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

/* When file selected — preview area */
.upload-preview {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    text-align: left;
}
.upload-preview-thumb {
    width: 96px; height: 72px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.upload-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-thumb .pdf-icon {
    color: var(--brand);
    width: 38px; height: 38px;
}
.upload-preview-info { min-width: 0; }
.upload-preview-name {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 0.92rem;
}
.upload-preview-meta {
    font-size: 0.75rem;
    color: var(--ink-mute);
    display: flex; gap: 0.6rem; align-items: center;
    margin-top: 0.15rem;
}
.upload-preview-meta .ok {
    color: var(--won);
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.7rem;
}
.upload-preview-clear {
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-mute);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 180ms;
    flex-shrink: 0;
    z-index: 3;
    position: relative;
}
.upload-preview-clear:hover { background: var(--brand); color: #fff; }

/* ── Past event cards (frosted-glass treatment) ───────────────────────── */

/* "Sealed archive" look — slight blur + grayscale lifts on hover. */
.past-card {
    position: relative;
    transition: filter 350ms var(--ease-out);
    filter: grayscale(0.4) brightness(0.97) contrast(0.95);
}
.past-card::after {
    content: '';
    position: absolute; inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.04);
    pointer-events: none;
    border-radius: inherit;
    transition: backdrop-filter 350ms var(--ease-out), background 350ms var(--ease-out);
    z-index: 1;
}
.past-card > * { position: relative; z-index: 2; }
.past-card:hover {
    filter: grayscale(0) brightness(1) contrast(1);
}
.past-card:hover::after {
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    background: transparent;
}

/* Status pills inside tables */
.status-live      { background: rgba(180,33,26,0.1); color: var(--brand); border: 1px solid rgba(180,33,26,0.25); }
.status-soon      { background: rgba(255,132,0,0.1); color: var(--cta); border: 1px solid rgba(255,132,0,0.25); }
.status-closed    { background: var(--bg-soft); color: var(--ink-mute); border: 1px solid var(--border); }
.status-success   { background: rgba(46,125,50,0.1); color: var(--won); border: 1px solid rgba(46,125,50,0.25); }

/* ── Stat block — editorial figure ────────────────────────────────────── */

.stat-num {
    font-family: var(--font-display);
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
    font-weight: 380;
    font-size: clamp(3rem, 5.5vw, 4.75rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.stat-num--brand { color: var(--brand); }
.stat-num--gold  { color: var(--gold); }

.stat-figure {
    position: relative;
    padding: 1rem 0 1.25rem;
}
.stat-figure__index {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}
.stat-figure__label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.45rem;
}

/* ── Page-load reveal ──────────────────────────────────────────────────── */

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s var(--ease-out) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }

/* ── Misc ──────────────────────────────────────────────────────────────── */

.countdown-urgent { color: var(--brand); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* ── Live-auction bid status banner ────────────────────────────────────
   Big "You're winning / outbid / won" headline that real auction sites
   (Copart, eBay) put above the bid amount. Reads instantly on mobile. */
.bid-status {
    position: relative;
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid transparent;
    overflow: hidden;
}
.bid-status__label {
    display: block;
    font-family: var(--font-display, inherit);
    font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 0;
    font-weight: 500;
    font-size: 1.45rem;
    line-height: 1.12;
    letter-spacing: -0.012em;
}
.bid-status__sub {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-body, inherit);
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.4;
}
.bid-status__dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: 0.05em;
}

/* Winning — green confidence */
.bid-status--winning {
    background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(132,204,22,0.10));
    border-color: rgba(34,197,94,0.45);
    color: #16a34a;
}
.bid-status--winning .bid-status__dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); animation: bid-pulse 1.6s ease-in-out infinite; }
.bid-status--winning .bid-status__label { color: #15803d; }

/* Outbid — red urgency */
.bid-status--outbid {
    background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(239,68,68,0.06));
    border-color: rgba(239,68,68,0.5);
    color: #b91c1c;
}
.bid-status--outbid .bid-status__dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.18); animation: bid-pulse 1s ease-in-out infinite; }
.bid-status--outbid .bid-status__label { color: #b91c1c; }

/* Won — gold celebration */
.bid-status--won {
    background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(245,158,11,0.10));
    border-color: rgba(251,191,36,0.55);
    color: #92400e;
}
.bid-status--won .bid-status__label { color: #b45309; font-size: 1.5rem; }
.bid-status--won::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: translateX(-100%);
    animation: bid-shine 2.4s ease-in-out infinite;
}

/* Lost — muted */
.bid-status--lost {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--ink-mute);
}
.bid-status--lost .bid-status__label { color: var(--ink-mute); }

/* First bid — neutral call to action */
.bid-status--first {
    background: linear-gradient(135deg, rgba(180,33,26,0.10), rgba(180,33,26,0.03));
    border-color: rgba(180,33,26,0.30);
    color: var(--brand);
}
.bid-status--first .bid-status__dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(180,33,26,0.18); }
.bid-status--first .bid-status__label { color: var(--brand); }

/* Waiting / unsold / guest — informational */
.bid-status--waiting,
.bid-status--unsold,
.bid-status--guest {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--ink);
}
.bid-status--waiting .bid-status__label,
.bid-status--unsold  .bid-status__label,
.bid-status--guest   .bid-status__label { color: var(--ink); font-size: 1.15rem; }

/* Just-bid pulse — fires for ~2.5s after a successful bid */
.bid-status.just-bid { animation: bid-celebrate 0.6s ease-out; }

@keyframes bid-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.2); }
}
@keyframes bid-celebrate {
    0%   { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    40%  { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(34,197,94,0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes bid-shine {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.lightbox-overlay img { max-height: 90vh; max-width: 90vw; object-fit: contain; }

.spinner {
    border: 2px solid var(--brand-soft);
    border-top-color: var(--brand);
    border-radius: 50%;
    width: 22px; height: 22px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* Selection */
::selection { background: var(--ink); color: var(--gold); }

/* ── Editorial utility classes ─────────────────────────────────────────── */

.serif        { font-family: var(--font-display); }
.italic-wonk  { font-style: italic; font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1; }
.mono         { font-family: var(--font-mono); }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* Reveal — slide-in for grid items */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.reveal {
    animation: reveal-up 0.9s var(--ease-expo) both;
}
.reveal-stagger > * { animation: reveal-up 0.8s var(--ease-expo) both; }
.reveal-stagger > *:nth-child(1) { animation-delay: 0.04s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.22s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.28s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.34s; }
.reveal-stagger > *:nth-child(7) { animation-delay: 0.40s; }
.reveal-stagger > *:nth-child(8) { animation-delay: 0.46s; }

/* Decorative paper grain — apply to a parent that has paper bg */
.paper-grain {
    position: relative;
    isolation: isolate;
}
.paper-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(22,19,12,0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.6;
}
.paper-grain > * { position: relative; z-index: 1; }

/* Marquee headline reveal — used on hero copy */
.headline-reveal {
    display: inline-block;
    overflow: hidden;
    line-height: 1;
}
.headline-reveal > * {
    display: inline-block;
    animation: reveal-up 1s var(--ease-expo) both;
}

/* ── Mobile auction (lot + event) — compact live UI ─────────────────────── */

.lot-mobile-auction {
    --m-auction-green: #16a34a;
    --m-auction-green-soft: rgba(22, 163, 74, 0.12);
}

.lot-mobile-auction__pill-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--brand);
    color: var(--on-dark);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Title row “live now” chip (rectangle, reference UI) */
.lot-mobile-auction__pill-live-now {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 2px;
    background: var(--brand);
    color: var(--on-dark);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lot-mobile-auction__pill-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.5s ease-in-out infinite;
}

.lot-mobile-auction__stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.lot-mobile-auction__stat-label {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-weight: 600;
}

.lot-mobile-auction__stat-bids {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-family: var(--font-mono);
}

.lot-mobile-auction__stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum' 1;
}

.lot-mobile-auction__stat-value--brand { color: var(--brand); }
.lot-mobile-auction__stat-value--green { color: var(--m-auction-green); }

.lot-mobile-auction__progress {
    height: 4px;
    border-radius: 9999px;
    background: var(--border-soft);
    overflow: hidden;
    margin-top: 0.35rem;
}

.lot-mobile-auction__progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: var(--m-auction-green);
    transition: width 0.35s ease-out;
}

.lot-mobile-auction__search-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.lot-mobile-auction__search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.55rem 0.75rem 0.55rem 2.25rem;
    font-size: 0.9rem;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236e6657' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 0.65rem center no-repeat;
}

.lot-mobile-auction__search-go {
    flex-shrink: 0;
    padding: 0 1rem;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--on-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: 0;
    cursor: pointer;
}

.lot-mobile-auction__nav-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.lot-mobile-auction__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lot-mobile-auction__nav-btn:hover:not([aria-disabled='true']) {
    background: var(--paper-deep);
    border-color: var(--ink-mute);
}

.lot-mobile-auction__nav-btn[aria-disabled='true'] {
    opacity: 0.38;
    pointer-events: none;
    cursor: not-allowed;
}

.lot-mobile-auction__gallery-contact {
    position: absolute;
    right: 10px;
    bottom: 52px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid var(--brand);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    cursor: pointer;
}

.lot-mobile-auction__gallery-contact svg {
    color: var(--brand);
}

/* Standalone lot mobile: gallery pill replaces floating chat dot */
@media (max-width: 1023px) {
    body:not(.mb-embedded) .lot-page--has-mobile-auction #lcFab {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.01);
    }
}

.lot-mobile-auction__sticky {
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

/* Mobile sticky — 3-column reference (stepper+min | quick | place+buy) */
.lot-mobile-auction__sticky-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(5.75rem, 31%);
    grid-template-rows: auto auto auto;
    gap: 0.2rem 0.35rem;
    align-items: stretch;
}

.lot-mobile-auction__sticky-lab {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-weight: 600;
    padding-top: 0.1rem;
}

.lot-mobile-auction__sticky-lab--a {
    grid-column: 1;
    grid-row: 1;
}

.lot-mobile-auction__sticky-lab--b {
    text-align: center;
    grid-column: 2;
    grid-row: 1;
}

.lot-mobile-auction__sticky-lab--c {
    grid-column: 3;
    grid-row: 1;
}

.lot-mobile-auction__sticky-cell--step {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.lot-mobile-auction__sticky-cell--min {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    padding-top: 0.15rem;
}

.lot-mobile-auction__sticky-min-text {
    margin: 0;
    font-size: 0.62rem;
    line-height: 1.35;
    color: var(--ink-mute);
}

.lot-mobile-auction__sticky-cell--quick {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    min-width: 0;
}

.lot-mobile-auction__sticky-cell--rail {
    grid-column: 3;
    grid-row: 2 / span 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.lot-mobile-auction__quick-row--sticky-mid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin-top: 0;
}

.lot-mobile-auction__quick-row--sticky-mid .lot-mobile-auction__quick-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.42rem 0.08rem;
    font-size: 0.62rem;
    font-weight: 700;
}

.lot-mobile-auction__stepper-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: var(--surface);
    gap: 0.05rem;
}

.lot-mobile-auction__stepper-prefix {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    flex-shrink: 0;
}

.lot-mobile-auction__stepper--dollar input.lot-mobile-auction__stepper-input,
.lot-mobile-auction__stepper--dollar .lot-mobile-auction__stepper-input {
    flex: 1;
    min-width: 0;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    padding: 0.5rem 0.35rem 0.5rem 0;
    -moz-appearance: textfield;
}

.lot-mobile-auction__stepper--dollar input::-webkit-outer-spin-button,
.lot-mobile-auction__stepper--dollar input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lot-mobile-auction__place-bid--rail {
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 4.75rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    line-height: 1.2;
    padding: 0.5rem 0.35rem;
}

.lot-mobile-auction__buy-now-outline--rail {
    margin-top: 0;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
    padding: 0.55rem 0.35rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.lot-mobile-auction__lot-id {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    font-family: var(--font-mono);
}

.lot-mobile-auction__lot-id-sub {
    font-weight: 600;
    color: var(--ink-faint);
    text-transform: none;
    letter-spacing: 0;
}

.lot-mobile-auction__stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.lot-mobile-auction__stepper button {
    flex: 0 0 44px;
    border: 0;
    background: var(--paper-deep);
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.lot-mobile-auction__stepper input {
    flex: 1;
    min-width: 0;
    border: 0;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    background: var(--surface);
}

.lot-mobile-auction__quick-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.lot-mobile-auction__quick-btn {
    padding: 0.45rem 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
}

.lot-mobile-auction__place-bid {
    margin-top: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    border: 0;
    background: var(--brand);
    color: var(--on-dark);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.lot-mobile-auction__buy-now-outline {
    margin-top: 0.45rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.lot-mobile-auction__place-bid.lot-mobile-auction__place-bid--rail {
    margin-top: 0;
}

.lot-mobile-auction__buy-now-outline.lot-mobile-auction__buy-now-outline--rail {
    margin-top: 0;
}

/* ── Event host page: header card, rollover strip, prev/next tiles ─────── */

.lot-mobile-auction__event-host-card {
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.lot-mobile-auction__event-meta-line {
    letter-spacing: 0.02em;
}

.lot-mobile-auction__round-alert {
    background: linear-gradient(135deg, rgba(180, 33, 26, 0.07), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(180, 33, 26, 0.38);
    border-radius: var(--radius-lg);
}

.lot-mobile-auction__round-alert-icon {
    color: var(--brand);
}

.lot-mobile-auction__round-alert-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--brand);
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.lot-mobile-auction__event-nav-tile {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 118px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    padding: 0;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lot-mobile-auction__event-nav-tile:not(:disabled):hover {
    border-color: var(--ink-mute);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.lot-mobile-auction__event-nav-tile--next {
    border-color: rgba(180, 33, 26, 0.45);
}

.lot-mobile-auction__event-nav-tile__arrow {
    flex: 0 0 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-deep);
    color: var(--ink-mute);
    font-weight: 700;
    font-size: 1.2rem;
    border-right: 1px solid var(--border-soft);
}

.lot-mobile-auction__event-nav-tile__arrow--brand {
    border-right: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--brand);
    color: var(--on-dark);
}

.lot-mobile-auction__event-nav-tile__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.5rem 0.45rem;
    gap: 0.25rem;
}

.lot-mobile-auction__event-nav-tile__label {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-family: var(--font-mono);
}

.lot-mobile-auction__event-nav-tile--next .lot-mobile-auction__event-nav-tile__label {
    color: var(--brand);
}

.lot-mobile-auction__event-nav-tile__thumb {
    height: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
}

.lot-mobile-auction__event-nav-tile__thumb-ph {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
}

.lot-mobile-auction__event-nav-tile__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.lot-mobile-auction__event-nav-tile__price {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand);
    margin-top: auto;
}

.lot-mobile-auction__event-nav-tile__muted {
    font-size: 0.68rem;
    color: var(--ink-faint);
    margin-top: auto;
}

.lot-mobile-auction__sticky-viewer-head {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-family: var(--font-mono);
}

.lot-mobile-auction__sticky-viewer-head__dot {
    margin: 0 0.2rem;
    opacity: 0.55;
}

.lot-mobile-auction__sticky-viewer-head__ask {
    margin-right: 0.25rem;
}

/* Event host sticky — same visual weight as lot page */
.event-mobile-auction__sticky.lot-mobile-auction__sticky {
    max-height: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
