/* ======================================================================
   EzzPRX Design System
   نظام تصميم موحّد — يستبدل الأنماط الـinline التي كانت مكررة في كل صفحة.
   منظَّم بالأقسام: Tokens → Base → Navigation → Ticker → Utilities →
   Footer → Floating Buttons → Assistant → Legal Pages → Page Components
   ====================================================================== */

/* ============ الخطوط: استضافة محلية بدل Google Fonts (طلبات أقل وظهور أسرع) ============ */
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/almarai-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/almarai-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ============ 1) Design Tokens ============ */
:root {
    /* الألوان الأساسية */
    --void: #0A0C12;
    --surface: #12151E;
    --surface-2: #171B27;
    --elevated: #1D2230;
    --hairline: #262B3A;
    --border-soft: rgba(255, 255, 255, 0.07);
    --text-1: #F3F4F7;
    --text-2: #A9B0C2;
    --text-3: #949CB0; /* رُفع من #656C7E — كان يعطي تبايناً ~3.5:1 على --void فقط، أقل من 4.5:1 المطلوب لنص WCAG AA العادي */

    /* اللون الأساسي للعلامة أزرق (--gold تسمية موروثة من نسخة سابقة، أُبقيت
       لتفادي كسر عشرات الاستخدامات الحالية؛ --brand-blue* هو الاسم الدقيق
       الذي يُستخدم في أي CSS جديد من الآن فصاعداً) */
    --gold: #0B7EEF;
    --gold-bright: #4FA6FF;
    --gold-soft: rgba(11, 126, 239, 0.12);
    --brand-blue: var(--gold);
    --brand-blue-bright: var(--gold-bright);
    --brand-blue-soft: var(--gold-soft);

    --emerald: #22B378;
    --emerald-soft: rgba(34, 179, 120, 0.13);
    --coral: #F0808A;
    --coral-soft: rgba(229, 85, 95, 0.13);
    --whatsapp-green: #25d366;

    /* الطباعة */
    --font-display: 'Almarai', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Almarai', sans-serif;
    --font-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', sans-serif;

    /* مقياس أحجام الخط */
    --fs-xs: .78rem;
    --fs-sm: .88rem;
    --fs-base: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.4rem;
    --fs-2xl: clamp(1.6rem, 3vw, 2.2rem);
    --fs-3xl: clamp(1.9rem, 4.2vw, 2.9rem);
    --fs-4xl: clamp(1.95rem, 4.2vw, 3rem);

    /* مقياس التباعد */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.75rem;
    --space-8: 3.5rem;
    --space-10: 4.5rem;

    /* نصف القطر */
    --r-lg: 26px;
    --r-md: 16px;
    --r-sm: 10px;

    /* الظلال */
    --shadow-sm: 0 6px 18px rgba(11, 126, 239, 0.28);
    --shadow-md: 0 10px 26px rgba(11, 126, 239, 0.4);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 55px rgba(0, 0, 0, 0.5);

    /* إعادة تعريف ألوان Bootstrap الافتراضية لتتبع نفس الهوية تلقائياً في أي صفحة */
    --bs-primary: #0B7EEF;
    --bs-primary-rgb: 11, 126, 239;
    --bs-success: #22B378;
    --bs-success-rgb: 34, 179, 120;
    --bs-danger: #E5555F;
    --bs-danger-rgb: 229, 85, 95;
    --bs-info: #4B9FD8;
    --bs-info-rgb: 75, 159, 216;
    --bs-warning: #D89A4B;
    --bs-warning-rgb: 216, 154, 75;
    --bs-body-bg: #0A0C12;
    --bs-body-color: #F3F4F7;
}

/* ============ 2) Base ============ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--void);
    color: var(--text-1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 66px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-wrap: balance;
}

a {
    color: inherit;
}

::selection {
    background: var(--gold-soft);
    color: var(--gold-bright);
}

/* فوكس مرئي واضح لإتاحة لوحة المفاتيح */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

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

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

