/* ===========================================================================
   COPY 7 — "AURA" DESIGN SYSTEM  (v7 · indigo/violet · rounded · glassy)
   ---------------------------------------------------------------------------
   A bright, airy, modern premium marketplace — Linear × Stripe × high-end
   auction app. Cool-white canvas, white elevated rounded cards, glassmorphism
   header, gradient pill buttons, soft layered shadows with a faint indigo
   tint, calm rise/fade micro-motion. Space Grotesk display, Plus Jakarta Sans
   body, JetBrains Mono numerics. Token NAMES unchanged so every var()-driven
   view re-themes automatically.
   =========================================================================== */

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

:root {
    /* Brand — indigo/violet */
    --brand:      #4F46E5;   /* indigo 600 */
    --brand-dark: #4338CA;   /* indigo 700 (hover) */
    --brand-soft: rgba(79,70,229,0.08);
    --brand-ink:  #ffffff;
    --brand-2:    #7C3AED;   /* violet — gradient end / glow */

    /* CTA == brand */
    --cta: #4F46E5; --cta-dark: #4338CA; --cta-soft: rgba(79,70,229,0.10);

    /* legacy "gold" tokens remapped to violet so any leftover reads on-theme */
    --gold: #7C3AED; --gold-dark:#6D28D9; --gold-soft: rgba(124,58,237,0.10);

    /* Surfaces */
    --paper:        #F6F7FB;   /* page bg (cool off-white) */
    --paper-deep:   #EEF0F7;   /* inset/alt section */
    --bg:           #F6F7FB;
    --bg-soft:      #EEF0F7;
    --surface:      #FFFFFF;   /* cards */
    --surface-raise:#FFFFFF;
    --hero-dark:    #0E1020;   /* deep near-black indigo panel */
    --hero-overlay: rgba(14,16,32,0.62);

    /* Ink */
    --ink:        #0E1116;
    --ink-soft:   #3A4150;
    --ink-mute:   #6B7385;
    --ink-faint:  #A6ADBD;
    --on-dark:    #F4F5FB;
    --on-dark-soft: rgba(244,245,251,0.72);
    --on-brand:   #ffffff;

    /* Lines */
    --border:      #E7E9F2;
    --border-soft: #F0F1F8;
    --border-dark: #0E1116;

    /* Semantic */
    --live: #F43F5E;   /* rose — live/urgency (distinct from indigo brand) */
    --won:  #059669;   /* emerald — won / buy-now / success */
    --info: #4F46E5;

    /* Type */
    --font-display: 'Space Grotesk','Plus Jakarta Sans',system-ui,sans-serif;
    --font-body:    'Plus Jakarta Sans',system-ui,'Helvetica Neue',Arial,sans-serif;
    --font-mono:    'JetBrains Mono','IBM Plex Mono',Menlo,Consolas,monospace;

    /* Rhythm — ROUNDED */
    --radius-sm:   10px;
    --radius:      16px;
    --radius-lg:   24px;
    --radius-pill: 999px;

    /* Shadows — soft, layered, faint indigo tint */
    --shadow-card:  0 1px 2px rgba(16,24,40,0.04), 0 12px 28px -14px rgba(30,27,75,0.18);
    --shadow-hover: 0 2px 6px rgba(16,24,40,0.06), 0 26px 52px -20px rgba(30,27,75,0.28);
    --shadow-deep:  0 40px 80px -28px rgba(30,27,75,0.38);
    --ring:         0 0 0 4px rgba(79,70,229,0.18);

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

    /* gradient helper used by primary CTA / accents */
    --grad-brand: linear-gradient(135deg, #6366F1 0%, #8B5CF6 55%, #7C3AED 100%);
}

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

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
    background: var(--paper);
    background-image:
        radial-gradient(ellipse 90% 60% at 12% -8%, rgba(99,102,241,0.07), transparent 60%),
        radial-gradient(ellipse 80% 55% at 100% 0%, rgba(124,58,237,0.06), transparent 55%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-rendering: optimizeLegibility;
}

/* Headings — Space Grotesk display, tight geometric tracking, sentence case */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.14;
    margin: 0 0 0.5em;
}
h1, .h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }

