/* Befroosh public site — Phase 7 components (cards, browse, listing, sales,
   info, islands). Builds on tokens.css + site.css; class names mirror the
   Flutter widgets (BfListingCard, BfGradeSeal, BfStatusPill, …). */

/* ---- type helpers ---- */
.bf-h1 { margin: 0 0 8px; font-size: 28px; font-weight: 900; line-height: 1.5; }
@media (min-width: 1024px) { .bf-h1 { font-size: 34px; } }
.bf-h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.bf-h4 { margin: 20px 0 8px; font-size: 17px; font-weight: 800; }
.bf-lead { margin: 0 0 24px; color: var(--bf-body); font-size: 16px; line-height: 2; max-width: 720px; }
.bf-muted { color: var(--bf-muted); }
.bf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--bf-primary); margin-bottom: 6px; }
.bf-eyebrow--saffron { color: var(--bf-saffron-text); }
.bf-link { color: var(--bf-primary); font-weight: 700; text-decoration: none; }
.bf-link:hover { text-decoration: underline; }
.bf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bf-noscroll { overflow: hidden; }
.bf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--bf-saffron); animation: bfPulse 1.6s infinite; }
[data-countdown], .bf-timer__tiles { direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: tabular-nums; }
.bf-timer__tiles { display: flex; }
.bf-section--tint { background: var(--bf-surface); border-top: 1px solid var(--bf-hairline); border-bottom: 1px solid var(--bf-hairline); }
.bf-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.bf-section__head .bf-h2 { margin-bottom: 0; }
.bf-grid--cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (min-width: 1024px) { .bf-grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; } }
@keyframes bfPop { 0% { transform: scale(.985); opacity: .7 } 100% { transform: none; opacity: 1 } }
.bf-pop { animation: bfPop .25s ease-out; }

/* ---- grade seal (8-point شمسه) ---- */
.bf-seal { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bf-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bf-seal b { position: relative; color: #fff; font-weight: 900; line-height: 1; }
.bf-seal--sm { width: 32px; height: 32px; } .bf-seal--sm b { font-size: 14px; }
.bf-seal--md { width: 48px; height: 48px; } .bf-seal--md b { font-size: 20px; }
.bf-seal--lg { width: 56px; height: 56px; } .bf-seal--lg b { font-size: 22px; }
.bf-seal--a svg { fill: var(--bf-grade-a); } .bf-seal--b svg { fill: var(--bf-grade-b); }
.bf-seal--c svg { fill: var(--bf-grade-c); } .bf-seal--d svg { fill: var(--bf-grade-d); }

/* ---- status pills ---- */
.bf-status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.bf-status--live { background: var(--bf-saffron); color: var(--bf-ink); } .bf-status--live .bf-dot { background: var(--bf-ink); }
.bf-status--waiting { background: var(--bf-navy-tint); color: var(--bf-navy); }
.bf-status--sold { background: var(--bf-success-tint); color: var(--bf-success-text); }
.bf-status--rejected { background: var(--bf-danger-tint); color: var(--bf-danger-text); }

/* ---- listing card ---- */
.bf-card { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: var(--bf-radius-card-large); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(18,26,43,.06); transition: transform .2s ease, box-shadow .2s ease; }
.bf-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,26,43,.1); }
.bf-card__media { position: relative; display: block; height: 170px; background: var(--bf-navy-tint); aspect-ratio: 2 / 1; }
.bf-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bf-card__placeholder { width: 60%; height: 100%; margin: 0 auto; }
.bf-card__seal { position: absolute; top: 10px; left: 10px; }
.bf-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.bf-badge--live { background: var(--bf-saffron); color: var(--bf-ink); } .bf-badge--live .bf-dot { background: var(--bf-ink); width: 7px; height: 7px; }
.bf-badge--soon { background: var(--bf-navy); color: #fff; }
.bf-badge--sold { background: var(--bf-success); color: #fff; }
.bf-badge--ended { background: var(--bf-disabled-fill); color: var(--bf-body); }
.bf-card--sold .bf-card__media img { filter: saturate(.6); }
.bf-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.bf-card__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.6; }
.bf-card__title a { color: var(--bf-ink); text-decoration: none; }
.bf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bf-tags li { background: var(--bf-tag-fill); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--bf-body); }
.bf-card__price { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; border-top: 1px solid var(--bf-hairline); padding-top: 10px; }
.bf-card__label { display: block; font-size: 12px; color: var(--bf-muted); }
.bf-price { display: inline-flex; align-items: baseline; gap: 4px; }
.bf-price__num { font-size: 18px; font-weight: 800; color: var(--bf-ink); }
.bf-price__unit { font-size: 12px; font-weight: 600; color: var(--bf-muted); }
.bf-card__bids { font-size: 12px; color: var(--bf-muted); white-space: nowrap; }

