/* Heritage Block Auctions — shared styles. Light mode default. */
:root, [data-theme='light'] {
  --bg: #fcfdfe; --surface: #ffffff; --surface-2: #f5f7f9; --border: #e9ecf0;
  --fg: #1a1d21; --muted: #61656d; --muted-2: #8b9099;
  --primary: #9a7a2e; --primary-2: #c9a24b; --primary-ink: #ffffff;
  --accent: #e9f0e3; --accent-fg: #3f6b2a;
  --danger: #c23b3b; --sold-bg: #e9f3e2; --sold-fg: #3f6b2a;
  --ring: rgba(154,122,46,.35); --shadow: 0 10px 30px -14px rgba(0,0,0,.25);
  --radius: 10px; --radius-sm: 7px;
  --logo-green: #c5d66d;
}
[data-theme='dark'] {
  --bg: #0f0e0c; --surface: #16140f; --surface-2: #1d1a14; --border: #2a261d;
  --fg: #f3efe6; --muted: #b8ad9a; --muted-2: #8a8273;
  --primary: #c9a24b; --primary-2: #e0bd6a; --primary-ink: #0f0e0c;
  --accent: #2b3a2b; --accent-fg: #8fd36b;
  --danger: #e05656; --sold-bg: #1f2e1a; --sold-fg: #8fd36b;
  --ring: rgba(201,162,75,.4); --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin:0; font-family:'Inter',system-ui,sans-serif; background:var(--bg); color:var(--fg);
  line-height:1.55; -webkit-font-smoothing:antialiased; }
.display { font-family:'Inter',system-ui,sans-serif; font-weight:600; }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
button { font: inherit; cursor:pointer; }
input,select,textarea { font: inherit; }
.wrap { max-width: 1180px; margin:0 auto; padding:0 20px; }

.site-header { border-bottom:1px solid var(--border); background:var(--surface); position:sticky; top:0; z-index:50; }
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; height:96px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img.logo { height:92px; width:auto; background:#fff; border-radius:12px; padding:9px 14px; box-sizing:border-box; }
.topnav { display:flex; align-items:center; gap:22px; }
.topnav a { color:var(--fg); font-size:14px; font-weight:500; }
.topnav a.active { color:var(--primary); }
.nav-toggle { display:none; background:transparent; border:1px solid var(--border); border-radius:7px; padding:7px 9px; color:var(--fg); cursor:pointer; }

/* header auction countdown */
.auction-countdown { display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--fg); padding:7px 12px; border:1px solid var(--border); border-radius:999px; background:var(--surface-2); white-space:nowrap; line-height:1; }
.auction-countdown .cd-dot { width:7px; height:7px; border-radius:50%; background:var(--danger); flex:none; animation:cdPulse 1.8s infinite; }
.auction-countdown .cd-label { color:var(--muted-2); font-weight:500; font-size:12px; }
.auction-countdown .cd-time { font-variant-numeric:tabular-nums; font-weight:700; }
@keyframes cdPulse { 0%{box-shadow:0 0 0 0 rgba(220,38,38,.45)} 70%{box-shadow:0 0 0 6px rgba(220,38,38,0)} 100%{box-shadow:0 0 0 0 rgba(220,38,38,0)} }
@media (max-width:980px){ .auction-countdown .cd-label { display:none; } }
@media (max-width:560px){ .auction-countdown { display:none; } }
.header-actions { display:flex; align-items:center; gap:10px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid transparent; white-space:nowrap;
  border-radius:8px; padding:10px 18px; font-size:14px; font-weight:600; line-height:1.1; transition:background .15s, border-color .15s, box-shadow .15s, transform .06s; }
.btn-primary { background:var(--primary); color:var(--primary-ink); box-shadow:0 1px 2px rgba(0,0,0,.07); }
.btn-primary:hover { background:var(--primary-2); text-decoration:none; box-shadow:0 3px 8px rgba(154,122,46,.28); }
.btn-primary:active { transform:translateY(1px); box-shadow:none; }
.btn-ghost { border-color:var(--border); color:var(--fg); background:var(--surface); }
.btn-ghost:hover { border-color:var(--primary-2); color:var(--primary); text-decoration:none; background:var(--surface-2); }
.btn-ghost:active { transform:translateY(1px); }
.btn:focus-visible { outline:2px solid var(--primary-2); outline-offset:2px; }
.btn:disabled { opacity:.5; cursor:not-allowed; box-shadow:none; }
.theme-toggle { border:1px solid var(--border); background:transparent; color:var(--fg); border-radius:8px; padding:7px; line-height:0; }

.subbar { border-bottom:1px solid var(--border); background:var(--surface-2); font-size:13px; }
.subbar .wrap { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:10px 20px; color:var(--muted); }
.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--danger); margin-right:6px; animation:pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* page hero */
.page-hero { padding:40px 0 10px; }
.page-hero h1 { font-size:36px; line-height:1.1; margin:0 0 8px; }
.page-hero p { color:var(--muted); margin:0; font-size:16px; }