.btn-ghost {
    border: 1px solid var(--hairline);
    color: var(--text-1);
    background: transparent;
    font-weight: 600;
    border-radius: var(--r-sm);
    transition: all .15s ease;
}

    .btn-ghost:hover {
        border-color: var(--text-2);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-1);
    }

.btn-gold {
    background: linear-gradient(135deg, #0F79E0, #0A69C7);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: var(--r-sm);
    transition: all .18s ease;
    box-shadow: var(--shadow-sm);
}

    .btn-gold:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
        color: #ffffff;
    }

/* ============ 3) القائمة العلوية ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 12, 18, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1030;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-xl);
    color: var(--text-1) !important;
    letter-spacing: -0.3px;
    text-decoration: none;
}

.brand-mark-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(11, 126, 239, 0.35));
}

button.nav-link {
    background: none;
    border: 0;
    width: 100%;
    text-align: start;
}

.nav-link {
    color: var(--text-2) !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem .9rem !important;
    border-radius: var(--r-sm);
    transition: all .15s ease;
}

    .nav-link:hover, .nav-link:focus {
        color: var(--text-1) !important;
        background: rgba(255, 255, 255, 0.04);
    }

/* ============ Mega menu (Product / Solutions) — يعتمد على Bootstrap Dropdown الجاهز ============ */
.dropdown-menu.mega-menu {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4);
}

@media (min-width: 992px) {
    .dropdown-menu.mega-menu {
        width: min(560px, 90vw);
        /* تثبيت الموضع يدوياً بدل الاعتماد على Popper، الذي لا يحترم dir="rtl" هنا فيدفع القائمة خارج الشاشة */
        top: 100% !important;
        bottom: auto !important;
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        transform: none !important;
        margin-top: .6rem;
    }

    /* .show فقط — كي لا يُلغي هذا القاعدة إخفاء Bootstrap الافتراضي (display:none) للقائمة قبل فتحها */
    .dropdown-menu.mega-menu.show {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-1) var(--space-4);
    }
}

.mega-menu-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--r-sm);
    text-decoration: none;
    color: var(--text-1);
    transition: background .15s ease;
}

    .mega-menu-link:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .mega-menu-link i {
        font-size: 1.1rem;
        color: var(--gold-bright);
        margin-top: .2rem;
        flex-shrink: 0;
    }

.mega-menu-link-title {
    font-weight: 700;
    font-size: .88rem;
    color: var(--text-1);
    display: block;
}

.mega-menu-link-desc {
    font-size: .76rem;
    color: var(--text-3);
    display: block;
    margin-top: .1rem;
}

.lang-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
    /* القائمة قابلة للتمرير على الجوال حتى لا تخرج عناصرها عن الشاشة */
    .navbar-collapse {
        background: var(--surface);
        padding: 1rem;
        border-radius: var(--r-md);
        margin-top: .75rem;
        border: 1px solid var(--hairline);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar-collapse .dropdown-menu {
        background: var(--surface-2);
        border: 0;
        box-shadow: none;
        padding: .25rem;
    }

    .nav-link {
        min-height: 44px;
    }
}

.dropdown-menu {
    --bs-dropdown-bg: var(--surface);
    --bs-dropdown-border-color: var(--hairline);
    --bs-dropdown-link-color: var(--text-1);
    --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-dropdown-link-hover-color: var(--text-1);
}

.mega-menu-all {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
}

/* ============ 5) عناصر عامة قابلة لإعادة الاستخدام بكل الصفحات ============ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--gold-bright);
    background: var(--gold-soft);
    border: 1px solid rgba(11, 126, 239, 0.25);
    padding: .45rem 1rem;
    border-radius: 30px;
}

.section-pad {
    padding: var(--space-10) 0;
}

@media (max-width: 767.98px) {
    .section-pad {
        padding: var(--space-8) 0;
    }
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-2xl);
    color: var(--text-1);
    text-align: center;
}

.section-subtitle {
    color: var(--text-2);
    max-width: 560px;
    text-align: center;
    line-height: 1.8;
    margin: .6rem auto 0;
}

/* عنوان/فقرة الـHero — يُستخدم في الرئيسية وصفحات القطاعات وأي صفحة هيرو مستقبلية */
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-4xl);
    line-height: 1.25;
    color: var(--text-1);
    margin: 1.25rem 0 1.1rem;
    letter-spacing: -0.5px;
}

