/* ============================================================
   Accmaa surface-aware contrast — launch harden 20260921c
   فاتح = حبر كحلي | داكن = حبر أبيض | عناصر فاتحة فوق الداكن = كحلي دائماً
   ============================================================ */

:root {
    --acc-text-heading: #071f3d;
    --acc-text-body: #1e3048;
    --acc-text-muted: #33485f;
    --acc-text-on-dark: #ffffff;
    --acc-text-on-dark-soft: #eef4fb;
    --acc-text-on-dark-accent: #f4d76e;
    --acc-ink-on-light: #061f3d;
}

html body.premium-ui .main-wrap :is(
    h1, h2, h3, h4, h5, h6, p, li, small, label, legend, td, th, summary
) {
    opacity: 1;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* بطاقات وألواح فاتحة */
html body.premium-ui :is(
    .ax-panel, .content-panel, .panel, .panel-premium,
    .ax-card, .course-card, .pillar-card, .gift-card, .doctor-card,
    .path-card, .faq-item, .accmaa-join-step, .ax-course-teasers li,
    .ax-course-story, .ax-item
) :is(h1, h2, h3, h4, h5, h6, strong, summary, .ax-card__title) {
    color: var(--acc-text-heading) !important;
    -webkit-text-fill-color: var(--acc-text-heading) !important;
}

html body.premium-ui :is(
    .ax-panel, .content-panel, .panel, .panel-premium,
    .ax-card, .course-card, .pillar-card, .gift-card, .doctor-card,
    .path-card, .faq-item, .accmaa-join-step, .ax-course-teasers li,
    .ax-course-story, .ax-item
) :is(p, li, small, label, td, .ax-card__desc, .ax-item__why) {
    color: var(--acc-text-body) !important;
    -webkit-text-fill-color: var(--acc-text-body) !important;
}

/* جزر كحلية: نص أبيض — بدون .ax-section--tint (خلفية فاتحة #f6f8fb) */
html body.premium-ui :is(
    .ax-hero--sell, .hero-premium, .cta-premium, .welcome-premium,
    .ax-start, .ax-welcome, .feature-item, .landing-stats-bar,
    .site-footer, .site-footer-global, .site-footer-rich,
    .accmaa-pay-hero, .pay-course-summary, .gov-master-banner,
    .command-header, .command-header-premium, .erp-page-head,
    .dash-preview-banner, .ms-trainer__bar, .ms-broadcast__caption,
    .ms-broadcast__bar, .ms-class__head, .ms-class__agenda, .ms-class__seek,
    .ak-cd-hero, .ak-ht-card:hover, .ak-reach-section
) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--acc-text-on-dark) !important;
    -webkit-text-fill-color: var(--acc-text-on-dark) !important;
    opacity: 1 !important;
}

html body.premium-ui :is(
    .ax-hero--sell, .hero-premium, .cta-premium, .welcome-premium,
    .ax-start, .ax-welcome, .feature-item, .landing-stats-bar,
    .site-footer, .site-footer-global, .site-footer-rich,
    .accmaa-pay-hero, .pay-course-summary, .gov-master-banner,
    .command-header, .command-header-premium, .erp-page-head,
    .dash-preview-banner, .ak-cd-hero, .ak-ht-card:hover, .ak-reach-section
) > :is(p, .ax-sub, .ak-cd-lead, .ak-cd-meta, .ax-hero__intro, .ax-hero__why, .ax-muted-line),
html body.premium-ui :is(
    .ax-hero--sell, .ax-start, .ax-welcome, .accmaa-pay-hero
) .ax-hero__text > :is(p, .ax-sub, .ax-hero__intro, .ax-hero__why, .ax-muted-line),
html body.premium-ui .ax-start > :is(p, .ax-sub),
html body.premium-ui .ax-start .ax-h2 {
    color: var(--acc-text-on-dark-soft) !important;
    -webkit-text-fill-color: var(--acc-text-on-dark-soft) !important;
    opacity: 1 !important;
}