/* Display variants — large hero headlines */
.display-hero {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    font-size: clamp(2.8rem, 7.4vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--on-dark);
}
.display-hero em {
    font-style: normal;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.display-xl {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
}

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

img { max-width: 100%; }

/* 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: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brand);
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px; height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.7;
}
.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 — mono ledger feel */
.numeric, .mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum", "zero";
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.serif { font-family: var(--font-display); }   /* now maps to display font */

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

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

/* ── Buttons — gradient pills ──────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    text-transform: none;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform 200ms var(--ease-out), box-shadow 240ms var(--ease-out),
                background 180ms, color 180ms, border-color 180ms, filter 180ms;
    line-height: 1;
    position: relative;
    white-space: nowrap;
    -webkit-user-select: none; user-select: none;
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; transition: transform 220ms var(--ease-expo); }
.btn:active { transform: translateY(0) scale(0.97); }

/* Filled gradient brand family */
.btn-primary, .btn-brand, .btn-gold, .btn-orange {
    background: var(--grad-brand);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 18px -6px rgba(79,70,229,0.55), 0 1px 2px rgba(16,24,40,0.06);
}
.btn-primary:hover, .btn-brand:hover, .btn-gold:hover, .btn-orange:hover {
    color: #fff !important;
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.03);
    box-shadow: 0 14px 32px -8px rgba(79,70,229,0.6), 0 2px 6px rgba(16,24,40,0.08);
}

/* Ink — solid deep panel */
.btn-ink {
    background: var(--hero-dark);
    color: var(--on-dark) !important;
    border-color: var(--hero-dark);
    box-shadow: 0 8px 22px -8px rgba(14,16,32,0.5);
}
.btn-ink:hover {
    background: #161A30; color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(14,16,32,0.6);
}

/* Ghost — soft neutral outline on light surfaces */
.btn-ghost, .btn-ghost-ink {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--border);
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.btn-ghost:hover, .btn-ghost-ink:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* Ghost on dark sections (hero / footer) */
.btn-ghost-light {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.7);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn-xs { padding: 0.4rem 0.85rem; font-size: 0.76rem; }

/* Animated 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); }
.btn-arrow:hover svg { transform: translateX(3px); }

/* 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.14em;
    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.8rem 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(--brand);
    background: var(--surface-raise) !important;
    box-shadow: var(--ring);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--ring); }
label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink-soft);
    display: block;
    margin-bottom: 0.45rem;
    text-transform: none;
    letter-spacing: -0.005em;
}
.form-required::after { content: ' *'; color: var(--brand); }
.form-required label::after { content: ''; }

/* ── Cards ─────────────────────────────────────────────────────────────── */

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

/* Dossier — framed tinted callout panel */
.dossier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.dossier--brand { background: linear-gradient(160deg, var(--brand-soft), var(--surface) 60%); border-color: rgba(79,70,229,0.25); }
.dossier--gold  { background: linear-gradient(160deg, var(--gold-soft), var(--surface) 60%); border-color: rgba(124,58,237,0.25); }
.dossier:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Vehicle/auction card — premium marketplace product tile */
.vehicle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 280ms;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.vehicle-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: rgba(79,70,229,0.3);
    color: inherit;
}
.vehicle-card .image-wrap {
    aspect-ratio: 4 / 3;
    background: var(--paper-deep);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.vehicle-card .image-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(14,16,32,0.12));
    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-weight: 600;
    text-transform: none;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.4rem;
    transition: color 180ms;
}
.vehicle-card:hover .title { color: var(--brand); }
.vehicle-card .price {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
}
/* status pill overlay (top-left) */
.vehicle-card .lot-num {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    padding: 0.32rem 0.65rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px -4px rgba(14,16,32,0.25);
}
/* wishlist heart button (top-right) */
.vehicle-card .wishlist-btn,
.vehicle-card .heart-btn {
    position: absolute;
    top: 0.7rem; right: 0.7rem;
    z-index: 3;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: var(--ink-mute);
    box-shadow: 0 4px 12px -4px rgba(14,16,32,0.22);
    transition: transform 180ms var(--ease-out), color 180ms, background 180ms;
    cursor: pointer;
}
.vehicle-card .wishlist-btn:hover,
.vehicle-card .heart-btn:hover { color: var(--live); transform: scale(1.1); background: #fff; }

/* ── Pills / badges ────────────────────────────────────────────────────── */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: var(--radius-pill);
    line-height: 1;
}
.pill-live    { background: var(--live); color: #fff; box-shadow: 0 4px 12px -4px rgba(244,63,94,0.5); }
.pill-live::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #fff; animation: live-pulse 1.5s ease-in-out infinite;
}
.pill-soon    { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(79,70,229,0.2); }
.pill-closed  { background: var(--paper-deep); color: var(--ink-mute); border: 1px solid var(--border); }
.pill-outline { background: transparent; color: var(--ink-soft); border: 1px solid var(--border); }
.pill-gold    { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid rgba(124,58,237,0.2); }

