/* ==========================================================================
   Bechde — marketplace theme styles
   Mobile-first. Design tokens on :root; components prefixed .bd-
   ========================================================================== */

:root {
	--bd-ink: #15132b;
	--bd-ink-2: #3b3854;
	--bd-muted: #6d6a80;
	--bd-brand: #1e1b4b;
	--bd-brand-2: #312e81;
	--bd-accent: #e8492f;
	--bd-accent-ink: #c2381f;
	--bd-accent-soft: #fdece8;
	--bd-gold: #f5a524;
	--bd-gold-soft: #fff4dc;
	--bd-ok: #0e9f6e;
	--bd-ok-soft: #e3f6ee;
	--bd-warn: #b45309;
	--bd-warn-soft: #fff3e0;
	--bd-danger: #c0262d;
	--bd-bg: #f6f5f1;
	--bd-surface: #ffffff;
	--bd-surface-2: #faf9f6;
	--bd-line: #e7e4dc;
	--bd-line-2: #d8d4c8;
	--bd-radius: 14px;
	--bd-radius-sm: 10px;
	--bd-radius-lg: 22px;
	--bd-shadow-sm: 0 1px 2px rgba(21, 19, 43, .06);
	--bd-shadow: 0 6px 24px -8px rgba(21, 19, 43, .14), 0 2px 6px rgba(21, 19, 43, .05);
	--bd-shadow-lg: 0 24px 60px -18px rgba(21, 19, 43, .32);
	--bd-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--bd-container: 1240px;
	--bd-header-h: 68px;
	--bd-gutter: 16px;
	color-scheme: light;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--bd-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--bd-ink);
	background: var(--bd-bg);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bd-brand-2); text-decoration: none; }
a:hover { color: var(--bd-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(232, 73, 47, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bd-skip:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--bd-shadow); }
.bd-icon { flex: none; vertical-align: middle; }
.bd-muted { color: var(--bd-muted); }
.bd-small { font-size: 13px; }
.bd-center { text-align: center; }
.bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bd-container { width: 100%; max-width: var(--bd-container); margin: 0 auto; padding: 0 var(--bd-gutter); }
.bd-main { min-height: 60vh; }

/* Buttons ---------------------------------------------------------------- */
.bd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none;
	transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.bd-btn:active { transform: translateY(1px); }
.bd-btn--primary { background: var(--bd-accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(232, 73, 47, .6); }
.bd-btn--primary:hover { background: var(--bd-accent-ink); color: #fff; }
.bd-btn--ghost { background: var(--bd-surface); color: var(--bd-ink); border-color: var(--bd-line-2); }
.bd-btn--ghost:hover { border-color: var(--bd-ink); color: var(--bd-ink); }
.bd-btn--danger { background: var(--bd-surface); color: var(--bd-danger); border-color: #f1c7c9; }
.bd-btn--danger:hover { background: #fdeeee; color: var(--bd-danger); }
.bd-btn--dark { background: var(--bd-brand); color: #fff; }
.bd-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bd-btn--lg { min-height: 50px; padding: 0 24px; font-size: 15px; }
.bd-btn--block { width: 100%; }
.bd-btn[disabled], .bd-btn.is-loading { opacity: .65; pointer-events: none; }
.bd-btn.is-loading::after {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent; animation: bd-spin .7s linear infinite;
}
@keyframes bd-spin { to { transform: rotate(360deg); } }
.bd-iconbtn {
	position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; border: 0; background: transparent; color: var(--bd-ink);
}
.bd-iconbtn:hover { background: rgba(21, 19, 43, .06); color: var(--bd-ink); }
.bd-linkbtn { background: none; border: 0; padding: 0; color: var(--bd-brand-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.bd-linkbtn:hover { color: var(--bd-accent); }
.bd-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--bd-ink); }
.bd-link-arrow:hover { color: var(--bd-accent); }

.bd-badge {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--bd-accent); color: #fff; font-size: 11px; font-weight: 800;
	display: grid; place-items: center; line-height: 1; border: 2px solid #fff;
}
.bd-badge--inline { position: static; border: 0; margin-left: auto; }
.bd-pill {
	display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 700; background: #eeedf6; color: var(--bd-brand-2);
}
.bd-pill--ok { background: var(--bd-ok-soft); color: var(--bd-ok); }
.bd-pill--warn { background: var(--bd-warn-soft); color: var(--bd-warn); }
.bd-pill--muted { background: #ecebe7; color: var(--bd-muted); }
.bd-pill--feat { background: var(--bd-gold-soft); color: #9a5b00; }

.bd-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
	background: var(--bd-surface); border: 1px solid var(--bd-line-2); color: var(--bd-ink);
	font-size: 13px; font-weight: 600; line-height: 1.2;
}
.bd-chip:hover { border-color: var(--bd-ink); color: var(--bd-ink); }
.bd-chip.is-active { background: var(--bd-brand); border-color: var(--bd-brand); color: #fff; }
.bd-chip--sm { padding: 5px 10px; font-size: 12px; }
.bd-chip--clear { border-style: dashed; color: var(--bd-muted); }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.bd-notice {
	display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 16px 0;
	border-radius: var(--bd-radius-sm); background: #eeedf6; color: var(--bd-brand); font-weight: 600; font-size: 14px;
}
.bd-notice--ok { background: var(--bd-ok-soft); color: #08714f; }
.bd-notice--warn { background: var(--bd-warn-soft); color: var(--bd-warn); }
.bd-notice--muted { background: #ecebe7; color: var(--bd-ink-2); }
.bd-notice a { color: inherit; text-decoration: underline; }

/* Header ----------------------------------------------------------------- */
.bd-header { position: sticky; top: 0; z-index: 50; background: var(--bd-surface); box-shadow: 0 1px 0 var(--bd-line); }
.bd-header__row {
	display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand loc actions" "search search search";
	align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px;
}
.bd-header__brand { grid-area: brand; }
.bd-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--bd-ink); }
.bd-logo:hover { color: var(--bd-ink); }
.bd-logo__text { font-weight: 800; font-size: 23px; letter-spacing: -.045em; line-height: 1; }
.bd-logo__accent { color: var(--bd-accent); }
.bd-logo__mark { border-radius: 11px; }
.custom-logo { max-height: 44px; width: auto; }

.bd-loc { grid-area: loc; position: relative; justify-self: start; min-width: 0; }
.bd-loc__btn {
	display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 40px; padding: 0 12px;
	border: 1.5px solid var(--bd-line-2); border-radius: 999px; background: var(--bd-surface); font-weight: 700; font-size: 14px;
}
.bd-loc__btn:hover { border-color: var(--bd-ink); }
.bd-loc__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-loc__panel {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: min(320px, calc(100vw - 32px));
	background: var(--bd-surface); border-radius: var(--bd-radius); box-shadow: var(--bd-shadow-lg); border: 1px solid var(--bd-line); overflow: hidden;
}
.bd-loc__search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--bd-line); color: var(--bd-muted); }
.bd-loc__search input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; color: var(--bd-ink); }
.bd-loc__list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; }
.bd-loc__list button {
	width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 10px 12px;
	border: 0; border-radius: 8px; background: none; font-weight: 600;
}
.bd-loc__list button small { margin-left: auto; color: var(--bd-muted); font-weight: 500; }
.bd-loc__list button:hover { background: var(--bd-bg); }
.bd-loc__list button.is-active { background: var(--bd-accent-soft); color: var(--bd-accent-ink); }

.bd-search { grid-area: search; display: flex; align-items: center; height: 46px; background: var(--bd-bg); border: 1.5px solid var(--bd-line-2); border-radius: 999px; overflow: hidden; }
.bd-search:focus-within { border-color: var(--bd-brand); background: #fff; box-shadow: 0 0 0 4px rgba(30, 27, 75, .08); }
.bd-search input { flex: 1; min-width: 0; height: 100%; padding: 0 18px; border: 0; background: none; outline: 0; font-size: 15px; }
.bd-search__btn { width: 44px; height: 38px; margin-right: 4px; border: 0; border-radius: 999px; background: var(--bd-brand); color: #fff; display: grid; place-items: center; }
.bd-search__btn:hover { background: var(--bd-accent); }

.bd-header__actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.bd-header__actions > .bd-iconbtn { display: none; }
.bd-header__login { min-height: 38px; padding: 0 14px; }
.bd-header__register { display: none; font-weight: 700; color: var(--bd-ink); padding: 0 8px; }
.bd-header__sell { display: none; }

.bd-menu { position: relative; }
.bd-menu__btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px; border-radius: 999px; }
.bd-menu__panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; padding: 6px;
	background: var(--bd-surface); border-radius: var(--bd-radius); box-shadow: var(--bd-shadow-lg); border: 1px solid var(--bd-line);
}
.bd-menu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--bd-ink); font-weight: 600; font-size: 14px; }
.bd-menu__panel a:hover { background: var(--bd-bg); color: var(--bd-ink); }
.bd-menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--bd-line); margin-bottom: 6px; }
.bd-menu__head strong { display: block; }
.bd-menu__head a { padding: 0; font-size: 13px; color: var(--bd-brand-2); }
.bd-menu__head a:hover { background: none; color: var(--bd-accent); }