/* عنوان الرئيسية في عمود ضيق بجانب العرض، فالحجم الكامل يكسره إلى أربعة أسطر */
.hero-title-home {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

    .hero-subtitle.text-start {
        margin-inline: 0;
    }

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

.font-mono {
    font-family: var(--font-mono);
}

.divider-fade {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
    border: none;
}

/* بطاقة عامة (تُستخدم في صفحات التسعير/القطاعات/ZATCA الجديدة) */
.ez-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--space-6);
    transition: all .2s ease;
}

    .ez-card:hover {
        border-color: rgba(11, 126, 239, 0.3);
        background: var(--surface-2);
    }

.stat-tile {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-5);
    text-align: center;
}

.stat-tile .stat-number {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--gold-bright);
}

.stat-tile .stat-label {
    color: var(--text-3);
    font-size: .85rem;
    margin-top: .3rem;
}

/* ============ 6) فوتر ============ */
footer {
    background: #07080D;
    border-top: 1px solid var(--hairline);
    margin-top: auto;
}

    footer a {
        font-size: .88rem;
        color: var(--text-2);
        text-decoration: none;
        transition: color .15s ease;
    }

        footer a:hover {
            color: var(--gold-bright);
        }

.footer-heading {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: var(--space-3);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.social-links a {
    font-size: 1.05rem;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--hairline);
    transition: all .18s ease;
}

    .social-links a:hover {
        transform: translateY(-2px);
        border-color: var(--gold);
        color: var(--gold-bright);
    }

/* ============ 7) أزرار عائمة (واتساب / المساعد الذكي) ============ */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    inset-inline-end: 25px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .floating-whatsapp:hover {
        transform: scale(1.05);
        color: white;
    }

.assistant-fab {
    position: fixed;
    bottom: 92px;
    inset-inline-end: 25px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #ffffff;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .assistant-fab:hover {
        transform: scale(1.05);
    }

.assistant-panel {
    position: fixed;
    bottom: 156px;
    inset-inline-end: 25px;
    width: min(340px, calc(100vw - 50px));
    height: min(480px, calc(100vh - 200px));
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xl);
    z-index: 1040;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

    .assistant-panel.show {
        display: flex;
    }

.assistant-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--hairline);
}

.assistant-panel-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-1);
}

.assistant-panel-subtitle {
    font-size: .74rem;
    color: var(--text-3);
    margin-top: .1rem;
}

.assistant-panel-close {
    background: none;
    border: none;
    color: var(--text-3);
    padding: .3rem;
}