/* Live ribbon (corner) */
.ribbon-live {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    background: var(--live);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0.35rem 0.7rem;
    z-index: 2;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 16px -4px rgba(244,63,94,0.45);
}
.ribbon-live::before {
    content: '';
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

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

/* Status text+dot pills (inside tables / lists) */
.status-live, .status-soon, .status-closed, .status-success {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem; font-weight: 600;
    line-height: 1;
}
.status-live    { background: rgba(244,63,94,0.1); color: var(--live);  border: 1px solid rgba(244,63,94,0.25); }
.status-soon    { background: var(--brand-soft);   color: var(--brand); border: 1px solid rgba(79,70,229,0.25); }
.status-closed  { background: var(--bg-soft);      color: var(--ink-mute); border: 1px solid var(--border); }
.status-success { background: rgba(5,150,105,0.1); color: var(--won);   border: 1px solid rgba(5,150,105,0.25); }
.status-live::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; animation: live-pulse 1.5s ease-in-out infinite;
}

/* ── Hero — rounded dark panel CARD ────────────────────────────────────── */

.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;
    border-radius: var(--radius-lg);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,16,32,0.55) 0%, rgba(14,16,32,0.92) 100%),
        radial-gradient(ellipse at 78% 18%, rgba(124,58,237,0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 12% 82%, rgba(79,70,229,0.34) 0%, transparent 55%);
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    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);
}
.hero-home { border-radius: var(--radius-lg); }
.hero-home::before {
    background:
        linear-gradient(180deg, rgba(14,16,32,0.5) 0%, rgba(14,16,32,0.82) 60%, rgba(7,9,22,0.96) 100%),
        radial-gradient(ellipse at 78% 22%, rgba(124,58,237,0.38) 0%, transparent 65%),
        radial-gradient(ellipse at 12% 78%, rgba(79,70,229,0.3) 0%, transparent 55%);
}
.hero > * { position: relative; z-index: 2; }
.hero h1, .hero .h1, .hero h2, .hero h3 { color: var(--on-dark); }

