/* ==========================================================================
   Concept: Closing Board
   A light, data-dense "departures board" for auctions. Left icon rail,
   slim dark top bar, lots as rows with big monospace countdowns.
   ========================================================================== */

:root[data-theme="floor"] {
  --font-display: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 6px; --radius-sm: 4px; --radius-btn: 4px; --radius-chip: 4px;
  --h1-weight: 600; --h1-spacing: -0.02em;

  --paper: #f3f4f6; --paper-2: #ffffff; --line: #d9dde3;
  --text: #0f172a; --text-2: #475569; --text-3: #8a94a6;
  --card-border: 1px solid var(--line);
  --shadow: none; --shadow-lg: 0 20px 50px -30px rgba(15,23,42,.35); --shadow-hover: none;
  --media-bg: #e8ebf0; --ph: #b5bcc8; --tag-gold: #8a5a00; --input-bg: #ffffff;

  --topbar-bg: #0f172a; --topbar-text: rgba(255,255,255,.7); --topbar-accent: #ffd166; --topbar-line: transparent;
  --chrome-bg: #0f172a; --chrome-text: #ffffff; --chrome-text-2: rgba(255,255,255,.65); --chrome-line: rgba(255,255,255,.1);
  --chrome-field: #ffffff; --chrome-field-line: #ffffff; --chrome-field-focus: var(--gold); --chrome-hover: rgba(255,255,255,.08);
  --chrome-loc-bg: #fff3d6; --chrome-loc-text: #8a5a00; --chrome-hot: #ffd166;

  --hero-bg: #ffffff; --hero-text: #0f172a; --hero-text-2: #475569; --hero-line: var(--line); --hero-grid: transparent; --hero-em: #d58e00;
  --hero-ghost-line: var(--line); --hero-ghost-bg: #fff; --hero-ghost-hover: #f3f4f6;
  --feature-bg: #fff; --feature-line: var(--line); --feature-text: #0f172a; --feature-text-2: #475569; --feature-media: #e8ebf0;

  --dark-bg: #0f172a; --dark-text: #fff; --dark-text-2: rgba(255,255,255,.7); --dark-line: rgba(255,255,255,.12);
  --dark-card: rgba(255,255,255,.05); --dark-card-hover: rgba(255,255,255,.09); --dark-accent: #ffd166; --dark-glow: rgba(241,162,8,.14);
  --footer-bg: #ffffff; --footer-text: #0f172a; --footer-text-2: #475569; --footer-line: var(--line); --footer-accent: #8a5a00;

  --btn-primary-bg: #f1a208; --btn-primary-text: #1b1200; --btn-primary-shadow: none; --btn-primary-hover-shadow: none;
  --btn-dark-bg: #0f172a; --btn-dark-text: #fff; --btn-dark-hover: #1e293b;
  --cat-ico-bg: #eef2f7; --cat-ico-text: #0f172a; --step-ico-bg: #0f172a; --step-ico-text: #ffd166;
  --eyebrow: #8a5a00; --accent-text: #8a5a00; --chip-on-bg: #0f172a; --chip-on-text: #fff;
  --price-color: #0f172a; --deal-price: #ffd166; --hover-lift: 0;
}