.assistant-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.assistant-msg {
    max-width: 85%;
    padding: .55rem .8rem;
    border-radius: var(--r-sm);
    font-size: .85rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.assistant-msg.user {
    align-self: flex-end;
    background: var(--gold-soft);
    color: var(--text-1);
}

.assistant-msg.bot {
    align-self: flex-start;
    background: var(--elevated);
    color: var(--text-2);
}

.assistant-panel-inputbar {
    display: flex;
    gap: .5rem;
    padding: .75rem;
    border-top: 1px solid var(--hairline);
    background: var(--surface-2);
}

.assistant-panel-input {
    flex: 1;
    background: var(--void);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    color: var(--text-1);
    padding: .5rem .75rem;
    font-size: .85rem;
}

    .assistant-panel-input:focus {
        outline: none;
        border-color: var(--gold);
    }

.assistant-panel-send {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #ffffff;
    border: none;
    border-radius: var(--r-sm);
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .assistant-panel-send:disabled {
        opacity: .6;
    }

/* ============ الأسئلة الشائعة (صفحة /faq والصفحة الرئيسية) ============ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: 1.1rem 1.4rem;
}

    .faq-item[open] {
        border-color: rgba(11, 126, 239, 0.3);
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--text-1);
    font-size: .98rem;
}

    .faq-question::-webkit-details-marker {
        display: none;
    }

    .faq-question h3 {
        font: inherit;
        color: inherit;
        margin: 0;
    }

.faq-caret {
    color: var(--gold-bright);
    flex-shrink: 0;
    transition: transform .2s ease;
}

.faq-item[open] .faq-caret {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-2);
    font-size: .92rem;
    line-height: 1.85;
    margin: .85rem 0 0;
}

/* ============ 8) مقالات قانونية (خصوصية / شروط) ============ */
.legal-page {
    padding: 4rem 0 5rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--text-1);
}

.legal-updated {
    color: var(--text-3);
    font-size: .85rem;
    margin-top: .6rem;
    font-family: var(--font-mono);
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 2.75rem;
}

@media (max-width: 576px) {
    .legal-card {
        padding: 1.5rem;
    }
}

.legal-card p {
    color: var(--text-2);
    line-height: 1.9;
    font-size: .98rem;
}

.legal-card h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-1);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hairline);
}

.legal-card p:first-child {
    margin-top: 0;
}

.legal-card h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-card ul {
    color: var(--text-2);
    line-height: 1.9;
    padding-inline-start: 1.4rem;
}

    .legal-card ul li {
        margin-bottom: .5rem;
    }

.legal-card a {
    color: var(--gold-bright);
    font-weight: 600;
    text-decoration: none;
}

    .legal-card a:hover {
        text-decoration: underline;
    }

.legal-footnote {
    text-align: center;
    color: var(--text-3);
    font-size: .85rem;
    margin-top: 2.5rem;
}


/* ============ 9) مكونات الصفحات التسويقية ============ */
.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -60px;
    z-index: 2000;
    background: var(--gold);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: var(--r-sm);
    font-weight: 700;
}

    .skip-link:focus {
        top: .6rem;
        color: #fff;
    }

main:focus {
    outline: none;
}

[hidden] {
    display: none !important;
}

html {
    scroll-padding-top: 84px;
}

.section-head {
    text-align: center;
    margin-bottom: var(--space-6);
}

.band {
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.sub-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--space-4);
}

.content-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--space-3);
}

/* نسخة Bootstrap المستخدمة LTR فتجعل text-start يساراً بـ !important حتى في العربية؛ هذا يعيدها لبداية السطر حسب اتجاه الصفحة */
.text-start {
    text-align: start !important;
}

.section-subtitle {
    max-width: 640px;
}

.hero-section {
    padding: var(--space-8) 0 var(--space-7);
    overflow: hidden;
}

.hero-compact {
    padding: var(--space-5) 0 var(--space-6);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 400px at 50% -10%, rgba(11, 126, 239, 0.16), transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.hero-lead {
    color: var(--text-1);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: .5rem;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.1rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    font-size: .85rem;
    color: var(--text-2);
    font-weight: 600;
}

    .hero-trust-row i {
        color: var(--emerald);
        margin-inline-end: .25rem;
    }

/* إطار لقطات النظام */
.screen-frame {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: .4rem;
    box-shadow: var(--shadow-lg);
}

    .screen-frame img, .screen-frame video {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
        background: var(--elevated);
    }

    .screen-frame figcaption {
        color: var(--text-3);
        font-size: .75rem;
        text-align: center;
        padding: .5rem .25rem .2rem;
    }

.screen-fit img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

/* البطاقات: تصميم واحد لكل الصفحات */
.feature-card, .panel-card, .module-tile, .service-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
}

.band .feature-card, .band .panel-card, .band .module-tile, .band .industry-tile, .band .compact-feature, .band .faq-item, .band .package-card, .band .service-card, .band .soft-cta {
    background: var(--void);
}

.panel-card {
    display: block;
    min-width: 0;
}

.icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.icon-tile-lg {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    display: flex;
}

