/* =========================================================
   SellBuyPK — stylesheet (works in Urdu RTL and English LTR)
   Uses logical properties (inline-start/end) so layout
   mirrors automatically when <html dir="rtl">.
   ========================================================= */
:root {
  --brand: #046A38; --brand-600: #0A8349; --brand-50: #EDF7F1; --brand-100: #D2EBDD; --brand-800: #03512B;
  --ink: #171714; --ink-800: #2B2A26; --ink-600: #5E5C55; --ink-400: #9A988F; --ink-200: #DAD9D3; --ink-100: #EDEDE9; --ink-50: #F7F7F5;
  --bad: #C0342B; --bad-50: #FDF0EF; --warn: #A15C07; --warn-50: #FFF6E5; --wa: #1FA855;
  --surface: #fff; --ink-900: #14231A; --ink-500: #7B7970;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  font-family: "IBM Plex Sans", "Noto Naskh Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-50); color: var(--ink); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-600); font-size: .88em; }
.text-bad { color: var(--bad); font-weight: 600; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; margin-inline: auto; }
.page { padding-block: 20px 110px; min-height: 60vh; }
.stack > * + * { margin-top: 16px; }
.row-center { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.row-end { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
[dir="ltr"] .num, .q-price, .detail-price, .ad-card-price, .kpi-num { font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-200); }
.topbar-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); font-size: 1.1rem; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .5px; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  background: linear-gradient(135deg, #046A38 0 36%, #0E9F6E 36% 60%, #F59E0B 60% 82%, #E5484D 82% 100%); }
.gov-form { flex: 0 1 190px; min-width: 0; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ink-200); background: var(--surface); }
@media (max-width: 640px) { .hide-mobile { display: none !important; } .logo > span:last-child { display: none; } }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding-inline: 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-sm { height: 36px; padding-inline: 12px; font-size: .9rem; }
.btn-lg { height: 50px; padding-inline: 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-ghost { background: var(--surface); border-color: var(--ink-200); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

.input, .select { width: 100%; height: 46px; padding-inline: 12px; border: 1px solid var(--ink-200); border-radius: 10px; background: var(--surface); }
textarea.input { height: auto; padding-block: 10px; resize: vertical; }
.select-sm { height: 38px; font-size: .9rem; }
.input:focus, .select:focus { outline: 2px solid var(--brand-600); outline-offset: -1px; border-color: transparent; }
[aria-invalid="true"] { border-color: var(--bad) !important; background: var(--bad-50); }
.field { display: block; }
.field > span:first-child { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 600; margin-top: 6px; }
.hint { color: var(--ink-600); font-size: .84rem; margin-block: 6px 10px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.input-affix { position: relative; }
.input-affix .input { padding-inline-end: 56px; }
/* Urdu page, left-to-right number box: the unit sits on the left, so the room goes on the left too */
[dir="rtl"] .input-affix .input[dir="ltr"] { padding-left: 56px; padding-right: 14px; text-align: right; }
.affix { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--ink-600); font-size: .9rem; pointer-events: none; }
.phone { display: flex; }
.phone-cc { display: grid; place-items: center; padding-inline: 12px; background: var(--ink-100); border: 1px solid var(--ink-200); border-right: 0; border-radius: 10px 0 0 10px; color: var(--ink-600); font-weight: 600; }
.phone .input { border-radius: 0 10px 10px 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Cards, flash, sections ---------- */
.card { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.card-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head .card-title { margin-bottom: 0; }
.step { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; }
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.section-title { font-size: 1.2rem; font-weight: 700; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 22px 12px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-block: 14px; font-weight: 500; }
.flash-ok { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.flash-err { background: var(--bad-50); color: var(--bad); border: 1px solid #F3C9C5; }
.flash-warn { background: var(--warn-50); color: var(--warn); border: 1px solid #F5DDB0; }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--ink-200); border-radius: var(--radius); margin-top: 16px; }
.empty-emoji { font-size: 2.6rem; margin-bottom: 8px; }
.empty p { color: var(--ink-600); margin-bottom: 14px; }
.done h1 { font-size: 1.4rem; margin-bottom: 6px; }
.terms { font-size: .82rem; color: var(--warn); background: var(--warn-50); border: 1px solid #F5DDB0; padding: 10px 12px; border-radius: 10px; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-800) 100%); color: #fff; border-radius: 18px; padding: 28px 20px; margin-top: 4px; }
.hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }
.hero p { opacity: .85; margin-top: 4px; }
.search { display: flex; gap: 8px; margin-top: 16px; }
.search .input { flex: 1; }
.hero .btn-primary { background: #fff; color: var(--brand); }
.search-inline { margin-top: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); text-align: center; transition: border-color .15s, transform .15s; box-shadow: var(--shadow); }
.cat-tile:hover { border-color: var(--brand-600); transform: translateY(-2px); }
.cat-emoji { font-size: 2rem; line-height: 1; }
.cat-name { font-weight: 600; font-size: .92rem; }
.crumbs { font-size: .88rem; color: var(--ink-600); margin-block: 14px 6px; }
.crumbs a { color: var(--brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 8px; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ink-200); font-size: .88rem; font-weight: 500; }
.chip-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Ad cards ---------- */
.ad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .ad-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ad-grid { grid-template-columns: repeat(4, 1fr); } }
.ad-card { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.ad-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ad-card-img { position: relative; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--ink-100); flex: none; }
.ad-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* 2.7.1: tall phone photos can no longer stretch the card */
.ad-card-noimg { display: grid; place-items: center; height: 100%; font-size: 2.4rem; opacity: .6; }
.badge { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.badge-featured { background: #F5B400; color: #3D2B00; }
.ad-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ad-card-title { font-size: .93rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-price { font-weight: 700; color: var(--brand); }
.ad-card-meta { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; font-size: .76rem; color: var(--ink-600); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }

/* ---------- Listing detail ---------- */
.detail { display: grid; gap: 18px; margin-top: 8px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide-empty { font-size: 3rem; background: var(--ink-100); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.slider-prev { inset-inline-start: 10px; }
.slider-next { inset-inline-end: 10px; }
.slider-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dot-on { background: #fff; }
.slider-count { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 6px; }
.detail-title { font-size: 1.4rem; font-weight: 700; }
.detail-subtitle { color: var(--ink-600); margin-top: 2px; }
.detail-price { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin-block: 8px 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.facts div { background: var(--surface); border: 1px solid var(--ink-200); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .75rem; color: var(--ink-600); }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.quote-cta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: var(--shadow); transition: background .15s; }
.quote-cta:hover { background: var(--brand-800); }
.quote-cta-ico { font-size: 1.6rem; line-height: 1; }
.quote-cta-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quote-cta-main strong { font-size: 1.05rem; }
.quote-cta-main span { font-size: .85rem; opacity: .92; }
.quote-cta-go { font-size: 1.6rem; line-height: 1; opacity: .9; }
.quote-box { max-width: 560px; margin: 20px auto; }
.quote-ad { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--ink-50); margin-bottom: 14px; }
.quote-ad-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.quote-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.quote-ad-title { font-weight: 700; display: block; }
.contact-desktop { display: none; flex-direction: column; gap: 8px; margin-top: 16px; }
@media (min-width: 900px) { .contact-desktop { display: flex; } }
.safety { margin-top: 16px; background: var(--warn-50); border: 1px solid #F5DDB0; color: #6B3E03; border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.safety p { margin-top: 4px; }
.description { white-space: normal; line-height: 1.8; }
[data-fav].is-fav { background: var(--bad-50); border-color: #F3C9C5; color: var(--bad); }

/* Floating mobile action bar */
.actionbar { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--ink-200); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
@media (min-width: 900px) { .actionbar { display: none; } }
.actionbar-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 12px; border: 1px solid var(--ink-200); background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; }
.ab-call { background: var(--brand); border-color: var(--brand); color: #fff; }
.ab-wa { background: var(--wa); border-color: var(--wa); color: #fff; }

/* Sticky "Post an Ad" button */
.sticky-cta { position: fixed; z-index: 40; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; display: flex; align-items: center; gap: 6px; height: 52px; padding-inline: 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(11,115,80,.35); }
.sticky-cta:hover { background: var(--brand-800); }

/* ---------- Post ad ---------- */
.seg { display: inline-flex; background: var(--ink-100); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink-600); }
.seg button.seg-on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.lang-block { background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 10px; padding: 12px; }
.lang-block[hidden] { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-200); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview:first-child { outline: 2px solid var(--brand-600); }
.preview-cover { position: absolute; bottom: 4px; inset-inline-start: 4px; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.preview-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; cursor: pointer; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 2px dashed var(--ink-200); border-radius: 12px; color: var(--ink-600); font-weight: 600; cursor: pointer; text-align: center; }
.dropzone:hover { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-emoji { font-size: 1.8rem; }
.submit-bar { position: sticky; bottom: 0; background: linear-gradient(to top, var(--ink-50) 70%, transparent); padding-block: 14px calc(14px + env(safe-area-inset-bottom)); }

/* ---------- Admin ---------- */
.admin-wide .wrap { max-width: 1500px; }
.admin-nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 4px; margin-bottom: 18px; overflow-x: auto; }
.admin-nav a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--ink-600); white-space: nowrap; }
.admin-nav a.on { background: var(--brand-50); color: var(--brand); }
.admin-nav .logout { margin-inline-start: auto; color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpis-small { margin-top: 10px; grid-template-columns: repeat(3, 1fr) !important; }
.kpi { background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.kpi-num { font-size: 1.7rem; font-weight: 700; }
.kpi-label { color: var(--ink-600); font-size: .84rem; }
.kpi-warn { background: var(--warn-50); border-color: #F5DDB0; }
.kpi-warn .kpi-num { color: var(--warn); }
.kpi-bad .kpi-num { color: var(--bad); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.table th { color: var(--ink-600); font-weight: 600; font-size: .8rem; }
.table a { color: var(--brand); font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; background: var(--ink-100); }
.tag-approved { background: var(--brand-50); color: var(--brand); }
.tag-rejected { background: var(--bad-50); color: var(--bad); }
.tag-edited { background: var(--warn-50); color: var(--warn); }
.count-pill { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding-inline: 8px; border-radius: 999px; background: var(--warn-50); color: var(--warn); font-size: .9rem; vertical-align: middle; }

.queue-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .queue-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { .queue-grid { grid-template-columns: 1fr 1fr 1fr; } }
.q-card { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 80px; }
.q-card:target { outline: 3px solid var(--warn); }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 14px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); font-size: .8rem; }
.q-id { background: var(--ink); color: #fff; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.q-time { margin-inline-start: auto; }
.q-body { display: flex; gap: 14px; padding: 14px; }
.q-thumbs { flex: none; width: 128px; height: 128px; border-radius: 10px; overflow: hidden; background: var(--ink-100); display: grid; gap: 2px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.q-thumbs-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.q-thumbs-2 { grid-template-rows: 1fr; }
.q-thumbs-3 .q-thumb:first-child { grid-row: span 2; }
.q-thumb { position: relative; overflow: hidden; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.q-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; }
.q-noimg { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-items: center; font-size: 2rem; opacity: .5; }
.q-info { min-width: 0; flex: 1; }
.q-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-price { font-weight: 700; color: var(--brand); font-size: 1.1rem; margin-block: 2px 6px; }
.q-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .8rem; }
.q-meta dt { color: var(--ink-600); }
.q-meta dd { margin: 0; }
.q-desc { padding: 0 14px 12px; font-size: .9rem; color: var(--ink-800); max-height: 7.5em; overflow: hidden; }
.q-edit { border-top: 1px solid var(--ink-100); }
.q-edit summary { padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; }
.q-edit summary::-webkit-details-marker { display: none; }
.q-edit[open] summary { background: var(--warn-50); }
.q-edit form { padding: 14px; background: #FFFBF3; }
.q-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink-100); margin-top: auto; }
.q-actions form { display: contents; }
.q-btn { border: 0; background: var(--surface); padding: 14px 8px; font-weight: 700; cursor: pointer; font-size: .92rem; }
.q-approve { color: var(--brand); border-inline-end: 1px solid var(--ink-100); }
.q-approve:hover { background: var(--brand-50); }
.q-reject { color: var(--bad); }
.q-reject:hover { background: var(--bad-50); }
.modal { border: 0; border-radius: 16px; padding: 20px; width: min(92vw, 460px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(23,23,20,.5); }
.login-box { max-width: 400px; margin: 40px auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink-200); background: var(--surface); padding-block: 18px; font-size: .85rem; }
.footer-in { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.has-actionbar .footer { padding-bottom: 90px; }

/* =========================================================
   v2 additions
   ========================================================= */
.small { font-size: .82rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; }
.link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.req { color: var(--bad); }
.section-gap { margin-top: 26px; margin-bottom: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.big { font-size: 1.2rem; font-weight: 700; margin-inline-end: 8px; }
.input-xs { width: 80px; height: 36px; }
.input-num { max-width: 160px; }
.btn-danger-text { color: var(--bad) !important; }
.field-label { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.table .num, .num { text-align: end; font-variant-numeric: tabular-nums; }

/* Announcement */
.announce { background: var(--ink); color: #fff; font-size: .88rem; padding-block: 8px; text-align: center; }

/* Account menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; z-index: 50; }
.menu-pop a { padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.menu-pop a:hover { background: var(--ink-50); }
.menu-danger { color: var(--bad); }
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: .85rem; flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.8rem; }
@media (max-width: 640px) { .logo-text { display: none; } .gov-form { flex: 1 1 auto; } }

/* Homepage */
.cat-count { font-size: .78rem; color: var(--ink-600); font-variant-numeric: tabular-nums; }
.chip-n { font-size: .75rem; opacity: .7; margin-inline-start: 2px; }
.ad-card-featured { border-color: #E9C46A; box-shadow: 0 0 0 1px #F3DC9C, var(--shadow); }
.ad-card-spec { text-align: start; unicode-bidi: plaintext; font-size: .78rem; color: var(--ink-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-count { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 6px; }
.badge-lg { font-size: .85rem; padding: 4px 10px; top: 12px; inset-inline-start: 12px; }

/* Browse with filters */
.browse { display: grid; gap: 18px; margin-top: 14px; }
@media (min-width: 960px) { .browse { grid-template-columns: 270px 1fr; align-items: start; } .filters { position: sticky; top: 76px; } }
.filters-box { background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters-summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters-summary::-webkit-details-marker { display: none; }
.filters-summary::after { content: '▾'; color: var(--ink-400); }
.filters-box[open] .filters-summary { border-bottom: 1px solid var(--ink-100); }
.filters-form { padding: 14px 16px 16px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-form .select { min-width: 190px; }

/* Ad page */
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-strip { text-align: end; font-size: .85rem; margin-top: 6px; }
.admin-strip a { color: var(--warn); font-weight: 600; }
.seller-box { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; }
.seller-box:hover { border-color: var(--brand-600); }
.seller-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seller-go { color: var(--brand); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.specs div { background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: 10px; padding: 10px 12px; }
.specs dt { font-size: .75rem; color: var(--ink-600); }
.specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.specs .spec-link { grid-column: span 2; min-width: 0; }
.specs .spec-link a { color: var(--brand); display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.specs .spec-link a:hover { text-decoration: underline; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--ink-100); color: var(--ink-800); white-space: nowrap; vertical-align: middle; }
.pill-approved, .pill-ok { background: var(--brand-50); color: var(--brand); }
.pill-pending_approval, .pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-rejected { background: var(--bad-50); color: var(--bad); }
.pill-expired { background: var(--ink-100); color: var(--ink-600); }
.pill-featured { background: #FFF4D6; color: #7A5600; }
.pill-brand { background: var(--brand); color: #fff; }

/* Seller page */
.profile-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main .page-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-bio { margin-top: 8px; max-width: 65ch; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; }

/* Auth */
.auth-box { max-width: 420px; margin: 28px auto; }
.auth-alt { margin-top: 16px; text-align: center; }
.auth-box .muted.small { margin-top: 8px; text-align: center; }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ink-200); margin-bottom: 16px; }
.tab { padding: 10px 14px; font-weight: 600; color: var(--ink-600); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab-on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink-100); font-size: .75rem; text-align: center; margin-inline-start: 4px; }
.tab-on .tab-n { background: var(--brand-50); }

/* My ads */
.my-list { display: flex; flex-direction: column; gap: 10px; }
.my-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.my-thumb { flex: none; width: 110px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--ink-100); display: grid; place-items: center; font-size: 1.6rem; }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.my-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; }
.my-title { font-size: 1rem; font-weight: 700; }
.my-price { color: var(--brand); font-weight: 700; }
.my-reason { background: var(--bad-50); color: var(--bad); padding: 8px 10px; border-radius: 8px; font-size: .85rem; }
.my-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
@media (max-width: 520px) { .my-thumb { width: 84px; height: 72px; } }

/* Post form extras */
.attr-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--ink-200); }
.attr-block[hidden] { display: none; }
.attr-title { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }
.preview-existing { cursor: pointer; }
.preview-remove { position: absolute; top: 4px; inset-inline-end: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; border-radius: 6px; padding: 2px 6px; display: flex; align-items: center; gap: 4px; }
.preview-existing:has(input:checked) img { opacity: .3; }
.preview-existing:has(input:checked) { outline: 2px solid var(--bad); }

/* Prose pages */
.prose { margin-top: 10px; }
.prose-body { line-height: 1.9; max-width: 70ch; }
.prose-body h2 { font-size: 1.08rem; margin: 22px 0 6px; }
.prose-body h2:first-child { margin-top: 6px; }
.prose-body p { margin: 0 0 10px; }
.prose h2 { font-size: 1.08rem; margin: 22px 0 8px; }
.page-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.specs .spec-wide { grid-column: 1 / -1; }
.footer-biz { margin-top: 6px; font-size: .78rem; }
.declare .check { align-items: flex-start; gap: 10px; margin: 0; color: var(--ink-900); font-size: .9rem; }
.declare .check input { margin-top: 3px; flex: none; width: 20px; height: 20px; }
.declare-err { border-color: var(--bad); }
.complaint-box { max-width: 620px; margin: 20px auto; }
.complaint-no { font-size: 1.5rem; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.complaint-reply { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.complaint-item { border: 1px solid var(--ink-200); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: var(--surface); }
.complaint-text { white-space: pre-wrap; margin: 8px 0 0; }
.hp-field { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Footer v2 */
.footer-grid { display: grid; gap: 18px; grid-template-columns: 1fr; padding-block: 8px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a:hover { color: var(--brand); }
.footer-tag { margin-top: 6px; }
.footer-bottom { border-top: 1px solid var(--ink-100); margin-top: 14px; padding-top: 12px; font-size: .8rem; }

/* =========================================================
   Admin control panel
   ========================================================= */
body.admin { background: #F3F4F1; }
.adm { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .adm { grid-template-columns: 240px 1fr; } }
.adm-side { background: #10231B; color: #D6E4DC; padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
@media (max-width: 1023px) { .adm-side { display: none; } .adm-side.open { display: flex; } }
.adm-logo { color: #fff; padding-inline: 8px; }
.adm-logo .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: #C3D4CB; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.on { background: var(--brand-600); color: #fff; }
.adm-ico { width: 20px; text-align: center; opacity: .9; }
.adm-count { margin-inline-start: auto; background: #F5B400; color: #3D2B00; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.adm-side-foot { margin-top: auto; font-size: .85rem; padding-inline: 12px; }
.adm-side-foot a { color: #9FC0AE; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ink-200); backdrop-filter: blur(6px); }
.adm-menu { display: grid; }
@media (min-width: 1024px) { .adm-menu { display: none; } }
.adm-title { font-size: 1.15rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.adm-user { font-size: .85rem; color: var(--ink-600); display: none; }
@media (min-width: 720px) { .adm-user { display: inline; } }
.adm-content { padding: 20px 16px 60px; max-width: 1400px; width: 100%; }
@media (min-width: 720px) { .adm-content { padding-inline: 24px; } }
.adm-content > .card:first-child, .adm-content .kpis:first-child { margin-top: 0; }
.adm-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .adm-grid { grid-template-columns: 1.6fr 1fr; } }
.adm-grid > .card { margin-top: 0; }
.adm-2col { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .adm-2col { grid-template-columns: 1fr 340px; } }
.adm-2col > .stack > .card:first-child, .adm-2col > aside > .card:first-child { margin-top: 0; }
.kpi { display: block; }
a.kpi:hover { border-color: var(--brand-600); }
.kpi-label { font-size: .8rem; color: var(--ink-600); font-weight: 600; }
.kpi-sub { font-size: .76rem; color: var(--ink-600); margin-top: 2px; }
.kpis-small { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 720px) { .kpis-small { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1200px) { .kpis-small { grid-template-columns: repeat(6, 1fr) !important; } }
.kpis-small .kpi-num { font-size: 1.3rem; }
.kpi-bad { background: var(--bad-50); border-color: #F3C9C5; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 520px; height: auto; display: block; }
.chart-grid { stroke: var(--ink-100); stroke-width: 1; }
.chart-base { stroke: var(--ink-200); stroke-width: 1; }
.chart-axis { fill: var(--ink-600); font-size: 11px; font-family: inherit; }
.chart-fill { fill: #0A8349; }
.chart-hit { fill: transparent; }
.chart-bar:hover .chart-fill { fill: #03512B; }
.chart-bar:hover .chart-hit { fill: rgba(14,138,95,.06); }
.table-scroll { overflow-x: auto; }
.table tbody tr:hover { background: var(--ink-50); }
.row-child td:first-child { padding-inline-start: 26px; }
.row-hl td { background: #FFF6CC; }
.adm-search { margin-bottom: 14px; }
.adm-search + .card { margin-top: 0; margin-bottom: 16px; }
.adm-search .input[type=search] { height: 44px; }
.row-root td { font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .input[type=search] { flex: 1 1 260px; min-width: 0; }
.toolbar .select { width: auto; min-width: 150px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; position: sticky; top: 62px; z-index: 5; }
.bulk-bar .select { width: auto; }
.bulk-days { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-600); }
.table-ads td { vertical-align: middle; }
.t-thumb { display: grid; place-items: center; width: 52px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--ink-100); font-size: 1rem; }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-thumb-lg { width: 110px; height: 88px; flex: none; }
.t-title a { font-weight: 600; }
.t-title { min-width: 220px; }
.quick { display: flex; flex-direction: column; gap: 8px; }
.reject-inline { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink-100); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card-danger { border-color: #F3C9C5; }
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report { display: flex; gap: 14px; margin-top: 0; }
.report-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.report-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.report-title { font-size: 1rem; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-note { background: var(--ink-50); border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .report { flex-direction: column; } }
.q-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 14px 10px; }
.q-specs div { background: var(--ink-50); border-radius: 8px; padding: 3px 8px; font-size: .78rem; display: flex; gap: 4px; }
.q-specs dt { color: var(--ink-600); }
.q-specs dd { margin: 0; font-weight: 600; }
.q-full { margin-inline-start: 10px; }
.check-lg { font-weight: 600; }
.inline-field { display: flex; align-items: center; gap: 8px; }
.inline-field > span:first-child { margin: 0; }
.settings-form .field { max-width: 720px; }

/* Phone header: governorate menu gets its own row */
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-block: 8px; row-gap: 8px; }
  .gov-form { order: 3; flex: 1 1 100%; }
  .topbar-actions { gap: 4px; }
}

/* =========================================================
   v3: homepage banner slider + category pictures
   ========================================================= */
.banner-slider { position: relative; border-radius: 18px; overflow: hidden; margin-top: 4px; box-shadow: var(--shadow); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 7; min-height: 190px; max-height: 360px; width: 100%;
  background: var(--bn, #046A38); color: #fff; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.banner::before { content: ''; position: absolute; inset-inline-end: -8%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); z-index: -1; }
.banner::after { content: ''; position: absolute; inset-inline-end: 12%; bottom: -45%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); z-index: -1; }
.banner-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px clamp(20px, 5vw, 56px); max-width: 62%; }
.banner-title { font-size: clamp(1.35rem, 3.6vw, 2.3rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.banner-sub { font-size: clamp(.88rem, 1.6vw, 1.05rem); opacity: .88; }
.banner-btn { margin-top: 6px; background: #fff; color: #10231B; font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: .9rem; }
.banner-emoji { position: absolute; inset-inline-end: clamp(18px, 7vw, 90px); top: 50%; transform: translateY(-50%); font-size: clamp(4.2rem, 13vw, 9rem); line-height: 1; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.banner-img { background: #10231B; }
.banner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-img::before { inset: 0; top: 0; width: 100%; aspect-ratio: auto; border-radius: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
[dir="rtl"] .banner-img::before { background: linear-gradient(270deg, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
.banner-img::after { display: none; }
[dir="rtl"] .banner-flip img { transform: scaleX(-1); }
.banner-img:not(.banner-flip)::before { display: none; }
.banner-img .banner-text { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.banner-slider .slider-btn { opacity: .85; }
.banner-slider .slider-dots { bottom: 12px; }
.banner-slider .dot { width: 8px; height: 8px; cursor: pointer; }
.banner-slider .dot-on { width: 22px; border-radius: 999px; }
@media (max-width: 640px) {
  .banner { aspect-ratio: auto; min-height: 200px; }
  .banner-text { max-width: 70%; padding: 18px 18px 34px; }
  .banner-slider .slider-btn { display: none; }
}
.search-bar { margin-top: 14px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); }
.search-bar .input { border: 0; }

/* Category tiles with pictures */
.cat-tile { gap: 10px; padding: 16px 8px 14px; }
.cat-pic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; font-size: 2.1rem; line-height: 1; overflow: hidden; transition: transform .2s; }
.cat-pic.has-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .cat-pic { transform: scale(1.06) rotate(-2deg); }
@media (min-width: 900px) { .cat-pic { width: 84px; height: 84px; font-size: 2.6rem; } }
.sub-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.sub-item { flex: 0 0 auto; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; scroll-snap-align: start; }
.sub-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; overflow: hidden; border: 2px solid #fff; box-shadow: var(--shadow); transition: transform .2s; }
.sub-pic.has-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-item:hover .sub-pic { transform: translateY(-2px); }
.sub-name { font-size: .8rem; font-weight: 600; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .cat-pic, .sub-pic { transition: none; } .cat-tile:hover .cat-pic { transform: none; } }

/* Admin: banners & category pictures */
.banner-admin { display: grid; gap: 12px; }
.banner-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px; }
@media (max-width: 760px) { .banner-row { grid-template-columns: 1fr; } }
.banner-thumb { position: relative; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; background: var(--bn, #046A38); color: #fff; display: flex; align-items: center; padding: 10px 14px; font-weight: 700; font-size: .9rem; }
.banner-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-thumb .bt-emoji { margin-inline-start: auto; font-size: 2rem; }
.banner-thumb.off { opacity: .45; }
.pic-edit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pic-edit .cat-pic { width: 84px; height: 84px; font-size: 2.6rem; }
.color-input { width: 64px; height: 42px; padding: 3px; border: 1px solid var(--ink-200); border-radius: 10px; background: var(--surface); }
.mini-pic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 1rem; overflow: hidden; vertical-align: middle; }
.mini-pic.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   v4: marketplace header + category tiles (OpenSooq-style layout)
   ========================================================= */
.topbar { display: none; }
.hdr { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--ink-200); }
.hdr-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.hdr-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-logo img { height: 46px; width: auto; max-width: 170px; object-fit: contain; }
.hdr-logo .logo-mark { width: 42px; height: 42px; border-radius: 11px; font-size: .9rem; }
.hdr-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.hdr-logo-main { font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.hdr-logo-alt { font-weight: 700; color: #fff; background: var(--brand); border-radius: 5px; padding: 1px 6px; font-size: .78rem; letter-spacing: .02em; margin-top: 2px; align-self: flex-start; }
.hdr-search { flex: 1 1 auto; max-width: 520px; display: flex; border: 2px solid var(--brand); border-radius: 12px; overflow: hidden; background: var(--surface); }
.hdr-search input { flex: 1; min-width: 0; border: 0; height: 44px; padding-inline: 14px; font-size: 1rem; background: transparent; }
.hdr-search input:focus { outline: none; }
.hdr-search:focus-within { box-shadow: 0 0 0 3px var(--brand-100); }
.hdr-search button { border: 0; background: var(--brand); color: #fff; font-weight: 700; padding-inline: 18px; cursor: pointer; font-size: .95rem; }
.hdr-search button:hover { background: var(--brand-800); }
.hdr-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.hdr-ico { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-900); }
.hdr-ico:hover { background: var(--ink-100); }
.hdr-ico svg { width: 22px; height: 22px; fill: currentColor; }
.hdr-badge { position: absolute; top: 2px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #E5484D; color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.hdr-lang { font-weight: 600; font-size: .88rem; padding: 8px 10px; border-radius: 8px; color: var(--ink-800); }
.hdr-lang:hover { background: var(--ink-100); }
.hdr-login { font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; padding: 8px 10px; white-space: nowrap; font-size: .92rem; }
.hdr-user { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.hdr-user::-webkit-details-marker { display: none; }
.hdr-user:hover { background: var(--ink-100); }
.hdr-cta { display: inline-flex; align-items: center; gap: 8px; background: #F2A007; color: #2B1B00; font-weight: 700; height: 46px; padding-inline: 16px; border-radius: 10px; white-space: nowrap; box-shadow: 0 2px 0 #C98300; }
.hdr-cta:hover { background: #F7B32B; }
.hdr-cta svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 1100px) { .hdr-lang { display: none; } }
@media (max-width: 860px) {
  .hdr-in { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-block: 10px; }
  .hdr-search { order: 3; flex: 1 1 100%; max-width: none; }
  .hdr-login { padding: 6px; font-size: .85rem; }
  .hdr-lang { display: inline-block; padding: 6px; }
  .hdr-cta span { display: none; }
  .hdr-cta { height: 40px; padding-inline: 10px; }
  .hdr-logo-text { display: none; }
}
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Wide banner like big marketplaces: ~4:1 on desktop */
.banner { aspect-ratio: 4 / 1; min-height: 200px; max-height: 300px; }
@media (max-width: 640px) { .banner { aspect-ratio: auto; min-height: 170px; } }
.banner-slider { margin-top: 16px; }

/* Category tiles */
.tiles-head { margin-top: 28px; }
.view-all { color: var(--brand); font-weight: 700; font-size: 1.05rem; display: inline-flex; gap: 6px; align-items: center; }
.view-all:hover { text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(10, minmax(0, 1fr)); } .tile { padding-inline: 10px; } .tile-name { font-size: .88rem; } }
@media (max-width: 559px) { .tiles > .tile-sell { grid-column: span 2; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 136px; padding: 12px 12px 10px; border-radius: 12px; background: #F1F2F4; overflow: hidden; transition: background .15s, transform .15s; }
.tile:hover { background: #E7E9EC; transform: translateY(-2px); }
.tile-name { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--ink-900); overflow-wrap: anywhere; }
.tile-pic { align-self: center; font-size: 2.9rem; line-height: 1; margin-top: 8px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.14)); }
.tile-img { width: 76px; height: 64px; filter: none; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-hot { background: #FFD60A; }
.tile-hot:hover { background: #FFCC00; }
.tile-new { display: inline-block; background: #E5484D; color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.tile-sell { background: var(--brand-50); }
.tile-sell:hover { background: var(--brand-100); }
@media (max-width: 559px) { .tile { min-height: 118px; padding: 10px; } .tile-name { font-size: .86rem; } .tile-pic { font-size: 2.4rem; } }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* All-categories & showrooms pages */
.allcats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.allcat { background: var(--surface); border: 1px solid var(--ink-200); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.allcat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.allcat-head .cat-pic { width: 52px; height: 52px; font-size: 1.7rem; border-radius: 14px; }
.allcat-head a { font-weight: 700; font-size: 1.05rem; }
.allcat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.allcat li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.allcat li a:hover { background: var(--ink-50); color: var(--brand); }
.showrooms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.showroom { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.showroom:hover { border-color: var(--brand-600); }
.showroom-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.showroom-name { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.notif { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 12px 14px; }
.notif-unread { border-color: var(--brand-600); background: var(--brand-50); }
.notif-ico { font-size: 1.4rem; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.hdr .short { display: none; }
@media (max-width: 860px) {
  .hdr-logo { order: 0; }
  .hdr-actions { order: 1; margin-inline-start: auto; gap: 2px; }
  .hdr-ico { width: 36px; height: 36px; }
  .hdr-ico svg { width: 20px; height: 20px; }
}
@media (max-width: 560px) {
  .hdr .long { display: none; }
  .hdr .short { display: inline; }
  .hdr-ico-ads { display: none; }
  .hdr-logo .logo-mark { width: 38px; height: 38px; }
  .hdr-user .avatar { width: 30px; height: 30px; }
  .hdr-logo img { height: 38px; max-width: 96px; }   /* 2.7.1: an uploaded logo keeps the header on one line */
}
.chips-lead { margin-top: 10px; }
.chips-child { margin-top: 6px; align-items: center; }
.chips-label { flex: none; font-size: .85rem; font-weight: 700; color: var(--ink-600); padding-inline-end: 4px; }
.chips-child .chip { background: var(--ink-50); }
.chips-child .chip-on { background: var(--brand); }

/* ---------- v6: area checkboxes in filters ---------- */
.area-checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.area-checks legend { font-size: .88rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.area-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--ink-200); border-radius: 10px; padding: 2px 10px 8px; background: var(--surface); }
.area-list .check { margin-top: 6px; }
.adm-areas td input.input { min-width: 120px; }
.adm-areas td { vertical-align: middle; }
.adm-areas td .input[name$="[sort_order]"] { width: 72px !important; }

/* ---------- v7: sold, business pages, directory, stats ---------- */
.pill-sold { background: #FDEBD3; color: #8A4B14; }
.sold-banner { background: #8A4B14; color: #fff; border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; font-size: .95rem; }
.owner-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.owner-actions form { margin: 0; }
.avatar-img { overflow: hidden; background: var(--surface); border: 1px solid var(--ink-200); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-head { padding: 0; overflow: hidden; }
.biz-cover { aspect-ratio: 16 / 5; max-height: 280px; background: var(--ink-100); }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 18px 18px 6px; }
.biz-head.has-cover .biz-top { margin-top: -44px; }
.biz-head.has-cover .biz-top > .avatar { border: 4px solid #fff; box-shadow: var(--shadow); width: 88px; height: 88px; }
.biz-head.has-cover .profile-main { padding-top: 48px; }
.biz-top .profile-main { flex: 1 1 260px; min-width: 0; }
.biz-top .profile-actions { display: flex; flex-direction: row; gap: 8px; flex-wrap: wrap; align-items: center; }
.biz-top .profile-actions form { margin: 0; }
.biz-head .profile-bio { padding: 0 18px; margin: 4px 0 10px; }
.biz-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; margin: 0; padding: 4px 18px 6px; }
.biz-info dt { font-size: .8rem; color: var(--ink-600); }
.biz-info dd { margin: 0; font-weight: 500; }
.biz-links { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 18px 18px; }
.biz-head > :last-child:not(.biz-links) { margin-bottom: 14px; }
.biz-logo-preview { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 1px solid var(--ink-200); margin-bottom: 6px; }
.biz-logo-preview img, .biz-cover-preview img, .biz-admin-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-cover-preview { aspect-ratio: 16 / 5; border-radius: 10px; overflow: hidden; margin-bottom: 6px; background: var(--ink-100); }
.biz-admin-pic { max-width: 220px; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; border: 1px solid var(--ink-200); }
.showrooms-1 { grid-template-columns: 1fr; }
.showrooms-1 .showroom { justify-content: space-between; }
.showroom-link { display: flex; gap: 12px; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.showroom-link:hover .showroom-name { color: var(--brand); }
.showrooms-1 .showroom form { margin: 0; }
.dir-filter { margin: 12px 0 16px; }
@media (max-width: 560px) {
  .biz-top { padding: 14px 14px 4px; }
  .biz-head.has-cover .biz-top { margin-top: -36px; }
  .biz-head.has-cover .profile-main { padding-top: 0; }
  .biz-top .profile-actions { width: 100%; }
}

/* ---------- v8: chat, inbox, saved searches, reviews ---------- */
.actionbar { grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none; }
.actionbar-btn { font-size: .86rem; padding: 0 4px; }
.menu { position: relative; }
.menu-btn { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 500; cursor: pointer; color: inherit; }
.menu-btn:hover { background: var(--ink-50); }
.menu-pop form { margin: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-tools form { margin: 0; }

.chat-page .footer { display: none; }
.chat { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; height: calc(100dvh - 190px); min-height: 460px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ink-100); }
.chat-back { font-size: 1.3rem; padding: 4px 8px; border-radius: 8px; }
.chat-back:hover { background: var(--ink-50); }
.chat-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.chat-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chat-ad { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--ink-50); border-bottom: 1px solid var(--ink-100); color: inherit; }
.chat-ad-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--surface); display: grid; place-items: center; flex: none; }
.chat-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.chat-ad-title { display: block; font-weight: 600; font-size: .92rem; }
.chat-ad-price { display: block; color: var(--brand); font-weight: 700; font-size: .88rem; }
.chat-thread { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background: #F6F8F7; }
.chat-empty { text-align: center; margin: auto; max-width: 36ch; }
.chat-day { align-self: center; font-size: .75rem; color: var(--ink-600); background: var(--surface); border: 1px solid var(--ink-100); border-radius: 999px; padding: 2px 10px; margin: 6px 0; }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 16px; position: relative; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg img { display: block; max-width: 240px; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.msg-me { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.msg-them { align-self: flex-start; background: var(--surface); border: 1px solid var(--ink-100); border-end-start-radius: 4px; }
.msg-time { display: block; font-size: .68rem; opacity: .7; text-align: end; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--ink-100); background: var(--surface); }
.chat-input { resize: none; min-height: 44px; max-height: 140px; padding-top: 10px; flex: 1; }
.chat-photo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-200); cursor: pointer; font-size: 1.2rem; flex: none; }
.chat-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chat-send { height: 44px; }
.chat-hint { padding: 0 12px 8px; margin: 0; }
.chat-blocked { padding: 14px; text-align: center; color: var(--ink-600); border-top: 1px solid var(--ink-100); }
.chat-menu .menu-pop { min-width: 160px; }
@media (max-width: 560px) {
  .chat { border-radius: 0; border-inline: 0; margin: -16px -16px 0; height: calc(100dvh - 150px); }
  .msg { max-width: 86%; }
}

.inbox { display: flex; flex-direction: column; gap: 8px; }
.inbox-row { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 14px; padding: 10px 12px; color: inherit; }
.inbox-row:hover { border-color: var(--brand-600); }
.inbox-unread { border-color: var(--brand); background: var(--brand-50); }
.inbox-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--ink-50); display: grid; place-items: center; flex: none; }
.inbox-img img { width: 100%; height: 100%; object-fit: cover; }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inbox-top { display: flex; justify-content: space-between; gap: 8px; }
.inbox-ad, .inbox-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-unread .inbox-last { color: var(--ink); font-weight: 600; }
.inbox-badge { background: var(--brand); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; padding: 0 6px; }

.ss-list { display: flex; flex-direction: column; gap: 10px; }
.ss-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.ss-main { display: flex; gap: 8px; align-items: center; flex: 1 1 260px; min-width: 0; color: inherit; font-weight: 600; }
.ss-main:hover .ss-name { color: var(--brand); }
.ss-actions { display: flex; gap: 8px; align-items: center; }
.ss-actions form { margin: 0; }

.stars { color: #E0A100; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: var(--ink-200); }
.rating { color: #8A6400; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.rating-line { margin: 2px 0 4px; }
.rating-line a { color: inherit; }
.review-list { display: flex; flex-direction: column; }
.review { padding: 12px 0; border-top: 1px solid var(--ink-100); }
.review:first-child { border-top: 0; }
.review p { margin: 6px 0 0; }
.review-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-form { background: var(--ink-50); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.star-pick { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 4px; float: none; width: 100%; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2rem; line-height: 1; color: var(--ink-200); cursor: pointer; padding: 0 2px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #E0A100; }
.star-pick input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.review-card { margin: 0; }
.review-comment { background: var(--ink-50); border-radius: 10px; padding: 10px 12px; }

/* ---------- v9: promotion, wallet, packages ---------- */
.ad-card-highlight { border: 2px solid #E0A100; box-shadow: 0 0 0 3px #FFF3CC; }
.ad-card-highlight .ad-card-body { background: #FFFBEF; }
.badge-pin { background: #1D4F7C; color: #fff; }
.badge-highlight { background: #E0A100; color: #1A1400; }
.text-ok { color: var(--brand); font-weight: 600; }
form.inline { display: inline-block; margin: 0; }
.promo-ad { display: flex; gap: 12px; align-items: center; color: inherit; padding: 12px; }
.promo-ad > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.promo-ad-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--ink-50); display: grid; place-items: center; flex: none; }
.promo-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.wallet-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 10px 14px; margin: 12px 0; }
.promo-type { border: 1px solid var(--ink-200); margin: 0; }
.promo-type legend { font-weight: 700; font-size: 1.05rem; padding: 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.promo-ico { font-size: 1.3rem; }
.promo-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.promo-opt { position: relative; display: flex; flex-direction: column; gap: 2px; border: 2px solid var(--ink-200); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.promo-opt input { position: absolute; opacity: 0; }
.promo-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.promo-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.promo-opt-off { opacity: .45; cursor: not-allowed; }
.promo-days { font-weight: 700; }
.promo-price { color: var(--brand); font-weight: 600; font-size: .9rem; }
.wallet-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.wallet-balance { font-size: 2rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.wallet-limit { text-align: end; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pay-how { margin-top: 14px; padding: 12px 14px; background: var(--ink-50); border-radius: 12px; }
.pay-how p { margin: 6px 0 10px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pkg { border: 1px solid var(--ink-200); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pkg-on { border: 2px solid var(--brand); background: var(--brand-50); }
.pkg-name { font-weight: 700; font-size: 1.05rem; }
.pkg-price { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
.pkg ul { margin: 4px 0 8px; padding-inline-start: 18px; font-size: .9rem; color: var(--ink-800); }
.pkg .btn { margin-top: auto; }

/* ---------- v10: payment, SMS codes, checks, notifications ---------- */
.pill-flag { background: #FDEBE9; color: #A1271D; font-weight: 600; }
.q-flags { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.input-code { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.forgot-link { margin: 6px 0 0; text-align: end; }
.status-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.test-pay { border: 2px dashed #E0A100; }
.push-card { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-50); border-color: var(--brand-100); }
.push-card > div { flex: 1 1 240px; }
.push-card p { margin: 4px 0 0; }
.q-flags .pill { white-space: normal; max-width: 100%; line-height: 1.3; }

/* ---------- Show / hide password ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-inline-end: 104px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); height: 36px; padding-inline: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; border: 0; border-radius: 10px; background: transparent; color: var(--ink-600); cursor: pointer; }
.pw-eye:hover { background: var(--ink-50); color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pw-eye svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.pw-eye[aria-pressed="true"] { color: var(--brand); }

/* ---------- v11: My account area (side menu + dashboard) ---------- */
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-main { min-width: 0; }
.acc-main .narrow { max-width: none; margin: 0; }
.acc-main > .card:first-child, .acc-main > .narrow > .card:first-child { margin-top: 0; }
.acc-side { min-width: 0; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.acc-user { display: flex; gap: 12px; align-items: center; }
.acc-avatar { flex: none; position: relative; }
.acc-avatar .avatar-xl { width: 56px; height: 56px; font-size: 1.4rem; }
.acc-user-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-name { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.acc-badges:empty { display: none; }
.acc-post { margin-top: 12px; display: none; }
.acc-nav { display: flex; gap: 6px; overflow-x: auto; margin: 12px -12px -12px; padding: 10px 12px; border-top: 1px solid var(--ink-100); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a { display: flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 999px; background: var(--ink-50); border: 1px solid var(--ink-100); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.acc-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.acc-nav a.on .acc-count { background: rgba(255,255,255,.22); color: #fff; }
.acc-ico { font-size: 1rem; line-height: 1; }
.acc-count { background: var(--ink-100); color: var(--ink-800); border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-count-hot { background: var(--bad); color: #fff; }
.acc-logout { color: var(--bad); }
@media (min-width: 900px) {
  .acc { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
  .acc-side { position: sticky; top: 84px; padding: 16px; }
  .acc-user { flex-direction: column; text-align: center; }
  .acc-user-main { align-items: center; width: 100%; }
  .acc-name { max-width: 100%; }
  .acc-avatar .avatar-xl { width: 76px; height: 76px; font-size: 1.9rem; }
  .acc-post { display: flex; }
  .acc-nav { flex-direction: column; gap: 2px; overflow: visible; margin: 14px -16px -16px; padding: 8px; }
  .acc-nav a { background: none; border: 0; border-radius: 10px; padding: 10px 12px; font-size: .93rem; }
  .acc-nav a:hover { background: var(--ink-50); }
  .acc-nav a.on { background: var(--brand-50); color: var(--brand); }
  .acc-nav a.on .acc-count { background: var(--brand); color: #fff; }
  .acc-nav a.on .acc-count-hot { background: var(--bad); }
  .acc-ico { width: 22px; text-align: center; }
  .acc-count { margin-inline-start: auto; }
  .acc-logout { margin-top: 6px; border-top: 1px solid var(--ink-100) !important; border-radius: 0 0 10px 10px !important; }
  .acc-main .ad-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) and (max-width: 1100px) { .acc-main .ad-grid { grid-template-columns: repeat(2, 1fr); } }
.btn-cta { background: #F2A007; color: #2B1B00; font-weight: 700; box-shadow: 0 2px 0 #C98300; }
.btn-cta:hover { background: #E59700; }
.menu-pop a.menu-strong { font-weight: 700; color: var(--brand); }

/* Dashboard home */
.dash-hello { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); color: #fff; box-shadow: var(--shadow); }
.dash-hello .muted { color: rgba(255,255,255,.85); }
.dash-hello .rating, .dash-hello .rating .muted { color: #fff; }
.dash-hi { opacity: .85; font-size: .92rem; }
.dash-name { font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-hello .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.dash-stat:hover { border-color: var(--brand); transform: translateY(-1px); }
.dash-stat-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; }
.ds-green { background: var(--brand-50); } .ds-amber { background: var(--warn-50); } .ds-red { background: var(--bad-50); } .ds-blue { background: #EBF2FC; } .ds-purple { background: #F3EEFB; }
.dash-stat-n { font-size: 1.3rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-stat-l { font-size: .78rem; color: var(--ink-600); line-height: 1.3; }
.dash-tips { border-color: var(--warn); background: var(--warn-50); }
.dash-email { display: flex; align-items: center; gap: 14px; border-color: var(--brand-100); background: var(--brand-50); }
.dash-email .card-title { margin: 0 0 2px; }
.dash-email p { margin: 0; }
.dash-email-ico { font-size: 30px; line-height: 1; }
.dash-email-act { margin-inline-start: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) { .dash-email { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px 12px; } .dash-email-ico { font-size: 24px; } .dash-email-act { grid-column: 1 / -1; flex-direction: row; margin: 0; gap: 16px; } }
.dash-tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dash-tip-list a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-weight: 500; }
.dash-tip-list a:hover { box-shadow: 0 0 0 1px var(--warn); }
.dash-go { margin-inline-start: auto; color: var(--ink-400); font-size: 1.2rem; }
[dir="rtl"] .dash-go { transform: scaleX(-1); }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 1000px) { .dash-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.dash-list { list-style: none; margin: 12px 0 0; padding: 0; }
.dash-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ink-100); }
.dash-list li:first-child { border-top: 0; }
.dash-thumb { flex: none; width: 52px; height: 42px; border-radius: 8px; overflow: hidden; background: var(--ink-100); display: grid; place-items: center; }
.dash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-li-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dash-li-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dash-li-title:hover { color: var(--brand); }
.dash-li-act { flex: none; padding: 4px; border-radius: 6px; }
.dash-li-act:hover { background: var(--ink-50); }
.dash-unread .dash-li-title { color: var(--brand); }
.dash-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-50); display: grid; gap: 4px; }
.dash-warn-row { display: flex; justify-content: space-between; gap: 8px; }
.dash-warn-row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-sm { padding: 20px 12px; margin-top: 10px; }
.empty-sm p { margin-bottom: 10px; }

/* Profile photo */
.photo-form { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-now .avatar-xl { width: 88px; height: 88px; font-size: 2.2rem; }
.photo-fields { flex: 1; min-width: 220px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-sm { width: 26px; height: 26px; }

/* ---------- v11.1: one short video (reel) per ad ---------- */
.badge-video { position: absolute; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.66); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.badge-video > span { font-size: .62rem; }
.reel-btn { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); backdrop-filter: blur(4px); font-variant-numeric: tabular-nums; }
[dir="rtl"] .reel-btn { padding: 6px 6px 6px 14px; }
.reel-btn:hover { background: rgba(0,0,0,.85); }
.reel-play { width: 30px; height: 30px; border-radius: 50%; background: #F2A007; color: #2B1B00; display: grid; place-items: center; font-size: .8rem; padding-inline-start: 2px; }
.reel-dialog { padding: 0; border: 0; background: transparent; width: min(100vw, calc(92vh * 9 / 16)); max-width: 100vw; max-height: 100vh; overflow: visible; }
.reel-dialog::backdrop { background: rgba(0,0,0,.88); }
.reel-dialog video { display: block; width: 100%; max-height: 92vh; aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: 14px; }
.reel-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 600px) { .reel-dialog { width: 100vw; } .reel-dialog video { border-radius: 0; max-height: 100vh; height: 100vh; aspect-ratio: auto; } }
.video-pick { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--ink-200); }
.video-now, .video-preview { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0; }
.video-now video, .video-preview video, .q-video video { width: 140px; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 10px; }
.video-preview[hidden], .video-now[hidden] { display: none; }
.dropzone-video { min-height: 0; padding-block: 16px; }
.q-video { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.q-video video { width: 110px; }


/* ---------- SellBuyPK: Urdu text, places, rupee prices ---------- */
/* Urdu reads best a little larger and with more room between lines than Latin text */
html[lang="ur"] body { font-size: 16.5px; line-height: 1.75; }
html[lang="ur"] .btn, html[lang="ur"] .chip, html[lang="ur"] .pill, html[lang="ur"] .input, html[lang="ur"] .select { line-height: 1.6; }
html[lang="ur"] .ad-card-title, html[lang="ur"] .detail-title { line-height: 1.7; }
[lang="ur"] { font-family: "Noto Naskh Arabic", "IBM Plex Sans", system-ui, sans-serif; }
.hdr-logo-alt[lang="ur"] { font-size: .82rem; padding-block: 0 2px; }
.place-fields { margin-bottom: 4px; }
.place-fields [hidden] { display: none; }
.place-fields select[disabled] { opacity: .6; }
.chips-place { flex-wrap: wrap; overflow: visible; }
.price-words { color: var(--ink-600); font-weight: 600; font-size: .95rem; }
.detail-price .price-words { font-size: 1rem; margin-inline-start: 4px; }
p.price-words { margin-block: 4px 0; color: var(--brand); }
p.price-words[hidden] { display: none; }
.kpis-places { margin-bottom: 14px; }
.kpis-places .kpi { padding: 12px 14px; }
.kpis-places .kpi-num { font-size: 1.35rem; }
.place-crumbs { font-size: .95rem; margin-block: 16px 4px; }
.place-found { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place-found li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dir-filter .select { flex: 0 1 220px; }

/* ---------- Admin → Chats ---------- */
.chat-parties { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.chat-party { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.chat-parties + .flash { margin-top: 14px; }
.adm-chat { margin-top: 14px; background: var(--surface); border: 1px solid var(--ink-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); max-width: 860px; }
.adm-chat .chat-thread { overflow: visible; min-height: 160px; }
.adm-chat-key { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--ink-100); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.key-buyer, .key-seller { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--ink-200); background: #fff; }
.key-seller { background: var(--brand); border-color: var(--brand); }
.msg-from { display: block; font-size: .7rem; font-weight: 700; opacity: .8; margin-bottom: 2px; }

/* ---- Sample ads (1.9.5) ---- */
.badge-sample { background: #1F2937; color: #fff; letter-spacing: .02em; }
.ad-card-sample .ad-card-price { color: #6b7280; }
.sample-stamp { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; background: #1F2937; color: #fff; font-weight: 800; font-size: .95rem; padding: 6px 14px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
.sample-note { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: #EEF4FF; border: 1px solid #C7D7FE; color: #1E3A8A; }
.sample-note strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.sample-note p { margin: 0 0 10px; color: #1F2937; }
.sample-note-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Chat extras (1.9.6): ticks, quick replies, offers, voice, chat-only ads ---- */
.msg-tick { letter-spacing: -2px; margin-inline-start: 2px; }
.msg-me .msg-tick.msg-seen { color: #9BE7FF; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px 0; background: var(--surface); border-top: 1px solid var(--ink-100); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick .chip { flex: none; white-space: nowrap; }
.chat-quick + .chat-form { border-top: 0; }
.chip-offer { background: #FFF6D6; border-color: #F5B400; color: #5C4300; font-weight: 700; }
.chat-mic[hidden] { display: none; }
.chat-mic { background: var(--surface); }
.chat-voice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; border-top: 1px solid var(--ink-100); background: var(--surface); }
.chat-voice audio { height: 40px; max-width: 100%; flex: 1 1 200px; }
.rec-dot { color: #C1121F; font-weight: 700; flex: 1; }
.msg-voice { display: flex; align-items: center; gap: 6px; }
.msg-voice audio { height: 38px; max-width: 220px; }
.msg-voice-len { font-size: .75rem; opacity: .8; }
.msg-offer { border: 2px solid #F5B400; min-width: 200px; }
.msg-me.msg-offer { background: #03512B; }
.offer-head { font-size: .78rem; font-weight: 700; opacity: .85; }
.offer-amount { font-size: 1.3rem; font-weight: 800; margin: 2px 0; }
.offer-st { display: block; font-size: .8rem; opacity: .9; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-note { align-self: center; font-size: .85rem; background: var(--surface); border: 1px solid var(--ink-100); border-radius: 12px; padding: 5px 12px; text-align: center; }
.msg-note .msg-time { display: inline; margin-inline-start: 6px; }
.msg-note-ok { background: #EDF7F1; border-color: #A7D7BC; }
.msg-note-no { background: #FDF0F0; border-color: #F2C4C4; }
.chat-only-note { margin: 10px 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-size: .9rem; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.hide-phone { margin-top: 10px; }
.actionbar-btn.ab-main { background: var(--brand); color: #fff; }

/* ---- Reels (1.9.8) ---- */
.reel-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.reel-row::-webkit-scrollbar { display: none; }
.reel-tile { position: relative; flex: none; width: 132px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #111; color: #fff; scroll-snap-align: start; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
@media (min-width: 900px) { .reel-tile { width: 168px; } }
.reel-tile img { width: 100%; height: 100%; object-fit: cover; }
.reel-tile-noimg { display: grid; place-items: center; height: 100%; font-size: 2rem; }
.reel-tile-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font-size: 1rem; }
.reel-tile-len { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 6px; font-size: .72rem; font-weight: 700; }
.reel-tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: flex; flex-direction: column; gap: 2px; }
.reel-tile-title { font-size: .8rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-tile-price { font-size: .82rem; font-weight: 800; color: #9BE7B4; }
.reels-page .hdr, .reels-page .footer { display: none; }
.reels-page main.page { max-width: none; padding: 0; margin: 0; }
.reels-page { background: #000; }
.reels { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; background: #000; position: relative; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.reel-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-tap { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }
.reel-tap.paused::after { content: '▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; display: grid; place-items: center; }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.reel-info a { pointer-events: auto; }
.reel-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.reel-price { font-weight: 800; font-size: 1.2rem; color: #9BE7B4; }
.reel-place { font-size: .85rem; opacity: .85; }
.reel-cta { align-self: flex-start; margin-top: 8px; }
.reel-sample { position: absolute; top: 60px; inset-inline-start: 14px; background: #1F2937; color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 8px; font-size: .85rem; }
.reels-back, .reels-sound { position: fixed; top: calc(12px + env(safe-area-inset-top)); z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer; }
.reels-back { inset-inline-start: 12px; }
.reels-sound { inset-inline-end: 12px; }
.reels-empty { color: #fff; height: 100vh; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 24px; }

/* ---- Pages (1.9.8): lists in page texts, admin page editor ---- */
.prose-body ul { margin: 0 0 14px; padding-inline-start: 22px; }
.prose-body li { margin: 4px 0; }
.page-editor .pe-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.page-editor .pe-preview { border: 1px dashed var(--ink-200); border-radius: 10px; padding: 12px 14px; min-height: 200px; background: var(--surface); }
.login-switch { margin: -4px 0 0; }

/* ---- 2-step login (1.9.9) ---- */
.qr-box { width: 220px; height: 220px; margin: 10px 0; border: 1px solid var(--ink-200); border-radius: 10px; overflow: hidden; background: #fff; }
.qr-box svg { display: block; width: 100%; height: 100%; }
.setup-key { display: inline-block; font-size: 1rem; letter-spacing: 1px; background: var(--ink-50); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.steps-list { padding-inline-start: 20px; display: grid; gap: 14px; }
.backup-codes { background: #FFF8E1; border: 1px solid #F5D77A; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.backup-codes ol { columns: 2; margin: 8px 0; padding-inline-start: 22px; }
.backup-codes code { font-size: 1.05rem; letter-spacing: 1px; }

/* ---- 2.0: AdSense slots, banner booking, opening hours ---- */
.ad-slot { margin: 16px 0; text-align: center; min-height: 100px; }
.ad-grid .ad-slot { grid-column: 1 / -1; margin: 4px 0; }
.ad-slot-label { display: block; font-size: .68rem; color: var(--ink-600); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.banner-sponsor { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; z-index: 2; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px 14px; cursor: pointer; background: var(--surface); }
.choice span { display: flex; flex-direction: column; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.booking-list { display: grid; gap: 10px; }
.booking { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: start; }
.booking img { width: 160px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 8px; background: var(--ink-50); }
.booking-admin { padding: 10px 0; border-top: 1px solid var(--ink-100); }
@media (max-width: 560px) { .booking { grid-template-columns: 1fr; } .booking img { width: 100%; } }
.input-sm { height: 34px; padding: 4px 10px; font-size: .88rem; }
.free-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.hours-edit .hours-row { display: grid; grid-template-columns: 130px 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.hours-edit .hours-row .input { height: 38px; }
@media (max-width: 480px) { .hours-edit .hours-row { grid-template-columns: 1fr 1fr auto 1fr; font-size: .9rem; } }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin: 10px 0 4px; }
.open-badge.is-open { color: #0A7C3E; }
.open-badge.is-closed { color: #B42318; }
.open-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.open-badge-sm { font-size: .78rem; margin: 2px 0; }
.open-badge-sm .open-dot { width: 8px; height: 8px; }
.hours-table { border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: 2px 14px 2px 0; }
.hours-table tr.today td { font-weight: 700; }

/* Admin → Backup (2.0.4) */
.backup-status { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.backup-status.backup-ok { border-color: var(--brand-100); background: var(--brand-50); }
.backup-status.backup-warn { border-color: var(--warn); background: var(--warn-50); }
.backup-status-main { flex: 1 1 320px; }
.backup-status-main p { margin: 0 0 4px; }
.backup-big { font-size: 1.05rem; }
.backup-make { display: grid; gap: 8px; justify-items: start; }
.backup-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.backup-acts form { display: inline; }
.backup-acts a.btn-primary, .backup-acts a.btn-primary:hover { color: #fff; text-decoration: none; }

/* Price drop (2.0.6) */
.price-was { color: var(--muted, #6b7280); font-weight: 400; font-size: .82em; margin-inline-start: 4px; }
.price-drop { display: inline-block; background: var(--bad-50); color: var(--bad); font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.price-drop-line { margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Admin → Searches (2.0.6) */
.search-sum { margin-bottom: 16px; }
.table .search-bar { display: block; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--brand-600); opacity: .35; margin-top: 6px; }

/* Coupons and invites (2.0.7) */
.wallet-extras { display: grid; gap: 12px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.invite-teaser { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-800); font-weight: 600; text-decoration: none; }
.invite-teaser span { flex: 1; }
.invite-hero { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 26px 18px; background: linear-gradient(135deg, var(--brand-50), #FFF6E5); border-color: var(--brand-100); }
.invite-hero .big { font-size: 2.6rem; line-height: 1; }
.invite-amounts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.invite-amounts div { background: var(--surface); border: 1px solid var(--brand-100); border-radius: 12px; padding: 10px 14px; min-width: 140px; }
.invite-amounts strong { display: block; font-size: 1.4rem; color: var(--brand); }
.invite-link { display: flex; gap: 8px; width: 100%; max-width: 520px; }
.invite-link .input { flex: 1; font-size: .95rem; }
.invite-share { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.invite-steps { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.invite-steps li { display: flex; gap: 10px; align-items: flex-start; }
.invite-steps li::before { counter-increment: s; content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Version in the admin panel (2.0.9) */
.adm-version { margin-top: 8px; font-size: .75rem; opacity: .6; }
.adm-version-line { margin: 0 0 12px; }

/* Social media buttons (2.1.0) */
.social-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--sc); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); color: #fff; }
.social-btn svg { flex: 0 0 auto; }
.social-btns-named { margin-bottom: 14px; }
.social-btns-named .social-btn { width: auto; border-radius: 999px; padding: 0 16px 0 10px; font-weight: 600; font-size: .9rem; }
.social-center { justify-content: center; }
.footer-social strong { display: block; margin-bottom: 2px; }
.footer-social p { margin: 0; }
.done-social { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--ink-200); }
.done-social p { margin: 0 0 6px; }

/* ================= Footer (2.1.1) ================= */
.footer { border-top: 0; background: none; padding: 0; font-size: .9rem; margin-top: 32px; }
.has-actionbar .footer { padding-bottom: 0; }
.has-actionbar .foot-bottom { padding-bottom: 90px; }
/* Help strip */
.foot-help { background: var(--brand-50); border-top: 1px solid var(--brand-100); }
.foot-help-in { display: grid; gap: 16px; padding-block: 22px; }
@media (min-width: 1200px) { .foot-help-in { grid-template-columns: 190px 1fr; align-items: center; } }
.foot-help-head strong { display: block; font-size: 1.15rem; color: var(--brand-800); }
.foot-help-head span { color: var(--ink-500, #5b6b62); font-size: .88rem; }
.foot-help-items { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-help-item { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--brand-100); border-radius: 16px; padding: 12px 14px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; min-width: 0; }
.foot-help-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(4, 106, 56, .12); }
.fh-ico { flex: 0 0 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.fh-wa .fh-ico { background: var(--wa); }
.fh-phone .fh-ico { background: #0F766E; }
.fh-mail .fh-ico { background: #D97706; }
.fh-msg .fh-ico { background: #C0342B; }
.fh-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fh-title { font-size: .78rem; color: var(--ink-500, #5b6b62); }
.fh-val { font-weight: 700; font-size: .92rem; color: var(--ink-900, #14231a); overflow-wrap: anywhere; }
.fh-note { font-size: .72rem; color: var(--ink-500, #5b6b62); }
/* Deep green link area */
.foot-main { background: #06301C; background-image: radial-gradient(circle at 15% 0%, rgba(10,131,73,.35), transparent 45%); color: #B9D3C4; }
.foot-main a { color: #E3F2E9; text-decoration: none; }
.foot-main a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px 20px; padding-block: 36px 26px; grid-template-columns: 1fr 1fr; }
.foot-brand, .foot-cats { grid-column: 1 / -1; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-cats { grid-column: auto / span 2; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.5fr 1.35fr 1fr 1fr 1fr; } .foot-brand, .foot-cats { grid-column: auto; } }
.foot-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; color: #fff !important; text-decoration: none !important; }
.foot-brand p { margin: 12px 0 14px; line-height: 1.65; max-width: 380px; }
.foot-install { background: #fff; color: var(--brand-800); border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.foot-follow { margin-top: 16px; }
.foot-follow > span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #8FB5A0; }
.foot-follow .social-btn { box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.foot-col h3 { color: #fff; font-size: .95rem; margin: 0 0 14px; padding-bottom: 9px; position: relative; }
.foot-col h3::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #22C55E, #14B8A6 40%, #F59E0B 70%, #EF4444); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-2col { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.foot-more { display: inline-block; margin-top: 12px; font-weight: 700; color: #86EFAC !important; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; font-size: .8rem; color: #8FB5A0; }
.foot-bottom .footer-biz { color: #8FB5A0; }
.foot-lang { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 14px; font-weight: 600; }

/* ================= "On your phone" band, home page (2.1.1) ================= */
.app-band { margin-top: 36px; background: linear-gradient(115deg, #035A2F 0%, #0A8349 55%, #0F766E 100%); color: #fff; overflow: hidden; }
.app-band + .footer { margin-top: 0; }
.app-band-in { display: grid; gap: 26px; align-items: center; padding-block: 38px; }
@media (min-width: 960px) { .app-band-in { grid-template-columns: 1.5fr auto 250px; } }
.app-band-kicker { display: inline-block; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 600; }
.app-band h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.2; margin: 12px 0 10px; color: #fff; }
.app-band-text p { opacity: .92; line-height: 1.6; max-width: 520px; margin: 0 0 16px; }
.app-band-actions { display: grid; gap: 10px; justify-items: start; }
.app-band-ios, .app-band-android { background: rgba(0,0,0,.18); border-radius: 12px; padding: 10px 14px; margin: 0; }
.app-band-qr { background: #fff; color: #14231a; border-radius: 18px; padding: 14px; width: 190px; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.app-band-qr .app-qr svg { width: 150px; height: 150px; display: block; margin: 0 auto; }
.app-band-qr p { font-size: .74rem; margin: 8px 0 0; color: #4b5a52; line-height: 1.4; }
@media (max-width: 959px) { .app-band-qr { display: none; } }
.phone-mock { width: 190px; height: 340px; margin-inline: auto; border-radius: 34px; background: #0B1A12; padding: 9px; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: rotate(-7deg); position: relative; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 56px; height: 14px; border-radius: 10px; background: #0B1A12; z-index: 2; }
.phone-screen { background: #F6F7F5; border-radius: 26px; height: 100%; padding: 32px 10px 10px; overflow: hidden; display: grid; gap: 8px; align-content: start; }
.pm-top { display: flex; align-items: center; gap: 6px; color: var(--brand-800); font-weight: 800; font-size: .78rem; }
.pm-top .logo-mark { width: 22px; height: 22px; font-size: .6rem; border-radius: 6px; }
.pm-search { height: 20px; border-radius: 10px; background: #fff; border: 1.5px solid var(--brand); }
.pm-row { display: flex; gap: 5px; }
.pm-row span { flex: 1; height: 26px; border-radius: 8px; background: #DCFCE7; }
.pm-row span:nth-child(2) { background: #CCFBF1; } .pm-row span:nth-child(3) { background: #FEF3C7; } .pm-row span:nth-child(4) { background: #FEE2E2; }
.pm-card { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; gap: 5px 8px; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pm-card i { grid-row: 1 / 3; height: 44px; border-radius: 7px; background: linear-gradient(135deg, #86EFAC, #22C55E); }
.pm-card i.c2 { background: linear-gradient(135deg, #99F6E4, #14B8A6); } .pm-card i.c3 { background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.pm-card b { height: 8px; border-radius: 4px; background: #D1D5DB; margin-top: 6px; }
.pm-card em { height: 8px; width: 55%; border-radius: 4px; background: var(--brand); opacity: .75; }
@media (max-width: 599px) { .app-band-phone { display: none; } }
.foot-admin-hint { display: block; margin-top: 14px; padding: 10px 12px; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 12px; font-size: .8rem; line-height: 1.5; color: #E3F2E9 !important; }
.foot-admin-hint-light { margin: 0; border-color: var(--brand); color: var(--brand-800) !important; background: var(--surface); grid-column: 1 / -1; }


/* =========================================================
   2.2.0 — map, installment calculator, job applications, dark mode
   ========================================================= */
.row-start { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.map-filter { display: flex; gap: 8px; align-items: center; }
.map-filter .select { width: auto; min-width: 170px; }
.map-note { margin: 6px 0 10px; }
.map-big, .map-small, .map-pick { position: relative; z-index: 0; border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; background: var(--ink-100); }
.map-big { height: 70vh; min-height: 380px; }
.map-small { height: 260px; margin-top: 10px; }
.map-pick { height: 280px; margin-top: 10px; cursor: crosshair; }
.map-failed::after { content: "Map could not load. Check the internet and refresh."; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-600); font-size: .9rem; padding: 16px; text-align: center; }
[lang="ur"] .map-failed::after { content: "نقشہ لوڈ نہیں ہو سکا۔ انٹرنیٹ چیک کر کے صفحہ دوبارہ کھولیں۔"; }
.map-dot span { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.map-pop { display: flex; flex-direction: column; gap: 3px; color: var(--ink) !important; min-width: 170px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.map-pop strong { font-size: .92rem; line-height: 1.3; }
.map-pop-price { color: var(--brand); font-weight: 700; }
.map-pop-where { color: var(--ink-600); font-size: .8rem; }
.map-pop-go { color: var(--brand); font-weight: 600; font-size: .85rem; margin-top: 2px; }
.map-page .leaflet-popup-content { margin: 10px; }
.pin-box { border: 1px solid var(--ink-200); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.pin-box > summary { cursor: pointer; font-weight: 600; }
.pin-box .row-start { margin-top: 10px; }
.map-place-note { margin-top: 6px; }

.calc-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 12px; }
@media (min-width: 720px) { .calc-grid { grid-template-columns: repeat(4, 1fr); } }
.calc-out { margin-top: 14px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); padding: 14px 16px; }
.calc-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--ink-600); }
.calc-main strong { font-size: 1.6rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 8px 0 0; font-size: .88rem; }
.calc-facts dt { color: var(--ink-600); }
.calc-facts dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.job-apply-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.applicant { margin-top: 14px; }
.applicant-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.applicant-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ink-50); white-space: normal; }
.applicant-acts, .applicant-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn-on { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }

.hdr-theme { color: var(--ink-800); }
.hdr-theme svg { width: 20px; height: 20px; }
html:not([data-theme="dark"]) .hdr-theme .ico-sun, html[data-theme="dark"] .hdr-theme .ico-moon { display: none; }

/* 2.2.1 fingerprint / face login */
[data-passkey-add][hidden], [data-passkey-wrap][hidden], [data-passkey-offer][hidden], [data-passkey-unsupported][hidden] { display: none !important; }
.pk-login { margin-bottom: 14px; }
.pk-login-btn { gap: 10px; border-color: var(--brand); color: var(--brand); }
.pk-or { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-600); font-size: .85rem; }
.pk-or::before, .pk-or::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }
.pk-msg:empty { display: none; }
.pk-msg { margin-top: 8px; }
.pk-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.pk-list li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--ink-50); }
.pk-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-ico { font-size: 1.4rem; }
.btn-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); font: inherit; text-decoration: underline; }

/* 2.2.2 "updated" message */
.upd-toast { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 460px; margin-inline: auto;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--brand-100);
  box-shadow: 0 12px 34px rgba(0,0,0,.18); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.upd-toast[hidden] { display: none; }
.upd-toast.upd-in { opacity: 1; transform: none; }
.upd-ico { font-size: 1.6rem; line-height: 1; }
.upd-body { flex: 1; min-width: 0; }
.upd-body p { margin-top: 4px; font-size: .88rem; color: var(--ink-600); }
.upd-ver { font-size: .78rem; font-weight: 600; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; }
.upd-toast .btn { align-self: center; flex: none; }
@media (prefers-reduced-motion: reduce) { .upd-toast { transition: none; } }

/* 2.3.0 wanted ads */
.wanted-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 640px) { .wanted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .wanted-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wanted-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wanted-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--ink-200); border-inline-start: 4px solid #F59E0B; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.wanted-card:hover { transform: translateY(-2px); border-color: #F59E0B; }
.wanted-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #7A4A00; background: #FFE8B8; border-radius: 999px; padding: 2px 10px; }
.wanted-cat { font-size: .8rem; color: var(--ink-600); }
.wanted-title { font-size: 1.02rem; line-height: 1.35; }
.wanted-budget { font-size: .9rem; color: var(--ink-600); }
.wanted-budget b { color: var(--brand); }
.wanted-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--ink-600); margin-top: auto; }
.wanted-detail-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.wanted-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .wanted-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wanted-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--ink-50); border: 1px solid var(--ink-100); }
.wanted-text { white-space: normal; margin: 8px 0 14px; }
.wanted-contact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink-100); display: flex; flex-direction: column; gap: 10px; }
.wanted-offer { display: flex; flex-wrap: wrap; gap: 8px; }
.wanted-offer .select { flex: 1 1 240px; width: auto; }
.wanted-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wanted-filter .select { width: auto; min-width: 160px; }

/* 2.3.0 fair price */
.fair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 9px 12px; border-radius: 12px; font-size: .88rem; border: 1px solid var(--ink-200); background: var(--ink-50); }
.fair-pill { font-weight: 800; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.fair-good { border-color: #A7E3C1; background: #EDFBF3; } .fair-good .fair-pill { background: #0A8349; color: #fff; }
.fair-fair { border-color: #BFD3F5; background: #F1F6FF; } .fair-fair .fair-pill { background: #2F5FBF; color: #fff; }
.fair-high { border-color: #F5D3A6; background: #FFF6EA; } .fair-high .fair-pill { background: #B45309; color: #fff; }
html[data-theme="dark"] .fair-good { background: #12271B; border-color: #1F4A31; }
html[data-theme="dark"] .fair-fair { background: #141E2E; border-color: #26395A; }
html[data-theme="dark"] .fair-high { background: #2A1E10; border-color: #5A3E19; }
html[data-theme="dark"] .wanted-tag { background: #3A2F10; color: #F3CF6E; }

/* 2.3.0 renew, Android app */
.renew-box .quote-ad { margin: 10px 0 14px; }
.check-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.copy-row { margin: 8px 0; }
.copy-row code { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--ink-50); border: 1px solid var(--ink-200); user-select: all; }
.play-btn { background: #111; color: #fff; }

/* 2.4.0 compare */
.compare-bar { position: fixed; z-index: 55; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-start: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ink-200); box-shadow: 0 10px 30px rgba(0,0,0,.18); white-space: nowrap; }
[dir="rtl"] .compare-bar { transform: translateX(50%); padding: 8px 16px 8px 10px; }
.compare-bar[hidden] { display: none; }
.compare-bar .is-disabled { opacity: .5; pointer-events: none; }
@media (max-width: 640px) { .compare-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.compare-scroll { overflow-x: auto; margin-top: 12px; border-radius: var(--radius); border: 1px solid var(--ink-200); background: var(--surface); }
.compare-table { width: 100%; min-width: calc(140px + var(--cols) * 200px); border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--ink-100); text-align: start; vertical-align: top; font-size: .92rem; }
.compare-table thead th { vertical-align: bottom; }
.compare-table tbody th { width: 140px; color: var(--ink-600); font-weight: 600; background: var(--ink-50); }
.compare-table thead th:first-child { width: 140px; }
.cmp-head { display: flex; flex-direction: column; gap: 6px; }
.cmp-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ink-100); font-size: 2rem; }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-price strong { font-size: 1.05rem; color: var(--brand); }
.cmp-best { background: var(--brand-50); }
.cmp-diff td { background: #FFFBEA; }
html[data-theme="dark"] .cmp-diff td { background: #26230F; }
@media (max-width: 640px) {
  .compare-table { min-width: calc(92px + var(--cols) * 150px); }
  .compare-table tbody th, .compare-table thead th:first-child { width: 92px; font-size: .82rem; }
  .compare-table th, .compare-table td { padding: 8px; font-size: .86rem; }
}
.fair-mini { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; color: #fff; }
.fair-mini.fair-good { background: #0A8349; } .fair-mini.fair-fair { background: #2F5FBF; } .fair-mini.fair-high { background: #B45309; }

/* 2.4.0 sold survey, trust strip, bulk upload, daily report */
.sold-answers { display: grid; gap: 10px; margin-top: 12px; }
.sold-skip { justify-self: center; margin-top: 4px; }
.trust-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-800); }
.trust-big { font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.bulk-table td { font-size: .88rem; }
.bulk-bad td { background: var(--bad-50); }
.bulk-help { margin-top: 12px; }
.bulk-help summary { cursor: pointer; font-weight: 600; }
.bulk-working progress { width: 100%; height: 14px; margin: 8px 0; }
.report-preview { border: 1px dashed var(--ink-200); border-radius: 12px; padding: 8px; background: #fff; color: #111; overflow-x: auto; }

/* 2.5.0 safer chat, voice search */
.msg-warn { align-self: stretch; margin: -2px 0 6px; padding: 8px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.45; background: #FFF6D6; border: 1px solid #F5D77A; color: #5C4300; }
.msg-warn a { color: inherit; font-weight: 700; text-decoration: underline; }
html[data-theme="dark"] .msg-warn { background: #2E2812; border-color: #6B5A20; color: #F3CF6E; }
.hdr-search .hdr-mic { background: transparent; color: var(--brand); padding-inline: 10px; display: grid; place-items: center; }
.hdr-search .hdr-mic[hidden] { display: none; }
.hdr-search .hdr-mic:hover { background: var(--brand-50); }
.hdr-mic svg { width: 22px; height: 22px; fill: currentColor; }
.hdr-mic.is-listening { color: #fff; background: #E5484D; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .hdr-mic.is-listening { animation: none; } }

/* 2.6.0 verification photos, subscription */
.vdoc-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vdoc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vdoc { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px dashed var(--ink-200); border-radius: 12px; background: var(--ink-50); font-weight: 600; font-size: .9rem; }
.vdoc-ico { font-size: 1.6rem; }
.vdoc input { font-size: .82rem; max-width: 100%; }
.vdoc-review { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.vdoc-review a { display: flex; flex-direction: column; gap: 4px; width: 160px; font-size: .8rem; color: var(--ink-600); }
.vdoc-review img { width: 160px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ink-200); }
.sub-box { border-color: var(--brand-100); }
.dup-keep td { background: var(--brand-50); }

/* ---------- Dark mode ---------- */
html[data-theme="dark"] { color-scheme: dark;
  --surface: #1A1F1C; --ink: #ECEDEA; --ink-800: #D7D9D4; --ink-600: #A6AAA3; --ink-500: #8E928B; --ink-400: #747870; --ink-200: #343B36; --ink-100: #262C28; --ink-50: #121614; --ink-900: #F2F3F0;
  --brand: #1F9D5A; --brand-600: #3DBE7A; --brand-800: #17854B; --brand-50: #15291E; --brand-100: #1F3B2B;
  --bad: #F0675E; --bad-50: #3A1D1B; --warn: #E3A33B; --warn-50: #33280F;
  --shadow: 0 1px 2px rgba(0,0,0,.4); }
html[data-theme="dark"] body { background: var(--ink-50); }
html[data-theme="dark"] .flash-ok, html[data-theme="dark"] .chat-only-note, html[data-theme="dark"] .foot-admin-hint-light { color: var(--brand-600) !important; }
html[data-theme="dark"] .hdr-search { border-color: var(--brand-800); }
html[data-theme="dark"] img { opacity: .95; }
html[data-theme="dark"] .q-edit form { background: #24231B; }
html[data-theme="dark"] .pill-featured { background: #3A2F10; color: #F3CF6E; }
html[data-theme="dark"] .row-hl td { background: #2F2A12; }
html[data-theme="dark"] .ad-card-highlight .ad-card-body { background: #26241A; }
html[data-theme="dark"] .chip-offer { background: #3A2F10; color: #F3CF6E; }
html[data-theme="dark"] .backup-codes { background: #2E2812; border-color: #6B5A20; }
html[data-theme="dark"] .input, html[data-theme="dark"] .select { background: #141916; }
html[data-theme="dark"] .input::placeholder { color: var(--ink-400); }
html[data-theme="dark"] .leaflet-container { background: #1E2420; }
html[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.75) contrast(1.1) saturate(.8); }
html[data-theme="dark"] .leaflet-popup-content-wrapper, html[data-theme="dark"] .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .tile { background: #222824; }
html[data-theme="dark"] .tile:hover { background: #2A312C; }
html[data-theme="dark"] .tile-hot, html[data-theme="dark"] .tile-hot:hover { background: #E8C21A; }
html[data-theme="dark"] .tile-hot .tile-name { color: #1A1A12; }
html[data-theme="dark"] .tile-sell { background: var(--brand-50); }
html[data-theme="dark"] .chat-thread { background: #151A17; }
html[data-theme="dark"] body.admin { background: var(--ink-50); }
html[data-theme="dark"] .safety { color: #F0C987; border-color: #5A4515; }
html[data-theme="dark"] .flash-warn, html[data-theme="dark"] .terms, html[data-theme="dark"] .kpi-warn { border-color: #5A4515; }
html[data-theme="dark"] .flash-err, html[data-theme="dark"] .kpi-bad, html[data-theme="dark"] .card-danger, html[data-theme="dark"] [data-fav].is-fav { border-color: #5C2A26; }
html[data-theme="dark"] .pill-sold { background: #3A2614; color: #F1B57A; }
html[data-theme="dark"] .ad-card-highlight { box-shadow: 0 0 0 3px #3A2F10; }
html[data-theme="dark"] .ad-card-featured { border-color: #8A6D1E; box-shadow: 0 0 0 1px #5A4715, var(--shadow); }

/* ---------- 2.7.0: WhatsApp share, quotations ---------- */
.btn-wa-share { display: inline-flex; align-items: center; gap: 6px; background: var(--wa); color: #fff; border: 1px solid var(--wa); font-weight: 700; }
.btn-wa-share:hover { filter: brightness(.95); color: #fff; }
.btn-wa-share svg { flex: none; }
.done-share { margin: 6px auto 16px; padding: 14px 16px; border: 1px dashed var(--wa); border-radius: 14px; max-width: 460px; background: var(--surface); }
.done-share p { margin: 0 0 10px; }
.chip-quote { background: #E8F4FF; border-color: #3B82C4; color: #0F3D66; }
.msg-quote { border-color: #3B82C4; }
.msg-quote .quote-incl { margin-top: 4px; font-size: .9rem; }
.quote-valid { display: block; margin: 4px 0 2px; }
.msg-me .quote-valid { color: rgba(255,255,255,.8); }
.quote-list { display: grid; gap: 12px; }
.quote-item { padding: 14px 16px; }
.quote-item.quote-new { border-color: #F5B400; box-shadow: 0 0 0 1px #F5B400 inset; }
.quote-item-top { display: flex; align-items: center; gap: 12px; }
.quote-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quote-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-details { margin: 10px 0 6px; white-space: normal; overflow-wrap: anywhere; }
.chips-sm .chip { font-size: .82rem; padding: 4px 10px; }
@media (max-width: 560px) { .quote-item-top { flex-wrap: wrap; } .quote-item-top .pill { margin-inline-start: 68px; } }
html[data-theme="dark"] .chip-quote { background: #14273A; border-color: #2F5F8F; color: #CFE6FF; }

/* ---------- 2.8.0: featured showrooms, Top 5 picture ---------- */
.showcase { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.showcase-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid #E8C25A; border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.showcase-card:hover { border-color: #F5B400; }
.showcase-cover { position: relative; aspect-ratio: 16 / 7; min-height: 0; overflow: hidden; background: linear-gradient(135deg, var(--brand), #0B8F50); }
.showcase-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-badge { position: absolute; inset-inline-start: 8px; top: 8px; background: #F5B400; color: #3A2A00; font-weight: 700; font-size: .75rem; border-radius: 999px; padding: 2px 9px; }
.showcase-body { display: flex; gap: 10px; align-items: center; padding: 10px 12px 12px; margin-top: -22px; position: relative; }
.showcase-body .avatar { border: 3px solid var(--surface); flex: none; box-shadow: var(--shadow); }
.showcase-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 18px; }
.showcase-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.showcase-plan { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.showcase-plan-best { border-color: #F5B400; box-shadow: 0 0 0 1px #F5B400 inset; }
.showcase-days { font-size: 1.3rem; }
.showcase-price { font-weight: 700; color: var(--brand); }
.top5-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.top5-pic img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--ink-200); display: block; }
@media (max-width: 860px) { .top5-wrap { grid-template-columns: 1fr; } }
html[data-theme="dark"] .showcase-card { border-color: #5A4715; }

/* 2.8.4: Ad strength */
.adq { background: var(--surface); border: 1px solid var(--ink-200); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.adq summary { list-style: none; cursor: pointer; display: grid; gap: 5px; }
.adq summary::-webkit-details-marker { display: none; }
.adq-head { display: flex; align-items: baseline; gap: 6px; font-size: .92rem; }
.adq-head::after { content: '▾'; margin-inline-start: auto; color: var(--ink-500, #888); }
.adq[open] .adq-head::after { content: '▴'; }
.adq-pct { color: var(--ink-500, #777); font-size: .85rem; }
.adq-bar { display: block; height: 7px; border-radius: 99px; background: var(--ink-100, #eee); overflow: hidden; }
.adq-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: #dc4c3e; transition: width .3s, background .3s; }
.adq[data-level="ok"] .adq-bar span { background: #e8a317; }
.adq[data-level="strong"] .adq-bar span { background: #11a36a; }
.adq[data-level="weak"] [data-adq-label] { color: #c2412f; }
.adq[data-level="ok"] [data-adq-label] { color: #b77800; }
.adq[data-level="strong"] [data-adq-label] { color: #0d8a59; }
.adq-next { line-height: 1.35; }
.adq-list { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.adq-list li { padding-inline-start: 26px; position: relative; }
.adq-list li::before { position: absolute; inset-inline-start: 0; top: 0; }
.adq-list li.adq-ok::before { content: '✅'; }
.adq-list li.adq-half::before { content: '🟡'; }
.adq-list li.adq-no::before { content: '⚪'; }
.adq-list li[data-n]::after { content: ' (' attr(data-n) ')'; color: var(--ink-500, #777); }