/* ---- score bar ---- */
.bf-score { display: inline-flex; gap: 3px; }
.bf-score i { width: 18px; height: 6px; border-radius: 3px; background: var(--bf-border-card); }
.bf-score i.is-on { background: var(--bf-primary); }

/* ---- hero additions ---- */
.bf-slide[hidden] { display: none; }
.bf-slide.is-active { animation: bfRise .5s ease-out both; }
.bf-hero__dots { display: flex; gap: 4px; margin-top: 20px; }
.bf-hero__dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.bf-hero__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 999px; background: rgba(255,255,255,.35); transition: width .2s, margin .2s, background .2s; }
.bf-hero__dot.is-active::after { width: 26px; margin-left: -13px; background: var(--bf-saffron); }
.bf-hero__visual { position: relative; min-height: 360px; }
.bf-float { position: absolute; background: var(--bf-surface); color: var(--bf-ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 44px rgba(5,12,28,.35); display: flex; flex-direction: column; gap: 8px; width: 230px; text-decoration: none; animation: bfFloat 6s ease-in-out infinite; }
.bf-float--report { top: 20px; right: 0; }
.bf-float--bid { bottom: 10px; left: 0; background: var(--bf-saffron); animation-delay: -3s; width: 238px; }
.bf-float__head { display: flex; align-items: center; gap: 10px; }
.bf-float__head div { display: flex; flex-direction: column; } .bf-float__head strong { font-size: 14px; } .bf-float__head span { font-size: 12px; color: var(--bf-muted); }
.bf-float__rows { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.bf-float__rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bf-float__live { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; } .bf-float__live .bf-dot { background: var(--bf-ink); width: 7px; height: 7px; }
.bf-float--bid span { font-size: 12px; } .bf-float--bid strong { font-size: 22px; font-weight: 900; } .bf-float--bid small { font-size: 13px; font-weight: 700; }
@media (max-width: 1023px) { .bf-hero__visual { display: none; } }

/* ---- trust strip ---- */
.bf-trust { background: var(--bf-surface); border-bottom: 1px solid var(--bf-border-card); }
.bf-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.bf-trust__item { display: flex; align-items: center; gap: 12px; }
.bf-trust__icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--bf-primary-tint); color: var(--bf-primary); display: flex; align-items: center; justify-content: center; }
.bf-trust__item div { display: flex; flex-direction: column; } .bf-trust__item strong { font-size: 15px; } .bf-trust__item span { font-size: 13px; color: var(--bf-muted); }
.bf-trust__stats { display: flex; gap: 24px; flex-wrap: wrap; }
.bf-stat { display: flex; flex-direction: column; } .bf-stat strong { font-size: 24px; font-weight: 900; color: var(--bf-navy); } .bf-stat span { font-size: 13px; color: var(--bf-muted); }
.bf-trust__badges { display: flex; gap: 10px; justify-content: flex-end; }
.bf-trust__badge { width: 72px; height: 72px; border-radius: 12px; border: 1px dashed var(--bf-dashed); color: var(--bf-muted); font-size: 11px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.5; padding: 4px; }