/* Editorial corner marks */
.corner-marks { position: absolute; inset: 1.5rem; z-index: 3; pointer-events: none; }
.corner-marks::before, .corner-marks::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 1.5px solid rgba(244,245,251,0.4);
    border-radius: 4px;
}
.corner-marks::before { top: 0;    left: 0;    border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.corner-marks::after  { bottom: 0; right: 0;   border-left: 0;  border-top: 0;    border-bottom-right-radius: 8px; }

/* ── Sections ──────────────────────────────────────────────────────────── */

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

.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.14em;
    color: var(--ink-mute);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Announcement marquee — thin gradient indigo ribbon ────────────────── */

.marquee-bar {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: var(--on-dark);
    overflow: hidden;
    position: relative;
}
.marquee-bar::before, .marquee-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 70px;
    z-index: 2;
    pointer-events: none;
}
.marquee-bar::before { left: 0;  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%); }
.marquee-bar::after  { right: 0; background: linear-gradient(270deg, var(--brand-2) 0%, transparent 100%); }

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    padding: 0.55rem 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.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--on-dark);
}
.marquee-sep {
    display: inline-block;
    width: 5px; height: 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.utility-bar {
    background: var(--hero-dark);
    color: var(--on-dark-soft);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0;
}
.utility-bar a { color: var(--on-dark-soft); transition: color 180ms; }
.utility-bar a:hover { color: #fff; }

/* ── Header / nav — glassy sticky bar ──────────────────────────────────── */

.site-header {
    background: rgba(255,255,255,0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 220ms var(--ease-out), background 220ms;
}
.site-header.is-scrolled,
.site-header.scrolled {
    box-shadow: 0 8px 30px -16px rgba(30,27,75,0.28);
    background: rgba(255,255,255,0.85);
}

/* Nav capsule — segmented rounded pill of links */
.nav-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem;
    background: var(--paper-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
}
.site-header .nav-link, .nav-capsule .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--ink-mute);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    transition: color 160ms, background 160ms, box-shadow 160ms;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}
.site-header .nav-link:hover, .nav-capsule .nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.site-header .nav-link.active, .nav-capsule .nav-link.active {
    color: var(--brand);
    background: var(--surface);
    box-shadow: 0 2px 8px -3px rgba(30,27,75,0.18);
}

/* Wordmark */
.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: none;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.wordmark .accent {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.wordmark-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 13px;
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    letter-spacing: -0.02em;
    box-shadow: 0 8px 18px -6px rgba(79,70,229,0.6);
    transition: transform 280ms var(--ease-expo);
}
.wordmark:hover .wordmark-badge { transform: rotate(-6deg) scale(1.06); }
.wordmark-text { display: inline-flex; flex-direction: column; line-height: 0.95; }
.wordmark-text small {
    font-family: var(--font-mono); font-weight: 500;
    font-size: 0.46rem; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--ink-faint); margin-top: 0.28rem;
}

/* Header live chip */
.hdr-live {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
    background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.25);
    color: var(--live); font-size: 0.8rem; font-weight: 700;
    text-decoration: none; white-space: nowrap; transition: opacity 220ms, background 180ms;
}
.hdr-live:hover { background: rgba(244,63,94,0.14); color: var(--live); }
.hdr-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: live-pulse 1.5s ease-in-out infinite; }

/* Header icon buttons */
.hdr-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 13px;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--border);
    transition: background 160ms, color 160ms, border-color 160ms, transform 160ms;
    cursor: pointer;
}
.hdr-icon-btn:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }

/* ── Mobile fullscreen menu drawer ─────────────────────────────────────── */
.mobile-nav {
    position: fixed; inset: 0; z-index: 60;
    background: var(--hero-dark);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.mobile-nav::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124,58,237,0.32), transparent 58%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(79,70,229,0.28), transparent 56%);
}
.mobile-nav-head {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-body { position: relative; z-index: 1; padding: 1.5rem; flex: 1; }
.mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
    text-transform: none; letter-spacing: -0.03em; line-height: 1; color: var(--on-dark);
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: color 160ms, transform 220ms var(--ease-out), background 180ms;
}
.mobile-nav-link .idx {
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.1em; color: var(--ink-faint);
}
.mobile-nav-link:hover, .mobile-nav-link:active {
    color: #fff; transform: translateX(4px);
    background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.4);
}
.mobile-nav-link.is-accent { color: #fff; background: var(--grad-brand); border-color: transparent; }

/* Mobile bottom tab bar → floating rounded glass dock */
.mb-bottomnav {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 34px -12px rgba(30,27,75,0.3);
}

/* ── Footer — rounded CTA card + columns on dark panel ─────────────────── */

.site-footer {
    background: var(--hero-dark);
    color: var(--on-dark-soft);
    padding: 4.5rem 0 1.75rem;
    margin-top: 5rem;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.site-footer h4 {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 1rem;
}
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark .accent {
    background: linear-gradient(135deg, #A5B4FC, #C4B5FD);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.site-footer a { color: var(--on-dark-soft); transition: color 180ms; }
.site-footer a:hover { color: #fff; }

.footer-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 2.25rem; margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    background: var(--grad-brand);
    box-shadow: 0 24px 56px -24px rgba(79,70,229,0.7);
    position: relative;
    overflow: hidden;
}
.footer-cta::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 90% 10%, rgba(255,255,255,0.18), transparent 60%);
}
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta-title { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.03em; color: #fff; margin: 0; }
.footer-cta-sub { color: rgba(255,255,255,0.85); margin: 0.4rem 0 0; font-size: 0.95rem; }

.footer-main { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 1rem; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.3fr 2fr; gap: 4rem; } }
.footer-tagline { color: var(--on-dark-soft); font-size: 0.95rem; line-height: 1.6; margin: 1.1rem 0 1.25rem; max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.footer-phone { color: #fff !important; font-size: 1.15rem; font-weight: 700; font-family: var(--font-mono); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 600px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-list a { font-size: 0.92rem; }
.footer-addr { font-size: 0.9rem; line-height: 1.6; color: var(--on-dark-soft); margin: 0; }
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: rgba(244,245,251,0.5);
}

/* ── Spec list (vehicle details) — clean two-col rows ──────────────────── */

.spec-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 0.78rem 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.12em;
    color: var(--ink-mute);
}
.spec-row dd {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
    font-size: 1rem;
    word-break: break-word;
    min-width: 0;
    overflow-wrap: anywhere;
}
.spec-row dd.numeric {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0;
}

/* ── Lot bid frame ─────────────────────────────────────────────────────── */
.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);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        padding: 1.5rem;
    }
}
.lot-timer {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: rgba(14,16,32,0.78);
    color: rgba(255,255,255,0.92);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

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

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    background: var(--bg-soft);
    color: var(--ink-mute);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}
