/* حراج لها · نظام الواجهات
   الهوية المعتمدة: شعار «المنصة» (Alexandria) · اللون الأساسي «قهوة» · Thmanyah Sans للواجهة · بدون زخارف.
   تغيير اللون الأساسي = تعديل --clay و --clay-ink و --clay-tint و --ring فقط. */

@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/thmanyahsans-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/thmanyahsans-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url(fonts/thmanyahsans-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
/* خط العناوين المهمة: ثمانية Serif Display */
@font-face { font-family: 'Thmanyah Serif Display'; src: url(fonts/thmanyahserifdisplay-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --paper: #FBF8F4;
  --surface: #FFFDFA;
  --stone: #F4F1EC;
  --sand: #E6D7C3;
  --sand-2: #EFE5D8;
  --sand-3: #F6EFE6;
  /* اللون الأساسي (قهوة #6B4636). البدائل: حجر #7A6352 · طين #9A5A3C · زيتون #5E6445 */
  --clay: #6B4636;
  --clay-ink: #54362A;
  --clay-tint: #F2E9E3;
  --ring: rgb(107 70 54 / .16);
  --ink: #262321;
  --ink-2: #574F49;
  --ink-3: #6E6359;
  --line: #E9E2D8;
  --line-2: #DACFC1;
  --olive: #586044;
  --gold: #EFC9A0; /* لمسة دافئة فوق الخلفيات الداكنة فقط */
  --olive-tint: #ECEEE3;
  --warn: #8A5A12;
  --warn-tint: #FBF0DC;
  --danger: #A23A2C;
  --danger-tint: #F8E7E3;
  --notif: #B04A2A; /* عدّاد غير المقروء: أدفأ من القهوة عشان يبان فوق الأيقونات الداكنة */

  --r-xs: 8px; --r-s: 12px; --r-m: 16px; --r-l: 22px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgb(38 35 33 / .05), 0 3px 12px rgb(38 35 33 / .045);
  --sh-2: 0 2px 6px rgb(38 35 33 / .05), 0 22px 44px -14px rgb(38 35 33 / .2);
  --sh-3: 0 30px 70px -20px rgb(38 30 24 / .35);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: 'Thmanyah Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Thmanyah Serif Display', 'Thmanyah Sans', system-ui, sans-serif;
  --wrap: 1240px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.75 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.i { flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: calc(760px + var(--gut) * 2); }
@media (max-width: 600px) { :root { --gut: 16px; } }

/* ── أزرار وعناصر أساسية ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--clay); color: #FFF9F4; }
.btn-primary:hover { background: var(--clay-ink); }
.btn-dark { background: var(--ink); color: #FBF7F1; }
.btn-dark:hover { background: #3a3532; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-soft { background: var(--clay-tint); color: var(--clay-ink); }
.btn-soft:hover { background: #E9DCD3; }
.btn-danger { background: var(--danger-tint); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #87301f; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn.sq { width: 48px; padding: 0; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.spin { width: 18px; height: 18px; border-radius: 99px; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.iconbtn {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  color: var(--ink); position: relative; transition: background-color .18s var(--ease);
}
.iconbtn:hover { background: var(--stone); }
/* عدّاد غير المقروء (الهيدر + الشريط السفلي): دايرة ثابتة على ركن الأيقونة، والرقم في النص بالظبط */
.dot {
  position: absolute; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--notif); color: #fff; font: 700 11px/18px var(--font); font-variant-numeric: tabular-nums;
  text-align: center; box-shadow: 0 0 0 2px var(--paper); pointer-events: none;
}
.iconbtn .dot { top: 3px; inset-inline-end: 1px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px;
  background: var(--sand-3); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip .i { width: 15px; height: 15px; }
.chip-olive { background: var(--olive-tint); color: var(--olive); }
.chip-clay { background: var(--clay-tint); color: var(--clay-ink); }
.chip-ink { background: var(--ink); color: #FBF7F1; }
.chip-danger { background: var(--danger-tint); color: var(--danger); }
.chip-wait { background: var(--warn-tint); color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; background: var(--sand-3); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge .i { width: 15px; height: 15px; }
.badge-ok { background: var(--olive-tint); color: var(--olive); }
.badge-plain { background: none; padding: 0; color: var(--ink-3); font-weight: 500; }
.badge-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--clay); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.stars .i { width: 16px; height: 16px; color: var(--clay); fill: var(--clay); }
.stars-row { display: inline-flex; gap: 1px; color: var(--line-2); direction: ltr; }
.stars-row .on { color: var(--clay); }
.stars-row .on .i { fill: currentColor; }
.avatar {
  width: 44px; height: 44px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: var(--sand); color: var(--clay-ink); font: 700 18px/1 var(--font);
}
.avatar-lg { width: 84px; height: 84px; font-size: 36px; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; }
.avatar-off { background: var(--stone); color: var(--ink-3); }
.sawm { font-size: 12.5px; font-weight: 700; color: var(--clay); white-space: nowrap; }
.sawm-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--clay); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.link { color: var(--clay); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-quiet { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hint { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.hint .i { vertical-align: -2px; }
.state-label { font-size: 13px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 10px; margin-top: 48px; }
.state-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* حقول */
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .label, .field > legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.opt-l { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ltr-in { text-align: left; }
.ltr-in::placeholder { text-align: left; }
.textarea { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.8; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9A8F86; }
.input:hover, .select:hover, .textarea:hover { border-color: #C7BBAC; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px var(--ring); }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 42px; cursor: pointer; font-size: 15px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23574F49' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center;
}
.select:disabled, .input:disabled { background-color: var(--stone); color: var(--ink-3); cursor: not-allowed; }
.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--danger); }
.input.is-error:focus { box-shadow: 0 0 0 4px rgb(162 58 44 / .14); }
.err { color: var(--danger); font-size: 13.5px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.6; }
.err .i { margin-top: 3px; }
.counter { font-size: 12.5px; color: var(--ink-3); }
.counter.near { color: var(--warn); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2.tight { gap: 8px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); width: max-content; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .18s var(--ease), color .18s var(--ease); }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--sh-1); }
.seg input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.seg-block { display: flex; width: auto; }
.seg-block label { flex: 1; text-align: center; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--clay); flex: none; }
.pw { position: relative; }
.pw .input { padding-inline-end: 52px; }
.pw .iconbtn { position: absolute; inset-inline-end: 3px; top: 3px; color: var(--ink-3); }

/* رسائل التنبيه */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid transparent; font-size: 14.5px; line-height: 1.65; }
.alert > .i { width: 22px; height: 22px; margin-top: 1px; }
.alert strong { display: block; font-size: 15px; }
.alert p { color: inherit; opacity: .88; margin-top: 2px; }
.alert .btn { margin-top: 10px; }
.alert-ok { background: var(--olive-tint); color: #414831; border-color: #DCE0CF; }
.alert-err { background: var(--danger-tint); color: #7d2c21; border-color: #F0D2CB; }
.alert-warn { background: var(--warn-tint); color: #6D4610; border-color: #F1DFC0; }
.alert-info { background: var(--clay-tint); color: var(--clay-ink); border-color: #E6D8CF; }
.toasts { position: fixed; z-index: 120; inset: auto 0 96px 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; max-width: 440px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #FBF7F1; font-size: 14.5px; font-weight: 500; box-shadow: var(--sh-3); animation: toast-in .35s var(--ease); }
.toast .i { width: 20px; height: 20px; color: #C9D3AE; }
.toast.err .i { color: #F2A99C; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 861px) { .toasts { inset: auto 0 32px 0; } }

/* ── الترويسة ──────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.hdr-search {
  flex: 1; max-width: 620px; display: flex; align-items: center; height: 50px; padding: 0 6px;
  padding-inline-start: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.hdr-search:focus-within { border-color: var(--clay); box-shadow: 0 0 0 4px var(--ring); }
.hdr-search .i { color: var(--ink-3); width: 20px; height: 20px; }
.hdr-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 10px; outline: none; font-size: 15px; }
.hdr-search .sep { width: 1px; height: 24px; background: var(--line-2); }
.hdr-region {
  position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding-inline: 10px 8px;
  margin-inline: 6px 8px; border-radius: 999px; color: var(--ink-2); cursor: pointer; flex: none;
  transition: background-color .18s var(--ease);
}
.hdr-region:hover { background: var(--stone); }
.hdr-region:focus-within { background: var(--stone); box-shadow: 0 0 0 2px var(--clay); }
.hdr-region select {
  appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; outline: none;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; max-width: 128px; text-overflow: ellipsis;
  field-sizing: content; /* عرض الخانة = طول الاختيار، فالسهم يلزق في الكلمة */
}
.hdr-region .i { width: 18px; height: 18px; color: var(--ink-3); }
.hdr-region .i:last-child { width: 16px; height: 16px; }
.hdr-search .go { width: 40px; height: 40px; border-radius: 999px; background: var(--clay); color: #fff; display: grid; place-items: center; flex: none; }
.hdr-search .go:hover { background: var(--clay-ink); }
.hdr-search .go .i { color: #fff; }
.hdr-actions { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.hdr-actions .btn-primary { margin-inline-start: 10px; }
.catnav { border-top: 1px solid var(--line); }
.catnav ul { display: flex; gap: 4px; height: 50px; align-items: center; }
.catnav a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background-color .18s var(--ease), color .18s var(--ease); }
.catnav a:hover { background: var(--stone); color: var(--ink); }
.catnav a[aria-current] { background: var(--ink); color: #FBF7F1; }
.catnav .all-li { margin-inline-start: auto; }
.catnav .all { color: var(--clay); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.catnav .all .i { width: 18px; height: 18px; }
.hdr-mobile-search { display: none; }
.tabbar { display: none; }

@media (max-width: 1100px) {
  .catnav li:nth-child(n+7):not(.all-li) { display: none; }
  .hdr-region, .hdr-search .sep { display: none; }
}
@media (max-width: 860px) {
  .hdr-row { height: 58px; gap: 12px; }
  .logo img { height: 30px; }
  .hdr-row .hdr-search, .hdr-actions .btn-primary, .hdr-actions .hide-m, .catnav { display: none; }
  .hdr-mobile-search { display: block; padding-bottom: 12px; }
  .hdr-mobile-search .hdr-search { max-width: none; height: 46px; }
  .hdr-mobile-search .hdr-search .go { width: 36px; height: 36px; }
  body { padding-bottom: 76px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* الشريط السفلي: خمس خانات بنفس الشكل بالظبط. المؤشّر كبسولة خلف الأيقونة بس،
     و«أضيفي إعلان» نفس الكبسولة لكن مليانة بلون القهوة، فالصف كله على خط واحد. */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50;
    background: rgb(255 253 250 / .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(38 35 33 / .05);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  @supports (backdrop-filter: blur(1px)) { .tabbar { background: rgb(255 253 250 / .88); backdrop-filter: saturate(1.4) blur(14px); } }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px;
    font-size: 11.5px; line-height: 1.25; color: var(--ink-3); font-weight: 500; -webkit-tap-highlight-color: transparent;
  }
  .tabbar .ico {
    position: relative; width: 58px; height: 32px; border-radius: 999px; display: grid; place-items: center;
    transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  }
  .tabbar a:active .ico { transform: scale(.94); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a[aria-current] { color: var(--ink); font-weight: 700; }
  .tabbar a[aria-current] .ico { background: var(--clay-tint); color: var(--clay-ink); }
  .tabbar .tab-post { color: var(--clay-ink); }
  .tabbar .tab-post .ico { background: var(--clay); color: #FFF9F4; box-shadow: 0 4px 12px -4px rgb(107 70 54 / .55); }
  .tabbar .tab-post .i { stroke-width: 2.2; }
  .tabbar .tab-post[aria-current] .ico { background: var(--clay-ink); color: #FFF9F4; }
  .tabbar .dot { top: -4px; inset-inline-end: 5px; box-shadow: 0 0 0 2px var(--surface); }
}

/* ── التذييل ───────────────────────────────────── */
.ftr { margin-top: 96px; background: var(--stone); border-top: 1px solid var(--line); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.ftr-brand img { width: 190px; }
.ftr-brand p { margin-top: 18px; color: var(--ink-2); font-size: 14.5px; max-width: 36ch; }
.ftr h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.ftr li + li { margin-top: 8px; }
.ftr li a { color: var(--ink-2); font-size: 14.5px; }
.ftr li a:hover { color: var(--clay); }
.ftr-base { border-top: 1px solid var(--line-2); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) {
  .ftr { margin-top: 64px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 44px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-brand img { width: 160px; }
  .ftr-grid > div:last-child { grid-column: 1 / -1; }
  .ftr-grid > div:last-child ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .ftr-grid > div:last-child li + li { margin-top: 0; }
}

/* ── عناوين الأقسام ─────────────────────────────── */
.sec { margin-top: 88px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font: 700 clamp(26px, 3vw, 36px)/1.3 var(--display); display: flex; gap: 10px; align-items: center; }
.sec-head h2 .cnt { font-size: 15px; font-weight: 700; color: var(--ink-3); background: var(--stone); padding: 2px 10px; border-radius: 99px; }
.sec-head p { color: var(--ink-2); margin-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--clay); font-weight: 700; font-size: 15px; white-space: nowrap; }
.more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more:hover .i { transform: translateX(-3px); }
@media (max-width: 600px) { .sec { margin-top: 56px; } .sec-first { margin-top: 24px; } .sec-head { margin-bottom: 18px; } .sec-head h2 { font-size: 24px; } .sec-head p { font-size: 14px; } }

/* ── بطاقة الإعلان ─────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.card-media { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sand-3); aspect-ratio: 1 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-media.tall img { object-position: center 20%; }
.card:hover .card-media img { transform: scale(1.035); }
.fav {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; background: rgb(255 253 250 / .94); color: var(--ink); box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.fav .i { width: 20px; height: 20px; }
.fav:hover { transform: scale(1.06); }
.fav[aria-pressed="true"] { color: var(--clay); }
.fav[aria-pressed="true"] .i { fill: var(--clay); }
.pcount {
  position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; background: rgb(38 35 33 / .62); color: #FBF7F1; font-size: 12px; font-weight: 500;
}
.pcount .i { width: 14px; height: 14px; }
.card-body { display: grid; gap: 6px; padding-inline: 2px; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s var(--ease); }
.card:hover .card-title { color: var(--clay-ink); }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13.5px; flex-wrap: wrap; }
.card-meta .i { width: 16px; height: 16px; }
.card-meta .sep, .sep { width: 3px; height: 3px; border-radius: 9px; background: currentColor; opacity: .6; display: inline-block; flex: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; min-height: 28px; }
.card.is-gone .card-media img { filter: grayscale(.9) opacity(.55); }
.card.is-gone .gone { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; }
.card.is-gone .sawm { visibility: hidden; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card { gap: 10px; }
  .card-media { border-radius: var(--r-m); }
  .card-title { font-size: 14.5px; }
  .card-meta { font-size: 12.5px; }
  .card-foot .chip { height: 24px; font-size: 12px; padding: 0 9px; }
  .sawm { font-size: 12.5px; }
  .fav { width: 36px; height: 36px; top: 8px; inset-inline-end: 8px; }
  .pcount { display: none; }
  .card.is-gone .gone { bottom: 8px; inset-inline-start: 8px; height: 24px; font-size: 12px; }
}

/* ── الرئيسية ──────────────────────────────────── */
.hero { position: relative; isolation: isolate; background:
  linear-gradient(to bottom, rgb(251 248 244 / .18) 0%, rgb(251 248 244 / .35) 45%, var(--paper) 70%),
  url(img/hero-linen.webp) 50% 0 / cover no-repeat, var(--sand-2); }
.hero-in { padding-block: 56px 24px; }
.hero-head { display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: end; }
.hero h1 { font: 700 clamp(46px, 5.6vw, 84px)/1.12 var(--display); text-wrap: balance; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-lead { font-size: 19px; line-height: 1.8; color: var(--ink); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; margin-top: 40px; }
.hero-tile { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--sand-2); isolation: isolate; }
.hero-tile:first-child { grid-row: span 2; }
.hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .7s var(--ease); }
.hero-tile::after { content: ''; position: absolute; inset: 45% 0 0; z-index: -1; background: linear-gradient(to top, rgb(36 22 15 / .78), rgb(36 22 15 / 0)); }
.hero-tile span { position: absolute; inset: auto 18px 16px; display: grid; color: #FFF8F2; font-size: 14px; }
.hero-tile b { font: 700 24px/1.3 var(--display); }
.hero-tile:hover img { transform: scale(1.04); }
.hero-tile:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.btn-light { background: #FFF8F2; color: var(--clay-ink); }
.btn-light:hover { background: #fff; }
.btn-glass { background: rgb(255 248 242 / .12); color: #FFF8F2; border: 1px solid rgb(255 248 242 / .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgb(255 248 242 / .2); }
.pulse { width: 8px; height: 8px; border-radius: 99px; background: var(--olive); box-shadow: 0 0 0 0 rgb(88 96 68 / .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(88 96 68 / 0); } 100% { box-shadow: 0 0 0 0 rgb(88 96 68 / 0); } }
@media (max-width: 1000px) { .hero-head { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hero { background:
    linear-gradient(to bottom, rgb(251 248 244 / .18) 0%, rgb(251 248 244 / .35) 38%, var(--paper) 56%),
    url(img/hero-linen.webp) 50% 0 / cover no-repeat, var(--sand-2); }
  .hero-in { padding-block: 28px 8px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1.16; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
  .hero-cta .btn { height: 52px; padding-inline: 10px; font-size: 15px; }
  .hero-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 190px 150px 150px; gap: 10px; margin-top: 28px; }
  .hero-tile b { font-size: 19px; }
  .hero-tile span { inset: auto 12px 10px; font-size: 12.5px; }
}

/* أرقام حيّة من الـ backend تحت الهيرو */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stats p { display: grid; gap: 2px; padding: 26px 0 24px; padding-inline-start: 28px; }
.stats p + p { border-inline-start: 1px solid var(--line); }
.stats p:first-child { padding-inline-start: 0; }
.stats b { font: 700 clamp(26px, 3.2vw, 40px)/1.1 var(--font); color: var(--clay); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 600px) {
  .stats p { padding: 16px 0 14px; padding-inline-start: 12px; }
  .stats b { font-size: 23px; }
  .stats span { font-size: 12px; line-height: 1.45; }
}

/* شبكة الأقسام */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat {
  display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 10px 18px; text-align: center; position: relative;
  border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-1); }
.cat .ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--clay); margin-bottom: 4px; }
.cat .ic .i { width: 32px; height: 32px; stroke-width: 1.45; }
.cat .nm { font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.cat .ct { font-size: 12.5px; color: var(--ink-3); }
.cat .new, .new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--clay); color: #fff; font-size: 11px; font-weight: 700; }
.cat .new { position: absolute; top: 10px; inset-inline-start: 10px; }
.cat-all { background: var(--stone); border-style: dashed; }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 14px 4px 12px; gap: 2px; border-radius: 16px; }
  .cat .ic { width: 34px; height: 34px; margin-bottom: 2px; }
  .cat .ic .i { width: 26px; height: 26px; }
  .cat .nm { font-size: 13px; line-height: 1.4; }
  .cat .ct { font-size: 11.5px; }
  .cat .new { top: 6px; inset-inline-start: 6px; height: 20px; font-size: 11.5px; padding: 0 7px; }
}

.finder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 32px; }
@media (max-width: 760px) {
  .finder { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
  .finder .select { height: 46px; font-size: 14.5px; }
  .finder .btn { height: 46px; }
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-2); }
.steps li { padding: 24px 0 0; display: grid; gap: 14px; align-content: start; }
.steps .ic { width: 32px; height: 46px; color: var(--clay); display: grid; place-items: center; }
.steps h3 { font-size: 17px; font-weight: 700; }
.steps p { color: var(--ink-2); margin-top: 4px; font-size: 14.5px; line-height: 1.75; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
  .steps .ic { width: 28px; height: 40px; }
  .steps h3 { font-size: 16px; }
  .steps p { font-size: 14px; }
}

.regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.region { display: grid; gap: 2px; padding: 18px 4px 18px 16px; border-bottom: 1px solid var(--line); transition: background-color .18s var(--ease); }
.region:hover { background: var(--sand-3); }
.region .nm { font-weight: 700; font-size: 16px; }
.region .ct { color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 960px) { .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .region { padding: 14px 2px; } .region .nm { font-size: 15px; } .region .ct { font-size: 12.5px; } }

/* «إزاي تبيعي»: قسم داكن بعرض الشاشة يكسر هدوء الصفحة */
.how { margin-top: 96px; background: #2B1D16; color: #FFF8F2; padding-block: 88px 80px; }
.how h2 { font: 700 clamp(30px, 4.6vw, 60px)/1.18 var(--font); max-width: 15ch; text-wrap: balance; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-block: 56px 48px; }
.how-steps li { border-top: 1px solid rgb(255 248 242 / .18); padding-top: 22px; }
.how-steps .n { display: block; font: 700 clamp(64px, 7vw, 96px)/1 var(--font); color: var(--gold); margin-bottom: 18px; }
.how-steps h3 { font-size: 21px; font-weight: 700; }
.how-steps p { color: rgb(255 248 242 / .74); margin-top: 6px; font-size: 15.5px; line-height: 1.75; }
@media (max-width: 760px) {
  .how { margin-top: 64px; padding-block: 56px 48px; }
  .how-steps { grid-template-columns: 1fr; margin-block: 32px 32px; }
  .how-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding-block: 18px; }
  .how-steps .n { grid-row: span 2; font-size: 48px; margin: 0; }
  .how-steps h3 { font-size: 17.5px; }
  .how-steps p { font-size: 14.5px; margin-top: 2px; }
  .how .btn { width: 100%; }
}

.cta-band { border-radius: var(--r-xl); background: var(--clay); color: #FFF8F2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.cta-img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: 20% 60%; }
.cta-copy { grid-column: 1; grid-row: 1; padding: 56px; align-self: center; }
.cta-band h2 { font: 700 clamp(26px, 3.2vw, 40px)/1.3 var(--font); }
.cta-band p { color: #EBDDD4; margin-top: 12px; line-height: 1.8; max-width: 38ch; }
.cta-btn { background: #FFF8F2; color: var(--clay-ink); margin-top: 28px; }
.cta-btn:hover { background: #fff; }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; border-radius: 22px; }
  .cta-img { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 10; }
  .cta-copy { grid-row: 2; padding: 26px 22px 22px; }
  .cta-btn { width: 100%; margin-top: 22px; }
}

/* ── رأس الصفحات الداخلية ──────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); padding-top: 26px; }
.crumbs a:hover { color: var(--clay); }
.crumbs .i { width: 14px; height: 14px; }
.page-title { font: 700 clamp(28px, 3.4vw, 42px)/1.3 var(--display); margin-top: 10px; }
.page-sub { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 600px) {
  .crumbs { padding-top: 16px; font-size: 12.5px; }
  .crumbs > span[aria-current], .crumbs > .i:last-of-type { display: none; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 14.5px; }
}

/* ── البحث ─────────────────────────────────────── */
.results { display: grid; grid-template-columns: 290px 1fr; gap: 40px; margin-top: 32px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 22px 22px; }
.filters .fg { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.filters .fg:last-of-type { border-bottom: 0; }
.filters h3 { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.filters .sheet-head, .filters .sheet-foot { display: none; }
.filters .reset { font-size: 13.5px; color: var(--clay); font-weight: 700; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--ink-2); font-size: 15px; }
.toolbar .count strong { color: var(--ink); }
.toolbar .right { display: flex; gap: 10px; align-items: center; }
.toolbar .select { height: 42px; width: auto; border-radius: 999px; font-size: 14px; padding-inline-start: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.active-filters .chip { height: 34px; padding: 0 12px 0 8px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.active-filters .chip button { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; color: var(--ink-3); }
.active-filters .chip button:hover { background: var(--stone); color: var(--ink); }
.active-filters .chip .i { width: 14px; height: 14px; }
.btn-filters { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.pager a { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-weight: 500; color: var(--ink-2); }
.pager a:hover { background: var(--stone); }
.pager a[aria-current] { background: var(--ink); color: #FBF7F1; font-weight: 700; }
.pager a.off { opacity: .35; pointer-events: none; }
.pager span { color: var(--ink-3); padding: 0 4px; }
.pager .i { width: 18px; height: 18px; }
.scrim { display: none; }
@media (max-width: 600px) { .active-filters { margin-bottom: 18px; } .toolbar .count { font-size: 14px; } .pager { gap: 2px; margin-top: 40px; } }
@media (max-width: 960px) {
  .results { grid-template-columns: 1fr; margin-top: 18px; }
  .btn-filters { display: inline-flex; }
  .filters {
    position: fixed; inset: auto 0 0 0; z-index: 70; top: auto; max-height: 88vh; overflow: auto; border-radius: 24px 24px 0 0;
    padding: 0 20px; transform: translateY(105%); transition: transform .32s var(--ease); box-shadow: var(--sh-3);
  }
  .filters.open { transform: none; }
  .filters .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 0 12px; z-index: 2; border-bottom: 1px solid var(--line); }
  .filters .sheet-head strong { font-size: 18px; }
  .filters .sheet-foot { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--surface); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters .sheet-foot .btn { flex: 1; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgb(38 35 33 / .45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .scrim.open { opacity: 1; pointer-events: auto; }
}

/* ── كل الأقسام ────────────────────────────────── */
.catblocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.catblock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 14px; align-content: start; }
.catblock-h { display: flex; align-items: center; gap: 14px; }
.catblock-h .ic { width: 34px; height: 50px; color: var(--clay); display: grid; place-items: center; flex: none; }
.catblock-h .ic .i { width: 30px; height: 30px; }
.catblock-h .t { flex: 1; display: grid; }
.catblock-h h2 { font-size: 17.5px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.catblock-h .ct { font-size: 13px; color: var(--ink-3); }
.catblock-h > .i { width: 20px; height: 20px; color: var(--ink-3); }
.catblock-h:hover h2 { color: var(--clay); }
.catblock ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.catblock ul a { display: flex; align-items: center; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.catblock ul a:hover { color: var(--clay); }
.no-realestate { margin-top: 26px; display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 14px; }
@media (max-width: 960px) { .catblocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .catblocks { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; } .catblock { padding: 16px; } }

/* ── صفحة الإعلان ─────────────────────────────── */
.ad-banner { margin-top: 18px; }
.ad { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 24px; align-items: start; }
.ad-dim .gallery { opacity: .6; filter: grayscale(.5); }
.gallery { display: grid; gap: 12px; }
.gallery .main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sand-3); aspect-ratio: 1 / 1; }
.g-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { box-shadow: inset 0 0 0 3px var(--clay); }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.g-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: rgb(255 253 250 / .92); color: var(--ink); box-shadow: var(--sh-1);
  transition: opacity .2s var(--ease), background-color .18s var(--ease);
}
.g-nav:hover { background: var(--surface); }
.g-nav .i { width: 22px; height: 22px; }
.g-prev { inset-inline-start: 12px; }
.g-next { inset-inline-end: 12px; }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.gallery .main .pcount { bottom: 16px; inset-inline-start: 16px; font-size: 13px; padding: 5px 12px; display: inline-flex; z-index: 2; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.gallery .thumbs button { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 1; background: var(--sand-3); position: relative; }
.gallery .thumbs button::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; transition: border-color .18s var(--ease); }
.gallery .thumbs button[aria-current="true"]::after { border-color: var(--clay); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .more-ph { position: absolute; inset: 0; background: rgb(38 35 33 / .55); color: #fff; display: grid; place-items: center; font-weight: 700; z-index: 1; }

.ad-info { position: sticky; top: 140px; display: grid; gap: 20px; }
.ad-info h1 { font: 700 clamp(24px, 2.6vw, 34px)/1.4 var(--font); }
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.meta-grid div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 1px; }
.meta-grid dt { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 5px; align-items: center; }
.meta-grid dt .i { width: 15px; height: 15px; }
.meta-grid dd { margin: 0; font-size: 14.5px; font-weight: 700; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 16px; }
.deal.is-off { opacity: .7; }
.sawm-line { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.deal-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.seller { display: flex; gap: 14px; align-items: center; padding: 16px 0 0; border-top: 1px solid var(--line); }
.seller .who { flex: 1; display: grid; gap: 4px; min-width: 0; }
.seller .nm { font-weight: 700; font-size: 16px; }
.seller .bdg { display: flex; gap: 6px; flex-wrap: wrap; }
.seller .sm { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seller > .i { color: var(--ink-3); width: 20px; height: 20px; }
.seller:hover .nm { color: var(--clay); }
.owner-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.owner-stat div { display: grid; gap: 2px; }
.owner-stat span { font-size: 12.5px; color: var(--ink-3); }
.owner-stat strong { font-size: 15px; display: flex; gap: 6px; align-items: center; }
.dotst { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.dotst.ok { background: var(--olive); } .dotst.wait { background: #C08A2E; } .dotst.off { background: var(--ink-3); } .dotst.bad { background: var(--danger); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tools .btn { height: 42px; padding: 0 16px; font-size: 14px; font-weight: 500; }
.tools .btn .i { width: 18px; height: 18px; }
.tools [data-fav-toggle][aria-pressed="true"] { color: var(--clay); border-color: var(--clay); }
.tools [data-fav-toggle][aria-pressed="true"] .i { fill: var(--clay); }

.ad-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.ad-body h2 { font: 700 22px/1.4 var(--font); margin-bottom: 12px; }
.desc { color: var(--ink-2); font-size: 16.5px; line-height: 2; max-width: 62ch; }
.desc p + p { margin-top: 12px; }
.specs-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0; }
.specs-list div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.specs-list dt { font-size: 13px; color: var(--ink-3); }
.specs-list dd { margin: 0; font-weight: 700; }
.safety { border-radius: var(--r-l); background: var(--sand-3); padding: 24px; display: grid; gap: 12px; align-content: start; }
.safety h3 { font-size: 18px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.safety h3 .i { color: var(--clay); }
.safety ul { display: grid; gap: 8px; }
.safety li { position: relative; padding-inline-start: 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.safety li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 9px; background: var(--clay); }
.sticky-cta { display: none; }
@media (max-width: 960px) {
  .ad { grid-template-columns: 1fr; gap: 20px; margin-top: 14px; }
  .ad-info { position: static; gap: 16px; }
  .ad-body { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .gallery .main { margin-inline: calc(var(--gut) * -1); border-radius: 0; aspect-ratio: 1 / .95; }
  .gallery .thumbs { gap: 8px; }
  .gallery .thumbs button { border-radius: 12px; }
  .g-nav { width: 40px; height: 40px; }
  .g-prev { inset-inline-start: 10px; }
  .g-next { inset-inline-end: 10px; }
  .ad-banner { margin-top: 12px; }
  .ad-banner .alert { font-size: 14px; }
  .deal { padding: 16px; }
  .sticky-cta {
    display: flex; gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 55; background: var(--surface);
    border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-cta .btn-primary { flex: 1.4; }
  .sticky-cta .btn-ghost:not(.sq) { flex: 1; }
  body.has-sticky { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.has-sticky .tabbar { display: none; }
  .ad-info .deal-actions { display: none; }
  .owner-deal .deal-actions { display: grid; }
}

/* ── النوافذ ───────────────────────────────────── */
.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); }
.modal-sm { width: min(420px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(38 35 33 / .5); }
.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-in { display: flex; flex-direction: column; max-height: inherit; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px 12px; padding-inline-start: 22px; }
.modal-h h2 { font-size: 19px; font-weight: 700; }
.modal-b { padding: 6px 22px 18px; display: grid; gap: 14px; overflow: auto; }
.modal-f { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.modal-f .btn { flex: 1; }
.modal .reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal .reasons label { position: relative; }
.modal .reasons input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.modal .reasons span { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.modal .reasons input:checked + span { border-color: var(--clay); background: var(--clay-tint); color: var(--clay-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--clay); }
.modal .reasons input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.done-step, .confirm-b { justify-items: center; text-align: center; padding-top: 22px; }
.done-step p, .confirm-b p { color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.done-step h3, .confirm-b h2 { font-size: 20px; font-weight: 700; }
.done-ic, .confirm-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--olive-tint); color: var(--olive); }
.done-ic .i, .confirm-ic .i { width: 32px; height: 32px; }
.done-ic.wait { background: var(--warn-tint); color: var(--warn); }
.confirm-ic { background: var(--danger-tint); color: var(--danger); }
@media (max-width: 600px) {
  .modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; }
  .modal[open] { animation: sheet-in .32s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
  .modal .reasons { grid-template-columns: 1fr 1fr; }
  .modal .reasons span { font-size: 14px; min-height: 44px; }
  .modal-f { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* ── نشر إعلان ────────────────────────────────── */
.post { display: grid; grid-template-columns: 1fr 340px; gap: 48px; margin-top: 26px; align-items: start; }
.stepper { display: flex; margin-top: 24px; border-radius: 999px; background: var(--stone); padding: 5px; border: 1px solid var(--line); position: sticky; top: 86px; z-index: 5; }
.stepper a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 6px; border-radius: 999px; font-size: 14px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.stepper a b { width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: 12.5px; }
.stepper a.done b { background: var(--olive); color: #fff; }
.stepper a.now { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--sh-1); }
.stepper a.now b { background: var(--clay); color: #fff; }
.pstep { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 18px; scroll-margin-top: 170px; }
.pstep:first-child { padding-top: 8px; }
.pstep.last { border-bottom: 0; }
.pstep-h { display: flex; gap: 14px; align-items: baseline; }
.pstep-h .n { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--clay); color: #fff; font-size: 14px; font-weight: 700; flex: none; transform: translateY(-3px); }
.pstep-h h2 { font-size: 20px; font-weight: 700; }
.pstep-h p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.pick .tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 500; transition: border-color .18s var(--ease), background-color .18s var(--ease); min-height: 58px; line-height: 1.35; }
.pick .tile .ic { width: 28px; height: 36px; color: var(--clay); display: grid; place-items: center; flex: none; }
.pick .tile .ic .i { width: 20px; height: 20px; }
.pick input:hover + .tile { border-color: #C7BBAC; }
.pick input:checked + .tile { border-color: var(--clay); background: var(--clay-tint); font-weight: 700; box-shadow: inset 0 0 0 1px var(--clay); }
.pick input:focus-visible + .tile { outline: 2px solid var(--clay); outline-offset: 2px; }
.uploads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.uploads .u { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--sand-3); touch-action: none; }
.uploads .u img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.uploads .u .ord { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 24px; height: 24px; border-radius: 99px; background: rgb(38 35 33 / .7); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.uploads .u .cover-l { display: none; position: absolute; bottom: 6px; inset-inline-start: 6px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; align-items: center; }
.uploads .u:first-child .cover-l { display: inline-flex; }
.uploads .u:first-child .ord { display: none; }
.uploads .u .x, .uploads .u .grip { position: absolute; width: 30px; height: 30px; border-radius: 99px; background: rgb(255 253 250 / .94); display: grid; place-items: center; box-shadow: var(--sh-1); }
.uploads .u .x { top: 6px; inset-inline-end: 6px; }
.uploads .u .grip { bottom: 6px; inset-inline-end: 6px; cursor: grab; touch-action: none; }
.uploads .u .x .i { width: 15px; height: 15px; }
.uploads .u.dragging { opacity: .5; outline: 2px dashed var(--clay); outline-offset: -2px; }
.uploads .add { border: 1.5px dashed var(--line-2); display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--ink-3); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; touch-action: auto; }
.uploads .add:hover { border-color: var(--clay); color: var(--clay); }
.up-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-3); }
.up-meta span:first-child { font-weight: 700; color: var(--ink-2); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sand-3); font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.callout .i { color: var(--clay); width: 20px; height: 20px; margin-top: 2px; }
.callout strong { color: var(--ink); }
.car-fields { display: none; }
.car-fields.show { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.car-fields .label { display: flex; gap: 8px; align-items: center; }
.preview-card { position: sticky; top: 160px; display: grid; gap: 14px; }
.preview-card .lbl { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.preview-card .card { background: var(--surface); border-radius: var(--r-l); padding: 12px 12px 16px; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.preview-card .tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 10px; }
.preview-card .tips h3 { font-size: 15px; font-weight: 700; }
.preview-card .tips li { position: relative; padding-inline-start: 16px; font-size: 14px; color: var(--ink-2); }
.preview-card .tips li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 9px; background: var(--clay); }
.publish { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) {
  .post { grid-template-columns: 1fr; }
  .preview-card { display: none; }
  .pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* الجوال: شريط الخطوات = خمس خطوط تقدّم وتحت كل خط اسم الخطوة (كلها ظاهرة)،
   بعرض الشاشة كامل وتحت خانة البحث الثابتة مباشرة، فما يبان محتوى من حوالينه */
@media (max-width: 860px) {
  .stepper {
    top: 58px; gap: 6px; margin: 16px calc(var(--gut) * -1) 0; padding: 12px var(--gut) 6px;
    background: var(--paper); border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .stepper a {
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 7px; min-height: 44px;
    padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 12.5px; text-align: center; color: var(--ink-3);
  }
  .stepper a b { width: auto; height: 4px; border-radius: 99px; font-size: 0; background: var(--line); transition: background-color .25s var(--ease); }
  .stepper a b svg { display: none; }
  .stepper a.done b, .stepper a.now b { background: var(--clay); }
  .stepper a.done { color: var(--clay-ink); }
  .stepper a.now { background: none; box-shadow: none; color: var(--ink); font-weight: 700; }
  .pstep { scroll-margin-top: 140px; }
}
@media (max-width: 600px) {
  .pick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pick .tile { font-size: 13.5px; padding: 8px 10px; gap: 8px; min-height: 54px; }
  .pick .tile .ic { width: 26px; height: 32px; }
  .uploads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .publish .btn { flex: 1; }
  .pstep { padding: 26px 0; }
}

/* بطاقة «تم» */
.done-card { margin-top: 40px; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.done-card h1, .done-card h2 { font-size: 26px; font-weight: 700; }
.done-card p { color: var(--ink-2); max-width: 46ch; }
.done-preview { width: min(260px, 100%); margin: 8px 0; text-align: start; }
.done-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 600px) { .done-card { margin-top: 24px; padding: 32px 18px; } .done-card h1, .done-card h2 { font-size: 22px; } .done-acts .btn { flex: 1; } }

/* ── الدخول والتسجيل ──────────────────────────── */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { background: var(--sand-3); display: grid; place-items: center; border-inline-start: 1px solid var(--line); }
.auth-art .art-in { display: grid; gap: 40px; justify-items: center; padding: 40px; }
.auth-art .logo-full { width: min(320px, 80%); }
.auth-art ul { display: grid; gap: 12px; }
.auth-art li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.auth-art li .i { color: var(--clay); width: 20px; height: 20px; }
.auth-side { display: flex; flex-direction: column; padding: 28px 40px 40px; }
.auth-side .top { display: flex; justify-content: space-between; align-items: center; }
.auth-side .top .logo img { height: 35px; }
.auth-form { width: 100%; max-width: 440px; margin: auto; display: grid; gap: 20px; padding: 40px 0; }
.auth-form h1, .auth-form .otp-title { font: 700 32px/1.3 var(--font); }
.auth-form .sub { color: var(--ink-2); margin-top: 6px; }
.auth-form .fp { justify-self: start; font-size: 14px; margin-top: -8px; }
.auth-form .switch { text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-form .switch .link { display: inline-flex; align-items: center; gap: 4px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; direction: ltr; }
.otp input { width: 100%; height: 60px; text-align: center; font: 700 26px/1 var(--font); border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 0; }
.otp input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px var(--ring); }
.otp input:disabled { background: var(--stone); }
.otp.bad input { border-color: var(--danger); color: var(--danger); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.otp-meta span { display: inline-flex; gap: 6px; align-items: center; }
.link[disabled] { color: var(--ink-3); pointer-events: none; font-weight: 500; }
.legal { font-size: 13px; color: var(--ink-3); text-align: center; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; min-height: 100dvh; }
  .auth-art { display: none; }
  .auth-side { padding: 16px 16px 32px; }
  .auth-side .top .logo img { height: 30px; }
  .auth-form { padding: 28px 0 16px; margin: 0 auto; gap: 18px; }
  .auth-form h1, .auth-form .otp-title { font-size: 26px; }
  .otp { gap: 6px; }
  .otp input { height: 54px; font-size: 22px; border-radius: 12px; }
}

/* ── حسابي ────────────────────────────────────── */
.acct { display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin-top: 28px; align-items: start; }
.acct-main { min-width: 0; }
.side-nav { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px; display: grid; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.side-nav a:hover { background: var(--stone); color: var(--ink); }
.side-nav a[aria-current] { background: var(--clay-tint); color: var(--clay-ink); font-weight: 700; }
.side-nav a .i { width: 20px; height: 20px; }
.side-nav a .n { margin-inline-start: auto; font-size: 12px; background: var(--stone); padding: 0 8px; border-radius: 99px; }
.side-nav a[aria-current] .n { background: var(--surface); }
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.acct-back { display: none; }
.acct-h { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.acct-h .page-title { margin-top: 0; }
.profile-head { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.profile-head .who { flex: 1; display: grid; gap: 6px; min-width: 200px; }
.profile-head h1 { font: 700 28px/1.3 var(--font); }
.profile-head .bdg { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-head .sm { color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stats-row a { display: grid; gap: 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.stats-row a:hover { border-color: var(--line-2); }
.stats-row b { font-size: 24px; line-height: 1.2; }
.stats-row span { font-size: 13px; color: var(--ink-3); }
.menu-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.menu-groups h2 { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 0 4px 8px; }
.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.menu-list li + li { border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-weight: 500; transition: background-color .15s; min-height: 56px; }
.menu-list a:hover { background: var(--stone); }
.menu-list .ic { width: 28px; height: 36px; color: var(--clay); display: grid; place-items: center; flex: none; }
.menu-list .ic .i { width: 20px; height: 20px; }
.menu-list .l { flex: 1; }
.menu-list .n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--clay); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.menu-list a > .i { width: 18px; height: 18px; color: var(--ink-3); }
.menu-list .out { color: var(--danger); }
.menu-list .out .ic { color: var(--danger); }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.status-grid button { display: grid; gap: 0; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-align: start; }
.status-grid b { font-size: 20px; line-height: 1.3; }
.status-grid span { font-size: 13px; color: var(--ink-3); }
.status-grid [aria-selected="true"] { border-color: var(--clay); background: var(--clay-tint); box-shadow: inset 0 0 0 1px var(--clay); }
.status-grid [aria-selected="true"] span { color: var(--clay-ink); font-weight: 700; }
.myads { display: grid; }
.myad { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.myad-img img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--sand-3); }
.myad-b { min-width: 0; display: grid; gap: 6px; }
.myad .t { font-weight: 700; font-size: 16px; line-height: 1.45; }
.myad .t a:hover { color: var(--clay); }
.myad .m, .myad .m2 { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-3); align-items: center; }
.myad .m .chip { height: 24px; font-size: 12px; font-weight: 700; }
.t-warn { color: var(--warn); }
.myad .acts { display: flex; gap: 6px; }
.myad .acts .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.myad .acts .btn.sq { width: 40px; padding: 0; }
.myad .acts .btn .i { width: 17px; height: 17px; }
.myad .warn { grid-column: 2 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--danger-tint); color: #7d2c21; font-size: 13.5px; line-height: 1.7; }
.myad .warn .i { width: 18px; height: 18px; margin-top: 2px; }
.myad.off .myad-img img { filter: grayscale(.8) opacity(.6); }
.list-note { margin-top: 16px; display: flex; gap: 6px; align-items: flex-start; }
.list-note .i { margin-top: 2px; }

.form-card { display: grid; gap: 20px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); margin-top: 24px; }
.acct .form-card { margin-top: 0; max-width: 640px; }
.form-f { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 20px; }
.locked-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-radius: var(--r-s); background: var(--stone); border: 1px solid var(--line); }
.locked-field .ltr { color: var(--ink-2); letter-spacing: .03em; }
[data-phone-flow] .auth-form { padding: 0; margin: 0; max-width: none; }
[data-phone-flow] .auth-form .otp-title { font-size: 22px; }
.badge-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.badge-pick label { position: relative; }
.badge-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.badge-pick .bp { display: grid; gap: 2px; align-content: start; height: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); transition: border-color .15s, background-color .15s; }
.badge-pick .bp .i { color: var(--clay); width: 22px; height: 22px; margin-bottom: 4px; }
.badge-pick b { font-size: 15px; }
.badge-pick small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.badge-pick input:checked + .bp { border-color: var(--clay); background: var(--clay-tint); box-shadow: inset 0 0 0 1px var(--clay); }
.badge-pick input:focus-visible + .bp { outline: 2px solid var(--clay); outline-offset: 2px; }

.notif-group + .notif-group { margin-top: 28px; }
.notif-group h2 { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 0 4px 8px; }
.notifs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.notifs li + li { border-top: 1px solid var(--line); }
.notif { display: flex; gap: 14px; align-items: flex-start; padding: 16px; transition: background-color .15s; }
.notif:hover { background: var(--stone); }
.notif.unread { background: #FFF9F4; }
.notif .ic { width: 28px; height: 28px; display: grid; place-items: center; flex: none; }
.notif .ic .i { width: 22px; height: 22px; }
.tone-clay { color: var(--clay); }
.tone-ok { color: var(--olive); }
.tone-warn { color: var(--warn); }
.tone-bad { color: var(--danger); }
.notif .b { flex: 1; display: grid; gap: 2px; min-width: 0; }
.notif .tx { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.notif .tx b, .notif.unread .tx { color: var(--ink); }
.notif .tm { font-size: 12.5px; color: var(--ink-3); }
.un { width: 9px; height: 9px; border-radius: 99px; background: var(--clay); flex: none; margin-top: 8px; }
.notifs.all-read .notif.unread { background: none; }
.notifs.all-read .un { display: none; }

.blocked-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.blocked-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.blocked-list li + li { border-top: 1px solid var(--line); }
.blocked-list .b { flex: 1; display: grid; }
.blocked-list .b span { font-size: 13px; color: var(--ink-3); }
.blocked-list li.is-done { opacity: .55; }

@media (max-width: 960px) {
  .acct { grid-template-columns: 1fr; margin-top: 14px; gap: 0; }
  .acct > .side-nav { display: none; }
  .acct-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--clay); margin-bottom: 4px; }
  .acct-back .i { width: 18px; height: 18px; }
  .crumbs:has(+ .acct) { display: none; }
  .acct-h { margin-bottom: 18px; }
  .acct-h .hide-m { display: none; }
  .profile-head { padding: 18px; gap: 14px; }
  .profile-head .avatar-lg { width: 64px; height: 64px; font-size: 28px; }
  .profile-head h1 { font-size: 22px; }
  .profile-head .btn { width: 100%; }
  .menu-groups { grid-template-columns: 1fr; gap: 22px; margin-top: 22px; }
  .stats-row a { padding: 12px; }
  .stats-row b { font-size: 20px; }
  .stats-row span { font-size: 12px; }
  .status-grid { gap: 6px; }
  .status-grid button { padding: 8px 10px; }
  .status-grid b { font-size: 18px; }
  .status-grid span { font-size: 11.5px; line-height: 1.4; }
  .myad { grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
  .myad-img img { width: 72px; height: 72px; border-radius: 12px; }
  .myad .t { font-size: 15px; }
  .myad .acts { grid-column: 1 / -1; }
  .myad .acts .btn:not(.sq) { flex: 1; }
  .myad .warn { grid-column: 1 / -1; }
  .form-card { padding: 18px; border-radius: var(--r-l); }
  .badge-pick { grid-template-columns: 1fr; }
  .badge-pick .bp { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
  .badge-pick .bp .i { grid-row: span 2; margin: 0; }
  .notif { padding: 14px; gap: 12px; }
  .notif .tx { font-size: 14.5px; }
}

/* ── ملف البائعة ──────────────────────────────── */
.seller-hero { margin-top: 22px; display: flex; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seller-hero .who { flex: 1; display: grid; gap: 8px; min-width: 0; }
.seller-hero h1 { font: 700 30px/1.25 var(--font); }
.seller-hero .bdg { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.seller-hero .sum { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); width: max-content; }
.seller-hero .sum b { color: var(--ink); font-size: 15px; }
.aside-h { font-size: 22px; font-weight: 700; }
.rating-box { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.rating-box.wide { max-width: 640px; }
.rating-box .big { text-align: center; display: grid; gap: 4px; justify-items: center; }
.rating-box .big b { font: 700 50px/1 var(--font); }
.bars { display: grid; gap: 8px; }
.bars div { display: grid; grid-template-columns: 14px 1fr 26px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3); }
.bars i { height: 8px; border-radius: 99px; background: var(--stone); overflow: hidden; position: relative; }
.bars i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--clay); border-radius: inherit; }
.reviews { display: grid; }
.reviews.boxed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 0 20px; margin-top: 16px; max-width: 640px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.reviews.boxed .review:last-child { border-bottom: 0; }
.review .h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review .h .nm { font-weight: 700; font-size: 15px; }
.review .h .d { color: var(--ink-3); font-size: 13px; margin-inline-start: auto; }
.review p { color: var(--ink-2); font-size: 15px; }
.review.mine { border: 0; padding: 0; }
.rate-form { padding: 22px; border-radius: var(--r-l); background: var(--sand-3); display: grid; gap: 12px; }
.rate-form h3 { font-size: 17px; font-weight: 700; }
.rated-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rate-stars { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.rate-stars button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--line-2); transition: color .12s, transform .12s; }
.rate-stars button:hover { transform: scale(1.08); }
.rate-stars button .i { width: 30px; height: 30px; }
.rate-stars button.on { color: var(--clay); }
.rate-stars button.on .i { fill: var(--clay); }
.rate-l { direction: rtl; font-size: 13.5px; color: var(--ink-3); margin-inline-end: 8px; order: -1; }
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 40px; align-items: start; }
.two-col aside { display: grid; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; margin-top: 28px; }
  .two-col aside { position: static; }
  .seller-hero { padding: 18px; gap: 14px; }
  .seller-hero .avatar-lg { width: 64px; height: 64px; font-size: 28px; }
  .seller-hero h1 { font-size: 24px; }
  .seller-hero > .btn { width: 100%; }
  .rating-box { gap: 18px; padding: 18px; }
  .rating-box .big b { font-size: 42px; }
}

/* ── الرسائل ──────────────────────────────────── */
.inbox { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 76px - 60px - 40px); min-height: 560px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.convs { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.convs-h { padding: 18px 18px 12px; display: grid; gap: 12px; }
.convs-h h1 { font: 700 24px/1.3 var(--font); }
.convs-h .input { height: 44px; border-radius: 999px; background: var(--surface); padding-inline-start: 42px; font-size: 15px; }
.convs-h .s { position: relative; }
.convs-h .s .i { position: absolute; inset-inline-start: 14px; top: 12px; width: 20px; height: 20px; color: var(--ink-3); }
.convs ul { overflow: auto; flex: 1; padding: 0 8px 10px; }
.conv { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer; align-items: center; width: 100%; text-align: start; }
.conv:hover { background: var(--stone); }
.conv[aria-current="true"] { background: var(--surface); box-shadow: var(--sh-1); }
.conv .b { min-width: 0; display: grid; gap: 1px; }
.conv .nm { font-weight: 700; font-size: 15px; }
.conv .ad-t { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--clay-ink); min-width: 0; }
.conv .ad-t img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; flex: none; }
.conv .ad-t > .i { width: 16px; height: 16px; flex: none; }
.conv .ad-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .last { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .r { display: grid; justify-items: end; gap: 8px; align-self: start; padding-top: 2px; }
.conv .tm { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.conv .un { margin: 0; }
.conv.unread .last { color: var(--ink); font-weight: 700; }
.conv.is-deleted .nm { color: var(--ink-3); }
.convs-empty { flex: 1; display: grid; place-items: center; padding: 16px; }
.convs-empty .empty { margin: 0; border: 0; }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.thread-empty { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); background: var(--paper); }
.thread-empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); display: grid; place-items: center; color: var(--line-2); }
.thread-empty .ic .i { width: 30px; height: 30px; }
.thread-h { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.thread-h .who { flex: 1; display: grid; min-width: 0; }
.thread-h .nm { font-weight: 700; }
.thread-h .sm { font-size: 12.5px; color: var(--olive); display: flex; gap: 4px; align-items: center; }
.thread-h .back { display: none; }
.adbar { display: flex; gap: 12px; align-items: center; padding: 10px 18px; background: var(--sand-3); border-bottom: 1px solid var(--line); }
.adbar img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.adbar .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adbar .t span { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.adbar > .i { width: 18px; height: 18px; color: var(--ink-3); }
.adbar.is-gone img { filter: grayscale(1) opacity(.6); }
.adbar.is-gone .t span { color: var(--warn); font-weight: 700; }
.adbar .gi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--clay); flex: none; }
.adbar .gi .i { width: 22px; height: 22px; }
.block-panel { padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.block-panel .reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.block-panel .reasons label { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; cursor: pointer; }
.block-panel .reasons input { accent-color: var(--danger); }
.block-panel .reasons label:has(input:checked) { border-color: var(--danger); background: var(--danger-tint); color: var(--danger); }
.block-panel .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.msgs { flex: 1; overflow: auto; padding: 22px 22px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.day { align-self: center; font-size: 12px; color: var(--ink-3); background: var(--surface); padding: 3px 12px; border-radius: 99px; border: 1px solid var(--line); margin: 6px 0; }
.sysnote { align-self: center; max-width: 440px; text-align: start; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.65; margin: 4px 0; }
.sysnote .i { width: 18px; height: 18px; color: var(--clay); margin-top: 2px; }
.sysnote.warn { background: var(--warn-tint); border-color: #F1DFC0; color: #6D4610; }
.sysnote.warn .i { color: var(--warn); }
.bubble { max-width: min(72%, 460px); padding: 9px 14px 7px; border-radius: 18px; font-size: 15px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--clay); color: #FFF8F2; border-color: var(--clay); border-start-start-radius: 18px; border-start-end-radius: 6px; }
.bubble time { display: block; font-size: 12px; opacity: .7; margin-top: 2px; text-align: end; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.ta-wrap { flex: 1; position: relative; display: grid; }
.composer textarea { min-height: 48px; max-height: 140px; height: 48px; resize: none; border-radius: 24px; border: 1px solid var(--line-2); padding: 11px 18px; background: var(--paper); line-height: 1.6; font-size: 16px; }
.composer textarea:focus { outline: none; border-color: var(--clay); }
.composer .counter { position: absolute; inset-inline-end: 16px; bottom: -18px; font-size: 11px; opacity: 0; transition: opacity .2s; }
.composer .counter.near { opacity: 1; }
.composer .send { width: 48px; height: 48px; border-radius: 999px; background: var(--clay); color: #fff; display: grid; place-items: center; flex: none; }
.composer .send:hover { background: var(--clay-ink); }
.composer .send:disabled { background: var(--line-2); cursor: not-allowed; }
.composer .send .i { transform: scaleX(-1); }
.composer-off { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 18px; border-top: 1px solid var(--line); background: var(--stone); color: var(--ink-2); font-size: 14px; text-align: center; }
.composer-off .i { width: 20px; height: 20px; color: var(--ink-3); }
.composer-alert { display: flex; gap: 8px; align-items: center; padding: 10px 18px; background: var(--warn-tint); color: #6D4610; font-size: 13.5px; border-top: 1px solid #F1DFC0; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 0; background: var(--surface); border-top: 1px solid var(--line); }
.quick + .composer { border-top: 0; }
.quick button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.quick button:hover { border-color: var(--clay); color: var(--clay-ink); }
@media (max-width: 860px) {
  .msgs-page .ftr, .msgs-page .crumbs { display: none; }
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - 58px - 58px - 76px); margin: 0 calc(var(--gut) * -1); border-radius: 0; border: 0; min-height: 0; }
  .inbox .thread { display: none; }
  .inbox.open .convs { display: none; }
  .inbox.open .thread { display: flex; }
  .msgs-page.thread-open .tabbar, .msgs-page:has(.inbox.open) .tabbar { display: none; }
  .msgs-page:has(.inbox.open) { padding-bottom: 0; }
  .msgs-page:has(.inbox.open) .hdr-mobile-search { display: none; }
  .msgs-page:has(.inbox.open) .inbox { height: calc(100dvh - 58px); }
  .convs-h { padding: 14px 16px 10px; }
  .convs ul { padding: 0 4px 8px; }
  .thread-h { padding: 8px 10px; gap: 8px; }
  .thread-h .back { display: inline-grid; }
  .thread-h .back .i { transform: scaleX(-1); }
  .thread-h .btn span { display: none; }
  .thread-h .btn { width: 40px; padding: 0; }
  .adbar { padding: 8px 12px; }
  .msgs { padding: 14px 12px 8px; }
  .bubble { max-width: 84%; }
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .quick { padding: 8px 12px 0; flex-wrap: nowrap; overflow: hidden; }
  .quick button { white-space: nowrap; }
  .quick button:nth-child(n+3) { display: none; }
}

/* ── الحالات الفاضية ───────────────────────────── */
.empty { margin-top: 32px; padding: 44px 24px; border-radius: var(--r-xl); border: 1.5px dashed var(--line-2); display: grid; justify-items: center; text-align: center; gap: 12px; }
.empty .ic { width: 56px; height: 56px; color: var(--clay); display: grid; place-items: center; }
.empty .ic .i { width: 44px; height: 44px; stroke-width: 1.3; }
.empty h2 { font: 700 22px/1.4 var(--font); }
.empty p { color: var(--ink-2); max-width: 44ch; }
.empty .btn { margin-top: 6px; }
.empty-sm { padding: 28px 20px; margin-top: 16px; }
.empty-sm .ic { width: 56px; height: 56px; border-radius: 18px; }
.empty-sm .ic .i { width: 26px; height: 26px; }
.empty-sm h2 { font-size: 18px; }
.empty-sm p { font-size: 14.5px; }
.empty-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.empty-acts .btn { margin-top: 6px; }

/* ── الصفحات الثابتة ───────────────────────────── */
.doc { display: grid; grid-template-columns: 1fr 260px; gap: 64px; align-items: start; }
.prose { max-width: 70ch; display: grid; gap: 20px; }
.doc-meta { font-size: 13.5px; color: var(--ink-3); margin-top: -12px; }
.prose .lead { font-size: 19px; color: var(--ink); line-height: 1.85; }
.prose section { scroll-margin-top: 100px; }
.prose h2 { font: 700 22px/1.4 var(--font); margin: 12px 0 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.95; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-inline-start: 18px; }
.prose li::before { content: ''; position: absolute; inset-inline-start: 0; top: .82em; width: 6px; height: 6px; border-radius: 9px; background: var(--clay); }
.doc-foot { padding-top: 20px; border-top: 1px solid var(--line); }
.toc { position: sticky; top: 100px; margin-top: 64px; padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.toc strong { font-size: 13px; color: var(--ink-3); }
.toc ol { display: grid; gap: 6px; counter-reset: t; }
.toc ol a { color: var(--ink-2); }
.toc a:hover { color: var(--clay); }
.toc hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.toc-pages { display: grid; gap: 4px; }
.toc-pages a { display: block; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); }
.toc-pages a[aria-current] { background: var(--clay-tint); color: var(--clay-ink); font-weight: 700; }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; margin-top: 0; order: 2; }
  .toc ol, .toc > strong, .toc hr { display: none; }
  .toc-pages { grid-template-columns: 1fr 1fr; }
  .prose .lead { font-size: 17px; }
  .prose p, .prose li { font-size: 16px; }
}

/* ── 404 ──────────────────────────────────────── */
.nf { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: 72px; }
.nf-code { font: 700 clamp(88px, 18vw, 160px)/1 var(--font); color: var(--sand); }
.nf h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.nf p { color: var(--ink-2); max-width: 44ch; }
.nf-search { width: min(520px, 100%); margin-top: 10px; flex: none; }
.nf-links { display: flex; gap: 10px; margin-top: 6px; }
@media (max-width: 600px) { .nf { padding-top: 40px; } }

/* ── المكوّنات والفهرس ──────────────────────────── */
.ds-sec { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.ds-h h2 { font-size: 22px; font-weight: 700; }
.ds-h p { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.ds-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ds-stack { display: grid; gap: 10px; max-width: 640px; }
.ds-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ds-grid2 .field select + select { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sw { display: grid; gap: 4px; font-size: 13px; }
.sw span { height: 64px; border-radius: 14px; border: 1px solid var(--line); }
.sw code { color: var(--ink-3); font-size: 11.5px; }
.type-scale { display: grid; gap: 6px; }
.type-scale .t1 { font-size: 44px; font-weight: 700; line-height: 1.2; }
.type-scale .t2 { font-size: 26px; font-weight: 700; }
.type-scale .t3 { font-size: 16px; }
.type-scale .t4 { font-size: 13px; color: var(--ink-3); }
.sk { background: linear-gradient(90deg, var(--stone) 25%, var(--sand-3) 50%, var(--stone) 75%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: 10px; }
.sk-media { aspect-ratio: 1; border-radius: var(--r-l); }
.sk-line { height: 14px; margin-top: 4px; }
.sk-line.short { width: 55%; }
@keyframes sk { to { background-position: -200% 0; } }
/* فهرس المعاينة للعميلة (pages.html) */
.ix-head { background: #2B1D16; color: #FFF8F2; padding-block: 48px 36px; }
.ix-logo { height: 46px; width: auto; }
.ix-head h1 { font: 700 clamp(30px, 4.4vw, 52px)/1.2 var(--font); margin-top: 28px; }
.ix-head p { color: rgb(255 248 242 / .8); margin-top: 10px; font-size: 17px; line-height: 1.8; max-width: 52ch; }
.ix-tips { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.ix-tips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: rgb(255 248 242 / .9); }
.ix-tips .i { color: var(--gold); }
.ix-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ix-jump a { padding: 8px 16px; border-radius: 99px; border: 1px solid rgb(255 248 242 / .3); font-size: 14px; font-weight: 500; }
.ix-jump a:hover { background: rgb(255 248 242 / .12); }
.ix { margin-top: 48px; scroll-margin-top: 16px; }
.ix:last-child { margin-bottom: 80px; }
.ix h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.3 var(--font); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ix h2 .cnt { font-size: 14px; color: var(--ink-3); background: var(--stone); padding: 2px 10px; border-radius: 99px; }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; }
.ix-grid a { display: grid; gap: 12px; }
.ix-shot { display: block; aspect-ratio: 390 / 700; border-radius: 18px; overflow: hidden; background: var(--sand-3); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ix-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ix-grid a:hover .ix-shot { transform: translateY(-4px); box-shadow: var(--sh-2); }
.ix-t { display: flex; gap: 8px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.ix-t .n { color: var(--clay); flex: none; }
.ix-t span { display: grid; }
.ix-t small { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.review-pill { position: fixed; z-index: 60; inset-inline-start: 20px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 18px; border-radius: 99px; background: var(--ink); color: #FBF7F1; font-size: 14.5px; font-weight: 700; box-shadow: var(--sh-3); }
.review-pill:hover { background: #3a3532; }
@media (max-width: 760px) {
  .ds-grid2 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .type-scale .t1 { font-size: 32px; }
  .ix-head { padding-block: 32px 28px; }
  .ix-head p { font-size: 15.5px; }
  .ix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .ix-shot { border-radius: 14px; }
  .ix-t { font-size: 14px; }
  .review-pill { bottom: calc(86px + env(safe-area-inset-bottom)); inset-inline-start: 12px; height: 42px; font-size: 13.5px; padding-inline: 14px; }
  .review-pill.no-tab { bottom: 16px; }
  .msgs-page:has(.inbox.open) .review-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── الموبايل: لمس ≥ 44px وخط الخانات 16px (عشان iOS ما يكبّر الصفحة) ── */
@media (max-width: 860px) {
  .select, .hdr-search input, .convs-h input, .convs-h .input, .finder .select, #sort { font-size: 16px !important; }
  .sec-head .more, .acct-back, .filters .reset, .auth-form .link-quiet { min-height: 44px; display: inline-flex; align-items: center; }
  .filters .reset { padding-inline: 8px; }
  #sort { min-height: 44px; }
  .btn-sm { height: 44px; }
  .ftr li a { display: block; padding: 10px 0; }
  .card-media .fav::before, .active-filters .chip button::before, .uploads .u .x::before, .uploads .u .grip::before {
    content: ""; position: absolute; inset: -8px;
  }
  .active-filters .chip button { position: relative; }
  /* الهيدر: سطر اللوجو يطلع لفوق وانتِ نازلة، وخانة البحث تفضل ثابتة. نص الارتفاع للإعلانات */
  .hdr { top: -58px; }
}

/* ── الرئيسية على الجوال: أول إعلان يبان من أول سحبة ──
   hero أقصر، الأقسام صفين (أكثر 7 استخدامًا + «كل الأقسام»)، بدون شريط الأرقام والكارت البني المكرر */
@media (max-width: 860px) {
  .stats, .sec-cta { display: none; }
  .sec-first { margin-top: 20px; }
  .sec-first .sec-head p { display: none; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .cat { padding: 10px 2px 8px; }
  .cat .nm { font-size: 12.5px; line-height: 1.35; }
  .cat .ct { font-size: 12px; }
  .cat .new { top: 4px; inset-inline-start: 4px; height: 18px; font-size: 11px; padding: 0 6px; }
  .cat-more { display: none; }
}

/* مسح كل الفلاتر: يظهر بوضوح لما يكون فيه فلترين أو أكثر */
.active-filters .clear-all { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px; background: var(--clay-tint); color: var(--clay-ink); font: 700 14px/1 var(--font); }
.active-filters .clear-all .i { width: 14px; height: 14px; }
.active-filters .clear-all:hover { background: var(--clay); color: #fff; }
.active-filters .clear-all[hidden] { display: none; }
@media (max-width: 860px) { .active-filters .clear-all { height: 44px; } }
