@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --ink: #172421;
    --muted: #66736f;
    --brand: #087f5b;
    --brand-dark: #055d43;
    --brand-soft: #e7f5ef;
    --accent: #ffcf5c;
    --surface: #ffffff;
    --surface-alt: #f5f7f6;
    --line: #dfe6e3;
    --danger: #c23c3c;
    --shadow: 0 14px 40px rgba(26, 53, 44, .09);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--surface); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body, input, select, textarea, button { font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin-top: 0; font-family: 'Manrope', system-ui, sans-serif; line-height: 1.15; }
p { line-height: 1.65; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2b9bff; outline-offset: 3px; }
.container-shell { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.visually-hidden { 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; }

.market-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.desktop-header { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 25px/1 'Manrope', sans-serif; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--brand); border-radius: 12px 12px 5px 12px; font-size: 22px; transform: rotate(-3deg); }
.header-search { display: flex; flex: 1; max-width: 620px; height: 48px; margin-left: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); overflow: hidden; }
.header-search input { min-width: 0; flex: 1; padding: 0 16px; border: 0; outline: 0; background: transparent; }
.header-location { width: 145px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); outline: 0; background: transparent; color: var(--muted); font-size: 13px; }
.autocomplete-shell { position: relative; display: flex; min-width: 0; flex: 1; }
.autocomplete-shell > input { width: 100%; }
.search-suggestions { position: absolute; z-index: 150; display: grid; left: 0; right: 0; top: calc(100% + 10px); max-height: 340px; padding: 7px; overflow-y: auto; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.search-suggestions[hidden] { display: none; }
.search-suggestions a { display: flex; justify-content: space-between; gap: 15px; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.search-suggestions a:hover, .search-suggestions a.active { background: var(--brand-soft); }
.search-suggestions small { color: var(--muted); }
.btn-search { padding: 0 20px; border: 0; background: var(--ink); color: white; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.header-action { font-weight: 600; color: #33443e; }
.nav-icon-with-count { position: relative; }
.nav-count { position: absolute; display: grid; min-width: 18px; height: 18px; place-items: center; top: -10px; right: -11px; padding: 0 4px; border: 2px solid white; border-radius: 999px; background: var(--danger); color: white; font-size: 9px; line-height: 1; }
.sell-button, .btn-primary, .btn-primary-large { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--brand); color: white; font-weight: 800; border-radius: 12px; cursor: pointer; }
.sell-button { min-height: 46px; padding: 0 20px; }
.btn-primary { min-height: 44px; padding: 0 20px; }
.btn-primary-large { min-height: 54px; padding: 0 26px; font-size: 17px; }
.sell-button:hover, .btn-primary:hover, .btn-primary-large:hover { background: var(--brand-dark); color: white; }
.btn-outline, .btn-ghost, .btn-light, .btn-whatsapp, .btn-danger-outline, .share-button, .filter-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-outline { border: 1px solid var(--brand); background: white; color: var(--brand); }
.btn-ghost, .share-button, .filter-toggle { border: 1px solid var(--line); background: white; color: var(--ink); }
.btn-danger-outline { border: 1px solid #d7a09b; background: white; color: var(--danger); }
.btn-danger-outline:hover { background: #fff2f1; }
.btn-light { border: 0; background: white; color: var(--brand-dark); }
.btn-whatsapp { background: #1eaf63; color: white; }
.mobile-topbar, .mobile-bottom-nav { display: none; }
.page-alerts { padding-top: 12px; }
.alert { border: 0; border-radius: 12px; }

.hero-section { position: relative; padding: 78px 0 84px; overflow: hidden; background: linear-gradient(135deg, #eff9f5 0%, #f9fbf7 54%, #fff7df 100%); }
.hero-section::before { content: ''; position: absolute; width: 500px; height: 500px; left: -240px; top: -300px; border: 85px solid rgba(8,127,91,.07); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); align-items: center; gap: 80px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #c6f3df; }
.hero-copy h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(42px, 5vw, 70px); letter-spacing: -.045em; }
.hero-copy h1 em { color: var(--brand); font-style: normal; }
.hero-copy > p { max-width: 680px; color: var(--muted); font-size: 19px; }
.hero-search { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(190px, auto) auto; gap: 10px; max-width: 820px; margin-top: 34px; padding: 10px; background: white; border: 1px solid rgba(8,127,91,.12); border-radius: 18px; box-shadow: var(--shadow); }
.search-field { min-width: 0; padding: 5px 14px; border-right: 1px solid var(--line); }
.search-field label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; color: var(--ink); }
.search-field input, .search-field select { width: 100%; padding: 3px 0; border: 0; outline: 0; color: var(--muted); background: transparent; }
.search-field .autocomplete-shell { display: block; }
.hero-trends { margin: 16px 0 0; font-size: 14px!important; }
/* Public location pickers: State → District → Place (India) or District only (Bahrain). */
.hero-location-picker { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); min-width: 0; }
.hero-location-picker .search-field select { max-width: 100%; text-overflow: ellipsis; }
.location-picker select option, .location-picker select optgroup { color: var(--ink); }
.location-picker-filter .field-group[hidden], .location-picker-form .mb-3[hidden] { display: none; }
.location-form-grid { margin-bottom: 6px; }
.location-form-field .invalid-feedback { margin-top: -6px; margin-bottom: 12px; }
.hero-visual { position: relative; min-height: 420px; }
.hero-orbit { position: absolute; border: 1px solid rgba(8,127,91,.2); border-radius: 50%; }
.orbit-one { inset: 15px 20px 20px; }
.orbit-two { inset: 75px 80px; border-width: 30px; opacity: .4; }
.floating-card { position: absolute; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; width: 240px; padding: 18px; background: rgba(255,255,255,.93); border: 1px solid rgba(8,127,91,.12); border-radius: 18px; box-shadow: var(--shadow); }
.floating-card > span { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; background: var(--brand-soft); color: var(--brand); border-radius: 15px; font-size: 28px; }
.floating-card strong { align-self: end; }
.floating-card small { color: var(--muted); }
.card-a { top: 20px; right: 30px; transform: rotate(3deg); }
.card-b { left: 5px; top: 160px; transform: rotate(-4deg); }
.card-c { right: 0; bottom: 15px; transform: rotate(2deg); }

.market-section { padding-top: 82px; padding-bottom: 82px; }
.section-tint { background: var(--surface-alt); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; }
.text-link { color: var(--brand); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.category-card { display: flex; min-width: 0; flex-direction: column; align-items: center; min-height: 164px; padding: 22px 12px; background: white; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: #acd5c6; box-shadow: var(--shadow); }
.category-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font: 800 22px 'Manrope'; }
.category-card strong { line-height: 1.25; }
.category-card small { margin-top: 5px; color: var(--muted); }
.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.listing-card { position: relative; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-card.is-sold { opacity: .67; }
.listing-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f0; }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.listing-card:hover .listing-card-media img { transform: scale(1.03); }
.card-favorite-form { position: absolute; z-index: 3; top: 12px; right: 12px; margin: 0; }
.card-favorite-button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid rgba(23,36,33,.12); border-radius: 50%; box-shadow: 0 5px 16px rgba(23,36,33,.14); background: rgba(255,255,255,.95); color: var(--brand-dark); font-size: 23px; line-height: 1; text-decoration: none; cursor: pointer; }
a.card-favorite-button { position: absolute; z-index: 3; top: 12px; right: 12px; }
.card-favorite-button:hover, .card-favorite-button:focus-visible { color: var(--danger); transform: scale(1.05); }
.card-favorite-button.saved { color: var(--danger); }
.card-favorite-button[aria-busy="true"] { opacity: .65; }
.listing-card.is-removing { opacity: 0; transform: scale(.96); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, #e9efec, #f8faf9); color: #9badA7; font-size: 55px; }
.card-badges { position: absolute; display: flex; flex-wrap: wrap; gap: 6px; left: 12px; top: 12px; }
.status-badge { display: inline-flex; width: max-content; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; background: #eef2f0; color: #3a4a45; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-badge.featured { background: var(--accent); color: #4d3b05; }
.status-badge.urgent, .status-badge.status-rejected { background: #ffe2df; color: #9d2922; }
.status-badge.sold, .status-badge.status-sold { background: var(--ink); color: white; }
.status-badge.status-active, .status-badge.status-accepted { background: var(--brand-soft); color: var(--brand-dark); }
.status-badge.status-pending, .status-badge.status-countered { background: #fff1c8; color: #7e5b00; }
.status-badge.status-changes_requested { background: #fff1c8; color: #7e5b00; }
.status-badge.status-hidden { background: #e8eaf8; color: #3f4787; }
.status-badge.status-removed { background: var(--ink); color: white; }
.listing-card-body { padding: 17px; }
.listing-card-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.listing-price { color: var(--brand-dark); font: 800 21px 'Manrope'; }
.negotiable { color: var(--muted); font-size: 12px; font-weight: 700; }
.listing-card h3 { margin: 10px 0 18px; font-size: 16px; line-height: 1.4; }
.listing-meta { display: flex; justify-content: space-between; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid article { position: relative; padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps-grid article > span { display: block; color: var(--brand); font: 800 34px 'Manrope'; opacity: .35; }
.steps-grid h3 { margin: 20px 0 6px; }
.steps-grid p { margin: 0; color: var(--muted); }
.how-section { background: linear-gradient(#fff, #f2f8f5); }
.safety-section { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-block: 70px; padding: 45px 50px; background: var(--brand-dark); color: white; border-radius: var(--radius-lg); }
.safety-section h2 { margin-bottom: 10px; font-size: 36px; }
.safety-section p { max-width: 740px; margin: 0; color: #d8ebe4; }
.sell-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 80px; padding: 42px 50px; border: 1px solid #d5e9df; border-radius: var(--radius-lg); background: #f4fbf7; }
.sell-cta h2 { max-width: 720px; margin: 0; font-size: 32px; }
.empty-state { max-width: 680px; margin: 40px auto; padding: 55px 24px; text-align: center; background: var(--surface-alt); border: 1px dashed #cbd8d3; border-radius: var(--radius-lg); }
.empty-state > span { display: inline-grid; place-items: center; width: 70px; height: 70px; margin-bottom: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 35px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.client-toast { position: fixed; z-index: 10000; right: 22px; bottom: 82px; max-width: min(360px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 11px; box-shadow: 0 14px 38px rgba(23,36,33,.2); background: var(--ink); color: white; font-size: 14px; font-weight: 700; opacity: 0; transform: translateY(12px); transition: .2s ease; }
.client-toast.error { background: var(--danger); }
.client-toast.visible { opacity: 1; transform: translateY(0); }
.favorite-client-empty { grid-column: 1 / -1; }
.confirmation-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(10,25,20,.28); color: var(--ink); }
.confirmation-dialog::backdrop { background: rgba(11,24,20,.58); backdrop-filter: blur(2px); }
.confirmation-dialog form { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 24px; }
.confirmation-dialog-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #fff0ee; color: var(--danger); font-size: 20px; font-weight: 900; }
.confirmation-dialog h2 { margin: 1px 0 7px; font-size: 21px; }
.confirmation-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.confirmation-dialog footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.auth-required-dialog { width: min(480px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(10,25,20,.3); color: var(--ink); }
.auth-required-dialog::backdrop { background: rgba(11,24,20,.62); backdrop-filter: blur(3px); }
.auth-required-dialog form { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 15px; padding: 28px; }
.auth-required-close { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 24px; cursor: pointer; }
.auth-required-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: var(--brand); color: white; font-size: 24px; font-weight: 900; }
.auth-required-dialog h2 { margin: 4px 42px 7px 0; font-size: 25px; }
.auth-required-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-required-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.auth-required-dialog form > small { grid-column: 1 / -1; color: var(--muted); text-align: center; }
.report-modal { width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow-y: auto; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(10,25,20,.3); color: var(--ink); }
.report-modal::backdrop { background: rgba(11,24,20,.62); backdrop-filter: blur(3px); }
.report-modal form { display: grid; gap: 16px; padding: 28px; }
.report-modal header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.report-modal h2 { margin: 4px 0 0; font-size: 27px; }
.report-modal header button { display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 24px; cursor: pointer; }
.report-modal > form > p { margin: -3px 0 0; color: var(--muted); line-height: 1.55; }
.report-field { display: grid; gap: 7px; }
.report-field label { font-weight: 800; }
.report-field select, .report-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cfd9d5; border-radius: 10px; background: white; color: var(--ink); }
.report-field select { min-height: 48px; }
.report-field textarea { resize: vertical; }
.report-field small { color: var(--muted); }
.report-modal-safety { display: grid; gap: 2px; padding: 13px 15px; border-radius: 10px; background: #fff8df; color: #6c5313; }
.report-modal-safety span { font-size: 12px; line-height: 1.45; }
.report-modal footer { display: flex; justify-content: flex-end; gap: 9px; }
.block-user-modal { width: min(470px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(10,25,20,.3); color: var(--ink); }
.block-user-modal::backdrop { background: rgba(11,24,20,.62); backdrop-filter: blur(3px); }
.block-user-modal > div { padding: 27px; }
.block-user-modal header { display: flex; align-items: center; justify-content: space-between; }
.block-user-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #fff0ee; color: var(--danger); font-size: 25px; font-weight: 900; }
.block-user-modal header button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 24px; cursor: pointer; }
.block-user-modal h2 { margin: 18px 0 7px; font-size: 25px; }
.block-user-modal > div > p { margin: 0; color: var(--muted); line-height: 1.55; }
.block-user-modal ul { display: grid; gap: 8px; margin: 18px 0; padding: 15px 15px 15px 38px; border-radius: 11px; background: var(--surface-alt); }
.block-user-modal li::marker { color: var(--danger); }
.block-user-note { font-size: 12px; }
.block-user-modal footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.password-field-control { position: relative; }
.password-field-control > input { padding-right: 70px !important; }
.password-visibility-toggle { position: absolute; top: 50%; right: 9px; min-width: 50px; padding: 5px 7px; border: 0; border-radius: 7px; background: var(--surface-alt); color: var(--brand-dark); font-size: 11px; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.password-visibility-toggle:hover, .password-visibility-toggle:focus-visible { background: var(--brand-soft); outline: 2px solid var(--brand); }
.mb-3:has(.password-field-control .is-invalid) > .invalid-feedback { display: block; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding: 25px 0; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { color: var(--brand); }
.search-page { padding-bottom: 80px; }
.search-title-row, .account-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 18px 0 30px; }
.search-title-row h1, .account-heading h1, .form-intro h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.04em; }
.category-result-count { margin: 0; color: var(--muted); }
.category-discovery { display: grid; gap: 16px; margin: 5px 0 32px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.category-discovery h2 { margin: 3px 0 0; font-size: 23px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.subcategory-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 2px 10px; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.subcategory-card > span { display: grid; grid-row: 1 / 3; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.subcategory-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subcategory-card small { color: var(--muted); }
.subcategory-card:hover { border-color: #acd5c6; box-shadow: 0 7px 20px rgba(15,40,32,.07); }
.related-category-section { margin-top: 55px; }
.related-category-links { display: flex; gap: 9px; flex-wrap: wrap; }
.related-category-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.related-category-links a > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 900; }
.related-category-links a:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-toggle { display: none; }
.search-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 34px; align-items: start; }
.filter-panel { position: sticky; top: 98px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.filter-panel h2 { font-size: 19px; }
.field-group { margin-bottom: 17px; }
.field-group label, .listing-form .control-label, .narrow-page .control-label { display: block; margin-bottom: 7px; color: #34453f; font-weight: 700; font-size: 14px; }
.field-group input, .field-group select, .listing-form .form-control, .listing-form .form-select, .narrow-page .form-control { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd9d5; border-radius: 10px; background: white; color: var(--ink); }
.filter-row, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.filter-help { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.check-list { display: grid; gap: 10px; padding: 0; margin: 20px 0; border: 0; }
.check-list legend { margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.check-list label { display: flex; gap: 9px; align-items: center; }
.filter-actions { display: flex; gap: 8px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-toolbar p { margin: 0; color: var(--muted); }
.sort-form select { min-height: 43px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination-wrap { display: flex; justify-content: center; margin-top: 38px; }
.pagination { display: flex; gap: 5px; }
.page-link { color: var(--ink); border-color: var(--line); border-radius: 8px!important; }
.active > .page-link { background: var(--brand); border-color: var(--brand); }

.listing-detail-page { padding-bottom: 90px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 30px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 22px; }
.gallery, .detail-card, .price-card, .seller-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: #eef2f0; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.image-counter { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(23,36,33,.8); color: white; font-size: 13px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 82px; height: 62px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #eee; cursor: pointer; }
.gallery-thumbs button:focus { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { padding: 30px; }
.detail-card h2 { font-size: 22px; }
.listing-description { margin-bottom: 0; white-space: normal; color: #384943; }
.listing-description.is-collapsed { position: relative; max-height: 10.5em; overflow: hidden; }
.listing-description.is-collapsed::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 42px; background: linear-gradient(transparent, white); pointer-events: none; }
.description-toggle { margin-top: 12px; padding: 6px 0; border: 0; background: transparent; color: var(--brand); font-weight: 800; cursor: pointer; }
.description-toggle:hover, .description-toggle:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-weight: 500; }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
.safety-card, .safety-warning { display: flex; gap: 16px; padding: 20px; background: #fff8df; border: 1px solid #f3dda1; border-radius: 14px; }
.safety-card > span { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 50%; background: #ffdc7d; font-weight: 800; }
.safety-card h2 { margin-bottom: 4px; font-size: 18px; }
.safety-card p { margin: 0; color: #6c5d32; }
.detail-sidebar { position: sticky; top: 98px; }
.price-card, .seller-card { padding: 26px; }
.price-row { display: flex; justify-content: space-between; gap: 15px; }
.detail-price { color: var(--brand-dark); font: 800 31px 'Manrope'; }
.price-card h1 { margin: 24px 0 15px; font-size: 26px; }
.detail-meta { margin: 4px 0; color: var(--muted); font-size: 14px; }
.favorite-large { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--brand); font-size: 26px; cursor: pointer; }
.favorite-large.saved { color: var(--danger); }
.seller-card { display: grid; grid-template-columns: 58px 1fr; gap: 14px; }
.seller-avatar { display: inline-grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 800 19px 'Manrope'; }
.seller-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.seller-copy h2 { margin: 3px 0; font-size: 18px; }
.seller-trust-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; }
.seller-trust-summary span { color: var(--muted); font-size: 11px; }
.seller-trust-summary strong { color: var(--ink); }
.verified { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--brand); color: white; font-size: 12px; }
.contact-stack, .seller-links { grid-column: 1 / -1; display: grid; gap: 9px; }
.seller-links { grid-template-columns: 1fr 1fr; padding-top: 8px; text-align: center; font-size: 14px; }
.seller-links a { color: var(--brand); font-weight: 700; }
.share-button { width: 100%; }
.preview-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: #fff2c8; color: #654b00; }
.mobile-contact-bar { display: none; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-thumbs button[aria-pressed="true"] { outline: 3px solid var(--brand); outline-offset: -3px; }
.gallery-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,12,10,.96); color: white; }
.gallery-dialog[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.gallery-dialog::backdrop { background: rgba(5,12,10,.92); }
.gallery-dialog figure { display: grid; height: 100vh; margin: 0; place-items: center; align-content: center; gap: 12px; }
.gallery-dialog figure img { max-width: min(1200px, 100%); max-height: calc(100vh - 90px); object-fit: contain; }
.gallery-dialog figcaption { color: #d8e3df; font-weight: 700; }
.gallery-dialog-close, .gallery-dialog-nav { z-index: 2; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 34px; cursor: pointer; }
.offer-modal { width: min(540px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 26px; overflow-y: auto; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(12,30,24,.3); color: var(--ink); }
.offer-modal::backdrop { background: rgba(9,24,19,.62); backdrop-filter: blur(3px); }
.offer-modal-heading { display: flex; justify-content: space-between; gap: 18px; }
.offer-modal-heading h2 { margin: 3px 0 0; font-size: 28px; }
.offer-modal-heading > button { display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 24px; cursor: pointer; }
.offer-modal > p { margin: 10px 0 18px; color: var(--muted); font-size: 14px; }
.offer-modal-listing { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; margin-bottom: 20px; padding: 16px; border-radius: 12px; background: var(--surface-alt); }
.offer-modal-listing span, .offer-modal-listing small { color: var(--muted); font-size: 12px; }
.offer-modal-listing strong { color: var(--brand-dark); font-size: 21px; }
.offer-modal-listing small { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-offer-form { display: grid; gap: 8px; }
.listing-offer-form > label { margin-top: 7px; font-size: 13px; font-weight: 800; }
.listing-offer-form > label small { color: var(--muted); font-weight: 500; }
.offer-amount-control { display: grid; grid-template-columns: auto 1fr; align-items: center; overflow: hidden; border: 1px solid #cfd9d5; border-radius: 11px; }
.offer-amount-control:focus-within { border-color: var(--brand); outline: 3px solid rgba(8,127,91,.13); }
.offer-amount-control span { padding: 0 13px; color: var(--brand-dark); font-weight: 800; }
.offer-amount-control input { min-width: 0; min-height: 50px; padding: 10px 12px; border: 0; border-left: 1px solid var(--line); outline: 0; font-size: 18px; font-weight: 800; }
.listing-offer-form textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid #cfd9d5; border-radius: 11px; }
.offer-field-error { margin: 0; color: var(--danger); font-size: 12px; }
.offer-field-error[hidden] { display: none; }
.offer-modal-safety { display: grid; gap: 2px; margin-top: 9px; padding: 12px 14px; border-radius: 10px; background: #fff8df; color: #6c5313; }
.offer-modal-safety span { font-size: 12px; line-height: 1.45; }
.offer-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; }
.gallery-dialog-close { position: fixed; top: 20px; right: 20px; }
.gallery-dialog-nav { justify-self: center; }
.share-menu { position: relative; }
.share-menu .share-button { width: 100%; }
.share-options { position: absolute; z-index: 60; display: grid; left: 0; right: 0; bottom: calc(100% + 8px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.share-options[hidden] { display: none; }
.share-options a, .share-options button { padding: 12px 15px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.share-options > :last-child { border-bottom: 0; }
.share-options a:hover, .share-options button:hover { background: var(--brand-soft); color: var(--brand); }

.form-page, .account-page, .narrow-page { padding-top: 55px; padding-bottom: 90px; }
.detected-market { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 800; }
.market-currency-field { display: flex; min-height: 49px; flex-direction: column; justify-content: center; padding: 8px 13px; border: 1px solid #cfd9d5; border-radius: 8px; background: var(--surface-alt); }
.market-currency-field > span, .market-currency-field > small { color: var(--muted); font-size: 11px; }
.market-currency-field > strong { line-height: 1.1; }
.form-intro { max-width: 720px; margin-bottom: 28px; }
.form-intro p, .account-heading p { margin: 0; color: var(--muted); }
.listing-wizard { max-width: 950px; }
.wizard-progress-copy { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.wizard-progress-copy strong { color: var(--brand); }
.step-indicator { display: flex; gap: 7px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: thin; }
.step-indicator button { display: flex; flex: 1 0 auto; align-items: center; gap: 7px; padding: 10px 13px; border: 0; border-bottom: 3px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.step-indicator button > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--surface-alt); font-size: 11px; }
.step-indicator button.active, .step-indicator button[aria-current="step"] { border-color: var(--brand); color: var(--brand); }
.step-indicator button.active > span { background: var(--brand); color: white; }
.listing-form { max-width: 950px; }
.wizard-step[hidden] { display: none!important; }
.form-card { margin-bottom: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-card-heading { display: flex; gap: 15px; margin-bottom: 24px; }
.form-card-heading > span { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--brand); color: white; font-weight: 800; }
.form-card-heading h2 { margin-bottom: 2px; font-size: 21px; }
.form-card-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.listing-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-attributes { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.category-search-field { position: relative; display: grid; margin-bottom: 14px; }
.category-search-field label { margin-bottom: 6px; font-size: 13px; font-weight: 800; }
.category-search-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.category-search-field input:focus { border-color: var(--brand); outline: 3px solid rgba(8,127,91,.14); }
.category-search-field small { min-height: 17px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.category-picker-ready .category-native-field { display: none; }
.category-search-results { position: absolute; z-index: 70; display: grid; top: calc(100% - 13px); left: 0; right: 0; max-height: 330px; overflow-y: auto; padding: 7px; border: 1px solid #bfd1ca; border-radius: 12px; background: white; box-shadow: 0 18px 45px rgba(15,40,32,.16); }
.category-search-results[hidden] { display: none; }
.category-search-results button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.category-search-results button:hover, .category-search-results button.active { background: var(--brand-soft); color: var(--brand-dark); }
.category-search-results button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-search-results button small { min-height: 0; margin: 0; color: var(--muted); text-align: right; }
.category-search-empty, .category-search-more { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 13px; }
.category-search-more { border-top: 1px solid var(--line); }
.category-attributes-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.category-attributes-heading h3 { margin: 0 0 3px; font-size: 17px; }
.category-attributes-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.category-attributes-heading > span { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.category-attribute-field { min-width: 0; }
.category-attribute-field .form-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.category-attribute-field .form-label span { color: #b42318; }
.category-attribute-field .form-control { width: 100%; }
.category-attribute-unit { display: block; margin-top: 5px; color: var(--muted); }
.category-attributes-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 10px; background: var(--surface-alt); color: var(--muted); font-size: 13px; }
.listing-form .form-control, .listing-form .form-select, .narrow-page .form-control { min-height: 49px; border-color: #cfd9d5; }
.listing-form textarea.form-control, .narrow-page textarea.form-control { min-height: 130px; }
.listing-form .form-check { margin: 13px 0; }
.invalid-feedback { display: block; color: var(--danger); }
.check-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.existing-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.existing-image-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; transition: opacity .15s ease, transform .15s ease; }
.existing-image-item.is-dragging { opacity: .45; transform: scale(.98); }
.existing-image-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.existing-image-item footer { display: flex; justify-content: space-between; gap: 4px; padding: 7px; }
.existing-image-item button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.existing-image-item button:disabled { opacity: .35; cursor: default; }
.image-dropzone { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 5px; padding: 25px; border: 2px dashed #a9c4b9; border-radius: var(--radius); background: #f6fbf8; text-align: center; cursor: pointer; }
.image-dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.image-dropzone.is-dragover { border-color: var(--brand); background: #e7f7f0; box-shadow: 0 0 0 4px rgba(25,135,84,.13); transform: translateY(-1px); }
.image-dropzone > span { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 5px; border-radius: 50%; background: var(--brand); color: white; font-size: 24px; }
.image-dropzone small { color: var(--muted); }
.field-listing-imagefiles { margin-top: 10px; }
.field-listing-imagefiles input[type="file"] { width: 100%; }
.photo-source-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.photo-source-actions > small { flex-basis: 100%; }
.camera-upload-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--brand); border-radius: 10px; background: white; color: var(--brand-dark); font-weight: 800; cursor: pointer; }
.camera-upload-button:hover { background: var(--brand-soft); }
.upload-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.upload-preview:empty { display: none; }
.upload-preview-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.upload-preview-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.upload-preview-item footer { display: flex; justify-content: space-between; gap: 4px; padding: 7px; }
.upload-preview-item button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.cover-label { position: absolute; top: 7px; left: 7px; padding: 4px 7px; border-radius: 999px; background: var(--brand); color: white; font-size: 10px; font-weight: 800; }
.existing-image-block { margin-top: 24px; }
.existing-image-block h3 { font-size: 15px; }
.image-management-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.image-management-heading > span { color: var(--muted); font-size: 12px; }
.upload-limit-note { min-height: 18px; margin: 7px 0 0; color: var(--brand-dark); font-size: 12px; }
.direct-deal-note, .privacy-note { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.direct-deal-note { flex-direction: column; align-items: start; gap: 3px; }
.direct-deal-note span, .privacy-note p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-note > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: white; color: var(--brand); }
.contact-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.contact-option-grid > label { display: flex; align-items: start; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.contact-option-grid input { margin-top: 4px; }
.contact-option-grid span, .contact-option-grid strong, .contact-option-grid small { display: block; }
.contact-option-grid small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.contact-option-grid > label.contact-option-disabled { background: var(--surface-alt); cursor: not-allowed; opacity: .68; }
.listing-preview-card { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.listing-preview-media { display: grid; min-height: 260px; place-items: center; align-content: center; background: var(--surface-alt); color: var(--muted); }
.listing-preview-media > span { font-size: 42px; }
.listing-preview-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.listing-preview-copy { padding: 27px; }
.listing-preview-copy h3 { margin: 8px 0; font-size: 26px; }
.listing-preview-copy > strong { color: var(--brand-dark); font-size: 25px; }
.listing-preview-copy p { color: var(--muted); }
.listing-preview-copy [data-review-description] { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.review-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.review-summary div { padding: 15px; border-right: 1px solid var(--line); }
.review-summary div:last-child { border-right: 0; }
.review-summary dt { color: var(--muted); font-size: 12px; }
.review-summary dd { margin: 3px 0 0; font-weight: 800; }
.publish-explainer { padding: 18px; border-radius: 12px; background: #fff8df; }
.publish-explainer p { margin: 3px 0 0; color: #6c5d32; }
.wizard-navigation { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 25px; }
.wizard-navigation-secondary { display: flex; align-items: center; gap: 8px; }
.wizard-navigation [data-wizard-next] { margin-left: auto; }
.listing-upload-progress { display: grid; grid-template-columns: minmax(190px, .6fr) minmax(240px, 1fr); align-items: center; gap: 18px; margin-top: 14px; padding: 14px 16px; border: 1px solid #b9d6ca; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.listing-upload-progress[hidden] { display: none; }
.listing-upload-progress strong, .listing-upload-progress small { display: block; }
.listing-upload-progress small { margin-top: 3px; color: var(--muted); }
.listing-upload-progress-track { overflow: hidden; height: 10px; border-radius: 999px; background: #d5e7df; }
.listing-upload-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .15s ease; }
.form-submit-bar { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 0; }
.account-page { min-height: 65vh; }
.status-tabs { display: flex; gap: 8px; margin: 0 0 28px; padding-bottom: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.status-tabs a { flex: 0 0 auto; padding: 11px 14px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; }
.status-tabs a.active { border-color: var(--brand); color: var(--brand); }
.my-listings, .conversation-list, .offer-list { display: grid; gap: 12px; }
.my-listing-row, .conversation-row, .offer-row { display: flex; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.my-listing-image { display: grid; flex: 0 0 130px; width: 130px; height: 98px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--surface-alt); }
.my-listing-image img { width: 100%; height: 100%; object-fit: cover; }
.my-listing-info { min-width: 0; flex: 1; }
.my-listing-info h2, .offer-row h2 { margin: 7px 0 3px; font-size: 18px; }
.my-listing-info p, .offer-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.my-listing-actions, .offer-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.my-listing-actions form, .offer-actions form { margin: 0; }
.my-listing-row.has-moderation-feedback { align-items: start; border-color: #e7c36f; background: #fffdf8; }
.seller-moderation-feedback { margin-top: 12px; padding: 12px 14px; border-left: 3px solid #d8a62a; border-radius: 8px; background: #fff7df; }
.seller-moderation-feedback strong { color: #70540b; font-size: 13px; }
.seller-moderation-feedback p { margin-top: 4px; color: #65582f; }
.listing-moderation-feedback { display: flex; gap: 14px; margin: 0 0 20px; padding: 20px; border: 1px solid #e7c36f; border-radius: var(--radius); background: #fffaf0; }
.listing-moderation-feedback > span { display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 50%; background: #f5d77f; color: #6b5008; font-weight: 800; }
.listing-moderation-feedback h2 { margin: 0 0 4px; font-size: 19px; }
.listing-moderation-feedback p { margin: 6px 0; color: #5f5537; }
.listing-moderation-feedback small { color: var(--muted); }
.narrow-page { max-width: 720px; min-height: 68vh; }
.message-start-form, .narrow-page form, .offer-summary { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-note { color: var(--muted); font-size: 14px; }
.offer-summary { display: flex; justify-content: space-between; margin-bottom: 14px; background: var(--surface-alt); }
.offer-summary strong { color: var(--brand); font-size: 20px; }
.conversation-row { color: inherit; }
.conversation-row > div { min-width: 0; flex: 1; }
.conversation-row h2 { margin: 3px 0; font-size: 16px; }
.conversation-row p { margin: 0; color: var(--muted); font-size: 13px; }
.conversation-row.has-unread { border-color: #9dcdbb; background: #f7fcfa; }
.conversation-listing-image { display: grid; flex: 0 0 70px; width: 70px; height: 58px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--surface-alt); color: var(--muted); }
.conversation-listing-image img { width: 100%; height: 100%; object-fit: cover; }
.conversation-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }
.conversation-listing-title { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.conversation-preview { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: grid; flex: 0 0 auto; justify-items: end; gap: 9px; color: var(--muted); font-size: 11px; }
.unread-count { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-size: 13px; font-weight: 800; }
.chat-page { max-width: 900px; min-height: 75vh; padding-top: 35px; padding-bottom: 80px; }
.chat-header { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.chat-header h1 { margin: 0; font-size: 18px; }
.chat-header p { margin: 2px 0 0; color: var(--brand); font-size: 13px; }
.chat-header-copy { min-width: 0; flex: 1; }
.chat-header-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-copy small { color: var(--muted); font-size: 11px; }
.chat-listing-thumb { flex: 0 0 54px; width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.chat-actions { position: relative; flex: 0 0 auto; }
.chat-actions summary { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; list-style: none; font-weight: 800; }
.chat-actions summary::-webkit-details-marker { display: none; }
.chat-actions > div { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; display: grid; min-width: 165px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.chat-actions a, .chat-actions button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-size: 13px; }
.chat-actions a:hover, .chat-actions button:hover { background: var(--surface-alt); }
.chat-actions form { margin: 0; padding: 0; border: 0; }
.chat-page .safety-warning { margin-top: 10px; font-size: 13px; }
.dismissible-safety { align-items: center; justify-content: space-between; }
.dismissible-safety button { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #6c5d32; cursor: pointer; font-size: 22px; }
.chat-connection-state { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 10px; padding: 11px 13px; border: 1px solid #e4c977; border-radius: 12px; background: #fff8dc; color: #614d13; }
.chat-connection-state[hidden] { display: none; }
.chat-connection-state > div { display: grid; gap: 1px; }
.chat-connection-state strong { font-size: 13px; }
.chat-connection-state small { font-size: 11px; }
.chat-connection-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(97,77,19,.1); font-size: 19px; }
.chat-connection-state.reconnecting .chat-connection-icon { animation: connection-spin 1.1s linear infinite; }
.chat-connection-state.offline { border-color: #e1aaa4; background: #fff1ef; color: #842e28; }
.chat-connection-state.recovered { border-color: #9ad2bc; background: #e8f7f0; color: #075f45; }
.chat-connection-state.session-ended { border-color: #e1aaa4; background: #fff1ef; color: #842e28; }
.chat-connection-state .btn-ghost { min-height: 36px; padding-inline: 12px; border-color: currentColor; background: transparent; color: inherit; font-size: 11px; }
@keyframes connection-spin { to { transform: rotate(360deg); } }
.chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 400px; max-height: 60vh; padding: 25px; overflow-y: auto; background: #f4f7f5; }
.message-bubble { max-width: 72%; padding: 11px 14px; border-radius: 15px 15px 15px 3px; background: white; box-shadow: 0 2px 7px rgba(0,0,0,.04); }
.message-bubble.own { align-self: flex-end; border-radius: 15px 15px 3px 15px; background: var(--brand); color: white; }
.message-bubble.sending { opacity: .72; }
.message-bubble.failed { border: 1px solid #ef9a94; background: #fff0ef; color: #8f2520; }
.message-retry-button { padding: 2px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 10px; font-weight: 800; }
.message-retry-button:hover, .message-retry-button:focus-visible { color: #681813; }
.message-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble small { display: block; margin-top: 4px; opacity: .7; font-size: 10px; }
.message-bubble-meta { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.message-report-button { margin: 4px -4px -4px 0; padding: 4px; border: 0; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; cursor: pointer; opacity: .75; }
.message-report-button:hover, .message-report-button:focus-visible { color: var(--danger); opacity: 1; }
.chat-image-link { display: block; }
.chat-image { width: min(360px, 100%); max-height: 440px; border-radius: 11px; object-fit: contain; }
.message-type-image { padding: 6px; }
.message-type-image small { padding-inline: 6px; }
.message-type-offer, .message-type-offer.own { padding: 0; background: transparent; color: var(--ink); box-shadow: none; }
.chat-offer-card { display: grid; min-width: min(280px, 72vw); padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 13px; background: white; box-shadow: 0 3px 12px rgba(20,50,40,.07); }
.chat-offer-card > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.chat-offer-card > strong { margin: 5px 0 8px; color: var(--ink); font-size: 22px; }
.chat-offer-card .offer-message-status { justify-self: start; margin: 0 0 10px; padding: 4px 8px; border-radius: 999px; background: #edf0ef; color: #53615c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.chat-offer-card .offer-message-status.status-accepted { background: #dff4ea; color: #066a4c; }
.chat-offer-card .offer-message-status.status-pending, .chat-offer-card .offer-message-status.status-countered { background: #fff1c8; color: #7e5b00; }
.chat-offer-card .offer-message-status.status-rejected, .chat-offer-card .offer-message-status.status-withdrawn, .chat-offer-card .offer-message-status.status-expired { background: #ffe4e1; color: #952d27; }
.chat-offer-card > a { color: var(--brand); font-size: 12px; font-weight: 800; text-decoration: none; }
.message-type-offer > small { padding-inline: 5px; color: var(--muted); opacity: 1; }
.message-type-listing { width: min(390px, 78%); padding: 8px; }
.message-type-listing > small { padding-inline: 5px; color: var(--muted); opacity: 1; }
.chat-listing-share-card { display: grid; gap: 7px; }
.chat-listing-share-card > span:first-child { padding-inline: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.chat-listing-share-card > a, .chat-listing-share-card > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
.chat-listing-share-card > a:hover { border-color: #acd5c6; }
.chat-listing-share-image { display: grid; width: 88px; height: 88px; place-items: center; overflow: hidden; background: var(--surface-alt); color: var(--muted); font-size: 26px; }
.chat-listing-share-image img { width: 100%; height: 100%; object-fit: cover; }
.chat-listing-share-copy { display: grid; min-width: 0; align-content: center; gap: 3px; padding: 9px 10px 9px 0; }
.chat-listing-share-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.chat-listing-share-copy b { color: var(--brand-dark); font-size: 15px; }
.chat-listing-share-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-listing-share-copy em { width: max-content; padding: 3px 7px; border-radius: 999px; background: #fff0d0; color: #795800; font-size: 10px; font-style: normal; font-weight: 800; }
.message-unavailable { font-style: italic; }
.typing-indicator { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 14px 14px 14px 3px; background: white; color: var(--muted); font-size: 12px; box-shadow: 0 2px 7px rgba(0,0,0,.04); }
.typing-indicator[hidden] { display: none; }
.typing-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing-dot 1s infinite ease-in-out; }
.typing-indicator i:nth-of-type(2) { animation-delay: .14s; }
.typing-indicator i:nth-of-type(3) { animation-delay: .28s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat-composer { position: relative; display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: white; }
.composer-tools { position: relative; display: flex; gap: 5px; }
.composer-tool { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--brand-dark); cursor: pointer; font-size: 20px; }
.emoji-panel { position: absolute; z-index: 25; bottom: calc(100% + 8px); left: 0; display: grid; grid-template-columns: repeat(3, 38px); gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.emoji-panel[hidden] { display: none; }
.emoji-panel button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 20px; }
.emoji-panel button:hover { background: var(--surface-alt); }
.composer-main { min-width: 0; flex: 1; }
.composer-field { flex: 1; margin: 0; }
.composer-field textarea { width: 100%; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.composer-image-field { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.composer-image-preview { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 7px; border-radius: 10px; background: var(--surface-alt); }
.composer-image-preview[hidden] { display: none; }
.composer-image-preview img { width: 58px; height: 48px; border-radius: 7px; object-fit: cover; }
.composer-image-preview button { margin-left: auto; border: 0; background: transparent; cursor: pointer; color: var(--danger); }
.offer-row { justify-content: space-between; }
.offer-row > div:first-child { min-width: 0; flex: 1; }
.offer-main-copy blockquote { margin: 9px 0 0; padding: 9px 12px; border-left: 3px solid var(--brand); background: var(--surface-alt); color: var(--muted); font-size: 13px; }
.offer-amount { display: grid; text-align: right; }
.offer-amount span, .offer-amount small { color: var(--muted); font-size: 12px; }
.offer-amount strong { color: var(--brand); font-size: 20px; }
.seller-offer-actions { flex-basis: 100%; justify-content: flex-end; }
.counter-offer-form { display: flex; align-items: center; gap: 7px; }
.counter-offer-form input { width: 145px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.offer-waiting { flex-basis: 100%; margin: 0; padding: 10px 13px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.offer-negotiation-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; }
.offer-listing-thumb { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface-alt); color: var(--muted); }
.offer-listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card-state { display: flex; align-items: center; gap: 8px; }
.offer-card-state small { color: var(--muted); font-size: 11px; }
.offer-expiry { display: block; margin-top: 9px; color: #815f12; font-size: 11px; }
.offer-negotiation-card > .offer-actions, .offer-negotiation-card > .offer-waiting, .offer-negotiation-card > .offer-history { grid-column: 2 / -1; }
.counter-offer-form input[type="text"] { width: min(230px, 30vw); min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.offer-history { padding-top: 3px; }
.offer-history summary { cursor: pointer; color: var(--brand); font-size: 12px; font-weight: 800; }
.offer-history ol { display: grid; margin: 14px 0 0; padding: 0; list-style: none; }
.offer-history li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding-bottom: 14px; }
.offer-history li:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 12px; bottom: 0; width: 2px; background: var(--line); }
.offer-history-dot { z-index: 1; width: 12px; height: 12px; margin-top: 4px; border: 3px solid #b8decf; border-radius: 50%; background: var(--brand); }
.offer-history li > div { display: grid; }
.offer-history li strong { font-size: 13px; }
.offer-history li small { color: var(--muted); font-size: 10px; }
.offer-history li span:not(.offer-history-dot) { margin-top: 3px; color: var(--brand-dark); font-weight: 800; }
.offer-history li p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.search-title-actions { display: flex; align-items: center; gap: 10px; }
.save-search-form { margin: 0; }
.filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.filter-chip { display: inline-flex; gap: 7px; align-items: center; padding: 7px 11px; border: 1px solid #bcd0c8; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.filter-chip span { font-size: 17px; line-height: 1; }
.clear-filter-link { padding: 7px; color: var(--brand); font-size: 12px; font-weight: 800; }
.results-toolbar-actions, .view-switcher { display: flex; align-items: center; gap: 8px; }
.view-switcher { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.view-switcher button { width: 34px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.view-switcher button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.results-grid.list-view { grid-template-columns: 1fr; }
.results-grid.list-view .listing-card { display: grid; grid-template-columns: minmax(190px, 270px) 1fr; }
.results-grid.list-view .listing-card-media { height: 100%; min-height: 190px; }
.results-grid.list-view .listing-card-body { align-self: center; padding: 26px; }
.results-grid.list-view .listing-card h3 { font-size: 21px; }

.profile-summary, .public-profile-hero { display: flex; align-items: center; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, #f4fbf7, #fffdf5); }
.profile-avatar { display: grid; flex: 0 0 82px; width: 82px; height: 82px; overflow: hidden; place-items: center; border-radius: 50%; background: var(--brand); color: white; font: 800 30px 'Manrope'; }
.profile-avatar.large { flex-basis: 112px; width: 112px; height: 112px; font-size: 40px; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-summary h1, .public-profile-hero h1 { margin-bottom: 5px; }
.profile-summary p, .public-profile-hero p { margin: 0; color: var(--muted); }
.profile-summary-actions { display: flex; margin-left: auto; gap: 9px; }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.dashboard-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 125px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s ease; }
.dashboard-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dashboard-card-icon, .notification-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 23px; }
.dashboard-card h2 { margin: 0 0 4px; font-size: 17px; }
.dashboard-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.dashboard-card > strong { color: var(--brand); font-size: 24px; }
.settings-links { max-width: 850px; margin-top: 40px; }
.settings-links > div { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.settings-links a { display: grid; grid-template-columns: 1fr auto; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.settings-links a:last-child { border-bottom: 0; }
.settings-links strong, .settings-links span { display: block; }
.settings-links span { color: var(--muted); font-size: 13px; }
.settings-links b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--brand); font-size: 25px; }

.settings-page { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 45px; padding-top: 55px; padding-bottom: 90px; align-items: start; }
.settings-nav { position: sticky; top: 100px; display: grid; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.settings-nav h2 { padding: 0 10px; font-size: 16px; }
.settings-nav a { padding: 11px 10px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 14px; }
.settings-nav a.active { background: var(--brand-soft); color: var(--brand); }
.settings-nav a.danger-link { color: var(--danger); }
.settings-nav a.danger-link.active { background: #fff0ef; }
.settings-content { min-width: 0; }
.settings-form { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.settings-form .control-label { margin-bottom: 7px; font-weight: 700; }
.settings-form .form-control, .settings-form .form-select { min-height: 49px; border: 1px solid #cfd9d5; border-radius: 10px; }
.settings-form .form-group { margin-bottom: 18px; }
.avatar-editor { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.avatar-editor .form-group { flex: 1; margin: 0; }
.preference-card { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.preference-card:last-of-type { border-bottom: 0; }
.preference-card h2 { margin-bottom: 4px; font-size: 17px; }
.preference-card p { margin: 0; color: var(--muted); font-size: 14px; }
.preference-card .form-group { margin: 0; }
.danger-zone { margin-top: 25px; padding: 23px; border: 1px solid #f0c8c5; border-radius: var(--radius); background: #fff8f7; }
.danger-zone h2 { font-size: 18px; }
.danger-zone p { margin: 0; color: var(--muted); }
.blocked-users-section { margin-top: 25px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.blocked-users-section > div:first-child h2 { margin-bottom: 4px; font-size: 19px; }
.blocked-users-section > div:first-child p { margin: 0 0 18px; color: var(--muted); }
.blocked-user-list { display: grid; gap: 9px; }
.blocked-user-list article { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.blocked-user-list article > div { min-width: 0; flex: 1; }
.blocked-user-list strong, .blocked-user-list small { display: block; }
.blocked-user-list small { color: var(--muted); }
.blocked-user-list form { margin: 0; }
.compact-empty-state { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 11px; background: var(--surface-alt); color: var(--muted); }
.compact-empty-state p { margin: 0!important; }
.danger-eyebrow { color: var(--danger); }
.deletion-impact { margin-bottom: 18px; padding: 23px; border: 1px solid #efc0bc; border-radius: var(--radius); background: #fff7f6; }
.deletion-impact h2 { font-size: 19px; }
.deletion-impact li { margin: 8px 0; color: #71423e; }
.destructive-form { border-color: #efc0bc; }
.btn-danger-solid { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 12px; background: var(--danger); color: white; font-weight: 800; cursor: pointer; }
.btn-danger-solid:hover { background: #9f2929; }
.verification-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 25px; }
.verification-grid article { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.verification-grid article > span { display: grid; grid-row: 1 / 3; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.verification-grid h2, .verification-grid p { margin: 0; font-size: 15px; }
.verification-grid p { color: var(--muted); font-size: 12px; }
.verification-grid strong { grid-column: 2; color: var(--brand); font-size: 12px; }
.security-section { margin-top: 18px; scroll-margin-top: 100px; }
.security-section-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 13px; margin-bottom: 20px; }
.security-section-heading h2 { margin: 0 0 4px; font-size: 20px; }
.security-section-heading p, .security-explainer { margin: 0; color: var(--muted); font-size: 14px; }
.phone-verification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.phone-verification-grid > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.phone-verification-grid h3 { margin: 0 0 6px; font-size: 16px; }
.phone-verification-grid p { min-height: 42px; margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.phone-verification-grid form { margin: 0; }
.phone-verification-grid .mb-3 { margin-bottom: 10px !important; }
.phone-verification-grid input { text-align: center; letter-spacing: .35em; font: 800 19px 'Manrope'; }
.verification-action-note { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border-radius: 11px; background: var(--surface-alt); }
.verification-action-note p { margin: 0; color: var(--muted); }
.verification-success { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid #b8dfcf; border-radius: 12px; background: #f3fbf7; }
.verification-success > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-weight: 900; }
.verification-success p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.security-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 21px; font-weight: 800; }
.security-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.security-action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.security-action-row form { margin: 0; }
.two-factor-setup { padding: 20px; border: 1px solid #b9d9cc; border-radius: 13px; background: #f5fbf8; }
.two-factor-setup form { margin-top: 14px; }
.two-factor-setup .cancel-two-factor-form { display: inline-block; margin-top: 9px; }
.two-factor-setup ol { margin: 0 0 18px; padding-left: 22px; }
.two-factor-setup li { margin: 8px 0; }
.setup-secret, .provisioning-uri { overflow-wrap: anywhere; color: var(--brand-dark); }
.provisioning-uri { display: block; margin: 10px 0 18px; padding: 10px; border-radius: 8px; background: white; font-size: 11px; }
.recovery-code-panel { margin-bottom: 20px; padding: 20px; border: 1px solid #efc66b; border-radius: 13px; background: #fffaf0; }
.recovery-code-panel h3 { margin-bottom: 4px; font-size: 18px; }
.recovery-code-panel p { margin-top: 0; color: var(--muted); }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 15px 0; }
.recovery-code-grid code { padding: 9px; border: 1px dashed #d8b45f; border-radius: 7px; background: white; text-align: center; letter-spacing: 1px; }
.security-disclosure { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.security-disclosure summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.security-disclosure > p { color: var(--muted); font-size: 14px; }
.session-count { display: grid; min-width: 32px; height: 32px; place-items: center; border-radius: 999px; background: var(--surface-alt); color: var(--muted); font-weight: 800; }
.session-list { display: grid; }
.session-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); }
.session-item.current { margin-inline: -10px; padding-inline: 10px; border-radius: 10px; background: #f7fcf9; }
.session-device-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: var(--surface-alt); color: var(--brand); }
.session-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-title span { padding: 3px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.session-item p, .session-item small { display: block; margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.session-item form { margin: 0; }
.btn-text-danger { padding: 7px; border: 0; background: transparent; color: var(--danger); font-weight: 800; cursor: pointer; }
.logout-all-panel { border-color: #f0c8c5; background: #fffafa; }

.public-profile-page, .analytics-page { padding-top: 35px; padding-bottom: 90px; }
.public-profile-copy { min-width: 0; flex: 1; }
.seller-bio { max-width: 650px; margin-top: 12px!important; color: var(--ink)!important; }
.public-profile-stats { display: grid; grid-template-columns: auto auto; gap: 1px 12px; min-width: 150px; }
.public-profile-stats strong { color: var(--brand); font-size: 23px; }
.public-profile-stats span { color: var(--muted); font-size: 12px; }
.profile-actions { display: flex; flex-direction: column; gap: 7px; }
.profile-actions form { margin: 0; }
.profile-actions > *, .profile-actions form button { width: 100%; text-align: center; }
.profile-action-disabled { max-width: 180px; padding: 9px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-chat-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow-y: auto; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(10,25,20,.3); color: var(--ink); }
.profile-chat-dialog::backdrop { background: rgba(11,24,20,.62); backdrop-filter: blur(3px); }
.profile-chat-dialog > div { padding: 28px; }
.profile-chat-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.profile-chat-dialog h2 { margin: 4px 0 0; font-size: 27px; }
.profile-chat-dialog header button { display: grid; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 24px; cursor: pointer; }
.profile-chat-dialog > div > p { margin: 10px 0 18px; color: var(--muted); }
.profile-chat-list { display: grid; gap: 8px; }
.profile-chat-list > a { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.profile-chat-list > a:hover { border-color: var(--brand); background: var(--brand-soft); }
.profile-chat-list > a > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.profile-chat-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-chat-list small, .profile-chat-note { color: var(--muted); }
.profile-chat-list b { color: var(--brand); font-size: 26px; }
.profile-chat-thumb { display: grid; width: 62px; height: 52px; overflow: hidden; place-items: center; border-radius: 9px; background: var(--surface-alt); color: var(--brand); }
.profile-chat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-chat-note { display: block; margin-top: 14px; font-size: 12px; }
.profile-tabs { display: flex; gap: 24px; margin: 30px 0; border-bottom: 1px solid var(--line); }
.profile-tabs a { padding: 12px 3px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 700; }
.profile-tabs a.active { border-color: var(--brand); color: var(--brand); }
.profile-section { padding: 25px 0 55px; scroll-margin-top: 100px; }
.review-list { display: grid; gap: 12px; max-width: 850px; }
.review-card { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.review-card h3 { margin: 0; font-size: 16px; }
.review-card p { margin: 4px 0; }
.review-card small { color: var(--muted); }
.review-stars { color: #e69d00; letter-spacing: 2px; }
.seller-rating-summary { display: grid; grid-template-columns: 190px minmax(260px, 430px); gap: 34px; align-items: center; max-width: 700px; margin-bottom: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.seller-rating-summary > div { display: grid; justify-items: start; }
.seller-rating-summary > div > strong { color: var(--brand-dark); font: 800 45px 'Manrope'; }
.seller-rating-summary > div small { margin-top: 5px; color: var(--muted); }
.seller-rating-summary dl { display: grid; gap: 6px; margin: 0; }
.seller-rating-summary dl div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; }
.seller-rating-summary dt { font-size: 12px; font-weight: 800; }
.seller-rating-summary dd { display: grid; grid-template-columns: 1fr 38px; gap: 9px; align-items: center; margin: 0; }
.seller-rating-summary dd > span { overflow: hidden; height: 8px; border-radius: 999px; background: var(--surface-alt); }
.seller-rating-summary dd i { display: block; height: 100%; border-radius: inherit; background: #e69d00; }
.seller-rating-summary dd strong { color: var(--muted); font-size: 11px; text-align: right; }
.profile-about-card { max-width: 850px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.profile-about-card > p { margin-top: 0; color: var(--muted); }
.profile-about-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.profile-about-card dl div { padding: 12px; border-radius: 10px; background: var(--surface-alt); }
.profile-about-card dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-about-card dd { margin: 4px 0 0; font-weight: 800; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-options label { padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.reviews-overview { display: grid; min-width: 140px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.reviews-overview strong { color: var(--brand); font-size: 25px; }
.reviews-overview span { color: var(--muted); font-size: 12px; }
.account-review-list { display: grid; gap: 12px; max-width: 900px; }
.account-review-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.account-review-avatar { overflow: hidden; }
.account-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-review-main header { display: flex; justify-content: space-between; gap: 15px; }
.account-review-main h2 { margin: 0; font-size: 16px; }
.account-review-main header p { margin: 4px 0 0; }
.account-review-main time { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.account-review-main > p { margin: 12px 0; line-height: 1.55; }
.account-review-main footer { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.account-review-main footer span { padding: 3px 7px; border-radius: 999px; background: var(--surface-alt); }

.notification-list { display: grid; gap: 10px; }
.notification-item { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.notification-item.unread { border-left: 4px solid var(--brand); background: #f7fcf9; }
.notification-item > div { flex: 1; }
.notification-item h2 { margin: 0 0 3px; font-size: 16px; }
.notification-item p { margin: 0; color: var(--muted); font-size: 14px; }
.notification-item small { color: var(--muted); }
.saved-search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.saved-search-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); }
.saved-search-card h2 { margin: 15px 0; font-size: 20px; }
.saved-search-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.saved-search-card dl div { padding: 8px; background: var(--surface-alt); border-radius: 7px; }
.saved-search-card dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.saved-search-card dd { margin: 2px 0 0; font-weight: 700; font-size: 13px; }
.saved-search-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.saved-search-actions form { margin: 0; }

.analytics-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.analytics-metrics article { display: flex; gap: 13px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.analytics-metrics article > span { color: var(--brand); font-size: 25px; }
.analytics-metrics small, .analytics-metrics strong { display: block; }
.analytics-metrics small { color: var(--muted); }
.analytics-metrics strong { font-size: 27px; }
.analytics-chart-card { margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.analytics-chart-card h2 { margin-bottom: 3px; font-size: 20px; }
.analytics-chart-card p { margin: 0; color: var(--muted); }
.bar-chart { display: flex; align-items: end; gap: 8px; min-height: 210px; margin-top: 25px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.bar-column { display: flex; flex: 1; min-width: 22px; flex-direction: column; align-items: center; justify-content: end; gap: 5px; }
.bar { width: min(100%, 35px); min-height: 4px; border-radius: 5px 5px 0 0; background: linear-gradient(var(--brand), #3eac87); }
.bar-value { color: var(--muted); font-size: 10px; }
.bar-column small { color: var(--muted); font-size: 10px; }
.analytics-help { margin-top: 22px; padding: 26px; border-radius: var(--radius); background: var(--surface-alt); }
.analytics-help > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.analytics-help article { padding: 18px; background: white; border-radius: 12px; }
.analytics-help p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.auth-page { display: grid; min-height: calc(100vh - 76px); padding: 45px 16px 90px; place-items: center; background: linear-gradient(145deg, #edf8f3, #fff9e8); }
.auth-shell { display: grid; grid-template-columns: .85fr 1.15fr; width: min(100%, 980px); overflow: hidden; border: 1px solid rgba(8,127,91,.15); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auth-shell.auth-register { width: min(100%, 1080px); }
.auth-brand { display: flex; min-height: 600px; flex-direction: column; justify-content: space-between; padding: 45px; background: linear-gradient(155deg, #087f5b, #064b38); color: white; }
.auth-brand .brand { color: white; }
.auth-brand .brand-mark { background: white; color: var(--brand); }
.auth-brand h1 { margin-bottom: 18px; font-size: 39px; letter-spacing: -.04em; }
.auth-brand p, .auth-brand small { color: #d4ebe3; }
.auth-form { align-self: center; padding: 48px 55px; }
.auth-form > div:first-child { margin-bottom: 26px; }
.auth-form h1 { margin-bottom: 7px; font-size: 38px; }
.auth-form > div:first-child p { margin: 0; color: var(--muted); }
.auth-form > div:first-child a, .auth-options a { color: var(--brand); font-weight: 700; }
.auth-form .control-label { margin-bottom: 7px; font-weight: 700; }
.auth-form .form-control, .auth-form .form-select { min-height: 51px; border: 1px solid #cad6d1; border-radius: 11px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-options { display: flex; justify-content: space-between; align-items: start; gap: 15px; font-size: 14px; }
.auth-submit { width: 100%; }
.auth-safe { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.market-footer { padding-top: 58px; padding-bottom: 88px; background: #12201c; color: #dce6e2; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 50px; }
.footer-brand { color: white; }
.footer-grid p { color: #98aaa4; font-size: 14px; }
.footer-grid h2 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid > div > a { display: block; margin: 9px 0; color: #b8c8c3; font-size: 14px; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid #2b3935; color: #7f948d; font-size: 13px; }

/* Legal policies and marketplace safety guidance. */
.legal-page { padding-top: 34px; padding-bottom: 90px; }
.legal-nav { display: flex; gap: 7px; width: fit-content; margin-bottom: 22px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.legal-nav a { padding: 9px 14px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.legal-nav a.active { background: var(--brand); color: white; }
.legal-hero { padding: 42px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-dark), #165b48); color: white; }
.legal-hero h1 { max-width: 850px; margin: 6px 0 10px; font-size: clamp(37px, 6vw, 58px); }
.legal-hero > p { max-width: 780px; margin: 0; color: #d7e9e3; font-size: 17px; }
.legal-hero > div { display: flex; gap: 18px; margin-top: 22px; color: #abc9bf; font-size: 12px; font-weight: 700; }
.legal-highlight { margin: 20px 0 30px; padding: 22px 24px; border: 1px solid #b9dfcf; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); }
.legal-highlight.danger { border-color: #efcb80; background: #fff8df; color: #5c4612; }
.legal-highlight strong { display: block; margin-bottom: 5px; font-size: 17px; }
.legal-highlight p { margin: 0; line-height: 1.6; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 45px; align-items: start; }
.legal-toc { position: sticky; top: 92px; display: grid; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.legal-toc strong { margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.legal-toc a { padding: 7px 8px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.legal-toc a:hover { background: var(--brand-soft); color: var(--brand); }
.legal-document { min-width: 0; }
.legal-document section { padding: 7px 0 30px; scroll-margin-top: 100px; border-bottom: 1px solid var(--line); }
.legal-document section + section { padding-top: 30px; }
.legal-document h2 { margin: 0 0 13px; font-size: 25px; }
.legal-document p, .legal-document li { color: #43534e; line-height: 1.72; }
.legal-document ul { display: grid; gap: 6px; padding-left: 22px; }
.legal-document a { text-decoration: underline; text-underline-offset: 2px; }
.legal-contact-card { display: grid; gap: 4px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); color: #43534e; font-size: 13px; }
.legal-contact-card strong { color: var(--ink); font-size: 15px; }
.otp-warning { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: center; margin: 22px 0 30px; padding: 23px; border: 2px solid #e9b74f; border-radius: 15px; background: #fff8df; color: #59420e; }
.otp-warning > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #e9b74f; color: #332400; font-size: 28px; font-weight: 900; }
.otp-warning strong { font-size: 18px; }
.otp-warning p { margin: 5px 0 0; line-height: 1.55; }
.safety-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.safety-rule-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.safety-rule-grid article > span { color: var(--brand); font-size: 12px; font-weight: 900; }
.safety-rule-grid h2 { margin: 12px 0 7px; font-size: 19px; }
.safety-rule-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.scam-signs, .property-safety, .incident-steps { margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; }
.scam-signs { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 36px; }
.scam-signs h2, .property-safety h2, .incident-steps h2 { margin: 5px 0 0; font-size: 28px; }
.scam-signs ul, .incident-steps ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: #43534e; line-height: 1.5; }
.property-safety { border-color: #bddbcc; background: #f5fbf8; }
.property-safety > div { display: flex; align-items: center; gap: 15px; }
.property-safety > div > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; background: white; color: var(--brand); font-size: 25px; }
.property-safety > p { margin: 17px 0 0; color: #43534e; line-height: 1.65; }
.incident-steps ol { margin: 20px 0 24px; }
.legal-disclaimer { margin: 28px auto 0; max-width: 900px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.6; }

@media (max-width: 1180px) {
    .header-actions { gap: 12px; }
    .header-action span { display: none; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .listing-grid { grid-template-columns: repeat(3, 1fr); }
    .results-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 30px; }
}

@media (max-width: 900px) {
    .desktop-header { display: none; }
    .mobile-topbar { min-height: 62px; display: flex; justify-content: space-between; align-items: center; }
    .header-icon-links { display: flex; gap: 8px; }
    .icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); font-size: 22px; }
    .mobile-bottom-nav { position: fixed; z-index: 120; display: grid; grid-template-columns: repeat(5, 1fr); left: 0; right: 0; bottom: 0; height: 68px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 30px rgba(15,40,32,.08); }
    .mobile-bottom-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; color: #53635e; font-size: 22px; }
    .mobile-bottom-nav small { font-size: 10px; font-weight: 700; }
    .mobile-sell-link { transform: translateY(-13px); }
    .mobile-sell { display: grid; place-items: center; width: 48px; height: 48px; border: 4px solid white; border-radius: 50%; background: var(--brand); color: white; box-shadow: 0 5px 15px rgba(8,127,91,.3); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-section { padding: 60px 0; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-layout { grid-template-columns: 1fr; }
    .filter-toggle { display: inline-flex; }
    .filter-panel { display: none; position: static; }
    .filter-panel.open { display: block; }
    .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .price-card { order: -1; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .market-footer { padding-bottom: 100px; }
    .legal-layout { grid-template-columns: 1fr; gap: 20px; }
    .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-toc strong { grid-column: 1 / -1; }
    .safety-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-page { min-height: auto; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .dashboard-card-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-page { grid-template-columns: 1fr; gap: 22px; }
    .settings-nav { position: static; display: flex; overflow-x: auto; }
    .settings-nav h2 { display: none; }
    .public-profile-hero { align-items: start; flex-wrap: wrap; }
    .profile-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .analytics-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .container-shell { width: min(calc(100% - 24px), var(--container)); }
    .hero-copy h1 { font-size: 39px; }
    .hero-copy > p { font-size: 16px; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-location-picker { grid-auto-flow: row; grid-auto-columns: auto; }
    .search-field { padding: 8px 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
    .market-section { padding-top: 58px; padding-bottom: 58px; }
    .section-heading { align-items: start; }
    .section-heading .text-link { display: none; }
    .category-grid { display: flex; margin-right: -12px; padding-right: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .category-card { flex: 0 0 138px; min-height: 145px; scroll-snap-align: start; }
    .listing-grid, .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .listing-card-body { padding: 12px; }
    .listing-price { font-size: 16px; }
    .listing-card h3 { margin: 7px 0 12px; font-size: 14px; }
    .listing-meta { display: grid; font-size: 10px; }
    .safety-section, .sell-cta { align-items: start; flex-direction: column; margin-block: 38px; padding: 28px; }
    .safety-section h2, .sell-cta h2 { font-size: 26px; }
    .search-title-row, .account-heading { align-items: start; flex-direction: column; }
    .search-title-row h1, .account-heading h1, .form-intro h1 { font-size: 35px; }
    .results-toolbar { align-items: start; flex-direction: column; gap: 10px; }
    .results-toolbar .sort-form, .results-toolbar select { width: 100%; }
    .results-toolbar-actions { width: 100%; justify-content: space-between; }
    .results-toolbar-actions .sort-form { width: auto; flex: 1; }
    .results-grid.list-view .listing-card { grid-template-columns: 120px 1fr; }
    .results-grid.list-view .listing-card-media { min-height: 145px; }
    .results-grid.list-view .listing-card-body { padding: 14px; }
    .results-grid.list-view .listing-card h3 { font-size: 15px; }
    .detail-card, .price-card, .seller-card { padding: 20px; }
    .spec-list { grid-template-columns: 1fr; }
    .mobile-contact-bar { position: fixed; z-index: 115; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; left: 0; right: 0; bottom: 68px; min-height: 58px; padding: 8px 12px; gap: 7px; background: white; border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(15,40,32,.07); }
    .mobile-contact-bar a, .mobile-contact-bar button { display: grid; min-width: 0; padding: 0 8px; place-items: center; border: 0; border-radius: 10px; background: var(--brand); color: white; font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer; }
    .listing-detail-page { padding-bottom: 155px; }
    .gallery-dialog[open] { grid-template-columns: 48px 1fr 48px; }
    .gallery-dialog-close, .gallery-dialog-nav { width: 40px; height: 40px; font-size: 27px; }
    .form-page, .account-page, .narrow-page { padding-top: 35px; }
    .form-card { padding: 20px; }
    .listing-form .form-grid, .filter-row { grid-template-columns: 1fr; }
    .step-indicator { margin-inline: -12px; padding-inline: 12px; }
    .step-indicator button { padding-inline: 9px; }
    .contact-option-grid, .review-summary { grid-template-columns: 1fr; }
    .subcategory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
    .review-summary div:last-child { border-bottom: 0; }
    .listing-preview-card { grid-template-columns: 1fr; }
    .listing-preview-media, .listing-preview-media img { min-height: 210px; }
    .upload-preview, .existing-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing-upload-progress { grid-template-columns: 1fr; gap: 9px; }
    .wizard-navigation { position: sticky; z-index: 40; bottom: 67px; margin-inline: -12px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
    .form-submit-bar { flex-direction: column-reverse; }
    .form-submit-bar > * { width: 100%; }
    .my-listing-row { align-items: start; flex-wrap: wrap; }
    .my-listing-image { flex-basis: 95px; width: 95px; height: 75px; }
    .my-listing-actions { width: 100%; }
    .conversation-row, .offer-row { gap: 12px; }
    .conversation-listing-image { flex-basis: 58px; width: 58px; height: 52px; }
    .conversation-row > .seller-avatar { display: none; }
    .conversation-meta time { display: none; }
    .offer-row { align-items: start; flex-direction: column; }
    .offer-negotiation-card { grid-template-columns: 62px minmax(0, 1fr); }
    .offer-listing-thumb { width: 62px; height: 62px; }
    .offer-negotiation-card > .offer-amount, .offer-negotiation-card > .offer-actions, .offer-negotiation-card > .offer-waiting, .offer-negotiation-card > .offer-history { grid-column: 1 / -1; }
    .counter-offer-form { width: 100%; align-items: stretch; flex-direction: column; }
    .counter-offer-form input, .counter-offer-form input[type="text"] { width: 100%; }
    .offer-amount { text-align: left; }
    .message-bubble { max-width: 86%; }
    .chat-page { padding-inline: 0; padding-top: 12px; }
    .chat-header { border-inline: 0; border-radius: 0; }
    .chat-listing-thumb { width: 46px; height: 46px; flex-basis: 46px; }
    .chat-header > .seller-avatar { display: none; }
    .chat-page .safety-warning { margin-inline: 12px; }
    .chat-connection-state { margin-inline: 12px; grid-template-columns: 36px minmax(0, 1fr); }
    .chat-connection-state .btn-ghost { grid-column: 2; justify-self: start; }
    .chat-messages { max-height: 62vh; padding: 18px 12px; }
    .chat-composer { position: sticky; bottom: 67px; z-index: 35; align-items: end; padding: 10px; border-inline: 0; border-radius: 0; }
    .composer-tools { gap: 3px; }
    .composer-tool { width: 36px; height: 36px; }
    .chat-composer > .btn-primary { min-height: 42px; padding-inline: 13px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .legal-page { padding-top: 20px; }
    .legal-nav { width: 100%; overflow-x: auto; }
    .legal-nav a { flex: 0 0 auto; }
    .legal-hero { padding: 28px 22px; }
    .legal-hero h1 { font-size: 37px; }
    .legal-hero > div { flex-direction: column; gap: 3px; }
    .legal-highlight { padding: 18px; }
    .legal-toc { grid-template-columns: 1fr; }
    .legal-toc strong { grid-column: auto; }
    .safety-rule-grid { grid-template-columns: 1fr; }
    .otp-warning { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
    .otp-warning > span { width: 46px; height: 46px; }
    .scam-signs { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
    .property-safety, .incident-steps { padding: 22px; }
    .auth-page { padding: 22px 12px 90px; }
    .auth-shell { border-radius: 18px; }
    .auth-form { padding: 30px 20px; }
    .auth-form .form-grid { grid-template-columns: 1fr; }
    .profile-summary { align-items: start; flex-wrap: wrap; padding: 22px; }
    .profile-summary-actions { width: 100%; margin-left: 0; }
    .dashboard-card-grid, .saved-search-grid { grid-template-columns: 1fr; }
    .dashboard-card { min-height: 105px; }
    .settings-nav { margin-inline: -12px; padding: 10px 12px; border-left: 0; border-right: 0; border-radius: 0; }
    .settings-form { padding: 20px; }
    .avatar-editor, .preference-card { align-items: start; flex-direction: column; }
    .verification-grid, .phone-verification-grid { grid-template-columns: 1fr; }
    .security-field-grid { grid-template-columns: 1fr; gap: 0; }
    .security-section-heading { grid-template-columns: 42px minmax(0, 1fr); }
    .security-section-heading > :last-child { grid-column: 2; }
    .session-item { grid-template-columns: 38px minmax(0, 1fr); }
    .session-item form { grid-column: 2; }
    .recovery-code-grid { grid-template-columns: 1fr; }
    .public-profile-hero { padding: 22px; }
    .public-profile-stats { width: 100%; grid-template-columns: auto 1fr auto 1fr; }
    .rating-options { grid-template-columns: 1fr; }
    .notification-item { align-items: start; }
    .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
    .analytics-help > div { grid-template-columns: 1fr; }
    .bar-chart { gap: 3px; }
}

@media (max-width: 374px) {
    .listing-grid, .results-grid { grid-template-columns: 1fr; }
    .subcategory-grid { grid-template-columns: 1fr; }
    .auth-required-dialog form { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 22px 18px; }
    .auth-required-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
    .auth-required-dialog h2 { font-size: 21px; }
    .auth-required-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }
}
.marketplace-notice { border-bottom: 1px solid #f0cf78; background: #fff7d9; color: #624b08; }
.marketplace-notice .container-shell { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.marketplace-notice strong { flex: 0 0 auto; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.marketplace-notice span { font-size: 14px; }
@media(max-width: 600px) { .marketplace-notice .container-shell { align-items: flex-start; flex-direction: column; gap: 2px; } }
@media(max-width: 640px) { .seller-rating-summary { grid-template-columns: 1fr; gap: 20px; padding: 18px; } .profile-about-card dl { grid-template-columns: 1fr; } }

/* Route-aware page skeletons keep navigation responsive on slower connections. */
.page-loading[hidden] { display: none!important; }
.page-loading { position: fixed; z-index: 95; inset: 77px 0 0; overflow: auto; padding: 34px 0 110px; background: rgba(255,255,255,.985); }
.page-loading-visual { min-height: 70vh; }
.loading-template { display: none; }
.page-loading[data-loading-kind="listings"] .loading-listings,
.page-loading[data-loading-kind="detail"] .loading-detail,
.page-loading[data-loading-kind="profile"] .loading-profile,
.page-loading[data-loading-kind="messages"] .loading-messages,
.page-loading[data-loading-kind="notifications"] .loading-notifications { display: block; }
.skeleton-block { position: relative; display: block; overflow: hidden; border-radius: 9px; background: #e8eeeb; }
.skeleton-block::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 18%, rgba(255,255,255,.78) 48%, transparent 78%); transform: translateX(-100%); animation: skeleton-shimmer 1.35s ease-in-out infinite; }
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
.loading-heading { display: grid; gap: 12px; margin-bottom: 28px; }
.skeleton-kicker { width: 105px; height: 12px; }
.skeleton-title { width: min(420px, 72%); height: 34px; }
.skeleton-copy { width: min(560px, 88%); height: 14px; }
.skeleton-copy.short { width: min(280px, 60%); }
.loading-results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; }
.loading-filter-card, .loading-detail-card, .loading-conversations, .loading-chat, .loading-notification-list { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loading-filter-card { display: grid; align-content: start; gap: 22px; }
.skeleton-filter { height: 43px; }
.loading-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.loading-listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loading-listing-card > div { display: grid; gap: 12px; padding: 16px; }
.skeleton-photo { aspect-ratio: 4 / 3; border-radius: 0; }
.skeleton-card-title { width: 92%; height: 18px; }
.skeleton-price { width: 45%; height: 23px; }
.skeleton-meta { width: 70%; height: 11px; }
.skeleton-breadcrumb { width: 270px; height: 13px; margin-bottom: 24px; }
.loading-detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 34px; }
.skeleton-gallery { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.loading-thumbnails { display: grid; grid-template-columns: repeat(4, 92px); gap: 10px; margin-top: 12px; }
.loading-thumbnails .skeleton-block { aspect-ratio: 1; }
.loading-detail-copy { display: grid; gap: 14px; margin-top: 30px; }
.loading-detail-card { display: grid; align-content: start; gap: 18px; min-height: 510px; }
.skeleton-price-wide { width: 55%; height: 38px; }
.skeleton-detail-title { width: 78%; height: 20px; }
.skeleton-action { height: 50px; }
.skeleton-seller { height: 88px; margin-top: 8px; }
.loading-profile-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.loading-profile-hero > div { display: grid; gap: 13px; }
.skeleton-avatar { width: 112px; height: 112px; border-radius: 50%; }
.loading-tabs { display: flex; gap: 12px; margin: 24px 0; }
.loading-tabs .skeleton-block { width: 105px; height: 38px; }
.loading-messages-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 22px; }
.loading-conversations { display: grid; gap: 2px; padding: 8px; }
.loading-conversations > div, .loading-notification-list > div { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line); }
.loading-conversations > div:last-child, .loading-notification-list > div:last-child { border-bottom: 0; }
.loading-conversations span:last-child, .loading-notification-list span:nth-child(2) { display: grid; gap: 9px; }
.skeleton-avatar-small { width: 46px; height: 46px; border-radius: 50%; }
.skeleton-message-name, .skeleton-message-copy, .skeleton-time { display: block; height: 12px; }
.skeleton-message-name { width: 62%; }
.skeleton-message-copy { width: 88%; height: 10px; }
.loading-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 560px; padding: 0; }
.loading-chat-header { display: flex; align-items: center; gap: 13px; padding: 15px; border-bottom: 1px solid var(--line); }
.loading-bubbles { display: flex; flex-direction: column; gap: 18px; padding: 35px 24px; }
.loading-bubbles .skeleton-block { width: 48%; height: 54px; border-radius: 16px; }
.loading-bubbles .bubble-right { align-self: flex-end; width: 42%; }
.loading-bubbles .short { width: 30%; }
.skeleton-composer { height: 56px; margin: 14px; }
.loading-notification-list { padding: 8px; }
.loading-notification-list > div { grid-template-columns: 46px minmax(0, 1fr) 70px; min-height: 78px; }
.skeleton-notification-icon { width: 42px; height: 42px; border-radius: 12px; }
.skeleton-time { width: 70px; }
.page-is-loading { cursor: progress; }
.page-is-loading .market-header, .page-is-loading .mobile-topbar { pointer-events: none; }

@media (max-width: 900px) {
    .page-loading { inset-block-start: 67px; }
    .loading-results-layout { grid-template-columns: 1fr; }
    .loading-filter-card { display: none; }
    .loading-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .loading-detail-layout { grid-template-columns: 1fr; }
    .loading-detail-card { min-height: 360px; }
    .loading-messages-layout { grid-template-columns: 1fr; }
    .loading-chat { display: none; }
}
@media (max-width: 520px) {
    .page-loading { inset-block-start: 58px; padding-top: 22px; }
    .loading-card-grid { gap: 12px; }
    .loading-listing-card > div { padding: 12px; }
    .loading-profile-hero { grid-template-columns: 72px minmax(0, 1fr); padding: 19px; }
    .skeleton-avatar { width: 72px; height: 72px; }
    .loading-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .loading-notification-list > div { grid-template-columns: 42px minmax(0, 1fr); }
    .loading-notification-list .skeleton-time { display: none; }
}