.admin-table th:first-child { border-top-left-radius: var(--radius-sm); }
.admin-table th:last-child  { border-top-right-radius: var(--radius-sm); }
.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.75;
    color: var(--ink-soft);
    max-width: 70ch;
}
.prose h2 { color: var(--ink); 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: 3px 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 — segmented rounded pill tabs ──────────────────────── */

.dash-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: var(--paper-deep);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0.3rem;
}
.dash-tab {
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: -0.005em;
    text-transform: none;
    color: var(--ink-mute);
    background: transparent;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: color 180ms, background 180ms, box-shadow 180ms;
    text-align: center;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
}
.dash-tab:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.dash-tab.active {
    background: var(--surface);
    color: var(--brand);
    box-shadow: 0 2px 8px -3px rgba(30,27,75,0.2);
}

/* Dashboard stat tiles */
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition: border-color 200ms, box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out);
    position: relative;
    overflow: hidden;
}
.stat-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.stat-tile .label {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.82rem;
    color: var(--ink-mute);
}
.stat-tile .value {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    font-size: 3rem;
    line-height: 1;
    color: var(--brand);
    margin-top: 0.65rem;
}
.stat-tile.is-success .value { color: var(--won); }
.stat-tile.is-info .value    { color: var(--info); }
.stat-tile.is-gold .value    { color: var(--gold); }

/* ── File upload tile (KYC, branding) — rounded dashed dropzone ────────── */