.bd-avatar { width: var(--av-size, 40px); height: var(--av-size, 40px); border-radius: 50%; object-fit: cover; flex: none; }
.bd-avatar--initials { display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--av-size, 40px) * .38); letter-spacing: .02em; }
img.bd-avatar { width: auto; }

.bd-catbar { display: none; border-top: 1px solid var(--bd-line); }
.bd-catbar__inner { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; }
.bd-allcats__btn { font-weight: 700; font-size: 14px; gap: 8px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.bd-allcats__btn:hover { background: var(--bd-bg); }
.bd-allcats__panel[hidden] { display: none; }
.bd-allcats__col { display: flex; flex-direction: column; }
.bd-allcats__col a { padding: 4px 0; font-size: 13.5px; font-weight: 500; color: var(--bd-ink-2); border-radius: 0; }
.bd-allcats__col a:hover { background: none; color: var(--bd-accent); }
.bd-allcats__col .bd-allcats__top { font-weight: 800; color: var(--bd-ink); font-size: 14.5px; gap: 8px; margin-bottom: 4px; }
.bd-allcats__top .bd-cat-icon { width: 28px; height: 28px; }
.bd-catbar__menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.bd-catbar__menu::-webkit-scrollbar { display: none; }
.bd-catbar__menu a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--bd-ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.bd-catbar__menu a:hover { background: var(--bd-bg); color: var(--bd-ink); }

/* Category icon ----------------------------------------------------------- */
.bd-cat-icon {
	--cat: #64748b;
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
	color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff);
}

/* Bottom nav (mobile) ---------------------------------------------------- */
.bd-bottomnav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr);
	background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--bd-line);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bd-bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--bd-muted); }
.bd-bottomnav a.is-active { color: var(--bd-brand); }
.bd-bottomnav__fab { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--bd-accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(232, 73, 47, .7); border: 4px solid #fff; }
.bd-bottomnav__sell { color: var(--bd-ink) !important; }
.bd-dot { position: absolute; top: 0; left: 55%; width: 9px; height: 9px; border-radius: 50%; background: var(--bd-accent); border: 2px solid #fff; }

/* Sections ---------------------------------------------------------------- */
.bd-section { padding: 28px 0; }
.bd-section--tight { padding: 18px 0 6px; }
.bd-section--alt { background: var(--bd-surface); border-top: 1px solid var(--bd-line); border-bottom: 1px solid var(--bd-line); }
.bd-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bd-section__title { font-size: 21px; font-weight: 800; margin: 0; }
.bd-section__sub { margin: 4px 0 0; color: var(--bd-muted); font-size: 14px; }
.bd-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; margin: 0 0 14px; }

/* Hero --------------------------------------------------------------------- */
.bd-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 400px at 85% -10%, rgba(232, 73, 47, .35), transparent 60%),
		radial-gradient(700px 380px at -10% 110%, rgba(99, 102, 241, .35), transparent 60%),
		linear-gradient(135deg, #1e1b4b 0%, #2a2566 55%, #1b1840 100%);
}
.bd-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
	background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.bd-hero__inner { position: relative; z-index: 1; display: grid; gap: 28px; padding-top: 34px; padding-bottom: 38px; }
