/* Accmaa 20260818d — kill remaining garbled overlays + encoding-safe hero
   Root cause (18c incomplete): Accmaa.html static Arabic was double-encoded
   (UTF-8 mis-saved), so insights badge / first-paint text showed mojibake.
   Also reinforce: no floating term pills, no blur/scale on ≤1100.
*/

/* Insights badge/track must stay upright readable Arabic */
html body .topbar-acct-insights,
html body .topbar-acct-insights__badge,
html body .topbar-acct-insights__text,
html body .topbar-acct-insights__marquee,
html body .topbar-acct-insights__track {
    transform: none !important;
    filter: none !important;
    writing-mode: horizontal-tb !important;
    unicode-bidi: plaintext;
    direction: inherit;
    text-orientation: mixed !important;
    scale: none !important;
}

/* Never show decorative floating keyword pills on guest/member home */
html body .hero-floating-terms,
html body #heroGuest .hero-floating-terms,
html body .hero-premium .hero-floating-terms,
html body.guest-mode .hero-floating-terms {
    display: none !important;
    visibility: hidden !important;
    content: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Cinema terms stay in top strip — never overlay hero as inverted scramble */
html body #heroGuest .acc-cinema-term,
html body #heroGuest .accmaa-accounting-cinema {
    display: none !important;
}
/* Do NOT force transform:none on .acc-cinema-*-track — marquee needs translate3d */
html body .accmaa-accounting-cinema {
    filter: none !important;
    writing-mode: horizontal-tb !important;
}
html body .acc-cinema-term {
    /* individual pills stay upright; track may translate */
    filter: none !important;
    writing-mode: horizontal-tb !important;
}
html body .acc-cinema-terms-track,
html body .acc-cinema-track {
    filter: none !important;
    writing-mode: horizontal-tb !important;
}

/* Hero copy sharpness */
html body #heroGuest .hero-premium-content,
html body #heroGuest .hero-premium-content h1,
html body #heroGuest .hero-premium-content p,
html body #heroGuest .hero-premium-badge {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    writing-mode: horizontal-tb !important;
}

/* Mobile ≤1100 — no blur/scale pixelation */
@media (max-width: 1100px) {
    html body #heroGuest,
    html body .hero-premium,
    html body .hero-premium-inner,
    html body .hero-photo-slider,
    html body .dash-zone,
    html body .section-block,
    html body .reveal-section,
    html body .topbar-acct-insights,
    html body .topbar-acct-insights * {
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        scale: none !important;
    }
}

/* Keep hero without background video */
html body #heroGuest .hero-platform-video,
html body .hero-premium .hero-platform-video {
    display: none !important;
}