.upload-tile {
    display: block;
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    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: var(--brand-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}
.upload-tile.has-file {
    border-style: solid;
    border-color: var(--won);
    background: var(--surface-raise);
    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;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.upload-tile-hint {
    font-size: 0.8rem;
    color: var(--ink-mute);
    line-height: 1.45;
}
.upload-tile-types {
    display: inline-block;
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
}

.upload-preview {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-raise);
    text-align: left;
    border-radius: var(--radius-lg);
}
.upload-preview-thumb {
    width: 96px; height: 72px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    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-mono);
    text-transform: uppercase; letter-spacing: 0.08em;
    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(--live); color: #fff; }

/* ── Past event cards (frosted archive) ────────────────────────────────── */

.past-card {
    position: relative;
    transition: filter 350ms var(--ease-out);
    filter: grayscale(0.4) brightness(0.97) contrast(0.96);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.past-card::after {
    content: '';
    position: absolute; inset: 0;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    background: rgba(14,16,32,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; }

/* ── Stat block — big mono figures ─────────────────────────────────────── */

.stat-num {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    line-height: 0.95;
    color: var(--ink);
}
.stat-num--brand {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.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.18em;
    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.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 0.45rem;
}

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

@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; }

@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; }

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

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

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

.italic-wonk  { font-style: italic; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* Decorative paper grain — apply to a parent that has a 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(30,27,75,0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.55;
}
.paper-grain > * { position: relative; z-index: 1; }

/* ── Live-auction bid status banner ──────────────────────────────────────
   Big "You're winning / outbid / won" headline above the bid amount. */
.bid-status {
    position: relative;
    border-radius: var(--radius);
    padding: 0.95rem 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-weight: 600;
    font-size: 1.45rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.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 — emerald confidence */
.bid-status--winning {
    background: linear-gradient(135deg, rgba(5,150,105,0.16), rgba(16,185,129,0.08));
    border-color: rgba(5,150,105,0.4);
    color: var(--won);
}
.bid-status--winning .bid-status__dot { background: var(--won); box-shadow: 0 0 0 4px rgba(5,150,105,0.15); animation: bid-pulse 1.6s ease-in-out infinite; }
.bid-status--winning .bid-status__label { color: #047857; }

/* Outbid — rose urgency */
.bid-status--outbid {
    background: linear-gradient(135deg, rgba(244,63,94,0.16), rgba(244,63,94,0.06));
    border-color: rgba(244,63,94,0.5);
    color: #be123c;
}
.bid-status--outbid .bid-status__dot { background: var(--live); box-shadow: 0 0 0 4px rgba(244,63,94,0.18); animation: bid-pulse 1s ease-in-out infinite; }
.bid-status--outbid .bid-status__label { color: #be123c; }

/* Won — violet celebration */
.bid-status--won {
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(99,102,241,0.1));
    border-color: rgba(124,58,237,0.5);
    color: #6D28D9;
}
.bid-status--won .bid-status__label { color: #5B21B6; font-size: 1.5rem; }
.bid-status--won::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), 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 — brand call to action */
.bid-status--first {
    background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(124,58,237,0.05));
    border-color: rgba(79,70,229,0.3);
    color: var(--brand);
}
.bid-status--first .bid-status__dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,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(5,150,105,0.5); }
    40%  { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(5,150,105,0); }
    100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}
@keyframes bid-shine {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(7,9,22,0.94);
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox-overlay img { max-height: 90vh; max-width: 90vw; object-fit: contain; border-radius: var(--radius); }

/* ── Spinner ───────────────────────────────────────────────────────────── */
.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); } }

/* Site logo */
.mb-site-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 52px;
    max-width: 220px;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .mb-site-logo { max-height: 48px; max-width: 240px; }
}

/* ── Mobile sticky bid dock — rounded glass ────────────────────────────── */
.mb-sticky-panel {
    background: rgba(255,255,255,0.88);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border-top: 1px solid var(--border-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 28px -10px rgba(30,27,75,0.28);
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
}
.mb-sticky-panel.is-flashing { animation: mb-sticky-flash 700ms cubic-bezier(0.22,1,0.36,1); }
@keyframes mb-sticky-flash {
    0%   { box-shadow: 0 -8px 28px rgba(5,150,105,0.45), inset 0 0 0 9999px rgba(5,150,105,0.12); }
    100% { box-shadow: 0 -8px 28px -10px rgba(30,27,75,0.28), inset 0 0 0 9999px rgba(5,150,105,0); }
}
.mb-sticky-stepper {
    width: 40px;
    background: var(--paper-deep); border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    font-size: 1.15rem; color: var(--ink); font-weight: 600;
    transition: transform 100ms, background 150ms;
}
.mb-sticky-stepper:active { transform: scale(0.92); background: var(--border-soft); }
.mb-sticky-quick {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 0.4rem 0.4rem; cursor: pointer;
    color: var(--ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
    font-family: var(--font-mono);
    transition: transform 100ms, border-color 150ms, color 150ms, background 150ms;
}
.mb-sticky-quick:hover  { border-color: var(--brand); color: var(--brand); }
.mb-sticky-quick:active { transform: scale(0.94); background: var(--brand-soft); }
.mb-sticky-place {
    background: var(--grad-brand); color: var(--on-brand); border: 0;
    border-radius: var(--radius-pill); padding: 0.7rem 0.5rem;
    font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 700;
    text-transform: none; cursor: pointer; line-height: 1.1; min-height: 48px;
    box-shadow: 0 8px 20px -8px rgba(79,70,229,0.55);
    transition: transform 100ms, filter 150ms;
}
.mb-sticky-place:active   { transform: scale(0.96); filter: brightness(1.04); }
.mb-sticky-place:disabled { opacity: 0.6; cursor: not-allowed; }
.mb-sticky-buy {
    background: transparent; color: var(--brand); border: 1.5px solid var(--brand);
    border-radius: var(--radius-pill); padding: 0.6rem 0.5rem;
    font-size: 0.78rem; letter-spacing: 0.01em; font-weight: 700;
    text-transform: none; cursor: pointer; line-height: 1.1; min-height: 48px;
    text-decoration: none;
    transition: transform 100ms, background 150ms;
}
.mb-sticky-buy:hover  { background: var(--brand-soft); }
.mb-sticky-buy:active { transform: scale(0.96); }

/* ── Realtime toast (JS-injected .mb-toast) ────────────────────────────── */
.mb-toast {
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    color: var(--ink);
}

/* 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-faint); }

/* Selection */
::selection { background: var(--brand); color: #fff; }

/* ════════════════════════════════════════════════════════════════════════
   AURA LOT CARD + MODERN TOOLBAR — shared across Home / Inventory / Wins.
   Rounded soft cards, faceted-marketplace toolbar.
   ═══════════════════════════════════════════════════════════════════ */
.lot-fig {
    background: var(--surface);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 280ms;
}
.lot-fig:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(79,70,229,0.3); }
.lot-fig-img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-expo); }
.lot-fig:hover .lot-fig-img { transform: scale(1.05); }
.lot-fig:hover .lot-fig-title, .lot-fig:hover .lot-fig-cta { color: var(--brand); }

