/**
 * Taj Alwuqar — زر إمكانية الوصول (يمين أسفل) + لوحة الخيارات
 */

.iqfal-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* يمين الشاشة — بعيد عن واتساب (يسار) */
.iqfal-a11y-toolbar {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 18px));
    left: auto;
    bottom: max(22px, env(safe-area-inset-bottom, 22px));
    z-index: 100100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

html[dir="ltr"] .iqfal-a11y-toolbar {
    right: max(18px, env(safe-area-inset-right, 18px));
    left: auto;
}

.iqfal-a11y-toolbar__panel {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 39, 68, 0.96);
    border: 1px solid rgba(201, 162, 77, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    min-width: 200px;
}

.iqfal-a11y-toolbar.is-open .iqfal-a11y-toolbar__panel {
    display: flex;
}

.iqfal-a11y-toolbar__panel button {
    width: 100%;
    text-align: start;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: #f7f5f2;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
}

.iqfal-a11y-toolbar__panel button:hover,
.iqfal-a11y-toolbar__panel button:focus-visible {
    background: rgba(201, 162, 77, 0.2);
    outline: 2px solid #c9a24d;
    outline-offset: 2px;
}

.iqfal-a11y-toolbar__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(201, 162, 77, 0.65);
    background: linear-gradient(165deg, #0f2744, #15365a);
    color: #fceea3;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iqfal-a11y-toolbar__toggle:focus-visible {
    outline: 3px solid #c9a24d;
    outline-offset: 3px;
}

/* خيارات المستخدم (تُفعَّل من اللوحة فقط) */
html.iqfal-a11y-senior button,
html.iqfal-a11y-senior .btn,
html.iqfal-a11y-senior a.btn,
html.iqfal-a11y-senior .hero-cta {
    min-height: 44px;
    min-width: 44px;
    font-size: 1.05rem;
}

html.iqfal-a11y-senior {
    font-size: 106%;
}

html.iqfal-a11y-senior .premium-card-desc,
html.iqfal-a11y-senior .details-desc-scroll {
    line-height: 1.65;
}

html.iqfal-a11y-high-contrast {
    filter: contrast(1.22) saturate(1.05);
}

html.iqfal-a11y-high-contrast body,
html.iqfal-a11y-high-contrast .btn,
html.iqfal-a11y-high-contrast .premium-card,
html.iqfal-a11y-high-contrast .deal-card,
html.iqfal-a11y-high-contrast .iqfal-ad-plan-card,
html.iqfal-a11y-high-contrast .modal-content {
    border-color: #0f172a !important;
}

html.iqfal-a11y-high-contrast .btn,
html.iqfal-a11y-high-contrast a,
html.iqfal-a11y-high-contrast label,
html.iqfal-a11y-high-contrast p,
html.iqfal-a11y-high-contrast h1,
html.iqfal-a11y-high-contrast h2,
html.iqfal-a11y-high-contrast h3 {
    text-shadow: none;
}

html.iqfal-a11y-voice-mode .iqfal-a11y-voice-highlight {
    outline: 3px solid #f59e0b !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.25);
}

.iqfal-a11y-stop {
    font-size: 0.72rem !important;
}

html.iqfal-a11y-reduce-motion *,
html.iqfal-a11y-reduce-motion *::before,
html.iqfal-a11y-reduce-motion *::after {
    animation: none !important;
    transition: none !important;
}

@media (max-width: 480px) {
    .iqfal-a11y-toolbar {
        right: max(12px, env(safe-area-inset-right, 12px));
        bottom: max(18px, env(safe-area-inset-bottom, 18px));
    }

    .iqfal-a11y-toolbar__toggle {
        width: 52px;
        height: 52px;
    }
}
