/* ==========================================================================
   static/pages/css/base/mobile.css
   «البلاط الملكي» — تجربة الجوال الكاملة لموقع الإمبراطور  (الإصدار 2)

   الفكرة: بدل واجهة التطبيقات التقليدية (شريط تبويب سفلي + صفوف قوائم)
   صُمّمت تجربة سينمائية فاخرة بالأسود والذهبي:
     • ختم ذهبي عائم (👑) يفتح «البوابة الملكية» بانكشاف دائري من الأسفل
     • ستارة ملكية تنزلق عند الدخول إلى الأقسام والتفاصيل والعودة منها
     • عنوان BUSINESS EMPEROR بسطرين مع لمعان وظهور متدرّج (كما في الكمبيوتر)
     • الدولة في المنتصف على شكل أوسمة دائرية، والفئات كسبائك معدنية
     • الأقسام كبوابات سينمائية متراصّة (Sticky Deck) بدل صفوف القوائم
     • بطاقات عروض كبيرة بسعر عائم، وتفاصيل بصورة كاملة العرض

   - يُحمَّل آخر ملف CSS في index.html (وكل الصفحات التي ترث منه).
   - لا يمس الديسكتوب: كل القواعد داخل @media (max-width: 768px)،
     عدا قواعد الإخفاء الأساسية والـ keyframes في الأعلى.
   - مدخل الأولوية: html body.emp-mobile … (يتغلب على theme-mid / theme-low).
   - السلوك (الختم، البوابة، الستارة…) في js/modules/mobile.js
   ========================================================================== */

/* ---------- عناصر تظهر على الجوال فقط (مخفية افتراضياً على الديسكتوب) ---------- */
.m-seal,
.m-gate,
.m-curtain,
.m-progress,
.m-realm-label,
.hero-orn,
.cur-ico { display: none; }

/* عنوان القائمة الموسعة (الجزء الإنجليزي) — يعمل على كل الشاشات */
.expanded-title .et-en { font-size: 1rem; }

/* ==========================================================================
   الحركات (keyframes) — أسماؤها m-* لتجنّب أي تعارض مع الديسكتوب
   ========================================================================== */