html[data-theme="floor"] body { padding-left: 84px; }
html[data-theme="floor"] .cats { background: var(--paper-2); }
html[data-theme="floor"] .btn { font-weight: 600; letter-spacing: .01em; }
html[data-theme="floor"] .btn-gold:hover { background: #ffb21a; }
html[data-theme="floor"] .mono, html[data-theme="floor"] .ends, html[data-theme="floor"] .bidbox .state b, html[data-theme="floor"] .lot .pricing .cur b,
html[data-theme="floor"] .tile b, html[data-theme="floor"] .totals .grand, html[data-theme="floor"] .feature-card .timer .clock { font-family: var(--font-mono); letter-spacing: 0; }
html[data-theme="floor"] .section { padding: 48px 0; }
html[data-theme="floor"] .section-head h2, html[data-theme="floor"] .page-head h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; }
html[data-theme="floor"] .section-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
html[data-theme="floor"] .eyebrow { font-family: var(--font-mono); letter-spacing: .08em; font-size: 11.5px; }
html[data-theme="floor"] .eyebrow::before { display: none; }
html[data-theme="floor"] .page-head { padding: 28px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
html[data-theme="floor"] .panel { border-radius: var(--radius); }
html[data-theme="floor"] .panel h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
html[data-theme="floor"] .tag { border-radius: 3px; }
html[data-theme="floor"] .footer { margin-top: 48px; padding: 28px 0 24px; }
html[data-theme="floor"] .footer .grid { grid-template-columns: 1fr auto auto auto; gap: 32px; padding-bottom: 20px; align-items: start; }
html[data-theme="floor"] .footer .brand img { height: 34px; background: #0f172a; padding: 6px 10px; border-radius: 6px; }
html[data-theme="floor"] .footer h4 { margin-bottom: 8px; }
html[data-theme="floor"] .footer ul { gap: 6px; font-size: 13.5px; }
html[data-theme="floor"] .footer .legal { padding-top: 14px; font-size: 12px; }
html[data-theme="floor"] .switcher-btn { border-radius: 6px; }
html[data-theme="floor"] .switcher-panel { border-radius: 8px; }
html[data-theme="floor"] .topbar { display: none; }

/* Top bar ------------------------------------------------------------------ */
.fl-top { position: sticky; top: 0; z-index: 50; background: #0f172a; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.fl-top-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; height: 60px; padding: 0 24px 0 20px; }
.fl-top .logo img { height: 32px; }
.fl-search { display: flex; align-items: center; gap: 10px; height: 38px; max-width: 640px; min-width: 0; padding: 0 10px 0 12px; border-radius: 4px; background: #1e293b; border: 1px solid #334155; color: #fff; }
.fl-search:focus-within { border-color: var(--gold); background: #0b1220; }
.fl-search svg { width: 16px; height: 16px; color: rgba(255,255,255,.55); flex: none; }
.fl-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; }
.fl-search input::placeholder { color: rgba(255,255,255,.45); }
.fl-search kbd { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.5); border: 1px solid #334155; border-radius: 3px; padding: 1px 6px; }
.fl-top-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.fl-live { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); white-space: nowrap; }
.fl-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.6s infinite; }
.fl-clock { font-family: var(--font-mono); font-size: 14px; color: #ffd166; white-space: nowrap; }
.fl-clock small { color: rgba(255,255,255,.5); margin-left: 6px; font-size: 11px; }
.fl-top .btn-sm { height: 34px; }
.fl-top .icon-btn { border-color: #334155; }

/* Rail --------------------------------------------------------------------- */
.fl-rail { position: fixed; left: 0; top: 0; bottom: 0; width: 84px; z-index: 60; background: #0f172a; border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: stretch; padding: 70px 8px 16px; gap: 4px; }
.fl-rail a { display: grid; justify-items: center; gap: 5px; padding: 11px 4px; border-radius: 6px; color: rgba(255,255,255,.6); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fl-rail a svg { width: 20px; height: 20px; }
.fl-rail a:hover { background: rgba(255,255,255,.07); color: #fff; }
.fl-rail a.on { background: #ffd166; color: #0f172a; }
.fl-rail .fl-rail-pin { margin-top: auto; color: #ffd166; }

/* Board rows (lot cards under this concept) --------------------------------- */
html[data-theme="floor"] .lot-grid { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; }
html[data-theme="floor"] .lot-grid.list { display: block; }
.fl-row { display: grid; grid-template-columns: 116px 64px minmax(0, 1fr) 110px 120px auto 40px; gap: 16px; align-items: center; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); background: var(--paper-2); position: relative; transition: background .15s; }
.fl-row:last-child { border-bottom: 0; }
.fl-row:hover { background: #fbfbfc; }
.fl-row.hidden { display: none; }
.fl-row .fl-time { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-align: center; padding: 10px 0; background: #0f172a; color: #ffd166; height: 100%; display: grid; place-items: center; min-height: 72px; font-variant-numeric: tabular-nums; }
.fl-row .fl-time.soon { background: #b91c1c; color: #fff; }
.fl-row .fl-time small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-family: var(--font-body); margin-top: 2px; }
.fl-row .fl-thumb { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--media-bg); position: relative; display: block; }
.fl-row .fl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-row .fl-thumb .ph svg { width: 22px; height: 22px; }
.fl-row .fl-main { min-width: 0; }
.fl-row .fl-title { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row .fl-title:hover { color: var(--accent-text); }
.fl-row .fl-meta { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.fl-row .fl-meta .tag { height: 20px; font-size: 10.5px; padding: 0 7px; }
.fl-row .fl-meta b { color: var(--text-2); font-weight: 600; }
.fl-row .fl-bid, .fl-row .fl-retail { font-family: var(--font-mono); }
.fl-row .fl-bid small, .fl-row .fl-retail small { display: block; font-family: var(--font-body); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.fl-row .fl-bid b { font-size: 20px; font-weight: 600; }
.fl-row .fl-retail s { color: var(--text-3); font-size: 13px; }
.fl-row .fl-retail em { display: block; font-style: normal; color: var(--green); font-size: 12px; font-weight: 600; }
.fl-row .btn { height: 34px; padding: 0 16px; }
.fl-row .watch { position: static; width: 32px; height: 32px; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--text-3); display: grid; place-items: center; }
.fl-row .watch:hover, .fl-row .watch.on { color: var(--red); border-color: var(--red); }
.fl-row .watch svg { width: 15px; height: 15px; }
.fl-row .watch.on svg { fill: currentColor; }
.fl-head { display: grid; grid-template-columns: 116px 64px minmax(0, 1fr) 110px 120px auto 40px; gap: 16px; padding: 8px 14px 8px 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--paper); }
.fl-head span:first-child { text-align: center; }
.fl-head span:nth-child(6) { width: 66px; }

/* Home: board hero ---------------------------------------------------------- */
.fl-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.fl-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 26px 0 28px; align-items: start; }
.fl-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.fl-board-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.fl-board-head h1 small { display: block; font-size: 12px; font-family: var(--font-mono); color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.fl-board-head .fl-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); }
.fl-board-head .fl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.fl-side { display: grid; gap: 14px; }
.fl-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fl-stat small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.fl-stat b { font-family: var(--font-mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.fl-stat span { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.fl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 16px 18px; }
.fl-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 12px; font-weight: 600; }
.fl-steps { display: grid; gap: 10px; counter-reset: s; }
.fl-steps div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 13.5px; color: var(--text-2); align-items: start; }
.fl-steps div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); padding-top: 2px; font-weight: 600; }
.fl-steps b { color: var(--text); font-weight: 600; }
.fl-card.dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.fl-card.dark h3 { color: rgba(255,255,255,.6); }
.fl-card.dark p { margin: 0 0 12px; font-size: 13.5px; color: rgba(255,255,255,.8); }
.fl-card.dark b { color: #ffd166; }
.fl-card.dark .btn { height: 36px; }

/* Home: category pill bar --------------------------------------------------- */
.fl-pills { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.fl-pills::-webkit-scrollbar { display: none; }
.fl-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-2); font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.fl-pill svg { width: 15px; height: 15px; color: var(--text-3); }
.fl-pill:hover { border-color: #0f172a; color: var(--text); }
.fl-pill b { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); font-weight: 500; }
.fl-pillbar { background: var(--paper-2); border-bottom: 1px solid var(--line); }

/* Home: buy-now rack -------------------------------------------------------- */
.fl-rack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fl-rack-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); align-items: center; }
.fl-rack-item .media { width: 96px; height: 96px; border-radius: 4px; overflow: hidden; background: var(--media-bg); position: relative; display: block; }
.fl-rack-item .media img { width: 100%; height: 100%; object-fit: cover; }
.fl-rack-item h3 { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-rack-item .cond { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.fl-rack-item .price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-family: var(--font-mono); }
.fl-rack-item .price b { font-size: 18px; font-weight: 600; }
.fl-rack-item .price s { color: var(--text-3); font-size: 12px; }
.fl-rack-item .price em { font-style: normal; font-size: 11px; color: var(--green); font-weight: 600; }
.fl-rack-item .btn { margin-top: 8px; height: 32px; padding: 0 12px; font-size: 12.5px; justify-self: start; }

/* Home: location band ------------------------------------------------------- */
.fl-band { background: #0f172a; color: #fff; }
.fl-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 0; }
.fl-band small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ffd166; margin-bottom: 6px; }
.fl-band b { font-size: 20px; font-weight: 600; }
.fl-band span { display: block; color: rgba(255,255,255,.7); font-size: 14px; margin-top: 4px; }
.fl-band .hours { display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 13px; font-family: var(--font-mono); color: rgba(255,255,255,.8); margin-right: 24px; }
.fl-band .hours span { margin: 0; display: inline; color: rgba(255,255,255,.5); }
.fl-band .right { display: flex; align-items: center; gap: 24px; }

/* Deals section under this concept uses the rack, not dark band ------------- */
html[data-theme="floor"] .deal-row { grid-auto-columns: minmax(240px, 1fr); }
html[data-theme="floor"] .deal { border-radius: var(--radius); }

/* Inner pages: tune a few shared components ------------------------------- */
html[data-theme="floor"] .tiles { gap: 10px; }
html[data-theme="floor"] .tile { padding: 14px 16px; }
html[data-theme="floor"] .side-nav a { border-radius: 4px; font-size: 14px; }
html[data-theme="floor"] .side-nav a.on { background: #0f172a; color: #fff; border-color: #0f172a; }
html[data-theme="floor"] .side-nav a.on svg { color: #ffd166; }
html[data-theme="floor"] .side-nav .avatar { border-radius: 4px; background: #0f172a; color: #ffd166; }
html[data-theme="floor"] .bidbox { border-radius: var(--radius); box-shadow: none; }
html[data-theme="floor"] .bidbox .state b { font-size: 26px; }
html[data-theme="floor"] .gallery .main, html[data-theme="floor"] .gallery .thumbs button { border-radius: 4px; }
html[data-theme="floor"] .filters .group { border-radius: var(--radius); }
html[data-theme="floor"] .auth .side { background: #0f172a; color: #fff; }
html[data-theme="floor"] .auth .side p, html[data-theme="floor"] .auth .perks div { color: rgba(255,255,255,.72); }
html[data-theme="floor"] .auth .perks b, html[data-theme="floor"] .auth .side h2 { color: #fff; }
html[data-theme="floor"] .auth .side h2 em { background: #ffd166; }
html[data-theme="floor"] .auth .quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
html[data-theme="floor"] .auth .quote small { color: rgba(255,255,255,.55); }
html[data-theme="floor"] .pickup-card { border-radius: var(--radius); }
html[data-theme="floor"] .news .wrap { border-radius: var(--radius); }
html[data-theme="floor"] details.qa summary { font-size: 14.5px; }
html[data-theme="floor"] .faq-group h2 { font-size: 18px; }
html[data-theme="floor"] .faq-group h2 span { border-radius: 4px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .fl-hero .wrap { grid-template-columns: 1fr; }
  .fl-side { grid-template-columns: 1fr 1fr; }
  .fl-rack { grid-template-columns: repeat(2, 1fr); }
  .fl-row, .fl-head { grid-template-columns: 96px 56px minmax(0, 1fr) 100px auto 36px; }
  .fl-row .fl-retail, .fl-head span:nth-child(5) { display: none; }
}
@media (max-width: 900px) {
  html[data-theme="floor"] body { padding-left: 0; padding-bottom: 68px; }
  .fl-rail { top: auto; bottom: 0; width: 100%; height: 64px; flex-direction: row; padding: 6px 8px; border-right: 0; border-top: 1px solid rgba(255,255,255,.08); justify-content: space-around; }
  .fl-rail a { padding: 6px 2px; font-size: 9px; letter-spacing: 0; gap: 3px; flex: 1 1 0; min-width: 0; }
  .fl-rail a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fl-rail .fl-rail-pin { margin-top: 0; }
  .fl-rail a:nth-child(6) { display: none; }
  .fl-top-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 0 14px; }
  .fl-live, .fl-clock small { display: none; }
  .fl-search kbd { display: none; }
  html[data-theme="floor"] .switcher { bottom: 76px; }
  .fl-band .wrap { grid-template-columns: 1fr; }
  .fl-band .right { flex-wrap: wrap; }
  .fl-side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fl-row, .fl-head { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; padding-right: 10px; }
  .fl-row .fl-thumb, .fl-row .fl-bid, .fl-row .watch, .fl-head span:nth-child(2), .fl-head span:nth-child(4), .fl-head span:nth-child(7) { display: none; }
  .fl-row .fl-time { font-size: 17px; min-height: 60px; }
  .fl-row .fl-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; }
  .fl-row .fl-meta { gap: 8px; }
  .fl-row .fl-meta span:nth-child(n+3) { display: none; }
  .fl-row .fl-meta::after { content: attr(data-bid); font-family: var(--font-mono); font-weight: 600; color: var(--text); }
  .fl-rack { grid-template-columns: 1fr; }
  .fl-top .btn-sm, .fl-clock { display: none; }
  .fl-top-in { height: 56px; padding: 0 10px; gap: 10px; }
  .fl-top .logo img { height: 26px; }
  .fl-search { min-width: 0; height: 36px; }
  .fl-top-right { gap: 8px; }
  .fl-top .icon-btn { width: 36px; height: 36px; }
  .fl-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Condition strip on the board home ----------------------------------------- */
.fl-conds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .fl-conds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fl-conds { grid-template-columns: minmax(0, 1fr); } }

/* Footer columns must collapse on small screens (concept rule outranks base) */
@media (max-width: 900px) { html[data-theme="floor"] .footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { html[data-theme="floor"] .footer .grid { grid-template-columns: 1fr; } }