/* card grid — soft gaps, rounded children */
.fig-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .fig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Modern toolbar (Inventory) ────────────────────────────────────────── */
.fig-field {
    border: 1px solid var(--border); background: var(--surface);
    padding: 0.6rem 0.9rem; font-family: var(--font-body); font-size: 0.88rem;
    color: var(--ink); outline: none; border-radius: var(--radius-pill);
    transition: border-color .18s, box-shadow .18s;
}
.fig-field:focus { border-color: var(--brand); box-shadow: var(--ring); }
.fig-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1rem; border: 1px solid var(--border); background: var(--surface);
    color: var(--ink-mute); font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border-radius: var(--radius-pill);
    transition: color .18s, border-color .18s, background .18s, transform .18s; white-space: nowrap;
}
.fig-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); transform: translateY(-1px); }
.fig-btn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(79,70,229,0.5); }
.fig-btn-dark { background: var(--hero-dark); color: var(--on-dark); border-color: var(--hero-dark); border-radius: var(--radius-pill); }
.fig-btn-dark:hover { background: #161A30; color: #fff; }
.fig-iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.55rem; border: 1px solid var(--border); background: var(--surface);
    color: var(--ink-mute); cursor: pointer; border-radius: var(--radius-sm);
    transition: all .18s;
}
.fig-iconbtn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.fig-iconbtn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* list row (Inventory list view) */
.fig-row {
    display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 0.6rem;
    text-decoration: none; color: inherit;
    transition: background .18s, box-shadow .18s, border-color .18s;
}
.fig-row:hover { background: var(--surface); box-shadow: var(--shadow-card); border-color: var(--border); }
.fig-row:hover .lot-fig-title { color: var(--brand); }
@media (min-width: 640px) { .fig-row, .fig-row-head { grid-template-columns: 100px 1fr 140px 140px 110px 90px; } }

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Mobile: shrink the realtime toast stack so it doesn't blanket the screen. */
@media (max-width: 640px) {
    #mb-toasts {
        transform: scale(0.62);
        transform-origin: top right;
    }
}

/* ── Mobile responsive refinements ─────────────────────────────────────── */
@media (max-width: 768px) {
    .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-cta { padding: 1.75rem; }
    .footer-cta-title { font-size: 1.4rem; }
    .spec-row { grid-template-columns: 120px 1fr; gap: 0.75rem; }
    .nav-capsule { display: none; }
}
@media (max-width: 480px) {
    .upload-preview { grid-template-columns: 64px 1fr auto; gap: 0.75rem; }
    .upload-preview-thumb { width: 64px; height: 48px; }
    .dossier { padding: 1.35rem; }
}