.bd-hero .bd-eyebrow { color: #ffd2c8; background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; }
.bd-hero__title { font-size: clamp(28px, 6vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; max-width: 14ch; margin-bottom: 22px; }
.bd-hero__search { display: grid; gap: 8px; background: #fff; padding: 8px; border-radius: 20px; box-shadow: var(--bd-shadow-lg); }
.bd-hero__field { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 50px; border-radius: 14px; background: var(--bd-bg); color: var(--bd-muted); }
.bd-hero__field input, .bd-hero__field select { flex: 1; min-width: 0; border: 0; background: none; outline: 0; height: 100%; font-size: 15px; color: var(--bd-ink); font-weight: 600; }
.bd-hero__field select { appearance: none; cursor: pointer; }
.bd-hero__popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: #c9c7e8; }
.bd-hero__popular a { color: #fff; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; }
.bd-hero__popular a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.bd-hero__stats { display: flex; gap: 28px; margin: 26px 0 0; }
.bd-hero__stats div { display: flex; flex-direction: column-reverse; }
.bd-hero__stats dt { font-size: 12px; color: #b9b6e0; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bd-hero__stats dd { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.bd-hero__art { display: none; }
.bd-hero__card { position: absolute; width: 230px; background: #fff; color: var(--bd-ink); border-radius: 18px; padding: 8px; box-shadow: var(--bd-shadow-lg); }
.bd-hero__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.bd-hero__card div { display: flex; flex-direction: column; padding: 8px 6px 4px; }
.bd-hero__card strong { font-size: 17px; }
.bd-hero__card span { font-size: 13px; color: var(--bd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-hero__card--0 { top: 10px; left: 40px; transform: rotate(-5deg); z-index: 2; }
.bd-hero__card--1 { top: 40px; right: 0; transform: rotate(5deg); width: 210px; z-index: 1; }
.bd-hero__card--2 { top: 190px; left: 210px; transform: rotate(2deg); width: 200px; z-index: 3; }

/* Category tiles ---------------------------------------------------------- */
.bd-cats {
	display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 8px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px 0;
	overscroll-behavior-x: contain;
}
.bd-cats::-webkit-scrollbar { display: none; }
.bd-cats__item { scroll-snap-align: start; }
.bd-cats__item {
	display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; text-align: center;
	border-radius: var(--bd-radius); color: var(--bd-ink); font-size: 12px; font-weight: 700; line-height: 1.25;
	transition: background .15s, transform .15s;
}
.bd-cats__item:hover { background: var(--bd-surface); color: var(--bd-ink); transform: translateY(-2px); box-shadow: var(--bd-shadow-sm); }

/* Cards & grids ----------------------------------------------------------- */
.bd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bd-card {
	position: relative; display: flex; flex-direction: column; background: var(--bd-surface);
	border-radius: var(--bd-radius); overflow: hidden; border: 1px solid var(--bd-line);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.bd-card:hover { box-shadow: var(--bd-shadow); transform: translateY(-2px); border-color: transparent; }
.bd-card--featured { border-color: #f6d49a; box-shadow: inset 0 3px 0 var(--bd-gold); }
.bd-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #efede7; overflow: hidden; }
.bd-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bd-card:hover .bd-card__img { transform: scale(1.04); }
.bd-card__flag {
	position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px;
	border-radius: 999px; background: var(--bd-gold); color: #3d2600; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.bd-card__sold { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21, 19, 43, .5); color: #fff; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; }
.bd-card__count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 999px; background: rgba(21, 19, 43, .62); color: #fff; font-size: 11px; font-weight: 700; }
.bd-card .bd-card__fav { position: absolute; top: 8px; right: 8px; }
.bd-card__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.bd-card__price { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bd-card__facts { margin: 0; font-size: 12.5px; color: var(--bd-ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-card__title { margin: 2px 0 8px; font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-card__title a { color: var(--bd-ink-2); }
.bd-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bd-card__title a:hover { color: var(--bd-ink); }
.bd-card__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--bd-muted); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.bd-card__loc { display: inline-flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-card__meta time { flex: none; }
.bd-card--sold .bd-card__price { color: var(--bd-muted); text-decoration: line-through; }

.bd-fav {
	position: relative; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .94); color: var(--bd-ink); box-shadow: var(--bd-shadow-sm); transition: transform .15s, color .15s;
}
.bd-fav:hover { transform: scale(1.08); color: var(--bd-accent); }
.bd-fav.is-active { color: var(--bd-accent); }
.bd-fav.is-active svg { fill: currentColor; }
.bd-fav.is-pop { animation: bd-pop .35s; }
@keyframes bd-pop { 50% { transform: scale(1.3); } }
.bd-fav--round { width: 42px; height: 42px; border: 1.5px solid var(--bd-line-2); box-shadow: none; }

.bd-rail { position: relative; }
.bd-grid--row {
	display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto;
	scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: -4px -2px 0; scrollbar-width: thin;
}
.bd-grid--row > * { scroll-snap-align: start; }
.bd-rail__nav {
	display: none; position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--bd-line); background: #fff; box-shadow: var(--bd-shadow); place-items: center;
}
.bd-rail__nav--prev { left: -18px; }
.bd-rail__nav--next { right: -18px; }

/* Popular categories / cities ------------------------------------------------ */
.bd-popcats { display: grid; grid-template-columns: 1fr; gap: 10px; }
.bd-popcats__item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--bd-radius); background: var(--bd-bg); color: var(--bd-ink); border: 1px solid transparent; }
.bd-popcats__item:hover { border-color: var(--bd-line-2); background: #fff; color: var(--bd-ink); }
.bd-popcats__item > span:not(.bd-cat-icon):not(.bd-avatar) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bd-popcats__item small { color: var(--bd-muted); font-weight: 600; }
.bd-popcats__item .bd-cat-icon { width: 44px; height: 44px; }
.bd-cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bd-cities__item {
	position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: var(--bd-radius); overflow: hidden;
	background: linear-gradient(140deg, #fff 0%, #f3f1ea 100%); border: 1px solid var(--bd-line); color: var(--bd-ink);
}
.bd-cities__item::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--bd-accent-soft); }
.bd-cities__item:hover { border-color: var(--bd-ink); color: var(--bd-ink); }
.bd-cities__name { font-weight: 800; font-size: 16px; position: relative; z-index: 1; }
.bd-cities__state { font-size: 12px; color: var(--bd-muted); position: relative; z-index: 1; }
.bd-cities__count { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--bd-accent-ink); position: relative; z-index: 1; }

/* CTA + trust --------------------------------------------------------------- */
.bd-cta {
	display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 26px; border-radius: var(--bd-radius-lg);
	background: linear-gradient(120deg, var(--bd-accent) 0%, #f0703b 100%); color: #fff; box-shadow: var(--bd-shadow);
}
.bd-cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.bd-cta p { margin: 0; opacity: .95; max-width: 52ch; }
.bd-cta .bd-btn--primary { background: #fff; color: var(--bd-accent-ink); box-shadow: none; }
.bd-cta .bd-btn--primary:hover { background: var(--bd-brand); color: #fff; }
.bd-trust { display: grid; gap: 14px; margin-top: 20px; }
.bd-trust > div { padding: 18px; border-radius: var(--bd-radius); background: var(--bd-surface); border: 1px solid var(--bd-line); }
.bd-trust .bd-icon { color: var(--bd-accent); margin-bottom: 8px; }
.bd-trust h3 { font-size: 16px; margin-bottom: 4px; }
.bd-trust p { margin: 0; color: var(--bd-muted); font-size: 14px; }

/* Empty state ----------------------------------------------------------------- */
.bd-empty { text-align: center; padding: 48px 20px; border-radius: var(--bd-radius); background: var(--bd-surface); border: 1px dashed var(--bd-line-2); }
.bd-empty > .bd-icon { color: var(--bd-line-2); margin: 0 auto 10px; display: block; }
.bd-empty h3 { font-size: 18px; }
.bd-empty p { color: var(--bd-muted); max-width: 44ch; margin: 0 auto 16px; }
.bd-empty .bd-btn { margin: 4px; }

/* Breadcrumbs ----------------------------------------------------------------- */
.bd-breadcrumbs { margin: 14px 0; font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.bd-breadcrumbs ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bd-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--bd-muted); }
.bd-breadcrumbs li + li::before { content: "›"; color: var(--bd-line-2); font-weight: 700; }
.bd-breadcrumbs a { color: var(--bd-ink-2); font-weight: 600; }
.bd-breadcrumbs [aria-current] span { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

/* Panels ------------------------------------------------------------------------ */
.bd-panel { background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); padding: 18px; margin-bottom: 14px; }
.bd-panel--narrow { max-width: 520px; }
.bd-panel__title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 14px; }

/* Forms --------------------------------------------------------------------------- */
.bd-form { display: grid; gap: 14px; }
.bd-form__grid { display: grid; gap: 14px; }
.bd-form__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.bd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bd-field--center { justify-content: center; }
.bd-label { font-weight: 700; font-size: 13.5px; color: var(--bd-ink-2); }
.bd-label em { color: var(--bd-accent); font-style: normal; }
.bd-hint { margin: 0; font-size: 12.5px; color: var(--bd-muted); display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.bd-counter { margin-left: auto; font-variant-numeric: tabular-nums; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--bd-line-2); border-radius: var(--bd-radius-sm);
	background: var(--bd-surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; outline: 0;
}
textarea { resize: vertical; line-height: 1.5; }
select {
	appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2315132b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
input:focus, select:focus, textarea:focus { border-color: var(--bd-brand); box-shadow: 0 0 0 4px rgba(30, 27, 75, .08); }
input[disabled], select[disabled] { background-color: var(--bd-surface-2); color: var(--bd-muted); }
.has-error input, .has-error select, .has-error textarea, .has-error .bd-input-prefix { border-color: var(--bd-danger); }
.bd-field-error { color: var(--bd-danger); font-size: 12.5px; font-weight: 600; }
.bd-field-error:empty { display: none; }
.bd-form__message:empty { display: none; }
.bd-form__message { padding: 10px 14px; border-radius: var(--bd-radius-sm); font-size: 14px; font-weight: 600; background: #fdeeee; color: var(--bd-danger); }
.bd-form__message.is-ok { background: var(--bd-ok-soft); color: #08714f; }
.bd-form__message a { color: inherit; text-decoration: underline; }
.bd-input-wrap { position: relative; }
.bd-input-wrap input { padding-right: 48px; }
.bd-input-wrap__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--bd-muted); border-radius: 8px; display: grid; place-items: center; }
.bd-input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--bd-line-2); border-radius: var(--bd-radius-sm); background: var(--bd-surface); overflow: hidden; }
.bd-input-prefix:focus-within { border-color: var(--bd-brand); box-shadow: 0 0 0 4px rgba(30, 27, 75, .08); }
.bd-input-prefix > span { display: grid; place-items: center; padding: 0 12px; background: var(--bd-surface-2); color: var(--bd-ink-2); font-weight: 700; border-right: 1px solid var(--bd-line); }
.bd-input-prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.bd-input-prefix .bd-input-suffix { background: none; border: 0; color: var(--bd-muted); font-weight: 600; padding-right: 14px; }
.bd-input-prefix .bd-input-suffix:empty { display: none; }
.bd-check, .bd-radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 4px 0; }
.bd-check--top { align-items: flex-start; }
.bd-check input, .bd-radio input { width: 18px; height: 18px; accent-color: var(--bd-accent); flex: none; margin: 0; }
.bd-radio small { margin-left: auto; color: var(--bd-muted); font-weight: 600; }
.bd-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.bd-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bd-switch span { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--bd-line-2); transition: background .2s; flex: none; }
.bd-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--bd-shadow-sm); transition: transform .2s; }
.bd-switch input:checked + span { background: var(--bd-ok); }
.bd-switch input:checked + span::after { transform: translateX(18px); }
.bd-switch input:focus-visible + span { outline: 3px solid rgba(232, 73, 47, .45); outline-offset: 2px; }
.bd-segment { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-segment label { position: relative; cursor: pointer; }
.bd-segment input { position: absolute; opacity: 0; pointer-events: none; }
.bd-segment span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--bd-line-2); font-weight: 600; font-size: 13.5px; background: #fff; transition: all .15s; }
.bd-segment input:checked + span { background: var(--bd-brand); border-color: var(--bd-brand); color: #fff; }
.bd-segment input:focus-visible + span { outline: 3px solid rgba(232, 73, 47, .45); outline-offset: 2px; }
.bd-strength { height: 5px; border-radius: 4px; background: var(--bd-line); overflow: hidden; }
.bd-strength span { display: block; height: 100%; width: 0; background: var(--bd-danger); transition: width .25s, background .25s; }

/* Auth -------------------------------------------------------------------------------- */
.bd-utility { padding-top: 20px; padding-bottom: 40px; }
.bd-auth { display: grid; max-width: 980px; margin: 0 auto; background: var(--bd-surface); border-radius: var(--bd-radius-lg); overflow: hidden; box-shadow: var(--bd-shadow); border: 1px solid var(--bd-line); }
.bd-auth__aside { display: none; position: relative; background: linear-gradient(160deg, #1e1b4b 0%, #312e81 100%); color: #fff; padding: 40px; overflow: hidden; }
.bd-auth__aside::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 73, 47, .55), transparent 70%); }
.bd-auth__aside-inner { position: relative; z-index: 1; }
.bd-auth__aside .bd-logo { color: #fff; }
.bd-auth__aside .bd-logo rect { fill: #fff; }
.bd-auth__aside .bd-logo circle { fill: #1e1b4b; }
.bd-auth__pitch { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin: 36px 0 22px; }
.bd-auth__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bd-auth__aside li { display: flex; gap: 10px; align-items: center; color: #dcdaf5; font-weight: 600; }
.bd-auth__aside li .bd-icon { color: #ffb4a3; }
.bd-auth__main { padding: 28px 20px 30px; }
.bd-auth__title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.bd-auth__sub { color: var(--bd-muted); margin-bottom: 22px; }
.bd-auth__sub a { font-weight: 700; }
.bd-otp { display: flex; gap: 8px; }
.bd-otp input[type="text"] { width: 100%; max-width: 54px; height: 58px; padding: 0; text-align: center; font-size: 24px; font-weight: 800; border-radius: 12px; }
.bd-otp__resend { text-align: center; font-size: 14px; color: var(--bd-muted); margin: 4px 0 0; }

/* Archive ---------------------------------------------------------------------------------- */
.bd-archive { padding-bottom: 30px; }
.bd-archive__layout { display: grid; gap: 20px; }
.bd-results__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bd-results__title { font-size: 22px; font-weight: 800; margin: 0; }
.bd-results__title span { color: var(--bd-muted); font-weight: 600; }
.bd-results__count { margin: 2px 0 0; color: var(--bd-muted); font-size: 14px; }
.bd-results__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-sort select { min-height: 36px; padding: 6px 34px 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.bd-results { min-width: 0; transition: opacity .2s; }
.bd-results.is-loading { opacity: .45; pointer-events: none; }

.bd-filters {
	position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(360px, 88vw); background: var(--bd-surface);
	transform: translateX(-102%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--bd-shadow-lg);
}
.bd-filters.is-open { transform: none; }
.bd-drawer-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(21, 19, 43, .45); }
.bd-filter-form { padding: 16px; }
.bd-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bd-filters__head h2 { font-size: 18px; margin: 0; }
.bd-fgroup { border: 0; border-bottom: 1px solid var(--bd-line); margin: 0; padding: 14px 0; display: grid; gap: 8px; min-width: 0; }
.bd-fgroup legend { font-weight: 800; font-size: 14px; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.bd-fgroup legend + * { clear: both; }
.bd-fgroup select, .bd-fgroup input[type="text"] { min-height: 42px; font-size: 14px; }
.bd-subcats { list-style: none; margin: 4px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.bd-subcats .bd-radio { padding: 5px 0; font-size: 13.5px; }
.bd-range { display: flex; align-items: center; gap: 6px; }
.bd-range input { min-width: 0; }
.bd-range__go { width: 42px; height: 42px; flex: none; background: var(--bd-brand); color: #fff; border-radius: 10px; }
.bd-range__go:hover { background: var(--bd-accent); color: #fff; }
.bd-quick-prices { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-filters__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 6px; background: var(--bd-surface); }
.bd-filters__foot .bd-btn { flex: 1; }

.bd-pagination { margin: 26px 0 8px; }
.bd-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.bd-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; background: var(--bd-surface); border: 1px solid var(--bd-line); font-weight: 700; color: var(--bd-ink); }
.bd-pagination a.page-numbers:hover { border-color: var(--bd-ink); }
.bd-pagination .current { background: var(--bd-brand); border-color: var(--bd-brand); color: #fff; }
.bd-pagination .dots { border: 0; background: none; }

/* Single ------------------------------------------------------------------------------------ */
.bd-single { padding-bottom: 20px; }
.bd-single__layout { display: grid; gap: 14px; }
.bd-single__main, .bd-single__side { min-width: 0; }
.bd-ownerbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--bd-radius); background: var(--bd-brand); color: #fff; font-size: 14px; font-weight: 600; }
.bd-ownerbar > span { display: inline-flex; gap: 6px; align-items: center; }
.bd-ownerbar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bd-gallery { margin-bottom: 14px; }
.bd-gallery__stage { position: relative; aspect-ratio: 4 / 3; background: #15132b; border-radius: var(--bd-radius); overflow: hidden; touch-action: pan-y; }
.bd-gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .3s; display: grid; place-items: center; }
.bd-gallery__slide.is-active { opacity: 1; z-index: 1; }
.bd-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.bd-gallery__nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--bd-shadow); }
.bd-gallery__nav--prev { left: 12px; }
.bd-gallery__nav--next { right: 12px; }
.bd-gallery__counter { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(21, 19, 43, .7); color: #fff; font-size: 12px; font-weight: 700; }
.bd-gallery__zoom { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(21, 19, 43, .7); color: #fff; display: grid; place-items: center; }
.bd-gallery__sold { position: absolute; z-index: 2; top: 16px; left: -40px; transform: rotate(-35deg); background: var(--bd-danger); color: #fff; padding: 6px 50px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.bd-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.bd-gallery__thumb { flex: none; width: 78px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: .65; }
.bd-gallery__thumb.is-active { border-color: var(--bd-accent); opacity: 1; }
.bd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-single__price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.bd-single__title { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 6px 0 12px; color: var(--bd-ink-2); }
.bd-single__summary-mobile .bd-single__title { margin-bottom: 0; }
.bd-pricecard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bd-pricecard__icons { display: flex; gap: 8px; }
.bd-pricecard__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--bd-muted); font-size: 13.5px; font-weight: 600; }
.bd-pricecard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.bd-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bd-line); }
.bd-share-row a, .bd-share-row button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--bd-line); background: var(--bd-surface-2); color: var(--bd-ink-2); font-size: 12.5px; font-weight: 700; }
.bd-share-row__wa { color: #128c4b !important; }
.bd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.bd-specs div { padding: 10px 0; border-bottom: 1px solid var(--bd-line); }
.bd-specs div:nth-child(odd) { padding-right: 12px; }
.bd-specs dt { font-size: 12px; color: var(--bd-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bd-specs dd { margin: 2px 0 0; font-weight: 700; }
.bd-desc { color: var(--bd-ink-2); overflow-wrap: anywhere; }
.bd-single__ids { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bd-line); font-size: 13px; color: var(--bd-muted); }
.bd-single__ids .bd-linkbtn { font-size: 13px; color: var(--bd-muted); }
.bd-safety ul { margin: 0; padding-left: 20px; color: var(--bd-ink-2); font-size: 14px; display: grid; gap: 6px; }
.bd-safety .bd-icon { color: var(--bd-ok); }
.bd-sellercard { display: grid; gap: 10px; }
.bd-sellercard__head { display: flex; align-items: center; gap: 12px; color: var(--bd-ink); padding-bottom: 12px; border-bottom: 1px solid var(--bd-line); margin-bottom: 4px; }
.bd-sellercard__head > span:not(.bd-avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bd-sellercard__head strong { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; }
.bd-sellercard__head small { color: var(--bd-muted); font-weight: 500; }
.bd-sellercard__rating { display: inline-flex; align-items: center; gap: 6px; }
.bd-verified { color: #2563eb; display: inline-flex; }
.bd-enquiry { display: grid; gap: 8px; }
.bd-enquiry__label { font-weight: 800; margin: 0; }
.bd-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-loccard p { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.bd-single__summary-mobile { display: block; }
.bd-single__side .bd-pricecard .bd-single__price, .bd-single__side .bd-pricecard .bd-single__title { display: block; }

.bd-stars { --rating: 0; position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
.bd-stars::before { content: "★★★★★"; color: var(--bd-line-2); }
.bd-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--rating) / 5 * 100%); overflow: hidden; color: var(--bd-gold); }

/* Modals ---------------------------------------------------------------------------------------- */
.bd-modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.bd-modal--wide { width: min(860px, calc(100vw - 24px)); }
.bd-modal::backdrop { background: rgba(21, 19, 43, .55); backdrop-filter: blur(2px); }
.bd-modal__box { position: relative; display: grid; gap: 12px; background: var(--bd-surface); border-radius: var(--bd-radius-lg); padding: 24px; box-shadow: var(--bd-shadow-lg); }
.bd-modal__box h2 { font-size: 20px; margin: 0 40px 4px 0; }
.bd-modal__close { position: absolute; top: 12px; right: 12px; }
.bd-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.bd-radios { display: grid; gap: 2px; }
.bd-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 9, 22, .96); }
.bd-lightbox[open] { display: grid; place-items: center; }
.bd-lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.bd-lightbox__close, .bd-lightbox__nav { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.bd-lightbox__close { top: 16px; right: 16px; }
.bd-lightbox__nav { top: 50%; transform: translateY(-50%); }
.bd-lightbox__nav--prev { left: 16px; }
.bd-lightbox__nav--next { right: 16px; }

/* Toasts ------------------------------------------------------------------------------------------ */
.bd-toasts { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.bd-toast { padding: 12px 16px; border-radius: 12px; background: var(--bd-ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--bd-shadow-lg); animation: bd-toast-in .25s ease; pointer-events: auto; }
.bd-toast--error { background: var(--bd-danger); }
.bd-toast--ok { background: #0b7d57; }
@keyframes bd-toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Profile ------------------------------------------------------------------------------------------- */
.bd-profile { padding-bottom: 30px; }
.bd-profile__layout { display: grid; gap: 18px; }
.bd-profile__card { text-align: center; }
.bd-profile__avatar { margin: 0 auto 12px; }
.bd-profile__card h1 { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.bd-profile__sub { color: var(--bd-muted); margin: 0 0 8px; }
.bd-profile__rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 14px; color: var(--bd-muted); }
.bd-profile__facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; text-align: left; }
.bd-profile__facts li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--bd-ink-2); }
.bd-profile__facts .bd-icon { color: var(--bd-muted); }
.bd-profile__about { text-align: left; color: var(--bd-ink-2); font-size: 14px; background: var(--bd-surface-2); border-radius: 10px; padding: 12px; }
.bd-reviews { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.bd-reviews li { padding-bottom: 12px; border-bottom: 1px solid var(--bd-line); }
.bd-reviews__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.bd-reviews__head time { color: var(--bd-muted); margin-left: auto; }
.bd-reviews p { margin: 6px 0 0; font-size: 14px; color: var(--bd-ink-2); }
.bd-rate { display: grid; gap: 8px; }
.bd-rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.bd-rate__stars input { position: absolute; opacity: 0; pointer-events: none; }
.bd-rate__stars label { color: var(--bd-line-2); cursor: pointer; padding: 2px; }
.bd-rate__stars input:checked ~ label, .bd-rate__stars label:hover, .bd-rate__stars label:hover ~ label { color: var(--bd-gold); }
.bd-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--bd-line); overflow-x: auto; scrollbar-width: none; }
.bd-tabs a { padding: 10px 14px; font-weight: 700; color: var(--bd-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.bd-tabs a small { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--bd-bg); font-size: 11px; color: var(--bd-ink-2); }
.bd-tabs a.is-active { color: var(--bd-ink); border-bottom-color: var(--bd-accent); }
.bd-tabs--sm a { padding: 8px 10px; font-size: 13px; }

/* Dashboard ------------------------------------------------------------------------------------------- */
.bd-dash { display: grid; gap: 18px; }
.bd-dash__nav { background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); padding: 10px; }
.bd-dash__me { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; border-bottom: 1px solid var(--bd-line); margin-bottom: 8px; }
.bd-dash__me strong { display: block; }
.bd-dash__me a { font-size: 13px; }
.bd-dash__nav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bd-dash__nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--bd-ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.bd-dash__nav nav a:hover { background: var(--bd-bg); color: var(--bd-ink); }
.bd-dash__nav nav a.is-active { background: var(--bd-accent-soft); color: var(--bd-accent-ink); }
.bd-dash__main { min-width: 0; }
.bd-dash__title { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.bd-dash__titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.bd-avatar-edit label { cursor: pointer; }
.bd-mylist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bd-mylist__item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); }
.bd-mylist__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #efede7; }
.bd-mylist__img img { width: 100%; height: 100%; object-fit: cover; }
.bd-mylist__body { min-width: 0; }
.bd-mylist__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-mylist__title { display: block; margin-top: 4px; font-weight: 700; color: var(--bd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-mylist__price { margin: 2px 0 4px; font-weight: 800; }
.bd-mylist__stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; font-size: 12.5px; color: var(--bd-muted); font-weight: 600; }
.bd-mylist__stats span { display: inline-flex; align-items: center; gap: 4px; }
.bd-mylist__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--bd-line); }
.bd-saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bd-saved__item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); flex-wrap: wrap; }
.bd-saved__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bd-accent-soft); color: var(--bd-accent); }
.bd-saved__body { flex: 1; min-width: 180px; }
.bd-saved__name { font-weight: 700; color: var(--bd-ink); }
.bd-saved__body p { margin: 2px 0 0; }

/* Inbox / chat ------------------------------------------------------------------------------------ */
.bd-inbox { display: grid; background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); overflow: hidden; min-height: 520px; }
.bd-inbox__list { border-right: 1px solid var(--bd-line); min-width: 0; }
.bd-inbox__list .bd-tabs { padding: 0 8px; margin: 0; }
.bd-inbox__list ul { list-style: none; margin: 0; padding: 6px; max-height: 640px; overflow: auto; }
.bd-inbox__list .bd-empty { border: 0; }
.bd-thread { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; color: var(--bd-ink); }
.bd-thread:hover { background: var(--bd-bg); color: var(--bd-ink); }
.bd-thread.is-active { background: var(--bd-accent-soft); }
.bd-thread__img { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #efede7; }
.bd-thread__img img { width: 100%; height: 100%; object-fit: cover; }
.bd-thread__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-thread__body > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-thread__ad { font-size: 12.5px; color: var(--bd-muted); font-weight: 600; }
.bd-thread__last { font-size: 13px; color: var(--bd-ink-2); }
.bd-thread.is-unread .bd-thread__last { font-weight: 800; color: var(--bd-ink); }
.bd-thread__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11.5px; color: var(--bd-muted); }
.bd-inbox__thread { display: none; flex-direction: column; min-width: 0; }
.bd-inbox.has-thread .bd-inbox__list { display: none; }
.bd-inbox.has-thread .bd-inbox__thread { display: flex; }
.bd-chat__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--bd-line); }
.bd-chat__who { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--bd-ink); min-width: 0; }
.bd-chat__ad { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bd-surface-2); border-bottom: 1px solid var(--bd-line); color: var(--bd-ink); }
.bd-chat__ad img { width: 48px; height: 36px; border-radius: 6px; object-fit: cover; }
.bd-chat__ad span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.bd-chat__ad strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-chat__ad small { color: var(--bd-muted); font-weight: 700; }
.bd-chat__msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; max-height: 56vh; min-height: 260px; background: linear-gradient(180deg, #fbfaf7, #f6f5f1); }
.bd-msg { display: flex; flex-direction: column; max-width: 80%; }
.bd-msg--mine { align-self: flex-end; align-items: flex-end; }
.bd-msg__bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--bd-line); font-size: 14.5px; overflow-wrap: anywhere; }
.bd-msg--mine .bd-msg__bubble { background: var(--bd-brand); border-color: var(--bd-brand); color: #fff; border-radius: 16px 16px 4px 16px; }
.bd-msg__time { font-size: 11px; color: var(--bd-muted); margin-top: 3px; }
.bd-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--bd-line); align-items: flex-end; }
.bd-chat__form textarea { min-height: 46px; max-height: 140px; border-radius: 22px; padding: 12px 16px; }
.bd-chat__send { width: 46px; min-height: 46px; padding: 0; flex: none; }
.bd-chat__hint { margin: 0; padding: 0 12px 10px; font-size: 13px; }
.bd-chat__hint a { display: inline-flex; align-items: center; gap: 4px; color: var(--bd-muted); font-weight: 600; }
.bd-chat__empty { margin: auto; text-align: center; color: var(--bd-muted); padding: 40px; }
.bd-chat__empty .bd-icon { color: var(--bd-line-2); }

