:root {
    --ba-ink: #0b1220;
    --ba-blue: #2563eb;
    --ba-blue-dark: #1d4ed8;
    --ba-cyan: #06b6d4;
    --ba-page: #f6f8fc;
    --ba-surface: #ffffff;
    --ba-text: #111827;
    --ba-muted: #64748b;
    --ba-border: #e2e8f0;
    --ba-success: #15803d;
    --ba-warning: #b45309;
    --ba-error: #dc2626;
    --ba-radius-sm: 12px;
    --ba-radius: 16px;
    --ba-radius-lg: 20px;
    --ba-shadow-sm: 0 8px 24px rgba(15, 23, 42, .07);
    --ba-shadow: 0 18px 50px rgba(15, 23, 42, .1);
    --ba-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ba-shell: 1240px;
}

html { scroll-behavior: smooth; }

body.ba-site {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--ba-page);
    color: var(--ba-text);
    font-family: var(--ba-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ba-site *, .ba-site *::before, .ba-site *::after { box-sizing: border-box; }
.ba-site img, .ba-site svg { display: block; max-width: 100%; }
.ba-site a { color: inherit; text-decoration: none; }
.ba-site button, .ba-site input, .ba-site select, .ba-site textarea { font: inherit; }
.ba-site button, .ba-site select { cursor: pointer; }
.ba-site h1, .ba-site h2, .ba-site h3, .ba-site p { margin-top: 0; }
.ba-site h1, .ba-site h2, .ba-site h3 { color: var(--ba-ink); font-weight: 760; letter-spacing: -.035em; line-height: 1.12; }
.ba-site h1 { font-size: clamp(2.65rem, 5.2vw, 4.9rem); }
.ba-site h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.ba-site h3 { font-size: 1.1rem; }
.ba-site p { color: var(--ba-muted); }
.ba-site ul, .ba-site ol { margin-top: 0; }
.ba-site [hidden] { display: none !important; }

.ba-shell { width: min(calc(100% - 48px), var(--ba-shell)); margin-inline: auto; }
.ba-icon { flex: 0 0 auto; }
.ba-logo-image { width: auto; max-width: none; object-fit: contain; }
.ba-skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 11px 16px; border-radius: 10px; background: var(--ba-ink); color: #fff !important; transform: translateY(-150%); transition: transform .16s ease; }
.ba-skip-link:focus { transform: translateY(0); }

.ba-site :focus-visible { outline: 3px solid rgba(6, 182, 212, .7); outline-offset: 3px; }
.ba-site ::selection { background: rgba(37, 99, 235, .2); color: var(--ba-ink); }

.ba-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: var(--ba-radius-sm);
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ba-btn:hover { transform: translateY(-1px); }
.ba-btn--primary { background: var(--ba-blue); color: #fff !important; box-shadow: 0 8px 20px rgba(37, 99, 235, .22); }
.ba-btn--primary:hover { background: var(--ba-blue-dark); box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.ba-btn--secondary { border-color: var(--ba-border); background: var(--ba-surface); color: var(--ba-ink) !important; }
.ba-btn--secondary:hover { border-color: #b8c6d9; background: #f8fafc; }
.ba-btn--ghost { color: var(--ba-blue) !important; background: transparent; }
.ba-btn--ghost:hover { background: #eff6ff; }
.ba-btn--light { background: #fff; color: var(--ba-ink) !important; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); }
.ba-btn--light:hover { background: #eef6ff; }
.ba-icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--ba-border); border-radius: 12px; background: #fff; color: var(--ba-ink); }
.ba-icon-button:hover { border-color: #b9c7d9; background: #f8fafc; }
.ba-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ba-blue) !important; font-weight: 720; }
.ba-text-link:hover { color: var(--ba-blue-dark) !important; }
.ba-eyebrow { margin-bottom: 10px; color: var(--ba-blue) !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }

.ba-field,
.ba-site input[type="text"],
.ba-site input[type="email"],
.ba-site input[type="password"],
.ba-site input[type="tel"],
.ba-site input[type="search"],
.ba-site select,
.ba-site textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ba-border);
    border-radius: var(--ba-radius-sm);
    background: #fff;
    color: var(--ba-text);
    padding: 11px 14px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.ba-site input::placeholder, .ba-site textarea::placeholder { color: #94a3b8; }
.ba-site input:focus, .ba-site select:focus, .ba-site textarea:focus { border-color: var(--ba-blue); outline: 0; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.ba-site label { color: var(--ba-ink); font-size: .88rem; font-weight: 700; }

.ba-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 720; line-height: 1; letter-spacing: 0; }
.ba-badge--neutral { background: #f1f5f9; color: #475569 !important; }
.ba-badge--success { background: #dcfce7; color: var(--ba-success) !important; }
.ba-badge--warning { background: #fef3c7; color: var(--ba-warning) !important; }
.ba-badge--error { background: #fee2e2; color: var(--ba-error) !important; }
.ba-alert { padding: 16px 18px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; color: var(--ba-text); }
.ba-alert--warning { border-color: #fcd34d; background: #fffbeb; }
.ba-alert a { color: var(--ba-blue); font-weight: 700; }

/* Header */
.ba-header { position: sticky; z-index: 1000; top: 0; border-bottom: 1px solid rgba(226, 232, 240, .9); background: rgba(255, 255, 255, .96); box-shadow: 0 4px 18px rgba(15, 23, 42, .04); }
.ba-header__inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.ba-header__logo, .ba-header__mark { display: inline-flex; align-items: center; min-height: 44px; }
.ba-header__mark { display: none; min-width: 44px; justify-content: center; }
.ba-desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.3vw, 34px); }
.ba-desktop-nav a, .ba-header__signin { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: #334155; font-size: .94rem; font-weight: 680; white-space: nowrap; }
.ba-desktop-nav a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; border-radius: 2px; background: var(--ba-blue); content: ""; transform: scaleX(0); transition: transform .16s ease; }
.ba-desktop-nav a:hover, .ba-desktop-nav a[aria-current="page"], .ba-header__signin:hover { color: var(--ba-blue); }
.ba-desktop-nav a:hover::after, .ba-desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.ba-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.ba-header__post { min-height: 46px; padding-inline: 17px; }
.ba-header__post-short, .ba-header__search, .ba-menu-toggle { display: none; }
.ba-mobile-menu { position: absolute; z-index: 20; top: 100%; right: 0; left: 0; border-top: 1px solid var(--ba-border); border-bottom: 1px solid var(--ba-border); background: #fff; box-shadow: var(--ba-shadow-sm); }
.ba-mobile-menu__inner { display: grid; padding-block: 10px 18px; }
.ba-mobile-menu a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; color: #334155; font-weight: 680; }
.ba-mobile-menu a:last-child { border-bottom: 0; }

/* Hero */
.ba-hero { position: relative; overflow: hidden; background: #fff; }
.ba-hero::before { position: absolute; top: -180px; left: 52%; width: 520px; height: 520px; border: 1px solid rgba(37, 99, 235, .1); border-radius: 50%; content: ""; }
.ba-hero__grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); align-items: center; gap: clamp(40px, 6vw, 88px); padding-block: 86px 90px; }
.ba-hero__content { position: relative; z-index: 2; min-width: 0; }
.ba-hero h1 { max-width: 780px; margin-bottom: 22px; }
.ba-hero h1::first-line { color: var(--ba-ink); }
.ba-hero__lead { max-width: 610px; margin-bottom: 32px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.ba-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 20px; }
.ba-search { position: relative; z-index: 3; width: min(850px, calc(100vw - 48px)); display: grid; grid-template-columns: 1.7fr 1.05fr 1fr auto; gap: 8px; padding: 9px; border: 1px solid var(--ba-border); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); }
.ba-search__field { position: relative; min-width: 0; padding: 3px 12px; border-right: 1px solid var(--ba-border); }
.ba-search__field label { display: block; margin-bottom: -2px; color: #475569; font-size: .7rem; letter-spacing: .025em; }
.ba-search__field input, .ba-search__field select { min-height: 32px; padding: 2px 24px 2px 0; border: 0; border-radius: 0; box-shadow: none !important; font-size: .91rem; font-weight: 600; }
.ba-search__field select { background-color: #fff; }
.ba-search__field--query input { padding-left: 28px; }
.ba-search__icon { position: absolute; bottom: 8px; left: 11px; color: var(--ba-blue); }
.ba-search__submit { align-self: stretch; min-width: 108px; }

.ba-hero__visual { position: relative; z-index: 1; }
.ba-hero-panel { position: relative; z-index: 2; width: min(100%, 460px); margin-left: auto; padding: 24px; border: 1px solid #dbe7f4; border-radius: 24px; background: #f9fbff; box-shadow: 0 32px 70px rgba(15, 23, 42, .14); transform: rotate(1.4deg); }
.ba-hero-panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ba-hero-panel__mark { display: block; padding: 7px; border: 1px solid var(--ba-border); border-radius: 12px; background: #fff; }
.ba-hero-panel__mark img { width: 34px; height: 34px; }
.ba-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ba-cyan); box-shadow: 0 0 0 6px rgba(6, 182, 212, .12); }
.ba-hero-panel__search { min-height: 48px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--ba-border); border-radius: 13px; background: #fff; color: #7b8ba1; font-size: .86rem; }
.ba-hero-panel__search svg { color: var(--ba-blue); }
.ba-hero-panel__cards { display: grid; gap: 10px; }
.ba-hero-panel__cards > div { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; padding: 13px; border: 1px solid #e8eef6; border-radius: 15px; background: #fff; }
.ba-hero-panel__cards > div > span { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #eff6ff; color: var(--ba-blue); }
.ba-hero-panel__cards strong { color: var(--ba-ink); font-size: .91rem; line-height: 1.3; }
.ba-hero-panel__cards small { color: var(--ba-muted); font-size: .76rem; line-height: 1.35; }
.ba-hero-orbit { position: absolute; border-radius: 50%; }
.ba-hero-orbit--one { top: -38px; right: -24px; width: 140px; height: 140px; border: 18px solid rgba(37, 99, 235, .07); }
.ba-hero-orbit--two { bottom: -30px; left: -22px; width: 78px; height: 78px; background: rgba(6, 182, 212, .12); }

/* Shared sections */
.ba-section { padding-block: 92px; background: #fff; }
.ba-section--soft { background: var(--ba-page); }
.ba-section--compact { padding-block: 64px; }
.ba-section--dark { background: var(--ba-ink); }
.ba-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.ba-section-heading h2 { margin-bottom: 0; }
.ba-section-heading p:last-child { margin-bottom: 0; }
.ba-section-heading--center { justify-content: center; text-align: center; }
.ba-section-heading--center > div { max-width: 650px; }
.ba-section-heading--center h2 { margin-bottom: 12px; }
.ba-section-heading__note { min-height: 25px; margin-bottom: 8px; font-size: .9rem; }

.ba-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ba-category-card { min-height: 88px; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, .025); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.ba-category-card:hover { border-color: #b9d0f6; box-shadow: var(--ba-shadow-sm); transform: translateY(-2px); }
.ba-category-card__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: #eff6ff; color: var(--ba-blue); }
.ba-category-card:nth-child(3n + 2) .ba-category-card__icon { background: #ecfeff; color: #0891b2; }
.ba-category-card:nth-child(3n + 3) .ba-category-card__icon { background: #eef2ff; color: #4f46e5; }
.ba-category-card__name { min-width: 0; color: var(--ba-ink); font-weight: 720; line-height: 1.25; }
.ba-category-card__arrow { color: #94a3b8; transition: color .16s ease, transform .16s ease; }
.ba-category-card:hover .ba-category-card__arrow { color: var(--ba-blue); transform: translateX(2px); }

.ba-empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 44px 28px; border: 1px dashed #bdcbe0; border-radius: var(--ba-radius-lg); background: #fff; text-align: center; }
.ba-empty-state__icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid #dbeafe; border-radius: 20px; background: #eff6ff; color: var(--ba-blue); }
.ba-empty-state h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 2vw, 1.65rem); }
.ba-empty-state p { max-width: 550px; margin-bottom: 24px; }
.ba-listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ba-listing-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .04); }
.ba-listing-card__media { aspect-ratio: 4/3; display: block; overflow: hidden; background: #eef2f7; }
.ba-listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.ba-listing-card:hover .ba-listing-card__media img { transform: scale(1.02); }
.ba-listing-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; }
.ba-listing-card__body { padding: 15px; }
.ba-listing-card__topline { min-height: 28px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.ba-listing-card h3 { margin-bottom: 8px; font-size: 1rem; }
.ba-listing-card h3 a:hover { color: var(--ba-blue); }
.ba-price { margin-bottom: 11px; color: var(--ba-ink) !important; font-size: 1.15rem; font-weight: 800; }
.ba-listing-card__meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--ba-muted); font-size: .76rem; }
.ba-listing-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ba-listing-card__favorite { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; box-shadow: 0 6px 16px rgba(15, 23, 42, .1); }

.ba-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.ba-steps li { position: relative; min-height: 250px; padding: 26px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius-lg); background: #fff; }
.ba-steps__number { position: absolute; top: 22px; right: 22px; color: #cbd5e1; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.ba-feature-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 16px; background: #eff6ff; color: var(--ba-blue); }
.ba-steps h3 { margin-bottom: 11px; font-size: 1.2rem; }
.ba-steps p { margin-bottom: 0; }

.ba-why { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 62px; }
.ba-why h2, .ba-why h3 { color: #fff; }
.ba-why__intro > p:last-child { color: #a8b4c7; }
.ba-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ba-why__grid article { min-height: 178px; padding: 22px; border: 1px solid #263247; border-radius: var(--ba-radius); background: #111b2d; }
.ba-why__grid svg { margin-bottom: 18px; color: #67e8f9; }
.ba-why__grid h3 { margin-bottom: 7px; font-size: 1rem; letter-spacing: -.015em; }
.ba-why__grid p { margin-bottom: 0; color: #9daabd; font-size: .9rem; }

.ba-safety-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 32px; border: 1px solid #cfe0fb; border-radius: 22px; background: #f8fbff; }
.ba-safety-card__icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; background: var(--ba-blue); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, .22); }
.ba-safety-card h2 { margin-bottom: 18px; }
.ba-check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin-bottom: 0; padding: 0; list-style: none; }
.ba-check-list li { position: relative; padding-left: 23px; color: #475569; font-size: .9rem; }
.ba-check-list li::before { position: absolute; top: .48em; left: 0; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--ba-success); box-shadow: 0 0 0 1px #86efac; content: ""; }

.ba-cta { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: clamp(30px, 5vw, 56px); overflow: hidden; border-radius: 24px; background: var(--ba-blue); box-shadow: 0 22px 55px rgba(37, 99, 235, .22); }
.ba-cta h2 { margin-bottom: 12px; color: #fff; }
.ba-cta p:not(.ba-eyebrow) { max-width: 610px; margin-bottom: 0; color: #dbeafe; }
.ba-cta .ba-eyebrow { color: #a5f3fc !important; }
.ba-cta .ba-btn { flex: 0 0 auto; }
.ba-intro-copy { max-width: 810px; text-align: center; }
.ba-intro-copy h2 { margin-bottom: 22px; }
.ba-intro-copy p:not(.ba-eyebrow) { font-size: 1.03rem; }

/* Footer */
.ba-footer { background: #080e1a; color: #fff; }
.ba-footer__main { display: grid; grid-template-columns: minmax(280px, 1.6fr) repeat(2, minmax(160px, .7fr)); gap: 70px; padding-block: 68px 54px; }
.ba-footer__brand img { margin-bottom: 20px; }
.ba-footer__brand > a { min-height: 44px; display: inline-flex; align-items: center; }
.ba-footer__brand p { max-width: 390px; margin-bottom: 0; color: #93a3b8; }
.ba-footer__links { display: grid; align-content: start; gap: 10px; }
.ba-footer__links h2 { margin-bottom: 8px; color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.ba-footer__links a { min-height: 36px; display: flex; align-items: center; color: #aeb9c8; font-size: .93rem; }
.ba-footer__links a:hover { color: #67e8f9; }
.ba-footer__bottom { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #202b3c; }
.ba-footer__bottom p { margin-bottom: 0; color: #75869e; font-size: .84rem; }

/* Content pages */
.ba-page { min-height: 60vh; }
.ba-page-hero { background: #fff; }
.ba-page-hero__inner { min-height: 410px; display: grid; grid-template-columns: minmax(0, 760px) auto; align-items: center; justify-content: space-between; gap: 60px; padding-block: 76px; }
.ba-page-hero h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.ba-page-hero p:last-child { max-width: 700px; margin-bottom: 0; font-size: 1.14rem; }
.ba-page-hero__icon { width: 128px; height: 128px; display: grid; place-items: center; border: 1px solid #dbeafe; border-radius: 34px; background: #eff6ff; color: var(--ba-blue); transform: rotate(3deg); }
.ba-page-hero--safety .ba-page-hero__icon { background: #ecfeff; color: #0891b2; }
.ba-page-hero--compact .ba-page-hero__inner { min-height: 340px; }
.ba-prose-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.ba-prose h2 { margin-bottom: 20px; }
.ba-prose p { font-size: 1.03rem; }
.ba-principles { display: grid; gap: 12px; }
.ba-principles article { display: grid; grid-template-columns: 50px 1fr; gap: 0 15px; padding: 20px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; }
.ba-principles article > span { grid-row: span 2; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: #eff6ff; color: var(--ba-blue); }
.ba-principles h3 { margin: 2px 0 5px; }
.ba-principles p { margin-bottom: 0; font-size: .9rem; }
.ba-process-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ba-process-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 52px; align-items: center; gap: 22px; padding: 24px 28px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; }
.ba-process-list li > span { color: var(--ba-blue); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.ba-process-list h2 { margin-bottom: 6px; font-size: 1.25rem; }
.ba-process-list p { margin-bottom: 0; }
.ba-process-list > li > svg { color: var(--ba-blue); }
.ba-safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ba-safety-grid article { min-height: 245px; padding: 24px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; }
.ba-safety-grid article > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 14px; background: #ecfeff; color: #0891b2; }
.ba-safety-grid h2 { margin-bottom: 9px; font-size: 1.12rem; letter-spacing: -.02em; }
.ba-safety-grid p { margin-bottom: 0; font-size: .92rem; }
.ba-prohibited { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; }
.ba-prohibited h2 { margin-bottom: 0; }
.ba-prohibited > p { margin-bottom: 0; font-size: 1.02rem; }
.ba-status-page { min-height: 62vh; display: grid; place-items: center; padding: 70px 24px; background: #fff; }
.ba-status-page__content { max-width: 560px; text-align: center; }
.ba-status-page__code { display: block; margin-bottom: 16px; color: var(--ba-blue); font-size: clamp(4rem, 10vw, 7rem); font-weight: 850; letter-spacing: -.07em; line-height: .9; }
.ba-status-page h1 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 3.4rem); }
.ba-status-page p { margin-bottom: 25px; }

/* Reusable utility components */
.ba-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; color: var(--ba-muted); font-size: .88rem; }
.ba-breadcrumbs li + li::before { margin-right: 7px; color: #cbd5e1; content: "/"; }
.ba-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; list-style: none; }
.ba-pagination a, .ba-pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ba-border); border-radius: 11px; background: #fff; }
.ba-pagination [aria-current="page"] { border-color: var(--ba-blue); background: var(--ba-blue); color: #fff; }
.ba-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(11, 18, 32, .68); }
.ba-modal__dialog { width: min(100%, 560px); max-height: calc(100vh - 48px); overflow: auto; padding: 26px; border-radius: var(--ba-radius-lg); background: #fff; box-shadow: var(--ba-shadow); }
.ba-skeleton { position: relative; overflow: hidden; border-radius: 10px; background: #e8edf4; }
.ba-skeleton::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); content: ""; transform: translateX(-100%); animation: ba-shimmer 1.4s infinite; }
@keyframes ba-shimmer { to { transform: translateX(100%); } }

/* Existing account screens receive the Board-Ads system without changing their workflows. */
.ba-site--legacy .loginArea { min-height: 680px; display: flex; align-items: center; padding: 64px 0; background: var(--ba-page); }
.ba-site--legacy .loginArea > .container { width: min(calc(100% - 48px), 1040px); max-width: none; margin-inline: auto; }
.ba-site--legacy .loginArea > .container > .row { overflow: hidden; margin: 0; border: 1px solid var(--ba-border); border-radius: 22px; background: #fff; box-shadow: var(--ba-shadow); }
.ba-site--legacy .loginArea .loginLeft-img { position: relative; min-height: 100%; margin: 0; border: 0; background: var(--ba-ink); }
.ba-site--legacy .loginArea .loginLeft-img > .loginLeft-img { min-height: 100%; display: flex; align-items: center; padding: 44px; }
.ba-site--legacy .loginArea .login-cap { position: relative; z-index: 1; }
.ba-site--legacy .loginArea .login-cap .tittle { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.ba-site--legacy .loginArea .login-cap .pera { color: #a8b4c7; }
.ba-site--legacy .loginArea .login-img { display: none; }
.ba-site--legacy .loginArea .login-Wrapper { padding: clamp(28px, 5vw, 56px); background: #fff; }
.ba-site--legacy .loginArea .input-form { position: relative; margin-bottom: 18px; }
.ba-site--legacy .loginArea .input-form input { height: 52px; padding: 11px 44px 11px 14px !important; }
.ba-site--legacy .loginArea .infoTitle { display: block; margin-bottom: 7px; }
.ba-site--legacy .loginArea .input-form .icon { position: absolute; top: 50%; right: 48px; left: auto; color: var(--ba-muted); transform: translateY(-50%); }
.ba-site--legacy .loginArea .input-form button.icon.toggle-password { right: 4px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ba-muted); }
.ba-site--legacy .loginArea .cmn-btn4 { min-height: 50px; border: 0; border-radius: var(--ba-radius-sm); background: var(--ba-blue); color: #fff; font-weight: 750; }
.ba-site--legacy .loginArea .cmn-btn4:hover { background: var(--ba-blue-dark); }
.ba-site--legacy .loginArea .sinUp { margin-top: 20px; color: var(--ba-muted); }
.ba-site--legacy .loginArea .sinUp a, .ba-site--legacy .loginArea .forgetPass { margin-left: 5px; color: var(--ba-blue); font-weight: 700; }
.ba-site--legacy .loginArea .passRemember { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ba-site--legacy .loginArea .checkWrap2 { color: #475569; }
.ba-site--legacy .alert { border-radius: 12px; }

@media (max-width: 1120px) {
    .ba-header__inner { gap: 20px; }
    .ba-header__logo img { width: 154px; }
    .ba-desktop-nav { gap: 18px; }
    .ba-desktop-nav a, .ba-header__signin { font-size: .86rem; }
    .ba-header__post { padding-inline: 13px; }
    .ba-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: 42px; }
    .ba-search { grid-template-columns: 1.5fr 1fr 1fr auto; }
    .ba-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ba-header__inner { min-height: 70px; grid-template-columns: auto 1fr; }
    .ba-header__logo, .ba-desktop-nav, .ba-header__signin { display: none; }
    .ba-header__mark, .ba-header__search, .ba-menu-toggle { display: inline-flex; }
    .ba-header__actions { min-width: 0; }
    .ba-header__post-short { display: none; }
    .ba-hero__grid { min-height: auto; grid-template-columns: 1fr; padding-block: 70px 76px; }
    .ba-hero__visual { display: none; }
    .ba-hero h1 { font-size: clamp(2.8rem, 9vw, 4.4rem); }
    .ba-search { width: 100%; grid-template-columns: 1.45fr 1fr; }
    .ba-search__field { border-right: 0; border-bottom: 1px solid var(--ba-border); }
    .ba-search__field input, .ba-search__field select { min-height: 44px; }
    .ba-search__submit { min-height: 56px; }
    .ba-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-steps { grid-template-columns: 1fr; }
    .ba-steps li { min-height: 0; }
    .ba-why { grid-template-columns: 1fr; gap: 34px; }
    .ba-safety-card { grid-template-columns: auto 1fr; }
    .ba-safety-card > .ba-btn { grid-column: 2; justify-self: start; }
    .ba-page-hero__inner { min-height: 360px; }
    .ba-page-hero__icon { width: 100px; height: 100px; border-radius: 28px; }
    .ba-prose-grid { grid-template-columns: 1fr; gap: 36px; }
    .ba-safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-prohibited { grid-template-columns: 1fr; gap: 20px; }
    .ba-footer__main { gap: 40px; }
    .ba-footer__links a { min-height: 44px; }
}

@media (max-width: 700px) {
    .ba-shell { width: min(calc(100% - 32px), var(--ba-shell)); }
    .ba-section { padding-block: 68px; }
    .ba-section--compact { padding-block: 48px; }
    .ba-section-heading { align-items: start; margin-bottom: 25px; }
    .ba-section-heading > .ba-text-link { display: none; }
    .ba-hero__grid { padding-block: 58px 64px; }
    .ba-hero__lead { margin-bottom: 24px; }
    .ba-search { grid-template-columns: 1fr; gap: 0; padding: 8px; border-radius: 16px; }
    .ba-search__field { padding-block: 8px; }
    .ba-search__field input, .ba-search__field select { min-height: 44px; }
    .ba-search__submit { margin-top: 8px; }
    .ba-hero__actions { align-items: stretch; }
    .ba-hero__actions .ba-btn { flex: 1 1 100%; }
    .ba-hero__actions .ba-text-link { justify-content: center; }
    .ba-category-grid { gap: 10px; }
    .ba-category-card { min-height: 104px; grid-template-columns: 44px minmax(0, 1fr); align-content: center; gap: 10px; padding: 12px; }
    .ba-category-card__icon { width: 44px; height: 44px; border-radius: 12px; }
    .ba-category-card__icon svg { width: 26px; height: 26px; }
    .ba-category-card__name { font-size: .9rem; }
    .ba-category-card__arrow { display: none; }
    .ba-empty-state { min-height: 300px; padding: 36px 20px; }
    .ba-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ba-why__grid { grid-template-columns: 1fr; }
    .ba-safety-card { grid-template-columns: 1fr; padding: 25px; }
    .ba-safety-card__icon { width: 66px; height: 66px; border-radius: 18px; }
    .ba-safety-card__icon svg { width: 34px; height: 34px; }
    .ba-check-list { grid-template-columns: 1fr; }
    .ba-safety-card > .ba-btn { grid-column: auto; justify-self: stretch; }
    .ba-cta { min-height: 0; flex-direction: column; align-items: stretch; padding: 30px 24px; }
    .ba-cta .ba-btn { width: 100%; }
    .ba-page-hero__inner { min-height: 330px; grid-template-columns: 1fr; gap: 25px; padding-block: 56px; }
    .ba-page-hero__icon { display: none; }
    .ba-process-list li { grid-template-columns: 44px 1fr; align-items: start; gap: 12px; padding: 20px; }
    .ba-process-list > li > svg { display: none; }
    .ba-safety-grid { grid-template-columns: 1fr; }
    .ba-safety-grid article { min-height: 0; }
    .ba-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; padding-block: 54px 40px; }
    .ba-footer__brand { grid-column: 1 / -1; }
    .ba-footer__links a { min-height: 44px; }
    .ba-footer__bottom { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding-block: 18px; }
    .ba-site--legacy .loginArea { padding: 32px 0; }
    .ba-site--legacy .loginArea > .container { width: min(calc(100% - 32px), 1040px); }
    .ba-site--legacy .loginArea .loginLeft-img { display: none; }
    .ba-site--legacy .loginArea .login-Wrapper { width: 100%; padding: 28px 20px; }
    .ba-site--legacy .loginArea a { min-height: 44px; display: inline-flex; align-items: center; }
    .ba-site--legacy .loginArea .checkWrap2 { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 430px) {
    .ba-header__actions { gap: 7px; }
    .ba-header__post { min-width: 74px; padding-inline: 11px; }
    .ba-header__post svg { display: none; }
    .ba-header__post-full { display: none; }
    .ba-header__post-short { display: inline; }
    .ba-header__search, .ba-menu-toggle { width: 44px; height: 44px; }
    .ba-hero h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
    .ba-hero h1 br { display: none; }
    .ba-category-card { grid-template-columns: 1fr; justify-items: start; min-height: 116px; }
    .ba-category-card__name { line-height: 1.2; }
    .ba-listing-grid { grid-template-columns: 1fr; }
    .ba-principles article { grid-template-columns: 44px 1fr; padding: 17px; }
    .ba-principles article > span { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ba-site *, .ba-site *::before, .ba-site *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .ba-skeleton::after { display: none; }
}

/* Stage 3 marketplace */
.ba-search--three { grid-template-columns: 1.6fr 1fr auto; }
.ba-search--four { grid-template-columns: 1.5fr 1fr 1fr auto; }
.ba-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.ba-alert--success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.ba-badge--featured { background: #dbeafe; color: #1d4ed8 !important; }
.ba-text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; border: 0; background: transparent; color: var(--ba-blue) !important; font-weight: 720; }
.ba-text-button:hover { color: var(--ba-blue-dark) !important; }
.ba-marketplace { min-height: 70vh; padding: 28px 0 84px; }
.ba-marketplace .ba-alert { margin-bottom: 22px; }
.ba-breadcrumbs { display: block; margin-bottom: 26px; }
.ba-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 0; padding: 0; list-style: none; color: var(--ba-muted); font-size: .86rem; }
.ba-breadcrumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.ba-breadcrumbs li + li::before { margin-right: 8px; color: #cbd5e1; content: "/"; }
.ba-breadcrumbs a:hover { color: var(--ba-blue); }
.ba-breadcrumbs span[aria-current="page"] { max-width: min(44vw, 430px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ba-catalog-hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 34px 38px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius-lg); background: linear-gradient(135deg, #fff 0%, #eff6ff 100%); box-shadow: var(--ba-shadow-sm); }
.ba-catalog-hero h1 { margin-bottom: 12px; font-size: clamp(2.35rem, 4.6vw, 4.2rem); }
.ba-catalog-hero p:last-child { max-width: 720px; margin-bottom: 0; }
.ba-catalog-hero > .ba-btn { flex: 0 0 auto; }
.ba-child-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ba-child-categories a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius-sm); background: #fff; color: #334155; font-size: .9rem; font-weight: 700; }
.ba-child-categories a:hover { border-color: #93c5fd; color: var(--ba-blue); box-shadow: 0 6px 16px rgba(37, 99, 235, .08); }

.ba-catalog-search { margin: 24px 0 18px; }
.ba-catalog-search > label { display: block; margin-bottom: 7px; }
.ba-catalog-search > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 7px 7px 15px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.ba-catalog-search input[type="search"] { min-width: 0; border: 0; box-shadow: none; }
.ba-catalog-search input[type="search"]:focus { box-shadow: none; }
.ba-catalog-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.ba-catalog-toolbar > div:first-child { display: flex; align-items: baseline; gap: 6px; color: var(--ba-muted); }
.ba-catalog-toolbar > div:first-child strong { color: var(--ba-ink); font-size: 1.18rem; }
.ba-catalog-toolbar__actions { display: flex; align-items: center; gap: 10px; }
.ba-catalog-toolbar select { min-width: 190px; }
.ba-filter-toggle { display: none; }
.ba-filter-toggle span { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--ba-blue); color: #fff; font-size: .72rem; }
.ba-view-toggle { height: 48px; display: flex; align-items: center; padding: 4px; border: 1px solid var(--ba-border); border-radius: 12px; background: #fff; }
.ba-view-toggle a { min-width: 54px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--ba-muted); font-size: .82rem; font-weight: 750; }
.ba-view-toggle a[aria-current="true"] { background: #eff6ff; color: var(--ba-blue); }
.ba-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ba-muted); font-size: .82rem; }
.ba-active-filters > span { font-weight: 700; }
.ba-active-filters a { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-weight: 680; }
.ba-active-filters__clear { border-color: transparent !important; background: transparent !important; }

.ba-catalog-layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); align-items: start; gap: 24px; }
.ba-filters { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; padding: 20px; border: 1px solid var(--ba-border); border-radius: var(--ba-radius); background: #fff; scrollbar-width: thin; }
.ba-filters__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ba-filters__header h2 { margin: 0; font-size: 1.25rem; }
.ba-filters__header .ba-icon-button { display: none; }
.ba-filters form { display: grid; gap: 16px; }
.ba-filters label { display: grid; gap: 6px; }
.ba-filters fieldset { min-width: 0; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.ba-filters legend { margin-bottom: 6px; color: var(--ba-ink); font-size: .88rem; font-weight: 700; }
.ba-price-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba-price-filter legend { grid-column: 1 / -1; }
.ba-price-filter input { min-width: 0; }
.ba-filter-backdrop { display: none; }
.ba-results { min-width: 0; }
.ba-results > .ba-empty-state { min-height: 440px; }

.ba-listing-card { min-height: 100%; display: flex; flex-direction: column; }
.ba-listing-card__media { position: relative; flex: 0 0 auto; }
.ba-listing-card__placeholder { align-content: center; gap: 9px; background: linear-gradient(145deg, #eff6ff, #f8fafc); color: #64748b; }
.ba-listing-card__placeholder img { width: 48px; height: 48px; object-fit: contain; }
.ba-listing-card__placeholder small { font-size: .75rem; font-weight: 700; }
.ba-listing-card__featured { position: absolute; top: 10px; left: 10px; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }
.ba-listing-card__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.ba-listing-card h3 { min-height: 2.5em; display: -webkit-box; overflow: hidden; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ba-listing-card h3 mark { padding: 0 2px; border-radius: 3px; background: #fef08a; color: inherit; }
.ba-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-bottom: 8px; color: var(--ba-ink) !important; font-size: 1.15rem; font-weight: 800; }
.ba-price span { color: var(--ba-blue); font-size: .72rem; font-weight: 750; }
.ba-listing-card__details { min-height: 26px; display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; color: #475569; font-size: .76rem; }
.ba-listing-card__details span { display: inline-flex; align-items: center; gap: 4px; }
.ba-listing-card__meta { margin-top: auto; }
.ba-listing-grid--list { grid-template-columns: 1fr; }
.ba-listing-grid--list .ba-listing-card { min-height: 210px; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.ba-listing-grid--list .ba-listing-card__media { height: 100%; aspect-ratio: auto; }
.ba-listing-grid--list .ba-listing-card__body { padding: 22px; }
.ba-listing-grid--list .ba-listing-card h3 { min-height: 0; font-size: 1.22rem; }

.ba-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.ba-pagination__pages { display: flex; align-items: center; gap: 6px; }
.ba-pagination a, .ba-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--ba-border); border-radius: 10px; background: #fff; color: #334155; font-weight: 700; }
.ba-pagination a:hover { border-color: #93c5fd; color: var(--ba-blue); }
.ba-pagination [aria-current="page"] { border-color: var(--ba-blue); background: var(--ba-blue); color: #fff; }
.ba-pagination [aria-disabled="true"] { color: #94a3b8; }

.ba-listing-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr); align-items: start; gap: 26px; }
.ba-gallery, .ba-listing-summary, .ba-listing-description, .ba-listing-details, .ba-seller-summary, .ba-seller-hero { border: 1px solid var(--ba-border); border-radius: var(--ba-radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .04); }
.ba-gallery { overflow: hidden; }
.ba-gallery__main { position: relative; width: 100%; aspect-ratio: 4 / 3; display: block; padding: 0; border: 0; background: #eef2f7; }
.ba-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.ba-gallery__main > span { position: absolute; right: 14px; bottom: 14px; min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: rgba(11, 18, 32, .86); color: #fff; font-size: .82rem; font-weight: 700; }
.ba-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 10px; border-top: 1px solid var(--ba-border); }
.ba-gallery__thumbs button { min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #eef2f7; }
.ba-gallery__thumbs button:hover, .ba-gallery__thumbs button:focus-visible { border-color: var(--ba-blue); }
.ba-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ba-gallery__placeholder { min-height: 520px; display: grid; place-content: center; justify-items: center; gap: 14px; background: linear-gradient(145deg, #eff6ff, #f8fafc); color: #475569; }
.ba-gallery__placeholder img { width: 70px; height: 70px; }
.ba-listing-summary { position: sticky; top: 96px; padding: 26px; }
.ba-listing-summary__badges { min-height: 28px; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.ba-listing-summary h1 { margin-bottom: 18px; overflow-wrap: anywhere; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.ba-listing-summary__price { margin-bottom: 2px; color: var(--ba-ink) !important; font-size: 1.85rem; font-weight: 820; }
.ba-listing-summary__negotiable { margin-bottom: 18px; color: var(--ba-blue) !important; font-size: .86rem; font-weight: 700; }
.ba-listing-summary__facts { display: grid; gap: 0; margin: 20px 0; }
.ba-listing-summary__facts div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.ba-listing-summary__facts dt { color: var(--ba-muted); }
.ba-listing-summary__facts dd { margin: 0; color: var(--ba-ink); font-weight: 700; text-align: right; }
.ba-phone-reveal { width: 100%; }
.ba-deal-note { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 18px 0 0; padding: 13px; border-radius: 12px; background: #f8fafc; font-size: .78rem; }
.ba-deal-note svg { margin-top: 2px; color: var(--ba-blue); }
.ba-listing-content { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr); align-items: start; gap: 26px; margin-top: 26px; }
.ba-listing-description, .ba-listing-details { padding: 28px; }
.ba-listing-description h2, .ba-listing-details h2 { margin-bottom: 20px; font-size: 1.5rem; }
.ba-listing-description > div { color: #334155; overflow-wrap: anywhere; white-space: normal; }
.ba-listing-details dl { display: grid; gap: 0; margin: 0; }
.ba-listing-details dl div { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf1f6; }
.ba-listing-details dt { color: var(--ba-muted); }
.ba-listing-details dd { margin: 0; color: var(--ba-ink); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.ba-seller-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 26px; padding: 24px; }
.ba-avatar { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--ba-blue), var(--ba-cyan)); color: #fff; font-size: 1.4rem; font-weight: 800; }
.ba-seller-summary h2 { margin-bottom: 5px; font-size: 1.35rem; }
.ba-seller-summary h2 a:hover { color: var(--ba-blue); }
.ba-seller-summary p { margin-bottom: 6px; }
.ba-seller-summary__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ba-related { padding-top: 54px; }

.ba-gallery-modal { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 24px; background: rgba(2, 6, 23, .96); color: #fff; touch-action: pan-y; }
.ba-gallery-modal__close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.ba-gallery-modal__stage { min-width: 0; display: grid; justify-items: center; gap: 8px; }
.ba-gallery-modal__stage img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; }
.ba-gallery-modal__stage p { margin: 0; color: #e2e8f0; }
.ba-gallery-modal__nav { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 2rem; }
.ba-gallery-modal__nav:hover { background: rgba(255, 255, 255, .2); }

.ba-seller-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 30px; }
.ba-seller-hero__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.ba-seller-hero__avatar.ba-avatar { font-size: 2.2rem; }
.ba-seller-hero h1 { margin-bottom: 10px; font-size: clamp(2.2rem, 4.4vw, 4rem); overflow-wrap: anywhere; }
.ba-seller-hero__badges { display: flex; flex-wrap: wrap; gap: 7px; }
.ba-seller-hero__facts { min-width: 235px; display: grid; gap: 8px; margin: 0; padding: 0 22px; border-left: 1px solid var(--ba-border); }
.ba-seller-hero__facts div { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.ba-seller-hero__facts dt { color: var(--ba-muted); font-size: .82rem; }
.ba-seller-hero__facts dd { margin: 0; color: var(--ba-ink); font-weight: 750; text-align: right; }
.ba-seller-hero__actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; }
.ba-seller-listings { padding-top: 54px; }

.ba-modal { overflow: auto; }
.ba-modal__panel { position: relative; width: min(100%, 560px); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border-radius: var(--ba-radius-lg); background: #fff; box-shadow: var(--ba-shadow); }
.ba-modal__close { position: absolute; top: 14px; right: 14px; }
.ba-modal__panel h2 { padding-right: 48px; }
.ba-modal__panel form { display: grid; gap: 16px; }
.ba-modal__panel label { display: grid; gap: 6px; }
.ba-modal__panel textarea { resize: vertical; }
.ba-no-scroll { overflow: hidden !important; }

@media (max-width: 1100px) {
    .ba-child-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ba-catalog-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
    .ba-listing-grid:not(.ba-listing-grid--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-seller-hero { grid-template-columns: auto minmax(0, 1fr); }
    .ba-seller-hero__facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ba-border); border-left: 0; padding: 20px 0 0; }
    .ba-seller-hero__facts div { display: block; }
    .ba-seller-hero__facts dd { text-align: left; }
}

@media (max-width: 900px) {
    .ba-search--three, .ba-search--four { grid-template-columns: 1.45fr 1fr; }
    .ba-catalog-hero { align-items: flex-start; }
    .ba-child-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-filter-toggle { display: inline-flex; }
    .ba-view-toggle { display: none; }
    .ba-catalog-layout { grid-template-columns: 1fr; }
    .ba-filters { position: fixed; z-index: 1500; top: 0; bottom: 0; left: 0; width: min(90vw, 360px); max-height: none; border: 0; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .2s ease; }
    .ba-filters[data-open="true"] { transform: translateX(0); box-shadow: 20px 0 50px rgba(15, 23, 42, .2); }
    .ba-filters__header .ba-icon-button { display: inline-flex; }
    .ba-filter-backdrop { position: fixed; z-index: 1490; inset: 0; width: 100%; height: 100%; display: block; padding: 0; border: 0; background: rgba(2, 6, 23, .55); }
    .ba-listing-layout, .ba-listing-content { grid-template-columns: 1fr; }
    .ba-listing-summary { position: static; }
    .ba-gallery__placeholder { min-height: 420px; }
}

@media (max-width: 700px) {
    .ba-search--three, .ba-search--four { grid-template-columns: 1fr; }
    .ba-marketplace { padding-top: 20px; }
    .ba-breadcrumbs { margin-bottom: 18px; }
    .ba-catalog-hero { display: grid; padding: 26px 22px; }
    .ba-catalog-hero > .ba-btn { width: 100%; }
    .ba-child-categories { grid-template-columns: 1fr; }
    .ba-catalog-search > div { grid-template-columns: auto minmax(0, 1fr); }
    .ba-catalog-search .ba-btn { grid-column: 1 / -1; width: 100%; }
    .ba-catalog-toolbar { align-items: flex-start; }
    .ba-catalog-toolbar__actions { flex-wrap: wrap; justify-content: flex-end; }
    .ba-catalog-toolbar select { min-width: 154px; }
    .ba-listing-grid:not(.ba-listing-grid--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-listing-grid--list .ba-listing-card { grid-template-columns: 160px minmax(0, 1fr); min-height: 180px; }
    .ba-listing-grid--list .ba-listing-card__body { padding: 15px; }
    .ba-listing-grid--list .ba-listing-card__details { display: none; }
    .ba-listing-content { margin-top: 18px; }
    .ba-listing-description, .ba-listing-details, .ba-listing-summary { padding: 22px; }
    .ba-seller-summary { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
    .ba-seller-summary__actions { grid-column: 1 / -1; width: 100%; align-items: stretch; }
    .ba-seller-summary__actions .ba-btn { width: 100%; }
    .ba-gallery-modal { grid-template-columns: 1fr; padding: 70px 12px 18px; }
    .ba-gallery-modal__nav { position: absolute; z-index: 2; bottom: 22px; }
    .ba-gallery-modal__nav--prev { left: 18px; }
    .ba-gallery-modal__nav--next { right: 18px; }
    .ba-gallery-modal__stage img { max-height: calc(100vh - 150px); }
    .ba-seller-hero { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 22px; }
    .ba-seller-hero__avatar { width: 84px; height: 84px; }
    .ba-seller-hero__facts { grid-template-columns: 1fr; }
    .ba-seller-hero__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 430px) {
    .ba-catalog-toolbar { display: grid; }
    .ba-catalog-toolbar__actions { justify-content: flex-start; }
    .ba-catalog-toolbar__actions form { flex: 1 1 auto; }
    .ba-catalog-toolbar select { width: 100%; min-width: 0; }
    .ba-listing-grid:not(.ba-listing-grid--list), .ba-listing-grid--list { grid-template-columns: 1fr; }
    .ba-listing-grid--list .ba-listing-card { display: flex; min-height: 0; }
    .ba-listing-grid--list .ba-listing-card__media { aspect-ratio: 4 / 3; }
    .ba-listing-card h3 { min-height: 0; }
    .ba-pagination__pages { display: none; }
    .ba-pagination__control { flex: 1 1 50%; }
    .ba-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ba-gallery__placeholder { min-height: 300px; }
    .ba-listing-summary h1 { font-size: 2rem; }
    .ba-listing-details dl div { grid-template-columns: 1fr; gap: 2px; }
    .ba-listing-details dd { text-align: left; }
    .ba-seller-hero { grid-template-columns: 1fr; text-align: left; }
    .ba-seller-hero__avatar { width: 76px; height: 76px; }
    .ba-seller-hero__facts { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ba-filters, .ba-gallery-modal, .ba-listing-card__media img { transition: none !important; }
}

/* Stage 4: authentication and seller workspace */
.ba-auth-page, .ba-account-page { min-height: 70vh; padding: clamp(42px, 7vw, 90px) 0; background: var(--ba-surface-soft, #f6f7fb); }
.ba-auth-card { width: min(100% - 32px, 560px); margin: 0 auto; padding: clamp(26px, 5vw, 44px); border: 1px solid var(--ba-border, #dfe3ea); border-radius: 24px; background: #fff; box-shadow: 0 18px 55px rgba(25, 36, 56, .08); }
.ba-auth-card h1 { margin: 6px 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.ba-auth-card form, .ba-account-card form, .ba-listing-form { display: grid; gap: 16px; }
.ba-auth-card label, .ba-account-card label, .ba-listing-form label { display: grid; gap: 7px; font-weight: 700; color: var(--ba-ink, #172033); }
.ba-auth-card label > span, .ba-listing-form label > span { font-weight: 500; color: var(--ba-muted, #647087); }
.ba-auth-card input, .ba-auth-card select, .ba-account-card input, .ba-account-card select, .ba-account-card textarea, .ba-listing-form input, .ba-listing-form select, .ba-listing-form textarea { width: 100%; min-height: 48px; border: 1px solid var(--ba-border, #d4d9e2); border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--ba-ink, #172033); }
.ba-auth-card textarea, .ba-account-card textarea, .ba-listing-form textarea { min-height: 130px; resize: vertical; }
.ba-auth-card input:focus, .ba-account-card :is(input,select,textarea):focus, .ba-listing-form :is(input,select,textarea):focus { outline: 3px solid rgba(77, 79, 255, .2); border-color: var(--ba-primary, #4d4fff); }
.ba-password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.ba-password-field input { border-radius: 12px 0 0 12px; }
.ba-password-field button { border: 1px solid var(--ba-border, #d4d9e2); border-left: 0; border-radius: 0 12px 12px 0; padding: 0 16px; background: #f7f8fb; font-weight: 800; }
.ba-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.ba-btn--block { width: 100%; justify-content: center; }
.ba-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ba-check { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; gap: 9px !important; font-weight: 600 !important; }
.ba-check input { width: 18px !important; min-height: 18px !important; margin: 0; }
.ba-field-error, .ba-rejection { color: #a52121; font-weight: 700; }
.ba-alert { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.ba-alert p:last-child, .ba-alert ul:last-child { margin-bottom: 0; }
.ba-alert--success { color: #17603b; background: #ecfbf3; border-color: #a8e6c5; }
.ba-alert--error { color: #8a1e1e; background: #fff0f0; border-color: #efb4b4; }
.ba-alert--warning { color: #704900; background: #fff9e8; border-color: #f0d58a; }
.ba-alert--info { color: #23457c; background: #eef5ff; border-color: #bad3f5; }
.ba-account-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ba-account-nav { position: sticky; top: 90px; display: grid; gap: 22px; padding: 22px; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 20px; background: #fff; }
.ba-account-nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ba-ink, #172033); }
.ba-account-nav nav { display: grid; gap: 6px; }
.ba-account-nav nav a, .ba-account-nav form button { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; text-align: left; background: transparent; color: var(--ba-ink, #172033); font-weight: 700; }
.ba-account-nav nav a[aria-current="page"] { color: var(--ba-primary, #4d4fff); background: #f0f0ff; }
.ba-account-nav form button { color: #9d2424; cursor: pointer; }
.ba-account-main { min-width: 0; }
.ba-account-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.ba-account-heading h1 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.ba-account-card { margin-top: 20px; padding: clamp(20px, 3.5vw, 32px); border: 1px solid var(--ba-border, #dfe3ea); border-radius: 20px; background: #fff; }
.ba-account-card h2 { margin-top: 0; }
.ba-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ba-status-grid a { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 16px; background: #fff; color: var(--ba-ink, #172033); }
.ba-status-grid strong { font-size: 2rem; }
.ba-steps { display: grid; gap: 12px; padding-left: 22px; }
.ba-form-grid { display: grid; gap: 16px; }.ba-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ba-input-prefix { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; border: 1px solid var(--ba-border, #d4d9e2); border-radius: 12px; overflow: hidden; }
.ba-input-prefix span { padding: 0 12px; color: var(--ba-muted, #647087); white-space: nowrap; }.ba-input-prefix input { border: 0 !important; border-left: 1px solid var(--ba-border, #d4d9e2) !important; border-radius: 0 !important; }
.ba-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.ba-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.ba-save-state { padding: 6px 10px; border-radius: 999px; background: #eef5ff; color: #23457c; font-size: .9rem; font-weight: 800; }
.ba-dropzone { place-items: center; min-height: 150px; padding: 24px; border: 2px dashed #aab4c5; border-radius: 16px; background: #fafbfe; text-align: center; cursor: pointer; }
.ba-dropzone input { max-width: 420px; }.ba-dropzone span { font-weight: 600; }
.ba-media-sort { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.ba-media-sort li { overflow: hidden; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 14px; background: #fff; }
.ba-media-sort li[aria-grabbed="true"] { opacity: .55; outline: 3px solid rgba(77,79,255,.25); }
.ba-media-sort img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }.ba-media-sort li > div { display: grid; gap: 8px; padding: 10px; }
.ba-drag-handle { cursor: grab; font-weight: 700; }.ba-link-danger { border: 0; padding: 0; background: transparent; color: #a52121; font: inherit; font-weight: 800; cursor: pointer; }
.ba-media-move { display: flex; gap: 6px; }.ba-media-move button { width: 36px; height: 34px; border: 1px solid var(--ba-border,#dfe3ea); border-radius: 8px; background: #fff; font-weight: 900; cursor: pointer; }
.ba-status-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; }.ba-status-tabs a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 999px; background: #fff; color: var(--ba-ink, #172033); font-weight: 700; }.ba-status-tabs a[aria-current="page"] { color: #fff; background: var(--ba-primary, #4d4fff); border-color: var(--ba-primary, #4d4fff); }
.ba-workspace-list { display: grid; gap: 14px; margin-top: 20px; }.ba-workspace-row { display: flex; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 16px; background: #fff; }.ba-workspace-row h2 { margin: 7px 0; font-size: 1.25rem; }.ba-workspace-row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ba-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef0f4; font-size: .82rem; font-weight: 900; }.ba-status--published { color: #17603b; background: #e9f9f0; }.ba-status--pending { color: #704900; background: #fff5d8; }.ba-status--rejected { color: #8a1e1e; background: #ffecec; }.ba-status--archived,.ba-status--expired { color: #4d5668; background: #e9ebef; }
.ba-empty-state { display: grid; place-items: center; gap: 10px; min-height: 300px; padding: 30px; border: 1px dashed #aab4c5; border-radius: 18px; text-align: center; background: #fff; }
@media (max-width: 1024px) { .ba-account-shell { grid-template-columns: 210px minmax(0,1fr); }.ba-media-sort { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 768px) { .ba-account-shell { grid-template-columns: 1fr; }.ba-account-nav { position: static; }.ba-account-nav nav { grid-template-columns: repeat(2,minmax(0,1fr)); }.ba-status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.ba-form-grid--2 { grid-template-columns: 1fr; }.ba-media-sort { grid-template-columns: repeat(2,minmax(0,1fr)); }.ba-workspace-row { display: grid; }.ba-workspace-row__actions { justify-content: flex-start; } }
@media (max-width: 430px) { .ba-account-heading { align-items: stretch; flex-direction: column; }.ba-account-heading .ba-btn { width: 100%; }.ba-account-nav nav { grid-template-columns: 1fr; }.ba-status-grid,.ba-media-sort { grid-template-columns: 1fr; }.ba-auth-card { width: min(100% - 20px,560px); padding: 22px; }.ba-input-prefix { grid-template-columns: 1fr; }.ba-input-prefix span { padding: 9px 12px; }.ba-input-prefix input { border-left: 0 !important; border-top: 1px solid var(--ba-border,#d4d9e2) !important; } }

/* Stage 4: explicit UA / EN navigation */
.ba-language-switcher { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--ba-border, #dfe3ea); border-radius: 999px; color: var(--ba-muted, #647087); font-size: .78rem; font-weight: 900; letter-spacing: .04em; }
.ba-language-switcher a { color: inherit; text-decoration: none; }
.ba-language-switcher a[aria-current="page"] { color: var(--ba-primary, #4d4fff); text-decoration: underline; text-underline-offset: 3px; }
.ba-language-switcher--mobile { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) { .ba-header__actions > .ba-language-switcher { display: none; } }
