/* cb.css — تطبيق الزبون «كاش باك» (plans/cashback/30، جولة 2: plans/cashback/70): روح لقطات شام كاش التي أرسلها المالك —
   خلفية بيج رمادية، بلاطات زرقاء رمادية، زر استقبال أخضر وإرسال أحمر، بطاقات بيضاء بزوايا كبيرة، شريط سفلي بزر مسح عائم.
   كل الشبكات بـ minmax(0,1fr) وكل نص طويل يُقصّ داخل عنصره — لا شيء يخرج عن عرض الشاشة (مفحوص آلياً على 320/360/390). */
@font-face { font-family: CbArabic; src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: CbArabic; src: url('/fonts/IBMPlexSansArabic-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: CbArabic; src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: CbArabic; src: url('/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  /* S3 «بطاقة المحفظة» (2026-09-30، اختيار المالك): رمادي بارد محايد، هوية زرقاء رمادية أعمق، وارد أخضر وصادر أحمر هادئان */
  --cb-bg: #F2F3F5; --cb-surface: #FFFFFF; --cb-line: #E4E7EC; --cb-tile: #445C80; --cb-tile-deep: #3A5176; --cb-wrap: #FFFFFF;
  --cb-green: #3C8160; --cb-red: #AD5650; --cb-text: #1B2130; --cb-muted: #626A78; --cb-accent: #445C80; --cb-open: #3C8160; --cb-radius: 20px;
  --cb-in: #23764F; --cb-out: #A63A31; --cb-soft: #ECF0F6;
  --cb-shadow: 0 1px 3px rgb(27 33 48 / 6%), 0 6px 16px rgb(27 33 48 / 5%);
  /* جولة 3/W5: كل الألوان متغيرات ليشتغل الوضع الليلي (data-theme="dark") */
  --cb-track: #E3E6EB; --cb-cover: #ECF0F6; --cb-cover2: #F2F3F5; --cb-chatbg: #E9ECF1; --cb-voice: #ECF0F6;
  --cb-deep: #1B2130; --cb-tabink: #6D7584; --cb-badge: #C8372D; --cb-faint: #A7AEBA;
  --cb-banner-bg: #FFF8E6; --cb-banner-line: #D9B45B; --cb-banner-text: #7A5A00;
  --cb-warn-bg: #FFF6E0; --cb-warn-line: #F0C36D; --cb-warn-text: #5C4000;
  --cb-unread-bd: #D3DCEA; --cb-unread-bg: #F5F8FC; --cb-in-bg: #E2F2E9; --cb-out-bg: #F8E6E3;
  --cb-pill-red-bg: #F8E6E3; --cb-pill-red-tx: #A63A31; --cb-pill-amber-bg: #FBF0D9; --cb-pill-amber-tx: #8A5A00;
  --cb-taxi-bg: #FBF0D9; --cb-taxi-tx: #8A5A00; --cb-code-bg: #F2F3F5; --cb-code-tx: #111111;
  /* S3: نص فوق لون الهوية، تدرج بطاقة المحفظة، سطوح الحقول والقوائم (cbSelect)، بطاقة «طلبك الجاري»، فقاعتي، والزوايا */
  --cb-on-brand: #FFFFFF; --cb-card-a: #4A6389; --cb-card-b: #3A5176; --cb-input: #FFFFFF; --cb-card: #FFFFFF; --cb-blue-bg: #E9EEF6;
  --cb-bubble-me: #4A6389; --cb-bubble-me-ink: #FFFFFF; --cb-seen: #D6F0E0; --cb-wa: #1F7A4D;
  --cb-r-row: 16px; --cb-r-btn: 14px;
}
[data-theme="dark"] {
  --cb-bg: #121417; --cb-surface: #181B21; --cb-line: #262A32; --cb-tile: #94AACB; --cb-tile-deep: #7F96BA; --cb-wrap: #181B21;
  --cb-green: #357556; --cb-red: #9C4A44; --cb-text: #EEF1F5; --cb-muted: #A1A9B5; --cb-accent: #94AACB; --cb-open: #357556;
  --cb-in: #7FC49D; --cb-out: #EC9C92; --cb-soft: #20262F;
  --cb-shadow: 0 1px 3px rgb(0 0 0 / 40%);
  --cb-track: #262B33; --cb-cover: #20262F; --cb-cover2: #181B21; --cb-chatbg: #15181D; --cb-voice: #20262F;
  --cb-deep: #2B323C; --cb-tabink: #8E97A3; --cb-badge: #C94437; --cb-faint: #59616D;
  --cb-banner-bg: #33290E; --cb-banner-line: #8A7134; --cb-banner-text: #E6C76A;
  --cb-warn-bg: #33290E; --cb-warn-line: #8A7134; --cb-warn-text: #E6C76A;
  --cb-unread-bd: #283449; --cb-unread-bg: #19202B; --cb-in-bg: #18291F; --cb-out-bg: #35211E;
  --cb-pill-red-bg: #35211E; --cb-pill-red-tx: #EC9C92; --cb-pill-amber-bg: #30270F; --cb-pill-amber-tx: #E6C76A;
  --cb-taxi-bg: #30270F; --cb-taxi-tx: #E6C76A; --cb-code-bg: #20262F; --cb-code-tx: #EEF1F5;
  --cb-on-brand: #0E1014; --cb-card-a: #2F4263; --cb-card-b: #223250; --cb-input: #15181D; --cb-card: #181B21; --cb-blue-bg: #1A2230;
  --cb-bubble-me: #34496A; --cb-bubble-me-ink: #EEF1F5; --cb-seen: #A8E6C2; --cb-wa: #1F7A4D;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
html, body { margin: 0; background: var(--cb-bg); color: var(--cb-text); font-family: CbArabic, Tahoma, system-ui, sans-serif; -webkit-text-size-adjust: 100%; overscroll-behavior-y: contain; }
/* r1008b: 100vh على Safari = أكبر نافذة (شريط الأدوات مطوي) ⇒ الصفحات القصيرة تتمرّر بمقدار شريط الأدوات فيتحرّك معه الشريط السفلي؛ dvh = النافذة الفعلية */
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
/* جولة 3: لا سحب للتحديث على الصفحة؛ الحاويات القابلة للتمرير تحتجز التمرير داخلها */
.cb, .cb-sheet-card, .cb-chat, .cb-recents, .cb-scroller, [data-scroll] { overscroll-behavior-y: contain; }
body.cb-lock { overflow: hidden; }
body.cb-lock .cb-sheet { touch-action: none; }
body.cb-lock .cb-sheet-card { touch-action: pan-y; }
button, input, textarea, select { font: inherit; color: inherit; }
/* P3-5 (المالك 2026-10-07): لا تكبير بالشاشة — منع تكبير النقر المزدوج، ومنع تكبير iOS التلقائي عند التركيز على أي حقل (يحدث إن كان خطه <16px).
   html:font-size = 15px لذا 1rem لا يكفي؛ max(16px,…) يضمن 16px على الأقل، والحقول الأكبر بقواعدها الخاصة (أعلى خصوصية) تبقى كما هي. */
html, body, a, button, input, select, textarea, label, summary, [role="button"], [data-go] { touch-action: manipulation; }
body input, body textarea, body select { font-size: max(16px, 1rem); }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cb-tile); outline-offset: 2px; }
/* S3: menu.css يُحمَّل بعدنا ويلوّن الإطار بلون المنيو — حلقة التركيز بلون الهوية خارج المنيو المضمّن */
:root :focus-visible { outline-color: var(--cb-tile); }
.cb-embed .mn :focus-visible { outline-color: var(--mn-accent); }
img { display: block; max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(118px + env(safe-area-inset-bottom)); overflow-x: clip; }
.cb-splash { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.cb-splash img { border-radius: 24px; }

/* ── الرأس ── */
.cb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; }
.cb-logo { width: 52px; height: 52px; border-radius: 50%; background: var(--cb-soft); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 4%); flex: none; }
.cb-logo img { width: 40px; height: 40px; border-radius: 12px; }
.cb-icon-btn { width: 48px; height: 48px; border: none; background: transparent; display: grid; place-items: center; position: relative; border-radius: 14px; flex: none; color: var(--cb-text); }
.cb-icon-btn svg { width: 28px; height: 28px; }
.cb-badge { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--cb-badge); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; font-weight: 700; font-style: normal; }
.cb-hello { margin: 4px 0 0; color: var(--cb-muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-place { display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; color: var(--cb-muted); padding: 4px 0; font-size: .9rem; text-decoration: none; }
.cb-banner { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; border: 1px dashed var(--cb-banner-line); background: var(--cb-banner-bg); color: var(--cb-banner-text); border-radius: 16px; padding: 12px 14px; text-align: start; font-weight: 600; }

/* ── الإعلانات (دائماً بالأعلى) ── */
/* r1008b (المالك 2026-10-08: «صعوبة بالانزلاق عند وضع الإصبع على الإعلان»): السبب أن الشريط كان ضمن قائمة overscroll-behavior-y: contain
   وoverflow-x: auto يجعل overflow-y: auto ضمنياً ⇒ الشريط حاوية تمرير عمودية أيضاً (ولو بفرق تقريب بكسل) فيبتلع السحب العمودي الذي يبدأ
   على الإعلان ولا يمرّره للصفحة. الآن: لا تمرير عمودي داخله (overflow-y: hidden) والسحب العمودي يتسلسل للصفحة (overscroll-behavior-y: auto)،
   والأفقي محصور بالشريط (لا رجوع للخلف بالسحب)، وtouch-action صريح للمحورين، وكل إعلان محطة واحدة (snap-stop) والصورة لا تُسحب. */
.cb-ads { margin: 10px -16px 0; padding: 0 16px; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; overscroll-behavior-y: auto; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.cb-ads::-webkit-scrollbar { display: none; }
.cb-ad { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; background: var(--cb-line); border: none; padding: 0; touch-action: pan-x pan-y; }
.cb-ad img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
/* «إعلانات متحركة»: فيديو الإعلان متل الصورة — بيملّي الكرت 3:1 وما بيلتقط اللمس (السحب يضل للشريط) */
.cb-ad video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: var(--cb-line); }
/* r1010: صفحة «العروض» — إعلانات المتاجر عمودياً بعرض كامل بدل الشريط الأفقي */
.cb-offer-ads { display: grid; gap: 10px; margin-top: 4px; }
.cb-offer-ads .cb-ad { width: 100%; }
.cb-ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.cb-ad-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--cb-faint); }
.cb-ad-dots i.on { width: 18px; background: var(--cb-tile); }

