/* SherikTop Web v3 — single customer-facing stylesheet.
   Performance budget: one cascade, no backdrop filters, no !important. */

:root {
  color-scheme: light;
  --brand-900: #32164f;
  --brand-800: #47206f;
  --brand-700: #55278a;
  --brand-600: #6432a8;
  --brand-500: #7849b8;
  --brand-200: #d8c6e8;
  --brand-100: #e8dcf2;
  --brand-50: #f2ecf8;
  --ink: #1c1b20;
  --ink-soft: #403d45;
  --muted: #625e68;
  --muted-soft: #7a7680;
  --bg: #f8f7fa;
  --surface: #fff;
  --surface-soft: #f3f2f5;
  --line: #e5e2e8;
  --line-strong: #d5d0d9;
  --success: #137a5b;
  --success-soft: #e7f5ef;
  --danger: #b9384a;
  --danger-soft: #fdecef;
  --shadow-sm: 0 4px 14px rgba(28,27,32,.06);
  --shadow-md: 0 12px 30px rgba(28,27,32,.10);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 22px;
  --tg-top-inset: 0px;
  --tg-bottom-inset: 0px;
  --tg-left-inset: 0px;
  --tg-right-inset: 0px;
  --bottom-nav-height: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-width: 320px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none; }
[hidden][hidden] { display: none; }
::selection { background: var(--brand-100); color: var(--brand-900); }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid rgba(100,50,168,.22); outline-offset: 2px; }
.sr-only,.detail-sr-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

.app-shell { width: min(100%,560px); min-height: 100dvh; margin: 0 auto; background: var(--bg); }
.content { padding: 14px 14px calc(26px + env(safe-area-inset-bottom,0px)); }
.with-bottom-nav { padding-bottom: calc(94px + env(safe-area-inset-bottom,0px)); }

/* Header */
.app-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: max(10px,env(safe-area-inset-top,0px)) 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-header h1 { margin: 0; overflow: hidden; font-size: 16px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.app-header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.app-header > div { min-width: 0; text-align: center; }
.header-action,.detail-icon-btn {
  display: grid; width: 42px; height: 42px; place-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--brand-700);
}
.header-action svg,.detail-icon-btn svg { width: 22px; height: 22px; }

/* Home header */
.market-header { grid-template-columns: 76px minmax(0,1fr) 38px; min-height: 64px; gap: 8px; padding-inline: 14px; }
.market-brand { display: flex; min-width: 0; align-items: center; justify-content: flex-start; text-align: left; }
.brand-logo { display: inline-flex; width: 72px; height: 38px; align-items: center; justify-content: flex-start; }
.market-logo-mark { width: 72px; height: 34px; object-fit: contain; object-position: left center; }
.market-location { display: grid; grid-template-columns: 17px minmax(0,1fr) 13px; min-width: 0; min-height: 42px; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--ink-soft); text-align: left; }
.market-location > svg:first-child { width: 17px; height: 17px; color: var(--brand-600); }
.market-location .market-chevron { width: 14px; height: 14px; color: var(--muted); }
.market-location-copy { display: block; min-width: 0; overflow: hidden; }
.market-location-copy small { display: block; margin-bottom: 1px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.market-location-copy strong { display: block; overflow: hidden; font-size: 10.5px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.market-alert { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--brand-600); }
.market-alert svg { width: 18px; height: 18px; }
.market-alert i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--danger); }