/* Post ad ------------------------------------------------------------------------------------------- */
.bd-postad { max-width: 860px; margin: 0 auto; }
.bd-postad__head { margin-bottom: 14px; }
.bd-postad__head h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.bd-postad__head p { color: var(--bd-muted); margin: 0; }
.bd-postad__form { display: grid; gap: 14px; }
.bd-postad__rest { display: grid; gap: 14px; }
.bd-step { background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); padding: 18px; display: grid; gap: 14px; }
.bd-step__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0; }
.bd-step__title > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bd-brand); color: #fff; font-size: 13px; flex: none; }
.bd-catpick__tops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-catpick__top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 12px; border: 1.5px solid var(--bd-line); background: #fff; font-weight: 700; font-size: 12.5px; text-align: center; line-height: 1.25; }
.bd-catpick__top:hover { border-color: var(--bd-ink); }
.bd-catpick__top[aria-checked="true"] { border-color: var(--bd-accent); background: var(--bd-accent-soft); }
.bd-catpick__top .bd-cat-icon { width: 44px; height: 44px; }
.bd-catpick__subs { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.bd-catpick__subs button { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--bd-line); background: #fff; font-weight: 600; text-align: left; }
.bd-catpick__subs button:hover { border-color: var(--bd-ink); }
.bd-catpick__chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bd-accent-soft); font-weight: 700; }
.bd-catpick__chosen [data-bd-chosen-label] { display: inline-flex; align-items: center; gap: 10px; }
.bd-catpick__chosen .bd-cat-icon { width: 36px; height: 36px; }
.bd-catpick.is-chosen .bd-catpick__tops { display: none; }
.bd-uploader { display: grid; gap: 10px; }
.bd-uploader__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bd-uploader__grid:empty { display: none; }
.bd-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #efede7; border: 2px solid transparent; cursor: grab; }
.bd-thumb.is-cover { border-color: var(--bd-gold); }
.bd-thumb.is-dragging { opacity: .4; }
.bd-thumb.is-over { border-color: var(--bd-brand); border-style: dashed; }
.bd-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bd-thumb__actions { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.bd-thumb__actions button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--bd-ink); }
.bd-thumb__actions button.is-on { background: var(--bd-gold); color: #3d2600; }
.bd-thumb__label { position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bd-gold); color: #3d2600; font-size: 11px; font-weight: 800; }
.bd-thumb__progress { position: absolute; inset: auto 8px 8px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.bd-thumb__progress span { display: block; height: 100%; width: 0; background: var(--bd-accent); transition: width .2s; }
.bd-uploader__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px; border: 2px dashed var(--bd-line-2); border-radius: 14px; background: var(--bd-surface-2); cursor: pointer; color: var(--bd-muted); text-align: center; transition: all .15s; }
.bd-uploader__drop:hover, .bd-uploader__drop.is-drag { border-color: var(--bd-accent); background: var(--bd-accent-soft); color: var(--bd-accent-ink); }
.bd-uploader__drop strong { color: var(--bd-ink); }
.bd-uploader__drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bd-postad__actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 10px; justify-content: flex-end; padding: 12px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border: 1px solid var(--bd-line); border-radius: var(--bd-radius); box-shadow: var(--bd-shadow); }
.bd-postad__actions .bd-btn { flex: 1; }
.bd-preview { display: grid; gap: 16px; }
.bd-preview__img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #efede7; }
.bd-preview__img img { width: 100%; height: 100%; object-fit: cover; }
.bd-preview__thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.bd-preview__thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.bd-preview .bd-desc { white-space: pre-line; max-height: 200px; overflow: auto; }