.card-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: .45rem;
    line-height: 1.5;
    display: block;
}

.card-text {
    color: var(--text-2);
    font-size: .88rem;
    line-height: 1.75;
    margin-bottom: var(--space-3);
}

.card-link {
    color: var(--gold-bright);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

    .card-link:hover {
        text-decoration: underline;
    }

.tile-label {
    color: var(--text-3);
    font-size: .74rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.check-list {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .check-list li {
        display: flex;
        gap: .4rem;
        color: var(--text-2);
        font-size: .85rem;
        line-height: 1.6;
    }

    .check-list a {
        color: inherit;
        text-decoration: none;
    }

        .check-list a:hover {
            color: var(--gold-bright);
        }

    .check-list i {
        color: var(--emerald);
        flex-shrink: 0;
    }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 36px;
    padding: .35rem .8rem;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: 30px;
    color: var(--text-1);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease;
}

a.link-chip:hover {
    border-color: var(--gold);
    color: var(--text-1);
}

.link-chip i {
    color: var(--gold-bright);
}

.link-chip-sm {
    min-height: 30px;
    font-size: .74rem;
    padding: .2rem .6rem;
}

.compact-feature {
    display: flex;
    gap: .75rem;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: .86rem;
    line-height: 1.7;
}

    .compact-feature > i {
        color: var(--gold-bright);
        font-size: 1.1rem;
        flex-shrink: 0;
        line-height: 1.5;
    }

.text-warning-soft {
    color: #E8B15E !important;
}

.compact-feature-title {
    display: block;
    color: var(--text-1);
    font-weight: 700;
    margin-bottom: .15rem;
    text-decoration: none;
}

a.compact-feature-title:hover {
    color: var(--gold-bright);
}

.soft-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: .9rem;
}

.soft-cta-stack {
    flex-direction: column;
    align-items: flex-start;
}

.soft-cta-title {
    color: var(--text-1);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

@media (max-width: 767.98px) {
    .soft-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.final-cta-box {
    background: linear-gradient(135deg, var(--surface), var(--elevated));
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: var(--space-8) var(--space-5);
}

html[dir="rtl"] .transform-flip {
    display: inline-block;
    transform: none;
}

html[dir="ltr"] .transform-flip {
    display: inline-block;
    transform: rotate(180deg);
}

/* مسار التنقل */
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    font-size: .8rem;
    color: var(--text-3);
    text-align: start;
}

.crumbs li + li::before {
    content: "/";
    margin-inline-end: .25rem;
    color: var(--hairline);
}

.crumbs a {
    color: var(--text-2);
    text-decoration: none;
}

    .crumbs a:hover {
        color: var(--gold-bright);
    }

/* عرض النظام */
.showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-bottom: var(--space-5);
}

.showcase-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .4rem .85rem;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 30px;
    color: var(--text-2);
    font-size: .84rem;
    font-weight: 600;
}

    .showcase-tab.active {
        background: #0A69C7;
        border-color: #0A69C7;
        color: #fff;
    }

.showcase-title {
    color: var(--text-1);
    font-size: 1.3rem;
    font-weight: 800;
}

.showcase-desc {
    color: var(--text-2);
    line-height: 1.8;
}

.video-link {
    position: relative;
    display: block;
}

.video-play {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 12, 18, .85);
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: .85rem;
}

html[dir="rtl"] .video-play {
    transform: translate(50%, -50%);
}

/* بطاقات الأنشطة والموديولات */
.industry-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow: hidden;
}

.industry-tile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: top;
    background: var(--elevated);
    display: block;
}

.industry-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.industry-link-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-5) var(--space-4);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

    .industry-link-card:hover {
        border-color: rgba(11, 126, 239, 0.4);
        background: var(--surface-2);
    }

.industry-hero-icon {
    width: 160px;
    height: 160px;
    border-radius: var(--r-lg);
    background: var(--elevated);
    border: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gold-bright);
}

.module-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--hairline);
    padding-top: var(--space-3);
}