/* ---- tabs + steps ---- */
.bf-tabs { display: inline-flex; padding: 4px; border-radius: 16px; background: var(--bf-track-fill); gap: 4px; }
.bf-tabs__tab { height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; font-size: 16px; font-weight: 600; background: transparent; color: var(--bf-body); }
.bf-tabs__tab.is-active { background: var(--bf-surface); color: var(--bf-ink); font-weight: 800; box-shadow: 0 2px 8px rgba(18,26,43,.08); }
.bf-steps[hidden] { display: none; }
.bf-step h3 { margin: 0; font-size: 20px; font-weight: 800; }
.bf-step--teal .bf-step__badge { background: var(--bf-primary); color: #fff; }

/* ---- tables ---- */
.bf-table-wrap { overflow-x: auto; background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; }
.bf-compare, .bf-sales { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.bf-compare th, .bf-compare td, .bf-sales th, .bf-sales td { text-align: right; padding: 16px 24px; }
.bf-compare thead th { font-size: 16px; font-weight: 700; color: var(--bf-body); }
.bf-compare thead th.bf-compare__us { background: var(--bf-primary); color: #fff; font-size: 18px; font-weight: 900; }
.bf-compare thead th.bf-compare__us svg { display: inline-block; vertical-align: middle; margin-inline-end: 6px; }
.bf-compare tbody tr { border-top: 1px solid var(--bf-hairline); }
.bf-compare tbody th { font-weight: 700; width: 28%; }
.bf-compare tbody td { color: var(--bf-muted); }
.bf-compare tbody td.bf-compare__us { background: var(--bf-primary-tint); color: var(--bf-primary-text); font-weight: 700; }
.bf-sales thead tr { background: var(--bf-ground); }
.bf-sales thead th { font-size: 13px; color: var(--bf-muted); font-weight: 700; padding: 14px 24px; }
.bf-sales tbody tr { border-top: 1px solid var(--bf-hairline); }
.bf-sales__title a { color: var(--bf-ink); font-weight: 700; text-decoration: none; }
.bf-sales__final { font-weight: 800; } .bf-sales__final small { font-weight: 600; color: var(--bf-muted); }

/* ---- navy grades section ---- */
.bf-navy { background: var(--bf-navy); color: #fff; position: relative; overflow: hidden; }
.bf-navy::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><polygon points='30,8 36.44,14.44 45.56,14.44 45.56,23.56 52,30 45.56,36.44 45.56,45.56 36.44,45.56 30,52 23.56,45.56 14.44,45.56 14.44,36.44 8,30 14.44,23.56 14.44,14.44 23.56,14.44' fill='none' stroke='white' stroke-width='1'/></svg>"); }
.bf-navy__grid { position: relative; display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1024px) { .bf-navy__grid { grid-template-columns: 1fr 1.1fr; } }
.bf-navy__copy p { font-size: 17px; line-height: 2; color: var(--bf-on-navy); margin: 0 0 20px; }
.bf-navy .bf-h2 { color: #fff; }
.bf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chips--onnavy li { height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 14px; display: flex; align-items: center; }
.bf-chips--onnavy li.is-gate { background: rgba(233,162,59,.18); border-color: rgba(233,162,59,.5); color: #F4D8A6; }
.bf-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-content: start; }
.bf-grade { background: var(--bf-surface); color: var(--bf-ink); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.bf-grade div { display: flex; flex-direction: column; gap: 2px; } .bf-grade strong { font-size: 17px; } .bf-grade span { font-size: 14px; color: var(--bf-muted); line-height: 1.7; }

/* ---- FAQ + office card ---- */
.bf-faq__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .bf-faq__grid { grid-template-columns: 1.4fr 1fr; } }
.bf-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bf-faq__item { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 18px; padding: 4px 22px; }
.bf-faq__item summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.bf-faq__item summary::-webkit-details-marker { display: none; }
.bf-faq__item summary svg { color: var(--bf-primary); flex: none; transition: transform .2s; }
.bf-faq__item[open] summary svg { transform: rotate(180deg); }
.bf-faq__item p { margin: 0 0 18px; font-size: 15px; line-height: 2; color: var(--bf-body); }
.bf-office { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; overflow: hidden; align-self: start; }
.bf-office__map { height: 180px; background: var(--bf-navy-tint); display: flex; align-items: center; justify-content: center; background-image: linear-gradient(115deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%), linear-gradient(25deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%); }
.bf-office__pin { width: 48px; height: 48px; border-radius: 999px; background: var(--bf-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(11,122,117,.4); }
.bf-office__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.bf-office__body strong { font-size: 19px; } .bf-office__body span { font-size: 15px; color: var(--bf-body); line-height: 1.9; }
.bf-helpcard { background: var(--bf-navy-tint); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.bf-helpcard p { margin: 0; font-size: 14px; color: var(--bf-body); line-height: 1.8; }
.bf-pill--block { display: inline-flex; justify-content: center; }
.bf-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; margin-top: 36px; }
.bf-footer__phone { display: inline !important; padding: 0 !important; }

/* ---- empty state ---- */
.bf-empty { background: var(--bf-surface); border: 1px dashed var(--bf-dashed); border-radius: 22px; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--bf-muted); }
.bf-empty h3 { margin: 0; font-size: 19px; color: var(--bf-ink); } .bf-empty p { margin: 0; max-width: 460px; line-height: 1.9; }
.bf-empty .bf-btn { margin-top: 8px; }

/* ---- breadcrumb + pagination ---- */
.bf-crumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--bf-muted); }
.bf-crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--bf-dashed); }
.bf-crumbs a { color: var(--bf-muted); text-decoration: none; } .bf-crumbs a:hover { color: var(--bf-primary); }
.bf-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.bf-pager__btn, .bf-pager__num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bf-border-control); background: var(--bf-surface); color: var(--bf-ink); text-decoration: none; font-weight: 700; }
.bf-pager__num.is-current { background: var(--bf-navy); color: #fff; border-color: var(--bf-navy); }
.bf-pager__gap { padding: 0 4px; color: var(--bf-muted); }

/* ---- browse ---- */
.bf-browse { padding: 20px 0 56px; }
.bf-browse__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.bf-browse__count { margin: 0; color: var(--bf-muted); font-size: 14px; }
.bf-search { display: flex; align-items: center; height: 52px; background: var(--bf-surface); border: 1px solid var(--bf-border-control-strong); border-radius: 14px; padding: 0 6px 0 14px; width: 100%; max-width: 420px; }
.bf-search:focus-within { border-color: var(--bf-primary); box-shadow: 0 0 0 4px var(--bf-primary-tint); }
.bf-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; height: 100%; min-width: 0; }
.bf-search button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bf-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bf-chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.bf-chiprow::-webkit-scrollbar { display: none; }
.bf-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bf-border-control-strong); background: var(--bf-surface); color: var(--bf-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.bf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-chip.is-active { border: 1.5px solid var(--bf-primary); background: var(--bf-primary-tint); color: var(--bf-primary-text); }
.bf-chip--filters.is-active { background: var(--bf-ink); color: #fff; border-color: var(--bf-ink); }
.bf-chip__count { background: var(--bf-saffron); color: var(--bf-ink); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.bf-chip--live.is-active { background: var(--bf-saffron-tint); border-color: var(--bf-saffron-border); color: var(--bf-saffron-text); }
.bf-chip--live .bf-dot { width: 7px; height: 7px; }
.bf-browse__layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .bf-browse__layout { grid-template-columns: 280px 1fr; align-items: start; } .bf-chiprow { display: none; } }
.bf-filters__form { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.bf-filters__head { display: flex; align-items: center; gap: 12px; } .bf-filters__head strong { font-size: 18px; flex: 1; }
.bf-filters__close { display: none; width: 44px; height: 44px; border: 0; background: var(--bf-tag-fill); border-radius: 12px; font-size: 22px; cursor: pointer; color: var(--bf-ink); text-decoration: none; line-height: 44px; text-align: center; }
.bf-fieldset { border: 0; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--bf-hairline); display: flex; flex-direction: column; gap: 10px; }
.bf-fieldset legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 8px; float: right; width: 100%; }
.bf-chips--select { position: relative; }
.bf-chips--select .bf-chip { height: 44px; font-size: 13px; position: relative; }
.bf-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 700; }
.bf-switchrow span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.bf-switchrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-switch { width: 48px; height: 28px; border-radius: 999px; background: var(--bf-track-fill); position: relative; flex: none; transition: background .2s; }
.bf-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.bf-switchrow input:checked + .bf-switch { background: var(--bf-primary); }
.bf-switchrow input:checked + .bf-switch::after { transform: translateX(-20px); }
.bf-switchrow input:focus-visible + .bf-switch { box-shadow: 0 0 0 4px var(--bf-primary-tint); }
.bf-range { display: flex; gap: 8px; } .bf-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--bf-muted); }
.bf-range input { height: 44px; border: 1px solid var(--bf-border-control-strong); border-radius: 12px; padding: 0 10px; font-size: 15px; direction: ltr; text-align: right; }
.bf-range input:focus { outline: 0; border-color: var(--bf-primary); box-shadow: 0 0 0 4px var(--bf-primary-tint); }
.bf-gradegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bf-gradeopt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--bf-border-control); cursor: pointer; position: relative; }
.bf-gradeopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-gradeopt.is-active { border: 1.5px solid var(--bf-primary); background: var(--bf-primary-tint); }
.bf-gradeopt span { flex: 1; font-size: 13px; font-weight: 700; } .bf-gradeopt small { color: var(--bf-muted); }
.bf-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bf-checklist label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.bf-checklist input { width: 20px; height: 20px; accent-color: var(--bf-primary); }
.bf-checklist span { flex: 1; } .bf-checklist small { color: var(--bf-muted); }
.bf-advanced { border-top: 1px solid var(--bf-hairline); padding-top: 12px; }
.bf-advanced summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-weight: 800; color: var(--bf-primary); list-style: none; border: 1.5px dashed var(--bf-dashed); border-radius: 12px; padding: 0 12px; }
.bf-advanced summary::-webkit-details-marker { display: none; }
.bf-advanced[open] summary svg { transform: rotate(180deg); }
.bf-selectrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 700; }
.bf-selectrow select, .bf-sort select { height: 44px; border: 1px solid var(--bf-border-control-strong); border-radius: 12px; padding: 0 10px; font-size: 14px; background: var(--bf-surface); }
.bf-filters__foot { position: sticky; bottom: 0; background: var(--bf-surface); padding-top: 12px; border-top: 1px solid var(--bf-hairline); display: flex; flex-direction: column; gap: 8px; }
.bf-filters__summary { font-size: 13px; color: var(--bf-muted); }
.bf-filters__foot .bf-btn { width: 100%; }
.bf-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.bf-active { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-active__chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bf-ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.bf-sort { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; } .bf-sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bf-muted); }
/* mobile sheet: the aside opens as a bottom sheet (:target without JS, .is-open with JS) */
@media (max-width: 1023px) {
  .bf-filters { display: none; position: fixed; inset: 0; z-index: 50; background: var(--bf-scrim, rgba(18,26,43,.45)); align-items: flex-end; }
  .bf-filters:target, .bf-filters.is-open { display: flex; }
  .bf-filters .bf-filters__form { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 28px 28px 0 0; animation: bfSheet .25s ease-out; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .bf-filters .bf-filters__form::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--bf-dashed-soft); margin: 0 auto 10px; }
  .bf-filters__close { display: inline-flex; align-items: center; justify-content: center; }
  .bf-filters .bf-helpcard { display: none; }
  .bf-toolbar .bf-active { display: none; }
}
@keyframes bfSheet { from { transform: translateY(40px); opacity: .6 } to { transform: none; opacity: 1 } }