/* lot grid (gallery) */
.lot-grid-view { display:grid; grid-template-columns:repeat(var(--cols,4),1fr); gap:12px; padding:8px 0 50px; }
@media (max-width:900px){ .lot-grid-view { grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .lot-grid-view { grid-template-columns:1fr; } }

/* gallery main column + pagination */
.gallery-main { display:flex; flex-direction:column; min-width:0; }
.gallery-pager { display:flex; align-items:center; justify-content:center; gap:4px; flex-wrap:wrap; padding:6px 0 4px; }
.gallery-pager:empty { display:none; }
.gallery-pager .pg-btn, .gallery-pager .pg-num { font:inherit; font-size:13px; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:6px 11px; cursor:pointer; min-width:34px; line-height:1; }
.gallery-pager .pg-btn:hover:not(:disabled), .gallery-pager .pg-num:hover:not(.active) { border-color:var(--muted-2); color:var(--fg); }
.gallery-pager .pg-num.active { background:var(--sold-fg); color:#fff; border-color:var(--sold-fg); font-weight:600; }
.gallery-pager .pg-btn:disabled { opacity:.4; cursor:not-allowed; }
.gallery-pager .pg-ell { color:var(--muted-2); padding:0 2px; }
.subbar-pager { display:inline-flex; align-items:center; gap:14px; }
.per-page { display:inline-flex; align-items:center; gap:8px; }
.per-page .sort-select { width:auto; min-width:64px; }

/* gallery layout: filter sidebar + grid */
.gallery-layout { display:grid; grid-template-columns:236px 1fr; gap:28px; align-items:start; padding-top:12px; }
.filter-sidebar { position:sticky; top:108px; display:flex; flex-direction:column; gap:22px; max-height:calc(100vh - 124px); overflow-y:auto; padding-right:4px; }
.filter-group { display:flex; flex-direction:column; gap:9px; }
.filter-label { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); font-weight:700; }
.search-box { position:relative; display:flex; align-items:center; }
.search-icon { position:absolute; left:10px; color:var(--muted-2); pointer-events:none; }
.search-box input { width:100%; padding:9px 11px 9px 32px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); color:var(--fg); font-size:14px; }
.search-box input:focus { outline:none; border-color:var(--primary); }
.category-list { display:flex; flex-direction:column; gap:2px; }
.cat-item { display:flex; align-items:center; gap:9px; padding:7px 8px; border-radius:6px; font-size:14px; color:var(--fg); cursor:pointer; }
.cat-item:hover { background:var(--surface-2); }
.cat-item input { margin:0; accent-color:var(--primary); }
.filter-clear { margin-top:4px; font-size:13px; align-self:flex-start; }
.sort-select { width:100%; padding:9px 11px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); color:var(--fg); font-size:14px; cursor:pointer; }
.sort-select:focus { outline:none; border-color:var(--primary); }
.cols-val { color:var(--primary); font-weight:700; float:right; }
.cols-slider { width:100%; accent-color:var(--primary); cursor:pointer; }
@media (max-width:860px){ .gallery-layout { grid-template-columns:1fr; gap:18px; } .filter-sidebar { position:static; max-height:none; flex-direction:row; flex-wrap:wrap; align-items:center; gap:14px; } .category-list { flex-direction:row; flex-wrap:wrap; gap:6px; } .cat-item { padding:4px 8px; border:1px solid var(--border); border-radius:999px; font-size:13px; } }

/* category badge on lot card */
.lot-card .card-cat { position:absolute; top:8px; left:8px; background:rgba(0,0,0,.62); color:#fff; font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; letter-spacing:.02em; }
.lot-card { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; transition:transform .12s, box-shadow .12s; text-decoration:none; color:inherit; display:block; }
.lot-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); text-decoration:none; }
.lot-card .thumb { aspect-ratio:4/5; background:var(--surface-2); overflow:hidden; position:relative; flex:0 0 auto; }
.lot-card .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.lot-card .card-body { padding:13px 8px 14px; display:flex; flex-direction:column; flex:1 1 auto; }
.lot-card .lot-no { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-2); }
.lot-card h3 { font-size:14px; line-height:1.3; margin:4px 0 10px; font-weight:600; color:var(--fg); }
.lot-card .lot-bid { margin:2px 0 0; }
.lot-card .lot-bid-label { display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); font-weight:600; }
.lot-card .lot-price-row { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; margin-top:2px; }
.lot-card .lot-price-row .bid-count { font-size:11px; color:var(--muted-2); flex:0 0 auto; white-space:nowrap; }
.lot-card .lot-price-row b { color:var(--sold-fg); font-size:20px; font-weight:700; }
/* past / sold auction lot cards */
.lot-card.past { opacity:.97; }
.lot-card.past .thumb img { filter:grayscale(.18); }
.lot-card .sold-ribbon { position:absolute; top:8px; right:8px; background:var(--sold-fg); color:#fff; font-size:11px; font-weight:800; padding:4px 10px; border-radius:999px; letter-spacing:.08em; z-index:2; }
.lot-card .card-cat.past { left:auto; right:8px; top:36px; background:var(--sold-bg); color:var(--sold-fg); }
.lot-card .lot-bid.sold { color:var(--muted); }
.lot-card .lot-bid.sold b { color:var(--sold-fg); }
.lot-card .lot-meta { display:flex; align-items:center; gap:6px; margin-top:6px; font-size:12.5px; color:var(--muted); }
.lot-card .lot-opening { margin-top:6px; font-size:11px; color:var(--muted-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lot-card .lot-meta .dot-sep { opacity:.5; }
.empty-state { padding:60px 0; text-align:center; color:var(--muted-2); }
.field-hint { display:block; margin-top:4px; font-size:12px; color:var(--muted-2); }

/* media / press page */
.media-bar { text-align:center; padding:6px 0 18px; }
.media-bar-label { font-size:11px; text-transform:uppercase; letter-spacing:.18em; color:var(--muted-2); font-weight:700; }
.media-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.media-logo { display:flex; align-items:center; justify-content:center; min-height:104px; padding:18px 14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); text-decoration:none; transition:transform .14s, box-shadow .14s, border-color .14s; }
.media-logo img { max-height:48px; max-width:85%; width:auto; height:auto; object-fit:contain; opacity:.9; transition:opacity .14s; }
.media-logo:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--primary-2); }
.media-logo:hover img { opacity:1; }
.media-logo-static { cursor:default; }
.media-logo-static:hover { transform:none; box-shadow:none; border-color:var(--border); }
.media-logo-static:hover img { opacity:.9; }
.media-more { text-align:center; font-size:16px; font-weight:600; color:var(--muted-2); margin:26px 0 4px; }
.media-inquiries { margin:36px 0 30px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); padding:6px 24px; }
.media-inquiries-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 0; }
.media-inquiries h3 { font-size:18px; margin:0 0 4px; font-weight:700; color:var(--fg); }
.media-inquiries p { margin:0; color:var(--muted); font-size:14px; max-width:46ch; }
.media-cta { text-align:center; padding:34px 0 60px; }
.media-cta h2 { font-size:30px; margin:0 0 8px; }
.media-cta p { color:var(--muted); margin:0 0 18px; }
@media (max-width:900px){ .media-grid { grid-template-columns:repeat(3,1fr); } .media-inquiries-inner { flex-direction:column; align-items:flex-start; text-align:left; } }
@media (max-width:620px){ .media-grid { grid-template-columns:repeat(2,1fr); } .media-logo { min-height:88px; } .media-cta h2 { font-size:24px; } }
@media (max-width:380px){ .media-grid { grid-template-columns:1fr; } }