.price-tag {
    color: var(--emerald);
    font-weight: 700;
    font-size: .9rem;
}

    .price-tag small {
        color: var(--text-3);
        font-weight: 500;
        font-size: .72rem;
    }

.price-original {
    color: var(--text-3);
    font-weight: 500;
    text-decoration-color: var(--coral);
    margin-inline-end: .2rem;
}

.module-chip {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    height: 100%;
    background: var(--void);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-4);
    text-decoration: none;
}

    .module-chip:hover {
        border-color: rgba(11, 126, 239, 0.4);
    }

    .module-chip i {
        font-size: 1.3rem;
        color: var(--gold-bright);
    }

.module-chip-name {
    font-weight: 700;
    color: var(--text-1);
    font-size: .88rem;
}

.badge-discount {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--coral-soft);
    color: #F28A92;
    font-weight: 700;
    font-size: .78rem;
    padding: .3rem .75rem;
    border-radius: 30px;
}

.discount-banner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--coral-soft);
    color: #F28A92;
    font-weight: 700;
    font-size: .88rem;
    padding: .45rem 1rem;
    border-radius: 30px;
    margin-top: 1rem;
}

.pill-success {
    display: inline-flex;
    align-items: center;
    background: var(--emerald-soft);
    color: #3FD197;
    font-weight: 700;
    font-size: .68rem;
    padding: .2rem .6rem;
    border-radius: 30px;
    margin-inline-start: .5rem;
}

/* الخطوات */
.steps-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-4);
}

    .steps-track li {
        padding: var(--space-5) var(--space-4);
        background: var(--surface);
        border: 1px solid var(--hairline);
        border-radius: var(--r-md);
    }

.band .steps-track li {
    background: var(--void);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0A69C7;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: var(--space-3);
}

.plain-steps {
    color: var(--text-2);
    line-height: 1.9;
    padding-inline-start: 1.25rem;
}

/* حقائق الأسعار */
.fact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--void);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
}

    .fact-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-5);
        border-bottom: 1px solid var(--hairline);
        color: var(--text-2);
        font-size: .9rem;
    }

        .fact-list li:last-child {
            border-bottom: 0;
        }

    .fact-list strong {
        color: var(--text-1);
        text-align: end;
    }

    .fact-list small {
        font-size: .72rem;
        color: var(--text-3);
    }

/* الأسئلة الشائعة */
.faq-group-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: var(--space-3);
}

    .faq-group-title i {
        color: var(--gold-bright);
    }

/* جدول الأسعار */
.pricing-table-wrap {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 380px;
}

    .pricing-table th {
        text-align: start;
        padding: .9rem 1.25rem;
        font-size: .78rem;
        color: var(--text-3);
        border-bottom: 1px solid var(--hairline);
    }

    .pricing-table td {
        padding: .85rem 1.25rem;
        border-bottom: 1px solid var(--hairline);
        color: var(--text-1);
        font-size: .9rem;
    }

    .pricing-table tr:last-child td {
        border-bottom: 0;
    }

    .pricing-table a {
        display: inline-block;
        min-height: 24px;
        color: inherit;
        text-decoration: none;
    }

        .pricing-table a:hover {
            color: var(--gold-bright);
        }

.pricing-note-cell {
    color: var(--text-3) !important;
    font-size: .84rem !important;
}

.pricing-footnote {
    color: var(--text-3);
    font-size: .82rem;
    line-height: 1.7;
}

.lead-package {
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-4);
}

.leads-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1.1;
}

.leads-price-suffix {
    color: var(--text-3);
    font-size: .78rem;
}

.leads-results {
    color: var(--text-2);
    font-size: .86rem;
    font-weight: 600;
}

/* حاسبة الاشتراك */
fieldset.panel-card {
    border: 1px solid var(--hairline);
    /* يبقي عنوان المجموعة داخل البطاقة بدل وقوعه على حدّها */
    display: grid;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    float: none;
    color: var(--text-1);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    padding: 0;
}