@keyframes m-title-in {
    0%   { opacity: 0; letter-spacing: .34em; filter: blur(12px); transform: translateY(22px) scale(1.07); }
    60%  { opacity: 1; filter: blur(2px); }
    100% { opacity: 1; letter-spacing: .1em; filter: none; transform: none; }
}
@keyframes m-wipe-r {          /* كشف من اليمين إلى اليسار (للنص العربي) */
    from { clip-path: inset(0 0 0 100%); opacity: 0; transform: translateX(14px); }
    to   { clip-path: inset(0 0 0 0);    opacity: 1; transform: none; }
}
@keyframes m-wipe-l {          /* كشف من اليسار إلى اليمين (للنص الإنجليزي) */
    from { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-14px); }
    to   { clip-path: inset(0 0 0 0);    opacity: 1; transform: none; }
}
@keyframes m-fade-up   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes m-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes m-line-grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes m-gem-pop   { 0% { transform: rotate(45deg) scale(0); } 70% { transform: rotate(225deg) scale(1.35); } 100% { transform: rotate(225deg) scale(1); } }
@keyframes m-breathe   { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes m-spin      { to { transform: rotate(360deg); } }
@keyframes m-pulse     { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes m-dust      { from { transform: translateY(0); } to { transform: translateY(-640px); } }
@keyframes m-shine     { 0%, 55% { translate: 0 0; } 100% { translate: var(--shine-x, 500%) 0; } }
@keyframes m-nudge     { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes m-kenburns  { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-2%, -2%, 0); } }
@keyframes m-card-in   { from { opacity: 0; transform: translateY(70px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes m-card-out  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-16px) scale(.95); } }
@keyframes m-reveal    { from { opacity: 0; transform: translateY(54px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes m-rise-in   { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes m-detail-in { from { opacity: 0; transform: translateY(34px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes m-seal-in   { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes m-drop      { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes m-skel      { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes m-curt-r {
    0%        { transform: translateX(101%); }
    38%, 52%  { transform: translateX(0); }
    100%      { transform: translateX(101%); }
}
@keyframes m-curt-l {
    0%        { transform: translateX(-101%); }
    38%, 52%  { transform: translateX(0); }
    100%      { transform: translateX(-101%); }
}
@keyframes m-curt-logo {
    0%, 24%   { opacity: 0; transform: translate(-50%, -50%) scale(.78); }
    42%, 52%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    82%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@media (max-width: 768px) {

/* ==========================================================================
   0) المتغيّرات
   ========================================================================== */
:root {
    --m-top: 64px;
    --m-safe-b: env(safe-area-inset-bottom, 0px);
    --m-gold: #d4af37;
    --m-gold-hi: #f5e7b2;
    --m-gold-lo: #b87c1a;
    --m-ivory: #fff4dc;
    --m-line: rgba(212, 175, 55, 0.32);
    --m-line-soft: rgba(212, 175, 55, 0.16);
    --m-glass: rgba(10, 7, 20, 0.78);
    --m-glass-2: rgba(16, 11, 30, 0.92);
    --m-muted: #cdbf98;
    --m-ease: cubic-bezier(.2, .8, .2, 1);
    --m-metal: linear-gradient(135deg, #fff3c4 0%, #f5e7b2 22%, #d4af37 55%, #b87c1a 100%);
}
/* لون الأجواء حسب الفئة المختارة (ذهبي افتراضياً / فضي / برونزي) */
html body.emp-mobile                 { --m-tint: 34, 22, 6; }
html body.emp-mobile.budget-mid      { --m-tint: 14, 28, 58; }
html body.emp-mobile.budget-low      { --m-tint: 30, 18, 8; }

/* ==========================================================================
   1) الأساسيات + الأجواء السينمائية
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
html body.emp-mobile {
    padding-bottom: calc(118px + var(--m-safe-b));
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
html body.emp-mobile.gate-open { overflow: hidden; }
/* أداء: لا تمويه خلفية على الجوال (يبطّئ التمرير ويكسر position:fixed داخل الأب) */
html body.emp-mobile *,
html body.emp-mobile *::before,
html body.emp-mobile *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html body.emp-mobile .image-bg {
    width: 100%; height: 100%;
    transform: none !important; will-change: auto;
    background-position: 50% 24%;
}
html body.emp-mobile .bg-overlay {
    overflow: hidden;
    background:
        radial-gradient(130% 70% at 50% 0%, rgba(var(--m-tint), .55) 0%, rgba(3, 1, 8, 0) 70%),
        linear-gradient(180deg, rgba(3, 1, 8, .58) 0%, rgba(3, 1, 8, .9) 62%, rgba(3, 1, 8, .96) 100%);
}
/* غبار ذهبي عائم */
html body.emp-mobile .bg-overlay::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: calc(100% + 640px);
    opacity: .75;
    background-repeat: repeat-y;
    background-size: 100% 640px;
    background-image:
        radial-gradient(circle 2px at 14% 12%, rgba(245,231,178,.9), rgba(245,231,178,0)),
        radial-gradient(circle 1.5px at 72% 7%,  rgba(245,231,178,.7), rgba(245,231,178,0)),
        radial-gradient(circle 2.5px at 41% 26%, rgba(212,175,55,.85), rgba(212,175,55,0)),
        radial-gradient(circle 1.5px at 88% 34%, rgba(245,231,178,.7), rgba(245,231,178,0)),
        radial-gradient(circle 2px at 23% 47%,   rgba(212,175,55,.8),  rgba(212,175,55,0)),
        radial-gradient(circle 1.5px at 63% 55%, rgba(245,231,178,.75), rgba(245,231,178,0)),
        radial-gradient(circle 2.5px at 9% 68%,  rgba(245,231,178,.8), rgba(245,231,178,0)),
        radial-gradient(circle 2px at 79% 76%,   rgba(212,175,55,.85), rgba(212,175,55,0)),
        radial-gradient(circle 1.5px at 47% 88%, rgba(245,231,178,.7), rgba(245,231,178,0)),
        radial-gradient(circle 2px at 92% 95%,   rgba(212,175,55,.75), rgba(212,175,55,0));
    animation: m-dust 26s linear infinite;
}
html body.emp-mobile .ui-wrapper { min-height: 100vh; overflow-x: clip; }   /* لا يسمح لأي هالة/حركة بتوسيع الصفحة أفقياً */
html body.emp-mobile input,
html body.emp-mobile select,
html body.emp-mobile textarea { font-size: 16px; }                 /* يمنع تكبير iOS */
html body.emp-mobile img { max-width: 100%; }
html body.emp-mobile ::-webkit-scrollbar { width: 0; height: 0; }

/* شريط تقدّم التمرير (ذهبي رفيع في أعلى الشاشة) */
html body.emp-mobile .m-progress {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    z-index: 1700; pointer-events: none;
    background: var(--m-metal);
    box-shadow: 0 0 10px rgba(212, 175, 55, .8);
    transform-origin: right center;
    transform: scaleX(0);
}

/* ==========================================================================
   2) الشريط العلوي: شفاف فوق المشهد، يصير زجاجياً داكناً عند التمرير
      [العملة] ........ [شعار الأسد في المنتصف] ........ [جرس / تسجيل]
   ========================================================================== */
html body.emp-mobile .navbar {
    position: sticky; top: 0; z-index: 1000;
    display: block;
    height: var(--m-top); min-height: var(--m-top);
    margin: 0; padding: 0; gap: 0;
    background: linear-gradient(180deg, rgba(3, 1, 8, .86) 0%, rgba(3, 1, 8, 0) 100%);
    border: 0; box-shadow: none; animation: none;
    transition: background .4s ease, box-shadow .4s ease;
}
html body.emp-mobile .navbar.is-scrolled {
    background: rgba(5, 3, 12, .95);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .55);
}
html body.emp-mobile .navbar::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .7), transparent);
    opacity: 0; transition: opacity .4s ease;
}
html body.emp-mobile .navbar.is-scrolled::after { opacity: 1; }

/* الشعار في المنتصف مع هالة نابضة */
html body.emp-mobile .navbar-logo {
    position: absolute; left: 50%; top: 0; bottom: 0;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
}
html body.emp-mobile .navbar-logo::before {
    content: '';
    position: absolute; left: 50%; top: 50%;
    width: 86px; height: 86px;
    background: radial-gradient(closest-side, rgba(212, 175, 55, .42), rgba(212, 175, 55, 0));
    animation: m-breathe 4.5s ease-in-out infinite;
    pointer-events: none;
}
html body.emp-mobile .navbar-logo img {
    position: relative;
    height: 48px; max-height: 48px; width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, .6));
    animation: m-fade-down 1.1s var(--m-ease) both;
}
/* النص الاسمي يبقى للقارئات الصوتية فقط (الشعار يحمل الاسم) */
html body.emp-mobile .logo {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* العملة: شريحة زجاجية على الطرف */
html body.emp-mobile .currency-selector-wrapper {
    position: absolute; right: 12px; top: 0; bottom: 0;
    display: flex; align-items: center; margin: 0;
}
html body.emp-mobile .nav-link-currency {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(8, 5, 16, .72);
    border: 1px solid var(--m-line);
    color: var(--m-gold-hi);
    font: 800 .8rem/1 'Cairo', sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
html body.emp-mobile .nav-link-currency .cur-text { display: none; }
html body.emp-mobile .nav-link-currency .cur-ico { display: inline; color: var(--m-gold); font-size: .8rem; }
html body.emp-mobile .nav-link-currency .fa-chevron-down { font-size: .62rem; opacity: .8; }
html body.emp-mobile .currency-dropdown {
    position: fixed;
    top: calc(var(--m-top) + 4px);
    left: 12px; right: 12px;
    margin: 0; padding: 8px; min-width: 0;
    max-height: 60vh; overflow-y: auto;
    border-radius: 22px;
    background: rgba(8, 5, 16, .99);
    border: 1px solid var(--m-line);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .58), 0 24px 50px rgba(0, 0, 0, .6);
    z-index: 1200;
    animation: m-drop .35s var(--m-ease) both;
}
html body.emp-mobile .currency-dropdown li {
    list-style: none; padding: 13px 14px; border-radius: 14px;
    font: 700 .95rem 'Cairo', sans-serif; color: var(--m-ivory);
}
html body.emp-mobile .currency-dropdown li:active { background: rgba(212, 175, 55, .18); }

/* إجراءات الطرف الآخر: جرس / لوحة / تسجيل */
html body.emp-mobile .nav-links {
    position: absolute; left: 12px; top: 0; bottom: 0;
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
    width: auto; margin: 0; padding: 0;
}
html body.emp-mobile .nav-links a::before { display: none; }
html body.emp-mobile .nav-links .m-hide { display: none !important; }
html body.emp-mobile .nav-links a.m-bell,
html body.emp-mobile .nav-links a.m-admin {
    position: relative;
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border-radius: 50%;
    background: rgba(8, 5, 16, .72);
    border: 1px solid var(--m-line);
    color: var(--m-gold-hi);
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
html body.emp-mobile .nav-links a.m-admin .m-label { display: none; }
html body.emp-mobile .nav-links a.m-register {
    flex: 0 0 auto;
    padding: 9px 16px; font-size: .82rem; font-weight: 800; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .3);
}
html body.emp-mobile .notification-badge { top: -3px; right: -3px; }

/* ==========================================================================
   3) الختم الملكي (الزر العائم) + البوابة الملكية (القائمة)
   ========================================================================== */
html body.emp-mobile .m-seal {
    display: block;
    position: fixed; left: 50%; margin-left: -32px;
    bottom: calc(14px + var(--m-safe-b));
    width: 64px; height: 64px; padding: 0;
    border: 0; background: none; cursor: pointer;
    z-index: 1600;
    -webkit-tap-highlight-color: transparent;
    animation: m-seal-in 1s 1.3s var(--m-ease) both;
    transition: right .5s var(--m-ease), left .5s var(--m-ease), bottom .5s var(--m-ease), width .4s, height .4s, margin .4s;
}
html body.emp-mobile .m-seal:active { scale: .92; }
html body.emp-mobile .m-seal::after {                 /* موجة نبض */
    content: '';
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .65);
    animation: m-pulse 3s ease-out infinite;
    pointer-events: none;
}
html body.emp-mobile .m-seal .ms-ring {               /* حلقة ذهبية دوّارة */
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, #b87c1a, #fff3c4, #d4af37, #5c3f0a, #f5e7b2, #b87c1a);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: m-spin 5s linear infinite;
}
html body.emp-mobile .m-seal .ms-core {
    position: absolute; inset: 5px; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 25%, #2d2142, #0a0614 72%);
    box-shadow: inset 0 0 14px rgba(212, 175, 55, .35), 0 10px 26px rgba(0, 0, 0, .7), 0 0 30px rgba(212, 175, 55, .35);
}
html body.emp-mobile .m-seal .ms-core i {
    grid-area: 1 / 1;
    font-size: 1.45rem;
    background: var(--m-metal);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    transition: transform .55s var(--m-ease), opacity .3s ease;
}
html body.emp-mobile .m-seal .ms-ico-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
html body.emp-mobile.gate-open .m-seal .ms-ico-open  { opacity: 0; transform: rotate(90deg) scale(.5); }
html body.emp-mobile.gate-open .m-seal .ms-ico-close { opacity: 1; transform: none; }
html body.emp-mobile.gate-open .m-seal::after { animation: none; opacity: 0; }
html body.emp-mobile.kb-open .m-seal { display: none; }

/* البوابة: انكشاف دائري ينطلق من الختم */
html body.emp-mobile .m-gate {
    display: block;
    position: fixed; inset: 0; z-index: 1500;
    visibility: hidden; pointer-events: none;
    clip-path: circle(0px at 50% calc(100% - 46px - var(--m-safe-b)));
    transition: clip-path .8s var(--m-ease), visibility 0s linear .8s;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(212, 175, 55, .2), rgba(212, 175, 55, 0) 62%),
        repeating-linear-gradient(45deg,  rgba(212, 175, 55, .05) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-45deg, rgba(212, 175, 55, .05) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, #0b0615 0%, #04020a 100%);
    overflow: hidden;
}
html body.emp-mobile.gate-open .m-gate {
    visibility: visible; pointer-events: auto;
    clip-path: circle(150vmax at 50% calc(100% - 46px - var(--m-safe-b)));
    transition: clip-path .95s var(--m-ease), visibility 0s;
}
html body.emp-mobile .m-gate-inner {
    position: relative; height: 100%; overflow-y: auto;
    display: flex; flex-direction: column;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(118px + var(--m-safe-b));
    -webkit-overflow-scrolling: touch;
}
html body.emp-mobile .m-gate-brand { text-align: center; }
html body.emp-mobile .m-gate-brand img {
    height: 88px; width: auto;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, .55));
}
html body.emp-mobile .mg-orn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 180px; margin: 4px auto 0; }
html body.emp-mobile .mg-orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--m-gold)); }
html body.emp-mobile .mg-orn i:last-child { background: linear-gradient(270deg, transparent, var(--m-gold)); }
html body.emp-mobile .mg-orn b { width: 7px; height: 7px; background: var(--m-metal); transform: rotate(45deg); box-shadow: 0 0 10px rgba(212, 175, 55, .8); }
html body.emp-mobile .m-gate-brand small {
    display: block; margin-top: 9px;
    font: 500 .6rem 'Cinzel', serif; letter-spacing: .34em; color: var(--m-gold);
}
html body.emp-mobile .m-gate-links { display: flex; flex-direction: column; margin-top: 20px; counter-reset: gl; }
html body.emp-mobile .m-gate-link {
    --d: 0;
    counter-increment: gl;
    display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 10px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--m-line-soft);
    color: var(--m-ivory); text-decoration: none;
    opacity: 0; transform: translateY(28px);
    transition: opacity .55s var(--m-ease), transform .55s var(--m-ease), color .3s ease;
    transition-delay: 0s;
}
html body.emp-mobile.gate-open .m-gate-link {
    opacity: 1; transform: none;
    transition-delay: calc(var(--d) * 70ms + 280ms), calc(var(--d) * 70ms + 280ms), 0s;
}
html body.emp-mobile .m-gate-link:nth-child(1) { --d: 1; }
html body.emp-mobile .m-gate-link:nth-child(2) { --d: 2; }
html body.emp-mobile .m-gate-link:nth-child(3) { --d: 3; }
html body.emp-mobile .m-gate-link:nth-child(4) { --d: 4; }
html body.emp-mobile .m-gate-link:nth-child(5) { --d: 5; }
html body.emp-mobile .m-gate-link:nth-child(6) { --d: 6; }
html body.emp-mobile .m-gate-link:nth-child(7) { --d: 7; }
html body.emp-mobile .m-gate-link .gl-n::before {
    content: counter(gl, decimal-leading-zero);
    font: 700 .78rem 'Cinzel', serif; letter-spacing: .1em; color: var(--m-gold);
}
html body.emp-mobile .m-gate-link .gl-t b { display: block; font: 800 1.5rem/1.2 'Cairo', sans-serif; }
html body.emp-mobile .m-gate-link .gl-t em {
    display: block; margin-top: 1px; font: 500 .62rem 'Cinzel', serif; font-style: normal;
    letter-spacing: .3em; color: var(--m-muted);
}
html body.emp-mobile .m-gate-link > i { color: var(--m-gold); font-size: .9rem; transition: transform .3s var(--m-ease); }
html body.emp-mobile .m-gate-link:active > i { transform: translateX(-6px); }
html body.emp-mobile .m-gate-link:active .gl-t b { color: var(--m-gold-hi); }
html body.emp-mobile .m-gate-link.active .gl-t b { color: var(--m-gold-hi); text-shadow: 0 0 18px rgba(212, 175, 55, .5); }
html body.emp-mobile .m-gate-link.active .gl-n::after {
    content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
    border-radius: 50%; background: var(--m-gold); box-shadow: 0 0 8px var(--m-gold);
}
html body.emp-mobile .m-gate-link--add {
    margin-top: 12px; padding: 14px;
    border: 1px solid var(--m-line); border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, .2), rgba(212, 175, 55, .04));
}
html body.emp-mobile .m-gate-foot {
    margin-top: auto; padding-top: 26px; text-align: center;
    opacity: 0; transition: opacity .6s ease; transition-delay: 0s;
}
html body.emp-mobile.gate-open .m-gate-foot { opacity: 1; transition-delay: .9s; }
html body.emp-mobile .m-gate-foot p { margin: 0 0 8px; font-size: .72rem; color: var(--m-gold-hi); opacity: .85; }
html body.emp-mobile .m-gate-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
html body.emp-mobile .m-gate-foot a { font-size: .76rem; color: var(--m-muted); text-decoration: none; }