/* Search and discovery */
.home-page .content { padding-top: 8px; }
.search-card { margin-bottom: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) 40px 40px; min-height: 46px; align-items: center; gap: 5px; padding: 0 4px 0 12px; border-radius: 13px; background: var(--surface-soft); }
.search-row input { min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 13px; font-weight: 600; }
.search-row input::placeholder { color: var(--muted-soft); opacity: 1; }
.search-submit-inline { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--brand-200); border-radius: 11px; background: var(--surface); color: var(--brand-700); }
.search-submit-inline svg { width: 18px; height: 18px; }
.search-submit-inline.is-loading { background: var(--brand-50); }
#filter-open { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--brand-600); color: #fff; }
#filter-open svg { width: 19px; height: 19px; }
.popular-searches-panel { margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-md); }
.popular-search-title { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.popular-search-row,.chip-scroll,.quick-filters,.related-chip-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.popular-search-row::-webkit-scrollbar,.chip-scroll::-webkit-scrollbar,.quick-filters::-webkit-scrollbar,.related-chip-row::-webkit-scrollbar { display: none; }
.popular-search-chip { flex: 0 0 auto; min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.popular-search-chip small { margin-left: 4px; color: var(--muted); }
.filter-summary { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.chip-scroll { flex: 1; }
.filter-chip { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 9px; font-weight: 700; }
.chip-clear { flex: 0 0 auto; padding: 6px 8px; background: transparent; color: var(--danger); font-size: 9px; font-weight: 750; }
.quick-filters { gap: 5px; margin: 0 0 9px; padding: 0 0 2px; }
.quick-filter { flex: 0 0 auto; min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 9.5px; font-weight: 700; }
.quick-filter.is-active { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); }

.market-stat-card { position: relative; min-height: 112px; margin-bottom: 9px; overflow: hidden; padding: 15px 16px; border-radius: 18px; background: linear-gradient(135deg,var(--brand-800),var(--brand-600)); color: #fff; box-shadow: 0 9px 22px rgba(71,32,111,.16); }
.market-stat-copy { position: relative; z-index: 2; }
.market-stat-copy p { margin: 0 0 2px; color: rgba(255,255,255,.72); font-size: 10px; }
.market-stat-copy h2 { margin: 0; font-size: 18px; font-weight: 800; }
.market-stat-copy button { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-top: 9px; padding: 0 12px; border-radius: 11px; background: rgba(255,255,255,.14); color: #fff; font-size: 10px; font-weight: 750; }
.market-stat-copy button svg { width: 15px; height: 15px; }
.market-stat-art { position: absolute; right: -8px; bottom: -24px; width: 126px; height: 126px; opacity: .09; stroke-width: 8; }
.market-post-card { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 62px; align-items: center; gap: 8px; margin-bottom: 14px; padding: 9px 10px 9px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.market-post-card strong { display: block; font-size: 11px; }
.market-post-card span { color: var(--muted); font-size: 9px; }
.market-post-card a { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; padding: 0 11px; border-radius: 11px; background: var(--brand-600); color: #fff; font-size: 10px; font-weight: 750; }
.market-post-card svg { width: 15px; height: 15px; }
.home-page.search-active .market-stat-card,
.home-page.search-active .market-post-card { display: none; }
.results-heading { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; margin: 0 0 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.results-heading-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--brand-50); color: var(--brand-600); }
.results-heading-icon svg { width: 19px; height: 19px; }
.results-heading-copy { min-width: 0; }
.results-heading strong { display: block; font-size: 15px; font-weight: 850; line-height: 1.15; }
.results-heading div span { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.live-indicator { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 9px; font-weight: 750; white-space: nowrap; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Listing list — compact DOM and paint containment. */
.cards { display: grid; gap: 10px; }
.card { contain: layout paint; content-visibility: auto; contain-intrinsic-size: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card-detail-link { display: block; }
.card-main { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 12px; padding: 10px; }
.image-wrap { position: relative; overflow: hidden; background: var(--surface-soft); }
.compact-image { height: 152px; border-radius: 14px; }
.listing-thumb { width: 100%; height: 100%; object-fit: cover; }
.tag.audience { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); overflow: hidden; padding: 5px 8px; border-radius: 999px; background: rgba(28,27,32,.86); color: #fff; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.photo-count { position: absolute; bottom: 7px; left: 7px; display: inline-flex; min-height: 25px; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; background: rgba(28,27,32,.72); color: #fff; font-size: 9px; font-weight: 750; }
.photo-count svg { width: 13px; height: 13px; }
.card-body { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.card-price-title { margin: 0 0 8px; overflow: hidden; color: var(--ink); font-size: 18px; font-weight: 850; line-height: 1.12; text-overflow: ellipsis; }
.location-row { display: flex; min-width: 0; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.location-row svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--brand-600); }
.location-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.info-chips span { display: inline-flex; max-width: 100%; min-height: 28px; align-items: center; overflow: hidden; padding: 0 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.cta-row { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 7px; padding: 0 10px 10px; }
.save-btn,.card-cta { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.save-btn { border: 1px solid var(--line); background: var(--surface); color: var(--brand-600); }
.save-btn .save-label { display: none; }
.save-btn svg,.card-cta svg { width: 20px; height: 20px; }
.save-btn.is-saved { border-color: var(--brand-200); background: var(--brand-50); }
.card-cta { background: var(--brand-600); color: #fff; }
.cards.is-loading { opacity: .72; }

.skeleton-card { min-height: 230px; padding: 10px; }
.skeleton-card .skeleton-block { height: 150px; border-radius: 14px; background: var(--surface-soft); }
.skeleton-line { height: 10px; margin-top: 10px; border-radius: 999px; background: var(--surface-soft); }
.skeleton-line.wide { width: 74%; }
.skeleton-grid { display: flex; gap: 5px; margin-top: 10px; }
.skeleton-grid span { width: 52px; height: 22px; border-radius: 999px; background: var(--surface-soft); }
.skeleton-actions { display: none; }

.state { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); text-align: center; }
.state h2 { margin: 0 0 5px; color: var(--ink); font-size: 15px; }
.state p { margin: 0 0 10px; font-size: 11px; }
.primary-btn { min-height: 42px; padding: 0 14px; border-radius: 12px; background: var(--brand-600); color: #fff; font-size: 11px; font-weight: 750; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; }
.pagination-page,.pagination-arrow { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.pagination-page.is-current { border-color: var(--brand-600); background: var(--brand-600); color: #fff; }
.load-more { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--brand-700); font-weight: 750; }

/* Filter sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(28,27,32,.34); }
.filter-sheet { position: fixed; z-index: 80; right: max(10px,env(safe-area-inset-right,0px)); bottom: calc(var(--bottom-nav-height) + 18px + var(--tg-bottom-inset)); left: max(10px,env(safe-area-inset-left,0px)); max-width: 520px; max-height: calc(100dvh - 105px - var(--tg-top-inset) - var(--tg-bottom-inset)); margin: 0 auto; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md); }
.sheet-header { display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-header strong { display: block; font-size: 15px; }
.sheet-header span { color: var(--muted); font-size: 10px; }
.sheet-header button { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--surface-soft); color: var(--ink-soft); }
.sheet-header svg { width: 18px; height: 18px; }
.filter-sheet label { display: grid; gap: 5px; margin-top: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.filter-sheet label[hidden] { display: none; }
.filter-sheet input,.filter-sheet select,.filter-sheet textarea { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; background: var(--surface); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.sheet-actions button { min-height: 42px; border-radius: 12px; font-size: 11px; font-weight: 750; }
.ghost-btn,.plain-btn { border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-soft); }
.plain-btn { grid-column: 1/-1; min-height: 36px; background: transparent; }

/* Shared bottom navigation */
.bottom-nav { position: fixed; z-index: 60; right: 12px; bottom: max(7px,env(safe-area-inset-bottom,0px),var(--tg-bottom-inset)); left: 12px; display: grid; grid-template-columns: repeat(3,1fr); width: min(calc(100% - 24px),516px); height: 64px; margin: 0 auto; padding: 5px 8px; border: 1px solid rgba(28,27,32,.09); border-radius: 20px; background: var(--surface); box-shadow: 0 7px 22px rgba(28,27,32,.10); }
.bottom-nav-item { display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px; border-radius: 14px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.bottom-nav-icon { display: grid; width: 34px; height: 29px; place-items: center; border-radius: 10px; }
.bottom-nav-icon svg { width: 20px; height: 20px; }
.bottom-nav-item.is-active { color: var(--brand-800); }
.bottom-nav-item.is-active .bottom-nav-icon { background: var(--brand-50); color: var(--brand-600); }
.bottom-nav-create { overflow: visible; color: var(--brand-800); }
.bottom-nav-create .bottom-nav-icon { width: 48px; height: 48px; flex: 0 0 48px; margin-top: -13px; border: 4px solid var(--surface); border-radius: 50%; background: var(--brand-600); color: #fff; box-shadow: 0 7px 16px rgba(71,32,111,.24); }
.bottom-nav-create .bottom-nav-icon svg { width: 21px; height: 21px; stroke-width: 2.4; }
.bottom-nav-create > span:last-child { margin-top: -1px; }

/* Post and profile */
.product-eyebrow { margin: 0 0 5px; color: var(--brand-600); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.post-page .content,.profile-page .content { display: grid; gap: 11px; }
.post-hero,.post-flow,.post-cta-panel,.profile-hero,.profile-login-note,.profile-action,.profile-saved { border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-sm); }
.post-hero { position: relative; overflow: hidden; padding: 20px 17px; }
.post-hero::after { content: ""; position: absolute; top: -48px; right: -48px; width: 130px; height: 130px; border-radius: 50%; background: var(--brand-50); }
.post-hero-icon,.step-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.post-hero-icon { position: relative; z-index: 1; margin-bottom: 12px; }
.post-hero-icon svg,.step-icon svg { width: 21px; height: 21px; }
.post-hero h2,.profile-page-intro h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: -.03em; line-height: 1.08; }
.post-hero > p:not(.product-eyebrow) { max-width: 340px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.post-trust-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.post-trust-row span { display: inline-flex; min-height: 28px; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 9.5px; font-weight: 750; }
.post-trust-row svg { width: 12px; height: 12px; }
.post-flow { padding: 17px 15px 5px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.post-steps { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.post-steps li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.post-steps li:last-child { border: 0; }
.post-steps strong { display: block; margin-bottom: 3px; font-size: 12px; }
.post-steps span:not(.step-icon) { display: block; color: var(--muted); font-size: 10.5px; }
.post-cta-panel { display: grid; gap: 12px; padding: 15px; }
.post-cta-panel strong { display: block; font-size: 14px; }
.post-cta-panel div span { color: var(--muted); font-size: 10.5px; }
.primary-link { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 13px; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 800; }
.primary-link svg { width: 18px; height: 18px; }

.profile-page-intro { padding: 2px 3px 3px; }
.profile-loading { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; min-height: 86px; }
.loading-avatar { width: 54px; height: 54px; border-radius: 16px; background: var(--surface-soft); }
.loading-lines { display: grid; gap: 8px; }
.loading-lines i { width: 58%; height: 9px; border-radius: 999px; background: var(--surface-soft); }
.loading-lines i:last-child { width: 38%; }
.profile-card { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.profile-card .loading-avatar,.profile-card .loading-lines { display: none; }
.profile-hero { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; align-items: center; padding: 14px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.profile-avatar-fallback { display: grid; place-items: center; background: var(--brand-600); color: #fff; font-size: 17px; font-weight: 800; }
.profile-hero h2 { margin: 0; font-size: 17px; }
.profile-hero p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.profile-login-note { margin-top: 10px; padding: 14px; border-color: var(--brand-200); background: var(--brand-50); }
.profile-login-note strong { font-size: 13px; }
.profile-login-note p { margin: 4px 0 10px; color: var(--muted); font-size: 10.5px; }
.profile-login-note a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border-radius: 11px; background: var(--brand-600); color: #fff; font-size: 10.5px; font-weight: 750; }
.profile-action-grid { display: grid; gap: 7px; margin-top: 10px; }
.profile-action { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; min-height: 58px; align-items: center; padding: 8px 10px; }
.profile-action .icon { color: var(--brand-600); }
.profile-action span { font-size: 11.5px; font-weight: 750; }
.profile-action strong { padding: 4px 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 9px; }
.profile-saved { margin-top: 10px; padding: 13px; }
.profile-saved h3 { margin: 0 0 9px; font-size: 14px; }
.profile-saved-list { color: var(--muted); font-size: 11px; }

/* Detail */
.detail-topbar { position: sticky; top: 0; grid-template-columns: 44px minmax(0,1fr) 44px; }
.detail-topbar-title h1 { margin: 0; font-size: 14px; }
.detail-content { max-width: 680px; padding-top: 10px; }
.detail-card { background: transparent; }
.detail-hero { position: relative; height: clamp(255px,51vh,390px); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-soft); box-shadow: var(--shadow-sm); }
.detail-hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.detail-hero .slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-btn { position: absolute; z-index: 3; top: 50%; display: grid; width: 40px; height: 40px; place-items: center; transform: translateY(-50%); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); font-size: 25px; box-shadow: var(--shadow-sm); }
.carousel-btn.left { left: 12px; }
.carousel-btn.right { right: 12px; }
.listing-badge { right: 12px; left: auto; max-width: calc(100% - 24px); }
.detail-gallery-open { position: absolute; z-index: 3; right: 10px; bottom: 10px; display: inline-flex; min-height: 34px; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 10px; font-weight: 800; }
.detail-gallery-open .icon { width: 15px; height: 15px; }
.dots { position: absolute; z-index: 3; bottom: 15px; left: 50%; display: flex; gap: 5px; transform: translateX(-50%); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.6); }
.dot.is-active { width: 16px; background: #fff; }
.detail-heading-block { padding: 13px 2px 0; }
.detail-heading-block h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.detail-summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.detail-summary-price { color: var(--brand-800); font-size: 17px; font-weight: 900; }
.detail-summary-location { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.detail-summary-location .icon { width: 14px; color: var(--brand-600); }
.detail-facts,.detail-amenities,.related-searches { margin-top: 18px; }
.detail-facts > h3,.detail-amenities h3,.related-searches h3 { margin: 0 0 9px; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.detail-info-card { display: grid; grid-template-columns: 34px minmax(0,1fr); min-height: 68px; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.detail-info-card.detail-info-wide { grid-column: 1/-1; }
.detail-info-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); }
.detail-info-card .icon { width: 18px; height: 18px; }
.detail-info-card small { display: block; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.detail-info-card strong { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.2; }
.detail-amenity-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.detail-amenity-chips li { display: inline-flex; min-height: 32px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.detail-amenity-chips li span { color: var(--success); font-weight: 900; }
.locked-phone { display: grid; gap: 12px; margin-top: 18px; padding: 17px; border-radius: 19px; background: var(--brand-900); color: #fff; }
.locked-phone strong { font-size: 16px; }
.locked-phone p { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 11px; }
.locked-phone .call-btn { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; border-radius: 13px; background: #fff; color: var(--brand-800); font-size: 12px; font-weight: 800; }
.phone-result { color: #fff; text-align: center; }
.related-chip-row a { flex: 0 0 auto; min-height: 32px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand-700); font-size: 9px; font-weight: 700; }

/* Gallery */
.gallery-open { overflow: hidden; }
.gallery-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: #111; color: #fff; }
.gallery-toolbar { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top,0px)) 14px 12px; }
.gallery-close,.gallery-nav { display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.gallery-close { width: 42px; height: 42px; border-radius: 50%; font-size: 24px; }
.gallery-nav { position: absolute; z-index: 2; top: 50%; width: 42px; height: 54px; transform: translateY(-50%); border-radius: 13px; font-size: 28px; }
.gallery-prev { left: 10px; }.gallery-next { right: 10px; }
.gallery-image { max-width: 100%; max-height: 100%; object-fit: contain; }

/* My listings and subscribe */
.mini-card { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mini-card img { width: 76px; height: 76px; border-radius: 11px; object-fit: cover; }
.mini-card strong,.mini-card span { display: block; }
.mini-card span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mini-actions a,.mini-actions button { min-height: 30px; padding: 0 8px; border-radius: 9px; background: var(--brand-50); color: var(--brand-800); font-size: 9px; font-weight: 700; }
.subscribe-hero { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--brand-900); color: #fff; }
.subscribe-hero h2 { margin: 0; font-size: 22px; }
.subscribe-hero p { color: rgba(255,255,255,.72); font-size: 11px; }
.subscribe-hero ul { display: grid; gap: 7px; margin: 14px 0 0; padding-left: 18px; font-size: 11px; }
.plans { display: grid; gap: 10px; margin-top: 12px; }
.plan { position: relative; display: block; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--brand-200); background: var(--brand-50); }
.plan .badge { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: 8px; font-weight: 800; }
.plan h3 { margin: 0 0 5px; font-size: 15px; }
.plan strong { color: var(--brand-800); font-size: 20px; }
.plan p { margin: 5px 0 0; color: var(--muted); font-size: 10.5px; }

/* Telegram surface owns only safe areas. */
html.is-bot-surface body { overscroll-behavior-y: none; }
html.is-bot-surface.is-telegram-webapp.is-tg-fullscreen body { padding-right: var(--tg-right-inset); padding-left: var(--tg-left-inset); }
html.is-bot-surface.is-telegram-webapp.is-tg-fullscreen .app-header { padding-top: calc(var(--tg-top-inset) + 10px); }
html.is-bot-surface.is-telegram-webapp .with-bottom-nav { padding-bottom: calc(94px + var(--tg-bottom-inset)); }
html.is-bot-surface.is-telegram-webapp .bottom-nav { bottom: calc(7px + var(--tg-bottom-inset)); }
html.is-bot-surface.is-telegram-webapp .detail-topbar { display: none; }
html.is-bot-surface.is-telegram-webapp .detail-content {
  padding-top: 12px;
  padding-bottom: calc(26px + max(env(safe-area-inset-bottom,0px),var(--tg-bottom-inset)));
}
html.is-bot-surface.is-telegram-webapp.has-native-back .app-header.compact,
html.is-bot-surface.is-telegram-webapp.has-native-back .detail-topbar { display: none; }
html.is-bot-surface.is-telegram-webapp.has-native-back .content { padding-top: 12px; }

/* In Telegram fullscreen the native status/back controls overlay the web
   viewport. Inner pages hide their HTML header, so their content must own the
   complete measured top inset. Expanded (non-fullscreen) Mini Apps already
   start below Telegram chrome and keep the compact 12px spacing above. */
html.is-bot-surface.is-telegram-webapp.is-tg-fullscreen.has-native-back body:not(.home-page) .content,
html.is-bot-surface.is-telegram-webapp.is-tg-fullscreen body.detail-page .detail-content {
  padding-top: calc(max(env(safe-area-inset-top,0px),var(--tg-top-inset)) + 12px);
}

html.is-bot-surface.is-telegram-webapp .pro-paywall {
  bottom: calc(10px + max(env(safe-area-inset-bottom,0px),var(--tg-bottom-inset)));
  max-height: min(88dvh,calc(100dvh - var(--tg-top-inset) - var(--tg-bottom-inset) - 20px));
}
html.is-bot-surface.is-telegram-webapp .pro-payment-sheet {
  bottom: calc(10px + max(env(safe-area-inset-bottom,0px),var(--tg-bottom-inset)));
  max-height: min(88dvh,calc(100dvh - var(--tg-top-inset) - var(--tg-bottom-inset) - 20px));
}

@media (min-width:700px) {
  .app-shell { border-inline: 1px solid var(--line); }
  .content { padding-inline: 20px; }
}
@media (max-width:350px) {
  .content { padding-inline: 10px; }
  .market-header { padding-inline: 10px; }
  .market-header { grid-template-columns: 72px minmax(0,1fr) 40px; gap: 7px; }
  .brand-logo,.market-logo-mark { width: 70px; }
  .market-location { padding-inline: 7px; }
  .card-main { grid-template-columns: 112px minmax(0,1fr); gap: 9px; padding: 8px; }
  .compact-image { height: 146px; }
  .card-price-title { font-size: 16px; }
  .location-row { font-size: 10.5px; }
  .info-chips span { min-height: 26px; padding-inline: 7px; font-size: 9.5px; }
  .cta-row { padding: 0 8px 8px; }
  .bottom-nav { right: 8px; left: 8px; width: calc(100% - 16px); }
  .detail-content { padding-inline: 10px; }
}

/* Profile hub: one clear identity surface, grouped account actions and compact saves. */
.profile-page .profile-content { gap: 14px; padding-top: 16px; }
.profile-page-intro { padding: 0 2px; }
.profile-page-intro .product-eyebrow { margin-bottom: 4px; }
.profile-page-intro h2 { font-size: 21px; letter-spacing: -.025em; }
.profile-page-intro > p:last-child { max-width: 355px; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-hero {
  position: relative;
  grid-template-columns: 58px minmax(0,1fr);
  min-height: 88px;
  padding: 15px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-600));
  color: #fff;
  box-shadow: 0 12px 26px rgba(71,32,111,.2);
}
.profile-hero::after { content: ""; position: absolute; top: -42px; right: -32px; width: 130px; height: 130px; border: 20px solid rgba(255,255,255,.09); border-radius: 50%; }
.profile-avatar { position: relative; z-index: 1; width: 58px; height: 58px; border: 2px solid rgba(255,255,255,.58); border-radius: 18px; background: #fff; }
.profile-avatar-fallback { background: linear-gradient(135deg,#5bd6d1,#23b8b2); color: #fff; font-size: 18px; }
.profile-identity-text { position: relative; z-index: 1; min-width: 0; }
.profile-hero h2 { overflow: hidden; color: #fff; font-size: 18px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero p { color: rgba(255,255,255,.72); font-size: 11px; }
.profile-action-grid { gap: 0; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.profile-action { min-height: 62px; padding: 10px 12px; border: 0; border-radius: 0; box-shadow: none; transition: background .18s ease; }
.profile-action + .profile-action { border-top: 1px solid var(--line); }
.profile-action:hover,.profile-action:focus-visible { background: var(--brand-50); }
.profile-action .icon { display: grid; width: 38px; height: 38px; place-self: center; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); }
.profile-action span { font-size: 12px; font-weight: 800; }
.profile-action strong { padding: 5px 8px; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-800); font-size: 9px; }
.profile-saved { margin-top: 12px; padding: 14px; border-radius: 18px; }
.profile-saved h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; font-size: 15px; }
.profile-saved h3::before { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); content: ""; }
.profile-saved-list { display: grid; gap: 8px; }
.profile-saved-card { grid-template-columns: 68px minmax(0,1fr); padding: 8px; border-radius: 14px; box-shadow: none; }
.profile-saved-card img { width: 68px; height: 68px; border-radius: 10px; }
.profile-saved-card strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-size: 10.5px; line-height: 1.25; }
.profile-saved-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-saved-card .mini-actions { margin-top: 5px; }
.profile-saved-card .mini-actions a { min-height: 26px; padding: 0 7px; border-radius: 8px; }
@media (max-width:350px) {
  .profile-page .profile-content { gap: 11px; padding-top: 12px; }
  .profile-page-intro h2 { font-size: 19px; }
  .profile-page-intro > p:last-child { font-size: 10px; }
  .profile-hero { min-height: 80px; padding: 12px; }
  .profile-avatar { width: 52px; height: 52px; border-radius: 16px; }
  .profile-action { min-height: 57px; }
}

/* One-screen post entry: the action stays visible above the fixed navigation. */
.post-page .content { gap: 8px; }
.post-hero { padding: 14px 15px; }
.post-hero::after { top: -64px; right: -58px; width: 120px; height: 120px; }
.post-hero h2 { max-width: 370px; font-size: 20px; line-height: 1.1; }
.post-hero > p:not(.product-eyebrow) { margin-top: 6px; font-size: 10.5px; line-height: 1.35; }
.post-trust-row { flex-wrap: nowrap; gap: 5px; margin-top: 10px; }
.post-trust-row span { min-height: 24px; padding: 0 7px; font-size: 8.5px; white-space: nowrap; }
.post-flow { padding: 12px 13px; }
.post-flow .product-eyebrow { margin-bottom: 3px; }
.section-heading h2 { font-size: 15px; }
.post-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 9px; }
.post-steps li { display: grid; grid-template-columns: 1fr; justify-items: start; gap: 6px; min-width: 0; padding: 0; border: 0; }
.post-steps li + li { padding-left: 7px; border-left: 1px solid var(--line); }
.step-icon { width: 30px; height: 30px; border-radius: 9px; }
.step-icon svg { width: 16px; height: 16px; }
.post-steps strong { margin: 0; font-size: 10px; line-height: 1.15; }
.post-steps span:not(.step-icon) { overflow: hidden; margin-top: 2px; font-size: 8.5px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.post-cta-panel { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; }
.post-cta-panel strong { font-size: 12px; }
.post-cta-panel div span { display: block; margin-top: 2px; font-size: 9px; }
.post-cta-panel .primary-link { min-height: 40px; padding: 0 11px; font-size: 10px; }
.post-cta-panel .primary-link svg { display: none; }
@media (max-width:350px) {
  .post-hero { padding: 12px; }
  .post-hero h2 { font-size: 18px; }
  .post-trust-row span { padding-inline: 5px; font-size: 8px; }
  .post-flow { padding-inline: 10px; }
  .post-cta-panel { padding: 10px; }
  .post-cta-panel .primary-link { font-size: 9px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto; animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; } }

/* Pro checkout: available only on the Telegram Mini App surface. */
.has-pro-paywall { overflow: hidden; }
.pro-paywall-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(19,12,35,.5); backdrop-filter: blur(3px); }
.pro-paywall { position: fixed; z-index: 111; right: max(10px,env(safe-area-inset-right)); bottom: max(10px,env(safe-area-inset-bottom)); left: max(10px,env(safe-area-inset-left)); max-width: 620px; max-height: min(88dvh,760px); margin-inline: auto; padding: 8px 18px 18px; overflow-y: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 24px 70px rgba(24,12,49,.28); animation: pro-sheet-in .22s ease-out; }
.pro-paywall-handle { width: 42px; height: 4px; margin: 2px auto 14px; border-radius: 999px; background: var(--line-strong,#cfc9d8); }
.pro-paywall-header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pro-paywall-header h2 { margin: 2px 0 5px; color: var(--text); font-size: clamp(21px,6vw,27px); line-height: 1.08; }
.pro-paywall-header p { margin: 0; max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pro-paywall-eyebrow { color: var(--brand-700); font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.pro-paywall-close { flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft,#f7f5fa); color: var(--text); font: 26px/1 sans-serif; }
.pro-paywall-status { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--brand-50); color: var(--brand-800); font-size: 13px; font-weight: 750; line-height: 1.45; }
.pro-paywall-status.is-error { background: #fff0f1; color: #a92535; }
.pro-paywall-status.is-success { background: #eaf9f3; color: #087a59; }
.pro-paywall-status.is-warn { background: #fff7e8; color: #8a5b00; }
.pro-paywall-status button { margin-left: 5px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; }
.pro-bot-fallback {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg,var(--brand-600),var(--brand-800));
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.01em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(111,57,185,.24);
}
.pro-bot-fallback:active { transform: translateY(1px); }
.pro-plan-list { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 16px; }
.pro-plan { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; min-width: 0; min-height: 78px; padding: 13px 14px 13px 16px; align-items: center; column-gap: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; box-shadow: none; transition: border-color .16s,transform .16s,background .16s; }
.pro-plan:active { transform: scale(.98); }
.pro-plan.is-selected { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 2px color-mix(in srgb,var(--brand-600) 18%,transparent); }
.pro-plan-duration { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 800; }
.pro-plan strong { grid-column: 1; grid-row: 2; margin-top: 5px; color: var(--brand-800); font-size: 18px; line-height: 1.1; }
.pro-plan small { display: none; }
.pro-plan-action { display: inline-flex; grid-column: 2; grid-row: 1 / -1; min-height: 42px; align-items: center; gap: 5px; padding: 0 14px; border-radius: 14px; background: linear-gradient(135deg,var(--brand-600),var(--brand-800)); color: #fff; font-size: 12px; font-weight: 850; white-space: nowrap; box-shadow: 0 8px 18px rgba(111,57,185,.22); }
.pro-plan-badge { position: absolute; top: -9px; right: 8px; max-width: calc(100% - 16px); padding: 4px 7px; overflow: hidden; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: 8px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.pro-other-plans { width: 100%; margin-top: 10px; padding: 11px; border: 1px dashed var(--brand-300); border-radius: 13px; background: transparent; color: var(--brand-700); font-weight: 800; }
.pro-provider-panel { margin-top: 14px; padding: 13px; border-radius: 17px; background: var(--surface-soft,#f7f5fa); }
.pro-provider-panel p { display: flex; margin: 0 0 10px; flex-direction: column; gap: 2px; font-size: 13px; }
.pro-provider-panel p span { color: var(--muted); font-size: 11px; }
.pro-provider-buttons { display: grid; grid-template-columns: 1fr; gap: 9px; }
.pro-provider-buttons button,.pro-gender-buttons button,.pro-verify-channel { min-height: 48px; border: 0; border-radius: 14px; background: var(--brand-700); color: #fff; font-weight: 850; }
.pro-provider-buttons button:nth-child(2) { background: #17a8e5; }
.pro-payment-sheet {
  position: fixed;
  z-index: 112;
  right: max(10px,env(safe-area-inset-right));
  bottom: max(10px,env(safe-area-inset-bottom));
  left: max(10px,env(safe-area-inset-left));
  max-width: 620px;
  max-height: min(88dvh,760px);
  margin-inline: auto;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(24,12,49,.30);
  animation: pro-sheet-in .22s ease-out;
}
.pro-payment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.pro-payment-header span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.pro-payment-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px,5vw,28px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.pro-payment-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.pro-payment-status {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 750;
}
.pro-payment-methods { display: grid; grid-template-columns: 1fr; gap: 9px; }
.pro-payment-method {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  min-height: 64px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.pro-payment-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.pro-payment-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pro-payment-copy strong {
  font-size: 14px;
  line-height: 1.25;
}
.pro-payment-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.pro-setup { margin-top: 14px; padding: 15px; border: 1px solid var(--brand-200); border-radius: 18px; background: var(--brand-50); }
.pro-setup h3 { margin: 0 0 4px; font-size: 17px; }
.pro-setup p { margin: 0 0 11px; color: var(--muted); font-size: 12px; }
.pro-gender-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pro-setup .primary-btn,.pro-verify-channel { display: flex; width: 100%; min-height: 48px; margin-top: 8px; align-items: center; justify-content: center; }
.pro-paywall-footnote { margin: 13px 2px 0; color: var(--muted); font-size: 10px; text-align: center; }
@keyframes pro-sheet-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width:360px) { .pro-paywall { right: 6px; bottom: max(6px,env(safe-area-inset-bottom)); left: 6px; padding-inline: 13px; } .pro-plan-list { gap: 6px; } .pro-plan { min-height: 120px; padding-inline: 8px; } }
html.is-browser-surface .pro-paywall { padding: 18px 18px 20px; }
html.is-browser-surface .pro-paywall-header h2 { font-size: 24px; letter-spacing: -.02em; }
html.is-browser-surface .pro-paywall-header p { font-size: 15px; }
html.is-browser-surface .pro-plan-list { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
html.is-browser-surface .pro-plan {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  min-height: 78px;
  padding: 13px 14px 13px 16px;
  align-items: center;
  column-gap: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24,12,49,.07);
}
html.is-browser-surface .pro-plan-duration { grid-column: 1; grid-row: 1; color: var(--text); font-size: 16px; }
html.is-browser-surface .pro-plan strong { grid-column: 1; grid-row: 2; margin-top: 5px; font-size: 18px; }
html.is-browser-surface .pro-plan small { display: none; }
html.is-browser-surface .pro-plan-action {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / -1;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--brand-600),var(--brand-800));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(111,57,185,.22);
}
html.is-browser-surface .pro-plan-badge { right: 122px; }
@media (max-width:480px) {
  html.is-browser-surface .pro-plan {
    grid-template-columns: 1fr;
    min-height: 0;
    row-gap: 10px;
  }
  html.is-browser-surface .pro-plan-action {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    justify-content: center;
  }
}

/* Marketplace clarity pass: compact cards, removable filters and a quieter conversion CTA. */
.filter-summary { min-width: 0; margin-top: 7px; }
.chip-scroll { min-width: 0; }
.filter-chip { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 0 8px 0 10px; border: 1px solid var(--brand-200); border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 9.5px; font-weight: 750; white-space: nowrap; }
.filter-chip b { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: rgba(111,57,185,.12); font-size: 13px; font-weight: 600; line-height: 1; }
.chip-clear { min-height: 28px; padding: 0 2px 0 5px; color: var(--danger); font-size: 9px; font-weight: 800; white-space: nowrap; }
.market-post-card { min-height: 58px; gap: 10px; margin-bottom: 12px; padding: 8px 9px 8px 13px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.market-post-copy { min-width: 0; }
.market-post-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.market-post-card span { display: block; margin-top: 2px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-post-card a { min-height: 38px; gap: 5px; padding: 0 10px; border-radius: 11px; }
.market-post-card a span { margin: 0; color: inherit; font-size: 10px; }
.results-heading { position: relative; grid-template-columns: minmax(0,1fr) auto; min-height: 0; gap: 12px; margin: 16px 0 9px; padding: 2px 2px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.results-heading::after { position: absolute; right: 2px; bottom: 0; left: 2px; height: 1px; background: linear-gradient(90deg,var(--line-strong),transparent); content: ""; }
.results-heading strong { overflow: hidden; font-size: 16px; font-weight: 900; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.results-heading div span { margin-top: 3px; font-size: 10px; }
.live-indicator { min-height: 25px; padding: 0 9px; border: 1px solid color-mix(in srgb,var(--success) 14%,transparent); background: var(--success-soft); }
.card { border-radius: 17px; }
.card-main { grid-template-columns: 122px minmax(0,1fr); gap: 11px; padding: 10px; }
.compact-image { height: 142px; border-radius: 13px; }
.card-price-title { display: -webkit-box; margin-bottom: 6px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 17px; line-height: 1.13; text-overflow: clip; }
.location-row { margin-bottom: 8px; font-size: 11px; }
.card-meta-row { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.card-room-meta { flex: 0 0 auto; min-height: 25px; padding: 0 8px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); line-height: 25px; white-space: nowrap; }
.card-metro-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-date-meta { flex: 0 0 auto; color: var(--muted); white-space: nowrap; }
.cta-row { grid-template-columns: 46px minmax(0,1fr); gap: 7px; padding: 0 10px 10px; }
.save-btn,.card-cta { min-height: 40px; border-radius: 11px; font-size: 11px; }
.save-btn svg,.card-cta svg { width: 19px; height: 19px; }
@media (max-width:350px) {
  .card-main { grid-template-columns: 108px minmax(0,1fr); gap: 9px; padding: 8px; }
  .compact-image { height: 134px; }
  .card-price-title { font-size: 15.5px; }
  .card-meta-row { gap: 4px; font-size: 8.8px; }
  .card-room-meta { min-height: 23px; padding-inline: 7px; line-height: 23px; }
  .market-post-card a span { display: none; }
  .market-post-card a { width: 38px; justify-content: center; padding: 0; }
}

/* Home promotions and listing-card density pass. */
.market-promo { position: relative; height: 112px; min-height: 0; margin-bottom: 12px; overflow: hidden; border-radius: 18px; background: var(--brand-800); box-shadow: 0 10px 24px rgba(71,32,111,.18); }
.market-promo-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; overflow: hidden; padding: 13px 15px; color: #fff; opacity: 0; pointer-events: none; transform: translateX(12px); transition: opacity .28s ease, transform .28s ease; }
.market-promo-slide.is-active { position: absolute; opacity: 1; pointer-events: auto; transform: none; }
.market-promo-stat { background: linear-gradient(135deg,var(--brand-900),var(--brand-600)); }
.market-promo-post { background: linear-gradient(135deg,#086d62,#18a78c); }
.market-promo-copy { position: relative; z-index: 1; min-width: 0; align-self: center; }
.market-promo-copy p { margin: 0 0 3px; color: rgba(255,255,255,.72); font-size: 10px; }
.market-promo-copy h2 { max-width: 220px; margin: 0; font-size: 17px; font-weight: 850; line-height: 1.1; }
.market-promo-copy > span { display: block; margin-top: 4px; overflow: hidden; color: rgba(255,255,255,.74); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.market-promo-action { position: relative; z-index: 2; display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 10px; border-radius: 11px; background: #fff; color: var(--brand-800); font-size: 10px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(17,10,30,.14); }
.market-promo-post .market-promo-action { color: #076659; }
.market-promo-action svg { width: 15px; height: 15px; }
.market-promo .market-promo-art { position: absolute; right: 116px; bottom: -42px; width: 108px !important; height: 108px !important; max-width: 108px; max-height: 108px; opacity: .12; stroke-width: 8; }
.market-promo-controls { position: absolute; z-index: 3; top: 11px; right: 12px; display: flex; align-items: center; }
.market-promo-dots { display: flex; gap: 4px; }
.market-promo-dots .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.42); transition: width .2s ease,background .2s ease; }
.market-promo-dots .dot.is-active { width: 15px; border-radius: 999px; background: #fff; }
.home-page.search-active .market-promo { display: none; }

.card { position: relative; min-height: 0; overflow: hidden; border-radius: 17px; }
.card-detail-link { height: auto; }
.card-main { grid-template-columns: clamp(108px,31vw,132px) minmax(0,1fr); min-height: 184px; height: 184px; gap: 0; padding: 0; }
.compact-image { min-height: 184px; height: 184px; align-self: stretch; border-radius: 0; }
.card-body { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: 12px 12px 57px 14px; }
.card-title-row { min-width: 0; }
.card-price-title { display: -webkit-box; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.13; }
.location-row { min-height: 22px; margin: 5px 0 0; }
.card-meta-row { position: static; min-height: 26px; gap: 8px; margin-top: 7px; overflow: hidden; flex-wrap: nowrap; transform: none; font-size: 9.5px; }
.card-room-meta { min-height: 26px; line-height: 26px; }
.card-meta-item { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; color: var(--ink-soft); font-weight: 750; white-space: nowrap; }
.card-meta-item + .card-meta-item::before { display: none; }
.card-meta-item .icon { width: 13px; height: 13px; flex: 0 0 13px; color: var(--brand-600); }
.card-meta-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-metro-meta { flex: 1 1 60px; }
.card-date-meta { flex: 0 0 auto; }
.cta-row { position: absolute; z-index: 2; right: 10px; bottom: 10px; left: clamp(120px,calc(31vw + 12px),144px); grid-template-columns: 40px minmax(0,1fr); gap: 6px; padding: 0; }
.save-btn,.card-cta { min-height: 40px; border-radius: 10px; font-size: 10px; }
.save-btn svg,.card-cta svg { width: 18px; height: 18px; }
.card-cta { gap: 5px; }
@media (max-width:350px) {
  .market-promo { height: 106px; min-height: 0; }
  .market-promo-slide { padding: 12px; }
  .market-promo-copy h2 { font-size: 15px; }
  .market-promo-copy > span { max-width: 178px; }
  .card-main { grid-template-columns: 108px minmax(0,1fr); min-height: 174px; height: 174px; }
  .compact-image { min-height: 174px; height: 174px; }
  .card-body { padding: 10px 9px 53px 11px; }
  .location-row { min-height: 21px; margin-top: 4px; }
  .card-meta-row { min-height: 24px; gap: 6px; margin-top: 5px; }
  .card-meta-item .icon { display: none; }
  .cta-row { right: 8px; bottom: 8px; left: 119px; grid-template-columns: 38px minmax(0,1fr); }
  .save-btn,.card-cta { min-height: 38px; }
}

/* Detail contact: deliberately quiet, compact and easy to scan. */
body.detail-page .locked-phone {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
body.detail-page .locked-phone::after {
  display: none !important;
  content: none !important;
}
body.detail-page .locked-phone-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}
body.detail-page .locked-phone-icon .icon { width: 20px; height: 20px; }
body.detail-page .locked-phone-copy { min-width: 0; max-width: none; }
body.detail-page .locked-phone-copy small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.detail-page .locked-phone strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.detail-page .locked-phone p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
}
body.detail-page .locked-phone .call-btn {
  width: auto;
  min-height: 40px;
  padding: 0 11px;
  justify-content: center;
  gap: 5px;
  border-radius: 11px;
  background: var(--brand-700);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  box-shadow: none;
  white-space: nowrap;
}
body.detail-page .locked-phone .call-btn .icon { width: 16px; height: 16px; }
body.detail-page .phone-result {
  grid-column: 1 / -1;
  color: var(--ink);
  text-align: left;
}
body.detail-page .locked-phone.phone-state-locked,
body.detail-page .locked-phone.phone-state-unavailable,
body.detail-page .locked-phone.phone-state-nophone,
body.detail-page .locked-phone.phone-state-revealed {
  display: block;
  padding: 14px;
}
body.detail-page .locked-phone.phone-state-locked > .locked-phone-icon,
body.detail-page .locked-phone.phone-state-locked > .locked-phone-copy,
body.detail-page .locked-phone.phone-state-unavailable > .locked-phone-icon,
body.detail-page .locked-phone.phone-state-unavailable > .locked-phone-copy,
body.detail-page .locked-phone.phone-state-nophone > .locked-phone-icon,
body.detail-page .locked-phone.phone-state-nophone > .locked-phone-copy,
body.detail-page .locked-phone.phone-state-revealed > .locked-phone-icon,
body.detail-page .locked-phone.phone-state-revealed > .locked-phone-copy { display: none; }
body.detail-page .locked-phone .phone-result { width: 100%; }
body.detail-page .locked-phone .phone-msg { display: block; }
body.detail-page .locked-phone .phone-msg-body { display: block; }
body.detail-page .locked-phone .phone-msg-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-700);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
}
body.detail-page .locked-phone .phone-msg strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.2; }
body.detail-page .locked-phone .phone-msg p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
body.detail-page .locked-phone .phone-bot-cta {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--brand-700);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
body.detail-page .locked-phone .phone-bot-cta span { font-size: 18px; line-height: 1; }
body.detail-page .locked-phone .phone-msg-hint { margin-top: 8px; color: var(--muted); font-size: 9px; text-align: center; }
@media (max-width:350px) {
  body.detail-page .locked-phone { grid-template-columns: 36px minmax(0,1fr); gap: 8px; padding: 10px; }
  body.detail-page .locked-phone-icon { width: 36px; height: 36px; border-radius: 10px; }
  body.detail-page .locked-phone .call-btn { grid-column: 1 / -1; width: 100%; min-height: 38px; }
}
