/* BID4SALVAGE design system. Shared by the public site, buyer dashboard and admin console. */
:root {
  --navy-950: #061630;
  --navy-900: #081d3d;
  --navy-800: #0b2a55;
  --navy-700: #123a70;
  --navy-600: #1c4d8e;
  --navy-100: #e7eef8;
  --navy-50: #f2f6fb;
  --green-700: #167046;
  --green-600: #1e8c5b;
  --green-500: #28a56e;
  --green-100: #e3f4eb;
  --amber-600: #b45309;
  --amber-100: #fdf1dc;
  --red-600: #c0392b;
  --red-100: #fbe7e4;
  --blue-600: #1d63c9;
  --blue-100: #e4eefc;
  --ink: #0f1b2d;
  --text: #2a3a52;
  --muted: #62728a;
  --faint: #8d9ab0;
  --line: #e2e8f0;
  --line-strong: #cfd8e5;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 85, 0.06);
  --shadow: 0 1px 2px rgba(11, 42, 85, 0.05), 0 8px 24px rgba(11, 42, 85, 0.07);
  --shadow-lg: 0 2px 4px rgba(11, 42, 85, 0.06), 0 18px 44px rgba(11, 42, 85, 0.14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1 1 auto; }
.hide { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-800); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-600); color: var(--navy-800); background: var(--navy-50); }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: var(--navy-50); }
.btn-danger { background: #fff; color: var(--red-600); border-color: #f0c4be; }
.btn-danger:hover { background: var(--red-100); color: var(--red-600); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--navy-100); color: var(--navy-800); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(28, 77, 142, .15); }
.input[disabled], .select[disabled] { background: var(--bg); color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2362728a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.input-sm, .select-sm { height: 36px; font-size: 13.5px; }
.select-sm { padding-right: 36px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.input-group { display: flex; }
.input-group .prefix { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 14px; }
.input-group .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy-700); }
.form-error { background: var(--red-100); color: var(--red-600); border: 1px solid #f0c4be; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.form-ok { background: var(--green-100); color: var(--green-700); border: 1px solid #bfe3d0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }

/* ---------- cards / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15.5px; }
.card-body { padding: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; background: var(--navy-100); color: var(--navy-700);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge-green { background: var(--green-100); color: var(--green-700); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-blue { background: var(--blue-100); color: var(--blue-600); }
.badge-gray { background: #eceff4; color: var(--muted); }
.badge-navy { background: var(--navy-800); color: #fff; }
.pulse::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  padding: 11px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfe; }
.table .right { text-align: right; }
.table .strong { color: var(--ink); font-weight: 600; }
.table-compact td, .table-compact th { padding: 9px 12px; font-size: 13px; }

/* ---------- misc components ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy-50); display: grid; place-items: center; color: var(--navy-600); }
.empty .ico svg { width: 26px; height: 26px; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fb 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pager .pages { display: flex; gap: 6px; }
.pager button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--navy-800); }
.pager button:hover:not([disabled]) { background: var(--navy-50); }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }
.pager button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--navy-800); }
.tabs .on { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.chip-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-tabs button { height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.chip-tabs button:hover { border-color: var(--navy-600); }
.chip-tabs button.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip-tabs .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 0; font-size: 14px; }
.kv dt, .kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { color: var(--ink); font-weight: 600; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-info { background: var(--blue-100); border-color: #c6dbf7; color: #174a98; }
.alert-warn { background: var(--amber-100); border-color: #f2d9a4; color: #8a4107; }
.alert-ok { background: var(--green-100); border-color: #bfe3d0; color: var(--green-700); }
.alert-err { background: var(--red-100); border-color: #f0c4be; color: var(--red-600); }

/* ---------- toast + modal ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; background: var(--navy-900); color: #fff; padding: 13px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .2s ease; border-left: 4px solid var(--green-500); }
.toast.err { border-left-color: #ef6a5b; }
@keyframes toastIn { from { transform: translateY(8px); opacity: .01; } to { transform: none; opacity: 1; } }
.modal-back { position: fixed; inset: 0; background: rgba(6, 22, 48, .55); z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-x { background: none; border: 0; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-x:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 22px; max-height: calc(100vh - 220px); overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfd; border-radius: 0 0 14px 14px; }

/* ---------- countdown ---------- */
.cd { display: inline-flex; gap: 6px; }
.cd-unit { min-width: 52px; padding: 8px 6px 6px; background: var(--navy-800); color: #fff; border-radius: 8px; text-align: center; }
.cd-unit b { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit span { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 2px; }
.cd-inline { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.cd-inline.urgent { color: var(--red-600); }

/* ---------- lot card ---------- */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.lot-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; color: inherit; position: relative; }
.lot-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); color: inherit; }
.lot-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-50); overflow: hidden; }
.lot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lot-card:hover .lot-media img { transform: scale(1.04); }
.lot-tag { position: absolute; left: 12px; top: 12px; }
.lot-fav { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .94); border: 0; cursor: pointer; display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow-sm); }
.lot-fav:hover { color: var(--red-600); }
.lot-fav.on { color: var(--red-600); }
.lot-fav svg { width: 17px; height: 17px; }
.lot-fav.on svg { fill: currentColor; }
.lot-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.lot-code { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; }
.lot-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin: 0; }
.lot-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lot-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lot-meta svg { width: 14px; height: 14px; }
.lot-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lot-price small, .lot-time small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.lot-price b { font-family: var(--font-head); font-size: 18px; color: var(--navy-800); }
.lot-time { text-align: right; }