/* lot detail page */
.crumb-bar { display:flex; align-items:center; gap:10px; padding:8px 0 6px; font-size:13px; flex-wrap:wrap; border-bottom:1px solid var(--border); }
.crumb { color:var(--muted-2); }
.crumb a { color:var(--muted); }
.crumb a:hover { color:var(--primary); }
.lot-detail { display:grid; grid-template-columns: 1fr 1fr; gap:24px; padding:4px 0 22px; align-items:start; }
@media (max-width:920px){ .lot-detail { grid-template-columns:1fr; gap:24px; } }
@media (max-width:920px){
  .site-header .wrap { height:auto; min-height:60px; padding:8px 0; flex-wrap:wrap; gap:8px; }
  .topnav { display:none; flex-direction:column; align-items:stretch; gap:0; width:100%; order:3; border-top:1px solid var(--border); padding-top:8px; margin-top:4px; }
  .topnav.open { display:flex; }
  .topnav a { padding:9px 4px; border-bottom:1px solid var(--border); }
  .topnav a:last-child { border-bottom:none; }
  .nav-toggle { display:inline-flex; order:2; }
  .header-actions { order:2; margin-left:auto; }
  .brand img.logo { height:76px; }
  .header-actions .btn { padding:8px 11px; font-size:13px; white-space:nowrap; }
}
.lot-title { font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:21px; line-height:1.25; margin:4px 0 8px; }
.stats-row { display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; font-size:13px; padding-bottom:10px; border-bottom:1px solid var(--border); }
.stats-row .item b { color:var(--fg); }
.stats-row .item span { color:var(--muted); }
.watchlist { margin-left:auto; display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; cursor:pointer; }
.watchlist:hover { color:var(--primary); }
.watchlist.on { color:var(--primary); }
.watchlist svg { fill: none; }

.bid-bar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:10px;
  padding:10px 14px; border-radius:var(--radius); background:var(--sold-bg); border:1px solid var(--border); }
.bid-bar .label { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--sold-fg); opacity:.85; }
.bid-bar .amount { font-size:24px; font-weight:800; color:var(--sold-fg); }
.bid-bar .meta { text-align:right; font-size:13px; color:var(--muted); }

.countdown { display:flex; align-items:center; gap:10px; margin-top:8px; padding:8px 12px; border:1px solid var(--border);
  border-radius:var(--radius); background:var(--surface); }
.countdown .ico { color:var(--primary); }
.countdown .lbl { font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted-2); }
.countdown .time { font-variant-numeric:tabular-nums; font-weight:700; font-size:16px; }
.countdown.ending { border-color:var(--danger); }
.countdown.ending .time { color:var(--danger); }
.countdown.down .time { color:var(--muted-2); }

.bid-box { margin-top:10px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; box-shadow:var(--shadow); }
.bid-box.closed { opacity:.8; }
.bid-box-head { padding:11px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; background:var(--surface-2); }
.bid-box-head h2 { margin:0; font-size:14px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.premium-note { font-size:12px; color:var(--muted-2); }
.bid-box-body { padding:14px; }
.field-label { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); margin-bottom:8px; }
.bid-input { display:flex; align-items:stretch; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; background:var(--surface-2); }
.bid-input button { width:40px; border:none; background:var(--surface-2); color:var(--fg); font-size:18px; transition:background .15s; }
.bid-input button:hover { background:var(--border); }
.bid-input input { flex:1; border:none; background:transparent; color:var(--fg); text-align:center; font-size:18px; font-weight:700; min-width:0; padding:10px 0; }
.bid-input input:focus { outline:none; box-shadow:inset 0 0 0 2px var(--ring); }
.bid-quick { display:flex; gap:8px; margin-top:9px; flex-wrap:wrap; }
.bid-quick button { flex:1; min-width:76px; padding:8px; border:1px solid var(--border); background:var(--surface-2); color:var(--fg); border-radius:var(--radius-sm); font-weight:600; font-size:12px; transition:all .15s; }
.bid-quick button:hover { border-color:var(--primary); color:var(--primary); }
.max-bid { margin-top:10px; display:flex; flex-direction:column; gap:7px; padding:10px 12px; border:1px dashed var(--border); border-radius:var(--radius-sm); }
.mb-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.max-bid label { font-size:13px; color:var(--muted); white-space:nowrap; }
.max-bid input { width:120px; background:var(--surface-2); border:1px solid var(--border); border-radius:6px; padding:7px 10px; color:var(--fg); font-weight:600; }
.max-bid input:focus { outline:none; border-color:var(--primary); }
.max-bid .hint { font-size:11px; color:var(--muted-2); margin-left:auto; }
.mb-total { font-size:12px; color:var(--primary); font-weight:700; line-height:1.4; }
.mb-total .mb-sub { color:var(--muted-2); font-weight:400; }
.place-bid { margin-top:12px; width:100%; padding:11px; border:none; border-radius:var(--radius-sm);
  background:linear-gradient(180deg,var(--primary-2),var(--primary)); color:var(--primary-ink); font-size:16px; font-weight:800; letter-spacing:.02em; transition:filter .15s, transform .05s; }