.calc-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-bright);
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.calc-sublabel {
    display: block;
    color: var(--text-2);
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.calc-input {
    background-color: var(--void) !important;
    border: 1px solid var(--hairline) !important;
    color: var(--text-1) !important;
    min-height: 44px;
}

    .calc-input:focus {
        border-color: var(--gold) !important;
        box-shadow: 0 0 0 3px var(--gold-soft) !important;
    }

    .calc-input::placeholder {
        color: var(--text-3);
    }

.calc-hint {
    color: var(--text-3);
    font-size: .78rem;
    line-height: 1.6;
}

.calc-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .5rem;
}

.calc-module {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 46px;
    padding: .5rem .75rem;
    background: var(--void);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: .86rem;
    color: var(--text-1);
}

    .calc-module:has(input:checked) {
        border-color: var(--gold);
        background: var(--gold-soft);
    }

    .calc-module .form-check-input {
        margin: 0;
        flex-shrink: 0;
    }

    .calc-module > i {
        color: var(--gold-bright);
    }

    .calc-module.is-excluded {
        opacity: .45;
        cursor: not-allowed;
    }

.calc-module-name {
    flex: 1;
    min-width: 0;
}

.calc-module-price {
    color: var(--emerald);
    font-weight: 700;
    font-size: .82rem;
}

.calc-durations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5rem;
}

.calc-duration {
    cursor: pointer;
    margin: 0;
    position: relative;
}

    .calc-duration input {
        position: absolute;
        opacity: 0;
    }

.calc-duration-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: .5rem;
    background: var(--void);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    color: var(--text-1);
    font-weight: 700;
    font-size: .88rem;
    text-align: center;
}

    .calc-duration-box small {
        color: #3FD197;
        font-weight: 700;
        font-size: .72rem;
    }

.calc-duration input:checked + .calc-duration-box {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.calc-duration input:focus-visible + .calc-duration-box {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.calc-summary {
    position: sticky;
    top: 84px;
    background: var(--elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-5);
}

@media (max-width: 991.98px) {
    .calc-summary {
        position: static;
    }
}

.calc-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
    color: var(--text-1);
    font-size: .88rem;
}

.calc-line-muted {
    color: var(--text-2);
}

.calc-line-sep {
    border-top: 1px dashed var(--hairline);
    margin-top: .4rem;
    padding-top: .6rem;
    font-weight: 700;
}

.calc-line-value {
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
}

.calc-saving {
    color: #3FD197;
}

.calc-empty {
    color: var(--text-3);
    font-size: .85rem;
    margin: 0 0 .5rem;
}

.calc-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--hairline);
    margin-top: .6rem;
    padding-top: .8rem;
    color: var(--text-1);
    font-weight: 700;
}

    .calc-total strong {
        font-size: 1.4rem;
        color: var(--gold-bright);
    }

.calc-warning {
    margin: .75rem 0 0;
    color: #E8B15E;
    font-size: .8rem;
    line-height: 1.6;
}

.search-box {
    position: relative;
    max-width: 420px;
}

    .search-box i {
        position: absolute;
        inset-inline-start: .9rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-3);
    }

    .search-box input {
        padding-inline-start: 2.4rem;
    }

/* باقات النشاط */
.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    padding: var(--space-5) var(--space-4);
}

.package-card-recommended {
    border-color: var(--gold);
}

.package-badge {
    position: absolute;
    top: -.7rem;
    inset-inline-start: var(--space-4);
    background: #0A69C7;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .15rem .65rem;
    border-radius: 30px;
}

.package-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: .35rem;
}

.package-desc {
    color: var(--text-2);
    font-size: .8rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.package-price {
    color: var(--emerald);
    margin-bottom: var(--space-3);
}

    .package-price strong {
        font-size: 1.45rem;
    }

    .package-price small {
        color: var(--text-3);
        font-size: .75rem;
    }

.package-modules {
    flex: 1;
}

/* قصص النجاح والمشاريع */
.story-logo {
    max-width: 120px;
    height: 48px;
    object-fit: contain;
    margin-bottom: var(--space-3);
}

.story-quote {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

.story-result {
    color: #3FD197;
    font-size: .85rem;
    font-weight: 700;
}

.portfolio-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-sm);
}

