/* ==========================================================================
   BidCo Trucks — design system
   Cards, title bars, event cards & footer after GoBid · announcement bar,
   trust strip & token scale after Park Village Auctions · live-bid ticker,
   hero stats & how-it-works after Momentum Auctions · colours from the BidCo logo.
   ========================================================================== */

:root {
    /* Sampled from the BidCo logo: #21603b */
    --brand: #21603b;
    --brand-dark: #19492c;
    --brand-deep: #0e3320;
    --brand-tint: #e9f2ec;
    /* The bright green from the signage, used where the old yellow highlight was */
    --accent: #3fbf6f;
    --accent-dark: #2fa75c;
    --accent-tint: #e4f7ec;
    /* Kept amber, but only for warnings */
    --warn: #f2c200;
    --warn-dark: #d9ad00;
    --warn-tint: #fff6cc;
    --live: #c8102e;
    --live-dark: #a00d25;
    --ink: #14151a;
    --navy: #1d1f24;
    --navy-2: #121418;
    --text: #1f2421;
    --muted: #5f6b64;
    --line: #dfe3e0;
    --bg: #f3f5f3;
    --white: #fff;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;
    --shadow-xs: 0 1px 3px rgba(20, 21, 26, .08);
    --shadow-sm: 0 2px 10px rgba(20, 21, 26, .08);
    --shadow-md: 0 6px 24px rgba(20, 21, 26, .11);
    --shadow-lg: 0 14px 44px rgba(20, 21, 26, .18);
    --transition: all .2s ease;
    --container: 1320px;
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', system-ui, 'Segoe UI', Arial, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--accent); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.inline-form { display: inline; margin: 0; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: var(--radius-sm); border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: var(--transition); text-align: center; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--ink); }
.btn-live { background: var(--live); border-color: var(--live); color: #fff; }
.btn-live:hover { background: var(--live-dark); border-color: var(--live-dark); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-outline-accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: var(--ink); }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; gap: .6rem; justify-content: center; }
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; }
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0; color: var(--muted, #6b7280); font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid var(--line, #e5e7eb); }

/* ── Announcement bar (Park Village) ─────────────────────── */
.announce-bar { background: var(--brand-deep); color: #e7f1ea; font-size: .82rem; }
.announce-inner { display: flex; align-items: center; gap: 1.2rem; height: 36px; }
.announce-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.announce-track { display: inline-flex; gap: 3rem; white-space: nowrap; animation: marquee 50s linear infinite; }
.announce-track span::before { content: "\25CF"; color: var(--accent); margin-right: .7rem; font-size: .6rem; vertical-align: middle; }
.announce-bar:hover .announce-track { animation-play-state: paused; }
.announce-contact { display: flex; gap: 1.1rem; white-space: nowrap; }
.announce-contact a:hover { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Header ───────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 76px; }
.brand img { height: 50px; width: auto; }
.header-help { display: flex; align-items: center; gap: .6rem; padding-left: 1.2rem; border-left: 1px solid var(--line); line-height: 1.2; white-space: nowrap; flex-shrink: 0; }
.header-help i { font-size: 1.4rem; color: var(--live); }
.header-help small { display: block; color: var(--muted); font-size: .74rem; }
.header-help strong { font-size: .98rem; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 1.3rem; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; color: var(--ink); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
.user-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .75rem; border-radius: var(--radius-full); background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: .85rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: .4rem; }
/* Ten links and three buttons need about 1 300 px; the phone box another 300. Below that the
   spacing tightens, then the links fold into the menu button rather than wrapping. */
@media (max-width: 1720px) { .header-help { display: none; } }
@media (max-width: 1400px) {
    .header-inner { gap: 1rem; }
    .main-nav { gap: .9rem; }
    .main-nav a { font-size: .9rem; }
}
@media (max-width: 1260px) {
    .nav-toggle { display: block; }
    .header-inner { flex-wrap: wrap; padding-block: .5rem; min-height: 64px; }
    .main-nav, .header-actions { display: none; width: 100%; }
    .site-header.open { max-height: 100vh; overflow-y: auto; }
    .site-header.open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
    .site-header.open .main-nav a { padding: .85rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .site-header.open .main-nav a.active { border-bottom-color: var(--line); border-left: 3px solid var(--brand); padding-left: .75rem; }
    .site-header.open .header-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; padding: .9rem 0 1.1rem; }
    .site-header.open .header-actions .btn, .site-header.open .header-actions .user-chip { justify-content: center; }
    .site-header.open .header-actions .btn-live, .site-header.open .header-actions .inline-form { grid-column: 1 / -1; }
    .site-header.open .header-actions .inline-form .btn { width: 100%; }
    .announce-contact { display: none; }
}
@media (max-width: 720px) { .brand img { height: 42px; } }

/* ── Flash & toasts ───────────────────────────────────────── */
.flash-stack { max-width: var(--container); margin: 1rem auto 0; padding-inline: 1.25rem; display: grid; gap: .5rem; }
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 600; border-left: 4px solid; }
.flash i { margin-top: .2rem; }
.flash-success { background: #e6f4ea; color: #145c30; border-color: var(--brand); }
.flash-error { background: #fdecee; color: #8f1022; border-color: var(--live); }
.flash-info { background: var(--warn-tint); color: #6b5200; border-color: var(--warn); }
.toast-stack { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 400; display: grid; gap: .5rem; width: max-content; max-width: calc(100vw - 2rem); }
.toast { background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-weight: 600; animation: toast-in .25s ease; }
.toast.success { background: var(--brand); }
.toast.error { background: var(--live); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Live ticker ──────────────────────────────────────────
   Photo, price and a running countdown on every card, the number of lots open on the
   left and a way into the auctions on the right. */
.live-ticker { display: flex; align-items: stretch; background: var(--navy-2); color: #fff; border-bottom: 3px solid var(--accent); overflow: hidden; }
.ticker-label { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: 0 1.3rem; background: var(--live); color: #fff; white-space: nowrap; text-decoration: none; }
.ticker-label:hover { background: var(--live-dark); color: #fff; }
.ticker-live { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; }
.ticker-count { font-size: .74rem; font-weight: 600; opacity: .9; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ticker-viewport { flex: 1; overflow: hidden; padding: .55rem 0; }
.ticker-track { display: inline-flex; gap: .75rem; padding-left: .75rem; animation: marquee 80s linear infinite; }
.live-ticker:hover .ticker-track { animation-play-state: paused; }
/* Each card is an auction lot tag: photo with its lot number, then what happened, the lot,
   and the price as a tag with the countdown beside it. Fixed width and a grid, so a long
   title is cut with "…" and can never push the price into the next card. */
.ticker-item { display: inline-grid; grid-template-columns: 84px minmax(0, 1fr); gap: .7rem; align-items: center; width: 330px; padding: .4rem .7rem .4rem .4rem; border-radius: 10px; background: #fff; color: var(--ink, #14151a); white-space: nowrap; border-left: 4px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.ticker-item:hover { color: var(--ink, #14151a); transform: translateY(-2px); }
.ticker-item.is-bid { border-left-color: var(--live); }
.ticker-media { position: relative; display: block; }
.ticker-thumb { display: block; width: 84px; height: 63px; object-fit: cover; border-radius: 6px; background: #e3e8e5; }
.ticker-lot { position: absolute; left: 4px; bottom: 4px; padding: .05rem .4rem; border-radius: 4px; background: rgba(13, 39, 22, .88); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.ticker-body { display: grid; gap: .1rem; min-width: 0; line-height: 1.25; }
.ticker-who { color: var(--brand); font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; }
.ticker-item.is-bid .ticker-who { color: var(--live); }
.ticker-title { font-weight: 700; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.ticker-foot { display: flex; align-items: center; gap: .5rem; min-width: 0; margin-top: .1rem; }
.ticker-amount { flex: none; padding: .1rem .5rem; border-radius: 5px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.3; letter-spacing: .02em; }
.ticker-item.is-bid .ticker-amount { background: var(--live); }
.ticker-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted, #5f6b64); font-size: .72rem; }
.ticker-meta .urgent { color: var(--live); font-weight: 700; }
.ticker-cta { display: flex; align-items: center; gap: .5rem; padding: 0 1.3rem; background: var(--accent); color: #0d2716; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.ticker-cta:hover { background: #fff; color: var(--brand); }
@media (max-width: 640px) {
    .ticker-label { padding: 0 .8rem; }
    .ticker-count, .ticker-cta { display: none; }
    .ticker-viewport { padding: .45rem 0; }
    .ticker-item { width: 260px; grid-template-columns: 64px minmax(0, 1fr); gap: .55rem; padding: .35rem .55rem .35rem .35rem; }
    .ticker-thumb { width: 64px; height: 52px; }
    .ticker-title { font-size: .82rem; }
    .ticker-amount { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track, .announce-track { animation: none; } }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: var(--ink) center / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 10, .93) 0%, rgba(8, 12, 10, .74) 48%, rgba(8, 12, 10, .3) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 3rem; align-items: center; padding-block: 4.5rem 3.8rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .92rem; color: var(--brand); margin-bottom: .6rem; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.15rem; max-width: 580px; color: #e6ebe8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2.2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; max-width: 660px; }
.hero-stat { padding: .9rem 1rem; background: rgba(8, 12, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: #fff; }
.hero-stat span { font-size: .76rem; color: #c9d3cd; text-transform: uppercase; letter-spacing: .05em; }
.search-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-card-head { background: var(--brand); color: #fff; padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 4px solid var(--accent); }
.search-card-head h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.search-card-head a { color: var(--accent); font-size: .85rem; font-weight: 700; }
.search-card-body { padding: 1.3rem; display: grid; gap: .85rem; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 3rem; } .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Trust strip & category tiles ────────────────────────── */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: .75rem; padding: 1.1rem .9rem; }
.trust-item i { font-size: 1.5rem; color: var(--brand); width: 2rem; text-align: center; }
.trust-item strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.trust-item span { color: var(--muted); font-size: .8rem; }
.category-strip { background: var(--brand); border-bottom: 5px solid var(--accent); }
.category-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-tile { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem; color: #fff; border-right: 1px solid rgba(255, 255, 255, .14); transition: var(--transition); }
.category-tile:last-child { border-right: 0; }
.category-tile:hover { background: var(--brand-dark); color: #fff; }
.category-tile i { font-size: 1.75rem; color: var(--accent); width: 2.4rem; text-align: center; }
.category-tile strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.category-tile span { font-size: .82rem; color: #cfe3d6; }
@media (max-width: 900px) { .trust-items, .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.2rem 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.view-all { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.view-all:hover { color: var(--brand); }

/* ── Carousel ─────────────────────────────────────────────── */
.carousel-wrap { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 3 * 1.1rem) / 4)); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .3rem .2rem 1rem; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.carousel-btn[hidden] { display: none; }
.carousel-btn { position: absolute; top: 24%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center; z-index: 3; transition: var(--transition); }
.carousel-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }
@media (max-width: 700px) { .carousel-btn { display: none; } .carousel { grid-auto-columns: 84%; } }

/* ── Vehicle card (GoBid) ─────────────────────────────────── */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, minmax(0, 1fr))); gap: 1.2rem; }
.vehicle-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s ease, transform .2s ease; }
.vehicle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vc-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #dfe3e0; overflow: hidden; }
.vc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover .vc-media img { transform: scale(1.04); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .62rem; border-radius: var(--radius-full); font-size: .74rem; font-weight: 700; color: #fff; line-height: 1.2; white-space: nowrap; }
.badge-live { background: var(--brand); }
.badge-closing { background: var(--live); }
.badge-upcoming { background: var(--navy); }
.badge-ended { background: #5d6660; }
.badge-sold { background: var(--live-dark); }
.vc-media .badge { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow-sm); }
.vc-icons { position: absolute; top: 10px; right: 10px; display: flex; gap: .35rem; z-index: 2; }
.vc-chip, .watch-btn { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255, 255, 255, .95); color: var(--ink); border: 0; border-radius: var(--radius-full); padding: .28rem .58rem; font-size: .74rem; font-weight: 700; box-shadow: var(--shadow-xs); }
.watch-btn { cursor: pointer; transition: var(--transition); }
.watch-btn:hover, .watch-btn.is-watching { color: var(--live); }
.vc-lot { position: absolute; left: 10px; bottom: 10px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .74rem; padding: .22rem .55rem; border-radius: 4px; }
.vc-photos { position: absolute; right: 10px; bottom: 10px; background: rgba(20, 21, 26, .75); color: #fff; font-size: .72rem; padding: .22rem .5rem; border-radius: 4px; }
.vc-body { display: flex; flex-direction: column; gap: .55rem; padding: .95rem 1rem 1rem; flex: 1; }
.vc-title { font-weight: 800; font-size: .95rem; line-height: 1.3; text-transform: uppercase; color: var(--ink); }
.vc-sub { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.vc-sub span { display: inline-flex; align-items: center; gap: .3rem; }
.vc-rows { display: grid; gap: .32rem; }
.vc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; font-size: .85rem; }
.vc-row > span:first-child { font-weight: 700; color: var(--ink); }
.vc-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1; }
.vc-buynow { font-weight: 700; }
.countdown { font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--live); }
.vc-foot { margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--radius-full); border: 1px solid var(--line); font-size: .72rem; color: #3c4540; background: #fff; white-space: nowrap; }
.chip i { color: var(--brand); }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pill-accent { background: var(--accent); color: var(--ink); }
.pill-reserve { background: #fff1d6; color: #8a5a00; }
.pill-met { background: var(--brand-tint); color: var(--brand-dark); }
.pill-dark { background: var(--ink); color: #fff; }

/* ── Auction event cards (GoBid live auctions) ───────────── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, minmax(0, 1fr))); gap: 1.2rem; }
.event-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.event-head { display: flex; justify-content: space-between; align-items: center; background: var(--accent); color: var(--ink); padding: .7rem 1rem; font-weight: 800; }
.event-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 1rem 1rem 0; }
.event-body { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
.event-cover { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-tag { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; padding: .25rem; }
.event-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; font-weight: 600; align-content: start; }
.event-facts i { width: 1.2rem; color: var(--brand); }
.event-note { font-size: .86rem; color: var(--muted); margin: 0 1rem; }
.event-foot { padding: 1rem; margin-top: auto; }

/* ── Bands: stats, steps, CTA, finance ───────────────────── */
.stats-band { position: relative; color: #fff; background: var(--ink) center / cover no-repeat; padding: 3.5rem 0; isolation: isolate; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: rgba(15, 54, 32, .8); z-index: -1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: #dce9e1; margin-top: .4rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem 1.3rem; box-shadow: var(--shadow-xs); }
.step::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 1rem; right: 1.1rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #e3e8e4; line-height: 1; }
.step-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 1.35rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.cta-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cta-dark, .cta-yellow { padding: 3.2rem clamp(1.25rem, 5vw, 4rem); }
.cta-dark { background: var(--ink); color: #d6dbd8; }
.cta-dark h2 { color: #fff; }
.cta-dark h2 span { color: var(--accent); }
.cta-yellow { background: var(--accent); color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; }
.check-list li { position: relative; padding-left: 1.55rem; overflow-wrap: anywhere; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--brand); position: absolute; left: 0; top: .05em; }
.cta-yellow .check-list li::before { color: var(--ink); }
.finance-band { display: flex; align-items: center; gap: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 2rem; box-shadow: var(--shadow-sm); }
.finance-band img { height: 52px; width: auto; }
.finance-band > div { flex: 1; }
.finance-band h3 { margin-bottom: .3rem; }
.finance-band p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cta-split { grid-template-columns: minmax(0, 1fr); } .finance-band { flex-direction: column; text-align: center; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ── Page banner (GoBid green title bar) ─────────────────── */
.page-banner { background: var(--brand); color: #fff; padding: 1.6rem 0; border-bottom: 4px solid var(--accent); }
.page-banner h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0; text-transform: uppercase; }
.page-banner p { margin: .35rem 0 0; color: #dcebe2; max-width: 760px; }
.page-banner-image { position: relative; background: var(--ink) center / cover no-repeat; padding: 3.2rem 0; isolation: isolate; }
.page-banner-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 54, 32, .94), rgba(15, 54, 32, .55)); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: #cfe3d6; margin-bottom: .45rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs span::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* ── Forms ────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .field-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.input, .select, .textarea { width: 100%; padding: .72rem .85rem; border: 1px solid #b9c1bc; border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(32, 98, 56, .18); }
.textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.field-full { grid-column: 1 / -1; }
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--live); }
.error-text { color: var(--live); font-size: .82rem; font-weight: 600; }
.help { color: var(--muted); font-size: .82rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .25rem; accent-color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.8rem); }
.form-section-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: .25rem; margin: 1.4rem 0 1rem; }
.form-section-title:first-child { margin-top: 0; }
.file-drop { display: block; border: 2px dashed #b9c1bc; border-radius: var(--radius); padding: 1.4rem; text-align: center; background: var(--bg); cursor: pointer; transition: var(--transition); }
.file-drop:hover, .file-drop.dragover { border-color: var(--brand); background: var(--brand-tint); }
.file-drop i { font-size: 1.8rem; color: var(--brand); }
.file-drop input { display: none; }
.file-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, minmax(0, 1fr))); gap: .5rem; margin-top: .8rem; }
.file-previews img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; width: 100%; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Inventory / search ───────────────────────────────────── */
.inventory-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.filters { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; background: var(--ink); color: #fff; font-weight: 700; }
.filters-head a { color: var(--accent); font-size: .85rem; }
.filters-body { padding: 1.1rem; display: grid; gap: 1rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: var(--radius-full); background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.cat-pill:hover { background: #000; color: #fff; }
.cat-pill.active { background: var(--brand); }
.cat-pill small { opacity: .75; font-weight: 600; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-bar h2 { margin: 0; font-size: 1.7rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form .select { width: auto; min-width: 210px; }
.filter-toggle { display: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 2rem 0 .5rem; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .6rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .9rem; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pagination .gap { border: 0; background: none; }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #c3cac5; border-radius: var(--radius); }
.empty-state i { font-size: 2.4rem; color: var(--brand); margin-bottom: .8rem; }
@media (max-width: 980px) { .inventory-layout { grid-template-columns: minmax(0, 1fr); } .filters { position: static; display: none; } .filters.open { display: block; } .filter-toggle { display: inline-flex; } }

/* ── Vehicle detail page ─────────────────────────────────── */
.pdp-banner { background: var(--brand); color: #fff; border-bottom: 4px solid var(--accent); }
.pdp-banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.1rem; }
.pdp-banner h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; text-transform: uppercase; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: .45rem; font-size: .9rem; color: #dcebe2; }
.pdp-meta i { color: var(--accent); margin-right: .3rem; }
.pdp-watch { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-full); padding: .55rem 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.pdp-watch:hover, .pdp-watch.is-watching { background: #fff; color: var(--live); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; padding-block: 1.6rem 1rem; }
.pdp-main { display: grid; gap: 1.4rem; min-width: 0; }
.pdp-side { display: grid; gap: 1.2rem; position: sticky; top: 92px; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(20, 21, 26, .65); color: #fff; cursor: pointer; font-size: 1rem; }
.gallery-nav:hover { background: var(--brand); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: .4rem; align-items: center; background: rgba(20, 21, 26, .82); color: #fff; border: 0; border-radius: var(--radius-sm); padding: .45rem .75rem; font-weight: 700; font-size: .85rem; cursor: pointer; }
.gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: .5rem; padding: .6rem; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .65; background: none; aspect-ratio: 4 / 3; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: var(--accent); color: var(--ink); padding: .75rem 1.1rem; font-weight: 800; }
.panel-head.dark { background: var(--ink); color: #fff; }
.panel-head.green { background: var(--brand); color: #fff; }
.panel-body { padding: 1.1rem; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li > span:first-child { color: var(--muted); font-weight: 600; }
.spec-list li > span:last-child { font-weight: 700; text-align: right; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; }
.bid-figures { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; }
.bid-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; text-align: center; }
.bid-box small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.bid-amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.bid-amount.muted { color: #9aa39e; }
.bid-box .increment { font-size: .78rem; color: var(--muted); }
/* Lot page: the live bid box. The price people are bidding against comes first and big,
   with the next bid and the step right under it, and it pops when somebody else bids. */
.bid-live { border: 2px solid var(--brand); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.bid-now { padding: .9rem 1rem .8rem; text-align: center; background: linear-gradient(180deg, var(--brand-tint), #fff); }
.bid-now small { display: block; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.bid-amount.big { font-size: clamp(2.4rem, 7vw, 3.1rem); line-height: 1.05; }
.bid-last { margin-top: .25rem; font-size: .82rem; color: var(--muted); }
.bid-last i { color: var(--live); }
.bid-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.bid-steps > div { padding: .6rem .4rem; text-align: center; }
.bid-steps > div + div { border-left: 1px solid var(--line); }
.bid-steps small { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bid-steps strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.bid-steps > div:first-child strong { color: var(--brand); }
.bid-live.bid-flash { animation: bid-flash 1.2s ease; }
.bid-live.bid-flash .bid-amount { animation: bid-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bid-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .9); border-color: #ffd23f; } 100% { box-shadow: 0 0 0 14px rgba(255, 210, 63, 0); } }
@keyframes bid-pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); color: var(--live); } 100% { transform: scale(1); } }
.quick-bids button { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.quick-bids .qb-amount { font-weight: 800; font-size: .92rem; }
.quick-bids .qb-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quick-bids button.is-picked { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.bid-submit [data-bid-btn-amount] { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .bid-live.bid-flash, .bid-live.bid-flash .bid-amount { animation: none; } }
.reserve-bar { position: relative; height: 28px; background: #e4e8e5; border-radius: var(--radius-full); overflow: hidden; margin: 1rem 0 .4rem; }
.reserve-fill { height: 100%; background: #8f9994; transition: width .5s ease; }
.reserve-bar.met .reserve-fill { background: var(--brand); }
.reserve-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.reserve-hint { font-size: .8rem; color: var(--muted); margin: 0; }
.bid-form { display: grid; gap: .6rem; margin-top: 1rem; }
.bid-input { position: relative; }
.bid-input > span { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.bid-input .input { padding-left: 2rem; font-size: 1.2rem; font-weight: 700; }
.quick-bids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.quick-bids button { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm); padding: .45rem; font-weight: 700; font-size: .82rem; cursor: pointer; }
.quick-bids button:hover { border-color: var(--brand); color: var(--brand); }
.bid-status { font-weight: 700; font-size: .9rem; padding: .6rem .8rem; border-radius: var(--radius-sm); margin-top: .8rem; }
.bid-status.leading { background: var(--brand-tint); color: var(--brand-dark); }
.bid-status.outbid { background: #fdecee; color: #8f1022; }
.buy-now { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--accent-tint); border: 1px solid #f0d97a; border-radius: var(--radius-sm); padding: .85rem 1rem; }
.buy-now small { display: block; font-weight: 700; color: #6b5200; }
.buy-now strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
/* Buy Now lots: bid, finance quote or buy outright, side by side. */
.buy-options { display: grid; gap: .55rem; background: var(--accent-tint); border: 1px solid #f0d97a; border-radius: var(--radius-sm); padding: .9rem; }
.buy-options-head small { display: block; font-weight: 700; color: #6b5200; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.buy-options-head strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.05; }
.buy-options-head span { margin-left: .4rem; color: #6b5200; font-size: .8rem; font-weight: 600; }
.buy-choice { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .75rem .9rem; border: 1px solid var(--line, #dfe5e1); border-radius: var(--radius-sm); background: #fff; color: var(--ink, #14151a); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.buy-choice:hover { color: var(--ink, #14151a); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.buy-choice > i { width: 2.2rem; height: 2.2rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.buy-choice strong { display: block; font-size: 1rem; }
.buy-choice small { display: block; color: var(--muted, #5f6b64); font-size: .8rem; }
.buy-choice.is-primary { background: var(--ink, #14151a); border-color: var(--ink, #14151a); color: #fff; }
.buy-choice.is-primary:hover { color: #fff; }
.buy-choice.is-primary small { color: rgba(255, 255, 255, .75); }
.buy-choice.is-primary > i { background: var(--accent); color: #0d2716; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.prose p { margin: 0 0 .9rem; }
.highlight-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.highlight-list li { display: flex; gap: .6rem; background: var(--bg); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; }
.highlight-list i { color: var(--brand); margin-top: .22rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); white-space: nowrap; }
.table td .thumb { width: 76px; height: 57px; object-fit: cover; border-radius: 4px; }
/* Admin → Vehicles card view: the whole card opens the editor. */
.admin-vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, minmax(0, 1fr))); gap: 1rem; }
/* Cards with a photo strip, a tick box and their own buttons (Edit · Mark sold · Delete). */
.admin-vcard.is-ticked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.admin-vcard-photo > a, .admin-vcard-photo > a img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-vcard-photo .approve-tick { z-index: 3; }
a.admin-vcard-body { color: var(--ink, #14151a); text-decoration: none; }
.admin-vcard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .5rem .6rem; border-top: 1px solid var(--line, #dfe5e1); }
.admin-vcard-sold { display: flex; gap: .3rem; flex: 1; min-width: 0; }
.admin-vcard-sold .select { flex: 1; min-width: 0; width: auto; padding: .3rem .4rem; font-size: .8rem; }
.admin-vcard { display: flex; flex-direction: column; border: 1px solid var(--line, #dfe5e1); border-radius: var(--radius-sm, 8px); background: #fff; color: var(--ink, #14151a); text-decoration: none; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.admin-vcard:hover, .admin-vcard:focus-visible { color: var(--ink, #14151a); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.admin-vcard-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #e3e8e5; }
.admin-vcard-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-vcard-photo .status-tag { position: absolute; left: .5rem; bottom: .5rem; }   /* the tick box sits top left */
.admin-vcard-star { position: absolute; right: .6rem; top: .6rem; color: var(--accent); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.admin-vcard-body { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem; flex: 1; }
.admin-vcard-body strong { line-height: 1.25; }
.admin-vcard-price { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--brand); }
.admin-vcard-price small { font-family: inherit; font-weight: 600; font-size: .72rem; color: var(--muted, #5f6b64); margin-left: .25rem; }
.admin-vcard-edit { padding: .5rem .8rem; border-top: 1px solid var(--line, #dfe5e1); font-weight: 700; font-size: .85rem; color: var(--brand); }
.admin-vcard:hover .admin-vcard-edit { background: var(--brand); color: #fff; }
@media (max-width: 1000px) { .pdp-grid { grid-template-columns: minmax(0, 1fr); } .pdp-side { position: static; } .pdp-banner-inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .spec-grid, .highlight-list { grid-template-columns: minmax(0, 1fr); } }

/* ── Modal & lightbox ─────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(10, 12, 11, .65); }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 800; }
.modal-close { background: none; border: 0; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 1.1rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .92rem; }
.calc-row.total { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .6rem; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .95); display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; color: #fff; }
.lb-close { background: none; border: 0; color: #fff; font-size: 1.9rem; cursor: pointer; line-height: 1; }
.lb-stage { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 4.5rem; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lb-arrow:hover { background: rgba(255, 255, 255, .3); }
.lb-arrow.prev { left: 14px; }
.lb-arrow.next { right: 14px; }
.lb-thumbs { display: flex; gap: .4rem; justify-content: safe center; padding: .7rem; overflow-x: auto; }
.lb-thumbs button { width: 72px; flex: 0 0 auto; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; opacity: .55; cursor: pointer; background: none; }
.lb-thumbs button.active { border-color: var(--accent); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .lb-stage { padding: 0 .5rem; } .lb-arrow { width: 40px; height: 40px; } }

/* ── Auth, account & content pages ───────────────────────── */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; background: var(--bg); }
.auth-card { width: 100%; max-width: 480px; }
.auth-side { position: relative; color: #fff; background: var(--ink) center / cover no-repeat; display: flex; align-items: flex-end; padding: 3rem; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 54, 32, .15), rgba(15, 54, 32, .94)); }
.auth-side h2 { color: #fff; }
.auth-side .check-list li::before { color: var(--accent); }
.account-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
/* A grid inside a flex row keeps its max-content width unless it is told it may shrink,
   which pushed the bidder stats off the side of a phone screen. The 320px basis makes the
   stats drop onto their own line instead of being squeezed. */
.account-stats { flex: 1 1 320px; min-width: 0; max-width: 760px; }
.bidder-card { display: flex; align-items: center; gap: 1rem; background: var(--ink); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius); }
.bidder-card small { display: block; color: #aab2ad; }
.bidder-card strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent); }
.tabs { display: flex; gap: .4rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active { border-color: var(--brand); color: var(--brand); }
.status-tag { display: inline-block; padding: .18rem .55rem; border-radius: var(--radius-full); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: #e4e8e5; color: #3c4540; white-space: nowrap; }
.status-tag.green { background: var(--brand-tint); color: var(--brand-dark); }
.status-tag.red { background: #fdecee; color: #8f1022; }
.status-tag.yellow { background: var(--accent-tint); color: #6b5200; }
.status-tag.navy { background: #e4e7e9; color: var(--navy); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.image-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.image-stack img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.image-stack img:last-child { margin-top: 2.5rem; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, minmax(0, 1fr))); gap: 1rem; }
.info-card { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-xs); }
.info-card > i { font-size: 1.3rem; color: var(--brand); width: 48px; height: 48px; display: grid; place-items: center; background: var(--brand-tint); border-radius: 50%; flex: 0 0 auto; }
.info-card h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.info-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; transition: transform .2s; color: var(--brand); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item > div { padding: 0 1.1rem 1rem; color: #3c4540; }
.legal { max-width: 900px; }
.legal h2 { font-size: 1.45rem; margin-top: 2rem; color: var(--brand); }
@media (max-width: 900px) { .auth-wrap, .content-grid { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ── Footer (GoBid) ───────────────────────────────────────── */
.site-footer { position: relative; background: var(--ink); color: #c3c9c5; overflow: hidden; }
.footer-chevron { position: absolute; left: -150px; top: 34%; width: 190px; height: 190px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); pointer-events: none; }
.footer-main { position: relative; display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 3.5rem 1.25rem 2.2rem; }
.footer-brand img { height: 58px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 380px; }
.footer-buttons { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-size: 1.15rem; display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: .3rem; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact i { color: var(--accent); margin-top: .28rem; width: 1rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); }
.socials a:hover { background: var(--accent); color: var(--ink); }
.footer-bottom { border-top: 1px solid #2a2c33; padding-block: 1.1rem; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; color: #8b918d; }
.footer-bottom img { height: 26px; width: auto; display: inline-block; vertical-align: middle; background: #fff; border-radius: 4px; padding: 3px 6px; margin-left: .4rem; }
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); transition: var(--transition); }
.float-call:hover { background: var(--brand-dark); color: #fff; transform: scale(1.06); }
@media (max-width: 900px) { .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .footer-main { grid-template-columns: minmax(0, 1fr); } .footer-chevron { display: none; } }

/* ── Admin ────────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #c3c9c5; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand img { height: 46px; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: #c3c9c5; }
.admin-nav a:hover { background: #22242b; color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-nav a i { width: 1.1rem; text-align: center; }
.admin-nav .count { margin-left: auto; background: var(--live); color: #fff; border-radius: var(--radius-full); font-size: .7rem; padding: .05rem .45rem; }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: .35rem; font-size: .85rem; }
.admin-sidebar-foot a:hover, .admin-sidebar-foot button:hover { color: var(--accent); }
.admin-sidebar-foot button { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-align: left; }
.admin-main { padding: 1.6rem clamp(1rem, 3vw, 2.2rem); min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-topbar h1 { font-size: 2.1rem; margin: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, minmax(0, 1fr))); gap: 1rem; margin-bottom: 1.4rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-xs); }
.stat-card .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-card .label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: .3rem; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-xs); margin-bottom: 1.2rem; }
.admin-card h2 { font-size: 1.4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.toolbar .field { min-width: 160px; }
/* Admin quick edit */
.quick-edit .table td { vertical-align: middle; }
.quick-edit .input, .quick-edit .select { padding: .4rem .5rem; font-size: .86rem; min-width: 0; }
.quick-edit .select { min-width: 128px; }
.quick-edit .table td:nth-child(2) { min-width: 190px; }
.quick-edit .table th, .quick-edit .table td { padding-left: .4rem; padding-right: .4rem; }
.quick-edit .is-changed { background: #fff6cc; border-color: #d9a400; }
.quick-edit input[type=checkbox].is-changed { outline: 2px solid #d9a400; }
.tabs-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Admin: the vehicle as it stands, at the top of its edit page */
.vehicle-preview { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.vp-cover { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: #e3e8e5; }
.vp-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vp-count { position: absolute; left: 8px; bottom: 8px; padding: .2rem .55rem; border-radius: 20px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .78rem; }
.vp-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.vp-facts { list-style: none; margin: .9rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, minmax(0, 1fr))); gap: .5rem; }
.vp-facts li { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; }
.vp-facts span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vp-strip { display: flex; gap: .4rem; flex-wrap: wrap; }
.vp-strip img, .vp-more { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; display: grid; place-items: center; background: var(--line); font-weight: 700; }
@media (max-width: 760px) { .vehicle-preview { grid-template-columns: minmax(0, 1fr); } }
.image-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, minmax(0, 1fr))); gap: .8rem; }
.image-admin-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.image-admin-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-admin-item .meta { display: flex; justify-content: space-between; align-items: center; gap: .3rem; padding: .35rem .5rem; font-size: .78rem; }
/* The bar that only appears on a phone: page name on the left, menu button on the right. */
.admin-mobilebar { display: none; position: sticky; top: 0; z-index: 60; align-items: center; gap: .7rem;
    background: var(--ink); color: #fff; padding: .6rem .8rem; }
.admin-mobilebar img { height: 34px; width: auto; }
.admin-mobilebar .amb-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    letter-spacing: .02em; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-mobilebar button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-width: 46px; min-height: 42px; padding: 0 .7rem; border: 1px solid #39413c; border-radius: var(--radius-sm);
    background: #22242b; color: #fff; font-size: 1.05rem; cursor: pointer; }
.admin-menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(8, 14, 11, .55); z-index: 70; }

/* minmax(0, 1fr), not minmax(0, 1fr): a wide table inside otherwise stretches the whole column and
   the admin scrolls sideways on a phone. */
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-mobilebar { display: flex; }

    /* The menu slides in from the left instead of pushing every page down by its own
       height — on a phone the full list is taller than the screen. */
    .admin-sidebar { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(290px, 86vw);
        height: 100dvh; overflow-y: auto; transform: translateX(-102%);
        transition: transform .22s ease; box-shadow: 0 0 34px rgba(0, 0, 0, .45); }
    .admin-body.menu-open .admin-sidebar { transform: none; }
    .admin-body.menu-open .admin-menu-backdrop { display: block; }
    .admin-body.menu-open { overflow: hidden; }

    .admin-nav a { padding: .78rem .8rem; font-size: .98rem; }
    .admin-main { padding: 1rem .85rem 2rem; }
    .admin-topbar h1 { font-size: 1.55rem; }
    .admin-topbar { margin-bottom: 1rem; }
    .admin-card { padding: .95rem; }
    .admin-card h2 { font-size: 1.2rem; }
    .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .stat-card { padding: .8rem .85rem; }
    .stat-card .num { font-size: 1.65rem; }
    .toolbar .field { min-width: 100%; }
    .toolbar .btn { width: 100%; justify-content: center; }
}

/* Admin dashboard: social posting at a glance */
.social-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, minmax(0, 1fr))); gap: .7rem; }
.social-stat { display: flex; flex-direction: column; gap: .1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.social-stat strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--brand); }
.social-stat span { font-weight: 700; font-size: .85rem; }
.social-stat em { font-style: normal; font-size: .75rem; color: var(--muted); }
.social-stat.total { background: var(--brand); border-color: var(--brand); }
.social-stat.total strong, .social-stat.total span, .social-stat.total em { color: #fff; }
.social-stat.has-failed { border-left-color: var(--live); }

/* Admin menu groups (Overview, Bidders, Auctions…) */
.admin-group { margin-bottom: .15rem; }
.admin-group summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: var(--radius-sm); cursor: pointer; list-style: none;
    font-size: .92rem; font-weight: 700; color: #c3c9c5; user-select: none; }
.admin-group summary .group-icon { width: 1.1rem; text-align: center; color: #7fbf98; }
.admin-group[open] > summary { color: #fff; }
.admin-group[open] { background: #1b1d22; border-radius: var(--radius-sm); padding-bottom: .25rem; }
.admin-group summary::-webkit-details-marker { display: none; }
.admin-group summary span:first-child { flex: 1; }
.admin-group summary:hover { color: #fff; background: #22242b; }
.admin-group summary .fa-chevron-down { font-size: .65rem; transition: transform .15s ease; }
.admin-group:not([open]) summary .fa-chevron-down { transform: rotate(-90deg); }
.admin-group[open] .group-count { display: none; }
.admin-group a { padding-left: 2.6rem; font-size: .88rem; font-weight: 500; }
.admin-group a i { display: none; }

/* The four everyday desks, pinned as tiles on top of the menu */
.admin-pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-bottom: .7rem; }
.admin-nav a.admin-pin { position: relative; display: grid; justify-items: start; gap: .3rem; padding: .7rem .75rem; border-radius: 10px;
    background: #22242b; color: #e6eae7; font-size: .86rem; font-weight: 700; }
.admin-nav a.admin-pin i { width: auto; font-size: 1.05rem; color: #7fbf98; }
.admin-nav a.admin-pin:hover { background: #2b2e36; }
.admin-nav a.admin-pin.active { background: var(--brand); color: #fff; }
.admin-nav a.admin-pin.active i { color: #fff; }
.admin-nav a.admin-pin .count { position: absolute; top: .5rem; right: .5rem; margin: 0; }

/* Sister pages of the open section, as tabs above the page */
.admin-tabs { display: flex; gap: .4rem; overflow-x: auto; margin: -.3rem 0 1rem; padding-bottom: .3rem; scrollbar-width: thin; }
.admin-tabs a { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: var(--radius-full);
    border: 1px solid var(--line); background: #fff; color: #3c4540; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.admin-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.admin-tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.admin-tabs a b { background: var(--live); color: #fff; border-radius: var(--radius-full); font-size: .7rem; padding: .05rem .4rem; }
/* The phone tab bar: hidden on a wide screen, where the sidebar is always there. */
.admin-tabbar { display: none; }
@media (max-width: 900px) {
    .admin-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
        background: var(--ink); border-top: 1px solid #2c3029; padding: .3rem 0 calc(.3rem + env(safe-area-inset-bottom)); }
    .admin-tabbar a, .admin-tabbar button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; background: none; border: 0;
        color: #aeb6b0; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
    .admin-tabbar span { position: relative; font-size: 1.15rem; }
    .admin-tabbar b { position: absolute; top: -.35rem; right: -.8rem; min-width: 1.1rem; padding: 0 .25rem; border-radius: 9px; background: var(--live); color: #fff; font-size: .62rem; line-height: 1.1rem; text-align: center; }
    .admin-tabbar a.active { color: #fff; }
    .admin-tabbar a.active span { color: var(--accent); }
    .admin-main { padding-bottom: 5.5rem; }
}

/* Rows a filter has hidden stay hidden, also when phone styles make rows into cards. */
.admin-main .table tr[hidden] { display: none !important; }

/* Admin tables on a phone: each row is a card, each cell a "heading · value" line.
   main.js puts the column heading on every cell as data-label. */
@media (max-width: 760px) {
    .admin-main .table.stack-on-phone, .admin-main .table.stack-on-phone tbody,
    .admin-main .table.stack-on-phone tr, .admin-main .table.stack-on-phone td { display: block; width: 100%; }
    .admin-main .table.stack-on-phone thead { display: none; }
    .admin-main .table.stack-on-phone tr { margin-bottom: .75rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-xs); }
    .admin-main .table.stack-on-phone td { position: relative; min-width: 0 !important; min-height: 2.2rem; padding: .45rem 0 .45rem 38%; border-bottom: 1px dashed var(--line); text-align: right; overflow-wrap: anywhere; }
    .admin-main .table.stack-on-phone td:last-child { border-bottom: 0; }
    .admin-main .table.stack-on-phone td::before { content: attr(data-label); position: absolute; left: 0; top: .55rem; width: 35%; text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); overflow-wrap: normal; }
    /* Cells without a heading (checkbox, photo, buttons) and full-width messages. */
    .admin-main .table.stack-on-phone td[data-label=""], .admin-main .table.stack-on-phone td[colspan] { padding-left: 0; text-align: left; }
    .admin-main .table.stack-on-phone td[data-label=""]::before, .admin-main .table.stack-on-phone td[colspan]::before { display: none; }
    .admin-main .table.stack-on-phone td[colspan] { text-align: center; }
    .admin-main .table.stack-on-phone td .btn, .admin-main .table.stack-on-phone td form { margin: .15rem 0 .15rem .3rem; }
    .admin-main .table.stack-on-phone td .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .admin-main .table.stack-on-phone td .input, .admin-main .table.stack-on-phone td .select { max-width: 58%; }
    /* Rows of action buttons wrap instead of running off the card. */
    .admin-main .table.stack-on-phone td .row, .admin-main .table.stack-on-phone td form { flex-wrap: wrap !important; justify-content: flex-end; }
    .admin-main .table:not(.stack-on-phone) td, .admin-main .table:not(.stack-on-phone) th { overflow-wrap: anywhere; white-space: normal; }
    /* Side-by-side layouts set on the page itself go one column on a phone. */
    .admin-main [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    .admin-main code { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) { .admin-sidebar { transition: none; } }

/* ── Brand wordmark ──────────────────────────────────────── */
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); line-height: 1; }

/* ── Photo feature cards (Register · Bid · Drive) ─────────── */
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.feature-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.feature-card > div { padding: 1.2rem 1.3rem 1.4rem; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { margin: 0; color: var(--muted); }

/* ── Location cards (head office & auction grounds) ───────── */
.location-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.location-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.location-card img { display: block; width: 100%; height: 270px; object-fit: cover; }
.location-card > div { padding: 1.3rem 1.4rem 1.5rem; }
.location-card .eyebrow { color: var(--brand); }
.location-card h3 { margin: .4rem 0 .5rem; }
.location-card p { margin: 0; }
.location-card .location-note { margin-top: .45rem; color: var(--muted); font-size: .93rem; }

/* ── Finance band photo & footer bank line ───────────────── */
.finance-band img.finance-photo { height: 118px; width: 210px; object-fit: cover; border-radius: var(--radius); }
.footer-banks { color: #cfe0d5; }
.footer-contact strong { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
    .feature-cards { grid-template-columns: minmax(0, 1fr); }
    .location-cards { grid-template-columns: minmax(0, 1fr); }
    .finance-band img.finance-photo { width: 100%; height: 180px; }
}
@media (max-width: 720px) {
    .brand-word { display: none; }
}

/* ── Buying-guide pages (pre-auction, in-house finance, live & online) ── */
.guide-stats { display: grid; gap: 1rem; align-content: start; }
.guide-stat { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-xs); }
.guide-stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; color: var(--brand); }
.guide-stat span { color: var(--muted); font-size: .95rem; }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.step-list li { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-xs); }
.step-num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.step-list h3 { margin: .15rem 0 .4rem; }
.step-list p { margin: 0; color: var(--muted); }

.callout { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--brand-tint); border: 1px solid #cfe3d7; border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; margin-top: 1.2rem; }
.callout-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.1rem; }
.callout h3 { margin: 0 0 .4rem; }
.callout p { margin: 0; }
.callout-warn { background: var(--warn-tint); border-color: #f0dc8a; }
.callout-warn .callout-icon { background: var(--ink); color: var(--warn); }

.buy-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.buy-option { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: var(--transition); }
.buy-option:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.buy-option i { font-size: 1.5rem; color: var(--brand); }
.buy-option h3 { margin: .6rem 0 .4rem; }
.buy-option p { margin: 0 0 .6rem; color: var(--muted); }
.buy-option .view-all { pointer-events: none; }

@media (max-width: 900px) { .buy-options { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
    .step-list li { flex-direction: column; gap: .8rem; }
    .callout { flex-direction: column; }
}

/* ── Pre-auction buy option on a lot card ────────────────── */
.vc-preauction { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; padding: .55rem .8rem; border: 1px solid #a9e3c2; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--brand-deep); font-size: .84rem; font-weight: 700; text-decoration: none; transition: var(--transition); }
.vc-preauction:hover { background: var(--accent); border-color: var(--accent-dark); }
.vc-preauction strong { font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }

/* ── Finance calculator ──────────────────────────────────── */
.finance-calc .calc-out { background: var(--brand-tint); border: 1px solid #cfe3d7; border-radius: var(--radius); padding: .5rem 1rem .8rem; }
.finance-calc .calc-row.total { border-top: 0; margin-top: 0; padding-top: .5rem; align-items: baseline; }
.finance-calc .calc-row.total span:last-child { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); }
.finance-calc .calc-out .calc-row + .calc-row { border-top: 1px solid #cfe3d7; }

/* ── WhatsApp ────────────────────────────────────────────── */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: .6rem; }
.float-stack .float-call { position: static; right: auto; bottom: auto; }
.float-whatsapp { width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.55rem; box-shadow: var(--shadow-lg); transition: var(--transition); }
.float-whatsapp:hover { background: #1da851; color: #fff; transform: scale(1.06); }
/* On a phone a tall stack of bubbles sits on top of the buttons underneath it, so the two
   go side by side in the corner and step out of the way while somebody is filling a form. */
@media (max-width: 720px) {
    .float-stack { grid-auto-flow: column; gap: .5rem; right: 12px; bottom: 12px; }
    .float-stack .float-call, .float-stack .float-whatsapp { width: 46px; height: 46px; font-size: 1.2rem; }
    .float-stack .float-whatsapp { font-size: 1.3rem; }
    /* Thumb-sized targets: a heart, a hamburger and a gallery counter are all easy to miss. */
    .watch-btn { padding: .55rem .8rem; font-size: .8rem; }
    .nav-toggle { padding: .4rem .7rem; }
    .gallery-count { padding: .6rem .9rem; }
    .btn-sm { padding: .6rem .9rem; }
    .cat-pill { padding: .6rem 1rem; }
    .quick-bids button { padding: .7rem .45rem; }
}
body.is-typing .float-stack, body:has(.site-header.open) .float-stack { opacity: 0; visibility: hidden; transform: translateY(8px); }
.float-stack { transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }

/* ── Customer reviews ────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, minmax(0, 1fr))); gap: 1.2rem; }
.review-card { display: flex; flex-direction: column; gap: .8rem; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.review-card.is-featured { border-top: 4px solid var(--accent); }
.review-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review-card figcaption { display: grid; gap: .25rem; margin-top: auto; }
.review-card figcaption strong { font-size: 1.02rem; }
.review-card figcaption span { color: var(--muted); font-size: .9rem; }
.review-card .chip { justify-self: start; }
.review-photo { display: block; margin: -.4rem -.4rem 0; border-radius: var(--radius); overflow: hidden; }
.review-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.stars { color: var(--accent-dark); letter-spacing: .12em; font-size: .95rem; }

/* ── Sold banner on a lot ────────────────────────────────── */
.sold-banner { display: flex; align-items: center; gap: 1rem; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 1rem 1.3rem; }
.sold-banner i { font-size: 1.6rem; color: var(--accent); }
.sold-banner strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.sold-banner span { color: #cfe0d5; font-size: .9rem; }

/* ── Automotive news ─────────────────────────────────────── */
/* Buying guides */
.guide-meta { opacity: .85; margin: 0; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.guide-photo { margin: 0 0 1.5rem; }
.guide-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.guide-photo figcaption { margin-top: .4rem; font-size: .78rem; color: var(--muted); }
.guide-photo figcaption a { color: inherit; text-decoration: underline; }
.guide-text { max-width: none; font-size: 1.04rem; line-height: 1.7; }
.guide-text h3 { margin-top: 1.4rem; }
.guide-text ul, .guide-text ol { padding-left: 1.3rem; }
.guide-text li { margin-bottom: .35rem; }
.guide-faq { margin-top: 2rem; }
.guide-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: .6rem; }
.guide-faq summary { cursor: pointer; padding: .85rem 1rem; font-weight: 700; }
.guide-faq details p { padding: 0 1rem .9rem; margin: 0; }
.guide-aside { position: sticky; top: 100px; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .guide-aside { position: static; } }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, minmax(0, 1fr))); gap: 1.3rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--brand-deep); }
.news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-source { position: absolute; left: 10px; bottom: 10px; padding: .25rem .6rem; border-radius: var(--radius-full); background: rgba(20, 21, 26, .82); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.news-body time { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.news-body h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--brand); }
.news-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.news-body .btn { margin-top: auto; align-self: flex-start; }
.news-credit { color: var(--muted); font-size: .88rem; }

/* ── Admin analytics chart ───────────────────────────────── */
.chart-bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: .6rem; background: var(--brand-tint); border: 1px solid #cfe3d7; border-radius: var(--radius); margin-bottom: .5rem; }
.chart-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.chart-bar span { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; transition: var(--transition); }
.chart-bar:hover span { background: var(--accent-dark); }

/* ── DEKRA chip on a lot card ────────────────────────────── */
.chip-dekra { background: #eef1ef; color: var(--muted); }
.chip-dekra.is-graded { background: var(--accent-tint); color: var(--brand-deep); }

/* ── DEKRA sticker ───────────────────────────────────────────
   The windscreen sticker, reproduced on screen: wordmark, grade letter, one word for
   what the grade means. Drawn in CSS so it stays sharp at any size and needs no image. */
.dekra-sticker { display: inline-grid; justify-items: center; align-content: center; gap: .05rem;
    border-radius: 50%; background: #fff; color: #1b2a21; text-align: center; line-height: 1;
    border: 2px solid #c8d2cb; box-shadow: 0 2px 10px rgba(14, 32, 22, .18); font-weight: 800; }
.dekra-sticker .ds-mark { font-family: var(--font-display); letter-spacing: .09em; color: #0a7d3c; }
.dekra-sticker .ds-grade { font-family: var(--font-display); font-weight: 800; color: #112b1c; }
.dekra-sticker .ds-word { text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.dekra-sticker.is-graded { border-color: #0a7d3c; }
.dekra-sticker.is-graded .ds-word { color: #0a7d3c; }
.dekra-sticker.grade-b { border-color: #2f6f3f; }
.dekra-sticker.grade-c, .dekra-sticker.grade-d { border-color: #b07c10; }
.dekra-sticker.grade-c .ds-word, .dekra-sticker.grade-d .ds-word { color: #8a5f09; }
.dekra-sticker.grade-e { border-color: #8f1022; }
.dekra-sticker.grade-e .ds-word { color: #8f1022; }
.dekra-sticker.is-plain { border-style: dashed; }

.dekra-sm { width: 58px; height: 58px; }
.dekra-sm .ds-mark { font-size: .52rem; }
.dekra-sm .ds-grade { font-size: 1.35rem; }
.dekra-sm .ds-word { font-size: .4rem; }

.dekra-lg { width: 92px; height: 92px; border-width: 3px; }
.dekra-lg .ds-mark { font-size: .72rem; }
.dekra-lg .ds-grade { font-size: 2.3rem; }
.dekra-lg .ds-word { font-size: .54rem; }

/* On the lot photo, top right, clear of the photo counter in the bottom corner. */
.gallery-main .dekra-sticker { position: absolute; right: 12px; top: 12px; z-index: 2; }

/* ── Browse by make, in the footer ───────────────────────── */
.footer-makes { padding: 1.2rem 0 .2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-makes h4 { margin-bottom: .6rem; }
.footer-make-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-make-links a { display: inline-flex; align-items: center; gap: .35rem; padding: .36rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-full);
    font-size: .84rem; font-weight: 600; color: #cfe0d5; }
.footer-make-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-make-links small { opacity: .62; font-weight: 700; }

/* ── Share a lot ─────────────────────────────────────────── */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.share-label { font-weight: 700; color: var(--muted); font-size: .9rem; margin-right: .3rem; }
.share-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .5rem .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-full); background: #fff; color: var(--ink);
    font-weight: 700; font-size: .88rem; cursor: pointer; transition: var(--transition); }
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-whatsapp:hover { border-color: #25d366; color: #138a42; }
.share-facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.copied { border-color: var(--brand); color: var(--brand); }

@media (max-width: 560px) {
    .share-row { gap: .4rem; }
    .share-label { width: 100%; margin-bottom: .1rem; }
    .share-btn { flex: 1 1 auto; justify-content: center; }
}

.dekra-panel-head { display: flex; align-items: center; gap: .9rem; }
.dekra-panel-head p { margin: 0; font-size: .86rem; color: var(--muted); }
.dekra-panel-head strong { display: block; color: var(--ink); font-size: 1rem; }

@media (max-width: 600px) {
    .gallery-main .dekra-sticker { right: 8px; top: 8px; }
    .dekra-lg { width: 70px; height: 70px; }
    .dekra-lg .ds-grade { font-size: 1.7rem; }
    .dekra-lg .ds-mark { font-size: .58rem; }
    .dekra-lg .ds-word { font-size: .46rem; }
}

/* ── Narrow pages, invoices, mailing list ────────────────── */
.container.narrow { max-width: 920px; }
.callout-ok { display: block; background: var(--accent-tint); border-color: #bfe6cd; }
.callout-ok h3 { color: var(--brand-deep); }
.table-plain th { width: 42%; text-align: left; color: var(--muted); font-weight: 600; }
.table-plain td, .table-plain th { padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.table .right, .table th.right { text-align: right; }

.invoice-sheet { padding: 2rem; }
.invoice-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding-bottom: 1.4rem; border-bottom: 2px solid var(--brand); }
.invoice-meta { text-align: right; }
.invoice-meta h1 { font-size: 1.5rem; margin: 0 0 .2rem; }
.invoice-number { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 800;
    letter-spacing: 1px; color: var(--brand); margin: 0 0 .4rem; }
.invoice-parties { display: grid; grid-template-columns: 1.3fr minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; }
.invoice-parties h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); margin: 0 0 .5rem; }
.buyer-code { background: var(--brand-deep); color: #fff; border-radius: var(--radius-lg);
    padding: 1.1rem 1.3rem; text-align: center; }
.buyer-code span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.buyer-code strong { display: block; font-size: 2.3rem; line-height: 1.1; letter-spacing: 6px;
    font-family: 'Barlow Condensed', sans-serif; }
.buyer-code .help { color: rgba(255, 255, 255, .8); margin: .4rem 0 0; }
.invoice-lines { margin-top: .5rem; }
.invoice-lines tbody tr:last-child { font-weight: 600; }
.invoice-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.8rem; margin-top: 1.4rem; }
.invoice-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; color: var(--muted); }
.invoice-steps li { padding-left: .2rem; }
.invoice-steps strong { color: var(--ink); }
.invoice-pay h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.invoice-proof { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.invoice-proof h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.invoice-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem;
    padding-top: 1.2rem; border-top: 1px solid var(--line); }

.footer-signup { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    flex-wrap: wrap; padding: 1.4rem 1.25rem; margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-signup h4 { margin: 0 0 .25rem; }
.footer-signup p { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.signup-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup-form .input { min-width: 260px; }
.input-sm { padding: .4rem .6rem; font-size: .88rem; }

@media (max-width: 920px) {
    .invoice-sheet { padding: 1.2rem; }
    .invoice-head, .invoice-meta { text-align: left; }
    .invoice-parties, .invoice-pay { grid-template-columns: minmax(0, 1fr); }
    .signup-form, .signup-form .input { width: 100%; min-width: 0; }
}

/* ── Sold price guide: the little bar that shows one average against the biggest ── */
.pg-bar { display: block; height: 8px; min-width: 70px; border-radius: var(--radius-full); background: var(--brand-tint); overflow: hidden; }
.pg-bar span { display: block; height: 100%; background: var(--brand); border-radius: var(--radius-full); }
.pg-table td:last-child { min-width: 150px; }
@media (max-width: 600px) {
    /* On a phone the price is the column that matters, so the lot name wraps onto two
       lines and the ranges give up a little width rather than push the price off screen. */
    .pg-table td:last-child { min-width: 108px; }
    .pg-table th, .pg-lots th { white-space: normal; }
    .pg-lots td:first-child a { display: block; max-width: 140px; }
}

@media print {
    .site-header, .site-footer, .float-stack, .live-ticker, .invoice-proof, .invoice-actions,
    .announce-bar, .toast-stack, .skip-link { display: none !important; }
    body { background: #fff; }
    .section { padding: 0 !important; }
    .invoice-sheet { box-shadow: none; border: 0; padding: 0; }
    .buyer-code { background: #fff; color: #000; border: 2px solid #000; }
    .buyer-code .help, .buyer-code span { color: #000; }
    a[href]::after { content: ''; }
}

/* Admin → Approve new stock: the bar with the approve buttons stays in reach while scrolling. */
.approve-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: -.2rem 0 .8rem; padding: .6rem 0; background: #fff; border-bottom: 1px solid var(--line); }
.approve-bar h2 { margin-right: auto; }
.show-on-phone { display: none; }
@media (max-width: 760px) {
    .approve-bar { position: static; }
    .approve-bar h2, .approve-bar .field, .approve-bar .btn { width: 100%; }
    .approve-bar .btn { justify-content: center; }
    .show-on-phone { display: inline; }
}
/* Admin → Duplicates: each group's copies side by side, stacked on a phone. */
.dup-group { padding: .8rem 0; border-top: 1px solid var(--line); }
.dup-lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, minmax(0, 1fr))); gap: .8rem; margin-top: .5rem; }
.dup-lot { display: flex; gap: .7rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.dup-lot.is-keep { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.dup-lot img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.dup-lot-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dup-lot-body .status-tag { align-self: flex-start; }
.dup-lot-body form { margin-top: .3rem; }
@media (max-width: 760px) { .dup-lots { grid-template-columns: minmax(0, 1fr); } }
/* Stock lists by group: Cars & Bakkies · Trucks & Trailers · Farm & Heavy Equipment. */
.group-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.group-tab { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-xs); }
.group-tab i { color: var(--brand); font-size: 1.15rem; }
.group-tab small { margin-left: auto; padding: .1rem .5rem; border-radius: 99px; background: var(--bg-alt, #f1f3f0); color: var(--muted); font-size: .75rem; }
.group-tab:hover { border-color: var(--brand); }
.group-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.group-tab.active i, .group-tab.active small { color: #fff; }
.group-tab.active small { background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
    .group-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
    .group-tab { padding: .6rem .7rem; font-size: .85rem; gap: .4rem; }
}
/* Home: rows of lots one after another need room between them. */
.carousel-wrap + .section-head { margin-top: 2.5rem; }

/* The BidCo SOLD sticker: stamped into the corner of the photo, so the vehicle stays in view.
   It lands with a little thump, and gives a wink when the card is hovered. */
img.sold-sticker, .vc-media img.sold-sticker, .admin-vcard-photo img.sold-sticker, .gallery-main img.sold-sticker {
    position: absolute; inset: auto; right: 10px; bottom: 36px; z-index: 2; width: 32%; max-width: 118px; height: auto;
    aspect-ratio: 1; object-fit: contain; border-radius: 50%; transform: rotate(12deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); pointer-events: none;
    animation: sold-stamp .55s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.gallery-main img.sold-sticker-lg { right: 18px; bottom: 18px; width: 24%; max-width: 200px; }
.admin-vcard-photo img.sold-sticker { bottom: 10px; width: 30%; max-width: 96px; }
.vehicle-card:hover .vc-media img.sold-sticker, .admin-vcard:hover .admin-vcard-photo img.sold-sticker { transform: rotate(-6deg) scale(1.08); transition: transform .25s ease; }
@keyframes sold-stamp { 0% { opacity: 0; transform: rotate(-25deg) scale(1.9); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { img.sold-sticker, .vc-media img.sold-sticker, .admin-vcard-photo img.sold-sticker, .gallery-main img.sold-sticker { animation: none; } }
/* A thin green sold ribbon along the top of a sold card's photo. */
.vc-media:has(.sold-sticker)::after { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: #0f5a2e; z-index: 1; }
/* On the dark green strip (sold page) the chosen tab is dark so it stands out. */
.category-strip .group-tab.active { background: var(--ink); border-color: var(--ink); }

/* Admin → Approve new stock: a card per lot with its photos; tick on the photo, approve in bulk. */
.approve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, minmax(0, 1fr))); gap: 1rem; }
.approve-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: var(--shadow-xs); }
.approve-card.is-ticked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.approve-photo { position: relative; aspect-ratio: 4 / 3; background: #e3e8e5; }
.approve-strip { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.approve-strip::-webkit-scrollbar { display: none; }
.approve-strip a { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.approve-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.approve-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-xs); cursor: pointer; }
.approve-nav.prev { left: .5rem; } .approve-nav.next { right: .5rem; }
.approve-nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); }
.approve-tick { position: absolute; top: .6rem; left: .6rem; cursor: pointer; display: flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 99px;
    background: rgba(255, 255, 255, .95); font-weight: 800; font-size: .85rem; box-shadow: var(--shadow-xs); }
.approve-tick input { width: 1.25rem; height: 1.25rem; accent-color: var(--brand); }
.approve-card.is-ticked .approve-tick { background: var(--brand); color: #fff; }
.approve-count { position: absolute; right: .6rem; bottom: .6rem; padding: .2rem .5rem; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .75rem; }
.approve-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 3px; background: #f1f3f0; }
.approve-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: none; }
.approve-thumbs button.is-on { border-color: var(--brand); }
.approve-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.approve-body { display: flex; flex-direction: column; gap: .35rem; padding: .8rem; }
.approve-title a { color: var(--ink); text-decoration: none; }
.approve-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .3rem; }
.approve-prices label { display: flex; flex-direction: column; gap: .2rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.approve-prices .input { min-width: 0; padding: .45rem .5rem; }
.approve-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.approve-float { position: fixed; left: 50%; bottom: 1rem; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem;
    padding: .6rem .7rem .6rem 1.1rem; border-radius: 99px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.approve-float[hidden] { display: none; }
@media (max-width: 760px) {
    .approve-grid { grid-template-columns: minmax(0, 1fr); }
    .approve-float { left: .6rem; right: .6rem; transform: none; bottom: calc(5.2rem + env(safe-area-inset-bottom)); border-radius: 14px; justify-content: space-between; flex-wrap: wrap; }
    .approve-float .select { flex: 1; min-width: 0; }
}
/* Live ticker: Hot list lots in orange, with a HOT flag on the photo. */
.ticker-item.is-hot { border-left-color: #f26b1d; }
.ticker-item.is-hot .ticker-who { color: #d9480f; }
.ticker-item.is-hot .ticker-amount { background: #f26b1d; }
.ticker-item.is-hot .ticker-media::after { content: '🔥 HOT'; position: absolute; top: 4px; left: 4px; padding: .05rem .35rem; border-radius: 4px;
    background: #f26b1d; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .62rem; letter-spacing: .06em; }
/* Lot page, signed in as admin: what the public does not see. */
.admin-only-box { margin-bottom: 1rem; padding: .8rem 1rem; border: 2px dashed #b7791f; border-radius: var(--radius-sm); background: #fffbeb; }
.admin-only-tag { display: block; margin-bottom: .5rem; color: #92400e; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-only-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, minmax(0, 1fr))); gap: .5rem; margin-bottom: .4rem; }
.admin-only-figures small { display: block; color: var(--muted); font-size: .7rem; }
.admin-only-figures strong { font-family: var(--font-display); font-size: 1.1rem; }
/* Admin dashboard: stock by type. */
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, minmax(0, 1fr))); gap: .8rem; }
.type-card { padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.type-card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: 1.05rem; }
.type-card-head i { color: var(--brand); font-size: 1.3rem; }
.type-card-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-bottom: .7rem; }
.type-card-figures a { display: flex; flex-direction: column; padding: .5rem; border-radius: 6px; background: #f1f5f2; color: var(--ink); text-decoration: none; text-align: center; }
.type-card-figures a:hover { background: #e2ece5; }
.type-card-figures b { font-family: var(--font-display); font-size: 1.4rem; }
.type-card-figures span { font-size: .7rem; color: var(--muted); }
.type-card-links { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Admin photo editor (assets/js/photo-editor.js). */
body.pe-open { overflow: hidden; }
.pe-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(10, 14, 12, .72); }
.pe-backdrop[hidden] { display: none; }
.pe-dialog { display: flex; flex-direction: column; gap: .6rem; width: min(1100px, 100%); max-height: 100%; overflow: auto; padding: .9rem; border-radius: var(--radius-sm); background: #fff; }
.pe-head { display: flex; align-items: center; gap: .8rem; }
.pe-msg { font-size: .85rem; color: var(--muted); }
.pe-x { margin-left: auto; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); }
.pe-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.pe-group { display: flex; flex-wrap: wrap; gap: .3rem; }
.pe-tools .btn:not(.btn-outline):not(.btn-dark) { background: #f1f5f2; border-color: var(--line); color: var(--ink); }
.pe-slider { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pe-slider input { width: 110px; accent-color: var(--brand); }
.pe-stage { position: relative; display: grid; place-items: center; min-height: 240px; background: #1b1f1d; border-radius: 6px; touch-action: none; user-select: none; overflow: hidden; }
.pe-stage canvas { display: block; max-width: 100%; max-height: 62vh; cursor: crosshair; }
.pe-box { position: absolute; border: 2px dashed #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.pe-apply { position: absolute; right: .6rem; bottom: .6rem; }
.pe-apply[hidden], .pe-box[hidden] { display: none; }
.pe-hint { margin: 0; }
.pe-foot { display: flex; justify-content: flex-end; gap: .5rem; }
.photo-edit-btn { position: absolute; z-index: 3; right: .6rem; top: .6rem; padding: .3rem .6rem; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .95);
    color: var(--ink); font-weight: 800; font-size: .8rem; box-shadow: var(--shadow-xs); cursor: pointer; }
@media (max-width: 760px) {
    .pe-backdrop { padding: 0; }
    .pe-dialog { height: 100%; border-radius: 0; }
    .pe-slider input { width: 90px; }
    .pe-foot .btn { flex: 1; justify-content: center; }
}

/* Admin → Promo pictures: the queue as cards. */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, minmax(0, 1fr))); gap: 1rem; }
.promo-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.promo-card.is-posted { opacity: .75; }
.promo-card.is-paused { border-style: dashed; }
.promo-photo { display: block; aspect-ratio: 1 / 1; background: #f1f5f2; }
.promo-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.promo-body { display: flex; flex-direction: column; gap: .5rem; padding: .7rem; }
.promo-body .status-tag { align-self: flex-start; }
.promo-body .textarea { font-size: .85rem; }
.promo-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }


/* Google reviews */
.google-badge { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; color: var(--ink, inherit); text-decoration: none; font-size: .95rem; }
.google-badge .fa-google { color: #4285f4; }
.google-badge span { color: var(--muted); }
.google-badge:hover span { text-decoration: underline; }
a.trust-item { color: inherit; text-decoration: none; }
a.trust-item .fa-google { color: #4285f4; }
.google-author { display: flex; align-items: center; gap: .7rem; }
.google-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.google-author div { display: grid; gap: .1rem; }
.google-author a { color: inherit; }
.google-author span a { color: var(--muted); }

/* Bidding: last bid, increment and the minimum next bid, right above the bid box. */
.bid-now-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: .8rem 0 .6rem; }
.bid-now-strip span { background: var(--brand-tint, #e6f2ea); border-radius: var(--radius-sm, 8px); padding: .45rem .55rem; text-align: center; }
.bid-now-strip small { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5f6b64); }
.bid-now-strip strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand-dark, #16402a); white-space: nowrap; }
.bid-now-strip strong.muted { color: var(--muted, #5f6b64); }
/* Phones: a bar along the bottom with the last bid and increment, and a button to the bid box. */
.bid-dock { display: none; }
@media (max-width: 900px) {
    .bid-dock { display: flex; align-items: center; justify-content: space-between; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--ink, #14151a); color: #fff; box-shadow: 0 -6px 18px rgba(0, 0, 0, .25);
        transition: transform .2s ease; }
    .bid-dock.is-hidden { transform: translateY(110%); }
    .bid-dock-figures { display: flex; gap: 1rem; min-width: 0; }
    .bid-dock-figures small { display: block; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
    .bid-dock-figures strong { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; color: #fff; }
    .bid-dock .btn { white-space: nowrap; flex: none; }
    body:has(.bid-dock) .float-stack { bottom: 84px; }
    body:has(.bid-dock) { padding-bottom: 72px; }
}

/* Admin → Bid desk: pick the customer once, then big photo cards with one-tap bids. */
.desk-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; position: sticky; top: 0; z-index: 5; }
.desk-bar .field { margin: 0; min-width: 150px; }
.desk-bar .desk-who { flex: 1 1 260px; }
.desk-bar .desk-who .select { font-weight: 700; border-color: var(--brand); }
.desk-mine { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.desk-banner { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--brand); color: #fff; }
.desk-banner i { font-size: 1.4rem; }
.desk-banner .help { color: rgba(255, 255, 255, .8); }
.desk-banner.is-empty { background: #fff7d6; color: #6b5200; }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, minmax(0, 1fr))); gap: 1rem; }
.desk-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; scroll-margin-top: 9rem; }
.desk-card.is-leading { border: 2px solid var(--brand); }
.desk-card.desk-flash { animation: bid-flash 1.2s ease; }
.desk-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #dfe3e0; }
.desk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.desk-lotno { position: absolute; left: 8px; top: 8px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .8rem; padding: .2rem .55rem; border-radius: 4px; }
.desk-clock { position: absolute; right: 8px; bottom: 8px; background: rgba(15, 42, 27, .88); color: #fff; font-weight: 700; font-size: .85rem; padding: .25rem .6rem; border-radius: 4px; }
.desk-clock .urgent { color: #ffd23f; }
.desk-body { display: flex; flex-direction: column; gap: .35rem; padding: .75rem .8rem .85rem; flex: 1; }
.desk-title { font-size: 1.02rem; line-height: 1.25; }
.desk-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; margin-top: .2rem; }
.desk-figures > div { background: var(--bg); border-radius: 6px; padding: .35rem .4rem; min-width: 0; }
.desk-figures small { display: block; font-size: .66rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.desk-figures b { display: block; font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }
.desk-figures > div:first-child b { color: var(--brand); font-size: 1.2rem; }
.desk-leader { font-size: .82rem; color: var(--muted); }
.desk-card.is-leading .desk-leader { color: var(--brand-dark); font-weight: 700; }
.desk-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; margin-top: auto; padding-top: .3rem; }
.desk-actions .btn { width: 100%; justify-content: center; font-weight: 800; }
.desk-own { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }

/* Admin → Bidders: send the registration invoice / banking details from the person's row. */
.reg-send { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; padding: 6px; border-radius: 8px; background: var(--brand-tint); }
.reg-send .select { padding-top: .3rem; padding-bottom: .3rem; font-size: .82rem; }

/* Admin → Review before sending: the email exactly as the client will see it. */
.review-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.review-mail { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 8px; background: #f3f5f4; }
@media (max-width: 900px) { .review-grid { grid-template-columns: minmax(0, 1fr); } .review-mail { height: 600px; } }

/* Admin → Registrations: one card per person who registered to bid. */
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, minmax(0, 1fr))); gap: 1rem; }
.reg-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.reg-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.reg-card header strong { display: block; font-size: 1.05rem; }
.reg-number { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--brand); background: var(--brand-tint); padding: .15rem .6rem; border-radius: 6px; }
.reg-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.reg-facts i { width: 1.1rem; color: var(--muted); }
.reg-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.reg-actions .select { flex: 1 1 100%; }
.invoice-lines tr.is-due td { background: var(--brand-tint); }

/* Register to bid: slide-in card, bottom left on desktop, a bottom sheet on phones. */
.reg-nudge { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: 320px; max-width: calc(100vw - 32px);
    padding: 1.1rem 1.15rem 1rem; border-radius: 14px; background: #0f2a1b; color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    transform: translateY(24px); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), opacity .3s ease; }
.reg-nudge.is-open { transform: none; opacity: 1; }
.reg-nudge h3 { color: #fff; font-size: 1.5rem; margin: .2rem 0 .5rem; }
.reg-nudge-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffd23f; }
.reg-nudge ul { list-style: none; padding: 0; margin: 0 0 .85rem; display: grid; gap: .3rem; font-size: .9rem; }
.reg-nudge li i { color: #2fbf71; margin-right: .35rem; }
.reg-nudge .help { color: rgba(255, 255, 255, .7); font-size: .75rem; margin-top: .45rem; text-align: center; }
.reg-nudge-close { position: absolute; top: 6px; right: 10px; border: 0; background: none; color: rgba(255, 255, 255, .7); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.reg-nudge-close:hover { color: #fff; }
@media (max-width: 640px) {
    .reg-nudge { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .reg-nudge { transition: none; } }

/* On a live lot the options box is calmer: bidding leads, no big Buy Now price. */
.buy-options.is-live { background: var(--brand-tint); border-color: #cfe3d6; }
.reg-facts .reg-alert { color: #8f1022; font-weight: 700; }
.reg-facts .reg-alert i { color: #8f1022; }
.reg-bank { border-top: 1px dashed var(--line); padding-top: .5rem; font-size: .88rem; }
.reg-bank summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.reg-bank-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem .6rem; margin-top: .6rem; }
.reg-bank-form label { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.reg-bank-form label span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.reg-bank-form .reg-bank-note, .reg-bank-form .btn, .reg-bank-form .help { grid-column: 1 / -1; }
@media (max-width: 480px) { .reg-bank-form { grid-template-columns: minmax(0, 1fr); } }

/* Bid desk: who we are bidding for, and adding a phone caller on the spot. */
.desk-person { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: flex-start; margin: -.4rem 0 1rem; padding: .8rem 1rem; }
.desk-person-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .92rem; flex: 1 1 100%; }
.desk-person-facts i { width: 1.1rem; color: var(--muted); }
.desk-missing { color: #8f1022; font-weight: 700; }
.desk-edit, .desk-add { font-size: .9rem; }
.desk-edit { flex: 1 1 100%; }
.desk-edit summary, .desk-add summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.desk-add { margin: 0 0 1rem; padding: .7rem 1rem; }
.desk-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .7rem; margin-top: .7rem; align-items: end; }
.desk-form label { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.desk-form label > span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.desk-form .desk-wide { grid-column: span 2; }
@media (max-width: 760px) { .desk-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 480px) { .desk-form { grid-template-columns: minmax(0, 1fr); } .desk-form .desk-wide { grid-column: auto; } }

/* Bid desk: paid vs not paid, quick customer switching, lot ids from screenshots. */
.desk-banner.is-unpaid { background: #fff1cc; color: #6b4a00; }
.desk-banner.is-unpaid .help { color: #6b4a00; }
.desk-paid { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: rgba(255, 255, 255, .2); }
.desk-banner.is-unpaid .desk-paid { background: #c8102e; color: #fff; }
.desk-recent { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; }
.desk-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; text-decoration: none; }
.desk-chip i { color: var(--brand); }
.desk-chip.is-unpaid i { color: #c8102e; }
.desk-chip.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.desk-chip.is-current i { color: #fff; }
.desk-search { flex: 1 1 260px; }
.desk-search .input { border-color: var(--brand); font-weight: 600; }
.desk-ids { font-size: .85rem; color: var(--muted); }
.desk-ids b { color: var(--ink); background: #fff7d6; padding: 0 .3rem; border-radius: 4px; }

/* Account → My bids: the live bidding board. */
.board-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.board-summary span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; font-size: .9rem; }
.board-summary .is-good i { color: #2fbf71; }
.board-summary .is-bad { background: #c8102e; color: #fff; }
.board-heading { margin: 1.2rem 0 .7rem; font-size: 1.35rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, minmax(0, 1fr))); gap: 1rem; }
.board-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.board-card.is-leading { border: 2px solid var(--brand); }
.board-card.is-outbid { border: 2px solid #c8102e; }
.board-card.board-flash { animation: bid-flash 1.2s ease; }
.board-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: #dfe3e0; }
.board-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.board-clock { position: absolute; right: 8px; bottom: 8px; background: rgba(15, 42, 27, .88); color: #fff; font-weight: 700; font-size: .82rem; padding: .2rem .55rem; border-radius: 4px; }
.board-clock .urgent { color: #ffd23f; }
.board-body { display: flex; flex-direction: column; gap: .45rem; padding: .75rem .85rem .9rem; flex: 1; }
.board-title { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.25; }
.board-status { font-size: .85rem; font-weight: 800; color: var(--muted); }
.board-card.is-leading .board-status { color: var(--brand-dark); }
.board-card.is-outbid .board-status { color: #c8102e; }
.board-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .3rem; }
.board-figures > div { background: var(--bg); border-radius: 6px; padding: .3rem .45rem; min-width: 0; }
.board-figures small { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.board-figures b { display: block; font-family: var(--font-display); font-size: 1.1rem; white-space: nowrap; }
.board-figures > div:first-child b { color: var(--brand); }
.board-actions { display: grid; grid-template-columns: 1.3fr minmax(0, 1fr); gap: .4rem; margin-top: auto; }
.board-actions .btn { justify-content: center; font-weight: 800; }
@media (max-width: 640px) { .board-photo { aspect-ratio: 16 / 8; } }

/* Bid history: the name on one line, bidder number and town under it. */
.bh-name { display: block; font-weight: 700; }
.bh-more { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* Admin → Buyer database: weekly WhatsApp campaign; Bring a buyer hint on lot pages */
.campaign-text { font-family: inherit; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.campaign-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.campaign-picks a { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: var(--ink); text-decoration: none; }
.campaign-picks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.campaign-progress { width: 100%; height: 10px; accent-color: #25d366; margin-bottom: .6rem; }
.campaign-queue { list-style: none; margin: 0; padding: 0; max-height: 720px; overflow-y: auto; }
.campaign-queue li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.campaign-queue li.sent { opacity: .55; }
.row-muted td { opacity: .5; }
.lead-edit > summary { list-style: none; cursor: pointer; }
.lead-edit > summary::-webkit-details-marker { display: none; }
.lead-edit[open] form { margin-top: .5rem; min-width: 220px; }
.share-earn { flex-basis: 100%; font-size: .85rem; font-weight: 600; color: var(--brand); text-decoration: none; margin-top: .3rem; }
.share-earn:hover { text-decoration: underline; }
@media (max-width: 700px) { .campaign-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bid desk: Place bid picker */
.desk-place { width: 100%; justify-content: center; font-weight: 800; }
.desk-again .btn { width: 100%; justify-content: center; font-weight: 700; font-size: .85rem; }
.desk-actions { grid-template-columns: minmax(0, 1fr); }
.desk-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.desk-dialog::backdrop { background: rgba(10, 25, 16, .55); }
.desk-dialog h3 { font-size: .95rem; margin: 1rem 0 .45rem; }
.desk-dlg-head { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.desk-dlg-head img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px; background: #dfe3e0; }
.desk-dlg-head div { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.desk-dlg-head b { color: var(--brand); }
.desk-dlg-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); align-self: start; }
.desk-dlg-group { margin-top: .55rem; }
.desk-dlg-group[hidden] { display: none; }
.desk-dlg-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.desk-dlg-chips .desk-chip { cursor: pointer; }
.desk-dlg-who { margin: .7rem 0 .2rem; padding: .55rem .7rem; border-radius: 6px; background: var(--bg); font-size: .9rem; }
.desk-tag-paid { background: var(--brand); color: #fff; font-weight: 800; font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; }
.desk-tag-unpaid { background: #c8102e; color: #fff; font-weight: 800; font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; }
.desk-dlg-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.desk-dlg-amounts .btn { justify-content: center; font-weight: 700; }
.desk-dlg-amounts .btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.desk-dlg-channel { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; font-size: .85rem; font-weight: 600; }
.desk-dlg-channel .select { width: auto; }
.desk-dlg-go { width: 100%; justify-content: center; }
.desk-dlg-chips .desk-chip.is-unpaid:not(.is-current) { border-color: #c8102e; color: #8f1022; }

/* Admin → Auction events: autopilot */
.autopilot-card { border-left: 4px solid var(--line); }
.autopilot-card.is-on { border-left-color: var(--brand); }
.autopilot-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.autopilot-head .switch-row { display: flex; align-items: center; gap: .45rem; font-size: 1rem; cursor: pointer; }
.autopilot-head .switch-row input { width: 22px; height: 22px; accent-color: var(--brand); }
.autopilot-steps { margin: .8rem 0; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .92rem; }
.autopilot-days { display: inline-block; width: 70px; padding: .15rem .4rem; }
.autopilot-foot { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }
.autopilot-foot label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.autopilot-now { list-style: none; margin: 1rem 0 0; padding: .7rem .9rem; background: var(--bg); border-radius: var(--radius-sm); display: grid; gap: .35rem; font-size: .9rem; }
.autopilot-now i { width: 1.2rem; color: var(--brand); }
.autopilot-confirm { border-left: 4px solid var(--accent, #f2b705); }
.autopilot-all { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; margin: .3rem 0 .6rem; }
.autopilot-lots { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, minmax(0, 1fr))); gap: .5rem; }
.autopilot-lots label, .autopilot-lots a { display: flex; gap: .6rem; align-items: center; padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.autopilot-lots img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; background: #dfe3e0; }
.autopilot-lots span { display: flex; flex-direction: column; min-width: 0; font-size: .88rem; }

/* Admin → Today */
.today-clear { display: flex; gap: .8rem; align-items: center; font-size: 1.05rem; }
.today-clear i { font-size: 1.6rem; color: var(--brand); }
.today-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, minmax(0, 1fr))); gap: .6rem; margin-bottom: 1rem; }
.today-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.today-tile:hover { border-color: var(--brand); }
.today-tile i { grid-row: span 2; font-size: 1.3rem; color: var(--brand); }
.today-tile b { font-size: 1.5rem; line-height: 1; font-family: var(--font-display); }
.today-tile span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.today-section h2 { font-size: 1.05rem; margin: 0 0 .6rem; display: flex; gap: .5rem; align-items: center; }
.today-urgent { border-left: 4px solid #c8102e; }
.today-list { list-style: none; margin: 0 0 .6rem; padding: 0; }
.today-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.today-list.compact > li { padding: .4rem 0; }
.today-main { flex: 1 1 320px; min-width: 0; }
.today-main .help { display: block; }
.today-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.today-actions form { margin: 0; }

/* Bid desk: auto-bids on a lot */
.desk-max { list-style: none; margin: .1rem 0 0; padding: 0; font-size: .8rem; display: grid; gap: .2rem; }
.desk-max li { display: flex; align-items: center; gap: .35rem; background: #eef6f1; border-radius: 6px; padding: .2rem .45rem; }
.desk-max li.is-out { background: #fdecee; color: #8f1022; }
.desk-max form { margin: 0 0 0 auto; }
.desk-max-x { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--muted); }

/* Stock page: lots grouped under their auction */
.event-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .6rem 1rem; margin: 1.6rem 0 .8rem; padding-bottom: .55rem; border-bottom: 2px solid var(--brand); }
.event-group-head:first-of-type { margin-top: .4rem; }
.event-group-head h3 { margin: 0 0 .15rem; font-size: 1.15rem; display: flex; gap: .45rem; align-items: center; }
.event-group-head h3 i { color: var(--brand); }
.event-group-head .text-muted { font-size: .88rem; }

/* Auctions: type tabs; a lot that just took its first bid */
.auction-groups { margin-bottom: 1.2rem; }
.vehicle-card.vc-moved-up { animation: bid-flash 1.4s ease 2; }

/* Phones: the Bid desk shows more lots per screen, and the Place button never scrolls away */
@media (max-width: 640px) {
    .desk-photo { aspect-ratio: 16 / 9; }
    .desk-grid { gap: .7rem; }
    .desk-dialog { padding: .8rem .85rem 0; }
    .desk-dialog [data-dlg-go] { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 16px rgba(255, 255, 255, .95); margin-top: .4rem; }
    .desk-dialog [data-dlg-max] { margin-bottom: .6rem; }
    .today-actions .btn { min-height: 40px; }
    .today-tile { padding: .65rem .7rem; }
}
@media (max-width: 640px) {
    /* The Bid desk search scrolls away on a phone instead of covering half the screen; how the bid came in is chosen in Place bid. */
    .desk-bar { position: static; gap: .5rem; padding: .7rem; }
    .desk-bar .field:has(#desk-channel) { display: none; }
    .desk-bar .desk-search { flex: 1 1 100%; }
    .desk-bar .field { min-width: 0; flex: 1 1 auto; }
    .desk-banner.is-empty { display: none; }
}
.btn-block { white-space: normal; text-align: center; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }

/* Lot page: No reserve, WhatsApp updates, sold-price hint */
.no-reserve-badge { background: #ffd23f; color: #1f2421 !important; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; }
.pill-noreserve { background: #ffd23f !important; color: #1f2421 !important; font-weight: 800; }
.pill-noreserve-tab { border-color: #ffd23f; background: #fff8d6; }
.lot-updates { border: 1px solid #b7e4c7; background: #f1faf4; }
.lot-updates strong { display: flex; gap: .45rem; align-items: center; }
.lot-updates strong .fa-whatsapp { color: #25d366; font-size: 1.2rem; }
.lot-updates-form { display: grid; gap: .45rem; }
.lot-updates-form .btn { justify-content: center; }
.price-hint strong { display: flex; gap: .45rem; align-items: center; margin-bottom: .25rem; }
.price-hint p { font-size: .9rem; }

/* Bidders we bid for: open lots by photo, straight into the Place bid form */
.ab-lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; margin: .6rem 0; }
.ab-lot { display: flex; gap: .6rem; align-items: center; padding: .45rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; }
.ab-lot:hover { border-color: var(--brand); }
.ab-lot img { width: 92px; height: 69px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: #dfe3e0; }
.ab-lot-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .88rem; }
.ab-lot-body .btn { align-self: flex-start; margin-top: .15rem; }
@media (max-width: 640px) { .desk-dlg-amounts .btn { white-space: nowrap; font-size: .82rem; padding-inline: .4rem; } }

/* Dashboard: bids I placed for customers */
.my-bids-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.my-bids-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .6rem; }
.my-bid { display: flex; gap: .65rem; padding: .55rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.my-bid.is-outbid { border-left-color: #c8102e; }
.my-bid.is-leading, .my-bid.is-won { border-left-color: var(--brand); }
.my-bid img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #dfe3e0; }
.my-bid-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .88rem; }
.my-bid-actions { display: flex; gap: .35rem; margin-top: .25rem; }

/* My account before the first bid: a calm "ready when you are" */
.first-bid { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.2rem; }
.first-bid-grid { margin: .8rem 0 1rem; }
.first-bid-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .6rem; margin-bottom: 1rem; }
.first-bid-ways > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; padding: .7rem; background: var(--bg); border-radius: var(--radius-sm); font-size: .9rem; }
.first-bid-ways i { grid-row: span 2; color: var(--brand); font-size: 1.1rem; margin-top: .15rem; }
.first-bid-ways span { color: var(--muted); }
.find-strip { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; margin-bottom: 1rem; background: #f1faf4; border: 1px solid #b7e4c7; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: .92rem; }
.find-strip > i:first-child { color: var(--brand); font-size: 1.1rem; }
.find-strip span { flex: 1; min-width: 0; }
.find-strip:hover { border-color: var(--brand); }

/* My bids: bids to consider for you */
.for-you { margin-bottom: 1.4rem; }
.for-you-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.for-you-item { display: flex; flex-direction: column; gap: .35rem; }
.for-you-why { font-size: .8rem; font-weight: 700; color: var(--brand-dark, #1c4d30); background: #eef6f1; border-radius: 999px; padding: .2rem .65rem; align-self: flex-start; max-width: 100%; }
.for-you-item .vehicle-card { flex: 1; }
@media (max-width: 640px) {
    .for-you .vehicle-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; padding-bottom: .4rem; }
    .for-you .for-you-item { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Admin → Auction events: wrap up and reopen */
.wrapup-card { border-left: 4px solid var(--brand); }
.wrapup-steps { padding-left: 1.3rem; display: grid; gap: .45rem; font-size: .92rem; margin: .4rem 0 1rem; }
.wrapup-days { display: inline-block; width: 64px; padding: .15rem .4rem; }

/* Recent winners strip (home, sold) */
.winners-band { background: linear-gradient(180deg, #fff8e1, #fffdf6); }
.winners-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.winner-card { display: flex; gap: .6rem; align-items: center; padding: .55rem; background: #fff; border: 1px solid #f0dc8a; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.winner-card:hover { border-color: #d4a017; }
.winner-card img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: #dfe3e0; }
.winner-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .86rem; }
.winner-trophy { font-weight: 800; color: #8a6d00; }
.winner-trophy i { color: #d4a017; }
.text-danger { color: #c8102e; }
.wrapup-note { color: #8a3b00; }

/* Admin → Descriptions assistant */
.writer-card { margin-top: .8rem; }
.writer-head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .8rem; align-items: start; margin-bottom: .6rem; }
.writer-head img, .writer-nophoto { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.writer-nophoto { display: grid; place-items: center; background: #eef1ef; color: var(--muted); font-size: 1.4rem; }
.writer-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.chip-warn { background: #fff6e5; border-color: #f0d49a; color: #7a5200; white-space: normal; }
.writer-old { margin: 0 0 .6rem; font-size: .9rem; }
.writer-old summary { cursor: pointer; color: var(--muted); }
.writer-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: .4rem 0; }
.writer-plain { margin: 0; padding-left: 1.1rem; line-height: 1.7; }
@media (max-width: 560px) { .writer-head { grid-template-columns: 64px minmax(0, 1fr); } .writer-head img, .writer-nophoto { width: 64px; height: 48px; } }

/* ===== Careers (careers.php) ===== */
.career-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(242,183,5,.22), transparent 60%), linear-gradient(135deg, #123a24 0%, #21603b 60%, #2b7a4c 100%);
    color: #fff; padding: 3.2rem 0 2.6rem; overflow: hidden; }
.career-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(2.3rem, 6.5vw, 4.4rem); line-height: .98; margin: .4rem 0 1rem; letter-spacing: -.01em; color: #fff; }
.career-hero h1 span { color: #f2b705; }
.career-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #cfe7d8; margin: 0; }
.career-kicker.dark { color: var(--brand); }
.career-live { font-size: .5rem; color: #f2b705; animation: careerPulse 1.6s ease-in-out infinite; }
@keyframes careerPulse { 50% { opacity: .25; } }
.career-lede { font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 40rem; color: #e3f1e8; margin: 0 0 1.4rem; }
.career-lede strong { color: #fff; }
.career-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
.career-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 46rem; }
.career-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: .8rem .9rem; }
.career-stats strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1; color: #f2b705; }
.career-stats span { font-size: .82rem; color: #d7ebde; }
.career-h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1.2rem; }
.career-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; counter-reset: none; }
.career-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem; position: relative; }
.career-steps li:last-child { background: #fff8e1; border-color: #f2d27a; }
.career-steps li > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: .6rem; }
.career-steps li:last-child > span { background: #f2b705; color: #1d1d1d; }
.career-steps h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.career-steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.career-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.career-grid h3 { margin-top: 0; font-size: 1.08rem; }
.career-grid h3 i { color: var(--brand); margin-right: .3rem; }
.career-board { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.career-board li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.career-board .pos { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #eef6f1; color: var(--brand); font-weight: 800; }
.career-board li:first-child .pos { background: #f2b705; color: #1d1d1d; }
.career-board .career-dots { margin-left: auto; }
.career-channels { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .9rem; }
.career-channels legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.career-form { border-top: 4px solid #f2b705; }
/* The applicant's own page */
.career-hero-me { padding: 2.2rem 0; }
.career-me { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.career-me h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: .3rem 0 .5rem; }
.career-ring { --pct: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(#f2b705 calc(var(--pct) * 1%), rgba(255,255,255,.15) 0); }
.career-ring > div { width: 118px; height: 118px; border-radius: 50%; background: #1a4d30; display: grid; place-items: center; align-content: center; text-align: center; }
.career-ring strong { font-family: 'Barlow Condensed', sans-serif; font-size: 3.2rem; line-height: .9; color: #fff; }
.career-ring span { font-size: .85rem; color: #cfe7d8; }
.career-status { margin: 0 0 .9rem; color: #e3f1e8; font-size: 1.02rem; }
.career-status i { color: #f2b705; margin-right: .3rem; }
.career-dots { display: inline-flex; align-items: center; gap: .4rem; }
.career-dots > span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px dashed rgba(255,255,255,.45); color: #d7ebde; font-weight: 800; font-size: .9rem; }
.career-dots > span.on { background: #f2b705; border: 2px solid #f2b705; color: #1d1d1d; }
.career-dots > span.goal { border-style: solid; border-color: #fff; color: #fff; }
.career-dots.small > span { width: .8rem; height: .8rem; border: 2px solid #c9d6ce; }
.career-dots.small > span.on { background: var(--brand); border-color: var(--brand); }
.career-leads { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: grid; gap: .45rem; }
.career-leads li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .7rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.career-lead-name { font-weight: 700; }
.career-leads .text-muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.career-pill { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; background: #f1f3f2; color: #5f6b64; white-space: nowrap; }
.career-pill.successful { background: #e3f4ea; color: #1a7f37; }
.career-pill.rejected { background: #fbecec; color: #a33; }
@media (max-width: 900px) {
    .career-steps, .career-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .career-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .career-hero { padding: 2.2rem 0 1.8rem; }
    .career-steps, .career-grid, .career-channels { grid-template-columns: minmax(0, 1fr); }
    .career-me { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1rem; }
    .career-ring { width: 120px; height: 120px; }
    .career-ring > div { width: 94px; height: 94px; }
    .career-ring strong { font-size: 2.5rem; }
    .career-leads li { grid-template-columns: minmax(0, 1fr) auto; }
    .career-leads li .text-muted { grid-column: 1 / -1; grid-row: 2; }
}
/* Admin → Careers */
.career-admin-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.career-admin-tiles a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; color: inherit; }
.career-admin-tiles a:hover { border-color: var(--brand); }
.career-admin-tiles strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; line-height: 1; color: var(--brand); }
.career-admin-tiles span { font-size: .82rem; color: var(--muted); }
.career-admin-tiles a.hot { background: #fff8e1; border-color: #f2d27a; }
.career-admin-tiles a.hot strong { color: #8a6d00; }
.career-app { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .55rem; background: #fff; }
.career-app > summary { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .75rem .9rem; cursor: pointer; list-style: none; }
.career-app > summary::-webkit-details-marker { display: none; }
.career-app[open] > summary { border-bottom: 1px solid var(--line); }
.career-app-name { flex: 1 1 14rem; min-width: 0; display: grid; }
.career-app-body { padding: .8rem .9rem 1rem; }
.career-app-contact { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.career-app-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; margin-top: .9rem; }
.career-box { display: grid; gap: .45rem; align-content: start; background: #f7f9f8; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; }
.career-sub > summary { cursor: pointer; color: var(--brand); font-weight: 600; padding: .3rem 0; }
.admin-body .career-leads li { grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) auto; }
@media (max-width: 900px) { .career-admin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .career-admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Careers: vehicles to post, captions, proof of work */
.career-cheer { display: flex; gap: .6rem; align-items: flex-start; background: #fff8e1; border: 1px solid #f2d27a; border-radius: 12px; padding: .9rem 1rem; font-weight: 600; color: #4d3b00; }
.career-cheer i { color: #e08a00; font-size: 1.2rem; margin-top: .1rem; }
.career-cars { display: grid; gap: .9rem; margin-top: .6rem; }
.career-car { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: #fff; }
.career-car-photo { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eef1ef; }
.career-car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.career-car-photo span { position: absolute; top: .5rem; left: .5rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
    background: #f2b705; color: #1d1d1d; font-weight: 800; }
.career-car-body h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.career-car-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .6rem; }
.career-caption { border-top: 1px solid var(--line); padding: .45rem 0; }
.career-caption summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--brand); }
.career-caption textarea { margin: .45rem 0; font-size: .88rem; background: #f7f9f8; resize: vertical; }
.career-tips { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.career-proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.career-proofs a { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #eef1ef; }
.career-proofs img { width: 100%; height: 100%; object-fit: cover; }
.career-proofs i { position: absolute; right: .3rem; bottom: .3rem; background: #fff; border-radius: 50%; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: .75rem; color: var(--brand); }
.career-cv-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.career-cv-form .input { flex: 1 1 14rem; min-width: 0; }
@media (max-width: 640px) { .career-car { grid-template-columns: minmax(0, 1fr); } }
.career-pay { display: inline-flex; align-items: center; gap: .5rem; background: rgba(242,183,5,.16); border: 1px solid rgba(242,183,5,.5); color: #fff;
    border-radius: 999px; padding: .45rem 1rem; margin: -.4rem 0 1.4rem; font-size: 1rem; }
.career-pay i { color: #f2b705; }

/* Careers: review queue and bank details in admin */
.career-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.career-review-who { display: grid; gap: .15rem; min-width: 0; }
.career-review-do { display: grid; gap: .4rem; align-content: start; min-width: 12rem; }
.career-bank-admin { display: flex; gap: .6rem; align-items: baseline; background: #f7f9f8; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin: .4rem 0; flex-wrap: wrap; }
.career-bank-admin > i { color: var(--brand); }
.career-bankq { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem .8rem; display: grid; gap: .45rem; margin: 0; }
.career-bankq legend { font-weight: 700; padding: 0 .3rem; }
.career-lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: center; }
/* Candidate dashboard (candidate.php) */
.cand-tabs { background: #fff; border-bottom: 1px solid var(--line); }
.cand-tabs .container { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.cand-tabs .container::-webkit-scrollbar { display: none; }
.cand-tabs a { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .95rem .9rem; color: #3c4540; font-weight: 600; font-size: .93rem;
    border-bottom: 3px solid transparent; white-space: nowrap; }
.cand-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.cand-tabs a b { background: var(--live); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .4rem; }
.cand-body { padding-top: 1.6rem; }
.cand-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.cand-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem .9rem; }
.cand-stats strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.9rem; line-height: 1; color: var(--brand); }
.cand-stats span { font-size: .82rem; color: var(--muted); }
.cand-steps { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .1rem; }
.cand-steps li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .7rem; align-items: start; padding: .55rem 0; border-top: 1px dashed var(--line); }
.cand-steps li:first-child { border-top: 0; }
.cand-steps li > span { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #c9d6ce; display: grid; place-items: center; font-size: .75rem; }
.cand-steps li.done > span { background: var(--brand); border-color: var(--brand); color: #fff; }
.cand-steps li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.cand-steps small { display: block; color: var(--muted); }
.cand-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: .6rem 0; }
.cand-dl dt { color: var(--muted); }
.cand-dl dd { margin: 0; overflow-wrap: anywhere; }
.cand-bank-now { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; background: #eef6f1; border-radius: 10px; padding: .7rem .9rem; }
.career-sub-summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: .4rem 0 .6rem; }
@media (max-width: 900px) { .career-admin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .cand-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .career-review, .career-lost { grid-template-columns: minmax(0, 1fr); }
}
/* Careers: vacancies */
.career-everyone { display: flex; gap: .8rem; align-items: flex-start; background: #fff8e1; border: 1px solid #f2d27a; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.1rem; }
.career-everyone i { color: #e08a00; font-size: 1.3rem; margin-top: .15rem; }
.career-everyone p { margin: 0; }
.career-vacancies { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.career-vacancy { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: grid; gap: .6rem; align-content: start; }
.career-vacancy h3 { margin: .1rem 0 .3rem; font-size: 1.2rem; }
.career-vacancy > a { justify-self: start; }
.career-vac-dept { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.career-vac-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--muted); font-size: .88rem; margin: 0 0 .3rem; }
.career-vac-meta i { color: var(--brand); margin-right: .2rem; }
.career-vacancy p { margin: 0; }
.career-vacancy details summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.career-vacancy h4 { margin: .7rem 0 .3rem; font-size: .95rem; }
.career-towards { margin: -.2rem 0 .6rem; color: #e3f1e8; }
.career-towards i { color: #f2b705; margin-right: .3rem; }
/* Careers: welcome for locals, quick questions */
.career-welcome-strip { padding-top: 1.6rem; padding-bottom: .4rem; }
.career-welcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.career-welcome > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.career-welcome > div:first-child { background: #eef6f1; border-color: #b9dcc7; }
.career-welcome i { font-size: 1.5rem; color: var(--brand); }
.career-welcome h3 { margin: .5rem 0 .3rem; font-size: 1.1rem; }
.career-welcome p { margin: 0 0 .3rem; }
.career-quick { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem .9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .9rem; margin: 0; }
.career-quick legend { font-weight: 700; padding: 0 .3rem; }
.career-quick .field:has(textarea) { grid-column: 1 / -1; }
@media (max-width: 760px) { .career-welcome, .career-quick { grid-template-columns: minmax(0, 1fr); } }
/* Admin → Careers: star ratings and interview answers */
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 1.6rem; line-height: 1; color: #d5dcd8; cursor: pointer; padding: 0 .05rem; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f2b705; }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.career-rated { color: #e0a800; letter-spacing: .05em; }
.career-qas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .4rem .9rem; margin: .3rem 0 .7rem; }
.career-qa { display: grid; gap: .1rem; background: #f7f9f8; border-radius: 8px; padding: .5rem .7rem; }
.career-qa span { font-size: .78rem; color: var(--muted); }
.career-qa strong { font-weight: 600; font-size: .92rem; }
/* Candidate dashboard: level, badges, Academy */
.cand-level { background: linear-gradient(135deg, #123a24, #21603b); color: #fff; border: 0; }
.cand-level .help { color: #cfe7d8; }
.cand-level-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cand-level-name { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: #f2b705; text-transform: uppercase; letter-spacing: .02em; }
.cand-level-top strong { font-size: 1rem; }
.cand-streak { background: rgba(255,255,255,.12); border-radius: 999px; padding: .3rem .8rem; font-weight: 700; }
.cand-streak i { color: #ff8a3d; }
.cand-bar { height: .6rem; border-radius: 999px; background: rgba(0,0,0,.12); overflow: hidden; margin: .8rem 0 .4rem; }
.cand-level .cand-bar { background: rgba(255,255,255,.15); }
.cand-bar span { display: block; height: 100%; border-radius: 999px; background: #f2b705; }
.cand-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.cand-badge { display: grid; justify-items: center; text-align: center; gap: .2rem; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; padding: .7rem .4rem; opacity: .65; }
.cand-badge i { font-size: 1.3rem; color: #9fb8a9; }
.cand-badge span { font-weight: 700; font-size: .85rem; }
.cand-badge small { font-size: .7rem; color: #cfe7d8; }
.cand-badge.got { opacity: 1; background: rgba(242,183,5,.16); border: 1px solid rgba(242,183,5,.6); }
.cand-badge.got i { color: #f2b705; }
.academy-list { display: grid; gap: .45rem; }
.academy-item { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fff; }
.academy-item:hover { border-color: var(--brand); }
.academy-item small { display: block; color: var(--muted); font-size: .82rem; }
.academy-num { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #eef6f1; color: var(--brand); font-weight: 800; }
.academy-item.done .academy-num { background: var(--brand); color: #fff; }
.academy-lesson h2 { margin: .2rem 0 .6rem; }
.academy-lesson ul, .academy-lesson ol { padding-left: 1.2rem; display: grid; gap: .45rem; }
.academy-q { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .7rem; display: grid; gap: .35rem; }
.academy-q legend { font-weight: 700; padding: 0 .3rem; }
.academy-q.right { border-color: #9fd3b2; background: #f2faf5; }
.academy-q.wrong { border-color: #f0c9a0; background: #fffaf3; }
.academy-why { margin: .2rem 0 0; font-size: .9rem; color: #3c4540; }
.academy-why i { color: var(--brand); }
.career-invited { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.12); border-radius: 999px; padding: .35rem .9rem; margin: .6rem 0 0; font-weight: 600; }
.career-invited i { color: #f2b705; }
@media (max-width: 560px) { .cand-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Careers: a role's own page */
.career-vac-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.career-vac-meta.light { color: #d7ebde; margin: 0 0 1.3rem; }
.career-vac-meta.light i { color: #f2b705; }
.career-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.career-role-grid h3 i, .stack > .form-card > h3 i { color: var(--brand); margin-right: .3rem; }
.career-role-grid h4 { margin: .8rem 0 .3rem; }
@media (max-width: 760px) { .career-role-grid { grid-template-columns: minmax(0, 1fr); } }
/* Careers: POPIA note, documents, commission */
.career-privacy { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .5rem; background: #f7f9f8; }
.career-privacy summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.career-privacy dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem .9rem; margin: .6rem 0 0; font-size: .9rem; }
.career-privacy dt { font-weight: 700; }
.career-privacy dd { margin: 0; color: #3c4540; }
.cand-docs { display: grid; gap: .55rem; }
.cand-doc { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .7rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cand-doc > i { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #f1f3f2; color: var(--muted); }
.cand-doc.accepted > i { background: var(--brand); color: #fff; }
.cand-doc.pending > i { background: #fff3cd; color: #8a6d00; }
.cand-doc.rejected > i { background: #fbecec; color: #a33; }
.cand-doc form { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.cand-doc form .input { flex: 1 1 12rem; min-width: 0; }
.cand-statement { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-top: .7rem; }
.cand-statement h3 { margin: 0 0 .4rem; font-size: 1.05rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.career-pill.estimate { background: #f1f3f2; color: #5f6b64; }
.career-pill.confirmed { background: #fff3cd; color: #8a6d00; }
.career-pill.paid { background: #e3f4ea; color: #1a7f37; }
@media print {
    body:has(.cand-print.printing) * { visibility: hidden; }   /* only while a candidate sheet prints — not every page */
    .cand-print.printing, .cand-print.printing * { visibility: visible; }
    .cand-print.printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
    .cand-print .no-print { display: none !important; }
}
@media (max-width: 560px) { .career-privacy dl { grid-template-columns: minmax(0, 1fr); } }
.career-com { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; justify-content: space-between; padding: .45rem 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.career-com-do { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.career-payrun { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .5rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .career-payrun { grid-template-columns: minmax(0, 1fr); } }
.cand-stats.cand-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .cand-stats.cand-stats-3 strong { font-size: 1.3rem; } }
/* Admin → Marketing: Meta audiences */
.meta-audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin-top: .6rem; }
.meta-aud { display: grid; gap: .35rem; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; background: #fff; }
.meta-aud .btn { justify-self: start; }
/* Area & budget pages (for-sale.php) */
.seo-hub { display: grid; gap: .9rem; }
.seo-hub h2 a { color: inherit; }
.seo-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.seo-links h3 { font-size: 1rem; margin: 0 0 .5rem; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 860px) { .seo-links { grid-template-columns: minmax(0, 1fr); } }
/* Weekly results card */
.results-card, .cand-results { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.results-card-img img, .cand-results > img { width: 100%; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); display: block; }
@media (max-width: 700px) { .results-card, .cand-results { grid-template-columns: minmax(0, 1fr); } .results-card-img img, .cand-results > img { max-width: 320px; } }
.career-places.few { color: #b26b00; font-weight: 700; }
.career-places.few i { color: #e08a00; }
.career-places.full { color: #a33; font-weight: 700; }
.career-places.full i { color: #a33; }

/* ── New bidder's guide (register, account, live & online auctions) ── */
.bidder-guide { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.bidder-guide li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.bidder-guide .bg-num { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.bidder-guide strong { display: block; margin-bottom: .2rem; }
.bidder-guide strong i { color: var(--brand); margin-right: .2rem; }
.bidder-guide p { margin: 0; color: var(--muted, #5f6b64); font-size: .95rem; line-height: 1.5; }
.bidder-guide.compact { gap: .55rem; }
.bidder-guide.compact li { padding: .65rem .8rem; gap: .65rem; }
.bidder-guide.compact .bg-num { flex-basis: 1.6rem; height: 1.6rem; font-size: .85rem; }
.bidder-guide.compact p { font-size: .85rem; }
.auth-side .bidder-guide li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.auth-side .bidder-guide p { color: rgba(255, 255, 255, .82); }
.auth-side .bidder-guide strong i { color: var(--accent); }
.auth-side .bidder-guide .bg-num { background: var(--accent); color: var(--ink); }
.reg-guide-mobile { display: none; margin: .75rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; background: #f6faf7; }
.reg-guide-mobile summary { cursor: pointer; font-weight: 700; color: var(--brand); }
@media (max-width: 900px) { .reg-guide-mobile { display: block; } }
.reg-preview { background: #f6faf7; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.reg-preview .form-grid { margin: .4rem 0; }
.reg-why { margin: .4rem 0 .8rem; padding-left: 1.1rem; display: grid; gap: .3rem; }
.reg-ask { display: grid; gap: .5rem; }
.viewing-row { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: .7rem; }
.viewing-row:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 640px) { .reg-ask .btn { width: 100%; justify-content: center; } }

/* ── WhatsApp follow-up strip (finance and Buy Now pages) ── */
.fq-wa { display: flex; gap: .75rem 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1rem 0; padding: .85rem 1rem; border-radius: 10px; background: #f2f4f3; }
.fq-wa div { flex: 1 1 240px; }
.fq-wa strong { display: block; }
.fq-wa span { font-size: .9rem; color: var(--muted); }
.fq-wa.late { background: #fff7e0; border: 1px solid #c9a24b; }
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; white-space: nowrap; }
.btn-wa:hover { background: #1ebe5a; color: #fff; }
@media (max-width: 640px) { .fq-wa .btn-wa { width: 100%; justify-content: center; } }

/* ── Buy Now ── */
.bn-wrap { max-width: 880px; }
.bn-steps { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.bn-steps li { background: #f2f4f3; color: var(--muted); border-radius: 10px; padding: .6rem .5rem; text-align: center; font-size: .82rem; line-height: 1.25; }
.bn-steps li strong { display: block; font-size: 1.05rem; }
.bn-steps li.done { background: #e6f4ea; color: #145c30; }
.bn-steps li.now { background: #153a26; color: #fff; box-shadow: inset 0 -4px 0 #c9a24b; }
.bn-card { border: 1px solid #c9a24b; background: #fffaf0; border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: .9rem; }
.bn-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.bn-figs div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.bn-figs small { display: block; color: var(--muted); }
.bn-figs strong { font-size: 1.25rem; color: #153a26; }
.bn-upload { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.bn-upload input[type=file] { flex: 1 1 220px; padding: .55rem; border: 1px dashed #b9c6bd; border-radius: 8px; background: #f8faf9; min-height: 44px; max-width: 100%; box-sizing: border-box; }
.bn-decide { display: grid; gap: .75rem; }
.bn-done { background: #e6f4ea; color: #145c30; border-left: 4px solid var(--brand); padding: .85rem 1rem; border-radius: 8px; font-weight: 600; }
.bn-privileges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.bn-privileges div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.bn-privileges i { font-size: 1.4rem; color: var(--brand); }
.bn-privileges h3 { font-size: 1.05rem; margin: .5rem 0 .25rem; }
.bn-privileges p { margin: 0; color: var(--muted); font-size: .93rem; }
.bn-percent { background: #fffaf0; border: 1px solid #c9a24b; border-radius: 12px; padding: .9rem 1rem; }
.bn-percent input[type=range] { width: 100%; accent-color: #153a26; }
.bn-percent .bn-out { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-weight: 700; color: #153a26; }
.bn-rules { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bn-rules div { border-radius: 12px; padding: .9rem 1rem; background: #f2f4f3; }
.bn-rules div.hot { background: #153a26; color: #fff; }
.bn-rules div.hot p { color: rgba(255, 255, 255, .85); }
.bn-rules h3 { font-size: 1rem; margin: 0 0 .3rem; }
.bn-rules p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
    .bn-steps { grid-template-columns: repeat(5, 1fr); gap: .25rem; }
    .bn-steps li { padding: .45rem .2rem; font-size: 0; }
    .bn-steps li strong { font-size: .95rem; }
    .bn-steps li.now span { font-size: .7rem; display: block; }
    .bn-figs { grid-template-columns: 1fr; }
    .bn-upload .btn, .bn-decide .btn { width: 100%; justify-content: center; }
}
.bn-admin-form { display: grid; gap: .35rem; margin-top: .4rem; min-width: 200px; }
.bn-admin-form .input { padding: .35rem .55rem; font-size: .88rem; }
@media (max-width: 640px) {
    #buynow td, #applications td { text-align: left; }
    #buynow td > *, #applications td > * { text-align: left; }
}
.bn-calc { width: 100%; border-collapse: collapse; margin: .6rem 0 .4rem; background: #fff; border-radius: 10px; overflow: hidden; font-size: .93rem; }
.bn-calc td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.bn-calc td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.bn-calc td small { color: var(--muted); }
.bn-calc tr.hl td { background: #153a26; color: #fff; }
.bn-calc tr.tot td { font-weight: 800; border-bottom: 0; }
.bn-calc tr.save td { background: #e6f4ea; color: #145c30; }

/* ── VIN policy ── */
.vin-policy h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.vin-policy h2:first-child { margin-top: 0; }
.vin-policy h2 i { color: var(--brand); margin-right: .35rem; }
.vin-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.vin-channels div { display: grid; gap: .2rem; background: #f6faf7; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.vin-channels i { color: var(--brand); font-size: 1.2rem; }
.vin-channels span { color: var(--muted); font-size: .9rem; }

/* VIN policy on lot pages */
.vin-policy-lot h3 { font-size: 1.02rem; margin: 1.1rem 0 .3rem; }
.vin-policy-lot h3 i { color: var(--brand); margin-right: .35rem; }
.vin-policy-lot p { font-size: .93rem; }

/* Bid desk: bidders we bid for helper */
.desk-helper > summary { cursor: pointer; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.desk-helper-count { background: var(--brand); color: #fff; border-radius: 999px; padding: .05rem .55rem; font-size: .8rem; }
.desk-helper-find { margin: .8rem 0; max-width: 420px; }
.desk-helper-list { display: grid; gap: .5rem; max-height: 560px; overflow-y: auto; padding-right: .2rem; }
.desk-helper-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 2fr auto; gap: .5rem 1rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.desk-helper-row[hidden] { display: none; }
.desk-helper-row.is-current { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(31, 94, 59, .15); }
.desk-helper-row.has-outbid { border-left: 4px solid #c8102e; }
.desk-helper-who { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; min-width: 0; }
.desk-helper-town { font-weight: 700; }
.desk-helper-town i { color: var(--brand); }
.desk-helper-addr { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-helper-tel { font-size: .85rem; }
.desk-helper-lots { display: flex; flex-wrap: wrap; gap: .3rem; }
.desk-helper-lot { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; border: 1px solid; }
.desk-helper-lot.is-leading { background: #e8f4ec; border-color: #9fcdb0; color: #1f5e3b; }
.desk-helper-lot.is-outbid { background: #fdecee; border-color: #f0a9b3; color: #a10d25; }
.desk-helper-act { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; justify-content: flex-end; }
.desk-helper-sum { font-size: .8rem; color: var(--muted); width: 100%; text-align: right; }
.desk-helper-sum strong { color: #a10d25; }
@media (max-width: 800px) {
  .desk-helper-row { grid-template-columns: 1fr; }
  .desk-helper-act { justify-content: flex-start; }
  .desk-helper-sum { text-align: left; }
}

/* Finance and Buy Now invoices: the client-facing layout (includes/invoice-styled.php) */
.invoice-sheet.is-finance { padding: 0; overflow: hidden; }
.fin-inv { --fi-deep: #0e3320; --fi-green: #21603b; --fi-gold: #c9a24b; --fi-soft: #f2f4f3; position: relative; padding: 0 2.2rem 0; border-top: 6px solid var(--fi-deep); box-shadow: inset 0 3px 0 var(--fi-gold); color: #17201b; }
.fin-inv::before { content: ''; position: absolute; inset: 22% 10% auto; height: 52%; background: url('../img/bidco-quote-logo.png') center / contain no-repeat; opacity: .045; pointer-events: none; }
.fin-inv > * { position: relative; }
.fin-inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0 1.2rem; }
.fin-inv-brand { display: flex; gap: .8rem; align-items: center; }
.fin-inv-brand div { display: flex; flex-direction: column; font-size: .78rem; color: #5f6b64; line-height: 1.45; }
.fin-inv-brand strong { color: var(--fi-deep); font-size: .95rem; }
.fin-inv-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.fin-inv-title span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5f6b64; }
.fin-inv-title strong { font-size: 1.5rem; color: var(--fi-green); }
.fin-inv-title em { font-style: normal; }
.fin-inv-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fin-inv-box { background: var(--fi-soft); border-radius: 8px; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; border-left: 5px solid var(--fi-gold); }
.fin-inv-box.is-green { border-left-color: var(--fi-green); }
.fin-inv-label { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5f6b64; }
.fin-inv-big { font-size: 1.3rem; color: var(--fi-deep); }
.fin-inv-big.is-due { color: #b3261e; }
.fin-inv-sub { font-size: .86rem; color: #4d5852; }
.fin-inv-dates { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.fin-inv-dates div { display: flex; flex-direction: column; gap: .2rem; }
.fin-inv-vehicle { margin: 1.4rem 0; background: var(--fi-deep); color: #fff; border-radius: 10px; padding: 1.2rem 1.4rem 1.3rem; }
.fin-inv-vehicle .fin-inv-label { color: var(--fi-gold); }
.fin-inv-vehicle h2 { color: #fff; font-size: 1.55rem; margin: .2rem 0 .9rem; }
.fin-inv-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.fin-inv-pills span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 700; }
.fin-inv-table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.fin-inv-table th { background: var(--fi-green); color: #fff; text-align: left; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: .7rem 1rem; }
.fin-inv-table td { padding: .9rem 1rem; border-bottom: 1px solid #d9dfdb; vertical-align: top; }
.fin-inv-table td strong { display: block; font-size: 1.02rem; }
.fin-inv-table td span { display: block; font-size: .84rem; color: #4d5852; margin-top: .15rem; }
.fin-inv-table .c { text-align: center; width: 70px; }
.fin-inv-table .r { text-align: right; width: 170px; white-space: nowrap; }
.fin-inv-link { font-size: .82rem; font-weight: 700; color: var(--fi-green); }
.fin-inv-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; margin: 1.3rem 0 1.6rem; }
.fin-inv-summary { width: 100%; font-size: .88rem; border-collapse: collapse; }
.fin-inv-summary td { padding: .3rem 0; color: #4d5852; }
.fin-inv-summary td:last-child { text-align: right; white-space: nowrap; }
.fin-inv-summary tr:last-child td { border-top: 1px solid #d9dfdb; padding-top: .45rem; color: #17201b; }
.fin-inv-due { background: var(--fi-gold); border-radius: 8px; padding: 1rem 1.3rem; display: flex; flex-direction: column; }
.fin-inv-due span { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2b2615; }
.fin-inv-due strong { align-self: flex-end; font-size: 1.85rem; color: #10140f; line-height: 1.2; }
.fin-inv.is-paid .fin-inv-due { background: var(--fi-green); }
.fin-inv.is-paid .fin-inv-due span, .fin-inv.is-paid .fin-inv-due strong { color: #fff; }
.fin-inv-h { display: inline-block; font-size: .95rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--fi-deep); padding-bottom: .3rem; border-bottom: 3px solid var(--fi-gold); margin: 0 0 1rem; }
.fin-inv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.6rem; }
.fin-inv-steps div { background: var(--fi-soft); border-radius: 8px; padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; }
.fin-inv-steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--fi-gold); color: #10140f; display: grid; place-items: center; font-size: .9rem; }
.fin-inv-steps strong { font-size: .95rem; color: var(--fi-deep); }
.fin-inv-steps span { grid-column: 1 / -1; font-size: .82rem; color: #4d5852; margin-top: .4rem; }
.fin-inv-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; margin-bottom: 1.6rem; }
.fin-inv-bank { font-size: .9rem; border-collapse: collapse; }
.fin-inv-bank th { text-align: left; font-weight: 400; color: #5f6b64; padding: .2rem 1.6rem .2rem 0; white-space: nowrap; }
.fin-inv-bank td { font-weight: 800; padding: .2rem 0; }
.fin-inv-terms { margin: 0; padding-left: 1.2rem; font-size: .83rem; color: #4d5852; }
.fin-inv-terms li { margin-bottom: .35rem; }
.fin-inv-foot { margin: 0 -2.2rem; background: var(--fi-deep); border-top: 4px solid var(--fi-gold); color: #fff; text-align: center; font-size: .84rem; padding: .9rem 1rem; }
.fin-inv-foot i { font-style: normal; opacity: .6; margin: 0 .5rem; }
/* Buy Now: photos, privileges, five steps */
.fin-inv.is-buynow .fin-inv-vehicle { border-left: 6px solid var(--fi-gold); margin-bottom: .7rem; }
.fin-inv-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.fin-inv-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--fi-soft); display: block; }
.fin-inv-photos-1 { grid-template-columns: 1fr; } .fin-inv-photos-1 img { aspect-ratio: 16 / 7; }
.fin-inv-photos-2 { grid-template-columns: 1fr 1fr; } .fin-inv-photos-3 { grid-template-columns: repeat(3, 1fr); }
.fin-inv-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1.2rem; border: 1px dashed var(--fi-gold); border-radius: 8px; padding: .7rem .8rem; background: #fbf7ec; }
.fin-inv-perks div { display: grid; grid-template-columns: auto 1fr; gap: 0 .5rem; align-items: center; }
.fin-inv-perks i { grid-row: span 2; color: var(--fi-gold); font-size: 1.1rem; }
.fin-inv-perks strong { font-size: .86rem; color: var(--fi-deep); }
.fin-inv-perks span { font-size: .76rem; color: #5f6b64; }
.fin-inv-steps.is-5 { grid-template-columns: repeat(5, 1fr); }
.fin-inv-steps .is-done { background: #e8f2ec; }
.fin-inv-steps .is-done b { background: var(--fi-green); color: #fff; }
.fin-inv.is-buynow .fin-inv-cols { grid-template-columns: 1fr; gap: 1rem; }
.fin-inv.is-buynow .fin-inv-bank { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: .15rem 1rem; }
.fin-inv.is-buynow .fin-inv-bank tbody, .fin-inv.is-buynow .fin-inv-bank tr { display: contents; }
.fin-inv.is-buynow .fin-inv-bank th, .fin-inv.is-buynow .fin-inv-bank td { padding: .15rem 0; }
.fin-inv.is-buynow .fin-inv-terms { columns: 2; column-gap: 2rem; }
.fin-inv.is-buynow .fin-inv-terms li { break-inside: avoid; }
.invoice-sheet.is-finance > .callout, .invoice-sheet.is-finance > .invoice-proof, .invoice-sheet.is-finance > .invoice-actions { margin-left: 2.2rem; margin-right: 2.2rem; }
.invoice-sheet.is-finance > .invoice-actions { margin-bottom: 1.6rem; }
.invoice-sheet.is-finance > .callout { margin-top: 1.4rem; }
@media (max-width: 760px) {
  .fin-inv { padding: 0 1rem; }
  .fin-inv-foot { margin: 0 -1rem; }
  .fin-inv-title { text-align: left; align-items: flex-start; }
  .fin-inv-boxes, .fin-inv-totals, .fin-inv-cols { grid-template-columns: 1fr; }
  .fin-inv-steps, .fin-inv-steps.is-5, .fin-inv-photos, .fin-inv-perks { grid-template-columns: 1fr 1fr; }
  .fin-inv.is-buynow .fin-inv-bank { grid-template-columns: auto 1fr; }
  .fin-inv.is-buynow .fin-inv-terms { columns: 1; }
  .fin-inv-vehicle h2 { font-size: 1.25rem; }
  .fin-inv-table .r { width: auto; }
  .fin-inv-table .c { width: 40px; }
  .invoice-sheet.is-finance > .callout, .invoice-sheet.is-finance > .invoice-proof, .invoice-sheet.is-finance > .invoice-actions { margin-left: 1rem; margin-right: 1rem; }
}
@media print {
  .fin-inv, .fin-inv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fin-inv { padding: 0 1.2rem; }
  .fin-inv-foot { margin: 0 -1.2rem; }
  .fin-inv-link { display: none !important; }
  .fin-inv-steps, .fin-inv-cols, .fin-inv-vehicle { break-inside: avoid; }
  /* A4 is narrower than the phone breakpoint: keep the desktop layout, a little tighter, on one page */
  .fin-inv { font-size: 12px; border-top-width: 5px; zoom: .84; }
  .fin-inv::before { inset: 25% 12% auto; }
  .fin-inv-top { padding: .9rem 0 .7rem; flex-wrap: nowrap; }
  .fin-inv-title { text-align: right; align-items: flex-end; }
  .fin-inv-boxes, .fin-inv-totals { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .fin-inv-cols { grid-template-columns: 1fr 1.1fr; gap: 1.4rem; margin-bottom: 1rem; }
  .fin-inv-steps { grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
  .fin-inv-steps.is-5 { grid-template-columns: repeat(5, 1fr); }
  .fin-inv-photos { grid-template-columns: repeat(4, 1fr); margin-bottom: .7rem; }
  .fin-inv-photos-1 { grid-template-columns: 1fr; } .fin-inv-photos-2 { grid-template-columns: 1fr 1fr; } .fin-inv-photos-3 { grid-template-columns: repeat(3, 1fr); }
  .fin-inv-perks { grid-template-columns: repeat(4, 1fr); margin-bottom: .8rem; padding: .5rem .7rem; }
  .fin-inv-photos, .fin-inv-perks { break-inside: avoid; }
  .fin-inv.is-buynow { zoom: .72; }
  .fin-inv.is-buynow .fin-inv-cols { break-inside: auto; }
  .fin-inv.is-buynow .fin-inv-photos img { aspect-ratio: 2 / 1; }
  .fin-inv.is-buynow .fin-inv-bank { grid-template-columns: repeat(3, auto 1fr); }
  .fin-inv.is-buynow .fin-inv-terms { columns: 2; }
  .fin-inv-box, .fin-inv-due { padding: .7rem 1rem; }
  .fin-inv-big { font-size: 1.1rem; }
  .fin-inv-vehicle { margin: .9rem 0; padding: .9rem 1.1rem; }
  .fin-inv-vehicle h2 { font-size: 1.3rem; margin-bottom: .6rem; }
  .fin-inv-table td { padding: .6rem .8rem; }
  .fin-inv-table .r { width: 150px; }
  .fin-inv-totals { margin: .9rem 0 1.1rem; }
  .fin-inv-due strong { font-size: 1.5rem; }
  .fin-inv-steps div { padding: .6rem .7rem; }
  .fin-inv-h { margin-bottom: .6rem; }
  .invoice-sheet.is-finance > .callout { display: none; }
}

/* Buy Now: confirm before the invoice, and the register-and-bid alternative */
.bn-confirm { border-top: 5px solid var(--brand); }
.bn-confirm-tag { display: inline-flex; gap: .4rem; align-items: center; background: #e6f4ea; color: #145c30; font-weight: 800; font-size: .82rem; border-radius: 999px; padding: .25rem .75rem; margin-bottom: .4rem; }
.bn-confirm-lead { font-size: 1.02rem; }
.bn-confirm-hot { background: #fff6e0; border-left: 4px solid #c9a24b; padding: .6rem .8rem; border-radius: 6px; font-size: .92rem; }
.bn-confirm-hot i { color: #c0392b; margin-right: .3rem; }
.bn-confirm-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0; }
.bn-confirm-perks div { background: var(--surface-2, #f4f6f5); border-radius: 10px; padding: .7rem; display: flex; flex-direction: column; gap: .15rem; }
.bn-confirm-perks i { color: var(--brand); font-size: 1.2rem; margin-bottom: .2rem; }
.bn-confirm-perks strong { font-size: .9rem; } .bn-confirm-perks span { font-size: .8rem; color: var(--muted); }
.bn-confirm-why { background: #0e3320; color: #e8efe9; border-radius: 10px; padding: .9rem 1rem; margin: 1rem 0; }
.bn-confirm-why h3 { color: #fff; font-size: 1rem; margin: 0 0 .35rem; } .bn-confirm-why h3 i { color: #c9a24b; }
.bn-confirm-why p { margin: 0; font-size: .92rem; } .bn-confirm-why strong { color: #fff; }
.bn-confirm-h { font-size: 1.02rem; margin: 1rem 0 .1rem; }
.bn-confirm-acks { display: grid; gap: .55rem; margin: 1rem 0; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; }
.bn-confirm-acks.field-error { border-color: #c0392b; }
.bn-confirm-acks label { display: grid; grid-template-columns: auto 1fr; gap: .55rem; font-size: .92rem; cursor: pointer; }
.bn-confirm-acks input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--brand); }
.bn-alt { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.bn-alt > summary { cursor: pointer; font-weight: 800; color: var(--brand); }
.bn-alt[open] > summary { margin-bottom: .6rem; }
.bn-alt-steps { padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .93rem; }
.bn-alt-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.bn-alt-close { display: flex; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .8rem; }
.bn-alt-close .input { flex: 1; min-width: 200px; }
.bn-gate-admin { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #f4f6f5; border-left: 4px solid #c9a24b; border-radius: 8px; padding: .7rem .9rem; margin: .6rem 0 1rem; }
.bn-gate-admin > div:first-child { display: flex; flex-direction: column; gap: .15rem; max-width: 640px; }
@media (max-width: 640px) { .bn-confirm-perks { grid-template-columns: 1fr 1fr; } }

/* Buy Now: the letters on the buyer's page */
.bn-letters { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bn-letter { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid #c9a24b; background: #fbf7ec; border-radius: 10px; text-decoration: none; color: inherit; margin-bottom: .9rem; }
.bn-letters .bn-letter { margin-bottom: 0; }
.bn-letter > i { font-size: 1.6rem; color: #b3261e; flex: none; }
.bn-letter.is-code > i { color: var(--brand); }
.bn-letter span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bn-letter small { color: var(--muted); font-size: .82rem; }
.bn-letter em { font-style: normal; font-weight: 800; color: var(--brand); white-space: nowrap; }
.bn-letter:hover { border-color: var(--brand); }

/* My account: Buy Now reservation with the Buyer's Code */
.account-buynow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border: 1px solid #c9a24b; border-left: 5px solid #c9a24b; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.account-buynow-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: .15rem; }
.account-buynow-tag { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a6d1f; }
.account-buynow-code { background: #0e3320; color: #fff; border-radius: 10px; padding: .55rem 1rem; display: flex; flex-direction: column; align-items: center; }
.account-buynow-code b { font-size: 1.6rem; letter-spacing: .3em; color: #c9a24b; }
.account-buynow-code small { font-size: .72rem; opacity: .85; }

/* Unpaid invoice: the client's "more time or cancel" box, and the office's follow-up controls */
.fu-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid #c9a24b; border-radius: 12px; padding: 1rem 1.1rem; margin-top: 1.2rem; }
.fu-box h3 { font-size: 1.05rem; margin: 0 0 .3rem; } .fu-box h3 i { color: #c9a24b; }
.fu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .6rem; }
.fu-card { display: flex; flex-direction: column; gap: .45rem; background: #f7f8f7; border-radius: 10px; padding: .8rem; }
.fu-card .btn { align-self: flex-start; }
.fu-admin { margin-top: .4rem; padding-top: .4rem; border-top: 1px dashed var(--line); }
@media (max-width: 640px) { .fu-grid { grid-template-columns: 1fr; } }

/* VIN policy: the acts */
.vin-acts { padding-left: 1.1rem; display: grid; gap: .5rem; }
.vin-acts li { line-height: 1.55; }

/* My account: my applications */
.my-apps { display: grid; gap: .6rem; }
.my-app { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid #c9a24b; border-radius: 10px; color: inherit; text-decoration: none; }
.my-app:hover { border-color: var(--brand); }
.my-app.is-closed { border-left-color: #c5cdc8; opacity: .8; }
.my-app > i { font-size: 1.3rem; color: var(--brand); flex: none; width: 1.6rem; text-align: center; }
.my-app > span:first-of-type { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.my-app small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.my-app em { font-style: normal; font-size: .9rem; color: #4d5852; }
.my-app-code { background: #0e3320; color: #c9a24b; border-radius: 8px; padding: .3rem .6rem; letter-spacing: .2em; font-size: .95rem; }
@media (max-width: 560px) { .my-app { flex-wrap: wrap; } .my-app .btn { margin-left: 2.5rem; } }

/* In-house finance: track my application */
.fin-track { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1.2rem; padding: .85rem 1.1rem; background: #fff; border: 1px solid #c9a24b; border-left: 5px solid #c9a24b; border-radius: 12px; }
.fin-track > i { font-size: 1.5rem; color: var(--brand); }
.fin-track > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; }

/* Admin → Invoices: move a paid amount to the client's new invoice */
.inv-move { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d5dcd8; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inv-move .select { max-width: 280px; padding: 6px 8px; font-size: .85rem; }

/* Admin → Today: find a client; Admin → Client file */
.today-find { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.today-find .input { flex: 1 1 260px; }
.cf-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.cf-head h2 { margin: 0; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .8rem; }
.cf-grid div { background: var(--soft, #f2f4f3); border-radius: 10px; padding: .6rem .8rem; }
.cf-grid small { display: block; color: #5f6b64; }
.cf-switch { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.fin-fit { margin: .8rem 0 0; padding: .8rem 1rem; background: #f6faf7; border: 1px solid #cfe1d5; border-radius: 10px; }
.fin-fit ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.cf-review { border: 2px solid var(--gold, #c9a24b); }

/* Add vehicle: filled in from a screenshot */
.assist-note { border-left: 4px solid var(--gold, #c9a24b); }
.assist-note li { margin-bottom: .3rem; }
.assist-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: .4rem; }
.assist-photos img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px; }

/* ── Inspection report seal (Platinum / Gold / Green, or a grade letter) ───────────────
   Our own seal, drawn as SVG. Flat and small: in a card's photo corner, and in one row at the
   foot of Vehicle details on a lot page. */
.report-seal { display: inline-block; line-height: 0; flex: 0 0 auto; }
.report-seal svg { width: 100%; height: 100%; display: block; }
.report-seal-sm { width: 44px; height: 44px; }
.report-seal-lg { width: 64px; height: 64px; }
.vc-media .report-seal { position: absolute; right: 10px; bottom: 44px; z-index: 1; filter: drop-shadow(0 1px 3px rgba(10, 20, 14, .3)); }
.report-row { display: flex; gap: .9rem; align-items: center; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line, #e3e8e5); }
.report-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.report-row-text strong { text-transform: uppercase; letter-spacing: .02em; }
.report-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5f6b64; }
@media (max-width: 560px) {
    .report-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: .9rem; row-gap: .6rem; align-items: start; }
    .report-row .btn { grid-column: 2; justify-self: start; }
}

/* Winner's confirmation page (win.php) and its status on Admin → Today */
.win-hero { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1.4rem; }
.win-hero h1 { color: #fff; margin: .3rem 0; }
.win-hero p { margin: 0; font-size: 1.1rem; }
.win-hero .eyebrow { color: #f1d98a; }
.win-status { display: block; margin-top: .25rem; font-size: .85rem; font-weight: 700; }
.win-confirmed { color: var(--brand); } .win-waiting { color: #5f6b64; font-weight: 600; } .win-overdue { color: #8a6100; }

/* Home page on a phone: a vehicle and a button on the first screen. The live ticker moves aside,
   the headline is smaller, and the two rows of a section sit apart. */
.section .carousel-wrap + .section-head { margin-top: 2.6rem; }
@media (max-width: 640px) {
    .live-ticker { display: none; }
    .hero-inner { padding-block: 1.8rem 1.6rem; gap: 1.4rem; }
    .hero h1 { font-size: 1.9rem; margin-bottom: .6rem; }
    .hero-lead { font-size: 1rem; }
    .hero .eyebrow { font-size: .72rem; }
    .hero-actions { padding-right: 0; }
}
@media (max-width: 640px) {
    /* The search card keeps its keyword box and button; the filters are one tap away on Stock. */
    .hero .search-card-body .form-grid, .hero .search-card-body .form-grid + .field { display: none; }
    .hero .search-card-head h2 { font-size: 1.15rem; }
}
.register-band { margin: 0 0 3.2rem; }
@media (max-width: 640px) { .register-band { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; } }

/* Where our vehicles come from: home page band and the note on a lot's description */
.source-band { background: #f6faf7; border-bottom: 1px solid #dbe7df; padding: 1.5rem 0 1.6rem; }
.source-band h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); margin: 0 0 .9rem; }
.source-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.source-point { display: flex; gap: .8rem; align-items: flex-start; }
.source-point i { color: var(--brand); font-size: 1.25rem; margin-top: .15rem; width: 1.5rem; text-align: center; }
.source-point strong { display: block; }
.source-point span { color: #4d5a53; font-size: .93rem; }
.source-note { display: flex; gap: .7rem; align-items: flex-start; background: #f6faf7; border: 1px solid #dbe7df; border-radius: 10px; padding: .75rem .9rem; font-size: .93rem; }
.source-note i { color: var(--brand); margin-top: .2rem; }
@media (max-width: 760px) { .source-points { grid-template-columns: minmax(0, 1fr); gap: .9rem; } }

/* Vehicle form: what the listing still needs */
.listing-todo { border-left: 4px solid var(--gold, #c9a24b); }
.listing-todo summary { cursor: pointer; }
.listing-todo ul { margin: .7rem 0 .6rem; padding-left: 1.2rem; }
.listing-todo li { margin-bottom: .3rem; }
.listing-todo.is-done { border-left-color: var(--brand); color: var(--brand-deep); }
.bid-acts { font-size: .92rem; } .bid-acts li { margin-bottom: .6rem; }
/* The DEKRA sticker image: a little larger than the drawn seal so its small print stays readable. */
.report-seal.is-dekra img { width: 100%; height: 100%; display: block; }
.report-seal-sm.is-dekra { width: 58px; height: 58px; }
.report-seal-lg.is-dekra { width: 84px; height: 84px; }
.report-row .report-seal.is-dekra { width: 72px; height: 72px; }
@media (max-width: 560px) { .report-row { grid-template-columns: 72px minmax(0, 1fr); } .vc-media .report-seal.is-dekra { width: 52px; height: 52px; } }
/* Why DEKRA reports are not sent on WhatsApp (under the report on a vehicle page) */
.report-why { margin-top: .45rem; font-size: .88rem; color: #4d5a53; }
.report-why summary { cursor: pointer; list-style: none; }
.report-why summary::-webkit-details-marker { display: none; }
.report-why summary span { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.report-why ol { margin: .5rem 0 0; padding-left: 1.1rem; }
.report-why li { margin-bottom: .35rem; }
.report-why strong { text-transform: none; letter-spacing: 0; color: #1b2a21; }
.report-row:has(.report-why[open]) { align-items: flex-start; }
.report-law-head { margin: .7rem 0 .3rem; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #1b2a21; }
.report-law { margin: 0 0 .5rem; padding-left: 1.1rem; } .report-law li { margin-bottom: .3rem; }

/* In-house finance: the agreement in plain words, and the affordability guide */
.fin-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.fin-term { display: flex; gap: .8rem; align-items: flex-start; }
.fin-term i { color: var(--brand); font-size: 1.2rem; margin-top: .15rem; width: 1.5rem; text-align: center; }
.fin-term strong { display: block; } .fin-term span { color: #4d5a53; font-size: .93rem; }
.afford-out { margin-top: 1rem; background: #f6faf7; border: 1px solid #dbe7df; border-radius: 10px; padding: .9rem 1rem; }
.afford-out > div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.afford-out strong { color: var(--brand-deep); font-size: 1.1rem; }
.afford-out .help { margin-top: .4rem; }
@media (max-width: 860px) { .fin-terms { grid-template-columns: minmax(0, 1fr); } }

/* Admin housekeeping: finance / Buy Now tabs, Done / Delete under a name, Inbox bulk tools */
.fin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.fin-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line, #dfe5e1); color: inherit; font-weight: 700; text-decoration: none; }
.fin-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fin-tab .badge-count { background: #c62828; color: #fff; border-radius: 999px; font-size: .75rem; padding: .05rem .45rem; }
.fin-show { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.fin-show .chip.active { background: var(--brand-deep); color: #fff; }
.app-tools { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: center; margin-top: .45rem; font-size: .85rem; }
.app-tools .link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; font-size: .85rem; }
.app-tools .link-btn.danger, .btn.danger { color: #b3261e; }
.app-dupe { color: #8a6100; font-weight: 700; }
tr.is-done td, li.is-done .today-main { opacity: .62; }
.inbox-old { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.inbox-old .select { width: auto; padding: 6px 10px; }
.inbox-bulk { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.admin-sublinks{margin:-.4rem 0 1rem;font-size:.86rem;color:#5f6b64;display:flex;gap:.8rem;flex-wrap:wrap}
.admin-sublinks a{font-weight:600}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.tool-grid a{display:block;padding:1rem 1.1rem;border:1px solid #e3e7e4;border-radius:10px;background:#fff;color:inherit;text-decoration:none}
.tool-grid a:hover{border-color:#21603b}
.tool-grid i{color:#21603b;font-size:1.2rem}
.tool-grid strong{display:block;margin:.4rem 0 .2rem}
.tool-grid span{font-size:.88rem;color:#5f6b64}
.today-section{position:relative}
.today-bulk{position:absolute;top:1rem;right:1rem}
@media (max-width:640px){.today-bulk{position:static;margin:-.3rem 0 .6rem}}
.today-section:has(.today-bulk) h2{padding-right:7.5rem}@media (max-width:640px){.today-section:has(.today-bulk) h2{padding-right:0}}
.winner-quote{display:block;font-size:.86rem;color:#21603b;font-style:italic;margin:.15rem 0 .2rem;line-height:1.35}