.place-bid:hover { filter:brightness(1.05); }
.place-bid:active { transform:translateY(1px); }
.place-bid:disabled { opacity:.5; cursor:not-allowed; }
.bid-note { margin-top:10px; font-size:12px; color:var(--muted-2); text-align:center; }

.auth-tabs { display:flex; gap:0; margin-bottom:14px; border-bottom:1px solid var(--border); }
.auth-tabs button { flex:1; padding:10px; background:none; border:none; color:var(--muted); font-weight:600; border-bottom:2px solid transparent; }
.auth-tabs button.active { color:var(--primary); border-bottom-color:var(--primary); }
.auth-field { margin-bottom:10px; }
.auth-field label { display:block; font-size:12px; color:var(--muted-2); margin-bottom:4px; text-transform:uppercase; letter-spacing:.06em; }
.auth-field input { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--fg); }
.auth-field input:focus { outline:none; border-color:var(--primary); }
.auth-terms { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin:6px 0 12px; }
.auth-terms input { width:auto; }
.auth-submit { width:100%; padding:12px; border:none; border-radius:var(--radius-sm); background:var(--primary); color:var(--primary-ink); font-weight:700; }
.auth-msg { margin-top:10px; font-size:13px; text-align:center; }
.auth-msg.ok { color:var(--accent-fg); }
.auth-msg.err { color:var(--danger); }
.login-gate { text-align:center; padding:20px 6px; }
.login-gate p { color:var(--muted); margin:0 0 14px; }
.login-gate p.sold-amount { font-size:22px; font-weight:800; color:var(--sold-fg); }

.panel { margin-top:18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.panel-head { display:flex; align-items:center; justify-content:space-between; width:100%; padding:14px 18px; background:var(--surface-2); border:none; border-bottom:1px solid var(--border); }
.panel-head h3 { margin:0; font-size:14px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.panel-head .chev { transition:transform .2s; color:var(--muted); }
.panel-head[aria-expanded="true"] .chev { transform:rotate(180deg); }
.panel-body { padding:6px 18px 14px; }
.empty { color:var(--muted-2); font-size:13px; padding:8px 0; }
.privacy-note { font-size:11px; color:var(--muted-2); padding:8px 0 0; font-style:italic; }

.desc-accordion { margin-top:18px; }
.desc-accordion > button { width:100%; text-align:left; padding:11px 16px; border:1px solid var(--border);
  background:var(--surface); color:var(--muted); border-radius:var(--radius);
  font-weight:600; font-size:13px; letter-spacing:.04em; text-transform:uppercase; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.desc-accordion > button:hover { background:var(--surface-2); color:var(--fg); }
.desc-accordion > button .chev { transition:transform .2s; color:var(--muted-2); }
.desc-accordion.open > button .chev { transform:rotate(180deg); }
.desc-content { padding:0; border:1px solid var(--border); border-top:none; border-radius:0 0 var(--radius) var(--radius); background:var(--surface); display:none; }
.desc-accordion.open .desc-content { display:block; padding:18px 20px 6px; }
.desc-content h4 { margin:18px 0 6px; font-size:15px; color:var(--primary); }
.desc-content p, .desc-content li { color:var(--fg); font-size:15px; line-height:1.6; }
.desc-content ul { padding-left:18px; margin:6px 0; }
.desc-content li { margin:4px 0; }

/* full terms & conditions page */
.terms { max-width:780px; padding-bottom:64px; }
.terms-meta { font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted-2); font-weight:700; margin:0 0 2px; }
.terms-updated { font-size:13px; color:var(--muted); margin:0 0 22px; }
.terms-notice { background:var(--surface-2); border:1px solid var(--border); border-left:3px solid var(--primary); border-radius:var(--radius); padding:18px 20px; font-size:13.5px; line-height:1.6; color:var(--fg); font-weight:500; letter-spacing:.01em; }
.terms-toc { background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius); padding:18px 22px 6px; margin:24px 0 8px; }
.terms-toc h4 { margin:0 0 10px; font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted-2); }
.terms-toc ol { columns:2; column-gap:28px; padding-left:20px; margin:0 0 8px; }
.terms-toc li { margin:4px 0; font-size:13.5px; break-inside:avoid; }
.terms-toc a { color:var(--primary); text-decoration:none; }
.terms-toc a:hover { text-decoration:underline; }
.terms h3 { margin:30px 0 8px; font-size:18px; font-weight:800; color:var(--fg); letter-spacing:-.01em; scroll-margin-top:120px; }
.terms p { color:var(--fg); font-size:14.5px; line-height:1.7; margin:8px 0; }
.terms ul, .terms ol { padding-left:22px; margin:8px 0; }
.terms li { color:var(--fg); font-size:14.5px; line-height:1.7; margin:5px 0; }
.terms .caps { text-transform:uppercase; letter-spacing:.02em; font-weight:600; }
.terms ul.caps, .terms ol.caps { padding-left:24px; }
.terms ul.caps li, .terms ol.caps li { font-size:13.5px; }
.terms strong { color:var(--fg); }
@media (max-width:620px){ .terms-toc ol { columns:1; } }