/* الستارة الملكية: انتقال سينمائي بين الرئيسية والأقسام والتفاصيل */
html body.emp-mobile .m-curtain {
    display: block;
    position: fixed; inset: 0; z-index: 1400;
    visibility: hidden; pointer-events: none; overflow: hidden;
}
html body.emp-mobile .m-curtain.run { visibility: visible; }
html body.emp-mobile .m-curtain .mc-panel {
    position: absolute; top: 0; bottom: 0; width: 51%;
    background:
        radial-gradient(100% 50% at 50% 50%, rgba(212, 175, 55, .16), rgba(212, 175, 55, 0) 70%),
        linear-gradient(180deg, #0b0716, #04020a 55%, #0b0716);
}
html body.emp-mobile .m-curtain .mc-r { right: 0; transform: translateX(101%); border-left: 1px solid rgba(245, 231, 178, .7); box-shadow: -12px 0 30px rgba(212, 175, 55, .25); }
html body.emp-mobile .m-curtain .mc-l { left: 0;  transform: translateX(-101%); border-right: 1px solid rgba(245, 231, 178, .7); box-shadow: 12px 0 30px rgba(212, 175, 55, .25); }
html body.emp-mobile .m-curtain.run .mc-r { animation: m-curt-r .85s cubic-bezier(.7, 0, .2, 1) both; }
html body.emp-mobile .m-curtain.run .mc-l { animation: m-curt-l .85s cubic-bezier(.7, 0, .2, 1) both; }
html body.emp-mobile .m-curtain .mc-logo {
    position: absolute; left: 50%; top: 50%;
    height: 120px; width: auto; opacity: 0;
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, .7));
    transform: translate(-50%, -50%);
}
html body.emp-mobile .m-curtain.run .mc-logo { animation: m-curt-logo .85s ease both; }

/* ==========================================================================
   4) الرئيسية — الترحيب: عنوان بسطرين + لمعان + ظهور متدرّج
   ========================================================================== */
html body.emp-mobile .hero {
    position: relative; isolation: isolate;
    margin: 6px 16px 0; padding: 10px 0 0;
    text-align: center; animation: none;
}
html body.emp-mobile .hero::before {                  /* هالة ذهبية خلف العنوان */
    content: '';
    position: absolute; z-index: -1; left: 50%; top: 52%;
    width: 100%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(212, 175, 55, .26), rgba(212, 175, 55, 0));
    animation: m-breathe 6s ease-in-out infinite;
    pointer-events: none;
}
html body.emp-mobile .hero::after,
html body.emp-mobile .cards-section::after { display: none; }