/* قسم الهدايا فقط كحلي داخل tint */
html body.premium-ui .ax-section--tint#axGifts :is(h1, h2, h3, h4, h5, h6, .ax-h2),
html body.premium-ui .ax-section--tint#axGifts :is(p, .ax-sub, .ax-tile) {
    color: var(--acc-text-on-dark) !important;
    -webkit-text-fill-color: var(--acc-text-on-dark) !important;
    opacity: 1 !important;
}
html body.premium-ui .ax-section--tint#axGifts .ax-sub {
    color: var(--acc-text-on-dark-soft) !important;
    -webkit-text-fill-color: var(--acc-text-on-dark-soft) !important;
}

/* tint العام = سطح فاتح → حبر كحلي */
html body.premium-ui .ax-section--tint:not(#axGifts) :is(h1, h2, h3, h4, h5, h6, .ax-h2) {
    color: var(--acc-text-heading) !important;
    -webkit-text-fill-color: var(--acc-text-heading) !important;
}
html body.premium-ui .ax-section--tint:not(#axGifts) :is(p, .ax-sub, small, li) {
    color: var(--acc-text-body) !important;
    -webkit-text-fill-color: var(--acc-text-body) !important;
}

/* دخلة المنصة — خلفية كحلية دائماً */
html body .accmaa-brand-intro :is(
    .accmaa-brand-intro-title, .accmaa-brand-intro-tagline, .accmaa-brand-intro-welcome
) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}
html body .accmaa-brand-intro .accmaa-brand-intro-eyebrow {
    color: #e8c547 !important;
    -webkit-text-fill-color: #e8c547 !important;
    opacity: 1 !important;
}

html body.premium-ui .ax-start .ax-h2,
html body.premium-ui .ax-hero--sell .ax-h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* شريط ذهبي / شارة فاتحة فوق بحر كحلي = حبر كحلي فقط */
html body.premium-ui :is(.ax-note--gold, .ax-note.ax-note--gold),
html body.premium-ui :is(.ax-note--gold, .ax-note.ax-note--gold) :is(span, i, strong, b) {
    color: #061f3d !important;
    -webkit-text-fill-color: #061f3d !important;
    background-color: #F5E6B8 !important;
}
html body.premium-ui .ax-note--gold i {
    color: #8a6d12 !important;
    -webkit-text-fill-color: #8a6d12 !important;
    background: transparent !important;
}

/* أزرار وشرائح فاتحة فوق أي سطح داكن */
html body.premium-ui :is(
    .ax-btn--ghost, .ax-btn--gold, .btn-gold, .ax-chip, .ax-item__kind,
    .ax-item__meta > .ax-chip
),
html body.premium-ui :is(
    .ax-btn--ghost, .ax-btn--gold, .btn-gold, .ax-chip, .ax-item__kind
) :is(span, i, strong, b, small, em) {
    color: #061f3d !important;
    -webkit-text-fill-color: #061f3d !important;
}

html body.premium-ui .ax-btn--ghost {
    background: #ffffff !important;
    border-color: #d7e0ea !important;
}
html body.premium-ui .ax-btn--gold,
html body.premium-ui .btn-gold {
    background: #FFD54F !important;
}

html body.premium-ui .ax-hero--sell .ax-item__meta > .ax-chip,
html body.premium-ui .ax-hero--sell .ax-item__kind {
    background: #eef3f9 !important;
}

/* خطوات الاشتراك على الكحلي تبقى بيضاء */
html body.premium-ui .ax-start .ax-step,
html body.premium-ui .ax-start .ax-step :is(span, small, strong):not(.ax-step__num) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body.premium-ui .ax-start .ax-step__num {
    color: #061f3d !important;
    -webkit-text-fill-color: #061f3d !important;
}

/* شريط الموافقة */
html body.premium-ui .accmaa-cookie-consent,
html body.premium-ui .accmaa-cookie-consent :is(p, span, small) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html body.premium-ui .accmaa-cookie-consent a {
    color: #FFD54F !important;
    -webkit-text-fill-color: #FFD54F !important;
}
html body.premium-ui .accmaa-cookie-consent__btn {
    color: #061f3d !important;
    -webkit-text-fill-color: #061f3d !important;
}

/* حقول الإدخال */
html body.premium-ui :is(input, textarea, select, .gov-table td, .gov-table th) {
    color: #16233a;
    -webkit-text-fill-color: #16233a;
    opacity: 1;
}