.gallery { position:sticky; top:84px; display:flex; flex-direction:row; gap:10px; align-items:flex-start; }
.gallery-main { position:relative; flex:1 1 auto; min-width:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface-2); }
.gallery-main img { width:100%; height:auto; display:block; max-height:72vh; object-fit:contain; }
.gallery-nav { position:absolute; top:10px; right:10px; display:flex; gap:6px; }
.gallery-nav button { width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:rgba(15,14,12,.7); color:#fff; backdrop-filter:blur(4px); display:grid; place-items:center; }
.gallery-nav button:hover { background:rgba(15,14,12,.9); }
.zoom-btn { position:absolute; top:10px; left:10px; width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:rgba(15,14,12,.7); color:#fff; display:grid; place-items:center; }
.thumbs-wrap { display:flex; flex-direction:column; gap:6px; width:84px; flex:0 0 84px; max-height:72vh; }
.thumbs { display:flex; flex-direction:column; gap:6px; overflow-y:auto; padding:2px; flex:1 1 auto; min-height:0; scrollbar-width:none; -ms-overflow-style:none; }
.thumbs::-webkit-scrollbar { width:0; height:0; }
.thumbs-nav { height:30px; flex:0 0 30px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); color:var(--muted); cursor:pointer; display:grid; place-items:center; transition:background .15s, color .15s, border-color .15s; }
.thumbs-nav:hover { background:var(--surface); color:var(--fg); border-color:var(--primary); }
.thumbs-nav[hidden] { display:none; }
.thumbs button { aspect-ratio:1; width:100%; flex:0 0 auto; border:2px solid transparent; border-radius:8px; overflow:hidden; background:var(--surface-2); padding:0; position:relative; }
.thumbs button img { width:100%; height:100%; object-fit:cover; display:block; }
.thumbs button.active { border-color:var(--primary); }
.thumbs .video-thumb::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,.25); }
.thumbs .video-thumb .play { position:absolute; inset:0; display:grid; place-items:center; color:#fff; }
@media (max-width:920px){
  .gallery { flex-direction:column; }
  .gallery-main img { max-height:54vh; }
  .thumbs-wrap { width:auto; flex-basis:auto; max-height:none; }
  .thumbs-nav { display:none; }
  .thumbs { display:grid; grid-template-columns:repeat(4,1fr); overflow:visible; padding:0; }
}

/* ---- prev / next lot navigation ---- */
.ln-btn { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); color:var(--fg); font-weight:600; font-size:13px; text-decoration:none; transition:border-color .15s, color .15s; }
.ln-btn:hover { border-color:var(--primary); color:var(--primary); }
.ln-btn.disabled { opacity:.35; pointer-events:none; }
.ln-arrow { color:var(--muted); font-size:15px; }
.ln-btn:hover .ln-arrow { color:var(--primary); }
.ln-count { margin-left:auto; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
@media (max-width:560px){ .ln-btn { padding:6px 10px; font-size:12px; } .ln-count { display:none; } }

.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); z-index:100; display:none; align-items:center; justify-content:center; padding:40px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:100%; max-height:100%; border-radius:8px; }
.lightbox .close { position:absolute; top:20px; right:24px; color:#fff; font-size:28px; background:none; border:none; }

.site-footer { border-top:1px solid var(--border); background:var(--surface); margin-top:30px; }
.site-footer .wrap { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 20px; flex-wrap:wrap; font-size:13px; color:var(--muted); }
.footer-admin { color:var(--muted-2); font-size:12px; text-decoration:none; opacity:.7; }
.footer-admin:hover { color:var(--primary); opacity:1; }

.toast { position:fixed; bottom:24px; right:24px; z-index:200; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:14px 18px; box-shadow:var(--shadow); font-size:14px; transform:translateY(20px); opacity:0; transition:all .2s; max-width:340px; }
.toast.show { transform:translateY(0); opacity:1; }
.toast.ok { border-color:var(--primary); }
.toast.err { border-color:var(--danger); }

/* image upload grid */
.img-grid { display:flex; flex-wrap:wrap; gap:10px; }
.img-thumb { position:relative; width:96px; height:96px; border:1px solid var(--border); border-radius:8px; overflow:hidden; background:var(--surface-2); }
.img-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.img-thumb button { position:absolute; top:3px; right:3px; width:22px; height:22px; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:15px; line-height:1; cursor:pointer; padding:0; }
.img-thumb button:hover { background:#c0392b; }

/* admin dashboard */
.admin-shell { padding:0 0 60px; }
.admin-bar { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; border-bottom:1px solid var(--border); padding:12px 0 0; margin-bottom:24px; }
.admin-tabs { display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto; margin-bottom:0; border-bottom:none; -webkit-overflow-scrolling:touch; }
.admin-tabs button { padding:10px 16px; border:none; background:none; color:var(--muted); font-weight:600; border-bottom:2px solid transparent; white-space:nowrap; flex-shrink:0; }
.admin-tabs button.active { color:var(--primary); border-bottom-color:var(--primary); }
.admin-who { font-size:13px; color:var(--muted-2); white-space:nowrap; padding-bottom:12px; }
.admin-who a { color:var(--muted); text-decoration:none; }
.admin-who a:hover { color:var(--primary); }

/* ---- admin: section headers (consistent across all tabs) ---- */
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:2px 0 16px; margin:0 0 22px; border-bottom:1px solid var(--border); }
.section-head-main { display:flex; flex-direction:column; gap:4px; }
.section-title { margin:0; font-size:22px; font-weight:800; letter-spacing:-.01em; color:var(--fg); line-height:1.2; }
.section-sub { margin:0; font-size:13.5px; color:var(--muted); line-height:1.45; max-width:640px; }
.section-head-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-bottom:2px; }
.admin-grid { display:grid; grid-template-columns:1fr; gap:24px; }
.data-table { width:100%; border-collapse:collapse; font-size:14px; }
.data-table th, .data-table td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table th { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); font-weight:700; white-space:nowrap; }
.data-table thead th { position:sticky; top:0; background:var(--surface-2); z-index:2; border-bottom:2px solid var(--border); }
.data-table tbody tr:nth-child(even) td { background:var(--surface-2); }
.data-table tbody tr:hover td { background:var(--surface-2); }
.data-table td.num, .data-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.data-table td.mono, .data-table th.mono { font-variant-numeric:tabular-nums; white-space:nowrap; }
.data-table .cell-sub { font-size:11px; color:var(--muted-2); margin-top:1px; }
.data-table .empty { text-align:center; color:var(--muted-2); padding:28px 12px; }
/* tighten admin action buttons so columns stay compact */
.row-actions button { font-size:12px; padding:5px 10px; }