html body.emp-mobile .hero-orn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: min(250px, 72%); margin: 0 auto 14px;
}
html body.emp-mobile .hero-orn i {
    flex: 1; height: 1px; transform: scaleX(0);
    animation: m-line-grow 1.2s .45s var(--m-ease) forwards;
}
html body.emp-mobile .hero-orn i:first-child { background: linear-gradient(270deg, transparent, var(--m-gold)); transform-origin: left center; }
html body.emp-mobile .hero-orn i:last-child  { background: linear-gradient(90deg, transparent, var(--m-gold));  transform-origin: right center; }
html body.emp-mobile .hero-orn b {
    width: 9px; height: 9px; background: var(--m-metal);
    box-shadow: 0 0 14px rgba(212, 175, 55, .9);
    transform: rotate(45deg) scale(0);
    animation: m-gem-pop .9s .3s var(--m-ease) forwards;
}

html body.emp-mobile .hero h2 {
    margin: 0; padding-left: .1em;
    font-size: clamp(2rem, 11.4vw, 3.15rem);
    font-weight: 900; line-height: 1.1;
    letter-spacing: .1em; word-spacing: 100vw;       /* يفرض سطرين: BUSINESS / EMPEROR */
    text-align: center;
    animation: m-title-in 1.7s var(--m-ease) both, silverShimmer 6s ease-in-out 1.7s infinite;
}
html body.emp-mobile.budget-mid .hero h2 { animation: m-title-in 1.7s var(--m-ease) both, diamondShimmer 4s linear 1.7s infinite; }
html body.emp-mobile.budget-low .hero h2 { animation: m-title-in 1.7s var(--m-ease) both, platinumShimmer 6s ease-in-out 1.7s infinite; }

html body.emp-mobile .hero .sub {
    max-width: 360px; margin: 16px auto 0; padding: 0 4px;
    font-size: 1rem; letter-spacing: 0; font-weight: 400; text-shadow: none;
}
html body.emp-mobile .hero .sub .sub-ar {
    display: block;
    font: 700 1.08rem/1.8 'Cairo', sans-serif;
    color: #fff6dc;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .95), 0 0 24px rgba(212, 175, 55, .4);
    animation: m-wipe-r 1.3s .85s var(--m-ease) both;
}
html body.emp-mobile .hero .sub .sub-sep { display: none; }
html body.emp-mobile .hero .sub .sub-en {
    display: block; margin-top: 4px; direction: ltr;
    font: 500 .78rem/1.85 'Cinzel', serif; letter-spacing: .12em;
    color: var(--m-gold-hi);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
    text-wrap: balance;
    animation: m-wipe-l 1.3s 1.2s var(--m-ease) both;
}

/* ---- عنوان اختيار الدولة ---- */
html body.emp-mobile .m-realm-label {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 24px 24px 0;
    color: var(--m-gold-hi); font: 700 .82rem 'Cairo', sans-serif;
    animation: m-fade-up .9s 1.35s var(--m-ease) both;
}
html body.emp-mobile .m-realm-label::before,
html body.emp-mobile .m-realm-label::after {
    content: ''; flex: 1; max-width: 64px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--m-line));
}
html body.emp-mobile .m-realm-label::after { background: linear-gradient(270deg, transparent, var(--m-line)); }
html body.emp-mobile .m-realm-label em {
    font: 500 .58rem 'Cinzel', serif; font-style: normal; letter-spacing: .24em; opacity: .7;
}

