/* YaffaDash public app. Mobile first; logical properties so Hebrew/Arabic flip automatically. */
:root {
  --primary: #18703A;
  --primary-dark: #12562C;
  --primary-tint: #E8F5EC;
  --cta: #C8500A;
  --cta-tint: #FFF1E6;
  --cta-ink: #9A3412;
  --ok: #17663F;
  --ok-tint: #E8F5EE;
  --wa: #25D366;
  --wa-ink: #0B3D20;
  --bg: #F6F7F3;
  --surface: #FFFFFF;
  --ink: #14181F;
  --ink-2: #2E343D;
  --muted: #5B6270;
  --line: #E3E6EB;
  --line-2: #EEF0F3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.06);
  --shadow-lg: 0 6px 20px rgba(20, 24, 31, 0.10);
  --font: Rubik, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang='ar'] { --font: 'Noto Sans Arabic', Rubik, system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #ECEEE8; -webkit-font-smoothing: antialiased; }
.app { max-width: 560px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 600px) { .app { box-shadow: 0 0 40px rgba(20, 24, 31, 0.08); } }
a { color: var(--primary); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.ic { flex-shrink: 0; }
[dir='rtl'] .flip { transform: scaleX(-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #F2A65A; outline-offset: 2px; }
.loading { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ---------- home hero ---------- */
.hero { background: var(--primary); color: #fff; padding: 18px 20px 72px; display: flex; flex-direction: column; gap: 20px; }
.hero-in { display: flex; flex-direction: column; gap: 20px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 700; }
.brand-name { letter-spacing: -0.01em; }
.brand-dash { color: #FFB25C; }
.sitebar .brand-dash { color: #D9620B; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lang-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; white-space: pre-line; }
.hero p { margin: 8px 0 0; color: #DDF3E3; font-size: 15px; display: flex; align-items: center; gap: 6px; }

.searchbox { margin: -48px 16px 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; padding-inline-start: 14px; display: flex; align-items: center; gap: 8px; position: relative; }
.searchbox .ic { color: var(--muted); }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; height: 48px; font-size: 16px; background: transparent; }
.searchbox input:focus-visible { outline: none; }
/* search bar: brand-green outline and a deeper shadow so it stands out on both the green header and the page */
.searchbox { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(20, 24, 31, 0.22), 0 3px 8px rgba(20, 24, 31, 0.12); }
.searchbox:focus-within { box-shadow: 0 12px 30px rgba(20, 24, 31, 0.22), 0 3px 8px rgba(20, 24, 31, 0.12), 0 0 0 3px #F2A65A; }

/* ---------- buttons ---------- */
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: #A8430A; color: #fff; }
.btn-outline { background: var(--surface); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-ghost { background: transparent; color: var(--muted); font-weight: 500; padding: 0 4px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.icon-btn.round { border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20, 24, 31, 0.14); }

/* ---------- sections ---------- */
.section { padding: 22px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; gap: 8px; }
.section h2, .h2 { margin: 0; font-size: 18px; font-weight: 600; }
.eyebrow { margin: 0; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.link { font-size: 14px; font-weight: 500; text-decoration: none; }


.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .cat-grid.all { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat { background: var(--surface); border-radius: 14px; padding: 14px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: center; min-height: 96px; }
.cat:hover { box-shadow: 0 2px 10px rgba(20, 24, 31, 0.10); }
.cat-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.cat-name { font-size: 13px; font-weight: 500; line-height: 1.25; }
.cat-group { display: flex; flex-direction: column; gap: 8px; }
.cat-group + .cat-group { margin-top: 12px; }
.cat-group-title { margin: 0; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
/* phone home: each section is one sideways-scrolling row */
.cat-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .cat { flex: 0 0 92px; }
/* colour each section's icons so the sections are easy to tell apart */
.cat-group.g1 .cat-ic { background: var(--cta-tint); color: var(--cta-ink); }
.cat-group.g2 .cat-ic { background: #F3E8FF; color: #6D3FA8; }
.cat-group.g3 .cat-ic { background: #E6F0FA; color: #1F5FA8; }
.cat-group.g4 .cat-ic { background: #FFF4D6; color: #8A5A00; }
.cat-group.g5 .cat-ic { background: #EEF0F3; color: #3B4250; }
.cat-count { font-size: 11px; color: var(--muted); }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 250px; background: var(--surface); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.mini-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.join-card { margin: 24px 16px 0; background: var(--surface); border: 1px dashed #B9C3CC; border-radius: var(--radius); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.join-card b { display: block; font-size: 15px; }
.join-card span { font-size: 13px; color: var(--muted); }
.footer { padding: 28px 20px 36px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- avatar & badges ---------- */
.avatar { width: 52px; height: 52px; border-radius: 50%; color: #fff; font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 80px; height: 80px; font-size: 28px; border: 4px solid #fff; }
.vmark { width: 17px; height: 17px; border-radius: 50%; background: var(--ok); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tag-featured { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--cta-ink); background: var(--cta-tint); padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- live open / closed status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.status i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.st-open, .st-open24 { color: #17663F; }
.st-open i, .st-open24 i { background: #1E9E5A; box-shadow: 0 0 0 3px rgba(30, 158, 90, 0.18); }
.st-closing { color: #9A3412; }
.st-closing i { background: #E0650F; }
.st-closed, .st-away { color: var(--muted); }
.st-closed i, .st-away i { background: #A3A9B3; }
.st-busy { color: #8A5A00; }
.st-busy i { background: #E0A100; }
.busy-note { margin: 0 0 4px; color: #6B4A00; background: #FFF6DB; border-radius: 10px; padding: 8px 10px; }
.st-flexible { color: #1F5FA8; }
.st-flexible i { background: #3D7DD6; }
.mini-text .status { font-size: 12px; }
.pcard .status { margin-top: 6px; }
.hours { list-style: none; margin: 8px 0 0; padding: 4px 14px; background: var(--surface); border-radius: 14px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-top: 1px solid var(--line-2); }
.hours li:first-child { border-top: 0; }
.hours li b { font-weight: 500; white-space: nowrap; }
.hours li.today { font-weight: 600; color: var(--primary); }
.hours li.today b { font-weight: 600; }
.psec .status + .hours, .psec .status + p { margin-top: 8px; }
.filters { display: flex; gap: 8px; padding: 0 4px; }
.filter-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #D6DBE1; background: var(--surface); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.filter-chip i { width: 8px; height: 8px; border-radius: 50%; background: #A3A9B3; }
.filter-chip[aria-pressed='true'] { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }
.filter-chip[aria-pressed='true'] i { background: #1E9E5A; }
.cp-head .status { display: flex; margin-top: 4px; }

/* ---------- list page ---------- */
.pagebar { background: var(--surface); padding: 12px 12px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 5; }
.pagebar-row { display: flex; align-items: center; gap: 8px; }
.pagebar h1 { margin: 0; font-size: 20px; font-weight: 700; }
.pagebar .sub { font-size: 13px; color: var(--muted); }
.pagebar-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.list { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.card:hover { box-shadow: 0 2px 10px rgba(20, 24, 31, 0.10); }
.card-row { display: flex; gap: 12px; align-items: flex-start; }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-name { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 5px; }
.card-trade { font-size: 13px; color: var(--muted); }
.card-desc { font-size: 14px; color: var(--ink-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 10px; font-size: 13px; color: var(--muted); }
.card-foot > span { display: flex; align-items: center; gap: 4px; }
.card .chev { color: #8A919D; margin-top: 14px; }

.empty { background: var(--surface); border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty b { font-size: 16px; }
.empty p { margin: 0; font-size: 14px; color: var(--muted); }
.empty .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- profile ---------- */
.cover { height: 180px; background: #E4EEE0; position: relative; display: flex; align-items: center; justify-content: center; color: #4E6A52; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .icon-btn { position: absolute; top: 14px; }
.cover .back { inset-inline-start: 14px; }
.cover .share { inset-inline-end: 14px; }
.pcard { margin: -40px 16px 0; background: var(--surface); border-radius: 18px; padding: 0 18px 18px; position: relative; box-shadow: 0 4px 16px rgba(20, 24, 31, 0.08); display: flex; flex-direction: column; gap: 12px; }
.pcard .avatar { margin-top: -40px; }
.pcard h1 { margin: 0; font-size: 24px; font-weight: 700; }
.pcard .trade { font-size: 15px; color: var(--muted); }
.verified { align-self: flex-start; background: var(--ok-tint); color: var(--ok); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.facts span { font-size: 12px; color: var(--muted); }
.psec { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.psec h2 { margin: 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.psec p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 4px; margin: 0 -20px; scrollbar-width: none; }
.gallery button { flex: 0 0 140px; height: 116px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: #E4EEE0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.price { margin: 20px 16px 0; background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price span { font-size: 14px; color: var(--muted); }
.price b { font-size: 16px; }
.report-link { padding: 18px 16px 0; }
.report-link button { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.spacer { height: 120px; }
.dock { position: fixed; bottom: 0; inset-inline: 0; margin: 0 auto; max-width: 560px; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); z-index: 10; }
.dock .btn { width: 100%; min-height: 56px; font-size: 17px; border-radius: 14px; box-shadow: 0 4px 12px rgba(200, 80, 10, 0.28); }

/* ---------- sheets & dialogs ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 24, 31, 0.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s ease-out; }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 20px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 90vh; overflow-y: auto; animation: up 0.2s ease-out; }
.handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D6DBE1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head b { font-size: 20px; }
.sheet-head .icon-btn { background: var(--bg); border-radius: 50%; }
.contact-btn { min-height: 56px; border-radius: 14px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 12px; padding: 0 18px; text-decoration: none; }
.contact-btn .val { margin-inline-start: auto; font-size: 15px; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.contact-btn.wa { background: var(--wa); color: var(--wa-ink); }
.contact-btn.call { border: 1.5px solid var(--primary); color: var(--primary); background: #fff; }
.contact-btn.other { border: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 15px; font-weight: 500; min-height: 52px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet .note { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.radio input { width: 20px; height: 20px; accent-color: var(--primary); }
textarea { width: 100%; min-height: 90px; border: 1px solid #D6DBE1; border-radius: 12px; padding: 10px 12px; font-size: 15px; resize: vertical; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: 16px; inset-inline-end: 16px; color: #fff; }
.lang-list { display: flex; flex-direction: column; gap: 8px; }
.lang-list button { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 17px; text-align: start; padding: 0 16px; }
.lang-list button[aria-current='true'] { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); font-weight: 600; }

.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px); background: #14181F; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.2s; z-index: 70; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- join page ---------- */
.join { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.join h1 { margin: 0; font-size: 26px; }
.join p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.join ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.join li { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.join li .ic { color: var(--ok); margin-top: 2px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(30px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   Desktop layout (≥ 900 px). Phones and the Android app keep the layout above.
   ===================================================================== */
.sitebar, .contact-panel { display: none; }

@media (min-width: 900px) {
  body { background: var(--bg); }
  .app { max-width: none; box-shadow: none; }

  /* top site bar on inner pages */
  .sitebar { display: block; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
  .sitebar-in { max-width: 1180px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 20px; }
  .sitebar .brand { color: var(--ink); font-size: 19px; }
  .sitebar .brand-mark { background: #fff; border: 1px solid var(--line); width: 38px; height: 38px; }
  .site-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); }
  .site-search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 42px; font-size: 15px; outline: none; color: var(--ink); }
  .site-search:focus-within { box-shadow: 0 0 0 3px #F2A65A; }
  .sitebar .link { margin-inline-start: auto; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .lang-btn.dark { color: var(--ink); border-color: var(--line); }

  /* home */
  .hero { padding: 0; }
  .hero-in { width: 100%; box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 24px 32px 120px; display: flex; flex-direction: column; gap: 40px; }
  .hero h1 { font-size: 44px; line-height: 1.15; letter-spacing: -0.5px; }
  .hero p { font-size: 17px; }
  .searchbox { max-width: 760px; margin: -72px auto 0; padding: 8px; padding-inline-start: 18px; }
  .searchbox input { height: 56px; font-size: 18px; }
  .searchbox .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
  .section { max-width: 1180px; margin: 0 auto; padding: 32px 32px 0; }
  .section h2, .h2 { font-size: 22px; }
  .cat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; overflow: visible; }
  .cat-row .cat { flex: none; }
  .cat-group + .cat-group { margin-top: 20px; }
  .cat-group-title { font-size: 15px; }
  .cat { min-height: 128px; justify-content: center; padding: 18px 8px 14px; border-radius: 16px; }
  .cat-ic { width: 54px; height: 54px; border-radius: 14px; }
  .cat-ic .ic { width: 28px; height: 28px; }
  .cat-name { font-size: 15px; }
  .cat-grid.all { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .featured-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); overflow: visible; }
  .featured-row .mini { flex: none; }
  .join-card { max-width: 1116px; margin: 36px auto 0; padding: 24px 28px; }
  .join-card b { font-size: 18px; }
  .footer { padding: 40px 20px 48px; }

  /* page bars on inner pages */
  .pagebar { position: static; padding: 24px max(32px, calc((100% - 1180px) / 2 + 32px)) 20px; }
  .pagebar h1 { font-size: 28px; }
  .pagebar .sub { font-size: 14px; }
  .pagebar .searchbox { max-width: 760px; }

  /* category & search pages: card grid */
  .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
  .list { max-width: 1180px; margin: 0 auto; padding: 24px 32px 48px; }
  .list .empty, .list .loading { grid-column: 1 / -1; }
  .card { padding: 18px; }

  /* profile: details left, sticky contact panel right */
  .profile-layout { max-width: 1180px; margin: 0 auto; padding: 24px 32px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .profile-main .cover { height: 300px; border-radius: 20px; }
  .profile-main .cover .share { display: none; }
  .profile-main .pcard { margin: -56px 28px 0; }
  .profile-main .psec { padding: 26px 8px 0; }
  .profile-main .psec p { font-size: 16px; max-width: 68ch; }
  .profile-main .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .profile-main .gallery button { flex: none; width: auto; height: 160px; }
  .profile-main .price { display: none; }
  .profile-main .report-link { padding: 22px 4px 0; }
  .dock, .spacer { display: none; }
  .contact-panel { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; background: var(--surface); border-radius: 20px; padding: 22px; box-shadow: 0 6px 24px rgba(20, 24, 31, 0.08); }
  .cp-head { display: flex; gap: 12px; align-items: center; }
  .cp-head b { display: block; font-size: 18px; }
  .cp-head div > span:not(.status) { font-size: 14px; color: var(--muted); }
  .cp-price { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
  .cp-price span { font-size: 14px; color: var(--muted); }
  .cp-btn { min-height: 56px; font-size: 17px; border-radius: 14px; }
  .cp-contacts { display: flex; flex-direction: column; gap: 10px; }
  .cp-contacts .contact-btn { min-height: 52px; font-size: 16px; }
  .cp-contacts .note { margin: 2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
  .contact-panel > .btn-ghost { align-self: center; display: flex; align-items: center; gap: 6px; font-size: 14px; }

  /* other pages */
  .join { max-width: 760px; margin: 0 auto; padding: 32px; }
  .join h1 { font-size: 34px; }
  .overlay { align-items: center; }
  .sheet { border-radius: 24px; max-width: 520px; }
  .toast { bottom: 32px; }
}


/* provider's private stats page */
.stats { padding: 16px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.stats-private { margin: 0; font-size: 13px; color: #6B4A00; background: #FFF6DB; border-radius: 10px; padding: 10px 12px; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.stats-card h2 { margin: 0; font-size: 17px; }
.stats-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stats-rows li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.stats-rows li:first-child { border-top: 0; }
.stats-rows .lbl { font-size: 15px; color: var(--ink); }
.stats-rows b { font-size: 18px; font-variant-numeric: tabular-nums; }
.stats-rows li.big b { font-size: 30px; color: var(--primary-dark); }
.stats-rows small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.stats-rank { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--primary-dark); background: var(--primary-tint); border-radius: 10px; padding: 10px 12px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { text-align: start; padding: 8px 4px; border-top: 1px solid var(--line); }
.stats-table thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: 13px; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-table tbody th { font-weight: 400; }

.stats-top { background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.stats-top .brand { color: #fff; }
.stats-head { max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; padding: 20px 16px 0; }
.stats-head h1 { margin: 0; font-size: 24px; }
.stats-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .stats-top { padding: 14px max(32px, calc((100% - 1180px) / 2 + 32px)); } .stats-head { padding: 32px 32px 0; } .stats-head h1 { font-size: 30px; } .stats { padding: 20px 32px 48px; } }

.join-contact { display: flex; flex-direction: column; gap: 10px; }
.join-btn { min-height: 64px; font-size: 17px; justify-content: flex-start; gap: 14px; padding: 10px 20px; }
.join-btn svg { flex-shrink: 0; width: 24px; height: 24px; }
.join-btn span { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: start; line-height: 1.25; }
.join-btn small { font-size: 13px; font-weight: 400; opacity: .9; }