/* شريط الموافقة وتثبيت التطبيق */
.consent-banner {
    position: fixed;
    bottom: 14px;
    inset-inline-start: 14px;
    max-width: 560px;
    width: calc(100% - 92px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .75rem;
    background: var(--elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: .5rem .75rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-2);
    font-size: .76rem;
    line-height: 1.5;
    z-index: 1045;
}

    .consent-banner p {
        flex: 1 1 240px;
    }

    .consent-banner a {
        color: var(--gold-bright);
    }

.consent-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-inline-start: auto;
}

    .consent-actions .btn {
        font-size: .74rem;
        padding: .2rem .6rem;
        min-height: 30px;
    }

/* شريط صغير في الزاوية لا يشد العين بعيداً عن المحتوى */
.pwa-install-banner {
    position: fixed;
    bottom: 14px;
    inset-inline-start: 14px;
    display: none;
    align-items: center;
    gap: .5rem;
    background: var(--elevated);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: .3rem .4rem .3rem .6rem;
    box-shadow: var(--shadow-sm);
    z-index: 1040;
}

html[dir="rtl"] .pwa-install-banner {
    padding: .3rem .6rem .3rem .4rem;
}

    .pwa-install-banner.show {
        display: inline-flex;
    }

body.consent-open .pwa-install-banner {
    display: none;
}

.pwa-install-title {
    font-size: .74rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.pwa-install-btn {
    font-size: .72rem;
    padding: .15rem .55rem;
    min-height: 28px;
    box-shadow: none;
}

.pwa-install-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    color: var(--text-3);
    font-size: .7rem;
    flex-shrink: 0;
}

    .pwa-install-close:hover {
        color: var(--text-1);
    }

@media (max-width: 575.98px) {
    /* لا تغطي الأزرار العائمة محتوى الجوال */
    .floating-whatsapp, .assistant-fab {
        width: 46px;
        height: 46px;
        font-size: 20px;
        inset-inline-end: 14px;
    }

    .floating-whatsapp {
        bottom: 14px;
    }

    .assistant-fab {
        bottom: 70px;
    }

    .assistant-panel {
        inset-inline-end: 14px;
        bottom: 124px;
        width: calc(100vw - 28px);
    }

    .fact-list li {
        padding: var(--space-3) var(--space-4);
    }
}

@media (max-width: 575.98px) {
    /* صفحات أقصر على الجوال دون حذف محتوى */
    .section-pad {
        padding: 2.5rem 0;
    }

    .feature-card, .module-tile, .panel-card, .service-card {
        padding: var(--space-4);
    }

    .hero-section {
        padding: var(--space-5) 0 var(--space-6);
    }

    .final-cta-box {
        padding: var(--space-6) var(--space-4);
    }
}

.heading-link {
    color: inherit;
    text-decoration: none;
}

    .heading-link:hover {
        color: var(--gold-bright);
    }

    .heading-link i {
        color: var(--gold-bright);
    }

/* يؤجل حساب تخطيط الأقسام خارج الشاشة في الصفحات الطويلة (مع حجز مكانها لتجنب اهتزاز الصفحة) */
main > section:nth-of-type(n+3), .module-group-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}

/* مقاطع النظام فوق لقطتها الثابتة */
.screen-media {
    position: relative;
}

    .screen-media video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        border-radius: 12px;
        opacity: 0;
        transition: opacity .3s ease;
    }

.is-playing .screen-media video {
    opacity: 1;
}

.video-toggle {
    position: absolute;
    bottom: .6rem;
    inset-inline-end: .6rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(10, 12, 18, .75);
    color: #fff;
    font-size: 1.1rem;
}

    .video-toggle:hover {
        background: rgba(10, 12, 18, .95);
    }

.screen-frame img {
    background: var(--elevated);
}