/* ---- admin: drag-to-reorder lots ---- */
.reorder-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:18px 0 4px; padding:12px 14px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; }
.reorder-bar select { padding:7px 10px; border:1px solid var(--border); border-radius:7px; background:var(--surface); color:var(--fg); font-size:13px; max-width:280px; }
.reorder-hint { font-size:12px; color:var(--muted); }
.grip { cursor:grab; color:var(--muted-2); font-size:14px; letter-spacing:-3px; user-select:none; }
.data-table.reorderable .grip-col { width:34px; text-align:center; }
.data-table.reorderable tbody tr { cursor:grab; }
.data-table.reorderable tbody tr.dragging { opacity:.4; }
.data-table.reorderable tbody tr.drag-over td { box-shadow: inset 0 2px 0 var(--primary); }
.data-table.reorderable tbody tr.drop-above td { box-shadow: inset 0 3px 0 var(--primary); }
.data-table.reorderable tbody tr.drop-below td { box-shadow: inset 0 -3px 0 var(--primary); }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.badge.live { background:var(--sold-bg); color:var(--sold-fg); }
.badge.draft { background:var(--surface-2); color:var(--muted); }
.badge.closed { background:var(--accent); color:var(--muted-2); }
.badge.open { background:var(--sold-bg); color:var(--sold-fg); }
.badge.pending { background:#fbe9e9; color:var(--danger); }
.badge.active { background:var(--sold-bg); color:var(--sold-fg); }
.form-card { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:20px; margin-bottom:24px; }
.form-card h2 { margin:0 0 4px; font-size:18px; }
.form-card .sub { color:var(--muted); font-size:13px; margin:0 0 16px; }
.form-row { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:12px; }
@media (max-width:620px){ .form-row { grid-template-columns:1fr; } }
.form-field label { display:block; font-size:12px; color:var(--muted-2); margin-bottom:4px; text-transform:uppercase; letter-spacing:.05em; }
.form-field input, .form-field textarea, .form-field select { width:100%; padding:9px 11px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--fg); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline:none; border-color:var(--primary); }
.form-field textarea { min-height:90px; }
.mono { font-variant-numeric:tabular-nums; }
.row-actions { display:flex; gap:6px; }
.row-actions button { font-size:12px; font-weight:600; padding:6px 11px; border:1px solid var(--border); background:var(--surface); color:var(--fg); border-radius:6px; transition:border-color .15s, color .15s, background .15s, transform .06s; }
.row-actions button:hover { border-color:var(--primary-2); color:var(--primary); background:var(--surface-2); }
.row-actions button:active { transform:translateY(1px); }
.row-actions button:focus-visible { outline:2px solid var(--primary-2); outline-offset:1px; }
.row-actions button.danger:hover { border-color:var(--danger); color:var(--danger); background:var(--surface-2); }
.login-card { max-width:380px; margin:60px auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:28px; box-shadow:var(--shadow); }
.login-card h1 { margin:0 0 4px; font-size:22px; }
.login-card .sub { color:var(--muted); font-size:13px; margin:0 0 18px; }
.info-note { font-size:13px; color:var(--muted); padding:12px 14px; border:1px dashed var(--border); border-radius:var(--radius-sm); margin:16px 0; }