/* ---- listing page ---- */
.bf-listing { padding: 20px 0 96px; }
.bf-listing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.bf-listing__titlebox { display: flex; gap: 14px; align-items: flex-start; }
.bf-listing__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--bf-muted); }
.bf-gradetext { font-weight: 700; color: var(--bf-body); }
.bf-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--bf-success-text); font-weight: 700; }
.bf-listing__layout { display: grid; gap: 24px; }
@media (min-width: 1024px) { .bf-listing__layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .bf-listing__aside { position: sticky; top: calc(var(--bf-size-app-bar) + 16px); } }
.bf-gallery { margin: 0; background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; overflow: hidden; }
.bf-gallery__stage { height: 300px; background: var(--bf-navy-tint); display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .bf-gallery__stage { height: 470px; } }
.bf-gallery__stage img { width: 100%; height: 100%; object-fit: contain; }
.bf-gallery__stage .bf-card__placeholder { width: 40%; }
.bf-gallery__thumbs { list-style: none; margin: 0; padding: 10px; display: flex; gap: 8px; overflow-x: auto; }
.bf-gallery__thumbs button { width: 96px; height: 72px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--bf-navy-tint); cursor: pointer; flex: none; }
.bf-gallery__thumbs button.is-active { border-color: var(--bf-primary); }
.bf-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bf-highlights { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bf-highlights li { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bf-success-tint); color: var(--bf-success-text); font-size: 14px; font-weight: 700; }
.bf-panel { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; padding: 22px; margin-top: 16px; }
.bf-panel__lead { margin: 0 0 16px; color: var(--bf-body); font-size: 14px; line-height: 1.9; }
.bf-report { display: flex; flex-direction: column; }
.bf-report__row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bf-hairline); }
.bf-report__row:first-child { border-top: 0; }
.bf-report__label { font-weight: 700; }
.bf-report__num { font-size: 13px; color: var(--bf-muted); min-width: 48px; text-align: left; }
.bf-report__fails { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bf-report__fails li { background: var(--bf-danger-tint); color: var(--bf-danger-text); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.bf-gate { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; justify-self: end; }
.bf-gate--ok { color: var(--bf-success-text); } .bf-gate--warn { color: var(--bf-saffron-text); }
.bf-prose p { margin: 0 0 12px; line-height: 2; color: var(--bf-body); }
.bf-prose--page h2 { margin-top: 28px; }
.bf-prose--page ul { padding-inline-start: 22px; line-height: 2; color: var(--bf-body); }
.bf-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.bf-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bf-hairline); }
.bf-specs dt { color: var(--bf-muted); } .bf-specs dd { margin: 0; font-weight: 700; text-align: left; }
.bf-bids { list-style: none; margin: 0; padding: 0; }
.bf-bids li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--bf-hairline); }
.bf-bids li.is-top .bf-bids__amount { color: var(--bf-primary-text); }
.bf-bids__alias { font-weight: 700; } .bf-bids__amount { font-weight: 800; grid-row: 1 / span 2; align-self: center; } .bf-bids__amount small { color: var(--bf-muted); font-weight: 600; }
.bf-bids__time { font-size: 12px; color: var(--bf-muted); }
.bf-panel--trust { background: var(--bf-primary-tint); border-color: var(--bf-primary-border-light, var(--bf-border-card)); }
.bf-trustrow { display: grid; gap: 10px; font-size: 14px; color: var(--bf-primary-text); }
.bf-trustrow span { display: flex; align-items: center; gap: 8px; } .bf-trustrow b { font-weight: 700; }
.bf-related__list { display: grid; gap: 12px; margin-top: 8px; }
.bf-related__list .bf-card__media { height: 140px; }
.bf-related { margin-top: 16px; }