/* ---------- public header / footer ---------- */
.topbar { background: var(--navy-950); color: #b8c6dd; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a { color: #dbe5f4; }
.topbar a:hover { color: #fff; }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 20px; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; opacity: .8; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--text); border-radius: 6px; position: relative; }
.nav a:hover { color: var(--navy-800); background: var(--navy-50); }
.nav a.on { color: var(--navy-800); }
.nav a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--green-600); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; place-items: center; color: var(--navy-800); }
.menu-btn svg { width: 22px; height: 22px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.user-chip:hover { border-color: var(--navy-600); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 100; }
.menu-pop.open { display: block; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--navy-50); color: var(--navy-800); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-pop .who { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.menu-pop .who b { display: block; color: var(--ink); font-size: 14px; }

.site-footer { background: var(--navy-950); color: #9fb0cb; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 64px 0 40px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid a { display: block; color: #9fb0cb; padding: 5px 0; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; max-width: 340px; line-height: 1.65; }
.footer-contact p { margin: 0 0 10px; font-size: 14.5px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bar a { display: inline; padding: 0; margin-left: 18px; }

/* ---------- page heads ---------- */
.page-head { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(40, 165, 110, .28), transparent 65%); }
.page-head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-head p { color: #c4d2ea; margin: 0; max-width: 640px; }
.crumbs { font-size: 13px; color: #9fb4d6; margin-bottom: 14px; }
.crumbs a { color: #c4d2ea; }
.crumbs a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav { position: fixed; inset: 114px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .nav.open { display: flex; }
  .nav a.on::after { display: none; }
  .menu-btn { display: grid; }
  .nav-actions .hide-m { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar span.hide-s { display: none; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 44px 0 28px; }
  .kv { grid-template-columns: 130px 1fr; }
  .lot-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
  .site-header .container { height: 66px; }
  .nav { inset: 104px 0 auto 0; }
  .cd-unit { min-width: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- live private auction widget (fixed bottom right) ---------- */
.live-widget { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 340px; max-width: calc(100vw - 24px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-strong); border-top: 3px solid var(--green-600); border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow-lg); overflow: hidden; }
.live-widget.hide { display: none !important; }
.lw-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px 13px 16px; background: #fff; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink); }
.lw-head:hover { background: var(--navy-50); }
.lw-title-h { flex: 1; font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--navy-800); }
.lw-head-time { font-size: 13px; font-weight: 700; color: var(--ink); }
.lw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.lw-chev { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; flex: none; transition: transform .2s; }
.lw-chev svg { width: 16px; height: 16px; }
.live-widget.is-min .lw-chev { transform: rotate(180deg); }
.live-widget:not(.is-min) .lw-head { border-bottom: 1px solid var(--line); }
.live-widget:not(.is-min) .lw-head-time { display: none; }
.live-widget.is-min .lw-body { display: none; }
.lw-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; padding: 0; background: none; border: 0; text-align: left; font: inherit; cursor: default; }
.lw-item-head .lw-title { flex: 1; }
.lw-caret { width: 24px; height: 24px; border-radius: 6px; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; flex: none; transition: transform .2s; }
.lw-caret svg { width: 14px; height: 14px; }
.lw-item:has(.lw-caret) .lw-item-head { cursor: pointer; }
.lw-item.collapsed .lw-caret { transform: rotate(-90deg); }
.lw-more { display: grid; gap: 10px; }
.lw-item.collapsed .lw-more { display: none; }
.lw-item.collapsed { gap: 8px; padding-bottom: 12px; }
.lw-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lw-head { flex: none; }
.lw-item { padding: 14px 16px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.lw-item:last-child { border-bottom: 0; }
.lw-title { font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.lw-row b.cd-inline { color: var(--ink); font-size: 14.5px; }
.lw-row b.cd-inline.urgent { color: var(--red-600); }
.lw-sub { font-size: 12.5px; }
.lw-bid { display: flex; gap: 8px; }
.lw-amt { flex: 1; min-width: 0; }
.lw-amt .prefix { height: 40px; font-size: 13px; padding: 0 10px; }
.lw-amt .input { height: 40px; font-family: var(--font-head); font-weight: 700; font-size: 15px; padding: 0 10px; min-width: 0; }
.lw-go { height: 40px; padding: 0 20px; font-weight: 700; }
.lw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lw-chips button { height: 28px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--navy-700); cursor: pointer; }
.lw-chips button:hover:not([disabled]) { background: var(--navy-50); border-color: var(--navy-600); }
.lw-chips button[disabled] { opacity: .45; cursor: not-allowed; }
.lw-foot { font-size: 12.5px; }
.lw-foot a { font-weight: 600; }
.has-live .toasts { right: 380px; }
@media (max-width: 760px) {
  .live-widget { right: 12px; bottom: 12px; }
  .has-live .toasts { right: 12px; bottom: 76px; }
}

/* ---------- auction cards, redesigned: bold status pills, distinct private cards ---------- */
:root { --live: #e5322d; --gold-600: #a97a12; --gold-500: #c9962b; --gold-300: #f0d48a; --gold-100: #fbf3dc; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #fff; box-shadow: 0 3px 10px rgba(6, 22, 48, .35); white-space: nowrap; line-height: 1; }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.3s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
.pill-live { background: linear-gradient(135deg, #f0463f, var(--live)); }
.pill-soon { background: linear-gradient(135deg, #2f7be5, #1d63c9); }
.pill-closed { background: linear-gradient(135deg, #5b6b82, #3f4d63); }
.pill-private { background: linear-gradient(135deg, #f6dc92, var(--gold-500)); color: #3a2a05; box-shadow: 0 3px 10px rgba(120, 85, 10, .45); }
.lot-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; max-width: calc(100% - 60px); }
.lot-tag { display: none; }
.lot-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 48, .28) 0%, rgba(6, 22, 48, 0) 38%, rgba(6, 22, 48, .72) 100%); z-index: 1; pointer-events: none; }
.lot-fav { z-index: 2; }
.lot-timer { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; width: fit-content; max-width: calc(100% - 24px); padding: 7px 13px; border-radius: 999px; background: rgba(6, 22, 48, .78); backdrop-filter: blur(6px); color: #d9e4f6; font-size: 12.5px; font-weight: 600; }
.lot-timer svg { width: 15px; height: 15px; flex: none; }
.lot-timer b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.lot-timer .cd-inline.urgent { color: #ffb4ab; }
.lot-card.k-running { border-color: #f3c3c0; }
.lot-card.k-closed .lot-media img { filter: grayscale(.55) brightness(.92); }
.lot-body { gap: 9px; }
.lot-title { font-size: 16.5px; }
.lot-stats { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lot-bids { text-align: right; line-height: 1.2; }
.lot-bids b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.lot-bids b svg { width: 15px; height: 15px; color: var(--muted); }
.lot-bids small { display: inline; margin-left: 4px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.lot-bids em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.lot-price b { font-size: 20px; }
.lot-card.k-running .lot-price b { color: var(--live); }
.lot-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 9px; font-weight: 800; font-size: 14px; letter-spacing: .01em; margin-top: 4px; transition: filter .15s, gap .15s; }
.lot-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.lot-card:hover .lot-cta svg { transform: translateX(4px); }
.lot-card.k-running .lot-cta { background: linear-gradient(135deg, #25a56a, var(--green-600)); color: #fff; }
.lot-card.k-future .lot-cta { background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100); }
.lot-card.k-closed .lot-cta { background: #eef1f6; color: var(--muted); }
/* private auctions: dark navy and gold, an invitation strip and a gold top edge, unmistakable next to public cards */
.lot-card.is-private { border: 1px solid #25406b; background: linear-gradient(180deg, #f6f8fd, #fff 38%); box-shadow: 0 1px 2px rgba(11, 42, 85, .1), 0 10px 26px rgba(11, 42, 85, .14), inset 0 0 0 1px rgba(201, 150, 43, .35); }
.lot-card.is-private .lot-shade { background: linear-gradient(180deg, rgba(8, 29, 61, .5) 0%, rgba(8, 29, 61, .12) 40%, rgba(8, 29, 61, .85) 100%); }
.lot-card.is-private .lot-media { border-bottom: 3px solid var(--gold-500); }
.lot-invite { display: flex; align-items: center; gap: 9px; padding: 9px 16px; background: linear-gradient(90deg, #0b2a55, #123a70); color: #f3dfa6; font-size: 12.5px; font-weight: 600; }
.lot-invite svg { width: 15px; height: 15px; flex: none; color: var(--gold-300); }
.lot-invite b { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.lot-card.is-private .lot-code { color: var(--gold-600); }
.lot-card.is-private .lot-title { color: #0b2a55; }
.lot-card.is-private .lot-cta { background: linear-gradient(135deg, #0b2a55, #1c4d8e); color: var(--gold-300); }
.lot-card.is-private.k-closed .lot-cta { background: #e6e9f0; color: var(--muted); }
.lot-card.is-private:hover { box-shadow: 0 2px 4px rgba(11, 42, 85, .12), 0 16px 34px rgba(11, 42, 85, .22), inset 0 0 0 1px rgba(201, 150, 43, .55); }
.lot-card:hover { transform: translateY(-4px); }
/* header pills on the auction page */
.detail-sub .pill { height: 28px; font-size: 12px; box-shadow: none; }
@media (max-width: 640px) { .pill { height: 28px; padding: 0 11px; font-size: 12px; } .lot-tags { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }
