/* ═══════════════════════════════════════════════════════════════════════════════
   ثيم «rent» — التخطيط: الهيدر، القائمة، الفوتر، شريط الهاتف السفلي (RD1)

   يغطّي كذلك كل ما تبنيه وحدات أخرى **داخل التخطيط** (قرار القائد 05:15 §2):
   الجرس (`ntf-*`)، شريط «ثبّت التطبيق» و شريط التبويبات السفلي (`pwa-*`)،
   اللوغو (`brand-logo`)، زرّ التواصل (`sk-*`).
   ملاحظة: هذا الثيم **لا يحمّل** `app.css` ولا `css/modules/*.css` (إلّا صفحات الأدمن
   التي يعرضها التخطيط الأصلي كما هي) ⇒ ما هنا هو كلّ ما يُنسّق هذه المرابط.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═════════ 1. الهيدر ═════════ */
.site-header.rt-hdr {
    position: sticky; top: 0; z-index: 60;
    background: var(--rt-surface);
    border-bottom: 1px solid var(--rt-line);
    /* بلا ضباب زجاجي ولا تدرّج ولا توهّج */
}
.rt-hdr-in {
    display: flex; align-items: center; gap: var(--rt-space-4);
    height: var(--rt-hdr-h);
    width: 100%; max-width: var(--rt-wrap);
    margin-inline: auto;
    padding-inline: var(--rt-space-4);
}
@media (min-width: 720px) { .rt-hdr-in { padding-inline: var(--rt-space-5); } }

/* الشعار */
.rt-hdr .brand {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    min-width: 0; flex: 0 1 auto;
    font-size: var(--rt-fs-l); font-weight: 800; color: var(--rt-text);
}
.rt-hdr .brand:hover { color: var(--rt-text); }
.rt-hdr .brand-name {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.1;
}
/* اللوغو المرفوع (Branding::brandInner): نسخة النهار/الليل */
.rt-hdr .brand .brand-logo { display: block; width: auto; max-height: 36px; max-width: 220px; object-fit: contain; flex: 0 1 auto; min-width: 0; }
.rt-hdr .brand .brand-logo-dark { display: none; }
html[data-theme="dark"] .rt-hdr .brand .brand-logo-light,
html[data-theme="night"] .rt-hdr .brand .brand-logo-light { display: none; }
html[data-theme="dark"] .rt-hdr .brand .brand-logo-dark,
html[data-theme="night"] .rt-hdr .brand .brand-logo-dark { display: block; }
@media (max-width: 719px) {
    .rt-hdr .brand { font-size: var(--rt-fs-m); }
    .rt-hdr .brand .brand-logo { max-height: 28px; max-width: 40vw; }
}

/* القائمة (الحاسوب)
   ⚠️ الفجوة **مرنة** لا `--rt-space-5` ثابتة. السبب مقيس: على 1280 بخطّ ×1.3 وبالإنجليزية
   فاض صفّ الهيدر **5px** في صفحة المسجَّل و**8px** حين تتّسع شارة التذاكر إلى «99+» —
   وآخر عنصرٍ في الصفّ (`hdr-user-btn`) ينتهي عند 1285 بينما الشاشة 1280. ولم يظهر في
   العربية قطّ: لصيقات القائمة الإنجليزية أعرض (Services · Products · My Orders · Referrals)،
   والنصّ هو ما ينمو بالخطّ بينما الفجوة كانت جامدة. فالفجوة تُعطي السعة حيث تضيق
   (‎1.4vw‎ ⇒ ‎~18px‎ على 1280 ⇒ ‎~30px‎ عبر خمس فجوات) وتعود إلى 24px على الشاشات الواسعة،
   فلا يتبدّل التصميم حيث لا ضرورة. وهذا أوّل فيضٍ تكشفه الدورة الإنجليزية. */
.rt-hdr .main-nav {
    display: flex; align-items: center;
    gap: clamp(var(--rt-space-3), 1.4vw, var(--rt-space-5));
    height: 100%;
    min-width: 0;
}
.rt-hdr .main-nav > a {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    height: 100%;
    border-bottom: 2px solid transparent;
    color: var(--rt-muted);
    font-size: var(--rt-fs-s); font-weight: 700;
    white-space: nowrap;
}
.rt-hdr .main-nav > a:hover { color: var(--rt-text); }
.rt-hdr .main-nav > a.is-on { color: var(--rt-text); border-bottom-color: var(--rt-primary); }
/* شارة التذاكر غير المقروءة: نقطة لا كبسولة.
   ⚠️ خلفيتها `--rt-danger-bg` لا `--rt-danger`: الثاني يُفتَّح في الداكن والليلي ليُقرأ
   **نصّاً**، فيُسقط الأبيض فوقه تحت العتبة (3.27 و4.19 لـ10px/800 يحتاج 4.5).
   والقاعدة نفسها طُبّقت على `.ntf-badge` و`.ntf-mbadge` — ثلاثتها بنفس العيب. */
.rt-hdr .tk-badge {
    display: inline-grid; place-items: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px;
    background: var(--rt-danger-bg); color: #fff;   /* خلفية لا نصّ — انظر tokens.css */
    font-size: 10px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* الأدوات في الجهة المقابلة */
.rt-hdr-act {
    display: flex; align-items: center; gap: var(--rt-space-2);
    margin-inline-start: auto;
    flex: 0 1 auto; min-width: 0;
}

/* مبدّل اللغة/العملة: نصّ صغير بفاصل رفيع، بلا كبسولة ملوّنة */
.rt-hdr .lang-switch { display: flex; align-items: center; gap: 0; }
.rt-hdr .lang-switch a {
    padding: var(--rt-space-1) var(--rt-space-2);
    color: var(--rt-muted);
    font-size: var(--rt-fs-xs); font-weight: 700;
    border-radius: var(--rt-radius-s);
}
.rt-hdr .lang-switch a + a { border-inline-start: 1px solid var(--rt-line); }
.rt-hdr .lang-switch a:hover { color: var(--rt-text); }
.rt-hdr .lang-switch a.active { color: var(--rt-primary-text); }

/* زرّ المظهر + زرّ القائمة: مربّعان بإطار شعري */
.rt-hdr .theme-btn, .rt-hdr .nav-toggle {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-m);
    background: none; color: var(--rt-muted);
    cursor: pointer;
}
.rt-hdr .theme-btn:hover, .rt-hdr .nav-toggle:hover { color: var(--rt-text); border-color: var(--rt-line-strong); }
.rt-hdr .theme-ico, .rt-hdr .nav-toggle-ico {
    width: 18px; height: 18px; display: block;
    background: currentColor;
    -webkit-mask: var(--rt-m) center / contain no-repeat;
            mask: var(--rt-m) center / contain no-repeat;
}
.rt-hdr .theme-ico { --rt-m: var(--rt-ico-sun); }
html[data-theme="dark"]  .rt-hdr .theme-ico { --rt-m: var(--rt-ico-moon); }
html[data-theme="night"] .rt-hdr .theme-ico { --rt-m: var(--rt-ico-stars); }
.rt-hdr .nav-toggle-ico { --rt-m: var(--rt-ico-menu); }
.site-header.nav-open .nav-toggle-ico { --rt-m: var(--rt-ico-close); }
.rt-hdr .nav-toggle { display: none; }

/* الرصيد في الهيدر: رقم جدولي + خطّ، بلا كبسولة خضراء */
.rt-hdr .hdr-bal {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    height: 34px; padding-inline: var(--rt-space-3);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-m);
    color: var(--rt-text); font-weight: 800; font-size: var(--rt-fs-s);
    white-space: nowrap; flex: none;
}
.rt-hdr .hdr-bal:hover { border-color: var(--rt-primary); color: var(--rt-text); }
.rt-hdr .hdr-bal-ico {
    width: 15px; height: 15px; flex: none; background: var(--rt-primary);
    -webkit-mask: var(--rt-ico-wallet) center / contain no-repeat;
            mask: var(--rt-ico-wallet) center / contain no-repeat;
}
.rt-hdr .hdr-bal-amt { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.rt-hdr .hdr-bal-add {
    width: 16px; height: 16px; flex: none; background: var(--rt-muted);
    -webkit-mask: var(--rt-ico-plus) center / contain no-repeat;
            mask: var(--rt-ico-plus) center / contain no-repeat;
}
.rt-hdr .hdr-bal:hover .hdr-bal-add { background: var(--rt-primary); }

/* قائمة الحساب */
.rt-hdr .hdr-user { position: relative; flex: none; }
.rt-hdr .hdr-user > summary { list-style: none; cursor: pointer; }
.rt-hdr .hdr-user > summary::-webkit-details-marker { display: none; }
.rt-hdr .hdr-user-btn {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    height: 34px; padding-inline: var(--rt-space-2) var(--rt-space-3);
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius-m);
    font-size: var(--rt-fs-s); font-weight: 700;
}
.rt-hdr .hdr-user[open] .hdr-user-btn, .rt-hdr .hdr-user-btn:hover { border-color: var(--rt-line-strong); }
.rt-hdr .hdr-ava {
    width: 22px; height: 22px; flex: none;
    display: grid; place-items: center;
    border-radius: var(--rt-radius-s);
    background: var(--rt-ink); color: var(--rt-ink-text);
    font-size: 11px; font-weight: 800;
}
.rt-hdr .hdr-ava-lg { width: 34px; height: 34px; font-size: var(--rt-fs-m); border-radius: var(--rt-radius-m); }
.rt-hdr .hdr-user-name { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-hdr .hdr-caret {
    width: 8px; height: 8px; flex: none; background: currentColor; color: var(--rt-muted);
    -webkit-mask: var(--rt-ico-caret) center / contain no-repeat;
            mask: var(--rt-ico-caret) center / contain no-repeat;
}
.rt-hdr .hdr-user-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
    z-index: 70;
    width: 260px; padding: var(--rt-space-2);
    background: var(--rt-surface);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-l);
    box-shadow: var(--rt-shadow-2);
}
.rt-hdr .hdr-user-head {
    display: flex; align-items: center; gap: var(--rt-space-3);
    padding: var(--rt-space-2) var(--rt-space-3) var(--rt-space-3);
    border-bottom: 1px solid var(--rt-line);
    margin-bottom: var(--rt-space-2);
}
.rt-hdr .hdr-user-who { display: block; min-width: 0; }
.rt-hdr .hdr-user-who strong { display: block; font-size: var(--rt-fs-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-hdr .hdr-user-who small { display: block; color: var(--rt-muted); font-size: var(--rt-fs-xs); }
.rt-hdr .hdr-user-cur {
    display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-2);
    padding: var(--rt-space-2) var(--rt-space-3);
    color: var(--rt-muted); font-size: var(--rt-fs-xs); font-weight: 700;
}
.rt-hdr .hdr-user-menu > a, .rt-hdr .hdr-user-out button {
    display: flex; align-items: center; gap: var(--rt-space-2);
    width: 100%;
    padding: var(--rt-space-2) var(--rt-space-3);
    border: 0; border-radius: var(--rt-radius-m);
    background: none; color: var(--rt-text);
    font: inherit; font-size: var(--rt-fs-s); font-weight: 700;
    text-align: start; cursor: pointer;
}
.rt-hdr .hdr-user-menu > a:hover, .rt-hdr .hdr-user-out button:hover { background: var(--rt-surface-2); }
.rt-hdr .hdr-user-out { margin-top: var(--rt-space-2); padding-top: var(--rt-space-2); border-top: 1px solid var(--rt-line); }
.rt-hdr .hdr-user-out button { color: var(--rt-danger); }

/* زرّا الدخول والتسجيل — ظاهران دائماً حتى على 320px */
.rt-hdr .hdr-login {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    height: 34px; padding-inline: var(--rt-space-3);
    color: var(--rt-text); font-size: var(--rt-fs-s); font-weight: 700;
    white-space: nowrap; flex: none;
}
.rt-hdr .hdr-login:hover { color: var(--rt-primary-text); }
.rt-hdr .hdr-login-ico { display: none; }
.rt-hdr .hdr-login .lbl-s { display: none; }
.rt-hdr .hdr-cta {
    display: inline-flex; align-items: center;
    height: 34px; padding-inline: var(--rt-space-4);
    border-radius: var(--rt-radius-m);
    background: var(--rt-primary); color: var(--rt-primary-ink);
    font-size: var(--rt-fs-s); font-weight: 800;
    white-space: nowrap; flex: none;
}
.rt-hdr .hdr-cta:hover { background: var(--rt-primary-strong); color: var(--rt-primary-ink); }

/* ───────── الهيدر على الهاتف واللوح ───────── */
@media (max-width: 1039px) {
    .rt-hdr .nav-toggle { display: grid; }
    .rt-hdr .main-nav {
        display: none;
        position: absolute; inset-inline: 0; top: var(--rt-hdr-h);
        z-index: 55;
        flex-direction: column; align-items: stretch; gap: 0; height: auto;
        max-height: calc(100vh - var(--rt-hdr-h));
        overflow-y: auto;
        padding: var(--rt-space-2) var(--rt-space-4) var(--rt-space-5);
        background: var(--rt-surface);
        border-bottom: 1px solid var(--rt-line);
        box-shadow: var(--rt-shadow-2);
    }
    .site-header.nav-open .main-nav { display: flex; }
    .rt-hdr .main-nav > a {
        height: auto;
        padding: var(--rt-space-3) 0;
        border-bottom: 1px solid var(--rt-line);
        color: var(--rt-text); font-size: var(--rt-fs-m);
    }
    .rt-hdr .main-nav > a.is-on { color: var(--rt-primary-text); border-bottom-color: var(--rt-line); }
    .rt-hdr .main-nav > a.is-on::after {
        content: ""; width: 6px; height: 6px; border-radius: 50%;
        background: var(--rt-primary); margin-inline-start: auto;
    }
    /* قسم الحساب داخل القائمة */
    .rt-hdr .nav-m { display: flex; flex-direction: column; }
    .rt-hdr .nav-m > a, .rt-hdr .nav-m-logout button {
        display: flex; align-items: center;
        width: 100%; padding: var(--rt-space-3) 0;
        border: 0; border-bottom: 1px solid var(--rt-line);
        background: none; color: var(--rt-text);
        font: inherit; font-size: var(--rt-fs-m); font-weight: 700;
        text-align: start; cursor: pointer;
    }
    .rt-hdr .nav-m-logout button { color: var(--rt-danger); }
    .rt-hdr .nav-m-cta { color: var(--rt-primary-text) !important; }
    .rt-hdr .nav-m-row {
        display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-3);
        padding: var(--rt-space-3) 0;
        border-bottom: 1px solid var(--rt-line);
        color: var(--rt-muted); font-size: var(--rt-fs-s); font-weight: 700;
    }
    .rt-hdr .nav-m-row:last-child { border-bottom: 0; }
    .rt-hdr .nav-m .theme-btn { width: 32px; height: 32px; }
}
@media (min-width: 1040px) {
    .rt-hdr .nav-m { display: none; }
}
/* القائمة مفتوحة = الهيدر مرجع الموضع */
.site-header.rt-hdr { position: sticky; }
.rt-hdr-in { position: relative; }

@media (max-width: 1039px) {
    /* ما دامت القائمة مطويّة، اللغة والعملة والمظهر داخلها (نفس الروابط) — لا تكرار في الهيدر */
    .rt-hdr-act > .lang-switch { display: none; }
    .rt-hdr-act > .theme-btn { display: none; }
    /* ⚠️ إلّا في الوضع المجرّد: لا قائمة مطويّة أصلاً، فالإخفاء يحذف المبدّلين من الهاتف
       حذفاً — كشفته اللقطة لا القراءة. (الوزن 0,3,0 أعلى من 0,2,0 أعلاه.) */
    body.rt-bare .rt-hdr-act > .lang-switch,
    body.rt-bare .rt-hdr-act > .theme-btn { display: flex; }
}
@media (max-width: 719px) {
    .rt-hdr .hdr-user-name, .rt-hdr .hdr-caret { display: none; }
    .rt-hdr-act { gap: var(--rt-space-1); }
    .rt-hdr-in { gap: var(--rt-space-2); }
    /* الشعار يتقلّص بالقصّ قبل أن يُزاح أيّ زرّ */
    .rt-hdr .brand { flex: 1 1 auto; }
}
@media (max-width: 479px) {
    /* المسجَّل على هاتف ضيّق: الرقم يبقى، وتسقط زينته — زرّ «+» ثمّ الأيقونة.
       (نفس قرار المالك في الثيم الأصلي: app.css ‎≤380‎ وmx.css ‎≤420‎ — الرصيد أهمّ من حبّته.)
       مقيس برصيد طويل «12,480.50 MAD» وتكبير خطّ ×1.3. */
    .rt-hdr .hdr-bal { padding-inline: var(--rt-space-2); gap: var(--rt-space-1); }
    .rt-hdr .hdr-bal .hdr-bal-add,
    .rt-hdr .hdr-bal .hdr-bal-ico { display: none; }
    .rt-hdr .hdr-login { padding-inline: var(--rt-space-2); }
    .rt-hdr .hdr-login .lbl-l { display: none; }
    .rt-hdr .hdr-login .lbl-s { display: inline; }
    .rt-hdr .hdr-cta { padding-inline: var(--rt-space-3); min-width: 0; overflow: hidden; }
    .rt-hdr .hdr-cta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rt-hdr .theme-btn, .rt-hdr .nav-toggle, .rt-hdr .ntf-btn { width: 32px; height: 32px; }
}
@media (max-width: 379px) {
    /* أضيق الهواتف: الجرس للقائمة (notify.js يعرض رابطه فيها) */
    .rt-hdr-act > .ntf { display: none; }
    .rt-hdr-in { padding-inline: var(--rt-space-3); gap: var(--rt-space-1); }
    .rt-hdr .hdr-cta { padding-inline: var(--rt-space-2); }
    /* 320px مع تكبير خطّ ×1.3: لا يتّسع الهيدر لحبّة الرصيد مع القائمة وزرّ الحساب.
       الرقم غير ضائع — يظهر في رأس قائمة الحساب وفي تبويب المحفظة بالشريط السفلي. */
    .rt-hdr-act > .hdr-bal { display: none; }
}
/* اسم المتجر لا يدفع الهيدر مهما طال (المستأجر يختاره): يُقصّ بثلاث نقاط.
   ‎min-width: 0‎ على الاثنين — الحاوية عنصر مرن، والاسم عنصر مرن داخلها. */
.rt-hdr .brand { min-width: 0; }
.rt-hdr .brand .brand-name { min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═════════ 2. المحتوى ═════════ */
.rt-main { display: block; flex: 1 1 auto; min-width: 0; }

/* ═════════ 3. الفوتر ═════════ */
.rt-foot {
    margin-top: var(--rt-space-8);
    border-top: 1px solid var(--rt-line);
    background: var(--rt-surface);
    color: var(--rt-muted);
    font-size: var(--rt-fs-s);
}
.rt-foot-in {
    width: 100%; max-width: var(--rt-wrap);
    margin-inline: auto;
    padding: var(--rt-space-6) var(--rt-space-4);
}
@media (min-width: 720px) { .rt-foot-in { padding-inline: var(--rt-space-5); } }
.rt-foot-top {
    display: grid; gap: var(--rt-space-5);
    padding-bottom: var(--rt-space-5);
    border-bottom: 1px solid var(--rt-line);
}
@media (min-width: 720px) { .rt-foot-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: var(--rt-space-6); } }
.rt-foot-brand { display: block; min-width: 0; }
.rt-foot-brand strong { display: block; color: var(--rt-text); font-size: var(--rt-fs-l); font-weight: 800; }
.rt-foot-brand p { margin: var(--rt-space-2) 0 0; max-width: 40ch; }
.rt-foot-links { display: flex; flex-wrap: wrap; gap: var(--rt-space-2) var(--rt-space-5); align-content: start; }
/* خطّاف footer_links يبعث مجموعات <nav class="ct-foot"> جاهزة (قانونية، مدوّنة…):
   نعطيها نفس الإيقاع وإلّا التصقت روابطها ببعضها داخل عنصر مرن واحد. */
.rt-foot-links > nav { display: flex; flex-wrap: wrap; gap: var(--rt-space-2) var(--rt-space-5); }
.rt-foot-links a { color: var(--rt-muted); font-weight: 700; font-size: var(--rt-fs-s); }
.rt-foot-links a:hover { color: var(--rt-primary-text); }
.rt-foot-bottom {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-space-3);
    padding-top: var(--rt-space-4);
    font-size: var(--rt-fs-xs);
}
.rt-foot-bottom .rt-foot-attr { margin-inline-start: auto; }
.rt-foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ═════════ 4. شريط الهاتف السفلي (خطّاف body_end، وحدة Pwa) ═════════ */
.pwa-tabs, .pwa-tab-space { display: none; }
@media (max-width: 879px) {
    .pwa-tab-space { display: block; height: calc(58px + env(safe-area-inset-bottom, 0px)); }
    .pwa-tabs {
        position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
        display: flex; align-items: stretch;
        height: calc(58px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--rt-surface);
        border-top: 1px solid var(--rt-line);
    }
    .pwa-tab {
        flex: 1 1 0; min-width: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        border: 0; background: none; color: var(--rt-muted);
        font: inherit; font-size: 10px; font-weight: 700;
        cursor: pointer; text-align: center;
        border-top: 2px solid transparent;
        margin-top: -1px;
    }
    .pwa-tab.is-active { color: var(--rt-primary-text); border-top-color: var(--rt-primary); }
    .pwa-tab:hover { color: var(--rt-text); }
    .pwa-lbl { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pwa-ico {
        display: block; width: 20px; height: 20px;
        background: currentColor;
        -webkit-mask: var(--rt-m, none) center / contain no-repeat;
                mask: var(--rt-m, none) center / contain no-repeat;
    }
    .pwa-ico-wallet  { --rt-m: var(--rt-ico-wallet); }
    .pwa-ico-plus    { --rt-m: var(--rt-ico-plus); }
    .pwa-ico-list    { --rt-m: var(--rt-ico-list); }
    .pwa-ico-support { --rt-m: var(--rt-ico-support); }
    .pwa-ico-menu    { --rt-m: var(--rt-ico-menu); }
    /* زرّ «طلب جديد» في الوسط: مربّع باللون الأساسي */
    .pwa-tab-new .pwa-new-pill {
        display: grid; place-items: center;
        width: 30px; height: 30px;
        border-radius: var(--rt-radius-m);
        background: var(--rt-primary); color: var(--rt-primary-ink);
    }
    .pwa-tab-new .pwa-ico { width: 18px; height: 18px; }
    .pwa-tab-new { color: var(--rt-text); }
    .pwa-tab-new.is-active { border-top-color: transparent; }
    .pwa-tab-orders  { order: 1; }
    .pwa-tab-funds   { order: 2; }
    .pwa-tab-new     { order: 3; }
    .pwa-tab-support { order: 4; }
    .pwa-tab-menu    { order: 5; }
    .pwa-menu-ico { position: relative; display: block; }
    .pwa-dot {
        position: absolute; top: -2px; inset-inline-end: -3px;
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--rt-danger);
        display: none;
    }
    .pwa-tab-support .pwa-dot, .pwa-tabs .pwa-menu-ico > .pwa-dot:not(:only-child) { display: block; }
    .pwa-tab:focus-visible { outline: 2px solid var(--rt-primary); outline-offset: -4px; }
}