/* ---- الدولة في المنتصف: أوسمة دائرية (دولة واحدة أو اثنتان أو أكثر — الكل في الوسط) ---- */
html body.emp-mobile .main-countries-bar {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 12px 16px; margin: 14px 16px 0; overflow: visible;
    animation: m-fade-up .9s 1.5s var(--m-ease) both;
}
html body.emp-mobile .main-countries-bar .country-btn,
html body.emp-mobile .main-countries-bar .country-btn:hover,
html body.emp-mobile .main-countries-bar .country-btn.active {
    flex: 0 0 auto; width: 92px; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 6px 0 2px; margin: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    color: var(--m-muted);
    font: 700 .92rem/1.2 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
html body.emp-mobile .main-countries-bar .country-btn .cb-flag {
    position: relative;
    display: grid; place-items: center;
    width: 66px; height: 66px; border-radius: 50%;
    font-size: 2.1rem; line-height: 1;
    background: radial-gradient(circle at 32% 24%, #3b2e55 0%, #130c24 62%, #07040f 100%);
    box-shadow: inset 0 0 0 1px var(--m-line), 0 8px 22px rgba(0, 0, 0, .55);
    transition: transform .45s var(--m-ease), box-shadow .45s ease;
}
html body.emp-mobile .main-countries-bar .country-btn .cb-flag:empty::after {
    content: attr(data-code); font: 700 1rem 'Cinzel', serif; color: var(--m-gold-hi);
}
html body.emp-mobile .main-countries-bar .country-btn .cb-flag::before {      /* حلقة ذهبية للمختار */
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(from 0deg, #b87c1a, #fff3c4, #d4af37, #5c3f0a, #f5e7b2, #b87c1a);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
    opacity: 0; transform: scale(.85);
    transition: opacity .4s ease, transform .5s var(--m-ease);
    animation: m-spin 7s linear infinite paused;
}
html body.emp-mobile .main-countries-bar .country-btn.active .cb-flag::before { opacity: 1; transform: scale(1); animation-play-state: running; }
html body.emp-mobile .main-countries-bar .country-btn.active .cb-flag {
    transform: translateY(-3px) scale(1.07);
    box-shadow: inset 0 0 0 1px rgba(255, 243, 196, .5), 0 0 0 6px rgba(212, 175, 55, .1), 0 0 32px rgba(212, 175, 55, .5), 0 14px 24px rgba(0, 0, 0, .6);
}
html body.emp-mobile .main-countries-bar .country-btn:active .cb-flag { transform: scale(.93); }
html body.emp-mobile .main-countries-bar .country-btn.active { color: var(--m-gold-hi); }
html body.emp-mobile .main-countries-bar .country-btn.active .cb-name::after {
    content: ''; display: block; width: 20px; height: 2px; margin: 6px auto 0;
    border-radius: 2px; background: var(--m-metal); box-shadow: 0 0 8px rgba(212, 175, 55, .8);
}

/* ---- الفئات (برونزي / فضي / ذهبي) كسبائك معدنية ---- */
html body.emp-mobile .class-buttons {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    width: auto; margin: 26px 18px 4px; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    animation: m-fade-up .9s 1.65s var(--m-ease) both;
}
html body.emp-mobile .class-btn {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-width: 0; height: 66px; padding: 0;
    font: 800 .94rem/1 'Cairo', sans-serif; letter-spacing: 0;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22);
    opacity: 1; transform: none;
    filter: saturate(.5) brightness(.6);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .45s var(--m-ease), filter .4s ease, box-shadow .4s ease;
    -webkit-tap-highlight-color: transparent;
}
html body.emp-mobile .class-btn::before {
    font: 900 .98rem/1 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
}
html body.emp-mobile .class-bronze::before { content: '\f5a2'; }
html body.emp-mobile .class-silver::before { content: '\f559'; }
html body.emp-mobile .class-gold::before   { content: '\f521'; }
html body.emp-mobile .class-btn::after {                /* لمعة معدنية تمر على الفئة المختارة */
    content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 42%; --shine-x: 476%;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0));
    transform: skewX(-18deg);
    animation: m-shine 3.4s ease-in-out infinite paused;
    pointer-events: none;
}
html body.emp-mobile .class-btn.active {
    transform: translateY(-4px) scale(1.06);
    filter: none;
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 26px var(--m-glow, rgba(212, 175, 55, .7)), 0 16px 24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
html body.emp-mobile .class-btn.active::after { animation-play-state: running; }
html body.emp-mobile .class-btn:active { scale: .95; }
html body.emp-mobile .class-bronze { --m-glow: rgba(224, 142, 74, .75); }
html body.emp-mobile .class-silver { --m-glow: rgba(214, 222, 242, .65); }
html body.emp-mobile .class-gold   { --m-glow: rgba(212, 175, 55, .8); }
html body.emp-mobile .control-section {
    background: none; border: none; box-shadow: none; border-radius: 0;
    padding: 0; margin: 0; width: 100%; display: block;
}
html body.emp-mobile #classButtonsExpanded { margin: 14px 18px 8px; animation: none; }
html body.emp-mobile #classButtonsExpanded .class-btn { height: 56px; }

/* ==========================================================================
   5) بوابات الأقسام — بطاقات سينمائية متراصّة (Sticky Deck)
   ========================================================================== */
html body.emp-mobile .cards-section { width: 100%; box-sizing: border-box; max-width: 560px; margin: 0 auto; padding: 26px 14px 0; }
html body.emp-mobile .cards-grid { display: block; margin: 0; counter-reset: m-gate; }

html body.emp-mobile .card {
    --k: 0;
    counter-increment: m-gate;
    position: sticky; top: calc(var(--m-top) + 6px + var(--k) * 14px);
    isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "ico ." "tt tt" "ds ds" "ct go";
    align-content: end; row-gap: 6px; align-items: center;
    min-height: clamp(310px, 46vh, 390px);
    margin: 0 0 16px; padding: 18px;
    text-align: right;
    border-radius: 28px;
    background: #0b0716;
    border: 1px solid var(--m-line);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 243, 196, .28);
    opacity: 1; transform: none;
    animation: m-card-in .95s var(--m-ease) both;
    animation-delay: calc(var(--k) * .13s);
    transition: border-color .3s ease;
}
html body.emp-mobile .card:nth-child(1) { --k: 0; }
html body.emp-mobile .card:nth-child(2) { --k: 1; }
html body.emp-mobile .card:nth-child(3) { --k: 2; }
html body.emp-mobile .card.card-fade-out { animation: m-card-out .35s ease forwards; }
html body.emp-mobile .card:hover { transform: none; background: #0b0716; box-shadow: 0 22px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 243, 196, .28); }
html body.emp-mobile .card:active { scale: .985; border-color: var(--m-gold-hi); }

/* خلفية البطاقة: صورة/فن + تعتيم متدرّج */
html body.emp-mobile .card::before {
    content: '';
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    animation: m-kenburns 20s ease-in-out infinite alternate;
}
html body.emp-mobile .card::after {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 3, 12, .15) 0%, rgba(5, 3, 12, .55) 48%, rgba(5, 3, 12, .96) 100%),
        linear-gradient(90deg, rgba(212, 175, 55, .12), transparent 45%);
}
html body.emp-mobile .card:nth-child(1)::before {
    background-image: url("../../images/background.d74a47f96372.jpg");
    background-position: 8% 92%;
}
html body.emp-mobile .card:nth-child(2)::before {
    content: '\f21c';
    font: 900 13rem/1 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    color: rgba(212, 175, 55, .13);
    display: grid; place-items: start end; text-align: left;
    padding: 44px 6px 0 0;
    background:
        radial-gradient(70% 55% at 22% 38%, rgba(184, 124, 26, .45), rgba(184, 124, 26, 0) 70%),
        repeating-linear-gradient(115deg, transparent 0 20px, rgba(212, 175, 55, .07) 20px 22px),
        linear-gradient(135deg, #1d1109 0%, #2c180a 42%, #0b0716 100%);
}
html body.emp-mobile .card:nth-child(3)::before {
    background-image: url("../../images/background-commercial.c30085259635.jpg");
    background-position: 62% 50%;
}

html body.emp-mobile .card .card-ico {
    grid-area: ico; justify-self: start; align-self: start;
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(8, 5, 16, .62);
    border: 1px solid var(--m-line);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, .08), inset 0 0 16px rgba(212, 175, 55, .22);
}
html body.emp-mobile .card .card-ico i {
    margin: 0; font-size: 1.4rem;
    background: var(--m-metal);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent; filter: none;
}
html body.emp-mobile .card h3 {
    grid-area: tt; margin: 8px 0 0;
    font: 800 2.2rem/1.15 'Cairo', sans-serif; letter-spacing: 0;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .95), 0 0 26px rgba(212, 175, 55, .28);
}
html body.emp-mobile .card h3::before {                  /* الرقم التسلسلي 01 · 02 · 03 */
    content: counter(m-gate, decimal-leading-zero);
    display: block; margin-bottom: 2px;
    font: 900 .8rem/1 'Cinzel', serif; letter-spacing: .34em;
    color: var(--m-gold);
}
html body.emp-mobile .card h3 small {
    display: block; margin-top: 4px;
    font: 500 .66rem/1.4 'Cinzel', serif; letter-spacing: .3em;
    color: var(--m-gold-hi); text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
html body.emp-mobile .card p {
    grid-area: ds; margin: 4px 0 0; max-width: 32ch;
    font: 500 .88rem/1.7 'Cairo', sans-serif; color: #e8dcba;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .95);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body.emp-mobile .card .card-count {
    grid-area: ct; justify-self: start; align-self: center;
    margin: 10px 0 0 !important; padding: 5px 13px;
    font-size: .78rem !important; font-weight: 700;
    color: var(--m-gold-hi) !important;
    border-radius: 999px;
    background: rgba(212, 175, 55, .16); border: 1px solid var(--m-line);
}
html body.emp-mobile .card .card-category-image { display: none; }
html body.emp-mobile .card .btn-emp,
html body.emp-mobile .card .btn-emp:hover {
    grid-area: go; justify-self: end; margin: 8px 0 0; padding: 0;
    display: grid; place-items: center;
    width: 54px; height: 54px; border-radius: 50%;
    font-size: 0; line-height: 0;
    background: var(--m-metal); border: 0; text-shadow: none;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, .16), 0 0 26px rgba(212, 175, 55, .5);
    transform: none;
}
html body.emp-mobile .card .btn-emp i {
    margin: 0; font-size: 1.15rem;
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: #1a1205; -webkit-text-fill-color: #1a1205; filter: none;
    animation: m-nudge 1.8s ease-in-out infinite;
}

/* ==========================================================================
   6) العرض الموسّع (قوائم العروض)
   ========================================================================== */