/* ---- watch icon on gallery cards ---- */
.lot-card { position:relative; display:block; text-decoration:none; }
.lot-card > a { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.watch-btn { position:absolute; top:8px; right:8px; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:8px; border:none; background:rgba(255,255,255,.88); color:var(--muted); cursor:pointer; transition:background .15s, color .15s, transform .15s; z-index:2; box-shadow:0 1px 4px rgba(0,0,0,.12); }
.watch-btn:hover { background:#fff; color:var(--primary); transform:scale(1.08); }
.watch-btn.on { background:var(--primary); color:var(--primary-ink); }
.watch-btn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
.watch-btn.on svg { fill:currentColor; }

/* ---- header notification bell ---- */
.notif-bell { position:relative; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; color:var(--fg); }
.notif-bell:hover { background:var(--surface-2); }
.notif-badge { position:absolute; top:-2px; right:-2px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:var(--danger); color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center; }

/* ---- account: watchlist / wantlist / notifications ---- */
.acc-section { margin-top:22px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; }
.acc-section > .acc-head { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--surface-2); border-bottom:1px solid var(--border); }
.acc-head h3 { margin:0; font-size:13px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.acc-head .count { font-size:12px; color:var(--muted-2); }
.acc-body { padding:8px 16px 14px; }
.acc-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.acc-row:last-child { border-bottom:none; }
.acc-row .thumb { width:44px; height:44px; border-radius:6px; object-fit:cover; background:var(--surface-2); flex:none; }
.acc-row .meta { flex:1; min-width:0; }
.acc-row .meta .t { font-weight:600; font-size:14px; color:var(--fg); }
.acc-row .meta .s { font-size:12px; color:var(--muted-2); }
.acc-row .price { font-weight:700; font-size:14px; color:var(--fg); }
.acc-empty { color:var(--muted-2); font-size:13px; padding:14px 0; }
.want-add { display:flex; gap:8px; margin:10px 0 4px; }
.want-add input { flex:1; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--fg); font-size:13px; }
.kw-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); font-size:13px; color:var(--fg); margin:4px 4px 0 0; }
.kw-chip button { border:none; background:transparent; color:var(--muted-2); cursor:pointer; font-size:15px; line-height:1; padding:0; }
.kw-chip button:hover { color:var(--danger); }
.notif-item { display:flex; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.notif-item:last-child { border-bottom:none; }
.notif-item .dot { width:8px; height:8px; border-radius:50%; background:var(--primary); flex:none; margin-top:6px; }
.notif-item.read .dot { background:transparent; border:1px solid var(--border); }
.notif-item .nm { font-size:13px; color:var(--fg); }
.notif-item .nt { font-size:11px; color:var(--muted-2); margin-top:2px; }

/* ---- bid confirmation modal ---- */
.bid-confirm { position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(15,14,12,.5); backdrop-filter:blur(2px); }
.bid-confirm.open { display:flex; }
.bc-card { position:relative; width:100%; max-width:440px; background:var(--surface); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.3); padding:26px 24px 22px; animation:bc-pop .18s ease; }
@keyframes bc-pop { from { transform:translateY(8px) scale(.98); opacity:0; } to { transform:none; opacity:1; } }
.bc-close { position:absolute; top:12px; right:14px; border:none; background:transparent; font-size:22px; line-height:1; color:var(--muted-2); cursor:pointer; }
.bc-close:hover { color:var(--fg); }
.bc-title { margin:0 0 4px; font-size:20px; font-weight:800; color:var(--fg); }
.bc-sub { margin:0 0 16px; font-size:13px; color:var(--muted); }
.bc-breakdown { border:1px solid var(--border); border-radius:10px; overflow:hidden; margin-bottom:14px; }
.bc-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px; font-size:14px; border-bottom:1px solid var(--border); }
.bc-row span { color:var(--muted); }
.bc-row b { font-weight:600; color:var(--fg); }
.bc-row.bc-total { background:var(--surface-2); border-bottom:none; }
.bc-row.bc-total span { color:var(--fg); font-weight:700; }
.bc-row.bc-total b { color:var(--primary); font-size:16px; }
.bc-note { font-size:11px; color:var(--muted-2); line-height:1.5; margin:0 2px 14px; }
.bc-note a, .bc-terms a { color:var(--primary); text-decoration:underline; }
.bc-terms { margin-bottom:16px; }
.bc-check { display:flex; align-items:flex-start; gap:9px; font-size:12px; color:var(--muted); line-height:1.5; cursor:pointer; }
.bc-check input { margin-top:2px; flex:none; }
.bc-actions { display:flex; gap:10px; justify-content:flex-end; }
.bc-actions .btn { min-width:110px; justify-content:center; }
.bc-actions .btn:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }

/* ---- clickable bid count ---- */
.bid-count-btn { border:none; background:transparent; padding:0; cursor:pointer; font:inherit; color:inherit; display:inline-flex; align-items:baseline; gap:5px; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:3px; transition:text-decoration-color .15s; }
.bid-count-btn:hover { text-decoration-color:var(--primary-2); }
.bid-count-btn strong { color:var(--primary); }

/* ---- bid history modal ---- */
.bid-modal { position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center; padding:20px; background:rgba(15,14,12,.5); backdrop-filter:blur(2px); }
.bid-modal.open { display:flex; }
.bm-card { position:relative; width:100%; max-width:460px; max-height:80vh; display:flex; flex-direction:column; background:var(--surface); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.3); padding:26px 24px 22px; animation:bc-pop .18s ease; }
.bm-body { overflow-y:auto; flex:1; min-height:0; padding:2px 2px 4px; }
.bid-list { list-style:none; padding:0; margin:0; }
.bid-list li { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); font-size:14px; }
.bid-list li:last-child { border-bottom:none; }
.bid-list .bid-no { font-weight:700; color:var(--primary); min-width:34px; }
.bid-list .bid-amt { flex:1; color:var(--muted); font-size:13px; }
.bid-list .bid-time { color:var(--muted-2); font-size:12px; font-variant-numeric:tabular-nums; }

/* ---- admin: lots toolbar + reorder cards ---- */
.lot-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:0 0 18px; }
.reorder-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px,1fr)); gap:14px; }
.reorder-card { position:relative; border:1px solid var(--border); border-radius:11px; background:var(--surface); overflow:hidden; cursor:grab; transition:box-shadow .15s, border-color .15s, transform .1s; }
.reorder-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); border-color:var(--primary-2); }
.reorder-card.dragging { opacity:.4; }
.reorder-card.drag-over { border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-2) inset; }
.reorder-card.drop-left { box-shadow:-3px 0 0 0 var(--primary) inset; }
.reorder-card.drop-right { box-shadow:3px 0 0 0 var(--primary) inset; }
.reorder-grip { position:absolute; top:6px; right:8px; color:var(--muted-2); font-size:14px; letter-spacing:-3px; cursor:grab; user-select:none; z-index:2; background:rgba(255,255,255,.8); padding:1px 3px; border-radius:5px; }
.reorder-thumb { width:100%; aspect-ratio:4/3; background:var(--surface-2); overflow:hidden; }
.reorder-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.reorder-noimg { width:100%; height:100%; display:grid; place-items:center; color:var(--muted-2); font-size:12px; }
.reorder-meta { padding:9px 11px 11px; display:flex; flex-direction:column; gap:2px; }
.reorder-lotno { font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--primary); text-transform:uppercase; }
.reorder-title { font-size:13px; color:var(--fg); line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ---- admin: bidding stats + sortable grid ---- */
.stat-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); gap:12px; margin:0 0 22px; }
.stat-card { border:1px solid var(--border); border-radius:11px; background:var(--surface); padding:14px 16px; display:flex; flex-direction:column; gap:4px; }
.stat-label { font-size:11px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted-2); }
.stat-val { font-size:24px; font-weight:800; color:var(--fg); font-variant-numeric:tabular-nums; }
.table-scroll { overflow-x:auto; border:1px solid var(--border); border-radius:11px; }
.bidding-grid { min-width:1180px; }
.bidding-grid th.sortable { cursor:pointer; user-select:none; white-space:nowrap; }
.bidding-grid th.sortable:hover { color:var(--primary); }
.sort-arrow { color:var(--primary); font-size:11px; margin-left:3px; }
/* Lots table sortable headers (general data-table) */
.data-table th.sortable { cursor:pointer; user-select:none; white-space:nowrap; }
.data-table th.sortable:hover { color:var(--primary); }
/* clickable high-bidder name/email links */
.link-name { color:var(--primary); text-decoration:none; font-weight:600; }
.link-name:hover { text-decoration:underline; }
.bidding-title { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bidding-grid td { white-space:nowrap; }

/* ---- admin: bidding filter bar + per-column filters ---- */
.filter-bar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:12px 14px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; margin-bottom:16px; }
.filter-field { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--muted-2); font-weight:600; }
.filter-field select { padding:7px 10px; border:1px solid var(--border); border-radius:7px; background:var(--surface); color:var(--fg); font-size:13px; max-width:240px; }
.filter-bar .btn { margin-left:auto; }
.bidding-grid .filter-row th { position:sticky; top:34px; background:var(--surface); padding:6px 8px; border-bottom:1px solid var(--border); z-index:1; }
.col-filter-th.empty { padding:0; }
.col-filter-wrap { display:flex; align-items:center; gap:4px; position:relative; }
.col-filter-icon { width:13px; height:13px; color:var(--muted-2); flex-shrink:0; position:absolute; left:6px; pointer-events:none; }
.col-filter { width:100%; min-width:64px; padding:5px 8px 5px 24px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--fg); font-size:12px; }
.col-filter:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 2px var(--primary-2); }

/* ---- admin: bid ledger page (bids.html) ---- */
.admin-back { display:inline-flex; align-items:center; gap:6px; padding:10px 14px; color:var(--muted); font-weight:600; font-size:13px; text-decoration:none; border-radius:8px; }
.admin-back:hover { color:var(--primary); background:var(--surface-2); }
.admin-back span { font-size:16px; line-height:1; }
.ledger-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:22px; }
.ledger-head-main { display:flex; flex-direction:column; gap:6px; }
.ledger-lotno { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); }
.ledger-head h1 { font-size:26px; line-height:1.2; margin:0; }
.ledger-stats { display:flex; gap:12px; flex-wrap:wrap; }
.ledger-stats .stat-card { min-width:130px; }
.bid-ledger { min-width:760px; }
.loading-state { padding:40px 0; }
.users-grid { min-width:980px; }

/* ---- admin: modal overlay (user edit + bid detail) ---- */
.modal-overlay { position:fixed; inset:0; z-index:220; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(15,14,12,.5); backdrop-filter:blur(2px); }
.adm-modal { position:relative; width:100%; max-width:540px; max-height:86vh; display:flex; flex-direction:column; background:var(--surface); border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.3); animation:bc-pop .18s ease; }
.adm-modal.user-modal { max-width:560px; }
.adm-modal-head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border); }
.adm-modal-head h3 { margin:0; font-size:18px; font-weight:800; color:var(--fg); }
.adm-modal-close { border:none; background:transparent; font-size:24px; line-height:1; color:var(--muted-2); cursor:pointer; }
.adm-modal-close:hover { color:var(--fg); }
.adm-modal .modal-body { overflow-y:auto; flex:1; min-height:0; padding:20px 22px; }
.adm-modal .modal-foot { display:flex; gap:10px; justify-content:flex-end; padding:14px 22px; border-top:1px solid var(--border); }
.readonly-meta { font-size:12px; color:var(--muted); line-height:1.6; background:var(--surface-2); border:1px solid var(--border); border-radius:9px; padding:10px 12px; }
.readonly-meta strong { color:var(--fg); }