/* شريط «ثبّت التطبيق» (خطّاف after_header) */
.pwa-bar { border-bottom: 1px solid var(--rt-line); background: var(--rt-surface-2); font-size: var(--rt-fs-s); }
.pwa-bar-in {
    display: flex; align-items: center; gap: var(--rt-space-3);
    width: 100%; max-width: var(--rt-wrap);
    margin-inline: auto;
    padding: var(--rt-space-3) var(--rt-space-4);
}
.pwa-bar-icon { width: 32px; height: 32px; flex: none; border-radius: var(--rt-radius-s); }
.pwa-bar-txt { min-width: 0; flex: 1 1 auto; }
.pwa-bar-txt strong { display: block; font-size: var(--rt-fs-s); }
.pwa-bar-txt span { display: block; color: var(--rt-muted); font-size: var(--rt-fs-xs); }
.pwa-bar-act { display: flex; align-items: center; gap: var(--rt-space-2); flex: none; }
.pwa-bar-go, .pwa-bar-how {
    display: inline-flex; align-items: center; gap: var(--rt-space-2);
    height: 32px; padding-inline: var(--rt-space-3);
    border: 1px solid var(--rt-line-strong); border-radius: var(--rt-radius-m);
    background: var(--rt-surface); color: var(--rt-text);
    font: inherit; font-size: var(--rt-fs-xs); font-weight: 700; cursor: pointer;
}
.pwa-bar-go { background: var(--rt-primary); border-color: var(--rt-primary); color: var(--rt-primary-ink); }
.pwa-bar-x {
    width: 28px; height: 28px; flex: none; display: grid; place-items: center;
    border: 0; background: none; color: var(--rt-muted); cursor: pointer;
}
.pwa-bar-x:hover { color: var(--rt-text); }
.pwa-ico-close    { --rt-m: var(--rt-ico-close); }
.pwa-ico-download { --rt-m: var(--rt-ico-download); }
.pwa-ico-share    { --rt-m: var(--rt-ico-share); }
.pwa-ico-addsq    { --rt-m: var(--rt-ico-plus); }
.pwa-ico-check    { --rt-m: var(--rt-ico-check); }
.pwa-bar .pwa-ico, .pwa-menu-link .pwa-ico {
    display: inline-block; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: var(--rt-m, none) center / contain no-repeat;
            mask: var(--rt-m, none) center / contain no-repeat;
}
.pwa-ico-inline { width: 1.1em; height: 1.1em; vertical-align: -.15em; color: var(--rt-primary-text); }
@media (max-width: 559px) {
    .pwa-bar-in { flex-wrap: wrap; }
    .pwa-bar-act { margin-inline-start: auto; }
}