/* ── الرئيسية S3: التحية والمكان يميناً والجرس يساراً بدائرة بيضاء ── */
.cb-home-top { align-items: flex-start; min-height: 54px; }
.cb-hi { flex: 1; min-width: 0; display: grid; line-height: 1.45; padding-top: 4px; }
.cb-hi b { font-size: 1.1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-hi .cb-place { padding: 0; font-size: .84rem; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cb-hi .cb-place svg { display: inline-block; vertical-align: -3px; }
.cb-bell { background: var(--cb-surface); border-radius: 50%; box-shadow: var(--cb-shadow); color: var(--cb-text); }
.cb-bell .cb-badge { top: 1px; inset-inline-end: 1px; box-shadow: 0 0 0 2px var(--cb-bg); }
/* F28: زر الرسائل (نافذة منبثقة) جنب الجرس بالرئيسية */
.cb-top-acts { display: flex; gap: 8px; flex: none; }
.cb-msgs-btn .cb-dot { top: 8px; inset-inline-end: 8px; box-shadow: 0 0 0 2px var(--cb-surface); }
.cb-msgs-list { max-height: 60vh; overflow-y: auto; }

/* ── بطاقة المحفظة: تدرج الهوية + دوائر زخرفية، «نقاط كاش باك» والعين، الرصيد، استقبال/إرسال ── */
.cb-wcard { position: relative; overflow: hidden; margin-top: 14px; border-radius: 26px; padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(145deg, var(--cb-card-a), var(--cb-card-b)); box-shadow: 0 12px 30px rgb(58 81 118 / 28%); }
.cb-wcard::before, .cb-wcard::after { content: ''; position: absolute; border-radius: 50%; border: 18px solid rgb(255 255 255 / 6%); pointer-events: none; }
.cb-wcard::before { width: 220px; height: 220px; left: -70px; top: -90px; }
.cb-wcard::after { width: 140px; height: 140px; left: 40px; bottom: -80px; border-width: 12px; }
[data-theme="dark"] .cb-wcard { box-shadow: 0 12px 30px rgb(0 0 0 / 40%); }
.cb-wtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; }
.cb-wcard .cb-bal-name { margin: 0; text-align: start; color: rgb(255 255 255 / 88%); font-size: .9rem; }
.cb-eye { width: 38px; height: 38px; border-radius: 12px; background: rgb(255 255 255 / 14%); border: none; display: grid; place-items: center; color: #fff; flex: none; }
.cb-eye svg { width: 21px; height: 21px; }
.cb-amount { position: relative; margin-top: 4px; font-size: clamp(2.2rem, 11vw, 2.8rem); font-weight: 700; direction: rtl; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; line-height: 1.3; }
.cb-amount bdi, .cb-amount span { white-space: nowrap; }
.cb-amount small { font-size: .5em; font-weight: 600; color: rgb(255 255 255 / 80%); }
.cb-flow { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cb-flow button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: none; border-radius: 15px; background: #fff; color: #1B2130; font-weight: 700; font-size: 1rem; min-width: 0; }
.cb-flow button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-flow svg { width: 24px; height: 24px; flex: none; }
.cb-flow .in svg { color: #3F8563; }
.cb-flow .out svg { color: #AD5650; }
[data-theme="dark"] .cb-flow button { background: rgb(255 255 255 / 12%); color: #fff; }
[data-theme="dark"] .cb-flow .in svg { color: #8FD3AE; }
[data-theme="dark"] .cb-flow .out svg { color: #F2A79D; }
.cb-flow button:active { transform: scale(.99); }
.cb-flow button[aria-disabled="true"] { opacity: .6; }

/* ── البلاطات الخمس صفاً واحداً (r1010): بطاقة بيضاء، الأيقونة بمربع ناعم بلون الهوية والتسمية تحتها ──
   خمسة أعمدة على 360px (~60px للبلاطة): أيقونة 36px وخط أصغر، والتسمية الطويلة («إرسال غرض») بتلتف لسطرين بدل القص */
.cb-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cb-tile { position: relative; min-height: 76px; border-radius: 16px; background: var(--cb-surface); color: var(--cb-text); box-shadow: var(--cb-shadow);
  display: grid; align-content: center; justify-items: center; gap: 5px; text-decoration: none; font-size: .76rem; font-weight: 500; border: none; min-width: 0; padding: 8px 2px; text-align: center; }
.cb-tile span { max-width: 100%; line-height: 1.2; overflow-wrap: anywhere; }
.cb-tile svg { width: 36px; height: 36px; padding: 7px; border-radius: 11px; background: var(--cb-soft); color: var(--cb-tile); }
.cb-tile .cb-badge { top: 6px; inset-inline-end: 6px; box-shadow: 0 0 0 2px var(--cb-surface); }
.cb-tile:active { background: var(--cb-soft); }
.cb-tile[aria-disabled="true"] { opacity: .55; }

/* ── r1010: «ادعُ صديقك» — بطاقة بعنوان وسطر تاني بدل زر نص واحد ── */
.cb-invite { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 4px; padding: 12px; border: 1px dashed var(--cb-green); border-radius: 18px;
  background: color-mix(in srgb, var(--cb-green) 6%, var(--cb-surface)); color: var(--cb-text); font: inherit; text-align: start; cursor: pointer; }
.cb-invite-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--cb-green) 22%, var(--cb-surface)); color: var(--cb-green); flex: none; }
.cb-invite .t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cb-invite .t b { font-size: .98rem; }
.cb-invite .t span { color: var(--cb-muted); font-size: .82rem; line-height: 1.35; }
.cb-invite:active { background: var(--cb-soft); }

/* ── «طلبك الجاري»: حالة الطلب والمتجر ورقمه + شريط المراحل الأربع ── */
.cb-live { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--cb-blue-bg); color: var(--cb-text); border: 1px solid var(--cb-unread-bd); text-decoration: none; min-width: 0; }
.cb-live-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--cb-tile); color: var(--cb-on-brand); display: grid; place-items: center; flex: none; }
.cb-live-ic svg { width: 24px; height: 24px; }
.cb-live .t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cb-live .t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-live .t > span:not(.cb-live-steps) { color: var(--cb-muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-live-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.cb-live-steps i { height: 4px; border-radius: 2px; background: var(--cb-track); }
.cb-live-steps i.on { background: var(--cb-tile); }
.cb-live .cb-chev svg { width: 20px; height: 20px; }

/* ── البطاقات والقوائم ── */
.cb-h2 { font-size: 1.14rem; margin: 22px 0 12px; font-weight: 600; }
.cb-h1 { font-size: 1.34rem; margin: 10px 0 4px; font-weight: 600; }
.cb-sub { margin: 0 0 16px; color: var(--cb-muted); }
.cb-card { background: var(--cb-surface); border-radius: var(--cb-radius); padding: 16px; box-shadow: var(--cb-shadow); border: 1px solid var(--cb-line); }
.cb-empty { text-align: center; color: var(--cb-muted); padding: 22px 8px; }
.cb-empty > svg { color: var(--cb-tile); margin: 0 auto; }
.cb-list { display: grid; gap: 10px; }
.cb-row { display: flex; align-items: center; gap: 12px; background: var(--cb-surface); border-radius: var(--cb-r-row); padding: 12px 14px; border: 1px solid var(--cb-line); text-decoration: none; width: 100%; text-align: start; min-width: 0; }
button.cb-row { font: inherit; }
.cb-row.unread { border-color: var(--cb-unread-bd); background: var(--cb-unread-bg); }
.cb-row .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cb-row .t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-row .t span { color: var(--cb-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-row .t span.wrap { white-space: normal; color: var(--cb-text); }
/* N2: صورة إشعار بعرض البطاقة كاملاً تحت النص */
.cb-row.has-img { flex-wrap: wrap; }
.cb-notif-img { order: 9; flex: 0 0 100%; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; background: var(--cb-line); display: block; }
.cb-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--cb-soft); display: grid; place-items: center; color: var(--cb-tile); font-size: 1.4rem; overflow: hidden; }
.cb-ic.in { background: var(--cb-in-bg); color: var(--cb-in); }
.cb-ic.out { background: var(--cb-out-bg); color: var(--cb-out); }
.cb-ic.big { width: 64px; height: 64px; border-radius: 20px; }
.cb-ic img { width: 100%; height: 100%; object-fit: cover; }
.cb-ic svg { width: 26px; height: 26px; }
.cb-amt { white-space: nowrap; font-weight: 700; flex: none; }
.cb-amt.in { color: var(--cb-in); }
.cb-amt.out { color: var(--cb-out); }
.cb-amt.big { font-size: 2rem; }
.cb-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--cb-soft); color: var(--cb-tile); white-space: nowrap; flex: none; }
.cb-pill.green { background: var(--cb-in-bg); color: var(--cb-in); }
.cb-pill.red { background: var(--cb-pill-red-bg); color: var(--cb-pill-red-tx); }
.cb-pill.amber { background: var(--cb-pill-amber-bg); color: var(--cb-pill-amber-tx); }
.cb-chev { color: var(--cb-faint); flex: none; display: grid; place-items: center; }
.cb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.cb-section-head h2 { margin: 0; font-size: 1.14rem; font-weight: 600; }
.cb-link { color: var(--cb-tile); font-weight: 500; border: none; background: transparent; text-decoration: none; padding: 6px 0; }
.cb-day { margin: 14px 4px 2px; font-size: .9rem; color: var(--cb-muted); font-weight: 600; }
.cb-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cb-actions .cb-btn { width: 100%; }

/* ── التبديل (segmented) والرقائق ── */
.cb-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--cb-track); padding: 4px; border-radius: 14px; margin: 12px 0; }
.cb-seg button { border: none; background: transparent; border-radius: 11px; min-height: 42px; font-weight: 500; color: var(--cb-text); }
.cb-seg button[aria-selected="true"], .cb-seg button[aria-checked="true"] { font-weight: 600; }
.cb-seg button[aria-selected="true"], .cb-seg button[aria-checked="true"] { background: var(--cb-surface); color: var(--cb-text); box-shadow: 0 1px 4px rgb(0 0 0 / 10%); }
.cb-seg em { font-style: normal; background: var(--cb-badge); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-inline-start: 4px; }
.cb-chips { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.cb-chips button { flex: none; border: 1px solid var(--cb-line); background: var(--cb-surface); color: var(--cb-text); border-radius: 999px; min-height: 40px; padding: 0 16px; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.cb-chips button[aria-pressed="true"] { background: var(--cb-tile); color: var(--cb-on-brand); border-color: var(--cb-tile); }
.cb-rec-sum { display: grid; gap: 2px; background: linear-gradient(145deg, var(--cb-card-a), var(--cb-card-b)); color: #fff; border-radius: 20px; padding: 16px 18px; margin-top: 8px; box-shadow: 0 8px 22px rgb(58 81 118 / 22%); }
.cb-rec-sum span { opacity: .8; font-size: .9rem; }
.cb-rec-sum b { font-size: 1.8rem; direction: ltr; text-align: start; }
.cb-rec-sum small { opacity: .8; }

/* ── الخدمات والمتاجر ── */
.cb-search { display: flex; align-items: center; gap: 10px; background: var(--cb-input); border: 1px solid var(--cb-line); border-radius: var(--cb-r-btn); padding: 0 14px; min-height: 50px; margin-top: 12px; }
.cb-search svg { width: 24px; height: 24px; color: var(--cb-muted); flex: none; }
.cb-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: max(16px, 1rem); }
.cb-near { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.cb-near::-webkit-scrollbar { display: none; }
.cb-store-card { flex: 0 0 170px; scroll-snap-align: start; background: var(--cb-surface); border-radius: 20px; border: 1px solid var(--cb-line); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--cb-shadow); }
.cb-store-cover { aspect-ratio: 16 / 9; background: var(--cb-cover); position: relative; display: grid; place-items: center; color: var(--cb-faint); }
.cb-store-cover img { width: 100%; height: 100%; object-fit: cover; }
.cb-store-cover > svg { width: 48px; height: 48px; }
.cb-store-cover .cb-pill { position: absolute; top: 8px; inset-inline-start: 8px; }
.cb-store-body { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.cb-store-body b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-store-body span { color: var(--cb-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-store-body .cb-btn { justify-self: start; margin-top: 8px; color: var(--cb-on-brand); font-size: .84rem; min-height: 36px; padding: 0 12px; }
.cb-anything, .cb-cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; text-decoration: none; }
.cb-anything > svg:first-child, .cb-cta > svg:first-child { color: var(--cb-tile); flex: none; }
.cb-anything .t, .cb-cta .t { flex: 1; min-width: 0; display: grid; }
.cb-anything .t span, .cb-cta .t span { color: var(--cb-muted); font-size: .88rem; }
.cb-anything.cb-card { border: 1px dashed var(--cb-tile); box-shadow: none; }
.cb-cta { background: var(--cb-surface); color: var(--cb-text); border: 1px dashed var(--cb-tile); border-radius: 20px; padding: 14px; margin: 12px 0 4px; }
.cb-anything > svg:last-child, .cb-cta > svg:last-child { color: var(--cb-faint); flex: none; }
.cb-shop { display: block; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px; overflow: hidden; text-decoration: none; min-width: 0; }
.cb-shop-cover { aspect-ratio: 3 / 1; background: linear-gradient(120deg, var(--cb-track), var(--cb-cover2)); position: relative; }
.cb-shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.cb-shop-cover .cb-pill { position: absolute; top: 10px; inset-inline-start: 10px; }
.cb-shop-body { display: flex; align-items: center; gap: 12px; padding: 0 14px 12px; }
.cb-shop-logo { width: 62px; height: 62px; margin-top: -22px; border-radius: 18px; border: 3px solid var(--cb-surface); background: var(--cb-soft); overflow: hidden; display: grid; place-items: center; color: var(--cb-tile); flex: none; box-shadow: var(--cb-shadow); }
.cb-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.cb-shop-body .t { flex: 1; min-width: 0; display: grid; gap: 1px; padding-top: 8px; }
.cb-shop-body b { font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-shop-body span { color: var(--cb-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-shop-body .meta { color: var(--cb-tile); font-weight: 600; }
.cb-store-head { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px; overflow: hidden; margin: 6px 0 10px; }
.cb-store-head .cover { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; background: linear-gradient(120deg, var(--cb-track), var(--cb-cover2)); }
.cb-store-head .row { display: flex; align-items: center; gap: 12px; padding: 0 14px 12px; }
.cb-store-head .logo { width: 70px; height: 70px; margin-top: -26px; border-radius: 20px; border: 3px solid var(--cb-surface); overflow: hidden; background: var(--cb-soft); display: grid; place-items: center; color: var(--cb-tile); flex: none; box-shadow: var(--cb-shadow); }
.cb-store-head .logo img { width: 100%; height: 100%; object-fit: cover; }
.cb-store-head .t { flex: 1; min-width: 0; display: grid; padding-top: 8px; }
.cb-store-head .t b { font-size: 1.25rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } /* سطرين بدل قص الاسم بالشاشات الضيقة */
.cb-store-head .t span { color: var(--cb-muted); font-size: .88rem; }
.cb-round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cb-soft); color: var(--cb-tile); flex: none; margin-top: 8px; }
.cb-round svg { width: 22px; height: 22px; }

/* ── طلباتي والطلب ── */
.cb-order { display: grid; gap: 4px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 18px; padding: 12px 14px; text-decoration: none; min-width: 0; }
.cb-order .h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cb-order .t { flex: 1; min-width: 0; display: grid; }
.cb-order .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-order .t span { color: var(--cb-muted); font-size: .85rem; }
.cb-steps-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 10px; font-size: .72rem; color: var(--cb-muted); text-align: center; }
.cb-steps-bar span { display: grid; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-steps-bar i { height: 6px; border-radius: 6px; background: var(--cb-line); }
.cb-steps-bar .on { color: var(--cb-in); font-weight: 600; }
.cb-steps-bar .on i { background: var(--cb-green); }
.cb-timeline { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 0; }
.cb-timeline li { position: relative; padding: 0 30px 16px 0; color: var(--cb-muted); }
.cb-timeline li i { position: absolute; right: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--cb-line); }
.cb-timeline li:not(:last-child)::after { content: ''; position: absolute; right: 10px; top: 20px; bottom: 2px; width: 2px; background: var(--cb-line); }
.cb-timeline li.on { color: var(--cb-text); font-weight: 600; }
.cb-timeline li.on i { background: var(--cb-green); }
.cb-timeline li.on::after { background: var(--cb-green); }
.cb-timeline li.now i { box-shadow: 0 0 0 5px rgb(94 149 122 / 22%); }

/* ── أزرار ونماذج ── */
.cb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--cb-r-btn); border: none; background: var(--cb-tile); color: var(--cb-on-brand); font-weight: 600; text-decoration: none; cursor: pointer; }
.cb-btn.block { width: 100%; min-height: 54px; border-radius: 16px; font-size: 1.05rem; }
.cb-btn.ghost { background: var(--cb-surface); color: var(--cb-text); border: 1px solid var(--cb-line); }
.cb-btn.small { min-height: 40px; padding: 0 12px; }
.cb-btn.green { background: var(--cb-green); color: #fff; }
.cb-btn.red { background: var(--cb-red); color: #fff; }
.cb-btn.wa { background: var(--cb-wa); color: #fff; }
/* r1012: زرّا «واتساب» و«واتساب أعمال» على أندرويد (رابط لرقم محدد) — جنب بعض، والعنوان الصغير فوقهم */
.cb-wa-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cb-wa-pair .cb-wa-cap { grid-column: 1 / -1; color: var(--cb-muted); font-size: .85rem; }
.cb-wa-pair .cb-btn { justify-content: center; text-decoration: none; }
.cb-btn.wa.biz { background: var(--cb-deep); }
.cb-btn[disabled] { opacity: .5; }
.cb-btn svg { width: 22px; height: 22px; flex: none; }
.cb-field { display: grid; gap: 6px; margin-top: 14px; }
.cb-field label { font-weight: 500; font-size: .92rem; }
.cb-field input, .cb-field textarea, .cb-field select { border: 1px solid var(--cb-line); background: var(--cb-input); border-radius: var(--cb-r-btn); padding: 12px 14px; min-height: 52px; width: 100%; min-width: 0; }
.cb-field textarea { min-height: 110px; resize: vertical; }
.cb-field input:focus, .cb-field textarea:focus, .cb-field select:focus, .cb-compose textarea:focus, .cb-search:focus-within, .cb-amount-in:focus-within { outline: none; border-color: var(--cb-tile); box-shadow: 0 0 0 3px rgb(68 92 128 / 22%); }
.cb-amount-in input:focus { outline: none; }
.cb-otp-one { width: 100%; min-height: 68px; border: 1px solid var(--cb-line); border-radius: 16px; background: var(--cb-input); text-align: center; font-size: 2rem; font-weight: 700; letter-spacing: 12px; }
.cb-msg { margin-top: 12px; color: var(--cb-muted); min-height: 1.4em; }
.cb-msg.err { color: var(--cb-out); }
.cb-back { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--cb-muted); padding: 8px 0; font-size: .95rem; }
.cb-back svg { width: 20px; height: 20px; flex: none; }
.cb-hero { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--cb-soft); color: var(--cb-tile); margin: 6px 0 4px; }
.cb-hero.taxi { background: var(--cb-taxi-bg); color: var(--cb-taxi-tx); }

/* ── «اطلب أي شيء» والفويس ── */
.cb-mic { width: 88px; height: 88px; border-radius: 50%; border: none; background: var(--cb-red); color: #fff; display: grid; place-items: center; margin: 14px auto 0; box-shadow: 0 8px 22px rgb(173 86 80 / 32%); touch-action: none; }
.cb-mic svg { width: 38px; height: 38px; }
.cb-mic.rec { animation: cbpulse 1.1s infinite; }
@keyframes cbpulse { 50% { box-shadow: 0 0 0 16px rgb(181 106 106 / 12%); } }
.cb-wave { display: flex; gap: 3px; align-items: center; justify-content: center; height: 36px; margin-top: 10px; }
.cb-wave i { width: 4px; border-radius: 4px; background: var(--cb-red); height: 6px; transition: height .08s; }
.cb-voice { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--cb-voice); border-radius: 16px; padding: 10px 12px; }
.cb-voice audio { flex: 1; min-width: 0; height: 40px; }
/* جولة 4/W1: شريط تقدم رفع الفويس داخل زر الإرسال — تعبئة من بداية السطر (يمين بـRTL) */
.cb-btn.cb-busy { position: relative; overflow: hidden; }
.cb-btn .cb-prog { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: rgb(0 0 0 / 25%); transition: width .18s ease; }
.cb-btn .cb-prog + span { position: relative; }

/* ── الخريطة ── */
.cb-map { height: 58vh; min-height: 320px; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--cb-line); }
/* 2026-10-08 (بلاغ المالك: مربع «ابحث عن مكان» يظهر خلف الخريطة): طبقات Leaflet (400–1000) وعناصر التحكم فوق الخريطة (.cb-pin 500،
   .cb-map-me/.tx-route 600) كانت تشارك سياق التكديس الجذري مع .cb-sheet (z-index 80) فتعلوه. العزل يحصر كل z-index داخل الخريطة نفسها
   فتبقى أي ورقة (وأي حقل داخلها) فوق كل خريطة، Leaflet أو Google. */
.cb-map, .tx-map, .tx-live-map, .leaflet-container { isolation: isolate; }
.cb-map-loading { display: grid; place-items: center; height: 100%; margin: 0; color: var(--cb-muted); }
.cb-map .leaflet-container { height: 100%; font-family: inherit; }
.cb-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; font-size: 40px; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 35%)); }
/* r1013: نقطة برّا التغطية — الدبوس أحمر (رسالة تحته) والحقل بحد أحمر */
.cb-pin.out { filter: drop-shadow(0 0 6px rgb(220 38 38 / 90%)); }
.cb-pin.out::before { content: ''; position: absolute; left: 50%; bottom: -10px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: rgb(220 38 38 / 30%); border: 2px solid #dc2626; z-index: -1; }
.cb-pin.out::after { content: '⛔'; position: absolute; top: -6px; inset-inline-end: -14px; font-size: 18px; }
.cb-field.cb-out > button { border-color: var(--cb-red, #dc2626) !important; box-shadow: 0 0 0 2px rgb(220 38 38 / 18%); }
.cb-cov-msg { margin: 6px 0 0; }
.cb-map-me { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 600; white-space: nowrap; }
/* المالك 2026-10-11 («يعطينا التقريب أكثر لنص لموقع الشارع بدقة»): «🔍 قرّب على الشارع» فوق الخريطة، واسم الشارع تحت الدبوس */
.cb-map-street { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 600; white-space: nowrap; min-height: 40px; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
.cb-street { margin: 6px 2px 0; min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--cb-text); text-align: center; overflow-wrap: anywhere; }
.cb-street.wait { color: var(--cb-muted); font-weight: 400; }
.cb-street:empty { display: none; }
/* r1009b/طلب-خريطة (المالك: «عند تقديم الطلب تصغير مساحة الخريطة ليكون في مجال للانزلاق بالهاتف»): خريطة شاشة المكان
   (أول طلب بلا أماكن و«+ مكان جديد على الخريطة» من «وصّلها لي») كانت 58vh وحدّها الأدنى 320px ⇒ بالكاد يبقى مكان للإصبع يمرّر
   لحقول الاسم والتفاصيل و«احفظ». هلأ ثلث الشاشة تقريباً (200–280px) والباقي صفحة عادية تتمرّر؛ السحب داخلها بيضل يحرّك الخريطة/الدبوس. */
.cb-map.cb-map-pick { height: 34vh; min-height: 200px; max-height: 280px; }
/* r1009b/طلب-خريطة (المالك: «الخريطة اثناء متابعة الطلب مزعجة جدا بالانزلاق»): خريطة التتبع صغيرة وساكنة — الإصبع فوقها بيمرّر الصفحة
   (Leaflet بلا سحب/قرص ⇒ touch-action: pan-y بدل none)، و«🔍 تكبير الخريطة» بيكبّرها وبيرجّع التحريك (أصناف Leaflet بتحدد touch-action وقتها) */
.cb-map.cb-map-track { height: 170px; min-height: 0; margin-top: 10px; transition: height .2s ease; }
.cb-map.cb-map-track.on { height: 52vh; min-height: 260px; }
.cb-map-track:not(.on) .leaflet-container { touch-action: pan-y; cursor: default; }
.cb-map-zoom { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 600; white-space: nowrap; min-height: 40px; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
@media (prefers-reduced-motion: reduce) { .cb-map.cb-map-track { transition: none; } }

/* ── الشريط السفلي العائم (S3): هوامش 12px وزوايا 24px وظل، زر المسح دائرة بلون الهوية بنفس ارتفاع الشريط ── */
.cb-tabbar { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 536px; margin: 0 auto;
  background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 24px; box-shadow: 0 8px 28px rgb(20 26 40 / 16%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; padding: 0 4px; }
[data-theme="dark"] .cb-tabbar { box-shadow: 0 8px 28px rgb(0 0 0 / 45%); }
/* r1008b (المالك: «الشريط السفلي أحياناً غير ثابت»): طبقة تركيب مستقلة للشريط نفسه (لا لأسلافه — الشريط ابن مباشر لـbody بلا transform فوقه)
   تمنع تأخّر إعادة رسمه أثناء التمرير بالزخم على iOS، وbody.cb-kb (من قياس الـVisualViewport بـcb.js) يخفيه ما دامت لوحة المفاتيح مفتوحة
   أو تُغلق — بأي حقل كان، داخل #cbApp أو بورقة/منتقي — فلا يُرسم إلا ملتصقاً بأسفل الشاشة. */
.cb-tabbar { transform: translateY(var(--cb-vvshift, 0px)) translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
body.cb-kb .cb-tabbar { display: none; }
/* CB2-3 (المالك 2026-10-06): أثناء الكتابة بحقل نصي يُخفى الشريط السفلي ليفسح مكاناً للوحة، وتُخفّض حشوته المحجوزة */
body.cb-typing .cb-tabbar { display: none; }
body.cb-typing .cb { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* P3-6: صفحة «بياناتي» — حشوة سفلية أثناء الكتابة تتيح تمرير الحقل فوق لوحة المفاتيح (على iOS لا تتقلّص نافذة العرض) */
.cb-profile { padding-bottom: 8px; }
body.cb-typing .cb-profile { padding-bottom: 50vh; }
/* r1008b: صفحة «انضم إلينا» (#/join/<البرنامج>) بنفس نمط «بياناتي» — تدفّق طبيعي بلا ارتفاع ثابت، وحشوة أثناء الكتابة */
.cb-joinpage { padding-bottom: 8px; }
body.cb-typing .cb-joinpage { padding-bottom: 50vh; }
.cb-jn-hero { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.cb-jn-hero .cb-sub { margin: 0; }
.cb-tabbar a { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--cb-tabink); font-size: .76rem; font-weight: 500; padding: 8px 0 6px; position: relative; min-width: 0; white-space: nowrap; }
.cb-tabbar a svg { width: 24px; height: 24px; }
.cb-tabbar a > span { display: grid; }
.cb-tabbar a[aria-current="page"] { color: var(--cb-tile); font-weight: 700; }
.cb-tabbar .cb-scan { padding: 6px 0; }
.cb-tabbar .cb-scan span { width: 52px; height: 52px; border-radius: 50%; background: var(--cb-tile); color: var(--cb-on-brand); place-items: center; box-shadow: 0 4px 12px rgb(74 99 137 / 35%); }
.cb-tabbar .cb-scan svg { width: 26px; height: 26px; }
.cb-dot { position: absolute; top: 6px; inset-inline-end: 30%; width: 10px; height: 10px; border-radius: 50%; background: var(--cb-badge); box-shadow: 0 0 0 2px var(--cb-surface); }

/* ── ورقة/حوار ── */
.cb-sheet { position: fixed; inset: 0; z-index: 80; background: rgb(15 20 30 / 45%); display: flex; align-items: flex-end; justify-content: center; animation: cbFade .18s; }
.cb-sheet-card { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--cb-bg); border-radius: 26px 26px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: cbRise .22s ease-out; }
/* ورقة بحث بلوحة مفاتيح: ملتصقة بأعلى الشاشة فالحقل ونتائجه فوق لوحة iOS ولا تحجبها حافة الشاشة السفلى */
.cb-sheet.cb-sheet-top { align-items: flex-start; }
/* --cb-vv-top/--cb-vv-h من cbSyncViewport (visualViewport): عند ظهور لوحة iOS تنزاح النافذة المرئية فنتبعها لئلا يختفي الحقل */
.cb-sheet-top .cb-sheet-card { border-radius: 0 0 26px 26px; padding-top: calc(14px + env(safe-area-inset-top)); margin-top: var(--cb-vv-top, 0px); max-height: min(70vh, calc(var(--cb-vv-h, 100vh) - 24px)); animation: cbFade .18s; }
.cb-sheet-top .cb-grip { display: none; }
.cb-search-hits { max-height: 38vh; overflow: auto; overscroll-behavior: contain; }
@keyframes cbFade { from { opacity: 0; } }
@keyframes cbRise { from { transform: translateY(40px); } }
.cb-grip { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--cb-faint); margin: 0 auto 12px; touch-action: none; cursor: grab; }
.cb-grip:active { cursor: grabbing; }
.cb-sheet-head { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 6px; touch-action: none; }
.cb-sheet-head b { font-size: 1.2rem; }
.cb-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 18px; padding: 14px; margin: 12px 0; }
.cb-dl dt { color: var(--cb-muted); }
.cb-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cb-amount-in { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 20px; padding: 6px 16px; margin-top: 12px; }
.cb-amount-in input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 2.2rem; font-weight: 700; text-align: center; padding: 8px 0; }
.cb-amount-in span { font-weight: 700; color: var(--cb-muted); font-size: 1.2rem; }
.cb-confirm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 18px; padding: 16px; margin: 8px 0 12px; }
.cb-confirm span { color: var(--cb-muted); }
.cb-confirm b { overflow-wrap: anywhere; }
.cb-toast { position: fixed; bottom: calc(100px + env(safe-area-inset-bottom)); inset-inline: 18px; z-index: 90; background: var(--cb-deep); color: #fff; border-radius: 16px; padding: 12px 16px; text-align: center; }
/* r1012: شريط «في تحديث جديد — اضغط للتحديث» (نسخة جديدة من التطبيق استلمت وفي نموذج مفتوح) */
.cb-update-bar { position: fixed; top: calc(10px + env(safe-area-inset-top)); inset-inline: 14px; z-index: 95; border: 0; border-radius: 14px; padding: 12px 16px; background: var(--cb-deep); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgb(0 0 0 / 25%); cursor: pointer; }

/* ── استقبال / إرسال / نجاح ── */
.cb-qr { background: var(--cb-surface); border-radius: 20px; padding: 18px; display: grid; justify-items: center; gap: 8px; border: 1px solid var(--cb-line); box-shadow: var(--cb-shadow); }
.cb-qr-frame { padding: 10px; border-radius: 20px; border: 2px solid var(--cb-soft); }
.cb-qr svg { width: min(68vw, 270px); height: auto; display: block; }
.cb-code { font-size: 2rem; font-weight: 700; letter-spacing: 4px; direction: ltr; text-align: center; }
.cb-scan-box { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--cb-deep); display: grid; place-items: center; }
.cb-scan-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.cb-scan-box.live video { opacity: 1; }
.cb-scan-box .cb-btn { position: relative; z-index: 2; }
.cb-scan-frame { position: absolute; inset: 16%; z-index: 1; pointer-events: none; }
.cb-scan-frame i { position: absolute; width: 38px; height: 38px; border: 4px solid #fff; }
.cb-scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 12px 0 0 0; }
.cb-scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 12px 0 0; }
.cb-scan-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 12px; }
.cb-scan-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 12px 0; }
.cb-scan-box.live .cb-scan-frame b { position: absolute; inset-inline: 6%; height: 2px; background: #7EE0A8; box-shadow: 0 0 12px #7EE0A8; animation: cbScan 1.8s ease-in-out infinite alternate; }
@keyframes cbScan { from { top: 6%; } to { top: 94%; } }
label.cb-btn { cursor: pointer; }
.cb-success { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; }
.cb-success .ok { width: 110px; height: 110px; border-radius: 50%; background: var(--cb-green); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgb(63 133 99 / 35%); animation: cbPop .35s ease-out; }
.cb-success .cb-btn.block { width: min(100%, 360px); }
@keyframes cbPop { from { transform: scale(.6); opacity: 0; } }
.cb-gate { min-height: 78vh; display: grid; align-content: center; gap: 8px; text-align: center; }
.cb-gate-ic { width: 110px; height: 110px; border-radius: 34px; background: var(--cb-tile); color: var(--cb-on-brand); display: grid; place-items: center; margin: 0 auto 10px; box-shadow: 0 12px 30px rgb(111 134 168 / 45%); }
.cb-steps { text-align: start; }
.cb-steps ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.cb-me { display: flex; align-items: center; gap: 14px; }
.cb-me .t { display: grid; flex: 1; min-width: 0; }
.cb-me .t b { font-size: 1.2rem; }
.cb-me .t span { color: var(--cb-muted); text-align: start; }

/* ── جولة 3/W3: صورة الحساب + ورقة «بياناتي» + QR إحالة المندوب ── */
.cb-ava { position: relative; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: visible; border: 1px solid var(--cb-line); background: var(--cb-soft); color: var(--cb-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cb-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cb-ava > .cb-ic { width: 100%; height: 100%; border-radius: 50%; }
.cb-ava-edit { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--cb-tile); color: var(--cb-on-brand); display: grid; place-items: center; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }
.cb-ref-qr { background: #fff; display: inline-block; margin: 4px 0; }
.cb-ref-qr svg { width: min(60vw, 230px); height: auto; display: block; }
.cb-ref-d { border: 2px solid #7C3AED; }
.cb-ref-d .cb-code { color: #7C3AED; }

/* نسخة مصغّرة من أنماط ds/crop.js (الكتلة .ui-crop* فقط) حتى يبقى /cb بلا ds.css */
.ui-crop { position: fixed; inset: 0; z-index: 9999; background: rgba(10, 14, 22, .72); display: flex; align-items: center; justify-content: center; padding: 12px; }
.ui-crop-card { background: var(--cb-surface, #fff); color: var(--cb-text, #1f2430); border-radius: 18px; width: min(96vw, 940px); max-height: 96vh; overflow: auto; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ui-crop-title { font-weight: 700; font-size: 1.1rem; }
.ui-crop-hint { margin: 6px 0 10px; opacity: .75; font-size: .9rem; }
.ui-crop-stage { width: 100%; display: flex; justify-content: center; background: repeating-conic-gradient(#e9e6e0 0 25%, #f6f4f0 0 50%) 0 0 / 18px 18px; border-radius: 12px; padding: 8px; }
.ui-crop-view { display: block; border-radius: 6px; outline: 2px solid rgba(111, 134, 168, .9); cursor: grab; max-width: 100%; }
.ui-crop-view:active { cursor: grabbing; }
.ui-crop-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.ui-crop-zoom { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 180px; }
.ui-crop-zoom input { flex: 1; }
.ui-crop-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.ui-crop-actions button, .ui-crop-tools button { min-height: 44px; border-radius: 12px; border: 1px solid var(--cb-line); background: var(--cb-tile); color: var(--cb-on-brand); padding: 0 18px; font: inherit; font-weight: 700; }
.ui-crop-actions button.ghost, .ui-crop-tools button.ghost { background: transparent; color: var(--cb-text, #1f2430); }

/* ── المحادثة ── */
.cb-chat { height: 58vh; overflow: auto; background: var(--cb-chatbg); border-radius: 20px; padding: 10px; }
.cb-msgrow { display: flex; justify-content: flex-end; margin: 6px 0; }
.cb-msgrow.mine { justify-content: flex-start; }
.cb-bubble { max-width: 80%; background: var(--cb-surface); border-radius: 18px 18px 18px 6px; padding: 9px 12px 6px; border: 1px solid var(--cb-line); overflow-wrap: anywhere; line-height: 1.6; }
.cb-msgrow.mine .cb-bubble { background: var(--cb-bubble-me); color: var(--cb-bubble-me-ink); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.cb-bubble b { font-size: .8rem; display: block; opacity: .75; }
.cb-bubble small { display: block; font-size: .7rem; opacity: .65; margin-top: 2px; }
.cb-bubble audio { max-width: 220px; }
.cb-compose { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.cb-compose #cbTxt { flex: 1 1 0; min-width: 0; border: 1px solid var(--cb-line); background: var(--cb-input); border-radius: 22px; padding: 13px 16px; min-height: 50px; max-height: 140px; line-height: 1.45; resize: none; overflow-y: auto; font: inherit; font-size: max(16px, 1rem); color: inherit; }
.cb-compose .cb-btn { padding: 0 12px; flex: none; }
/* 2026-10-05 (المالك): مربع الرسالة كان بلا أساس فينكمش ويُقصّ الـplaceholder — أساس 140px وحد أدنى 120px،
   وبلا التفاف كي لا يتناثر صف الفويس/الإرسال؛ الـplaceholder أصغر خطاً ليتسع على شاشات 360px */
.cb-compose #cbTxt::placeholder { font-size: .82rem; }
.cb-tabs { display: flex; gap: 8px; margin: 12px 0; }

/* المينو المضمّن داخل كاش باك */
.cb-embed .mn { background: var(--mn-bg); color: var(--mn-text); border-radius: 20px; overflow: clip; padding-bottom: 20px; }
.cb-embed .mn:has(> .cb-empty) { background: none; padding-bottom: 0; } /* متجر بلا مينو: لا شريط بلون المنيو تحت الكرت */
.cb-embed .mn-tools { top: 0; }
.cb-embed .mn-cartbar { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .cb-mic.rec, .cb-amount span, .cb-scan-frame b, .cb-sheet, .cb-sheet-card, .cb-success .ok { animation: none !important; } }
@media (max-width: 350px) { .cb-flow button { font-size: .95rem; gap: 6px; } .cb-tiles { gap: 4px; } .cb-tile { font-size: .7rem; border-radius: 14px; } .cb-tile svg { width: 32px; height: 32px; padding: 6px; } .cb-h1 { font-size: 1.55rem; } }

/* menu.css يُحمَّل للمينو المضمّن — لا يغيّر خلفية/خط صفحة كاش باك */
html:root, html:root body { background: var(--cb-bg); color: var(--cb-text); font-family: CbArabic, Tahoma, system-ui, sans-serif; }
/* 2026-09-28 (ب): رمز الاستلام الدائم (يُنسخ) + المفضلة */
.cb-longcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.5; word-break: break-all; text-align: center; color: var(--cb-code-tx); user-select: all; -webkit-user-select: all; max-width: 100%; padding: 8px 10px; border-radius: 12px; background: var(--cb-code-bg); }
/* جولة 4/W6: عنوان الاستلام بنمط USDT — المختصر بارز والكامل صغير قابل للتحديد */
.cb-addr { display: grid; gap: 4px; justify-items: center; }
.cb-addr b { font-size: 1.05rem; letter-spacing: .5px; }
.cb-addr small { font-size: .68rem; opacity: .75; word-break: break-all; }
#cbFavs { margin-bottom: 12px; }
#cbFavs .cb-fav-title { margin: 0 0 10px; font-size: 1.1rem; }
.cb-fav .cb-btn.small { min-height: 44px; min-width: 44px; padding: 0 14px; }
.cb-rotate > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
/* 2026-09-28: اختيار الوجهة على الخريطة بورقة سفلية */
.cb-map.cb-map-sheet { height: 48vh; min-height: 260px; }
.cb-dest-map { margin-top: 8px; min-height: 44px; }
.cb-note-warn { margin-top: 10px; background: var(--cb-warn-bg); border: 1px solid var(--cb-warn-line); color: var(--cb-warn-text); }
.cb-note { margin-top: 10px; background: var(--cb-soft); border: 1px solid var(--cb-line); color: var(--cb-muted); border-radius: 16px; padding: 12px 14px; }
/* جولة 3/W5: أرقام الطوارئ — صف اتصال مباشر */
.cb-emg-row { display: flex; align-items: center; gap: 12px; }
.cb-emg-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--cb-out-bg); color: var(--cb-out); display: grid; place-items: center; font-size: 1.3rem; }
.cb-emg-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cb-emg-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-emg-t span { color: var(--cb-muted); font-size: .85rem; }
.cb-emg-call { min-height: 44px; flex: none; }
/* جولة 3/W5: أيقونات أخف — ضربة 1.6 وأحجام أصغر */
.cb-icon-btn svg { width: 24px; height: 24px; }
.cb-ic svg { width: 20px; height: 20px; }
.cb-search svg { width: 20px; height: 20px; }
.cb-round svg { width: 20px; height: 20px; }
.cb-back svg { width: 18px; height: 18px; }
.cb-btn svg { width: 20px; height: 20px; }

/* ── جولة 3/W4: محادثة واتساب كاملة (صورة/فويس/موقع + ✓✓ + معاينة ملء الشاشة) ── */
.cb-bubble.image { padding: 4px; }
/* حذف الرسائل (2026-10-10): «🚫 تم حذف هذه الرسالة» — باهتة ومائلة للطرفين */
.cb-bubble.deleted { font-style: italic; opacity: .7; }
.cb-chatimg { display: block; max-width: 220px; max-height: 240px; border-radius: 14px; cursor: zoom-in; }
.cb-imgfull { position: fixed; inset: 0; z-index: 95; background: rgb(10 12 18 / 92%); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.cb-imgfull img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.cb-mapcard { display: flex; align-items: center; gap: 10px; min-width: 190px; text-decoration: none; color: inherit; background: var(--cb-soft); border-radius: 12px; padding: 10px; }
.cb-mapcard .pin { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--cb-red); display: grid; place-items: center; flex: none; }
.cb-mapcard .t { display: grid; text-align: start; }
.cb-mapcard .t span { font-size: .75rem; color: var(--cb-muted); }
.cb-msgrow.mine .cb-mapcard { background: rgb(255 255 255 / 16%); }
.cb-msgrow.mine .cb-mapcard .t span { color: rgb(255 255 255 / 75%); }
.cb-seen { font-style: normal; font-weight: 700; }
.cb-seen.on { color: var(--cb-seen); }
.cb-compose .cb-voicehost { flex: none; display: flex; align-items: center; }
/* S3: ودجت الفويس المشترك (/shared/voice-recorder.js يحقن ألوانه) بلون الهوية داخل كاش باك فقط */
.cb .vr-mic { width: 48px; height: 48px; background: var(--cb-tile); color: var(--cb-on-brand); }
.cb .vr-pp { background: var(--cb-tile); color: var(--cb-on-brand); }
.cb .vr-fill, .cb .vr-fill::after { background: var(--cb-tile); }
.cb .vr-track { background: var(--cb-track); }
.cb .vr-prev { background: var(--cb-soft); border-color: var(--cb-line); }
.cb .vr-rec { background: var(--cb-out-bg); border-color: transparent; color: var(--cb-text); }
.cb .vr-dot, .cb .vr-wave i, .cb .vr-stop { background: var(--cb-red); }
.cb .vr-stop { color: #fff; }
.cb .vr-del { background: var(--cb-out-bg); color: var(--cb-out); }
.cb-compose.vr #cbTxt, .cb-compose.vr #cbPlus, .cb-compose.vr #cbPlusMenu, .cb-compose.vr #cbSendMsg { display: none; }
.cb-compose.vr .cb-voicehost { flex: 1; }
.cb-compose.vr .vr-rec, .cb-compose.vr .vr-prev { width: 100%; }
.cb-vphost { min-width: 0; }
.cb-bubble .vp { color: inherit; }
.cb-msgrow.mine .vr-pp { background: var(--cb-bubble-me-ink); color: var(--cb-bubble-me); }
.cb-msgrow.mine .vr-track { background: rgb(255 255 255 / 35%); }
.cb-msgrow.mine .vr-fill, .cb-msgrow.mine .vr-fill::after { background: #fff; }
.cb-msgrow.mine .vr-dur { color: rgb(255 255 255 / 80%); }
.cb-msgrow.mine .vp-speed { background: rgb(255 255 255 / 25%); color: #fff; }
.cb-bubble .vr-track { min-width: 90px; }
button.cb-round { border: none; cursor: pointer; }

/* 2026-09-30 (جولة 3): رصيد باسم «نقاط كاش باك»، بادئة +963 بالدخول، صفحات السياسات، وشريط إعلانات تحت البلاطات */
.cb-bal-name { margin: 4px 0 10px; text-align: center; color: var(--cb-muted); font-size: .85rem; }
.cb-phone { display: flex; align-items: stretch; gap: 0; }
.cb-phone > span { border: 1px solid var(--cb-line); border-inline-end: none; border-start-start-radius: 14px; border-end-start-radius: 14px; background: var(--cb-input); padding: 0 12px; min-height: 52px; display: flex; align-items: center; font-weight: 700; color: var(--cb-muted); }
.cb-phone > input { border-start-start-radius: 0; border-end-start-radius: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; }
.cb-consent { margin-top: 14px; text-align: center; font-size: .85rem; }
.cb-consent a { color: var(--cb-tile); }
.cb-doc { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 18px; padding: 18px; line-height: 1.9; }
.cb-doc h1 { font-size: 1.4rem; margin: 0 0 10px; }
.cb-doc h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.cb-doc p, .cb-doc li { margin: 6px 0; }
.cb-doc ul, .cb-doc ol { padding-inline-start: 22px; margin: 6px 0; }
.cb-doc a { color: var(--cb-tile); }
.cb-doc .cb-doc-note { color: var(--cb-muted); font-size: .85rem; margin-top: 18px; border-top: 1px dashed var(--cb-line); padding-top: 10px; }

/* ── cbSelect — منتقي الأماكن والقسائم (كاش باك جولة 4/W2) ── */
.cb-sel { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 11px 14px;
  border-radius: 12px; border: 1.5px solid var(--cb-line); background: var(--cb-input); color: var(--cb-text);
  font: inherit; cursor: pointer; text-align: start; }
.cb-sel:focus { outline: none; border-color: var(--cb-green); box-shadow: 0 0 0 3px rgba(29,158,117,.18); }
.cb-sel-ic, .cb-sel-chev { display: flex; color: var(--cb-muted); flex: none; }
.cb-sel-chev svg { width: 18px; height: 18px; }
.cb-sel-chev { transition: transform .15s; }
.cb-sel[aria-expanded="true"] .cb-sel-chev { transform: rotate(180deg); }
.cb-sel-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cb-sel-t b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-sel-t .ph { color: var(--cb-muted); font-weight: 400; }
.cb-sel-t span { font-size: 12px; color: var(--cb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-sel-list { display: flex; flex-direction: column; outline: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cb-sel-list:focus-visible { outline: none; } /* إبراز الفعّال بصف .on لا بإطار القائمة كاملة */
.cb-sel-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.cb-sel-opt.on, .cb-sel-opt:hover { background: rgba(29,158,117,.11); }
.cb-sel-opt .cb-sel-t { flex: 1; }
.cb-sel-oic { display: flex; color: var(--cb-muted); flex: none; }
.cb-sel-check { display: none; color: var(--cb-green); flex: none; }
.cb-sel-opt[aria-selected="true"] .cb-sel-check { display: flex; }
.cb-sel-add { border-top: 1px solid var(--cb-line); border-radius: 0; margin-top: 4px; padding-top: 13px; }
.cb-sel-add .cb-sel-oic, .cb-sel-add .cb-sel-t b { color: var(--cb-green); }
.cb-sel-pop { position: fixed; inset: 0; z-index: 80; }
.cb-sel-back { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: cbFadeIn .15s ease-out; }
.cb-sel-card { position: absolute; inset-inline: 0; bottom: 0; background: var(--cb-card); border-radius: 16px 16px 0 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 65vh; display: flex; flex-direction: column;
  animation: cbSelUp .18s ease-out; }
.cb-sel-pop[data-mode="drop"] .cb-sel-back { background: transparent; }
.cb-sel-pop[data-mode="drop"] .cb-sel-card { inset-inline: auto; bottom: auto; border-radius: 14px; border: 1px solid var(--cb-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 8px; max-height: 340px; animation: cbSelIn .12s ease-out; }
@keyframes cbFadeIn { from { opacity: 0; } }
@keyframes cbSelUp { from { transform: translateY(24px); opacity: 0; } }
@keyframes cbSelIn { from { transform: translateY(-6px); opacity: 0; } }

/* ── جولة 4/W5: شحن الرصيد المحلي — دعوة رئيسية أسفل الشبكة + بطاقة الوسيلة وQR الإيصال ── */
.cb-topup { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--cb-line); background: var(--cb-surface); color: var(--cb-text); box-shadow: var(--cb-shadow); text-align: start; cursor: pointer; }
.cb-topup > svg:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--cb-in-bg); color: var(--cb-in); flex: none; }
.cb-topup > span { flex: 1; min-width: 0; }
.cb-topup b { display: block; font-size: 1.05rem; }
.cb-topup small { display: block; color: var(--cb-muted); font-size: .84rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-topup > svg:last-child { width: 20px; height: 20px; color: var(--cb-faint); flex: none; }
.cb-topup:active { transform: scale(.99); }
.cb-topup[aria-disabled="true"] { opacity: .55; }
.cb-methods .cb-row { border: none; background: var(--cb-surface); text-align: start; cursor: pointer; width: 100%; }
.cb-methods .cb-chev { width: 34px; height: 34px; background: transparent; }
.cb-methods .cb-chev svg { width: 20px; height: 20px; }
.cb-qr-img { width: min(68vw, 270px); max-height: 300px; object-fit: contain; border-radius: 16px; background: #fff; display: block; }

/* دبابيس الخريطة (divIcon) — بدل صور Leaflet الناقصة */
.cb-mappin { color: var(--cb-tile); background: none; border: 0; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 30%)); }
.cb-mappin.cap span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cb-tile); color: var(--cb-on-brand); border: 3px solid var(--cb-surface); box-sizing: border-box; }

/* 2026-10-01: «المتاجر» — كاردات تصنيفات كبيرة (عمودين)، و«كل المتاجر» آخر كارد */
.cb-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 6px; }
.cb-cat { display: flex; flex-direction: column; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-r-card, 20px); overflow: hidden; color: var(--cb-text); text-decoration: none; box-shadow: var(--cb-shadow); }
.cb-cat:active { transform: scale(.98); }
.cb-cat-art { aspect-ratio: 2 / 1; display: grid; place-items: center; background: var(--cb-cover); color: var(--cb-tile); overflow: hidden; }
.cb-cat-art img { width: 100%; height: 100%; object-fit: cover; }
.cb-cat-emoji { font-size: 3rem; line-height: 1; }
.cb-cat-t { display: grid; gap: 2px; padding: 10px 12px 12px; }
.cb-cat-t b { font-size: 1.05rem; }
.cb-cat-t span { color: var(--cb-muted); font-size: .85rem; }
.cb-cat-all { border-style: dashed; border-color: var(--cb-tile); box-shadow: none; }
.cb-cat-all .cb-cat-art { background: transparent; }

/* 2026-10-01 (المالك): «ما يحس حاله ع متصفح» — ما في تحديد نصوص بالضغط، إلا بالحقول والنصوص المعدّة للنسخ */
.cb, .cb-tabbar, .cb-sheet { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.cb input, .cb textarea, .cb [contenteditable], .cb-sheet input, .cb-sheet textarea, .cb .cb-copyable, .cb-bubble, .cb bdi[dir="ltr"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.cb img { -webkit-user-drag: none; }

/* 2026-10-01 (المالك: «خد التقسيم من التكسي»): «حسابي» — رأس بصورة وأزرار، بطاقة رمز ترويجي، ومجموعات صفوف بأيقونات ملوّنة */
.cb-prof { background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-r-card, 20px); overflow: hidden; box-shadow: var(--cb-shadow); }
.cb-prof-band { height: 74px; background: linear-gradient(135deg, var(--cb-card-a, #536C93), var(--cb-card-b, #2E4269)); display: flex; justify-content: flex-end; align-items: flex-start; padding: 12px; }
.cb-prof-btns { display: flex; gap: 8px; }
.cb-prof-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 16%); color: #fff; border: 0; text-decoration: none; }
.cb-prof-me { display: flex; align-items: center; gap: 14px; padding: 0 16px 16px; margin-top: -34px; }
.cb-prof-me .cb-ava { width: 82px; height: 82px; border-radius: 50%; border: 3px solid var(--cb-tile); box-shadow: 0 0 0 4px var(--cb-surface); background: var(--cb-soft); flex: none; position: relative; padding: 0; overflow: visible; }
.cb-prof-me .cb-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cb-prof-me .t { display: grid; gap: 2px; min-width: 0; padding-top: 30px; }
.cb-prof-me .t b { font-size: 1.2rem; overflow-wrap: anywhere; }
.cb-prof-me .t span { color: var(--cb-muted); font-variant-numeric: tabular-nums; }
.cb-promo { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: var(--cb-r-card, 20px); background: color-mix(in srgb, var(--cb-green) 14%, var(--cb-surface)); border: 1px solid color-mix(in srgb, var(--cb-green) 40%, transparent); }
.cb-promo-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--cb-green) 22%, var(--cb-surface)); color: var(--cb-green); flex: none; }
.cb-promo .t { flex: 1; min-width: 0; display: grid; }
.cb-promo .t small { color: var(--cb-muted); font-size: .8rem; }
.cb-promo .t b { font-size: 1.35rem; letter-spacing: .06em; color: var(--cb-green); font-variant-numeric: tabular-nums; }
.cb-promo-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cb-surface); color: var(--cb-text); flex: none; }
.cb-qr-box { display: grid; place-items: center; margin: 8px auto; max-width: 260px; background: #fff; border-radius: 16px; padding: 10px; }
.cb-qr-box svg { width: 100%; height: auto; }
.cb-group { margin-top: 14px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: var(--cb-r-card, 20px); overflow: hidden; }
.cb-group > .cb-row { border: 0; border-radius: 0; margin: 0; box-shadow: none; background: transparent; width: 100%; text-align: start; font: inherit; color: inherit; }
.cb-group > .cb-row + .cb-row { border-top: 1px solid var(--cb-line); }
.cb-group-out .cb-row b { color: var(--cb-red); }
.cb-ic.t-blue { background: color-mix(in srgb, #3B82F6 16%, var(--cb-surface)); color: #3B82F6; }
.cb-ic.t-orange { background: color-mix(in srgb, #F97316 16%, var(--cb-surface)); color: #F97316; }
.cb-ic.t-teal { background: color-mix(in srgb, #14B8A6 16%, var(--cb-surface)); color: #0F9C8C; }
.cb-ic.t-green { background: color-mix(in srgb, var(--cb-green) 16%, var(--cb-surface)); color: var(--cb-green); }
.cb-ic.t-indigo { background: color-mix(in srgb, #6366F1 16%, var(--cb-surface)); color: #6366F1; }
.cb-ic.t-violet { background: color-mix(in srgb, #8B5CF6 16%, var(--cb-surface)); color: #8B5CF6; }
.cb-ic.t-cyan { background: color-mix(in srgb, #06B6D4 16%, var(--cb-surface)); color: #0891B2; }
.cb-ic.t-amber { background: color-mix(in srgb, #F59E0B 18%, var(--cb-surface)); color: #D97706; }
.cb-ic.t-red { background: color-mix(in srgb, var(--cb-red) 16%, var(--cb-surface)); color: var(--cb-red); }
/* 2026-10-01: اختيار فئة التوصيل والأجرة (المشارطة) */
.cb-veh { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cb-veh-opt { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: inherit; font: inherit; cursor: pointer; }
.cb-veh-opt .i { font-size: 26px; line-height: 1.1; }
.cb-veh-opt .f { font-weight: 700; font-variant-numeric: tabular-nums; }
.cb-veh-opt small { opacity: .65; font-size: 11px; }
.cb-veh-opt[aria-checked="true"] { border-color: var(--cb-green, #16a34a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cb-green, #16a34a) 25%, transparent); }
.cb-veh-opt:disabled { opacity: .45; filter: grayscale(1); cursor: not-allowed; }

/* ── 2026-10-02: التكسي من التطبيق (على طريقة لقطات المالك، بألوان كاش باك) ── */
.tx-wrap { display: grid; gap: 12px; }
.tx-map { position: relative; height: 44vh; min-height: 300px; border-radius: 22px; overflow: hidden; border: 1px solid var(--cb-line); }
.tx-map .leaflet-container { height: 100%; font-family: inherit; }
.tx-route { position: absolute; z-index: 600; inset-inline: 10px; top: 10px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 8px; padding: 6px 12px; margin: 0; }
.tx-route .tx-pt { grid-column: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; padding: 0; min-width: 0; }
.tx-route .tx-pt + .tx-swap + .tx-pt { border-top: 1px solid var(--cb-line); }
.tx-route .tx-pt .t { display: grid; min-width: 0; }
.tx-route .tx-pt small { color: var(--cb-muted); font-size: 11px; }
.tx-route .tx-pt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-route .tx-pt b.ph { color: var(--cb-muted); font-weight: 500; }
.tx-swap { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cb-line); background: var(--cb-soft); color: var(--cb-green); display: grid; place-items: center; cursor: pointer; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.from { background: var(--cb-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cb-green) 22%, transparent); }
.dot.to { background: var(--cb-red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.tx-sched-link { position: absolute; z-index: 600; bottom: 10px; inset-inline-end: 10px; box-shadow: var(--cb-shadow); background: var(--cb-surface); }
.tx-mk span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; border: 3px solid var(--cb-surface); box-shadow: 0 2px 8px rgb(0 0 0 / 30%); }
.tx-mk.from span { background: var(--cb-green); } .tx-mk.to span { background: var(--cb-red); } .tx-mk.drv span { background: var(--cb-tile); }
.tx-sheet { display: grid; gap: 10px; }
.tx-hint { display: flex; align-items: center; gap: 10px; color: var(--cb-muted); }
.tx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--cb-soft); }
.tx-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; border: 0; background: none; color: var(--cb-muted); font: inherit; font-weight: 600; cursor: pointer; }
.tx-seg button[aria-selected="true"] { background: var(--cb-surface); color: var(--cb-green); box-shadow: var(--cb-shadow); }
.tx-when { display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--cb-line); }
.tx-days { display: flex; gap: 6px; flex-wrap: wrap; }
.tx-time { display: grid; gap: 4px; font-size: 13px; color: var(--cb-muted); }
.tx-h { margin: 6px 0 0; font-size: 15px; }
.tx-svcs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x mandatory; }
.tx-svc { position: relative; flex: 0 0 132px; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 8px 8px 10px; border-radius: 18px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: inherit; font: inherit; cursor: pointer; }
.tx-svc > svg { width: 100%; max-width: 110px; height: 58px; margin-top: -18px; }
.tx-svc .seats svg { width: 13px; height: 13px; }
.tx-svc b { font-size: 14px; } .tx-svc small { color: var(--cb-muted); font-variant-numeric: tabular-nums; }
.tx-svc.on { border-color: var(--cb-green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cb-green) 25%, transparent); }
.tx-svc.on small { color: var(--cb-green); font-weight: 700; }
.tx-svc .seats { position: absolute; top: -10px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; font-size: 12px; background: var(--cb-soft); border: 1px solid var(--cb-line); }
.tx-coupons { display: flex; gap: 8px; flex-wrap: wrap; }
.tx-coupons .tx-add { color: var(--cb-green); border-color: var(--cb-green); min-width: 52px; justify-content: center; }
.tx-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-radius: 18px; border: 1px solid var(--cb-line); background: var(--cb-soft); }
.tx-bar > span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; min-width: 0; font-variant-numeric: tabular-nums; }
.tx-bar > span + span { border-inline-start: 1px solid var(--cb-line); }
.tx-bar b { font-size: 17px; } .tx-bar small { color: var(--cb-muted); }
.tx-bar .was { display: block; color: var(--cb-muted); font-size: 11px; text-decoration: line-through; line-height: 1; }
.tx-bar .pr { display: grid; justify-items: center; }
.tx-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tx-pay-opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.tx-pay-opt.on { border-color: var(--cb-green); color: var(--cb-green); background: color-mix(in srgb, var(--cb-green) 8%, var(--cb-surface)); }
.tx-pay-opt:disabled { opacity: .55; cursor: not-allowed; } .tx-pay-opt small { font-weight: 400; font-size: 11px; }
.tx-note { display: grid; gap: 4px; font-size: 13px; color: var(--cb-muted); }
.tx-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.tx-actions .cb-btn.green { min-height: 54px; font-size: 17px; }
.tx-q { width: 100%; }
.tx-live { display: grid; gap: 12px; }
.tx-live-head { display: flex; align-items: center; justify-content: space-between; }
.tx-live-route { display: grid; gap: 8px; } .tx-live-route span { display: flex; align-items: center; gap: 10px; }
.tx-live-price { margin: 0; font-size: 20px; font-weight: 700; } .tx-live-price small { font-size: 12px; color: var(--cb-muted); font-weight: 400; }
.tx-driver { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--cb-soft); }
.tx-driver img, .tx-dv-art { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.tx-dv-art svg { width: 72px; height: 48px; }
.tx-driver .t { display: grid; flex: 1; min-width: 0; } .tx-driver small { color: var(--cb-muted); }
.tx-plate { font-weight: 700; letter-spacing: .06em; color: var(--cb-text) !important; }
.tx-live-map { height: 220px; border-radius: 16px; overflow: hidden; border: 1px solid var(--cb-line); }
.tx-stars { display: flex; justify-content: center; gap: 6px; direction: ltr; }
.tx-stars button { background: none; border: 0; cursor: pointer; }
.tx-sch { flex-wrap: wrap; }
.tx-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 16px; }
.tx-empty-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--cb-green), var(--cb-tile)); box-shadow: 0 10px 30px color-mix(in srgb, var(--cb-green) 35%, transparent); }
.cb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.cb-chip small { color: var(--cb-muted); font-weight: 400; }
.cb-chip.on { border-color: var(--cb-green); color: var(--cb-green); background: color-mix(in srgb, var(--cb-green) 8%, var(--cb-surface)); }
/* 2026-10-02: ملخص الطلب قبل التأكيد + الكيلومترات جنب أجرة كل فئة */
.cb-veh-opt .km { font-weight: 500; color: var(--cb-muted); font-size: 12px; }
.cb-sum { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--cb-soft); border: 1px solid var(--cb-line); font-variant-numeric: tabular-nums; }
.cb-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.cb-sum > div span:first-child { color: var(--cb-muted); min-width: 0; }
.cb-sum .g span:last-child { color: var(--cb-green); }
.cb-sum .tot { border-top: 1px dashed var(--cb-line); padding-top: 6px; font-weight: 800; font-size: 17px; }
.cb-sum .tot span:first-child { color: inherit; }
.cb-sum-h { font-size: 14px; }
/* r1009b/دفع: إتمام الطلب (تصميم المصمّم) — بطاقة «الإجمالي» بصف واحد، صفوف الدفع بدائرة مخصّصة (عادي/محدد/معطّل/ضغط)، شريط التوصيل، زر التأكيد */
.cb-sum { margin-top: 18px; padding: 14px 16px; background: var(--cb-surface); }
.cb-sum .tot { border-top: 0; padding-top: 0; align-items: center; font-size: 16px; }
.cb-sum .tot b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.cb-sum-more { font-size: 14px; }
.cb-sum-more summary { display: flex; align-items: center; min-height: 32px; color: var(--cb-muted); cursor: pointer; list-style: none; }
.cb-sum-more summary::-webkit-details-marker { display: none; }
.cb-sum-more summary::after { content: '▾'; margin-inline-start: 6px; font-size: 12px; }
.cb-sum-more[open] summary::after { content: '▴'; }
.cb-sum-more > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cb-sum-more > div span:first-child { color: var(--cb-muted); min-width: 0; }
.cb-pay-h { margin: 22px 0 8px; font-size: 1rem; font-weight: 700; }
.cb-pay { display: grid; gap: 8px; }
.cb-payopt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .18s ease, background-color .18s ease, transform .12s ease; }
.cb-payopt input { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cb-payopt:focus-within { outline: 3px solid var(--cb-tile); outline-offset: 2px; }
.cb-payopt:active:not(.off) { transform: scale(.985); background: var(--cb-soft); }
.cb-payopt-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cb-soft); color: var(--cb-tile); flex: none; }
.cb-payopt .t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cb-payopt .t b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; }
.cb-payopt .t > span { color: var(--cb-muted); font-size: .86rem; }
.cb-payopt-tag { padding: 2px 8px; border-radius: 999px; background: var(--cb-in-bg); color: var(--cb-in); font-size: .72rem; font-weight: 600; font-style: normal; }
.cb-payopt-warn { color: var(--cb-pill-amber-tx); font-size: .82rem; font-weight: 600; }
.cb-payopt-warn:empty { display: none; }
.cb-payopt-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cb-faint); flex: none; transition: border-color .18s ease, background .18s ease; }
.cb-payopt.on { border-color: var(--cb-tile); background: color-mix(in srgb, var(--cb-tile) 7%, var(--cb-surface)); }
.cb-payopt.on .cb-payopt-dot { border-color: var(--cb-tile); background: radial-gradient(circle, var(--cb-tile) 0 5px, transparent 6px); }
.cb-payopt.off { cursor: not-allowed; }
.cb-payopt.off .cb-payopt-ic, .cb-payopt.off .t b, .cb-payopt.off .cb-payopt-dot { opacity: .5; }
.cb-paylink { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--cb-tile); font: inherit; font-weight: 700; cursor: pointer; }
.cb-paylink:active { background: var(--cb-soft); }
/* أجرة-مدفوعة (المالك 2026-10-09): «استعمل رصيد المحفظة» تحت شام كاش — رصيد المحفظة خصم وشام كاش بيدفع الناقص */
.cb-usewallet { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--cb-soft); font-weight: 700; cursor: pointer; }
.cb-usewallet[hidden] { display: none; }
.cb-usewallet input { width: 20px; height: 20px; accent-color: var(--cb-tile); }
.cb-payinfo { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--cb-blue-bg); color: var(--cb-text); font-size: .88rem; line-height: 1.6; }
.cb-payinfo svg { flex: none; margin-top: 3px; color: var(--cb-tile); }
.cb-order-cta { margin-top: 18px; font-weight: 800; }
.cb-order-priv { margin: 8px 0 0; text-align: center; color: var(--cb-muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .cb-payopt, .cb-payopt-dot { transition: none; } .cb-payopt:active:not(.off) { transform: none; } }
/* 2026-10-02: بوابة المنطقة بأول فتحة */
.cb-gate { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18vh 8px 24px; }
.cb-gate-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, var(--cb-green), var(--cb-tile)); }
.cb-gate .cb-btn { max-width: 360px; }
/* 2026-10-02: الإحالة QR ظاهر + باركود الرمز تحته */
.cb-ref-codes { display: grid; justify-items: center; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--cb-line); }
.cb-ref-qr svg { width: min(220px, 60vw); height: auto; display: block; }
.cb-ref-bar { width: min(280px, 76vw); } .cb-ref-bar svg { width: 100%; height: auto; display: block; }
.cb-ref-codes .cb-sub { color: #626A78; text-align: center; margin: 0; }
/* r1009b (المالك): الرمز الترويجي مطوي بحسابي ويظهر بزر QR بالرأس — كشف سلس بـgrid-template-rows (0fr ⇒ 1fr) */
.cb-ref-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .25s ease; }
.cb-ref-panel > .cb-ref-in { overflow: hidden; min-height: 0; }
.cb-ref-panel.open { grid-template-rows: 1fr; opacity: 1; }
.cb-prof-btn.on { background: #fff; color: var(--cb-green); }
@media (prefers-reduced-motion: reduce) { .cb-ref-panel { transition: none; } }
/* r1009b: حذف مكان محفوظ بمكانه — الصف ينطوي بدل إعادة رسم الصفحة */
.cb-row.cb-row-out { height: 0 !important; min-height: 0; padding-block: 0; margin-block: 0; border-width: 0; opacity: 0; overflow: hidden; transition: height .22s ease, padding .22s ease, margin .22s ease, opacity .18s ease; }
/* 2026-10-02: تقييم الطلب بعد التوصيل */
.cb-rate { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--cb-soft); border: 1px solid var(--cb-line); }
.cb-rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cb-rate-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-stars { display: inline-flex; direction: ltr; gap: 2px; }
.cb-stars button { background: none; border: 0; cursor: pointer; line-height: 1; padding: 0; }
.cb-stars-ro { display: inline-flex; direction: ltr; gap: 2px; vertical-align: middle; color: var(--cb-muted); }
.cb-stars-ro > span { display: inline-grid; }
.cb-stars-ro > span.on { color: #C99A2E; }
/* F18 (المالك 2026-10-13): نجمة فاضية بإطار واضح (--cb-muted ≥ 4.5 تباين بالوضعين) ومختارة بتعبئة ذهبية وإطار أغمق */
.cb-stars button, .tx-stars button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--cb-muted); }
.cb-stars svg, .tx-stars svg, .cb-stars-ro svg { fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.cb-stars button.on, .tx-stars button.on { color: #C99A2E; }
.cb-stars button.on svg, .tx-stars button.on svg, .cb-stars-ro > span.on svg { fill: #E9B949; stroke: #A87A1E; }
/* مراجعة F18: إطار المختارة بالفاتح #A87A1E (≈3.8 على الأبيض)، وبالغامق الذهبي الأفتح #C99A2E */
[data-theme="dark"] .cb-stars button.on svg, [data-theme="dark"] .tx-stars button.on svg, [data-theme="dark"] .cb-stars-ro > span.on svg { stroke: #C99A2E; }

/* F34 (الهدى 2026-10-14): التقييم بنافذة منبثقة + سهم «ابدأ من هون» من النجمة الأولى (يسار) للخامسة */
.cb-rate.cb-rate-pop { margin-top: 4px; }
.cb-rate-pop .cb-rate-row { justify-content: center; font-weight: 700; }
.cb-rate-stars { display: grid; justify-content: center; gap: 2px; }
.cb-stars-dir { direction: ltr; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 6px; row-gap: 2px; padding: 0 16px; color: var(--cb-accent); font-size: .8rem; }
.cb-stars-dir .n { font-weight: 700; line-height: 1; }
.cb-stars-dir i { position: relative; height: 2px; border-radius: 2px; background: currentColor; }
.cb-stars-dir i::after { content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.cb-stars-dir b { grid-column: 1 / -1; justify-self: start; font-weight: 700; margin-inline-start: -6px; }

/* كاش باك 3/P3-1 (المالك): تسميات المكان وبحثه، وP3-2: «اجعله العنوان الافتراضي» خانة صغيرة بجانب نصها */
.cb-cap { font-weight: 600; font-size: .92rem; }
.cb-field[hidden] { display: none; }
.cb-place-sec { gap: 8px; }
.cb-chips.cb-place-chips { flex-wrap: wrap; overflow: visible; margin: 0; }
.cb-chips.cb-place-chips { gap: 6px; }
.cb-chips.cb-place-chips button { min-height: 44px; padding: 0 12px; }
.cb-field .cb-check { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 500; cursor: pointer; }
.cb-field .cb-check input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 0; flex: none; border-radius: 4px; accent-color: var(--cb-green); cursor: pointer; }
/* ── P3-4 (المالك 2026-10-07): صندوق كتابة بأسلوب واتساب ──
   الترتيب (RTL): يمين = زر دائري واحد (مايك ⇄ سهم إرسال)، وسط = حقل يملأ المساحة، يسار = «+» للإرفاق (صورة/موقع).
   صفحة المحادثة تتبع الـVisualViewport: الحاوية fixed بارتفاع النافذة المرئية فيلتصق الصندوق بحافة لوحة المفاتيح. */
.cb-compose { position: relative; gap: 6px; align-items: flex-end; }
.cb-compose #cbTxt { border-radius: 24px; }
.cb-compose .cb-send, .cb-compose .cb-plus { flex: none; width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.cb-compose .cb-send { display: none; background: var(--cb-tile); color: var(--cb-on-brand); }
.cb-compose.has-text .cb-voicehost { display: none; }
.cb-compose.has-text .cb-send, .cb-compose.novoice .cb-send { display: inline-grid; }
.cb-compose.novoice:not(.has-text) .cb-send { opacity: .45; }
.cb-compose .cb-plus { background: transparent; color: var(--cb-tile); }
.cb-compose .cb-plus[aria-expanded="true"] { background: var(--cb-soft); }
.cb-compose .cb-plusmenu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; min-width: 190px; background: var(--cb-surface); border: 1px solid var(--cb-line); border-radius: 16px; box-shadow: 0 8px 28px rgb(20 26 40 / 18%); padding: 6px; display: grid; }
.cb-compose .cb-plusmenu[hidden] { display: none; }
.cb-compose .cb-plusmenu button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: none; background: transparent; color: var(--cb-text); font: inherit; border-radius: 12px; cursor: pointer; text-align: start; }
.cb-compose .cb-plusmenu button:active { background: var(--cb-soft); }
.cb-compose .cb-plusmenu svg { color: var(--cb-tile); flex: none; }
.cb-compose .cb-plusmenu button span { flex: 1; }
@media (prefers-reduced-motion: no-preference) { .cb-compose .cb-send { transition: transform .12s; } .cb-compose .cb-send:active { transform: scale(.92); } }
/* صفحة المحادثة: عمود fixed بقياسات النافذة المرئية (--cb-vv-* من cbSyncViewport، وbالاحتياط dvh) */
body.cb-chatpage { overflow: hidden; }
body.cb-chatpage .cb { position: fixed; top: var(--cb-vv-top, 0px); inset-inline: 0; margin: 0 auto; width: 100%; height: var(--cb-vv-h, 100dvh); box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.cb-chatpage.cb-typing .cb { padding-bottom: 8px; }
body.cb-chatpage .cb > * { flex: none; }
body.cb-chatpage .cb > .cb-chat { flex: 1 1 0; height: auto; min-height: 0; }
body.cb-chatpage .cb > .cb-compose { margin-top: 8px; }
/* r1008b: فقاعة «جاري الإرسال» للموقع والفويس (cbPendingQueue) — دوّامة صغيرة، والفشل بلون التحذير مع «إعادة المحاولة» */
.cb-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; vertical-align: -2px; animation: cbSpin .8s linear infinite; }
@keyframes cbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cb-spin { animation-duration: 2.4s; } }
.cb-bubble.cb-pending { opacity: .85; }
.cb-bubble.cb-pending .cb-pend-body { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cb-bubble.cb-pending.failed { opacity: 1; outline: 2px solid var(--cb-red); outline-offset: -2px; }
.cb-pend-acts { display: flex; gap: 6px; margin-top: 6px; }
.cb-pend-btn { min-height: 36px; padding: 0 12px; border-radius: 999px; border: none; background: #fff; color: var(--cb-red); font: inherit; font-weight: 700; cursor: pointer; }
.cb-pend-btn.ghost { background: rgb(255 255 255 / 25%); color: inherit; }
.cb-btn .cb-spin { margin-inline-end: 6px; }
/* شام كاش مباشر (2026-10-09): شارة/شعار شام كاش بصف الدفع وقائمة الشحن، وصفحة «الدفع بشام كاش» */
.cb-sc-badge { display: block; border-radius: 6px; }
.cb-sc-badge text { font-family: inherit; }
.cb-sc-logo { display: block; object-fit: contain; border-radius: 6px; }
.cb-payopt-ic .cb-sc-badge, .cb-payopt-ic .cb-sc-logo { width: 30px; height: 30px; }
.cb-ic.cb-ic-sc svg, .cb-ic.cb-ic-sc img { width: 30px; height: 30px; object-fit: contain; }
.cb-sc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cb-sco-amt { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cb-sco-amt b { display: block; font-size: 1.5rem; font-weight: 800; }
.cb-sco-amt small { display: block; color: var(--cb-muted, inherit); opacity: .85; }
#cbScoPay { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.cb-sco-wait { display: flex; align-items: center; gap: 8px; }

/* تحقق عكسي (2026-10-10): شاشة «أكّد رقمك عبر واتساب» */
#cbWaGo { margin-top: 6px; }
.cb-wa-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--cb-bg, transparent); border: 1px solid var(--cb-line); }
.cb-wa-box p { margin: 0 0 10px; line-height: 1.6; }
.cb-wa-alt { margin-top: 4px; }
.cb-wa-manual { margin-top: 14px; }
.cb-wa-manual summary { cursor: pointer; color: var(--cb-muted); padding: 6px 0; }
.cb-wa-text { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--cb-line); font-weight: 600; user-select: all; overflow-wrap: anywhere; }
/* «إرسال غرض» بنقطتين (المالك 2026-10-11): بطاقتا «من وين» و«لوين» — منتقي النقطة وتحته تفاصيلها */
.cb-item-pt { padding: 10px 12px; border: 1px solid var(--cb-line); border-radius: 16px; background: var(--cb-soft); }
.cb-item-route .cb-row .t > span:first-child { color: var(--cb-muted); font-size: .85rem; }

/* «أماكن الدفع بالنقاط» (2026-10-11): رابط «وين بصرف نقاطي؟» ببطاقة المحفظة، شارة «بيقبل النقاط»، وصفحة الأماكن */
.cb-wlink { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: #fff; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cb-wlink svg { width: 16px; height: 16px; }
.cb-pts-badge { background: color-mix(in srgb, #F59E0B 22%, var(--cb-surface)); color: #92400E; font-weight: 600; }
[data-theme="dark"] .cb-pts-badge { color: #FCD34D; }
.cb-store-cover .cb-pts-badge, .cb-shop-cover .cb-pts-badge { inset-inline-start: auto; inset-inline-end: 8px; }
.cb-pp-how b { display: block; margin-bottom: 6px; }
.cb-pp-steps { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 4px; color: var(--cb-text); font-size: .92rem; }
.cb-pp-list { gap: 10px; }
.cb-pp-item { display: grid; gap: 8px; }
.cb-pp-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cb-pp-head .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cb-pp-head .t b { font-weight: 600; overflow-wrap: anywhere; }
.cb-pp-head .t span { color: var(--cb-muted); font-size: .85rem; }
.cb-pp-head .t span.wrap { color: var(--cb-text); }
.cb-pp-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cb-pp-head .cb-pill { flex: none; }
.cb-pp-rule { margin: 0; font-weight: 600; color: var(--cb-text); font-size: .9rem; }
.cb-pp-note { margin: 0; }
.cb-pp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-pp-actions .cb-btn { flex: 0 1 auto; min-width: 0; }
#cbPpNear { margin: 2px 0 10px; }
.cb-pp-map { height: 56vh; min-height: 300px; }
/* r1011 «القيمة المتوقعة»: صندوق تقدير ثمن المنتجات تحت نص «اطلب أي شيء» */
.cb-estimate { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--cb-blue-bg); color: var(--cb-text); font-size: .88rem; line-height: 1.6; }
.cb-estimate[hidden] { display: none; }
.cb-est-h { display: flex; align-items: flex-start; gap: 8px; }
.cb-est-h svg { flex: none; margin-top: 3px; color: var(--cb-tile); }
.cb-est-h b { font-weight: 800; }
.cb-est-usd { color: var(--cb-muted); }
.cb-est-more { margin: 6px 0 0; }
.cb-est-more summary { cursor: pointer; color: var(--cb-tile); font-size: .82rem; }
.cb-est-more ul { list-style: none; margin: 6px 0 0; padding: 0; }
.cb-est-more li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.cb-est-more li small { color: var(--cb-muted); }
.cb-est-miss, .cb-est-note { margin: 6px 0 0; color: var(--cb-muted); font-size: .8rem; }

/* ── «حالة المتجر والعروض» (2026-10-11): «مغلق» + «بيفتح …»، شارة العرض فوق الصورة الرئيسية، و«🚚 توصيل مجاني» ── */
.cb-pill.cb-closed-pill { background: var(--cb-pill-red-bg); color: var(--cb-pill-red-tx); }
.cb-offer-tag { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; background: #D92D20; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
.cb-store-card.is-closed .cb-store-cover img, .cb-shop.is-closed .cb-shop-cover img, .cb-store-head.is-closed .cover { filter: grayscale(.5); }
.cb-store-body .cb-closed-note, .cb-shop-body .cb-closed-note { color: var(--cb-pill-red-tx); font-weight: 600; }
.cb-store-body .cb-freedel, .cb-shop-body .cb-freedel { color: var(--cb-in); font-weight: 600; }
.cb-store-cover-wrap { position: relative; }
.cb-store-cover-wrap .cb-pill { position: absolute; top: 8px; inset-inline-start: 8px; }
.cb-store-head .row { position: relative; }
.cb-store-closed { margin: 0 14px 12px; padding: 10px 12px; border-radius: 14px; background: var(--cb-pill-red-bg); color: var(--cb-pill-red-tx); font-weight: 600; line-height: 1.6; }
.cb-store-closed small { font-weight: 400; }
.cb-store-freedel { margin: 0 14px 12px; padding: 8px 12px; border-radius: 14px; background: var(--cb-in-bg); color: var(--cb-in); font-weight: 600; }
.cb-order-closed { margin: 8px 0; padding: 10px 12px; border-radius: 14px; background: var(--cb-pill-red-bg); color: var(--cb-pill-red-tx); font-weight: 600; }

/* زر «افتح بواتساب للأعمال» تحت أزرار واتساب (2026-10-10) */
.cb-wa-alt { display: block; width: 100%; margin-top: 8px; background: none; border: 0; color: var(--cb-muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }

/* F04b (المالك 2026-10-12): «قيمة المنتجات المتوقعة» — بطاقة حد شراء الكابتن + بطاقات مدايات قابلة للاختيار (متل صورة المالك) */
.cb-vr-cap { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--cb-surface); border: 1px solid var(--cb-line); color: var(--cb-text); }
.cb-vr-cap svg { flex: none; color: var(--cb-tile); }
.cb-vr-cap p { margin: 0; font-size: .92rem; line-height: 1.6; }
.cb-vr-cap b { font-weight: 800; }
.cb-vr-opts { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.cb-vr-opt { position: relative; flex: 1 0 auto; min-width: 104px; min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--cb-line); background: var(--cb-surface); color: var(--cb-text); font: inherit; cursor: pointer; scroll-snap-align: start; }
.cb-vr-n { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-vr-opt small { opacity: .65; font-size: 12px; }
.cb-vr-opt[aria-checked="true"] { border-color: var(--cb-tile); background: color-mix(in srgb, var(--cb-tile) 12%, var(--cb-surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cb-tile) 25%, transparent); }
/* F18 (المالك 2026-10-13): النص بـ--cb-on-brand (أبيض بالفاتح، داكن بالغامق) — الأبيض على --cb-tile الغامق كان تباينه 2.37 */
.cb-vr-sug { position: absolute; top: -8px; inset-inline-end: 8px; padding: 1px 8px; border-radius: 999px; background: var(--cb-tile); color: var(--cb-on-brand); font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6; }
.cb-vr-sug[hidden], .cb-vr-hint[hidden] { display: none; }
.cb-vr-hint { color: var(--cb-red, #dc2626); margin: 2px 0 0; }
.cb-vr-note { color: var(--cb-tile); margin: 2px 0 0; }

/* F10 (المالك 2026-10-13): مؤقّت تنازلي فوق الإعلان المحدود بفترة — شارة أعلى البداية (يمين بالـRTL) + شريط تقدّم 4px أسفل الصورة */
.cb-ad { position: relative; }
.cb-ad-cd { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px;
  border-radius: 999px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; pointer-events: none; white-space: nowrap; }
.cb-ad-cd svg { width: 14px; height: 14px; flex: none; }
.cb-ad-cd bdi { font-variant-numeric: tabular-nums; }
.cb-ad-cd.urgent { background: #b91c1c; }
.cb-ad-bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--cb-tile, #0f766e); transform-origin: right center; transform: scaleX(1); transition: transform 1s linear; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cb-ad-bar { transition: none; } }

/* F13 (المالك 2026-10-13): «المفضلة» — قلب أسفل بداية غلاف البطاقة (فوق بداية = «مفتوح»، فوق نهاية = عرض/نقاط)، لمس 44px ودائرة شبه شفافة تبيّن على أي صورة */
.cb-favstore { position: absolute; bottom: 4px; inset-inline-start: 4px; width: 44px; height: 44px; border: none; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; z-index: 2;
  background: transparent; color: #fff; -webkit-tap-highlight-color: transparent; }
.cb-favstore::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: rgb(0 0 0 / 45%); backdrop-filter: blur(2px); }
.cb-favstore svg { position: relative; width: 20px; height: 20px; }
.cb-favstore.on { color: #FF4D6A; }
.cb-favstore.on svg, .cb-favstore-round.on svg { fill: currentColor; }
.cb-favstore-round.on { color: #E5354F; }
.cb-veh[hidden] { display: none; } /* F27: نوع التوصيل مخفي — الأجرة بالسطر تحت */
/* F13b (المالك 2026-10-13): بطاقة «صنف مفضّل» بشاشة المفضلة — بلا غلاف، والقلب زر دائري بنهاية السطر */
.cb-favitem .cb-shop-body { align-items: center; padding: 12px 14px; }
.cb-favitem .cb-shop-logo { margin-top: 0; box-shadow: none; }
.cb-favitem .cb-shop-body .t { padding-top: 0; }
.cb-favitem .cb-round { flex: none; margin-top: 0; }
.cb-favitem.is-off .t b { opacity: .6; }
/* F53 (Omaro 2026-10-14): زر صغير جنب «من وين» — «بدك ترسل من موقع غير موقعك؟» بيفتح الخريطة */
.cb-item-pt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cb-item-pt-head label { margin: 0; }
.cb-item-other { min-height: 36px; padding: 4px 10px; border: 1px solid var(--cb-line); border-radius: 999px; background: var(--cb-card, #fff); color: var(--cb-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