html body.emp-mobile .expanded-view {
    max-width: none; margin: 0; padding: 0 0 24px;
    transform: translateY(30px);
    transition: opacity .6s var(--m-ease), transform .7s var(--m-ease);
}
html body.emp-mobile .expanded-view.visible { transform: none; }
html body.emp-mobile .expanded-header {
    position: sticky; top: var(--m-top); z-index: 900;
    display: flex; align-items: center; justify-content: flex-start;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(4, 2, 10, .97), rgba(4, 2, 10, .82));
    border-bottom: 1px solid var(--m-line-soft);
}
html body.emp-mobile .back-btn,
html body.emp-mobile .back-btn:hover {
    padding: 8px 16px 8px 14px; font-size: .86rem; font-weight: 700; border-radius: 999px;
    color: var(--m-gold-hi); text-shadow: none;
    background: rgba(212, 175, 55, .1); border: 1px solid var(--m-line);
    box-shadow: none; transform: none;
}
html body.emp-mobile .back-btn:active { scale: .94; background: rgba(212, 175, 55, .28); }
html body.emp-mobile .expanded-title-wrapper {
    position: relative;
    margin: 16px 18px 6px; padding: 0; width: auto; max-width: none;
    text-align: right; border: 0; border-radius: 0;
    background: none !important;
}
html body.emp-mobile .expanded-title-wrapper::after {
    content: ''; display: block; width: 60px; height: 2px; margin-top: 12px;
    border-radius: 2px; background: var(--m-metal); box-shadow: 0 0 10px rgba(212, 175, 55, .6);
    transform-origin: right center; animation: m-line-grow .9s .35s var(--m-ease) both;
}
html body.emp-mobile .expanded-title {
    display: block; font: 800 1.75rem/1.3 'Cairo', sans-serif; letter-spacing: 0;
    animation: m-wipe-r 1s var(--m-ease) both, goldShimmer 8s ease-in-out 1s infinite;
}
html body.emp-mobile.budget-mid .expanded-title { animation: m-wipe-r 1s var(--m-ease) both, diamondShimmer 4s linear 1s infinite; }
html body.emp-mobile.budget-low .expanded-title { animation: m-wipe-r 1s var(--m-ease) both, platinumShimmer 6s ease-in-out 1s infinite; }
html body.emp-mobile .expanded-title .et-sep { display: none; }
html body.emp-mobile .expanded-title .et-en {
    display: block; margin-top: 2px; font: 500 .62rem/1.4 'Cinzel', serif !important;
    letter-spacing: .3em; text-align: right; opacity: .9;
}
html body.emp-mobile .expanded-layout,
html body.emp-mobile .expanded-main { display: block; width: 100%; padding: 0; }

/* المدن: شرائح أفقية قابلة للسحب مع تلاشي الأطراف */
html body.emp-mobile .cities-bar {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    gap: 8px; margin: 8px 0; padding: 4px 18px 8px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
html body.emp-mobile .control-section .cities-bar { margin: 8px 0; width: 100%; }
html body.emp-mobile .city-btn,
html body.emp-mobile .city-btn:hover {
    flex: 0 0 auto; scroll-snap-align: center;
    padding: 9px 19px; font: 600 .88rem 'Cairo', sans-serif; letter-spacing: 0; white-space: nowrap;
    border-radius: 999px;
    background: rgba(14, 10, 26, .88);
    border: 1px solid var(--m-line-soft);
    color: #e9e2c7; text-shadow: none;
    transform: none; box-shadow: none;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
html body.emp-mobile .city-btn.active,
html body.emp-mobile .city-btn.active:hover {
    background: var(--m-metal);
    color: #1a1205; font-weight: 800; text-shadow: none;
    border-color: transparent; box-shadow: 0 4px 18px rgba(212, 175, 55, .45);
}

/* إيجار / بيع */
html body.emp-mobile .rent-sale-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    margin: 8px 18px; padding: 4px;
    background: rgba(8, 5, 16, .85);
    border: 1px solid var(--m-line-soft); border-radius: 999px;
}
html body.emp-mobile .rent-sale-btn,
html body.emp-mobile .rent-sale-btn:hover {
    padding: 10px 8px; font: 700 .95rem 'Cairo', sans-serif; letter-spacing: 0;
    border: 0; background: transparent; border-radius: 999px;
    box-shadow: none; transform: none; color: var(--m-muted);
    transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
html body.emp-mobile .rent-sale-btn.active,
html body.emp-mobile .rent-sale-btn.active:hover {
    background: var(--m-metal); color: #1a1205; font-weight: 800;
    box-shadow: 0 4px 14px rgba(212, 175, 55, .4);
}

/* فئات العقارات: شرائح أفقية */
html body.emp-mobile .realestate-categories-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; margin: 0; padding: 4px 18px 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
html body.emp-mobile .realestate-category-card {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px; text-align: right;
    background: rgba(14, 10, 26, .88); border: 1px solid var(--m-line-soft);
    transform: none; box-shadow: none;
}
html body.emp-mobile .realestate-category-card:hover { transform: none; box-shadow: none; }
html body.emp-mobile .realestate-category-card i { font-size: 1rem; margin: 0; }
html body.emp-mobile .realestate-category-card h4 { font-size: .88rem; white-space: nowrap; margin: 0; }
html body.emp-mobile .realestate-category-card p { display: none; }
html body.emp-mobile .realestate-category-card.active {
    background: rgba(212, 175, 55, .24); border-color: var(--m-gold);
    transform: none; box-shadow: 0 0 14px rgba(212, 175, 55, .4);
}
html body.emp-mobile .realestate-category-card.disabled-category { opacity: .45 !important; }

/* ---------- الفلاتر ---------- */
html body.emp-mobile .filters-panel {
    margin: 10px 14px; padding: 14px; gap: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 16, 40, .94), rgba(10, 7, 20, .94));
    border: 1px solid var(--m-line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 243, 196, .08);
}
html body.emp-mobile .filters-panel .primary-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end;
}
html body.emp-mobile .filters-panel .primary-row .filter-group { flex: none; min-width: 0; margin: 0; }
html body.emp-mobile .filters-panel .primary-row .filter-group:last-of-type { grid-column: 1 / -1; }
html body.emp-mobile .filters-panel .btn-all { grid-column: 1 / -1; height: 46px; min-width: 0; }
html body.emp-mobile .filters-panel .primary-row select,
html body.emp-mobile .filter-group select,
html body.emp-mobile .filter-group input {
    height: 46px; padding: 0 14px; border-radius: 15px; font-size: 16px;
    background-color: rgba(4, 2, 10, .75);
}
html body.emp-mobile .filter-group select { padding-right: 14px; padding-left: 34px; }
html body.emp-mobile .filter-group label { font-size: .8rem; margin-bottom: 5px; color: var(--m-gold-hi); }
html body.emp-mobile .filters-panel .btn-extra { height: 46px; padding: 0 14px; border-radius: 15px; font-size: .92rem; }
html body.emp-mobile #toggleCarExtraFiltersBtn { margin-top: 0; }
html body.emp-mobile .filters-panel .extra-content { padding-top: 12px; }
html body.emp-mobile .filters-panel .extra-content.show { animation: m-fade-up .5s var(--m-ease) both; }
html body.emp-mobile .range-vertical .range-row input {
    height: 46px; padding: 0 8px; border-radius: 15px; font-size: 16px;
}
html body.emp-mobile .range-vertical .range-sep { font-size: 1rem; padding: 0; }
html body.emp-mobile .checkbox-group { gap: 8px; }
html body.emp-mobile .checkbox-group label {
    padding: 9px 13px; border-radius: 13px; font-size: .85rem;
    background: rgba(0, 0, 0, .4); border: 1px solid var(--m-line-soft);
}
html body.emp-mobile .filter-buttons { gap: 10px; margin-top: 12px; }
html body.emp-mobile .filter-btn { height: 46px; border-radius: 15px; font-size: .92rem; }
html body.emp-mobile .select2-container--default .select2-selection--single {
    min-height: 46px; border-radius: 15px !important; padding: 0 12px !important;
}
html body.emp-mobile .select2-dropdown { border-radius: 15px !important; }

/* ==========================================================================
   7) بطاقات العروض — صورة كبيرة وسعر ذهبي عائم على حافة الصورة
   ========================================================================== */
