/*
 * AstronovAI v19.1 — consolidated late dark-mode compatibility layer.
 *
 * This file intentionally loads in the footer after shortcode and page-level
 * styles. It replaces the former inline <style> patches while preserving their
 * exact cascade order and visual output.
 */

/* ===== astronovai-dark-mode-late-contrast-seal (moved from assets.php) ===== */
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .entry-content,
                .ast-article-single,
                .site-main,
                .blog-category-page,
                .single-blog-page,
                .compare-container,
                .taxonomy-page.ai-category-premium-page,
                .modern-tool-page,
                .ai-submit-premium,
                .ai-dashboard-premium,
                .favorites-page,
                .favorites-wrap
            ){
                background:transparent!important;
                background-color:transparent!important;
                color:#e6eefb!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page.ai-category-premium-page{
                --ai-ink:#ffffff!important;
                --ai-muted:#c5d3e8!important;
                --ai-soft:#0f1b2e!important;
                --ai-line:rgba(191,219,254,.16)!important;
                --ai-card:#0b172a!important;
                --cat-bg:#020817!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-submit-premium{
                --ai-navy:#ffffff!important;
                --ai-muted:#c5d3e8!important;
                --ai-primary-soft:rgba(96,165,250,.16)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page.ai-category-premium-page:before,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page.ai-category-premium-page::before{
                background:linear-gradient(180deg,#020817 0%,#061426 100%)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .ai-night-force-surface,
                .ai-night-light-surface,
                .compare-container .summary-card,
                .compare-container .compare-fit-card,
                .compare-container .compare-choice-card,
                .compare-container .highlight-card,
                .compare-container .methodology-card,
                .compare-container .compare-methodology,
                .compare-container .compare-final-cta,
                .compare-container .compare-final-cta-premium,
                .compare-container .compare-related-section,
                .compare-container .compare-related-premium,
                .compare-container .related-compare-card,
                .compare-container .compare-alt-card,
                .compare-container .compare-suggestion-card,
                .compare-container .compare-tool-card,
                .compare-container .compare-hero-tool,
                .compare-container .compare-hero-tool-stats span,
                .compare-container .compare-table-section,
                .compare-container .compare-premium-table,
                .compare-container .compare-row>div,
                .compare-container .modern-discussion-section,
                .compare-container .modern-discussion-box,
                .compare-container .modern-discussion-head,
                .compare-container .modern-discussion-head.premium,
                .compare-container .modern-discussion-guidelines div,
                .compare-container .modern-discussion-stats div,
                .compare-container .modern-discussion-composer-card,
                .compare-container .modern-discussion-form,
                .compare-container .modern-discussion-field,
                .compare-container .modern-discussion-empty-card,
                .single-blog-page .single-blog-hero,
                .single-blog-page .single-blog-article,
                .single-blog-page .single-blog-main,
                .single-blog-page .single-blog-content,
                .single-blog-page .single-blog-content-wrap,
                .single-blog-page .single-blog-decision-strip div,
                .single-blog-page .single-blog-share-card,
                .single-blog-page .blog-review-notice,
                .single-blog-page .blog-review-notice-item,
                .single-blog-page .blog-table-wrap,
                .single-blog-page .blog-sidebar-card,
                .single-blog-page .blog-sidebar-tool,
                .single-blog-page .single-blog-tab-panel,
                .single-blog-page .single-blog-discussion-standalone,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-section,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-box,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-head,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-guidelines div,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-stats div,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-composer-card,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-form,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-field,
                .single-blog-page .single-blog-discussion-standalone .modern-discussion-empty-card,
                .blog-category-page .blog-category-more-guides,
                .blog-category-page .blog-category-empty-state,
                .blog-category-page .blog-card,
                .taxonomy-page .taxonomy-surface-block,
                .taxonomy-page .taxonomy-tool-board,
                .taxonomy-page .taxonomy-faq-section,
                .taxonomy-page .taxonomy-intro-card,
                .taxonomy-page .taxonomy-decision-card,
                .taxonomy-page .taxonomy-brief-list div,
                .taxonomy-page .taxonomy-signal-grid article,
                .taxonomy-page .taxonomy-tools-section,
                .taxonomy-page .taxonomy-knowledge-grid>*,
                .taxonomy-page .taxonomy-bottom-grid>*,
                .taxonomy-page .related-categories,
                .taxonomy-page .category-seo-section,
                .taxonomy-page .popular-comparisons-section,
                .taxonomy-page .category-flow-step,
                .taxonomy-page .category-hero-pick,
                .modern-tool-page .modern-tool-card,
                .modern-tool-page .modern-tool-info-card,
                .modern-tool-page .modern-tool-card-grid.inner>*,
                .modern-tool-page .modern-tool-feature-card,
                .modern-tool-page .modern-tool-list li,
                .modern-tool-page .modern-tool-sidebar-card,
                .ai-submit-premium .ai-submit-hero,
                .ai-submit-premium .ai-submit-card,
                .ai-submit-premium .ai-submit-form-card,
                .ai-submit-premium .ai-submit-status-card,
                .ai-submit-premium .ai-submit-guidelines,
                .ai-submit-premium .ai-submit-steps li,
                .ai-submit-premium .ai-submit-review-note,
                .ai-submit-premium .ai-submit-back,
                .ai-dashboard-premium .ai-account-panel,
                .ai-dashboard-premium .ai-profile-card-pro,
                .ai-dashboard-premium .ai-account-sidebar,
                .ai-dashboard-premium .ai-account-sidebar a,
                .ai-dashboard-premium .ai-stat-card-pro,
                .ai-dashboard-premium .ai-account-overview-card,
                .ai-dashboard-premium .ai-account-tool-card,
                .ai-dashboard-premium .ai-empty-state,
                .ai-dashboard-premium .ai-empty-state-pro,
                .ai-dashboard-premium .ai-dashboard-list a,
                .ai-dashboard-premium .ai-activity-item,
                .ai-dashboard-premium .ai-preference-group,
                .favorites-page .favorites-hero,
                .favorites-page .favorites-section,
                .favorites-page .favorites-stat-card,
                .favorites-page .favorites-empty,
                .favorites-page .favorites-comparison-card,
                .favorites-page .favorites-article-card
            ){
                background:radial-gradient(circle at 12% 0%,rgba(96,165,250,.13),transparent 36%),radial-gradient(circle at 88% 0%,rgba(129,140,248,.14),transparent 34%),linear-gradient(180deg,rgba(16,31,54,.98),rgba(7,18,34,.99))!important;
                background-color:#0b172a!important;
                border-color:rgba(191,219,254,.23)!important;
                color:#e6eefb!important;
                box-shadow:0 26px 76px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.06)!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .compare-container,
                .single-blog-page,
                .modern-tool-page,
                .taxonomy-page,
                .ai-submit-premium,
                .ai-dashboard-premium,
                .favorites-page,
                .blog-category-page,
                .blog-container
            ) :is(h1,h2,h3,h4,h5,h6,strong,b,.compare-title,.modern-tool-card-title,.modern-tool-info-title,.modern-tool-section-title){
                color:#ffffff!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:0 1px 20px rgba(0,0,0,.18)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .compare-container,
                .single-blog-page,
                .modern-tool-page,
                .taxonomy-page,
                .ai-submit-premium,
                .ai-dashboard-premium,
                .favorites-page,
                .blog-category-page,
                .blog-container
            ) :is(p,li,dd,dt,td,th,label,legend,small,span,em,.description,.entry-meta,.blog-meta,.tool-meta,.taxonomy-description,.archive-description){
                color:#c5d3e8!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .ai-submit-field input,
                .ai-submit-field select,
                .ai-submit-field textarea,
                .modern-discussion-field textarea,
                .modern-discussion-edit-form textarea,
                .search-field,
                .ai-header-search input
            ){
                background:#0d1b30!important;
                background-color:#0d1b30!important;
                color:#f8fafc!important;
                border-color:rgba(191,219,254,.22)!important;
            }


            /* v18.22: auth pages are generated with inline !important CSS,
               so this footer seal must also own their dark-mode contrast. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .skip-link,
            html[data-ai-theme="dark"] body.astronovai-premium-theme a.skip-link,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .skip-link.screen-reader-text{
                display:none!important;
                visibility:hidden!important;
                opacity:0!important;
                width:0!important;
                height:0!important;
                overflow:hidden!important;
                pointer-events:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(
                #page,.site,.site-content,.content-area,.site-main,.entry-content,.ast-container,.ai-content-container,.ast-article-single,.ast-article-post,.entry-content-wrap
            ),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(
                #page,.site,.site-content,.content-area,.site-main,.entry-content,.ast-container,.ai-content-container,.ast-article-single,.ast-article-post,.entry-content-wrap
            ),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(
                #page,.site,.site-content,.content-area,.site-main,.entry-content,.ast-container,.ai-content-container,.ast-article-single,.ast-article-post,.entry-content-wrap
            ){
                background:transparent!important;
                background-color:transparent!important;
                box-shadow:none!important;
                border-color:transparent!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.entry-title,.page-title),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.entry-title,.page-title),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.entry-title,.page-title){
                display:none!important;
                visibility:hidden!important;
                opacity:0!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth .ai-auth-premium,
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) .ai-auth-premium{
                background:transparent!important;
                background-color:transparent!important;
                box-shadow:none!important;
                border-color:transparent!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-auth-panel,.ai-auth-card,.ai-account-wrap.ai-auth-wrap),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-auth-panel,.ai-auth-card,.ai-account-wrap.ai-auth-wrap),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-auth-panel,.ai-auth-card,.ai-account-wrap.ai-auth-wrap){
                background:radial-gradient(circle at 86% 14%,rgba(129,140,248,.18),transparent 34%),radial-gradient(circle at 16% 0%,rgba(96,165,250,.12),transparent 34%),linear-gradient(180deg,rgba(16,31,54,.98),rgba(7,18,34,.99))!important;
                background-color:#0b172a!important;
                border-color:rgba(191,219,254,.24)!important;
                color:#eef6ff!important;
                box-shadow:0 26px 76px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06)!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-auth-panel h1,.ai-auth-card h2,.ai-account-wrap.ai-auth-wrap h1,.ai-auth-panel strong,.ai-auth-card strong),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-auth-panel h1,.ai-auth-card h2,.ai-account-wrap.ai-auth-wrap h1,.ai-auth-panel strong,.ai-auth-card strong),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-auth-panel h1,.ai-auth-card h2,.ai-account-wrap.ai-auth-wrap h1,.ai-auth-panel strong,.ai-auth-card strong){
                color:#ffffff!important;
                opacity:1!important;
                text-shadow:0 1px 22px rgba(0,0,0,.24)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth .ai-auth-kicker,
            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth .ai-account-wrap.ai-auth-wrap:before,
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) .ai-auth-kicker,
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) .ai-account-wrap.ai-auth-wrap:before,
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) .ai-auth-kicker,
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) .ai-account-wrap.ai-auth-wrap:before{
                color:#a5b4fc!important;
                background:rgba(96,165,250,.12)!important;
                border-radius:10px!important;
                padding:6px 10px!important;
                width:max-content!important;
                max-width:100%!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-auth-panel p,.ai-consent-note-outside,.ai-account-form label,.ai-account-form small,.ai-check,.ai-consent-text,.ai-consent-title),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-auth-panel p,.ai-consent-note-outside,.ai-account-form label,.ai-account-form small,.ai-check,.ai-consent-text,.ai-consent-title),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-auth-panel p,.ai-consent-note-outside,.ai-account-form label,.ai-account-form small,.ai-check,.ai-consent-text,.ai-consent-title){
                color:#c5d3e8!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-auth-benefits span,.ai-auth-steps span,.ai-consent-box),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-auth-benefits span,.ai-auth-steps span,.ai-consent-box),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-auth-benefits span,.ai-auth-steps span,.ai-consent-box){
                background:rgba(13,27,48,.95)!important;
                background-color:#0d1b30!important;
                border-color:rgba(191,219,254,.20)!important;
                color:#edf5ff!important;
                box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 34px rgba(0,0,0,.22)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-account-form input[type="text"],.ai-account-form input[type="email"],.ai-account-form input[type="password"],.ai-account-form select,.ai-account-form textarea),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-account-form input[type="text"],.ai-account-form input[type="email"],.ai-account-form input[type="password"],.ai-account-form select,.ai-account-form textarea),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-account-form input[type="text"],.ai-account-form input[type="email"],.ai-account-form input[type="password"],.ai-account-form select,.ai-account-form textarea){
                background:#0d1b30!important;
                background-color:#0d1b30!important;
                color:#f8fafc!important;
                border-color:rgba(191,219,254,.24)!important;
                box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme.ai-page-auth :is(.ai-auth-links a,.ai-consent-text a),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-auth-premium) :is(.ai-auth-links a,.ai-consent-text a),
            html[data-ai-theme="dark"] body.astronovai-premium-theme:has(.ai-account-wrap.ai-auth-wrap) :is(.ai-auth-links a,.ai-consent-text a){
                color:#7db7ff!important;
                opacity:1!important;
            }

            /* =========================================================
               v18.33 — Component contrast cleanup
               Exact, CSS-only fixes for the remaining light islands and
               faded controls. Kept inside the final footer seal so these
               rules win over legacy page CSS without runtime mutation.
               ========================================================= */

            /* Single tool: hero, share rail, anchor nav and reviews. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-share,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-nav,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium > div,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium > button,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-share,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-nav,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium > div,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium > button{
                background:
                    radial-gradient(circle at 88% 0%,rgba(129,140,248,.14),transparent 34%),
                    linear-gradient(180deg,rgba(18,35,63,.985),rgba(8,20,38,.995))!important;
                background-color:#0b172a!important;
                border-color:rgba(147,197,253,.24)!important;
                color:#edf5ff!important;
                box-shadow:0 22px 64px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.055)!important;
                opacity:1!important;
                filter:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main :is(h1,h2,h3,strong),
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card :is(h2,h3,strong),
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main :is(h1,h2,h3,strong),
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card :is(h2,h3,strong){
                color:#ffffff!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main :is(p,.modern-tool-tagline),
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card p,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium span,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-hero-main :is(p,.modern-tool-tagline),
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-review-hero-card p,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium span{
                color:#c8d7eb!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium strong,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-review-summary.premium strong{
                color:#f8fbff!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-nav a,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-nav a{
                color:#9fc8ff!important;
                background:transparent!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-nav a:hover,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-nav a:hover{
                color:#ffffff!important;
                background:rgba(96,165,250,.14)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-share-label,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-share-label{
                color:#dce9f8!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons .modern-share-btn,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons a.modern-share-btn,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons button.modern-share-btn,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons .modern-share-btn,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons a.modern-share-btn,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-share-buttons button.modern-share-btn{
                background:#10213b!important;
                border-color:rgba(147,197,253,.24)!important;
                box-shadow:none!important;
                opacity:1!important;
            }

            /* Taxonomy: the second intelligence panel and its inner cards. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .category-ranking-info,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .category-ranking-info .ranking-box,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .taxonomy-description,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .taxonomy-signal-grid article,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .category-ranking-info,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .category-ranking-info .ranking-box,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .taxonomy-description,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .taxonomy-signal-grid article{
                background:
                    radial-gradient(circle at 92% 0%,rgba(129,140,248,.14),transparent 34%),
                    linear-gradient(180deg,rgba(18,35,63,.985),rgba(8,20,38,.995))!important;
                background-color:#0b172a!important;
                border-color:rgba(147,197,253,.22)!important;
                color:#eaf3ff!important;
                box-shadow:0 20px 56px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.05)!important;
                opacity:1!important;
                filter:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .category-ranking-info :is(h2,strong),
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .category-ranking-info :is(h2,strong){
                color:#ffffff!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .category-ranking-info :is(p,span),
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .taxonomy-description,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .category-ranking-info :is(p,span),
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .taxonomy-description{
                color:#c7d6ea!important;
                opacity:1!important;
            }

            /* Tool cards: readable pricing/status chips and actions. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card :is(.tool-pricing,.pricing,.pricing-badge,.badge-pricing,.ai-recommendation-badge),
            html.ai-theme-dark body.astronovai-premium-theme .tool-card :is(.tool-pricing,.pricing,.pricing-badge,.badge-pricing,.ai-recommendation-badge){
                background:rgba(96,165,250,.13)!important;
                border:1px solid rgba(147,197,253,.22)!important;
                color:#dcebff!important;
                opacity:1!important;
                box-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card :is(.official-btn,.compare-btn),
            html.ai-theme-dark body.astronovai-premium-theme .tool-card :is(.official-btn,.compare-btn){
                background:#0d1c32!important;
                border-color:rgba(147,197,253,.25)!important;
                color:#eef6ff!important;
                opacity:1!important;
                box-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card :is(.visit-btn,.visit-tool-btn,.tool-main-btn,.visit-tool-page),
            html.ai-theme-dark body.astronovai-premium-theme .tool-card :is(.visit-btn,.visit-tool-btn,.tool-main-btn,.visit-tool-page){
                background:linear-gradient(90deg,#2563eb,#4f46e5)!important;
                border-color:rgba(129,140,248,.45)!important;
                color:#ffffff!important;
                opacity:1!important;
                box-shadow:0 10px 24px rgba(37,99,235,.20)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card :is(.visit-btn,.visit-tool-btn,.tool-main-btn,.visit-tool-page) *,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card :is(.visit-btn,.visit-tool-btn,.tool-main-btn,.visit-tool-page) *{
                color:#ffffff!important;
                opacity:1!important;
            }

            /* Comparison cards used on tool pages and related sections. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-card,
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-card{
                background:linear-gradient(180deg,rgba(17,34,61,.99),rgba(7,18,34,.995))!important;
                border-color:rgba(147,197,253,.22)!important;
                color:#dce8f8!important;
                box-shadow:0 18px 48px rgba(0,0,0,.30)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-card .featured-comparison-title,
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-card .featured-comparison-title{
                color:#ffffff!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-card :is(em,.compare-suggestion-meta),
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-card :is(em,.compare-suggestion-meta){
                color:#c7d6ea!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-card :is(.featured-comparison-badge,.featured-comparison-action),
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-card :is(.featured-comparison-badge,.featured-comparison-action){
                display:inline-flex!important;
                width:max-content!important;
                max-width:100%!important;
                padding:7px 10px!important;
                border-radius:999px!important;
                background:rgba(96,165,250,.14)!important;
                border:1px solid rgba(147,197,253,.20)!important;
                color:#8fc4ff!important;
                opacity:1!important;
            }

            /* Comparison FAQ and discussion: remove pale white rows. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .compare-faq-tool-list li,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .modern-discussion-empty,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .modern-discussion-empty-card,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .compare-faq-tool-list li,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .modern-discussion-empty,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .modern-discussion-empty-card{
                background:#0d1c32!important;
                background-color:#0d1c32!important;
                border-color:rgba(147,197,253,.22)!important;
                color:#d8e6f7!important;
                box-shadow:none!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .compare-faq-tool-list li strong,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .compare-faq-tool-list li strong{
                color:#ffffff!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .compare-faq-tool-list li,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-container .compare-faq-tool-list li *,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .compare-faq-tool-list li,
            html.ai-theme-dark body.astronovai-premium-theme .compare-container .compare-faq-tool-list li *{
                opacity:1!important;
            }

            /* Blog ranked tool cards and medals. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-page .blog-tool-card,
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-page .blog-tool-card{
                background:
                    radial-gradient(circle at 100% 0%,rgba(96,165,250,.10),transparent 34%),
                    linear-gradient(180deg,rgba(18,35,63,.985),rgba(8,20,38,.995))!important;
                border-color:rgba(147,197,253,.22)!important;
                color:#dbe8f8!important;
                box-shadow:0 20px 58px rgba(0,0,0,.32)!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-page .blog-tool-card :is(h3,strong),
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-page .blog-tool-card :is(h3,strong){
                color:#ffffff!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-page .blog-tool-card :is(p,li),
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-page .blog-tool-card :is(p,li){
                color:#c8d7eb!important;
                opacity:1!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-page .blog-tool-medal,
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-page .blog-tool-medal{
                background:rgba(96,165,250,.14)!important;
                border:1px solid rgba(147,197,253,.22)!important;
                color:#dcecff!important;
                opacity:1!important;
            }

            /* Account empty state: remove the duplicate blank pseudo icon. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-state::before,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-state-pro::before,
            html.ai-theme-dark body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-state::before,
            html.ai-theme-dark body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-state-pro::before{
                display:none!important;
                content:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-icon,
            html.ai-theme-dark body.astronovai-premium-theme .ai-dashboard-premium .ai-empty-icon{
                background:rgba(59,130,246,.16)!important;
                border:1px solid rgba(147,197,253,.20)!important;
                color:#8fc4ff!important;
                opacity:1!important;
                box-shadow:none!important;
            }
        

/* ===== astronovai-v18-34-light-surface-text-contrast (moved from assets.php) ===== */
            /* -------------------------------------------------
               Shared light-surface palette inside dark mode
            ------------------------------------------------- */
            html[data-ai-theme="dark"] body.astronovai-premium-theme,
            html.ai-theme-dark body.astronovai-premium-theme{
                --ai-night-light-surface:#f8fbff;
                --ai-night-light-surface-2:#eef4fb;
                --ai-night-on-light:#10213b;
                --ai-night-on-light-strong:#071426;
                --ai-night-on-light-muted:#49617f;
                --ai-night-on-light-link:#155eef;
            }

            /* Home section CTA: Browse trends / See new tools. */
            html[data-ai-theme="dark"] body.home.astronovai-premium-theme .section-head .section-view-link,
            html.ai-theme-dark body.home.astronovai-premium-theme .section-head .section-view-link{
                background:linear-gradient(180deg,var(--ai-night-light-surface),var(--ai-night-light-surface-2))!important;
                border-color:rgba(96,165,250,.32)!important;
                color:var(--ai-night-on-light-strong)!important;
                opacity:1!important;
            }
            html[data-ai-theme="dark"] body.home.astronovai-premium-theme .section-head .section-view-link span,
            html.ai-theme-dark body.home.astronovai-premium-theme .section-head .section-view-link span{
                color:var(--ai-night-on-light-strong)!important;
                opacity:1!important;
            }

            /* Home/tool cards: white pricing chips must use dark text. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(.home-mini-price,.tool-pricing,.pricing-badge,.badge-pricing),
            html.ai-theme-dark body.astronovai-premium-theme :is(.home-mini-price,.tool-pricing,.pricing-badge,.badge-pricing){
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.65)!important;
                color:var(--ai-night-on-light)!important;
                text-shadow:none!important;
                opacity:1!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(.home-mini-price,.tool-pricing,.pricing-badge,.badge-pricing) *,
            html.ai-theme-dark body.astronovai-premium-theme :is(.home-mini-price,.tool-pricing,.pricing-badge,.badge-pricing) *{
                color:var(--ai-night-on-light)!important;
                opacity:1!important;
            }

            /* Stable white logo tiles and readable fallback letters / VS chips. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .home-mini-logo-wrap,
                .tool-logo-wrap,
                .modern-tool-logo,
                .featured-comparison-logo-wrap,
                .compare-hero-logo-wrap
            ),
            html.ai-theme-dark body.astronovai-premium-theme :is(
                .home-mini-logo-wrap,
                .tool-logo-wrap,
                .modern-tool-logo,
                .featured-comparison-logo-wrap,
                .compare-hero-logo-wrap
            ){
                background:var(--ai-night-light-surface)!important;
                background-color:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .home-mini-logo-letter,
                .tool-logo-letter,
                .modern-tool-logo-letter,
                .featured-comparison-logo-wrap i,
                .compare-hero-logo-wrap i,
                .featured-comparison-vs
            ),
            html.ai-theme-dark body.astronovai-premium-theme :is(
                .home-mini-logo-letter,
                .tool-logo-letter,
                .modern-tool-logo-letter,
                .featured-comparison-logo-wrap i,
                .compare-hero-logo-wrap i,
                .featured-comparison-vs
            ){
                color:var(--ai-night-on-light-strong)!important;
                opacity:1!important;
                text-shadow:none!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-vs,
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-vs{
                background:var(--ai-night-light-surface-2)!important;
                border-color:rgba(191,219,254,.78)!important;
            }

            /* Single tool hero category/pricing pills. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-pills :is(a,span),
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-pills :is(a,span){
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:var(--ai-night-on-light)!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Audience pills on tool overview cards. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-pill-list span,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-pill-list span{
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:var(--ai-night-on-light)!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Eyebrow chips in Similar tools / Compare alternatives. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page :is(
                .modern-tool-related-head > div > span,
                .modern-tool-related-head > span,
                .modern-tool-bottom-hub .section-head > span,
                .modern-tool-discovery-block .section-head > span,
                .modern-tool-info-eyebrow
            ),
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page :is(
                .modern-tool-related-head > div > span,
                .modern-tool-related-head > span,
                .modern-tool-bottom-hub .section-head > span,
                .modern-tool-discovery-block .section-head > span,
                .modern-tool-info-eyebrow
            ){
                background:var(--ai-night-light-surface-2)!important;
                border-color:rgba(191,219,254,.70)!important;
                color:#214a7a!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Comparison card CTA/meta pills placed on light backgrounds. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .featured-comparison-card :is(
                .featured-comparison-badge,
                .featured-comparison-action,
                .compare-suggestion-meta
            ),
            html.ai-theme-dark body.astronovai-premium-theme .featured-comparison-card :is(
                .featured-comparison-badge,
                .featured-comparison-action,
                .compare-suggestion-meta
            ){
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:var(--ai-night-on-light)!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Taxonomy buying-guide chips. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .taxonomy-page .taxonomy-guide-points span,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-category-premium-v4 .taxonomy-guide-points span,
            html.ai-theme-dark body.astronovai-premium-theme .taxonomy-page .taxonomy-guide-points span,
            html.ai-theme-dark body.astronovai-premium-theme .ai-category-premium-v4 .taxonomy-guide-points span{
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:var(--ai-night-on-light)!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Account profile-photo picker. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-dashboard-premium .ai-avatar-picker,
            html.ai-theme-dark body.astronovai-premium-theme .ai-dashboard-premium .ai-avatar-picker{
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-dashboard-premium .ai-avatar-file-name,
            html.ai-theme-dark body.astronovai-premium-theme .ai-dashboard-premium .ai-avatar-file-name{
                color:var(--ai-night-on-light-muted)!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Blog sharing buttons: keep the white controls but restore visible icons. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn,
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn{
                background:var(--ai-night-light-surface)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:var(--ai-night-on-light-link)!important;
                opacity:1!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn :is(svg,path,circle,line,polyline),
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn :is(svg,path,circle,line,polyline){
                color:var(--ai-night-on-light-link)!important;
                stroke:currentColor!important;
                opacity:1!important;
            }
            html[data-ai-theme="dark"] body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn svg path,
            html.ai-theme-dark body.astronovai-premium-theme .single-blog-share-actions .blog-share-icon-btn svg path{
                fill:currentColor!important;
            }

            /* Related Articles / More AI guides eyebrow pills. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .blog-related-head .blog-eyebrow,
                .blog-category-more-head .blog-eyebrow
            ),
            html.ai-theme-dark body.astronovai-premium-theme :is(
                .blog-related-head .blog-eyebrow,
                .blog-category-more-head .blog-eyebrow
            ){
                background:var(--ai-night-light-surface-2)!important;
                border-color:rgba(191,219,254,.72)!important;
                color:#214a7a!important;
                opacity:1!important;
                text-shadow:none!important;
            }

            /* Generic safeguard: text inside intentional light pills remains dark. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
                .section-view-link,
                .home-mini-price,
                .modern-tool-pills a,
                .modern-tool-pills span,
                .modern-tool-pill-list span,
                .taxonomy-guide-points span,
                .blog-related-head .blog-eyebrow,
                .blog-category-more-head .blog-eyebrow,
                .featured-comparison-vs,
                .featured-comparison-action,
                .compare-suggestion-meta
            ) *,
            html.ai-theme-dark body.astronovai-premium-theme :is(
                .section-view-link,
                .home-mini-price,
                .modern-tool-pills a,
                .modern-tool-pills span,
                .modern-tool-pill-list span,
                .taxonomy-guide-points span,
                .blog-related-head .blog-eyebrow,
                .blog-category-more-head .blog-eyebrow,
                .featured-comparison-vs,
                .featured-comparison-action,
                .compare-suggestion-meta
            ) *{
                color:inherit!important;
                opacity:1!important;
                text-shadow:none!important;
            }
        

/* ===== astronovai-v18-35-night-badge-repairs (moved from assets.php) ===== */
            /* -------------------------------------------------
               Home mini cards: category + pricing + primary CTA
            ------------------------------------------------- */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .home-tool-mini-card .home-mini-company,
            html.ai-theme-dark body.astronovai-premium-theme .home-tool-mini-card .home-mini-company{
                display:inline-flex!important;
                align-items:center!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:22px!important;
                margin-top:4px!important;
                padding:4px 8px!important;
                border:1px solid rgba(147,197,253,.24)!important;
                border-radius:999px!important;
                background:rgba(59,130,246,.14)!important;
                background-color:rgba(59,130,246,.14)!important;
                color:#dbeafe!important;
                -webkit-text-fill-color:#dbeafe!important;
                font-size:11px!important;
                font-weight:850!important;
                line-height:1.1!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
                mix-blend-mode:normal!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .home-tool-mini-card .home-mini-price,
            html.ai-theme-dark body.astronovai-premium-theme .home-tool-mini-card .home-mini-price,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .tool-pricing,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card .tool-pricing{
                display:inline-flex!important;
                align-items:center!important;
                justify-content:center!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:24px!important;
                padding:5px 10px!important;
                border:1px solid rgba(191,219,254,.82)!important;
                border-radius:999px!important;
                background:#f8fbff!important;
                background-color:#f8fbff!important;
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                font-weight:950!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
                mix-blend-mode:normal!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .home-tool-mini-card .home-mini-price *,
            html.ai-theme-dark body.astronovai-premium-theme .home-tool-mini-card .home-mini-price *,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .tool-pricing *,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card .tool-pricing *{
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .home-tool-mini-card .home-mini-visit,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .visit-btn,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .visit-text,
            html.ai-theme-dark body.astronovai-premium-theme .home-tool-mini-card .home-mini-visit,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card .visit-btn,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card .visit-text{
                color:#ffffff!important;
                -webkit-text-fill-color:#ffffff!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            /* Standard tool-card category/recommendation label. */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .ai-recommendation-badge,
            html.ai-theme-dark body.astronovai-premium-theme .tool-card .ai-recommendation-badge{
                display:inline-flex!important;
                align-items:center!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:22px!important;
                padding:4px 8px!important;
                border:1px solid rgba(147,197,253,.24)!important;
                border-radius:999px!important;
                background:rgba(59,130,246,.14)!important;
                background-color:rgba(59,130,246,.14)!important;
                color:#dbeafe!important;
                -webkit-text-fill-color:#dbeafe!important;
                font-size:11px!important;
                font-weight:850!important;
                line-height:1.1!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            /* -------------------------------------------------
               Single-tool hero category and pricing pills
            ------------------------------------------------- */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-pills a,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-pills a{
                color:#155eef!important;
                -webkit-text-fill-color:#155eef!important;
                font-weight:900!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-pills span,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-pills span{
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                font-weight:900!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            /* -------------------------------------------------
               Tool overview: compact eyebrow badges, never bars
            ------------------------------------------------- */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-info-card > .modern-tool-info-eyebrow,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-info-card > .modern-tool-info-eyebrow{
                display:inline-flex!important;
                align-items:center!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:23px!important;
                margin:0 0 10px!important;
                padding:5px 9px!important;
                border:1px solid rgba(147,197,253,.24)!important;
                border-radius:999px!important;
                background:rgba(59,130,246,.14)!important;
                background-color:rgba(59,130,246,.14)!important;
                color:#bfdbfe!important;
                -webkit-text-fill-color:#bfdbfe!important;
                font-size:10px!important;
                font-weight:950!important;
                line-height:1!important;
                letter-spacing:.09em!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
                box-sizing:border-box!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .modern-tool-pill-list span,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .modern-tool-pill-list span{
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                font-weight:850!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            /* -------------------------------------------------
               Compare-alternative cards: compact meta, clear CTA
            ------------------------------------------------- */
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .compare-suggestion-meta,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .compare-suggestion-meta{
                display:inline-flex!important;
                align-items:center!important;
                align-self:flex-start!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:26px!important;
                margin:0!important;
                padding:6px 10px!important;
                border:1px solid rgba(191,219,254,.82)!important;
                border-radius:999px!important;
                background:#f8fbff!important;
                background-color:#f8fbff!important;
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                font-size:12px!important;
                font-style:normal!important;
                font-weight:900!important;
                line-height:1.15!important;
                white-space:normal!important;
                overflow-wrap:anywhere!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
                box-sizing:border-box!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-badge,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-action,
            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-vs,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-badge,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-action,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-vs{
                color:#0b1f38!important;
                -webkit-text-fill-color:#0b1f38!important;
                font-weight:900!important;
                opacity:1!important;
                filter:none!important;
                text-shadow:none!important;
            }

            html[data-ai-theme="dark"] body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-action,
            html.ai-theme-dark body.astronovai-premium-theme .modern-tool-page .featured-comparison-card .featured-comparison-action{
                display:inline-flex!important;
                align-items:center!important;
                align-self:flex-start!important;
                width:max-content!important;
                max-width:100%!important;
                min-height:30px!important;
                padding:7px 12px!important;
                border:1px solid rgba(191,219,254,.82)!important;
                border-radius:999px!important;
                background:#f8fbff!important;
                background-color:#f8fbff!important;
            }
        

/* ===== astronovai-v18-29-static-night-seal (moved from footer.php) ===== */
/* v18.29: static final dark-mode seal. No JavaScript mutation, no flicker loops. */
html[data-ai-theme="dark"] body.astronovai-premium-theme,
html.ai-theme-dark body.astronovai-premium-theme{
    background-color:#050b16!important;
    background-image:
        radial-gradient(circle at 12% 8%,rgba(96,165,250,.18),transparent 28%),
        radial-gradient(circle at 88% 12%,rgba(167,139,250,.15),transparent 30%),
        radial-gradient(circle at 50% 100%,rgba(34,211,238,.08),transparent 36%),
        radial-gradient(circle at 18px 24px,rgba(255,255,255,.26) 0 1px,transparent 1.4px),
        radial-gradient(circle at 88px 76px,rgba(147,197,253,.20) 0 1px,transparent 1.3px),
        linear-gradient(180deg,#020617 0%,#050b16 46%,#071426 100%)!important;
    background-size:auto,auto,auto,140px 140px,220px 220px,auto!important;
    background-attachment:fixed,fixed,fixed,fixed,fixed,fixed!important;
    color:#dbe7f7!important;
}
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    #page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,
    article,article.type-page,.entry-content,.page-content,.wp-block-group,.wp-block-columns,.wp-block-column,
    .ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap,.ai-dashboard-premium,.favorites-page,.favorites-wrap,
    .taxonomy-page,.blog-category-page,.single-blog-page,.single-blog-premium-page,.compare-container,.modern-tool-page,.ai-tools-directory-page
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    #page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,
    article,article.type-page,.entry-content,.page-content,.wp-block-group,.wp-block-columns,.wp-block-column,
    .ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap,.ai-dashboard-premium,.favorites-page,.favorites-wrap,
    .taxonomy-page,.blog-category-page,.single-blog-page,.single-blog-premium-page,.compare-container,.modern-tool-page,.ai-tools-directory-page
){
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    .ai-submit-hero,.ai-submit-card,.ai-submit-form-card,.ai-submit-status-card,.ai-submit-guidelines,.ai-submit-steps li,.ai-submit-review-note,.ai-submit-user-chip,.ai-submit-back,
    .ai-auth-card,.ai-auth-panel,.ai-account-panel,.ai-profile-card-pro,.ai-account-sidebar,.ai-stat-card-pro,.ai-account-overview-card,.ai-account-tool-card,.ai-empty-state,.ai-empty-state-pro,.ai-dashboard-list a,.ai-activity-item,
    .favorites-hero,.favorites-section,.favorites-stat-card,.favorites-empty,.favorites-comparison-card,.favorites-article-card,
    .taxonomy-intro-card,.taxonomy-decision-card,.taxonomy-surface-block,.taxonomy-tool-board,.taxonomy-tools-section,.taxonomy-faq-section,.taxonomy-knowledge-grid>*,.taxonomy-bottom-grid>*,.taxonomy-brief-list div,.taxonomy-signal-grid article,.related-categories,.category-seo-section,.popular-comparisons-section,.category-flow-step,.category-hero-pick,
    .compare-container .summary-card,.compare-container .compare-fit-card,.compare-container .compare-choice-card,.compare-container .highlight-card,.compare-container .methodology-card,.compare-container .compare-methodology,.compare-container .compare-final-cta,.compare-container .compare-final-cta-premium,.compare-container .compare-related-section,.compare-container .compare-related-premium,.compare-container .related-compare-card,.compare-container .compare-alt-card,.compare-container .compare-suggestion-card,.compare-container .compare-tool-card,.compare-container .compare-hero-tool,.compare-container .compare-hero-tool-stats span,.compare-container .compare-table-section,.compare-container .compare-premium-table,.compare-container .compare-row>div,
    .modern-discussion-section,.modern-discussion-box,.modern-discussion-head,.modern-discussion-guidelines div,.modern-discussion-stats div,.modern-discussion-composer-card,.modern-discussion-form,.modern-discussion-field,.modern-discussion-empty-card,
    .single-blog-page .single-blog-hero,.single-blog-page .single-blog-article,.single-blog-page .single-blog-main,.single-blog-page .single-blog-content,.single-blog-page .single-blog-content-wrap,.single-blog-page .single-blog-decision-strip div,.single-blog-page .single-blog-share-card,.single-blog-page .blog-review-notice,.single-blog-page .blog-review-notice-item,.single-blog-page .blog-table-wrap,.single-blog-page .blog-sidebar-card,.single-blog-page .blog-sidebar-tool,.single-blog-page .single-blog-tab-panel,.blog-category-page .blog-category-more-guides,.blog-category-page .blog-category-empty-state,.blog-category-page .blog-card,
    .modern-tool-page .modern-tool-card,.modern-tool-page .modern-tool-info-card,.modern-tool-page .modern-tool-card-grid.inner>*,.modern-tool-page .modern-tool-feature-card,.modern-tool-page .modern-tool-list li,.modern-tool-page .modern-tool-sidebar-card
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    .ai-submit-hero,.ai-submit-card,.ai-submit-form-card,.ai-submit-status-card,.ai-submit-guidelines,.ai-submit-steps li,.ai-submit-review-note,.ai-submit-user-chip,.ai-submit-back,
    .ai-auth-card,.ai-auth-panel,.ai-account-panel,.ai-profile-card-pro,.ai-account-sidebar,.ai-stat-card-pro,.ai-account-overview-card,.ai-account-tool-card,.ai-empty-state,.ai-empty-state-pro,.ai-dashboard-list a,.ai-activity-item,
    .favorites-hero,.favorites-section,.favorites-stat-card,.favorites-empty,.favorites-comparison-card,.favorites-article-card,
    .taxonomy-intro-card,.taxonomy-decision-card,.taxonomy-surface-block,.taxonomy-tool-board,.taxonomy-tools-section,.taxonomy-faq-section,.taxonomy-knowledge-grid>*,.taxonomy-bottom-grid>*,.taxonomy-brief-list div,.taxonomy-signal-grid article,.related-categories,.category-seo-section,.popular-comparisons-section,.category-flow-step,.category-hero-pick,
    .compare-container .summary-card,.compare-container .compare-fit-card,.compare-container .compare-choice-card,.compare-container .highlight-card,.compare-container .methodology-card,.compare-container .compare-methodology,.compare-container .compare-final-cta,.compare-container .compare-final-cta-premium,.compare-container .compare-related-section,.compare-container .compare-related-premium,.compare-container .related-compare-card,.compare-container .compare-alt-card,.compare-container .compare-suggestion-card,.compare-container .compare-tool-card,.compare-container .compare-hero-tool,.compare-container .compare-hero-tool-stats span,.compare-container .compare-table-section,.compare-container .compare-premium-table,.compare-container .compare-row>div,
    .modern-discussion-section,.modern-discussion-box,.modern-discussion-head,.modern-discussion-guidelines div,.modern-discussion-stats div,.modern-discussion-composer-card,.modern-discussion-form,.modern-discussion-field,.modern-discussion-empty-card,
    .single-blog-page .single-blog-hero,.single-blog-page .single-blog-article,.single-blog-page .single-blog-main,.single-blog-page .single-blog-content,.single-blog-page .single-blog-content-wrap,.single-blog-page .single-blog-decision-strip div,.single-blog-page .single-blog-share-card,.single-blog-page .blog-review-notice,.single-blog-page .blog-review-notice-item,.single-blog-page .blog-table-wrap,.single-blog-page .blog-sidebar-card,.single-blog-page .blog-sidebar-tool,.single-blog-page .single-blog-tab-panel,.blog-category-page .blog-category-more-guides,.blog-category-page .blog-category-empty-state,.blog-category-page .blog-card,
    .modern-tool-page .modern-tool-card,.modern-tool-page .modern-tool-info-card,.modern-tool-page .modern-tool-card-grid.inner>*,.modern-tool-page .modern-tool-feature-card,.modern-tool-page .modern-tool-list li,.modern-tool-page .modern-tool-sidebar-card
){
    background:radial-gradient(circle at 14% 0%,rgba(96,165,250,.14),transparent 34%),radial-gradient(circle at 88% 8%,rgba(129,140,248,.16),transparent 34%),linear-gradient(180deg,rgba(16,31,54,.985),rgba(7,18,34,.995))!important;
    background-color:#0b172a!important;
    border-color:rgba(191,219,254,.24)!important;
    color:#dbe7f7!important;
    box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06)!important;
    opacity:1!important;
    filter:none!important;
}
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(.skip-link,.skip-link.screen-reader-text,a.skip-link){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important}
html[data-ai-theme="dark"] body.astronovai-premium-theme:has(:is(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap,.ai-dashboard-premium)) :is(.ai-content-container>h1:first-child,.entry-header,.entry-title,.page-title){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(.tool-logo-wrap,.tool-card .tool-logo-wrap,.tool-card .tool-thumb,.tool-card .tool-image,.tool-logo,.home-mini-logo,.modern-tool-logo,.blog-tool-logo-wrap,.blog-tool-logo,.blog-sidebar-tool-logo,.featured-comparison-logo-wrap,.compare-hero-logo-wrap,.ai-account-tool-logo,.ai-comparison-logo-mini,.ai-search-result-logo){
    background:linear-gradient(180deg,rgba(248,251,255,.98),rgba(226,235,255,.94))!important;
    background-color:#f8fbff!important;
    background-image:linear-gradient(180deg,rgba(248,251,255,.98),rgba(226,235,255,.94))!important;
    border-color:rgba(191,219,254,.44)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.72)!important;
    color:#1d4ed8!important;
    filter:none!important;
    opacity:1!important;
    mix-blend-mode:normal!important;
    transition:none!important;
}
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(.tool-logo-wrap img,.tool-card .tool-thumb img,.tool-card .tool-image img,.tool-logo img,.tool-logo,.modern-tool-logo img,.blog-tool-logo img,.blog-sidebar-tool-logo img,.featured-comparison-logo-wrap img,.compare-hero-logo-wrap img,.ai-account-tool-logo img,.ai-search-result-logo img){filter:none!important;opacity:1!important;mix-blend-mode:normal!important;transition:none!important}
html[data-ai-theme="dark"] [data-ai-night-inline-repair]{transition:none!important}

/* ===== astronovai-v18-30-source-canvas-lock (moved from footer.php) ===== */
/* v18.30: absolute last CSS-only canvas lock, no runtime mutation. */
html[data-ai-theme="dark"],html.ai-theme-dark{background:#050b16!important;background-color:#050b16!important}
html[data-ai-theme="dark"] body,html.ai-theme-dark body{background-color:#050b16!important;background-image:radial-gradient(circle at 12% 8%,rgba(96,165,250,.18),transparent 28%),radial-gradient(circle at 88% 12%,rgba(167,139,250,.15),transparent 30%),radial-gradient(circle at 50% 100%,rgba(34,211,238,.08),transparent 36%),radial-gradient(circle at 18px 24px,rgba(255,255,255,.26) 0 1px,transparent 1.4px),radial-gradient(circle at 88px 76px,rgba(147,197,253,.20) 0 1px,transparent 1.3px),linear-gradient(180deg,#020617 0%,#050b16 46%,#071426 100%)!important;background-size:auto,auto,auto,140px 140px,220px 220px,auto!important;background-attachment:fixed,fixed,fixed,fixed,fixed,fixed!important;color:#dbe7f7!important}
html[data-ai-theme="dark"] :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.hentry.ast-article-single,.ast-article-single,.wp-site-blocks),html.ai-theme-dark :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.hentry.ast-article-single,.ast-article-single,.wp-site-blocks){background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-ai-theme="dark"] body:where(.ai-submit-tool-page,.ai-page-submit-tool,.ai-page-auth,.ai-login-page,.ai-register-page,.ai-forgot-password-page,.ai-reset-password-page) :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.ast-article-single),html.ai-theme-dark body:where(.ai-submit-tool-page,.ai-page-submit-tool,.ai-page-auth,.ai-login-page,.ai-register-page,.ai-forgot-password-page,.ai-reset-password-page) :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.ast-article-single){background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-ai-theme="dark"] body:has(:where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap)) :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.ast-article-single),html.ai-theme-dark body:has(:where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap)) :where(#page,.site,#content,.site-content,.ai-main-content,#primary,#main,.content-area,.site-main,.ast-container,.ai-content-container,article.type-page,.entry-content,.page-content,.ast-article-single){background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-ai-theme="dark"] :where(.ai-submit-premium,.ai-submit-shell,.ai-submit-layout,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap),html.ai-theme-dark :where(.ai-submit-premium,.ai-submit-shell,.ai-submit-layout,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap){background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important}
html[data-ai-theme="dark"] :where(.ai-submit-hero,.ai-submit-card,.ai-submit-form-card,.ai-submit-status-card,.ai-submit-guidelines,.ai-submit-steps li,.ai-submit-review-note,.ai-submit-user-chip,.ai-submit-back,.ai-auth-card,.ai-auth-panel),html.ai-theme-dark :where(.ai-submit-hero,.ai-submit-card,.ai-submit-form-card,.ai-submit-status-card,.ai-submit-guidelines,.ai-submit-steps li,.ai-submit-review-note,.ai-submit-user-chip,.ai-submit-back,.ai-auth-card,.ai-auth-panel){background:radial-gradient(circle at 14% 0%,rgba(96,165,250,.14),transparent 34%),radial-gradient(circle at 88% 8%,rgba(129,140,248,.16),transparent 34%),linear-gradient(180deg,rgba(16,31,54,.985),rgba(7,18,34,.995))!important;background-color:#0b172a!important;border-color:rgba(191,219,254,.24)!important;color:#eaf2ff!important;box-shadow:0 24px 70px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06)!important;opacity:1!important;filter:none!important}
html[data-ai-theme="dark"] :where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap) :where(h1,h2,h3,h4,h5,h6,strong,b,label),html.ai-theme-dark :where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap) :where(h1,h2,h3,h4,h5,h6,strong,b,label){color:#fff!important;opacity:1!important;text-shadow:0 1px 18px rgba(0,0,0,.24)!important}
html[data-ai-theme="dark"] :where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap) :where(p,li,dd,dt,small,span,em),html.ai-theme-dark :where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap) :where(p,li,dd,dt,small,span,em){color:#cbd9ec!important;opacity:1!important}
html[data-ai-theme="dark"] :where(.skip-link,.skip-link.screen-reader-text,a.skip-link),html.ai-theme-dark :where(.skip-link,.skip-link.screen-reader-text,a.skip-link){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important}
html[data-ai-theme="dark"] body:where(.ai-submit-tool-page,.ai-page-submit-tool,.ai-page-auth,.ai-login-page,.ai-register-page,.ai-forgot-password-page,.ai-reset-password-page) :where(.ai-content-container>h1:first-child,.entry-header,.entry-title,.page-title),html.ai-theme-dark body:where(.ai-submit-tool-page,.ai-page-submit-tool,.ai-page-auth,.ai-login-page,.ai-register-page,.ai-forgot-password-page,.ai-reset-password-page) :where(.ai-content-container>h1:first-child,.entry-header,.entry-title,.page-title),html[data-ai-theme="dark"] body:has(:where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap)) :where(.ai-content-container>h1:first-child,.entry-header,.entry-title,.page-title),html.ai-theme-dark body:has(:where(.ai-submit-premium,.ai-auth-premium,.ai-account-wrap.ai-auth-wrap)) :where(.ai-content-container>h1:first-child,.entry-header,.entry-title,.page-title){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}

/* ===== astronovai-v18-31-specificity-canvas-lock (moved from footer.php) ===== */
/* v18.31: final high-specificity canvas lock. Replaces :where() weakness from v18.30. */
html[data-ai-theme="dark"] body.astronovai-premium-theme #page,
html[data-ai-theme="dark"] body.astronovai-premium-theme .site,
html[data-ai-theme="dark"] body.astronovai-premium-theme #content,
html[data-ai-theme="dark"] body.astronovai-premium-theme .site-content,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-main-content,
html[data-ai-theme="dark"] body.astronovai-premium-theme #primary,
html[data-ai-theme="dark"] body.astronovai-premium-theme #main,
html[data-ai-theme="dark"] body.astronovai-premium-theme .content-area,
html[data-ai-theme="dark"] body.astronovai-premium-theme .site-main,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ast-container,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-content-container,
html[data-ai-theme="dark"] body.astronovai-premium-theme article.type-page,
html[data-ai-theme="dark"] body.astronovai-premium-theme .hentry.ast-article-single,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ast-article-single,
html[data-ai-theme="dark"] body.astronovai-premium-theme .entry-content,
html[data-ai-theme="dark"] body.astronovai-premium-theme .page-content,
html[data-ai-theme="dark"] body.astronovai-premium-theme .wp-site-blocks,
html.ai-theme-dark body.astronovai-premium-theme #page,
html.ai-theme-dark body.astronovai-premium-theme .site,
html.ai-theme-dark body.astronovai-premium-theme #content,
html.ai-theme-dark body.astronovai-premium-theme .site-content,
html.ai-theme-dark body.astronovai-premium-theme .ai-main-content,
html.ai-theme-dark body.astronovai-premium-theme #primary,
html.ai-theme-dark body.astronovai-premium-theme #main,
html.ai-theme-dark body.astronovai-premium-theme .content-area,
html.ai-theme-dark body.astronovai-premium-theme .site-main,
html.ai-theme-dark body.astronovai-premium-theme .ast-container,
html.ai-theme-dark body.astronovai-premium-theme .ai-content-container,
html.ai-theme-dark body.astronovai-premium-theme article.type-page,
html.ai-theme-dark body.astronovai-premium-theme .hentry.ast-article-single,
html.ai-theme-dark body.astronovai-premium-theme .ast-article-single,
html.ai-theme-dark body.astronovai-premium-theme .entry-content,
html.ai-theme-dark body.astronovai-premium-theme .page-content,
html.ai-theme-dark body.astronovai-premium-theme .wp-site-blocks,
html[data-ai-theme="dark"] body.ai-submit-tool-page #page,
html[data-ai-theme="dark"] body.ai-submit-tool-page #content,
html[data-ai-theme="dark"] body.ai-submit-tool-page .site-content,
html[data-ai-theme="dark"] body.ai-submit-tool-page .ast-container,
html[data-ai-theme="dark"] body.ai-submit-tool-page .ai-content-container,
html[data-ai-theme="dark"] body.ai-page-submit-tool #page,
html[data-ai-theme="dark"] body.ai-page-submit-tool #content,
html[data-ai-theme="dark"] body.ai-page-submit-tool .site-content,
html[data-ai-theme="dark"] body.ai-page-submit-tool .ast-container,
html[data-ai-theme="dark"] body.ai-page-submit-tool .ai-content-container,
html.ai-theme-dark body.ai-submit-tool-page #page,
html.ai-theme-dark body.ai-submit-tool-page #content,
html.ai-theme-dark body.ai-submit-tool-page .site-content,
html.ai-theme-dark body.ai-submit-tool-page .ast-container,
html.ai-theme-dark body.ai-submit-tool-page .ai-content-container,
html.ai-theme-dark body.ai-page-submit-tool #page,
html.ai-theme-dark body.ai-page-submit-tool #content,
html.ai-theme-dark body.ai-page-submit-tool .site-content,
html.ai-theme-dark body.ai-page-submit-tool .ast-container,
html.ai-theme-dark body.ai-page-submit-tool .ai-content-container{
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}
html[data-ai-theme="dark"] body.ai-submit-tool-page .ai-content-container>h1:first-of-type,
html[data-ai-theme="dark"] body.ai-submit-tool-page .entry-header,
html[data-ai-theme="dark"] body.ai-submit-tool-page .entry-title,
html[data-ai-theme="dark"] body.ai-submit-tool-page .page-title,
html[data-ai-theme="dark"] body.ai-page-submit-tool .ai-content-container>h1:first-of-type,
html[data-ai-theme="dark"] body.ai-page-submit-tool .entry-header,
html[data-ai-theme="dark"] body.ai-page-submit-tool .entry-title,
html[data-ai-theme="dark"] body.ai-page-submit-tool .page-title,
html.ai-theme-dark body.ai-submit-tool-page .ai-content-container>h1:first-of-type,
html.ai-theme-dark body.ai-submit-tool-page .entry-header,
html.ai-theme-dark body.ai-submit-tool-page .entry-title,
html.ai-theme-dark body.ai-submit-tool-page .page-title,
html.ai-theme-dark body.ai-page-submit-tool .ai-content-container>h1:first-of-type,
html.ai-theme-dark body.ai-page-submit-tool .entry-header,
html.ai-theme-dark body.ai-page-submit-tool .entry-title,
html.ai-theme-dark body.ai-page-submit-tool .page-title{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
}

/* ===== astronovai-v18-36-filter-logo-night-fix (moved from footer.php) ===== */
/* =========================================================
   v18.36 — stable header filter + black tool-logo surfaces
   CSS only. No observers, no runtime repaint, no flicker.
========================================================= */

/* Header Filters control: always render as a complete readable pill. */
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:92px!important;
    max-width:none!important;
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0 13px!important;
    gap:7px!important;
    border:1px solid rgba(191,219,254,.95)!important;
    border-radius:999px!important;
    background:#f8fbff!important;
    background-color:#f8fbff!important;
    background-image:none!important;
    color:#0b1f38!important;
    -webkit-text-fill-color:#0b1f38!important;
    box-shadow:0 8px 20px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.92)!important;
    opacity:1!important;
    visibility:visible!important;
    overflow:visible!important;
    white-space:nowrap!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle b{
    display:inline!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;
    max-width:none!important;
    color:#0b1f38!important;
    -webkit-text-fill-color:#0b1f38!important;
    font-size:12px!important;
    font-weight:950!important;
    line-height:1!important;
    text-shadow:none!important;
    filter:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle span,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle span{
    display:block!important;
    flex:0 0 15px!important;
    width:15px!important;
    min-width:15px!important;
    height:15px!important;
    min-height:15px!important;
    background:#0b1f38!important;
    color:#0b1f38!important;
    opacity:1!important;
    filter:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:hover,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:hover,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible{
    background:#eaf2ff!important;
    background-color:#eaf2ff!important;
    border-color:#60a5fa!important;
    color:#123e8a!important;
    -webkit-text-fill-color:#123e8a!important;
    transform:none!important;
    outline:0!important;
    box-shadow:0 0 0 3px rgba(96,165,250,.18),0 10px 24px rgba(0,0,0,.26)!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:hover b,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:hover b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible b{
    display:inline!important;
    visibility:visible!important;
    opacity:1!important;
    color:#123e8a!important;
    -webkit-text-fill-color:#123e8a!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:hover span,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible span,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:hover span,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:focus-visible span{
    color:#123e8a!important;
    background:currentColor!important;
    background-color:currentColor!important;
    background-image:none!important;
}

@media (max-width:980px){
    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-search input,
    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-search input[type="search"],
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-search input,
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-search input[type="search"]{
        padding-right:112px!important;
    }

    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle,
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle{
        width:96px!important;
        min-width:96px!important;
        padding:0 10px!important;
    }
}

@media (max-width:390px){
    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle,
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle{
        width:90px!important;
        min-width:90px!important;
        gap:6px!important;
        padding:0 8px!important;
    }

    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle b,
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle b{
        font-size:11px!important;
    }
}

/* Tool-card logos: one consistent black surface throughout night mode. */
html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    .tool-card .tool-logo-wrap,
    .tool-card .tool-thumb,
    .tool-card .tool-image,
    .home-tool-mini-card .home-mini-logo-wrap,
    .ai-account-tool-card .ai-account-tool-logo,
    .blog-sidebar-tool .blog-sidebar-tool-logo,
    .blog-tool-card .blog-tool-logo-wrap,
    .blog-tool-card .blog-tool-logo,
    .ai-search-result .ai-search-result-logo
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    .tool-card .tool-logo-wrap,
    .tool-card .tool-thumb,
    .tool-card .tool-image,
    .home-tool-mini-card .home-mini-logo-wrap,
    .ai-account-tool-card .ai-account-tool-logo,
    .blog-sidebar-tool .blog-sidebar-tool-logo,
    .blog-tool-card .blog-tool-logo-wrap,
    .blog-tool-card .blog-tool-logo,
    .ai-search-result .ai-search-result-logo
){
    background:#000000!important;
    background-color:#000000!important;
    background-image:none!important;
    border-color:rgba(255,255,255,.18)!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    box-shadow:0 9px 22px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,255,255,.035)!important;
    opacity:1!important;
    filter:none!important;
    mix-blend-mode:normal!important;
    transition:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    .tool-card .tool-logo-wrap a,
    .home-tool-mini-card .home-mini-logo-wrap a,
    .blog-tool-card .blog-tool-logo-wrap a
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    .tool-card .tool-logo-wrap a,
    .home-tool-mini-card .home-mini-logo-wrap a,
    .blog-tool-card .blog-tool-logo-wrap a
){
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    .tool-card .tool-logo,
    .tool-card .tool-logo-wrap img,
    .tool-card .tool-thumb img,
    .tool-card .tool-image img,
    .home-tool-mini-card .home-mini-logo,
    .home-tool-mini-card .home-mini-logo-wrap img,
    .ai-account-tool-card .ai-account-tool-logo img,
    .blog-sidebar-tool .blog-sidebar-tool-logo img,
    .blog-tool-card .blog-tool-logo img,
    .ai-search-result .ai-search-result-logo img
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    .tool-card .tool-logo,
    .tool-card .tool-logo-wrap img,
    .tool-card .tool-thumb img,
    .tool-card .tool-image img,
    .home-tool-mini-card .home-mini-logo,
    .home-tool-mini-card .home-mini-logo-wrap img,
    .ai-account-tool-card .ai-account-tool-logo img,
    .blog-sidebar-tool .blog-sidebar-tool-logo img,
    .blog-tool-card .blog-tool-logo img,
    .ai-search-result .ai-search-result-logo img
){
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    border-color:transparent!important;
    opacity:1!important;
    filter:none!important;
    mix-blend-mode:normal!important;
    transition:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme :is(
    .tool-card .tool-logo-letter,
    .home-tool-mini-card .home-mini-logo-letter,
    .ai-account-tool-card .ai-account-tool-logo-letter
),
html.ai-theme-dark body.astronovai-premium-theme :is(
    .tool-card .tool-logo-letter,
    .home-tool-mini-card .home-mini-logo-letter,
    .ai-account-tool-card .ai-account-tool-logo-letter
){
    background:#000000!important;
    background-color:#000000!important;
    background-image:none!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    opacity:1!important;
    filter:none!important;
    text-shadow:none!important;
}

/* ===== astronovai-v18-37-filter-interaction-fix (moved from footer.php) ===== */
/* =========================================================
   v18.37 — header filter interaction fix
   Keep the label readable and the icon masked on hover/focus.
========================================================= */
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle{
    isolation:isolate!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle b,
html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) b{
    display:inline!important;
    visibility:visible!important;
    opacity:1!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#0b1f38!important;
    -webkit-text-fill-color:#0b1f38!important;
    font-size:12px!important;
    font-weight:950!important;
    line-height:1!important;
    text-shadow:none!important;
    filter:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) b,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) b{
    color:#123e8a!important;
    -webkit-text-fill-color:#123e8a!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle span,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle span{
    display:block!important;
    flex:0 0 15px!important;
    width:15px!important;
    min-width:15px!important;
    max-width:15px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:currentColor!important;
    background-color:currentColor!important;
    background-image:none!important;
    box-shadow:none!important;
    color:#0b1f38!important;
    -webkit-text-fill-color:#0b1f38!important;
    -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 7h10a3 3 0 1 0 0-2H4a1 1 0 0 0 0 2Zm16 10H10a3 3 0 1 0 0 2h10a1 1 0 0 0 0-2ZM4 13h4a3 3 0 1 0 0-2H4a1 1 0 1 0 0 2Zm16-2h-4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2Z"/></svg>') center/contain no-repeat!important;
    mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 7h10a3 3 0 1 0 0-2H4a1 1 0 0 0 0 2Zm16 10H10a3 3 0 1 0 0 2h10a1 1 0 0 0 0-2ZM4 13h4a3 3 0 1 0 0-2H4a1 1 0 1 0 0 2Zm16-2h-4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2Z"/></svg>') center/contain no-repeat!important;
    opacity:1!important;
    filter:none!important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) span,
html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle:is(:hover,:focus,:focus-visible,:active) span{
    color:#123e8a!important;
    background:currentColor!important;
    background-color:currentColor!important;
}

@media (max-width:390px){
    html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-header-filter-toggle b,
    html.ai-theme-dark body.astronovai-premium-theme .ai-header-filter-toggle b{
        font-size:11px!important;
    }
}

/* =====================================
FLOATING COMPARE SELECTED STATE CONTRAST - v19.3
- Make card-level "Added" state unmistakable in night mode
- Keep selected tool names above the launcher fully readable
===================================== */
html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .compare-btn.active,
html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-btn.active,
html.ai-theme-dark body.astronovai-premium-theme .tool-card .compare-btn.active,
html.ai-theme-dark body.astronovai-premium-theme .compare-btn.active {
    background: linear-gradient(135deg, #059669 0%, #16a34a 55%, #22c55e 100%) !important;
    border-color: rgba(134, 239, 172, .72) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    box-shadow:
        0 8px 20px rgba(22, 163, 74, .28),
        inset 0 1px 0 rgba(255, 255, 255, .20) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .28) !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .tool-card .compare-btn.active *,
html[data-ai-theme="dark"] body.astronovai-premium-theme .compare-btn.active *,
html.ai-theme-dark body.astronovai-premium-theme .tool-card .compare-btn.active *,
html.ai-theme-dark body.astronovai-premium-theme .compare-btn.active * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item,
html[data-ai-theme="dark"] body.astronovai-premium-theme #compare-preview-bar .compare-preview-item,
html.ai-theme-dark body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item,
html.ai-theme-dark body.astronovai-premium-theme #compare-preview-bar .compare-preview-item {
    background: linear-gradient(135deg, rgba(17, 34, 61, .98), rgba(8, 20, 39, .99)) !important;
    border-color: rgba(96, 165, 250, .38) !important;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .36),
        inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    opacity: 1 !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item > span,
html[data-ai-theme="dark"] body.astronovai-premium-theme #compare-preview-bar .compare-preview-item > span,
html.ai-theme-dark body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item > span,
html.ai-theme-dark body.astronovai-premium-theme #compare-preview-bar .compare-preview-item > span {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    font-weight: 950 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .30) !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item img,
html[data-ai-theme="dark"] body.astronovai-premium-theme #compare-preview-bar .compare-preview-item img,
html.ai-theme-dark body.astronovai-premium-theme .ai-floating-compare-preview .compare-preview-item img,
html.ai-theme-dark body.astronovai-premium-theme #compare-preview-bar .compare-preview-item img {
    background: #020617 !important;
    border-color: rgba(147, 197, 253, .34) !important;
    opacity: 1 !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-floating-compare-preview .remove-compare,
html[data-ai-theme="dark"] body.astronovai-premium-theme #compare-preview-bar .remove-compare,
html.ai-theme-dark body.astronovai-premium-theme .ai-floating-compare-preview .remove-compare,
html.ai-theme-dark body.astronovai-premium-theme #compare-preview-bar .remove-compare {
    background: rgba(148, 163, 184, .16) !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    opacity: 1 !important;
}

html[data-ai-theme="dark"] body.astronovai-premium-theme .ai-floating-compare-preview .remove-compare:hover,
html[data-ai-theme="dark"] body.astronovai-premium-theme #compare-preview-bar .remove-compare:hover,
html.ai-theme-dark body.astronovai-premium-theme .ai-floating-compare-preview .remove-compare:hover,
html.ai-theme-dark body.astronovai-premium-theme #compare-preview-bar .remove-compare:hover {
    background: rgba(239, 68, 68, .22) !important;
    border-color: rgba(248, 113, 113, .45) !important;
    color: #fecaca !important;
    -webkit-text-fill-color: #fecaca !important;
}