/* ---- bid box / live fragment ---- */
.bf-bidbox { background: var(--bf-surface); border: 1px solid var(--bf-border-card); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 20px rgba(18,26,43,.06); min-height: 420px; }
.bf-live { display: flex; flex-direction: column; }
.bf-timer { background: var(--bf-navy); color: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.bf-timer__label { font-size: 13px; color: var(--bf-on-navy); }
.bf-timer__tiles { display: flex; align-items: center; gap: 6px; }
.bf-timer__tile { display: flex; flex-direction: column; align-items: center; min-width: 64px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 6px 8px; }
.bf-timer__tile b { font-size: 30px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bf-timer__tile small { font-size: 11px; color: var(--bf-on-navy); }
.bf-timer__tile--sec b { color: var(--bf-saffron); }
.bf-timer__sep { font-size: 24px; font-weight: 900; color: rgba(255,255,255,.5); }
.bf-timer__days { font-size: 13px; color: var(--bf-saffron); font-weight: 700; }
.bf-timer.is-ending { background: var(--bf-danger); } .bf-timer.is-ending .bf-timer__tile--sec b { color: #fff; }
.bf-live__price { padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 4px; }
.bf-live__price--sold { background: var(--bf-success-tint); }
.bf-live__label { font-size: 13px; color: var(--bf-muted); }
.bf-live__amount { font-size: 34px; font-weight: 900; line-height: 1.3; } .bf-live__amount small { font-size: 16px; font-weight: 600; color: var(--bf-muted); }
.bf-live__date { font-size: 20px; font-weight: 800; }
.bf-live__words { font-size: 13px; color: var(--bf-body); }
.bf-live__meta { font-size: 13px; color: var(--bf-muted); margin-top: 6px; }
.bf-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 18px 0; }
.bf-quick__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--bf-border-control-strong); background: var(--bf-surface); color: var(--bf-ink); font-weight: 800; text-decoration: none; font-size: 14px; }
.bf-quick__btn small { font-size: 11px; color: var(--bf-primary); font-weight: 700; }
.bf-quick__btn:hover { border-color: var(--bf-primary); background: var(--bf-primary-tint); }
.bf-live__cta { margin: 14px 18px 0; }
.bf-live__note { margin: 12px 18px 0; font-size: 12.5px; line-height: 1.9; color: var(--bf-muted); }
.bf-live__note--snipe { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 18px; }
.bf-live__note:last-child { margin-bottom: 18px; }
.bf-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bf-surface); border-top: 1px solid var(--bf-border-card); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -6px 20px rgba(18,26,43,.08); }
.bf-stickybar__price { display: flex; flex-direction: column; } .bf-stickybar__price span { font-size: 12px; color: var(--bf-muted); } .bf-stickybar__price strong { font-size: 18px; font-weight: 900; } .bf-stickybar__price small { font-size: 12px; font-weight: 600; color: var(--bf-muted); }
@media (min-width: 1024px) { .bf-stickybar { display: none; } }

/* ---- info pages ---- */
.bf-info__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .bf-info__grid { grid-template-columns: minmax(0, 1.6fr) 1fr; align-items: start; } }
.bf-salespage .bf-h1 { margin-bottom: 8px; }