html body.emp-mobile .realestate-items-grid,
html body.emp-mobile .products-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin: 12px 14px 0;
}
html body.emp-mobile .realestate-item-card,
html body.emp-mobile .card-item {
    position: relative;
    display: flex; flex-direction: column;
    padding: 0; text-align: right; overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(24, 17, 42, .95), rgba(9, 6, 18, .97));
    border: 1px solid var(--m-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 243, 196, .12);
    transform: none;
    animation: m-rise-in .8s var(--m-ease) both;
}
html body.emp-mobile .realestate-item-card:hover,
html body.emp-mobile .card-item:hover { transform: none; }
html body.emp-mobile .featured-card::before { display: none; }          /* إطار الإنستغرام الملوّن لا يليق بالذهب */
html body.emp-mobile .realestate-item-card.featured-card {
    border: 1px solid rgba(245, 231, 178, .7);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .3), 0 20px 44px rgba(212, 175, 55, .16);
}
@supports (animation-timeline: view()) {
    html body.emp-mobile .realestate-item-card {
        animation: m-reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 42%;
    }
}
html body.emp-mobile .realestate-item-card .card-image-wrapper { overflow: hidden; background: #000; }
html body.emp-mobile .realestate-item-card .card-image-wrapper::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
    background: linear-gradient(180deg, rgba(9, 6, 18, 0), rgba(9, 6, 18, .96));
    pointer-events: none;
}
html body.emp-mobile .realestate-item-card .card-image-wrapper > img:first-child {
    display: block; width: 100%; height: auto !important;
    aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0;
}
html body.emp-mobile .realestate-item-card > div:last-child {
    display: flex; flex-direction: column;
    padding: 0 18px 18px !important;
}
html body.emp-mobile .realestate-item-card .price {                /* السعر: شارة ذهبية على حافة الصورة */
    order: -1; align-self: flex-start; position: relative; z-index: 3;
    margin: -24px 0 10px;
    padding: 7px 18px; border-radius: 999px;
    background: var(--m-metal); color: #1a1205;
    font: 900 1.12rem/1.3 'Cairo', sans-serif; text-shadow: none;
    box-shadow: 0 0 0 4px rgba(9, 6, 18, .95), 0 10px 24px rgba(0, 0, 0, .55), 0 0 26px rgba(212, 175, 55, .35);
}
html body.emp-mobile .realestate-item-card h4 {
    font: 800 1.18rem/1.45 'Cairo', sans-serif; color: var(--m-ivory); margin: 0 0 2px !important;
}
html body.emp-mobile .realestate-item-card p {
    font-size: .82rem !important; color: var(--m-muted); margin: 0 0 6px !important;
}
html body.emp-mobile .realestate-item-card > div:last-child > p::before {
    content: '\f3c5'; font: 900 .8rem 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    color: var(--m-gold); margin-left: 7px;
}
html body.emp-mobile .realestate-item-card .quick-info {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    gap: 6px; margin: 2px 0 10px; scrollbar-width: none;
}
html body.emp-mobile .realestate-item-card .quick-info span {
    flex: 0 0 auto; padding: 5px 12px; font-size: .78rem; border-radius: 999px;
    background: rgba(212, 175, 55, .1); border: 1px solid var(--m-line-soft); color: #f1e6c4;
}
html body.emp-mobile .realestate-item-card .re-rep {
    justify-content: flex-start !important; gap: 8px !important; margin-bottom: 6px !important;
}
html body.emp-mobile .realestate-item-card .re-owner { font-size: .8rem !important; margin-top: 2px !important; }
html body.emp-mobile .realestate-item-card .re-stats {
    flex-direction: row !important; flex-wrap: wrap; gap: 4px 14px !important;
    margin-top: 8px !important; font-size: .72rem !important;
}
html body.emp-mobile .realestate-item-card .btn-detail,
html body.emp-mobile .realestate-item-card .btn-detail:hover {
    position: relative; overflow: hidden;
    width: 100% !important; margin-top: 14px !important;
    padding: 14px 16px !important; font: 800 .98rem 'Cairo', sans-serif !important;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 17px;
    background: var(--m-metal); color: #1a1205 !important; text-shadow: none;
    box-shadow: 0 12px 26px rgba(212, 175, 55, .3);
    transform: none;
}
html body.emp-mobile .realestate-item-card .btn-detail::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 40%; --shine-x: 500%;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0));
    transform: skewX(-18deg); animation: m-shine 4s ease-in-out 3; pointer-events: none;
}
html body.emp-mobile .realestate-item-card .btn-detail:active::after { animation: m-shine 1.6s ease-in-out 1; }
html body.emp-mobile .realestate-item-card .btn-detail:active { scale: .97; }
html body.emp-mobile .featured-badge,
html body.emp-mobile .featured-badge:hover {
    top: 14px; right: auto; left: 14px; z-index: 4;
    padding: 6px 13px; font: 800 .74rem 'Cairo', sans-serif; border-radius: 999px;
    background: var(--m-metal); color: #1a1205; text-shadow: none; border: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 16px rgba(212, 175, 55, .5); animation: none;
}
html body.emp-mobile .owner-badge { top: 10px; left: 10px; }
html body.emp-mobile .featured-badge::before { display: none; }
html body.emp-mobile .skeleton-grid { grid-template-columns: 1fr; gap: 20px; }
html body.emp-mobile .skeleton-card { border-radius: 28px; border-color: var(--m-line-soft); }
html body.emp-mobile .skeleton-image {
    height: auto; aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #1b1430 25%, #2e2348 50%, #1b1430 75%); background-size: 200% 100%;
    animation: m-skel 1.6s linear infinite;
}

/* ==========================================================================
   8) تفاصيل العرض — صورة كاملة العرض + بطاقات زجاجية + شريط إجراءات عائم
   ========================================================================== */
html body.emp-mobile .property-detail-view { margin: 0; padding: 0; }
html body.emp-mobile.property-detail-bg .property-detail-view {
    padding: 0; background: transparent; box-shadow: none; border-radius: 0;
    animation: m-detail-in .8s var(--m-ease) both;
}
html body.emp-mobile .main-image-container {
    position: relative;
    height: auto; aspect-ratio: 4 / 3; max-height: 62vh;
    margin: 0 0 8px; border-radius: 0 0 34px 34px;
    border-bottom: 1px solid var(--m-line);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .65);
}
html body.emp-mobile .main-img { width: 100%; height: 100%; object-fit: cover; }
html body.emp-mobile .thumbnails-scroll {
    position: relative; z-index: 2;
    max-width: none; margin: -34px 14px 12px; padding: 4px 0; border-radius: 14px;
}
html body.emp-mobile .thumb-img,
html body.emp-mobile .thumb-placeholder {
    width: 72px; height: 72px; border-radius: 16px; border: 2px solid rgba(212, 175, 55, .75);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .6);
}
html body.emp-mobile .thumbnails-wrapper { gap: 8px; }
html body.emp-mobile .detail-header {
    position: relative;
    margin: 0 14px 12px; padding: 16px 16px 14px; text-align: right; border-radius: 24px;
    background: linear-gradient(180deg, rgba(24, 17, 42, .94), rgba(10, 7, 20, .94));
    border: 1px solid var(--m-line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 243, 196, .1);
}
html body.emp-mobile .detail-title,
html body.emp-mobile.property-detail-bg .detail-title {
    font: 800 1.35rem/1.5 'Cairo', sans-serif; padding: 0 0 0 52px; color: var(--m-ivory);
    text-shadow: 0 0 18px rgba(212, 175, 55, .35);
}
html body.emp-mobile .detail-badge,
html body.emp-mobile.property-detail-bg .detail-badge {
    margin: 8px 0 0; padding: 4px 14px; font-size: .78rem; font-weight: 700;
    border-radius: 999px; color: var(--m-gold-hi);
    background: rgba(212, 175, 55, .16); border: 1px solid var(--m-line); box-shadow: none;
}
html body.emp-mobile .favorite-star { width: 40px; height: 40px; left: 14px; font-size: 1.15rem; }
html body.emp-mobile .detail-description {
    margin: 0 14px 12px; padding: 14px 16px; font-size: .94rem; line-height: 1.9;
    border-radius: 22px; color: #efe5c8;
    background: rgba(12, 8, 22, .9); border: 1px solid var(--m-line-soft);
}
html body.emp-mobile .detail-info-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px; }
html body.emp-mobile .info-item {
    padding: 12px 13px; border-radius: 18px;
    background: rgba(14, 10, 26, .92); border: 1px solid var(--m-line-soft); border-right: 3px solid var(--m-gold);
}
html body.emp-mobile .info-item:hover { transform: none; box-shadow: none; }
html body.emp-mobile .info-item-full { grid-column: 1 / -1; }
html body.emp-mobile .info-label { font-size: .72rem; gap: 6px; margin-bottom: 4px; }
html body.emp-mobile .info-label i { width: auto; font-size: .9rem; }
html body.emp-mobile .info-value { padding-right: 0; font-size: .95rem; word-break: break-word; }
html body.emp-mobile .features-list { gap: 6px; }
html body.emp-mobile .features-list span { padding: 5px 11px; font-size: .78rem; }