/* Page / prose -------------------------------------------------------------------------------------- */
.bd-page { padding-bottom: 30px; }
.bd-prose { max-width: 820px; }
.bd-prose h1 { font-size: 30px; font-weight: 800; }
.bd-prose h2 { font-size: 21px; margin-top: 1.4em; }
.bd-prose ul, .bd-prose ol { padding-left: 22px; }
.bd-404 { padding: 60px var(--bd-gutter); }

/* Footer ------------------------------------------------------------------------------------------------ */
.bd-footer { margin-top: 40px; background: #15132b; color: #bdbad4; padding: 40px 0 20px; font-size: 14px; }
.bd-footer a { color: #e8e6f6; }
.bd-footer a:hover { color: #ff9f8a; }
.bd-footer__grid { display: grid; gap: 28px; }
.bd-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.bd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bd-footer .bd-logo { color: #fff; margin-bottom: 12px; }
.bd-footer .bd-logo rect { fill: #fff; }
.bd-footer .bd-logo circle { fill: #15132b; }
.bd-footer__about p { max-width: 42ch; }
.bd-footer__social { display: flex; gap: 8px; }
.bd-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.bd-footer__contact { margin-top: 12px; }
.bd-footer__bottom { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8f8cab; }

/* ============================================================================================
   Breakpoints
   ============================================================================================ */
@media (min-width: 560px) {
	.bd-cats { grid-auto-columns: 108px; }
	.bd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.bd-grid--row { grid-template-columns: none; grid-auto-columns: 31%; }
	.bd-popcats { grid-template-columns: repeat(2, 1fr); }
	.bd-cities { grid-template-columns: repeat(3, 1fr); }
	.bd-form__grid { grid-template-columns: 1fr 1fr; }
	.bd-hero__search { grid-template-columns: 1.4fr 1fr auto; }
	.bd-trust { grid-template-columns: repeat(3, 1fr); }
	.bd-catpick__tops { grid-template-columns: repeat(4, 1fr); }
	.bd-catpick__subs { grid-template-columns: 1fr 1fr; }
	.bd-uploader__grid { grid-template-columns: repeat(4, 1fr); }
	.bd-mylist__item { grid-template-columns: 140px 1fr auto; align-items: center; }
	.bd-mylist__actions { grid-column: auto; flex-direction: column; border: 0; padding: 0; }
	.bd-postad__actions .bd-btn { flex: none; }
	.bd-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.bd-footer__bottom { flex-direction: row; justify-content: space-between; }
	.bd-specs { grid-template-columns: repeat(3, 1fr); }
	.bd-specs div:nth-child(odd) { padding-right: 0; }
	.bd-specs div { padding-right: 12px; }
	.bd-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
}

@media (min-width: 900px) {
	body { padding-bottom: 0; font-size: 15.5px; }
	:root { --bd-gutter: 24px; }
	.bd-bottomnav { display: none; }
	.bd-toasts { bottom: 24px; }
	.bd-header__row { grid-template-columns: auto auto minmax(240px, 1fr) auto; grid-template-areas: "brand loc search actions"; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
	.bd-header__actions > .bd-iconbtn { display: inline-grid; }
	.bd-header__register { display: inline-block; }
	.bd-header__sell { display: inline-flex; }
	.bd-catbar { display: block; }
	.bd-loc__btn { max-width: 200px; }
	.bd-cats { grid-auto-columns: 128px; gap: 6px; }
	.bd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.bd-grid--row { grid-template-columns: none; grid-auto-columns: calc(25% - 12px); }
	.bd-rail__nav { display: grid; }
	.bd-section { padding: 36px 0; }
	.bd-section__title { font-size: 24px; }
	.bd-popcats { grid-template-columns: repeat(4, 1fr); }
	.bd-cities { grid-template-columns: repeat(5, 1fr); }
	.bd-hero__inner { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 60px; }
	.bd-hero__art { display: block; position: relative; height: 380px; }
	.bd-archive__layout { grid-template-columns: 280px 1fr; align-items: start; }
	.bd-filters { position: sticky; top: calc(var(--bd-header-h) + 60px); inset: auto; transform: none; width: auto; max-height: calc(100vh - 140px); z-index: 1; box-shadow: none; border: 1px solid var(--bd-line); border-radius: var(--bd-radius); }
	.bd-filters__close, .bd-filters-toggle, .bd-drawer-backdrop { display: none !important; }
	.bd-grid--results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bd-single__layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 20px; }
	.bd-single__side { position: sticky; top: calc(var(--bd-header-h) + 60px); }
	.bd-single__summary-mobile { display: none; }
	.bd-auth { grid-template-columns: 1fr 1.1fr; }
	.bd-auth__aside { display: block; }
	.bd-auth__main { padding: 44px 48px; }
	.bd-profile__layout { grid-template-columns: 320px 1fr; align-items: start; }
	.bd-profile__main .bd-grid--results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bd-dash { grid-template-columns: 260px 1fr; align-items: start; }
	.bd-dash__nav { position: sticky; top: calc(var(--bd-header-h) + 60px); }
	.bd-dash__nav nav { flex-direction: column; }
	.bd-grid--favs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bd-inbox { grid-template-columns: 340px 1fr; }
	.bd-inbox .bd-inbox__list, .bd-inbox.has-thread .bd-inbox__list { display: block; }
	.bd-inbox__thread, .bd-inbox.has-thread .bd-inbox__thread { display: flex; }
	.bd-chat__back { display: none; }
	.bd-catpick__tops { grid-template-columns: repeat(6, 1fr); }
	.bd-catpick__subs { grid-template-columns: repeat(3, 1fr); }
	.bd-uploader__grid { grid-template-columns: repeat(5, 1fr); }
	.bd-postad__actions { bottom: 16px; }
	.bd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
	.bd-preview { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 1200px) {
	.bd-grid--results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.bd-grid--row { grid-template-columns: none; grid-auto-columns: calc(20% - 13px); }
	.bd-profile__main .bd-grid--results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Inputs embedded in pill containers carry no chrome of their own. */
.bd-search input, .bd-hero__field input, .bd-hero__field select, .bd-loc__search input {
	border: 0 !important; box-shadow: none !important; min-height: 0; border-radius: 0; background-color: transparent;
}
.bd-hero__field select { padding: 0 28px 0 0; background-position: right 4px center; }

.bd-avatar { flex: none; }

/* Layout grids never grow wider than the viewport on small screens. */
.bd-dash, .bd-archive__layout, .bd-single__layout, .bd-profile__layout, .bd-inbox { grid-template-columns: minmax(0, 1fr); }
.bd-dash > *, .bd-inbox > *, .bd-profile__layout > * { min-width: 0; }
@media (min-width: 900px) {
	.bd-dash { grid-template-columns: 260px minmax(0, 1fr); }
	.bd-archive__layout { grid-template-columns: 280px minmax(0, 1fr); }
	.bd-single__layout { grid-template-columns: minmax(0, 1fr) 360px; }
	.bd-profile__layout { grid-template-columns: 320px minmax(0, 1fr); }
	.bd-inbox { grid-template-columns: 340px minmax(0, 1fr); }
}

/* Slider arrows: only when there is something to scroll; fade at the ends. */
.bd-rail__nav[disabled] { opacity: 0; pointer-events: none; }
.bd-rail:not(.is-scrollable) .bd-rail__nav { display: none; }
.bd-rail__nav { transition: opacity .2s; }
.bd-rail--cats .bd-rail__nav { top: 50%; transform: translateY(-60%); }
.bd-rail--cats::before, .bd-rail--cats::after {
	content: ""; position: absolute; top: 0; bottom: 8px; width: 28px; z-index: 2; pointer-events: none; transition: opacity .2s;
}
.bd-rail--cats::before { left: 0; background: linear-gradient(90deg, var(--bd-bg), transparent); }
.bd-rail--cats::after { right: 0; background: linear-gradient(-90deg, var(--bd-bg), transparent); }
.bd-rail--cats:not(.is-scrollable)::before, .bd-rail--cats:not(.is-scrollable)::after { opacity: 0; }
@media (max-width: 899px) { .bd-rail--cats .bd-rail__nav { display: none; } }

/* All-categories mega menu: anchored to the page container, same width as the content. */
.bd-allcats { position: static; flex: none; }
.bd-allcats .bd-allcats__panel {
	position: absolute; top: calc(100% + 6px); left: var(--bd-gutter); right: var(--bd-gutter); width: auto; min-width: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; padding: 22px 24px;
	max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	border-radius: var(--bd-radius); box-shadow: var(--bd-shadow-lg);
}
.bd-allcats .bd-allcats__panel[hidden] { display: none; }
.bd-allcats__col a { padding: 3px 0; font-size: 13px; line-height: 1.35; }
.bd-allcats__col .bd-allcats__top { font-size: 14px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--bd-line); }
.bd-allcats__col .bd-allcats__top .bd-cat-icon { width: 26px; height: 26px; border-radius: 8px; }
@media (min-width: 1200px) {
	.bd-allcats .bd-allcats__panel { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* White logo on dark backgrounds (footer, login panel). */
.bd-logo--light, .bd-logo--light:hover, .bd-footer .bd-logo--light:hover { color: #fff; }
.bd-logo--light .bd-logo__mark rect { fill: #fff; }
.bd-logo--light .bd-logo__mark circle { fill: #1e1b4b; }
.bd-logo--light .bd-logo__accent { color: #ff7a5c; }
.bd-logo--image .custom-logo { max-height: 44px; width: auto; }
