/* وضوح أكما: كلام ظاهر على خلفيته، ودخلة سكري تناسب الشعار */

html body .accmaa-enter-gate,
html body.premium-ui .accmaa-enter-gate,
html body .main-inner--enter .accmaa-enter-gate {
    background:
        radial-gradient(ellipse 70% 50% at 50% 18%, rgba(255, 252, 246, 0.9), transparent 60%),
        linear-gradient(180deg, #fbf6ec 0%, #f3e6cf 100%) !important;
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 18%, rgba(255, 252, 246, 0.9), transparent 60%),
        linear-gradient(180deg, #fbf6ec 0%, #f3e6cf 100%) !important;
    color: #0a3669 !important;
    min-height: min(82vh, 760px) !important;
    padding: 32px 16px 128px !important;
}

html body .accmaa-enter-gate__card {
    color: #0a3669 !important;
}

html body .accmaa-enter-gate__logo {
    width: min(280px, 72vw) !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 auto 12px !important;
    background: transparent !important;
    filter: none !important;
    transform: none !important;
    image-rendering: auto !important;
}

html body .accmaa-enter-gate__eyebrow {
    color: #8a6410 !important;
    -webkit-text-fill-color: #8a6410 !important;
    font-weight: 800 !important;
}

html body .accmaa-enter-gate__title {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

html body .accmaa-enter-gate__lead,
html body .accmaa-enter-gate__privacy {
    color: #24344d !important;
    -webkit-text-fill-color: #24344d !important;
}

html body .accmaa-enter-gate .btn-gold,
html body.premium-ui .accmaa-enter-gate .btn-gold {
    background: #e2b340 !important;
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

html body .accmaa-enter-gate .btn-outline,
html body.premium-ui .accmaa-enter-gate .btn-outline {
    background: #fffdf8 !important;
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    border-color: #0a3669 !important;
}

/* القائمة الكحلية: الكلام أبيض مش كحلي على كحلي */
html body .mega-nav,
html body .mega-nav .accmaa-site-nav,
html body .mega-nav .accmaa-site-menu,
html body .mega-nav .accmaa-mega-item,
html body .mega-nav .accmaa-mega-item a,
html body .mega-nav .accmaa-site-menu a,
html body .mega-nav .accmaa-site-menu button,
html body .sidebar,
html body .sidebar a,
html body .sidebar button,
html body .sidebar .icon-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .topbar .btn-gold,
html body .accmaa-back-fab {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

/* شارة Accmaa على الهيدر الكحلي: الحبر كان كحلي فاختفى */
html body .topbar .topbar-home-chip,
html body .topbar-home-chip {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

/* متن الصفحات الفاتحة — من غير text-fill عشان ما يتورثش جوه الشرائح الكحلية */
html body.premium-ui .main-inner :is(h1, h2, h3, h4, p, li, label, td, .page-title, .page-desc),
html body.premium-ui .panel :is(h1, h2, h3, h4, p, li, label, td),
html body.premium-ui .panel-premium :is(h1, h2, h3, h4, p, li, label, td),
html body.premium-ui .content-panel :is(h1, h2, h3, h4, p, li, label, td) {
    color: #1c2b45 !important;
}

html body.premium-ui .main-inner :is(.btn-gold, .btn-primary),
html body.premium-ui .panel :is(.btn-gold, .btn-primary) {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

html body .accmaa-cookie-consent,
html body #accmaaCookieConsent {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body img.brand-logo,
html body img.sidebar-logo,
html body img.topbar-logo,
html body img[data-accmaa-logo],
html body .accmaa-enter-gate__logo,
html body .accmaa-brand-intro-logo {
    transform: none !important;
    filter: none !important;
    image-rendering: auto !important;
    backface-visibility: visible !important;
}

/* عناوين الصفحات الفاتحة كانت بيضاء على الأبيض */
html body.premium-ui.accmaa-academy-chrome .ak-page-hero h1,
html body.premium-ui.accmaa-academy-chrome .ak-page-hero h2,
html body.premium-ui.accmaa-academy-chrome .main-wrap .ak-page-hero h1,
html body.premium-ui.accmaa-academy-chrome .main-wrap .ak-page-hero h2 {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

html body.premium-ui.accmaa-academy-chrome .ak-page-hero p,
html body.premium-ui.accmaa-academy-chrome .ak-svc-hero p {
    color: #24344d !important;
    -webkit-text-fill-color: #24344d !important;
    opacity: 1 !important;
}

html body.premium-ui.accmaa-academy-chrome .ak-svc-hero h1,
html body.premium-ui.accmaa-academy-chrome .ak-svc-hero h2,
html body.premium-ui.accmaa-academy-chrome .main-inner .ak-svc-hero h1,
html body.premium-ui.accmaa-academy-chrome .main-inner .ak-svc-hero h2,
html body.premium-ui.accmaa-academy-chrome .main-inner .ak-page-hero h1,
html body.premium-ui.accmaa-academy-chrome .main-inner .ak-page-hero h2 {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* بطاقة التواصل الكحلية: الكلام لازم يبقى فاتح */
html body.premium-ui .main-inner .ak-contact-info :is(h1, h2, p, a, li, span, small, label),
html body.premium-ui .ak-contact-info :is(h1, h2, p, a, li, span, small, label) {
    color: #f4f8fc !important;
    -webkit-text-fill-color: #f4f8fc !important;
    opacity: 1 !important;
}

html body.premium-ui .main-inner .ak-contact-info :is(h3, h4, strong),
html body.premium-ui .ak-contact-info :is(h3, h4, strong) {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
    opacity: 1 !important;
}

html body.premium-ui.accmaa-academy-chrome .main-inner .ak-contact-info a,
html body.premium-ui.accmaa-academy-chrome .ak-contact-info a,
html body.premium-ui .ak-contact-info a {
    color: #f4f8fc !important;
    -webkit-text-fill-color: #f4f8fc !important;
    opacity: 1 !important;
    text-decoration-color: rgba(244, 248, 252, 0.7) !important;
}

/* قوائم التنقل المنسدلة: حبر كحلي على سطح فاتح */
html body.accmaa-academy-chrome #megaNav .accmaa-mega-panel,
html body.accmaa-academy-chrome #megaNav .accmaa-simple-drop {
    background: #fffdf8 !important;
    color: #0a3669 !important;
}

html body.accmaa-academy-chrome #megaNav .accmaa-mega-panel :is(a, button, span),
html body.accmaa-academy-chrome #megaNav .accmaa-simple-drop :is(a, button, span) {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    opacity: 1 !important;
}

/* الأسطح الكحلية: الكلام فاتح. القاعدة العامة كانت بتلوّن العناوين كحلي فوق الكحلي. */
html body.premium-ui .main-inner :is(
    .ak-cd-cta,
    .ak-cd-hero,
    .ak-svc-cta,
    .ak-sv-hero,
    .ak-sv-summary-head,
    .ak-courses-hero,
    .ak-tools-hero,
    .ak-trainers-hero,
    .hero-premium,
    .gift-hero,
    .gift-hero-premium,
    .ak-reach-host,
    .ak-reach-section,
    .ak-contact-info,
    .ak-drawer-head,
    .tafqeet-hero,
    .tafqeet-topbar,
    .accmaa-pay-hero,
    .accmaa-sub-banner,
    .gov-master-banner,
    .gov-command-hero,
    .admin-page-head,
    .command-header,
    .command-header-premium,
    .erp-page-head,
    .module-chrome,
    .gov-live-head,
    .dash-preview-banner,
    .visitors-total-hero,
    .eco-governance-banner,
    .instructors-rail-head,
    .site-footer-rich,
    .site-footer-global,
    .site-footer
) :is(h1, h2, h3, h4, p, li, a, small, strong, em, label, td, .page-title, .page-desc) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    opacity: 1 !important;
}

html body.premium-ui .main-inner .ak-contact-info :is(h3, h4, strong),
html body.premium-ui .main-inner .ak-contact-info .ak-contact-item strong {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}

html body.premium-ui .main-inner .ak-contact-info a.ak-contact-wa,
html body.premium-ui .main-inner :is(.ak-cd-cta, .ak-svc-cta, .ak-sv-hero, .ak-courses-hero, .ak-tools-hero) :is(.btn-gold, .btn-primary, .ax-btn--gold, .ak-contact-wa) {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

html body.premium-ui .pay-transfer-list code,
html body.premium-ui .main-inner .pay-transfer-list code,
html body.premium-ui .gov-master-banner code {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
    background: #061b3f !important;
    opacity: 1 !important;
}

html body.premium-ui .main-inner :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]) {
    color: #142033 !important;
    -webkit-text-fill-color: #142033 !important;
    background-color: #ffffff !important;
}

/* لوحة الإدارة: عناوين الشريط كانت كحلي على الكحلي */
html body.premium-ui.admin-mode .main-inner .admin-sidebar :is(h1, h2, h3, h4, .admin-sidebar-title) {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
    opacity: 1 !important;
}

html body.premium-ui.admin-mode .main-inner .admin-sidebar .admin-sidebar-link,
html body.premium-ui.admin-mode .main-inner .admin-sidebar .admin-sidebar-link span {
    color: #f4f8fc !important;
    -webkit-text-fill-color: #f4f8fc !important;
}

html body.premium-ui.admin-mode .main-inner .admin-sidebar .admin-sidebar-link.active,
html body.premium-ui.admin-mode .main-inner .admin-sidebar .admin-sidebar-link.active span,
html body.premium-ui.admin-mode .main-inner .admin-sidebar .admin-sidebar-link.active i {
    color: #061b3f !important;
    -webkit-text-fill-color: #061b3f !important;
}

html body.premium-ui.admin-mode .main-inner :is(.gov-command-hero, .gov-master-banner) :is(.btn-outline, .btn-outline span, .btn-outline i) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    border-color: rgba(247, 244, 234, 0.75) !important;
    background: transparent !important;
}

html body.premium-ui.admin-mode .main-inner :is(.gov-command-hero, .gov-master-banner) .btn-gold,
html body.premium-ui.admin-mode .main-inner :is(.gov-command-hero, .gov-master-banner) .btn-gold span,
html body.premium-ui.admin-mode .main-inner :is(.gov-command-hero, .gov-master-banner) .btn-gold i {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    background: #e8c547 !important;
    border-color: #e8c547 !important;
}

/* شريط العضو فوق الهيدر الكحلي: الكلام كان كحلي فاختفى، والتمرير كان يقص الأيقونات */
html body .topbar.topbar-premium .topbar-sub,
html body .topbar.topbar-premium .member-nav,
html body .topbar.topbar-premium .breadcrumb {
    color: #f7f4ea !important;
    min-height: 48px;
    height: auto !important;
    overflow: visible;
}

html body .topbar.topbar-premium .member-nav {
    display: flex;
    align-items: center !important;
    min-height: 52px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    scrollbar-width: thin;
}

html body .topbar.topbar-premium .member-link,
html body .topbar.topbar-premium .member-link span,
html body .topbar.topbar-premium .breadcrumb,
html body .topbar.topbar-premium .breadcrumb a,
html body .topbar.topbar-premium .breadcrumb button,
html body .topbar.topbar-premium .breadcrumb-home {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    opacity: 1 !important;
}

html body #breadcrumb,
html body #breadcrumb button,
html body #breadcrumb a,
html body #breadcrumb .breadcrumb-home {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
}

html body .topbar.topbar-premium .member-link i,
html body #breadcrumb span,
html body .topbar.topbar-premium #breadcrumb span {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}

html body .topbar.topbar-premium .member-link.active,
html body .topbar.topbar-premium .member-link:hover,
html body .topbar.topbar-premium .member-link.active span,
html body .topbar.topbar-premium .member-link:hover span,
html body .topbar.topbar-premium .member-link.active i,
html body .topbar.topbar-premium .member-link:hover i {
    color: #061b3f !important;
    -webkit-text-fill-color: #061b3f !important;
    background: #f6e29a !important;
}

/* عنوان درج الدورات كان كحلي على التدرج الكحلي */
html body .ak-drawer-head :is(h1, h2, h3, h4) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
}

html body .ak-drawer-head p {
    color: #d5def0 !important;
    -webkit-text-fill-color: #d5def0 !important;
}

/* أزرار الشريط الجانبي: النص ذهبي على الكحلي حتى لو ورث حبرًا غامقًا */
html body.premium-ui .sidebar .icon-btn,
html body.ultra-premium .sidebar .icon-btn,
html body .icons-dock .icon-btn,
html body #iconsDock .icon-btn,
html body.premium-ui .sidebar .icon-btn .icon-btn-label,
html body .icons-dock .icon-btn .icon-btn-label,
html body #iconsDock .icon-btn .icon-btn-label {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}

/* رقم المحور كان أسود على المربع الكحلي لأن span بيرث اللون */
html body.accmaa-academy-chrome span.ak-cd-mod__n,
html body .ak-cd-mod__n {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #0e3a7e !important;
    opacity: 1 !important;
}

/* عنوان «تصفح» في الشريط: اللون كان فاتحًا لكن طبقة الرسم موروثة كحلي فاختفى الكلام */
html body.accmaa-academy-chrome .sidebar :is(h1, h2, h3, h4, .sections-zone-head),
html body.accmaa-academy-chrome .sidebar :is(h1, h2, h3, h4, .sections-zone-head) span,
html body .sidebar .sections-zone-head,
html body .sidebar .sections-zone-head span {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
    opacity: 1 !important;
}

/* عناوين لوحات الإدارة فوق البانر الكحلي: طبقة الرسم كانت كحلي فاختفى العنوان والوصف */
html body.premium-ui .main-inner :is(.admin-page-head, .command-header, .command-header-premium, .erp-page-head, .module-chrome) :is(h1, h2, .page-title),
html body.premium-ui .main-inner :is(.admin-page-head, .command-header, .command-header-premium, .erp-page-head, .module-chrome) :is(h1, h2, .page-title) i,
html body.admin-mode :is(.admin-page-head, .command-header-premium, .erp-page-head) :is(h1, .page-title),
html body.admin-mode :is(.admin-page-head, .command-header-premium, .erp-page-head) :is(h1, .page-title) i {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    opacity: 1 !important;
}

html body.premium-ui .main-inner :is(.admin-page-head, .command-header, .command-header-premium, .erp-page-head) :is(p, .page-desc, .admin-build-stamp),
html body.admin-mode :is(.admin-page-head, .command-header-premium) :is(p, .page-desc, .admin-build-stamp) {
    color: #e7eef8 !important;
    -webkit-text-fill-color: #e7eef8 !important;
    opacity: 1 !important;
}

html body.premium-ui .admin-page-head .admin-eyebrow,
html body.premium-ui .admin-page-head .admin-eyebrow i {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}

html body.premium-ui .admin-page-head .btn-outline,
html body.premium-ui .admin-page-head .btn-outline span,
html body.premium-ui .admin-page-head .btn-outline i {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    border-color: rgba(247, 244, 234, 0.8) !important;
    background: transparent !important;
}

/* قائمة الموبايل: اللوحة كانت بيضاء والنص طالع بره المربع وداخل على الصف اللي بعده */
@media (max-width: 900px) {
    html body.accmaa-academy-chrome.sidebar-open .sidebar,
    html body.sidebar-open.guest-mode .sidebar,
    html body.sidebar-open.member-mode .sidebar,
    html body.sidebar-open.admin-mode .sidebar,
    html body.premium-ui.sidebar-open .sidebar,
    html body.accmaa-sidebar-lock.sidebar-open .sidebar {
        background: #0a3669 !important;
        background-image: none !important;
        color: #f7f4ea !important;
        -webkit-text-fill-color: #f7f4ea !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        inset-inline: 0 !important;
        top: var(--header-stack-h, 84px) !important;
        bottom: 0 !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        transform: none !important;
        z-index: 1000 !important;
        padding: 10px 12px 28px !important;
        overflow: hidden auto !important;
    }

    html body.sidebar-open .sidebar .logo-box,
    html body.sidebar-open .sidebar .logo-box * {
        background: transparent !important;
        background-image: none !important;
        filter: none !important;
        text-shadow: none !important;
    }

    html body.sidebar-open .sidebar .logo-box small,
    html body.sidebar-open .sidebar .logo-box p,
    html body.sidebar-open .sidebar .logo-box span,
    html body.sidebar-open .sidebar #sidebarSubtitle {
        color: #f4ead8 !important;
        -webkit-text-fill-color: #f4ead8 !important;
        opacity: 1 !important;
        font-size: 0.84rem !important;
        line-height: 1.45 !important;
        text-align: center !important;
    }

    html body.sidebar-open .sidebar .logo-box img,
    html body.sidebar-open .sidebar img.sidebar-logo {
        width: 88px !important;
        height: 88px !important;
        max-width: 88px !important;
        max-height: 88px !important;
        object-fit: contain !important;
        image-rendering: auto !important;
        transform: none !important;
        filter: none !important;
    }

    html body.sidebar-open .sidebar .sections-panel,
    html body.sidebar-open .sidebar .sections-panel.has-card-bg {
        background: #08305e !important;
        border: 1px solid rgba(246, 226, 154, 0.45) !important;
        border-radius: 14px !important;
        margin: 8px 2px 10px !important;
        overflow: hidden !important;
    }

    html body.sidebar-open .sidebar .icons-dock,
    html body.sidebar-open .sidebar #iconsDock,
    html body.sidebar-open #iconsDock {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(112px, auto) !important;
        gap: 10px !important;
        align-items: stretch !important;
        align-content: start !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 2px 2px 20px !important;
        filter: none !important;
    }

    html body.sidebar-open #sidebar #iconsDock .icon-btn,
    html body.accmaa-academy-chrome.sidebar-open .sidebar .icon-btn,
    html body.sidebar-open.guest-mode .sidebar .icon-btn,
    html body.sidebar-open .sidebar .icons-dock .icon-btn,
    html body.sidebar-open #iconsDock .icon-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: auto !important;
        min-height: 108px !important;
        max-height: none !important;
        overflow: hidden !important;
        padding: 12px 6px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        background: #0d4a86 !important;
        background-image: none !important;
        align-self: stretch !important;
        filter: none !important;
        transform: none !important;
    }

    html body.sidebar-open .sidebar .icon-btn .icon-bg-visual,
    html body.sidebar-open .sidebar .icon-btn .has-icon-bg {
        flex: 0 0 auto !important;
        width: 40px !important;
        height: 40px !important;
        max-height: 40px !important;
        filter: none !important;
        transform: none !important;
    }

    html body.sidebar-open #sidebar #iconsDock .icon-btn .icon-btn-label,
    html body.accmaa-academy-chrome.sidebar-open .sidebar .icon-btn .icon-btn-label,
    html body.sidebar-open.guest-mode .sidebar .icon-btn .icon-btn-label,
    html body.sidebar-open .sidebar .icons-dock .icon-btn .icon-btn-label,
    html body.sidebar-open #iconsDock .icon-btn .icon-btn-label {
        position: static !important;
        inset: auto !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
        white-space: normal !important;
        word-break: break-word !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 1.2em !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 2px !important;
        transform: none !important;
        flex: 0 0 auto !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        color: #f6e29a !important;
        -webkit-text-fill-color: #f6e29a !important;
    }

    html body.sidebar-open #accmaaVisitorDock,
    html body.sidebar-open .axg-dock {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* 20261106 — فتح المنصة: بلا ضباب وبدون طبقات عالقة فوق الصفحة */
html body .accmaa-brand-intro[hidden],
html body .accmaa-brand-intro.is-leaving {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
html body .topbar-premium,
html body .topbar-tools-glass,
html body .user-bar--creative,
html body .module-chrome,
html body .accmaa-orbit-stage,
html body .accmaa-orbit-core,
html body .accmaa-orbit-rings,
html body .hero,
html body .accmaa-home-hero {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html body .accmaa-orbit-sat-icon,
html body .accmaa-orbit-sat-icon i,
html body .icon-bg-visual,
html body .has-icon-bg,
html body .accmaa-orbit-core img,
html body .accmaa-brand-intro-logo {
    image-rendering: auto !important;
    filter: none !important;
    -webkit-filter: none !important;
}
html, body, .main-inner, .topbar-premium, .member-nav, .icon-btn-label {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 20261106 — قارئ الكتاب: العنوان ظاهر والملف لا يتعرض كنص خطأ */
html body .modal-overlay.book-reader {
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 28px 16px 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html body .book-reader__box {
    width: min(920px, 100%);
    max-width: 920px;
    margin: 12px auto 24px;
    padding: 22px 22px 18px;
}
html body .book-reader__title {
    margin: 0 0 8px;
    text-align: start;
    color: #0A3669;
    -webkit-text-fill-color: #0A3669;
    line-height: 1.45;
}
html body .book-reader__meta,
html body .book-reader__status {
    margin: 0 0 12px;
    color: #24344a;
    -webkit-text-fill-color: #24344a;
    line-height: 1.6;
}
html body .book-reader__frame {
    display: block;
    width: 100%;
    height: min(68vh, 720px);
    min-height: 280px;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    background: #fff;
}
html body .book-reader #closeBookReader {
    width: 100%;
    margin-top: 12px;
}

/* 20261106e — النوافذ فوق الهيدر الثابت عشان العنوان ما يتقصّش */
html body .modal-overlay.show { z-index: 4000 !important; }
html body .modal-overlay.book-reader { z-index: 13000 !important; }

/* 20261106f — حبر فاتح على كل سطح كحلي، والذهب يفضل كحلي. من غير قصّ للنص. */
html body.premium-ui .main-inner :is(
    .gov-command-hero,
    .gov-master-banner,
    .admin-page-head,
    .command-header,
    .command-header-premium,
    .erp-page-head,
    .module-chrome,
    .gov-live-head,
    .dash-preview-banner,
    .visitors-total-hero,
    .eco-governance-banner,
    .instructors-rail-head,
    .ak-cd-cta,
    .ak-cd-hero,
    .ak-svc-cta,
    .ak-sv-hero,
    .ak-sv-summary-head,
    .ak-courses-hero,
    .ak-tools-hero,
    .ak-trainers-hero,
    .hero-premium,
    .gift-hero,
    .gift-hero-premium,
    .ak-reach-host,
    .ak-reach-section,
    .ak-contact-info,
    .ak-drawer-head,
    .tafqeet-hero,
    .tafqeet-topbar,
    .accmaa-pay-hero,
    .accmaa-sub-banner,
    .erp-primary-tabs,
    .marquee-strip,
    .site-footer,
    .site-footer-rich,
    .site-footer-global
) :is(h1, h2, h3, h4, h5, p, li, a, small, strong, em, label, td, th, span, i, .page-title, .page-desc) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    opacity: 1 !important;
}

html body.admin-mode .main-inner .admin-sidebar :is(h1, h2, h3, h4, p, li, a, small, span, label, .admin-sidebar-title, .admin-sidebar-link) {
    color: #f4f8fc !important;
    -webkit-text-fill-color: #f4f8fc !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    opacity: 1 !important;
}

html body.admin-mode .main-inner .admin-sidebar .admin-sidebar-title,
html body.admin-mode .main-inner .admin-sidebar .admin-sidebar-title i {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}

html body.admin-mode .main-inner .admin-sidebar .admin-sidebar-link.active,
html body.admin-mode .main-inner .admin-sidebar .admin-sidebar-link.active :is(span, i) {
    color: #061b3f !important;
    -webkit-text-fill-color: #061b3f !important;
}

html body .main-inner :is(.erp-primary-tab.active, .erp-primary-tab:hover),
html body .main-inner :is(.erp-primary-tab.active, .erp-primary-tab:hover) :is(span, i, small) {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
}

html body .cmd-center-tab.active,
html body .cmd-center-tab.active :is(span, i, small) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    background: #061f3d !important;
}

html body.premium-ui .main-inner :is(
    .gov-command-hero,
    .gov-master-banner,
    .admin-page-head,
    .command-header-premium,
    .ak-courses-hero,
    .ak-tools-hero,
    .ak-cd-hero,
    .hero-premium
) :is(.btn-gold, .btn-primary, .ax-btn--gold),
html body.premium-ui .main-inner :is(
    .gov-command-hero,
    .gov-master-banner,
    .admin-page-head,
    .command-header-premium,
    .ak-courses-hero,
    .ak-tools-hero
) :is(.btn-gold, .btn-primary, .ax-btn--gold) :is(span, i) {
    color: #0a3669 !important;
    -webkit-text-fill-color: #0a3669 !important;
    background: #e8c547 !important;
    background-image: none !important;
}

html body .admin-build-stamp strong,
html body .admin-build-stamp--hero strong {
    color: #061b3f !important;
    -webkit-text-fill-color: #061b3f !important;
    background: #fff4d6 !important;
}

html body .erp-lines-table thead th {
    color: #faf3dc !important;
    -webkit-text-fill-color: #faf3dc !important;
    background: #0a3669 !important;
}

/* 20261106g — وصف اللوحات الفاتحة: الحبر كان كحلي والصندوق كحلي فاتختفي */
html body.admin-mode .admin-shell .page-desc,
html body.admin-mode .admin-shell .panel > p,
html body.admin-mode .admin-shell .panel-premium > p,
html body.admin-mode .admin-shell .content-panel > p,
html body.admin-mode .dash-admin .page-desc,
html body.admin-mode .gov-live-hub .page-desc {
    color: #1c2b45 !important;
    -webkit-text-fill-color: #1c2b45 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    opacity: 1 !important;
}
html body.premium-ui .main-inner :is(
    .gov-command-hero,
    .gov-master-banner,
    .admin-page-head,
    .command-header,
    .command-header-premium,
    .erp-page-head,
    .module-chrome,
    .gov-live-head,
    .dash-preview-banner,
    .visitors-total-hero,
    .hero-premium,
    .ak-courses-hero,
    .ak-tools-hero,
    .ak-cd-hero,
    .ak-drawer-head
) :is(h1, h2, h3, p, .page-title, .page-desc, small, span) {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

/* 20261106h — أزرار قراءة الكتاب وتحميله تحت العارض */
html body .book-reader__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
html body .book-reader__actions .btn,
html body .book-reader__actions #closeBookReader {
    width: auto;
    flex: 1 1 160px;
    margin-top: 0;
    text-align: center;
    text-decoration: none;
}

/* 20261106m — عناوين كروت الدفع فاتحة على الشريط الملون */
html body.premium-ui .main-inner .pay-plate__head h4,
html body.premium-ui .main-inner .pay-plate__head p,
html body .pay-plate__head h4,
html body .pay-plate__head p {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    background: transparent !important;
    opacity: 1 !important;
}
html body.premium-ui .main-inner .pay-plate__value,
html body .pay-plate__value {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
    background: #0A3669 !important;
}
html body .pay-plate__copy {
    color: #061f3d !important;
    -webkit-text-fill-color: #061f3d !important;
    background: #e8c547 !important;
}

/* 20261106n — صفحة الدفع: خلفية مصمتة والكتابة مش على العلامة المائية */
html body .accmaa-payments-hub {
    background: #f4efe4;
    border-radius: 24px;
    padding: 18px 16px 22px;
}
html body .accmaa-pay-hero,
html body .accmaa-pay-hero .page-title,
html body .accmaa-pay-hero .page-title i,
html body .accmaa-pay-hero h1,
html body .accmaa-pay-hero .page-desc,
html body .accmaa-pay-hero p,
html body.premium-ui .main-inner .accmaa-pay-hero .page-title,
html body.premium-ui .main-inner .accmaa-pay-hero .page-desc,
html body.premium-ui .main-inner .accmaa-pay-hero p {
    text-shadow: none !important;
}
html body.premium-ui .main-inner .accmaa-pay-hero .page-title,
html body.premium-ui .main-inner .accmaa-pay-hero h1,
html body .accmaa-pay-hero .page-title {
    color: #f6e29a !important;
    -webkit-text-fill-color: #f6e29a !important;
}
html body.premium-ui .main-inner .accmaa-pay-hero .page-desc,
html body.premium-ui .main-inner .accmaa-pay-hero p,
html body .accmaa-pay-hero .page-desc {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
}
html body .pay-stage,
html body .pay-plate,
html body .pay-plate__body {
    background-color: #fff;
}
html body .pay-stage { background: #fffdf8; }
html body .pay-plate__meta,
html body .pay-plate__meta span,
html body .pay-plate__meta b,
html body .pay-plate__row > span {
    color: #1c2b45 !important;
    -webkit-text-fill-color: #1c2b45 !important;
    background: transparent !important;
}
html body .pay-plate--bank .pay-plate__head { background: #0A3669 !important; }
html body .pay-plate__value {
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

/* 20261106o — سطر الطرق على البانر الكحلي بحبر كريمي واضح */
html body .accmaa-pay-hero .accmaa-pay-truth,
html body .accmaa-pay-hero .accmaa-pay-truth strong,
html body.premium-ui .main-inner .accmaa-pay-hero .accmaa-pay-truth,
html body.premium-ui .main-inner .accmaa-pay-hero .accmaa-pay-truth strong {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* 20261106p — الكتابة على الكريم كحلية، وعلى البانر الكحلي كريمية */
html body.premium-ui .main-inner .accmaa-payments-hub .page-desc-inline,
html body .accmaa-payments-hub .page-desc-inline {
    color: #1c2b45 !important;
    -webkit-text-fill-color: #1c2b45 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
html body .accmaa-pay-hero .page-desc-inline,
html body .accmaa-pay-hero .accmaa-pay-model,
html body .accmaa-pay-hero .accmaa-pay-truth,
html body .accmaa-pay-hero .accmaa-pay-truth strong,
html body.premium-ui .main-inner .accmaa-pay-hero .page-desc-inline,
html body.premium-ui .main-inner .accmaa-pay-hero .accmaa-pay-model {
    color: #f7f4ea !important;
    -webkit-text-fill-color: #f7f4ea !important;
    text-shadow: none !important;
}

html body #payNumbersNote {
    color: #1c2b45 !important;
    -webkit-text-fill-color: #1c2b45 !important;
    background: transparent !important;
    opacity: 1 !important;
}

html body.premium-ui .main-inner .accmaa-payments-hub .accmaa-join-panel .page-desc-inline,
html body.premium-ui .main-inner .accmaa-payments-hub .accmaa-join-panel p,
html body.premium-ui .main-inner .accmaa-payments-hub .content-panel .page-desc-inline,
html body.premium-ui .main-inner .accmaa-payments-hub .content-panel li {
    color: #1c2b45 !important;
    -webkit-text-fill-color: #1c2b45 !important;
    text-shadow: none !important;
}