/* ═════════ 5. الجرس (خطّاف header_tools، وحدة Notify) ═════════ */
.ntf { position: relative; flex: none; }
.ntf-btn {
    position: relative; display: grid; place-items: center;
    width: 34px; height: 34px;
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius-m);
    color: var(--rt-muted); background: none; cursor: pointer;
}
.ntf-btn:hover { color: var(--rt-text); border-color: var(--rt-line-strong); }
.ntf-ico {
    width: 17px; height: 17px; display: block; background: currentColor;
    -webkit-mask: var(--rt-ico-bell) center / contain no-repeat;
            mask: var(--rt-ico-bell) center / contain no-repeat;
}
.ntf.is-unread .ntf-btn { color: var(--rt-text); }
.ntf-badge {
    position: absolute; top: -5px; inset-inline-end: -5px;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--rt-danger-bg); color: #fff;   /* خلفية لا نصّ — انظر tokens.css */
    font-size: 10px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ntf-panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
    z-index: 70; width: min(340px, calc(100vw - 2 * var(--rt-space-4)));
    max-height: 70vh; overflow: auto;
    background: var(--rt-surface);
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius-l);
    box-shadow: var(--rt-shadow-2);
}
.ntf-head {
    display: flex; align-items: center; gap: var(--rt-space-3);
    padding: var(--rt-space-3) var(--rt-space-4);
    border-bottom: 1px solid var(--rt-line);
    position: sticky; top: 0; background: var(--rt-surface);
}
.ntf-head-t { font-size: var(--rt-fs-s); font-weight: 800; }
.ntf-all { margin-inline-start: auto; color: var(--rt-primary-text); font-size: var(--rt-fs-xs); font-weight: 700; }
.ntf-body { padding: var(--rt-space-2) 0; }
.ntf-msg {
    display: flex; align-items: center; gap: var(--rt-space-2); justify-content: center;
    margin: 0; padding: var(--rt-space-5) var(--rt-space-4);
    color: var(--rt-muted); font-size: var(--rt-fs-s);
}
.ntf-spin {
    width: 14px; height: 14px; flex: none;
    border: 2px solid var(--rt-line-strong); border-top-color: var(--rt-primary);
    border-radius: 50%; animation: rt-spin .8s linear infinite;
}
@keyframes rt-spin { to { transform: rotate(360deg); } }
.ntf-mlink { display: flex; align-items: center; gap: var(--rt-space-2); }
.ntf-mbadge {
    min-width: 16px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center;
    border-radius: 999px; background: var(--rt-danger-bg); color: #fff;   /* خلفية لا نصّ — انظر tokens.css */
    font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ntf--guest .ntf-badge { display: none; }

/* ═════════ 6. شريط الإعلانات وزرّ التواصل (خطّافات Content/Sitekit) ═════════ */
.ct-bar {
    border-bottom: 1px solid var(--rt-line);
    background: var(--rt-surface-2);
    font-size: var(--rt-fs-s);
}
.ct-bar-in {
    width: 100%; max-width: var(--rt-wrap); margin-inline: auto;
    padding: var(--rt-space-2) var(--rt-space-4);
    display: flex; align-items: center; gap: var(--rt-space-3);
}
.ct-bar a { color: var(--rt-primary-text); font-weight: 700; }
.ct-bar-x { margin-inline-start: auto; border: 0; background: none; color: var(--rt-muted); cursor: pointer; font: inherit; }

/* ═════════ 6.5 الوضع المجرّد `body.rt-bare` ═════════
   يرفعه التخطيط من `View::share('rtBare', true)` لصفحة تحجب كل المسارات سواها
   (تغيير كلمة المرور الإجباري). التخطيط يُسقط ما يملك ترميزه؛ وما تحقنه الوحدات في
   خطّاف ليس ترميزي ⇒ يسقط هنا. المعيار: **كل ما نقرُه يرتدّ 302 إلى الصفحة نفسها**
   (`.pwa-tabs` · `.ct-bar` · `.rt-ann`)، ومعه ما يزاحم الإجراء الوحيد المطلوب
   (`.pwa-bar` دعوة تثبيت التطبيق — لا ترتدّ، لكن ليس وقتها).
   `.sk-fab` و`.ua-imp` باقيان عمداً: الأوّل يفتح رابطاً خارجيّاً، والثاني مخرج الأدمن
   المنتحل — وكلاهما ليس ارتداداً ولا مزاحماً. */
body.rt-bare .pwa-tabs,
body.rt-bare .pwa-tab-space,
body.rt-bare .pwa-bar,
body.rt-bare .ct-bar,
body.rt-bare .rt-ann,
body.rt-bare .sk-decor { display: none !important; }

/* (حُذف `.rt-hdr-out`: زرّ الخروج انتقل إلى ملفّ الصفحة نفسها — قرار RD3 2026-12-03 —
   فلم يبقَ للصنف مُنتِج. قاعدةٌ بلا ترميز تبقى كأنّها حيّة ثمّ تُنسخ إلى حيث لا تناسب. */

/* ───── كبسولة «تعاين مسودّة الكود» (`SiteKit\Hooks::previewBar`) — للأدمن المعاين وحده ─────
   ⚠️ تُحقَن في `body_end`، أي **بعد التذييل**. أوّل نسخة لي نسّقتها كشريط في الانسياب
   مع `.ct-bar`، فظهرت شريطاً رمادياً شارداً أسفل الصفحة لا يراه الأدمن إلّا إن نزل إلى
   آخرها — وهو مفتاحه لإيقاف المعاينة. فهي **ثابتة** أعلى الشاشة كالأصل.
   `max-width` بـ‎100%‎ لا ‎100vw‎: الثانية تحسب شريط التمرير ⇒ فيض أفقي. */
.sk-preview {
    /* ⚠️ `top` **تحت** الهيدر لا فوقه: الأصل يضعها عند ‎8px‎ فتركب الهيدر، وقِستُ ذلك على 390px
       فابتلعت الشعار و«تسجيل الدخول» و«إنشاء حساب» كلّها — وشرط العرض أن يبقى الزرّان ظاهرَين
       على الهاتف دائماً. فهي تطفو على المحتوى، لا على التنقّل. */
    position: fixed; top: calc(var(--rt-hdr-h) + var(--rt-space-2)); inset-inline: var(--rt-space-2); z-index: 85;
    width: max-content; max-width: calc(100% - 2 * var(--rt-space-2)); margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: var(--rt-space-2) var(--rt-space-3);
    padding: var(--rt-space-2) var(--rt-space-4);
    border-radius: var(--rt-radius-l);
    background: var(--rt-ink); color: var(--rt-ink-text);
    font-size: var(--rt-fs-xs); font-weight: 700; box-shadow: var(--rt-shadow-2);
}
.sk-preview a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sk-preview form { margin: 0; }
.sk-preview button {
    padding: 4px var(--rt-space-3); border: 1px solid var(--rt-ink-line);
    border-radius: var(--rt-radius-s);
    background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
.sk-preview button:hover { background: color-mix(in srgb, var(--rt-ink-text) 16%, transparent); }

/* ───── الزينة الموسمية (`SiteKit\Decor`) — يشغّلها الأدمن موسمياً ─────
   `after_header` للشريط و`body_end` للثلج، وتنسيقهما في `css/modules/sitekit.css`
   الذي **لا يحمّله تخطيط rent** ⇒ بلا هذه القواعد يظهر الشريط صفراً والثلج نقاطاً سوداء.
   الأقنعة منسوخة حرفياً من الأصل (بلاطة 120×36). الهوية: طبقتان هادئتان — المعلَّق
   بلون المستأجر والخيط بالخطّ القويّ — لا تدرّجات ولا هالات. */
:root {
    --sk-ramadan-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 2q30 9 60 0t60 0'/%3E%3Cpath d='M30 6.5v5'/%3E%3Cpath d='M27 11.5h6l2.5 4v9l-2.5 4h-6l-2.5-4v-9z'/%3E%3Cpath d='M24.5 15.5h11M24.5 24.5h11M30 28.5v3'/%3E%3C/svg%3E");
    --sk-ramadan-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36'%3E%3Cpath d='M93 9a8 8 0 1 0 0 16a6.4 6.4 0 1 1 0-16z' fill='black'/%3E%3Cpath d='m70 12 1.2 2.6 2.8.3-2.1 1.9.6 2.8-2.5-1.4-2.5 1.4.6-2.8-2.1-1.9 2.8-.3z' fill='black'/%3E%3C/svg%3E");
    --sk-eid-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M0 3q30 8 60 0t60 0' stroke-linecap='round'/%3E%3Cpath d='M10 6.2l8 15 8-15' fill='black'/%3E%3Cpath d='M70 6.2l8 15 8-15' fill='black'/%3E%3Cpath d='M40 7.4l8 13 8-13'/%3E%3Cpath d='M100 7.4l8 13 8-13'/%3E%3C/svg%3E");
    --sk-eid-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36'%3E%3Cpath d='m48 24 1 2.2 2.4.3-1.8 1.6.5 2.4-2.1-1.2-2.1 1.2.5-2.4-1.8-1.6 2.4-.3z' fill='black'/%3E%3Cpath d='m108 24 1 2.2 2.4.3-1.8 1.6.5 2.4-2.1-1.2-2.1 1.2.5-2.4-1.8-1.6 2.4-.3z' fill='black'/%3E%3C/svg%3E");
    --sk-newyear-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 2q30 9 60 0t60 0'/%3E%3Cpath d='M20 5.5v7M60 2v12M100 5.5v7'/%3E%3Ccircle cx='20' cy='17' r='4.5'/%3E%3Ccircle cx='60' cy='19' r='5' fill='black'/%3E%3Ccircle cx='100' cy='17' r='4.5'/%3E%3C/svg%3E");
    --sk-newyear-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36'%3E%3Cpath d='m40 14 1.2 2.6 2.8.3-2.1 1.9.6 2.8-2.5-1.4-2.5 1.4.6-2.8-2.1-1.9 2.8-.3z' fill='black'/%3E%3Cpath d='m80 14 1.2 2.6 2.8.3-2.1 1.9.6 2.8-2.5-1.4-2.5 1.4.6-2.8-2.1-1.9 2.8-.3z' fill='black'/%3E%3C/svg%3E");
}
.sk-decor {
    position: relative; height: 32px; overflow: hidden; pointer-events: none;
    border-bottom: 1px solid var(--rt-line); background: var(--rt-surface-2);
}
.sk-decor > span {
    position: absolute; inset: 0;
    -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
    -webkit-mask-size: auto 100%; mask-size: auto 100%;
    -webkit-mask-position: center top; mask-position: center top;
}
.sk-decor-a { background: var(--rt-primary); opacity: .75; }
.sk-decor-b { background: var(--rt-line-strong); }
.sk-decor--ramadan .sk-decor-a { -webkit-mask-image: var(--sk-ramadan-a); mask-image: var(--sk-ramadan-a); }
.sk-decor--ramadan .sk-decor-b { -webkit-mask-image: var(--sk-ramadan-b); mask-image: var(--sk-ramadan-b); }
.sk-decor--eid .sk-decor-a     { -webkit-mask-image: var(--sk-eid-a);     mask-image: var(--sk-eid-a); }
.sk-decor--eid .sk-decor-b     { -webkit-mask-image: var(--sk-eid-b);     mask-image: var(--sk-eid-b); }
.sk-decor--newyear .sk-decor-a { -webkit-mask-image: var(--sk-newyear-a); mask-image: var(--sk-newyear-a); }
.sk-decor--newyear .sk-decor-b { -webkit-mask-image: var(--sk-newyear-b); mask-image: var(--sk-newyear-b); }
@media (max-width: 719px) { .sk-decor { height: 26px; } }

/* الثلج: 14 نقطة تسقط. 44 أدنى من الهيدر (60) والشريط السفلي (80) ⇒ لا يغطّي أداة. */
.sk-snow { position: fixed; inset: 0; z-index: 44; overflow: hidden; pointer-events: none; }
.sk-snow i {
    position: absolute; top: -12px; width: 6px; height: 6px; border-radius: 50%;
    /* بلون المستأجر لا بالحبر: قِستُ الرمادي على الفاتح فقرأ غباراً على الورق، والأبيض يختفي. */
    background: var(--rt-primary); opacity: .3; animation: sk-fall 14s linear infinite;
}
.sk-snow i:nth-child(1)  { left: 4%;  animation-duration: 13s; animation-delay: -2s; }
.sk-snow i:nth-child(2)  { left: 11%; animation-duration: 17s; animation-delay: -9s;  width: 4px; height: 4px; }
.sk-snow i:nth-child(3)  { left: 19%; animation-duration: 15s; animation-delay: -5s; }
.sk-snow i:nth-child(4)  { left: 26%; animation-duration: 19s; animation-delay: -12s; width: 8px; height: 8px; opacity: .2; }
.sk-snow i:nth-child(5)  { left: 33%; animation-duration: 14s; animation-delay: -1s;  width: 4px; height: 4px; }
.sk-snow i:nth-child(6)  { left: 41%; animation-duration: 18s; animation-delay: -7s; }
.sk-snow i:nth-child(7)  { left: 48%; animation-duration: 16s; animation-delay: -14s; width: 5px; height: 5px; }
.sk-snow i:nth-child(8)  { left: 56%; animation-duration: 13s; animation-delay: -4s; }
.sk-snow i:nth-child(9)  { left: 63%; animation-duration: 20s; animation-delay: -10s; width: 8px; height: 8px; opacity: .2; }
.sk-snow i:nth-child(10) { left: 70%; animation-duration: 15s; animation-delay: -3s;  width: 4px; height: 4px; }
.sk-snow i:nth-child(11) { left: 77%; animation-duration: 17s; animation-delay: -11s; }
.sk-snow i:nth-child(12) { left: 84%; animation-duration: 14s; animation-delay: -6s;  width: 5px; height: 5px; }
.sk-snow i:nth-child(13) { left: 91%; animation-duration: 19s; animation-delay: -13s; }
.sk-snow i:nth-child(14) { left: 97%; animation-duration: 16s; animation-delay: -8s;  width: 4px; height: 4px; }
@keyframes sk-fall { to { transform: translate3d(0, 105vh, 0); } }
@media (prefers-reduced-motion: reduce) { .sk-snow { display: none; } }

/* ───── شريط الإعلان بهوية rent (`themes/rent/content/_bar.php`) ─────
   تنسيقه هنا لا في `pages/*.css`: يُرسم في خطّاف `after_header`، أي بعد `View::emit('head')`
   ⇒ أيّ `View::on('head')` منه يأتي متأخّراً ولا يظهر.
   النوع خطّ لون على الحافّة البادئة — لا خلفية ملوّنة ولا كبسولة بإطار. */
.rt-ann {
    border-bottom: 1px solid var(--rt-line);
    background: var(--rt-surface-2);
    font-size: var(--rt-fs-s);
}
.rt-ann-in {
    width: 100%; max-width: var(--rt-wrap); margin-inline: auto;
    display: flex; align-items: flex-start; gap: var(--rt-space-3);
    padding-block: var(--rt-space-3);
}
.rt-ann-txt { margin: 0; min-width: 0; flex: 1 1 auto; line-height: 1.7; }
.rt-ann-txt strong { font-weight: 800; }
/* النقطة الملوّنة قبل العنوان: نفس لغة `.rt-status` */
.rt-ann-txt strong::before {
    content: ""; display: inline-block; vertical-align: .12em;
    width: 7px; height: 7px; margin-inline-end: var(--rt-space-2);
    border-radius: 50%; background: var(--rt-ann-c, var(--rt-primary-text));
}
.rt-ann-body { color: var(--rt-muted); }
.rt-ann-more { color: var(--rt-primary-text); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.rt-ann--info  { --rt-ann-c: var(--rt-primary-text); border-inline-start: 3px solid var(--rt-primary); }
.rt-ann--warn  { --rt-ann-c: var(--rt-warn);    border-inline-start: 3px solid var(--rt-warn); }
.rt-ann--promo { --rt-ann-c: var(--rt-success); border-inline-start: 3px solid var(--rt-success); }
.rt-ann-x { flex: none; margin: 0; }
.rt-ann-x button {
    width: 28px; height: 28px; display: grid; place-items: center;
    border: 0; border-radius: var(--rt-radius-s);
    background: none; color: var(--rt-muted); cursor: pointer;
}
.rt-ann-x button:hover { background: var(--rt-surface); color: var(--rt-text); }
/* علامة × مرسومة بخطّين — لا أيقونة ولا رمز إيموجي */
.rt-ann-x button > span { position: relative; display: block; width: 12px; height: 12px; }
.rt-ann-x button > span::before, .rt-ann-x button > span::after {
    content: ""; position: absolute; inset-inline: 0; top: 5px;
    height: 2px; border-radius: 1px; background: currentColor;
}
.rt-ann-x button > span::before { transform: rotate(45deg); }
.rt-ann-x button > span::after  { transform: rotate(-45deg); }
@media (max-width: 479px) {
    .rt-ann { font-size: var(--rt-fs-xs); }
    .rt-ann-more { display: block; margin-top: 2px; }
}

/* ═════════ 7. الأيقونات (أقنعة SVG مرسومة هنا — لا ملفّات ولا مكتبات) ═════════ */
:root {
    --rt-ico-menu:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
    --rt-ico-close:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
    --rt-ico-sun:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M18.4 5.6 17 7M7 17l-1.4 1.4'/%3E%3C/svg%3E");
    --rt-ico-moon:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5z'/%3E%3C/svg%3E");
    --rt-ico-stars:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14.8A7.8 7.8 0 0 1 9.2 5a7.8 7.8 0 1 0 9.8 9.8z'/%3E%3Cpath d='M17 3.5v3M15.5 5h3'/%3E%3C/svg%3E");
    --rt-ico-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7V5.5A1.5 1.5 0 0 0 15.5 4h-10A1.5 1.5 0 0 0 4 5.5V7'/%3E%3Crect x='4' y='7' width='16' height='13' rx='2'/%3E%3Cpath d='M20 11.5h-3.5a2 2 0 0 0 0 4H20'/%3E%3C/svg%3E");
    --rt-ico-plus:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    --rt-ico-list:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3.5' width='15' height='17' rx='2.5'/%3E%3Cpath d='M8.5 8.5h7M8.5 12h7M8.5 15.5h4'/%3E%3C/svg%3E");
    --rt-ico-support:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 13.5V12a7.5 7.5 0 0 1 15 0v1.5'/%3E%3Crect x='3.5' y='12.5' width='4' height='6.5' rx='1.6'/%3E%3Crect x='16.5' y='12.5' width='4' height='6.5' rx='1.6'/%3E%3Cpath d='M18.5 19v.5a2 2 0 0 1-2 2h-3.5'/%3E%3C/svg%3E");
    --rt-ico-bell:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 10a5.5 5.5 0 0 1 11 0v4l1.5 2.5h-14L6.5 14z'/%3E%3Cpath d='M10 19.5a2.2 2.2 0 0 0 4 0'/%3E%3C/svg%3E");
    --rt-ico-caret:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
    --rt-ico-check:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E");
    --rt-ico-download:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E");
    --rt-ico-share:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14V3.5M8 7.5l4-4 4 4'/%3E%3Cpath d='M8 10.5H6.5A1.5 1.5 0 0 0 5 12v7.5A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V12a1.5 1.5 0 0 0-1.5-1.5H16'/%3E%3C/svg%3E");
    --rt-ico-arrow:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --rt-ico-lock:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E");
    --rt-ico-refresh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12a7.5 7.5 0 1 1-2.2-5.3'/%3E%3Cpath d='M19.5 4.5V9H15'/%3E%3C/svg%3E");
    --rt-ico-clock:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
    --rt-ico-user:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.8'/%3E%3Cpath d='M5 20c.8-3.4 3.6-5.2 7-5.2S18.2 16.6 19 20'/%3E%3C/svg%3E");
    --rt-ico-link:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1'/%3E%3Cpath d='M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1'/%3E%3C/svg%3E");
    --rt-ico-chart:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5h16'/%3E%3Cpath d='M7 16V11M12 16V6.5M17 16v-7'/%3E%3C/svg%3E");
    /* قناع فارغ: الاحتياطي لأيّ أيقونة بلا رمز (بدلاً من مربّع مصمت) */
    --rt-ico-none:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3C/svg%3E");

    /* ───── رسمها RD3 بنفس اللغة البصرية (24، حدّ 1.8، أطراف مدوّرة) ونُقلت هنا كما هي ───── */
    --rt-ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 19.5 6v5.5c0 4.5-3.2 8-7.5 9.5-4.3-1.5-7.5-5-7.5-9.5V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    --rt-ico-copy:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='11' height='11' rx='2.2'/%3E%3Cpath d='M15.5 8.5V6A1.5 1.5 0 0 0 14 4.5H6A1.5 1.5 0 0 0 4.5 6v8A1.5 1.5 0 0 0 6 15.5h2.5'/%3E%3C/svg%3E");
    --rt-ico-gift:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='4.2' rx='1.2'/%3E%3Cpath d='M5.2 12.2V19a1.5 1.5 0 0 0 1.5 1.5h10.6a1.5 1.5 0 0 0 1.5-1.5v-6.8M12 8v12.5'/%3E%3Cpath d='M12 8S10.6 3.8 8.3 4.6 9.2 8 12 8zM12 8s1.4-4.2 3.7-3.4S14.8 8 12 8z'/%3E%3C/svg%3E");
    --rt-ico-card:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.4'/%3E%3Cpath d='M3 10h18M6.5 14.8h4'/%3E%3C/svg%3E");
    --rt-ico-send:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 3.5 10.8 13.2M20.5 3.5l-6.3 17-3.4-7.3-7.3-3.4z'/%3E%3C/svg%3E");
    --rt-ico-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4.5M7.5 9 12 4.5 16.5 9M5 19.5h14'/%3E%3C/svg%3E");
    --rt-ico-clip:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 11.5 12.2 18.3a4.3 4.3 0 0 1-6.1-6.1l7.3-7.3a2.9 2.9 0 0 1 4.1 4.1l-7.3 7.3a1.5 1.5 0 0 1-2.1-2.1l6.4-6.4'/%3E%3C/svg%3E");
    --rt-ico-mail:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.4'/%3E%3Cpath d='m3.8 7 7.3 5.2a1.5 1.5 0 0 0 1.8 0L20.2 7'/%3E%3C/svg%3E");
    --rt-ico-key:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='4.2'/%3E%3Cpath d='m11 11 8.5 8.5M16.5 16.5 15 18M19 14l-1.6 1.6'/%3E%3C/svg%3E");
    --rt-ico-globe:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17M12 3.5c2.2 2.3 3.3 5.1 3.3 8.5S14.2 18.2 12 20.5c-2.2-2.3-3.3-5.1-3.3-8.5S9.8 5.8 12 3.5z'/%3E%3C/svg%3E");
    --rt-ico-code:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.5 8.5-4 3.5 4 3.5M15.5 8.5l4 3.5-4 3.5M13.4 5 10.6 19'/%3E%3C/svg%3E");
    --rt-ico-chat:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.6a7.6 7.6 0 0 1-11 6.8L4.5 19.5l1.1-4A7.6 7.6 0 1 1 20 11.6z'/%3E%3Cpath d='M8.8 11.6h.01M12 11.6h.01M15.2 11.6h.01'/%3E%3C/svg%3E");
    --rt-ico-addsq:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3.4'/%3E%3Cpath d='M12 8.5v7M8.5 12h7'/%3E%3C/svg%3E");
    --rt-ico-dots:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5' r='1.7'/%3E%3Ccircle cx='12' cy='12' r='1.7'/%3E%3Ccircle cx='12' cy='19' r='1.7'/%3E%3C/svg%3E");
    --rt-ico-box:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 8.3v7.4a1.5 1.5 0 0 1-.8 1.3l-7 3.6a1.5 1.5 0 0 1-1.4 0l-7-3.6a1.5 1.5 0 0 1-.8-1.3V8.3a1.5 1.5 0 0 1 .8-1.3l7-3.6a1.5 1.5 0 0 1 1.4 0l7 3.6a1.5 1.5 0 0 1 .8 1.3z'/%3E%3Cpath d='m3.6 7.6 8.4 4.3 8.4-4.3M12 11.9v8.6'/%3E%3C/svg%3E");

    /* كشف كلمة السرّ (صفحات الدخول/التسجيل) */
    --rt-ico-eye:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --rt-ico-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 5.8A8.6 8.6 0 0 1 12 5.5c6 0 9.5 6.5 9.5 6.5a16 16 0 0 1-3.3 4M6.4 7.9A16 16 0 0 0 2.5 12S6 18.5 12 18.5a8.7 8.7 0 0 0 3.4-.7'/%3E%3Cpath d='M10 10a3 3 0 0 0 4 4M3.5 3.5l17 17'/%3E%3C/svg%3E");
    /* ───── أربع أيقونات طلبها RD2 (لوحة 09:5x): لكلٍّ معنى مميّز في الأصل ───── */
    --rt-ico-bolt:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2.5 4.5 13.5H11l-1 8L18.5 10H12z'/%3E%3C/svg%3E");
    --rt-ico-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 7.5l9 4.5 9-4.5z'/%3E%3Cpath d='M3 12.2l9 4.5 9-4.5'/%3E%3Cpath d='M3 16.7l9 4.5 9-4.5'/%3E%3C/svg%3E");
    --rt-ico-coin:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.4v9.2'/%3E%3Cpath d='M14.4 9.5a2.7 2.7 0 0 0-2.4-1.2c-1.5 0-2.6.8-2.6 2 0 2.7 5.2 1.4 5.2 4 0 1.2-1.1 2-2.6 2a2.7 2.7 0 0 1-2.4-1.2'/%3E%3C/svg%3E");
    --rt-ico-crown:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 7.4l3.7 3.3L12 4.8l3.7 5.9 3.7-3.3-1.5 9.1H6.1z'/%3E%3Cpath d='M5.4 19.2h13.2'/%3E%3C/svg%3E");
}

/* أيقونة عامّة قابلة للاستعمال في أيّ صفحة: <span class="rt-i rt-i-lock"></span>
   ⚠️ الاحتياطي ليس `none`: قناع معدوم يترك `background: currentColor` ظاهراً ⇒ **مربّع مصمت**
   مكان كل أيقونة لا نعرف رمزها (بلاغ RD3: 38 موضعاً). الاحتياطي قناع شفّاف ⇒ تختفي بهدوء. */
.rt-i {
    display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.17em;
    background: currentColor;
    -webkit-mask: var(--rt-m, var(--rt-ico-none)) center / contain no-repeat;
            mask: var(--rt-m, var(--rt-ico-none)) center / contain no-repeat;
}
.rt-i-lock { --rt-m: var(--rt-ico-lock); }
.rt-i-refresh { --rt-m: var(--rt-ico-refresh); }
.rt-i-clock { --rt-m: var(--rt-ico-clock); }
.rt-i-support { --rt-m: var(--rt-ico-support); }
.rt-i-user { --rt-m: var(--rt-ico-user); }
.rt-i-wallet { --rt-m: var(--rt-ico-wallet); }
.rt-i-link { --rt-m: var(--rt-ico-link); }
.rt-i-chart { --rt-m: var(--rt-ico-chart); }
.rt-i-arrow { --rt-m: var(--rt-ico-arrow); }
.rt-i-check { --rt-m: var(--rt-ico-check); }
.rt-i-plus { --rt-m: var(--rt-ico-plus); }
.rt-i-list { --rt-m: var(--rt-ico-list); }
.rt-i-bell { --rt-m: var(--rt-ico-bell); }
.rt-i-close { --rt-m: var(--rt-ico-close); }
.rt-i-download { --rt-m: var(--rt-ico-download); }
.rt-i-share { --rt-m: var(--rt-ico-share); }
.rt-i-shield { --rt-m: var(--rt-ico-shield); }
.rt-i-copy { --rt-m: var(--rt-ico-copy); }
.rt-i-gift { --rt-m: var(--rt-ico-gift); }
.rt-i-card { --rt-m: var(--rt-ico-card); }
.rt-i-send { --rt-m: var(--rt-ico-send); }
.rt-i-upload { --rt-m: var(--rt-ico-upload); }
.rt-i-clip { --rt-m: var(--rt-ico-clip); }
.rt-i-mail { --rt-m: var(--rt-ico-mail); }
.rt-i-key { --rt-m: var(--rt-ico-key); }
.rt-i-globe { --rt-m: var(--rt-ico-globe); }
.rt-i-code { --rt-m: var(--rt-ico-code); }
.rt-i-chat { --rt-m: var(--rt-ico-chat); }
.rt-i-box { --rt-m: var(--rt-ico-box); }
.rt-i-addsq { --rt-m: var(--rt-ico-addsq); }
.rt-i-dots { --rt-m: var(--rt-ico-dots); }
.rt-i-eye { --rt-m: var(--rt-ico-eye); }
.rt-i-eye-off { --rt-m: var(--rt-ico-eye-off); }
/* خمسة متغيّرات كانت بلا أصناف (بلاغ RD3) + أربعة جديدة لـRD2.
   ⚠️ الصنف الناقص **لا يُخطئ**: القناع يرتدّ إلى `--rt-ico-none` الشفّاف فيظهر فراغ صامت
   ⇒ `php _tools/rent_icons_check.php` يطابق المتغيّرات بالأصناف. */
.rt-i-caret { --rt-m: var(--rt-ico-caret); }
.rt-i-menu { --rt-m: var(--rt-ico-menu); }
.rt-i-moon { --rt-m: var(--rt-ico-moon); }
.rt-i-sun { --rt-m: var(--rt-ico-sun); }
.rt-i-stars { --rt-m: var(--rt-ico-stars); }
.rt-i-bolt { --rt-m: var(--rt-ico-bolt); }
.rt-i-layers { --rt-m: var(--rt-ico-layers); }
.rt-i-coin { --rt-m: var(--rt-ico-coin); }
.rt-i-crown { --rt-m: var(--rt-ico-crown); }
[dir="rtl"] .rt-i-arrow, [dir="rtl"] .rt-i-send { transform: scaleX(-1); }

/* ───── بنود قائمة التنبيهات (`app/Views/notify/_list.php`) ─────
   قرار القائد 09:5x: البنود عندي لأنّ الجزء نفسه يظهر في **مكانين**: لوحة الجرس في التخطيط
   (أي في كل صفحة) وصفحة `/notifications` عند RD2 — وRD2 يأخذ قشرة الصفحة حولها وحدها.
   تنسيقها هنا لا في `pages/*.css` لأنّ اللوحة جزء من التخطيط.
   الأيقونات **أقنعة السكربت نفسها** (`css/modules/notify.css`) لا أيقونات جديدة.
   الهوية: فواصل شعرية لا بطاقات، وغير المقروء خطّ لون على الحافّة البادئة + نقطة — لا هالة. */
:root {
    --ntf-i-news:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4a1 1 0 0 0 1 1h2l6 4.5v-15L7 9H5a1 1 0 0 0-1 1z'/%3E%3Cpath d='M16.5 9a4 4 0 0 1 0 6M19 6.5a7.5 7.5 0 0 1 0 11'/%3E%3C/svg%3E");
    --ntf-i-service: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3.5l1.9 5.1L18 10.5l-5.1 1.9L11 17.5l-1.9-5.1L4 10.5l5.1-1.9z'/%3E%3Cpath d='M18.5 15.5v5M16 18h5'/%3E%3C/svg%3E");
    --ntf-i-offer:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.6'/%3E%3C/svg%3E");
    --ntf-i-system:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E");
}

.ntf-list { list-style: none; margin: 0; padding: 0; }
.ntf-item + .ntf-item { border-top: 1px solid var(--rt-line); }
.ntf-row {
    /* `position: relative` يحتجز `.ntf-sr` (نصّ قارئ الشاشة، مطلق بإزاحة سالبة)
       داخل البند — بدونه يخرج من الصندوق فيُحسب فيضاً. */
    position: relative;
    display: flex; align-items: flex-start; gap: var(--rt-space-3);
    padding: var(--rt-space-4);
    color: var(--rt-text); text-decoration: none;
    border-inline-start: 3px solid transparent;
    transition: background .14s ease;
}
a.ntf-row:hover { background: var(--rt-surface-2); }
a.ntf-row:focus-visible { outline: 2px solid var(--rt-focus); outline-offset: -2px; }
/* غير المقروء: خطّ لون على الحافّة البادئة وخلفية خفيفة — لا كبسولة ولا هالة. */
.ntf-item.is-unread .ntf-row {
    border-inline-start-color: var(--rt-primary);
    background: color-mix(in srgb, var(--rt-primary) 6%, transparent);
}
.ntf-item.is-unread a.ntf-row:hover { background: color-mix(in srgb, var(--rt-primary) 11%, transparent); }

/* لون النوع: `--ntf-c` للخلفية والأيقونة، و`--ntf-ct` لكل نصّ (قاعدة `--rt-primary-text`). */
.ntf-t-news    { --ntf-c: var(--rt-primary); --ntf-ct: var(--rt-primary-text); --ntf-m: var(--ntf-i-news); }
.ntf-t-service { --ntf-c: var(--rt-success); --ntf-ct: var(--rt-success);      --ntf-m: var(--ntf-i-service); }
.ntf-t-offer   { --ntf-c: var(--rt-warn);    --ntf-ct: var(--rt-warn);         --ntf-m: var(--ntf-i-offer); }
.ntf-t-system  { --ntf-c: var(--rt-danger);  --ntf-ct: var(--rt-danger);       --ntf-m: var(--ntf-i-system); }
.ntf-tico {
    position: relative; flex: none; width: 32px; height: 32px;
    border-radius: var(--rt-radius-s);
    background: color-mix(in srgb, var(--ntf-c, var(--rt-muted)) 12%, transparent);
}
.ntf-tico::before {
    content: ""; position: absolute; inset: 8px;
    background: var(--ntf-ct, var(--rt-muted));
    -webkit-mask: var(--ntf-m) center / contain no-repeat;
            mask: var(--ntf-m) center / contain no-repeat;
}
.ntf-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* على صفحة التنبيهات العريضة (760px) كان البند يمتدّ فتبتعد نقطة «غير مقروء» إلى الحافّة
   المقابلة فتبدو منفصلة عن بندها (ملاحظة RD2). سقف قياس القراءة يُبقيها ملاصقة،
   ويُقصّر السطر إلى مدى مقروء — في اللوحة الضيّقة لا أثر له. */
.ntf-list:not(.ntf-list--compact) .ntf-txt { max-width: 62ch; }
.ntf-kind {
    font-size: var(--rt-fs-xs); font-weight: 800; line-height: 1.3;
    color: var(--ntf-ct, var(--rt-muted));
}
.ntf-ttl { font-size: var(--rt-fs-s); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ntf-sum {
    font-size: var(--rt-fs-s); color: var(--rt-muted); line-height: 1.6; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ntf-sum--full { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.ntf-ago { margin-top: 2px; font-size: var(--rt-fs-xs); color: var(--rt-muted); }
.ntf-dot {
    flex: none; width: 8px; height: 8px; margin-top: 7px;
    border-radius: 50%; background: var(--rt-primary);
}
.ntf-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* داخل لوحة الجرس: أضيق، والأيقونة أصغر. */
.ntf-list--compact .ntf-row { padding: var(--rt-space-3) var(--rt-space-4); gap: var(--rt-space-3); }
.ntf-list--compact .ntf-tico { width: 28px; height: 28px; }
.ntf-list--compact .ntf-tico::before { inset: 7px; }
.ntf-list--compact .ntf-ttl { font-size: var(--rt-fs-s); }
.ntf-list--compact .ntf-sum { font-size: var(--rt-fs-xs); }

/* لا تنبيهات */
.ntf-empty { padding: var(--rt-space-6) var(--rt-space-4); text-align: center; color: var(--rt-muted); }
.ntf-empty p { margin: 0; font-size: var(--rt-fs-s); }
.ntf-empty-ico {
    position: relative; display: block; width: 40px; height: 40px;
    margin: 0 auto var(--rt-space-3);
    border-radius: var(--rt-radius-m); background: var(--rt-surface-2);
}
.ntf-empty-ico::before {
    content: ""; position: absolute; inset: 11px; background: var(--rt-muted);
    -webkit-mask: var(--rt-ico-bell) center / contain no-repeat;
            mask: var(--rt-ico-bell) center / contain no-repeat;
}

/* ───── ترميز تحقنه الوحدات في الخطّافات ولا يغطّيه `css/modules/*` ─────
   تخطيط rent لا يحمّل `css/modules/*.css`، فأيّ وحدة تحقن HTML في خطّاف يظهر **عارياً**
   بلا خطأ ولا سجلّ (بلاغ RD3؛ ومسحٌ بـ`php _tools/rent_hook_markup.php`).
   ولا يُصلَح من داخل الخطّاف بـ`View::on('head')`: التخطيط طبع `emit('head')` قبله. */

/* 1) نشرة الفوتر (`Outreach\Hooks::footer` ⇒ خطّاف footer_links) */
.ox-foot { flex: 1 1 260px; max-width: 380px; display: grid; gap: var(--rt-space-2); }
.ox-foot-l { color: var(--rt-muted); font-size: var(--rt-fs-xs); font-weight: 700; }
.ox-foot-row { display: flex; gap: var(--rt-space-2); align-items: stretch; }
.ox-foot-row input[type="email"] {
    flex: 1 1 auto; min-width: 0;
    min-height: 38px; padding: 0 var(--rt-space-3);
    border: 1px solid var(--rt-line-strong); border-radius: var(--rt-radius-m);
    background: var(--rt-surface); color: var(--rt-text);
    font: inherit; font-size: var(--rt-fs-s);
}
.ox-foot-row input[type="email"]:focus-visible { outline: 2px solid var(--rt-focus); outline-offset: 1px; border-color: var(--rt-primary); }
.ox-foot-row .btn { flex: none; min-height: 38px; }
/* ⚠️ مصيدة الروبوتات: بلا تنسيق كانت **ظاهرة للزبون** في فوتر كل صفحة، ومن يملؤها يُرفَض.
   إخفاءٌ بصريّ يُبقيها في المستند (`display: none` قد يسقطها من بعض المتصفّحات/الإرسال). */
.ox-hp {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 559px) { .ox-foot { max-width: none; } }

/* 2) شريط «أنت تتصفّح كزبون» (`UserAdmin\Impersonate::banner` ⇒ خطّاف after_header).
   نبرة تحذير هادئة: خطّ لون على الحافّة البادئة لا خلفية صارخة. */
.ua-imp {
    border-bottom: 1px solid var(--rt-line);
    border-inline-start: 3px solid var(--rt-warn);
    background: color-mix(in srgb, var(--rt-warn) 9%, var(--rt-surface));
    font-size: var(--rt-fs-s);
}
.ua-imp-in {
    width: 100%; max-width: var(--rt-wrap); margin-inline: auto;
    padding: var(--rt-space-2) var(--rt-space-4);
    display: flex; align-items: center; gap: var(--rt-space-3); flex-wrap: wrap;
}
.ua-imp-txt { min-width: 0; font-weight: 700; }
.ua-imp-form { margin: 0; margin-inline-start: auto; }
.ua-imp-btn {
    min-height: 30px; padding: 0 var(--rt-space-3);
    border: 1px solid var(--rt-line-strong); border-radius: var(--rt-radius-m);
    background: var(--rt-surface); color: var(--rt-text);
    font: inherit; font-size: var(--rt-fs-xs); font-weight: 700; cursor: pointer;
}
.ua-imp-btn:hover { border-color: var(--rt-text); }
.ua-imp-btn:focus-visible { outline: 2px solid var(--rt-focus); outline-offset: 2px; }