/* شريط الإجراءات: عائم أسفل الشاشة (الختم يرتفع فوقه) */
html body.emp-mobile .detail-actions {
    position: sticky; z-index: 800;
    bottom: calc(12px + var(--m-safe-b));
    flex-wrap: nowrap; gap: 10px;
    margin: 18px 14px 0; padding: 8px;
    background: rgba(6, 3, 14, .96);
    border: 1px solid var(--m-line); border-radius: 22px;
    box-shadow: 0 -6px 26px rgba(0, 0, 0, .6), 0 0 24px rgba(212, 175, 55, .12);
}
html body.emp-mobile .detail-actions button,
html body.emp-mobile .detail-actions button:hover {
    flex: 1; min-width: 0; padding: 14px 8px; font-size: .92rem; border-radius: 16px; transform: none;
    background: rgba(212, 175, 55, .1); color: var(--m-gold-hi); box-shadow: none;
}
html body.emp-mobile .detail-actions .contact-btn,
html body.emp-mobile .detail-actions .contact-btn:hover {
    flex: 1.6; background: var(--m-metal); color: #1a1205; border-color: transparent; font-weight: 800;
    box-shadow: 0 8px 22px rgba(212, 175, 55, .35);
}
/* في وضع التفاصيل يصغر الختم ويصعد فوق شريط الإجراءات */
html body.emp-mobile.property-detail-bg .m-seal {
    left: 14px; right: auto; margin-left: 0;
    bottom: calc(92px + var(--m-safe-b)); width: 48px; height: 48px;
}
html body.emp-mobile.property-detail-bg .m-seal .ms-core i { font-size: 1.1rem; }
html body.emp-mobile.property-detail-bg .expanded-title-wrapper { display: none; }
html body.emp-mobile.property-detail-bg .bg-overlay { background: rgba(4, 2, 10, .88) !important; }

/* مودال الصور (inline styles) */
html body.emp-mobile #imageModal > div { max-width: 100% !important; max-height: 100% !important; width: 100%; }
html body.emp-mobile #imageModal #modalImage { max-height: 78vh !important; border-radius: 18px !important; }
html body.emp-mobile #imageModal #closeModalBtn { position: fixed !important; top: 14px !important; right: 14px !important; }
html body.emp-mobile #imageModal #prevBtn { left: 10px !important; }
html body.emp-mobile #imageModal #nextBtn { right: 10px !important; }
html body.emp-mobile #imageModal #imageCounter { bottom: -34px !important; }

/* لا "hover" عالق بعد النقر على اللمس */
html body.emp-mobile .filters-panel .btn-extra:hover { background: rgba(212, 175, 55, .15); color: var(--m-gold); }
html body.emp-mobile .filters-panel .btn-all:hover   { background: rgba(212, 175, 55, .2);  color: var(--m-gold); }
html body.emp-mobile .filter-btn:hover,
html body.emp-mobile .budget-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, .2), rgba(0, 0, 0, .4));
    color: var(--m-gold-hi); box-shadow: none; transform: none;
}
html body.emp-mobile .filters-panel .btn-all:active,
html body.emp-mobile .filters-panel .btn-extra:active,
html body.emp-mobile .filter-btn:active { background: rgba(212, 175, 55, .4); color: #000; }

/* ==========================================================================
   9) التذييل
   ========================================================================== */
html body.emp-mobile .footer {
    position: relative; margin-top: 28px; padding: 34px 18px 10px;
    background: linear-gradient(180deg, rgba(4, 2, 10, 0) 0%, rgba(4, 2, 10, .92) 34%);
    border: 0; box-shadow: none;
}
html body.emp-mobile .footer::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 150px; height: 1px; margin-left: -75px;
    background: linear-gradient(90deg, transparent, var(--m-gold), transparent);
}
html body.emp-mobile .footer-container { flex-direction: column; gap: 14px; }
html body.emp-mobile .footer-center { order: 1; width: 100%; }
html body.emp-mobile .footer-social { order: 2; width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
html body.emp-mobile .footer-links  { order: 3; width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
html body.emp-mobile .social-row,
html body.emp-mobile .links-row { display: contents; }
html body.emp-mobile .social-item {
    position: relative; width: 44px; height: 44px; padding: 0;
    border-radius: 50%; justify-content: center;
    background: rgba(8, 5, 16, .8); border: 1px solid var(--m-line);
}
html body.emp-mobile .social-item:hover { transform: none; }
html body.emp-mobile .social-item i { font-size: 1.05rem; }
html body.emp-mobile .social-item .social-link { position: absolute; inset: 0; font-size: 0; overflow: hidden; color: transparent; }
html body.emp-mobile .footer-link-item { padding: 0; background: none; border: none; border-radius: 0; }
html body.emp-mobile .footer-link-item:hover { transform: none; background: none; }
html body.emp-mobile .footer-link-item i { display: none; }
html body.emp-mobile .footer-link-item .footer-link { font-size: .78rem; color: var(--m-muted); }
html body.emp-mobile .footer-center p { font-size: .76rem; line-height: 1.8; }
html body.emp-mobile .footer-sub { font-size: .66rem !important; }

/* ==========================================================================
   10) الصفحات الداخلية (شركاؤنا / خدماتنا / تواصل / دخول …)
   ========================================================================== */
html body.emp-mobile .partners-container,
html body.emp-mobile .contact-container,
html body.emp-mobile .services-page {
    margin: 12px auto !important; padding: 0 12px !important; max-width: 100% !important;
}
html body.emp-mobile .partners-grid,
html body.emp-mobile .contact-grid { grid-template-columns: 1fr !important; gap: 12px; }
html body.emp-mobile .services-page > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important; gap: 12px !important; margin-bottom: 1.5rem !important;
}
html body.emp-mobile .auth-container {
    margin: 16px 12px !important; padding: 22px 16px !important; max-width: none !important;
    border-radius: 24px !important; border: 1px solid var(--m-line) !important;
}
html body.emp-mobile .partner-card,
html body.emp-mobile .service-card { border-radius: 22px !important; }
html body.emp-mobile [class$="-container"] { max-width: 100%; }
html body.emp-mobile .property-detail-view[style*="max-width"] {
    margin: 0 !important; padding: 0 0 12px !important; border-radius: 0 !important; max-width: 100% !important;
}

} /* end @media (max-width: 768px) */

/* ==========================================================================
   شاشات صغيرة جداً
   ========================================================================== */
@media (max-width: 360px) {
    html body.emp-mobile .hero .sub .sub-ar { font-size: .98rem; }
    html body.emp-mobile .main-countries-bar .country-btn { width: 84px; }
    html body.emp-mobile .class-btn { font-size: .86rem; height: 62px; }
    html body.emp-mobile .card h3 { font-size: 1.9rem; }
    html body.emp-mobile .m-gate-link .gl-t b { font-size: 1.3rem; }
}

/* ==========================================================================
   احترام تقليل الحركة
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html body.emp-mobile *,
    html body.emp-mobile *::before,
    html body.emp-mobile *::after {
        animation: none !important; transition: none !important; scroll-behavior: auto !important;
    }
}
