/* Khushi Digital Studio V51 — consolidated dark-mode component audit for external pages */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark){
  --v51-bg:#08111f;--v51-card:#101c2e;--v51-card2:#14253b;--v51-text:#edf5ff;--v51-muted:#b7c5d7;--v51-line:#2b405b;--v51-link:#9bc6ff;
}
/* Header, navigation, dropdown and mobile menu */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.kds-header,.site-header,header){background:#08111f!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.links>a,.gov-nav-dropdown>button,.mobile-menu>a){color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.gov-nav-menu,.mobile-menu){background:var(--v51-card)!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gov-nav-menu a{color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.icon-btn,.menu-toggle,#themeBtn,#menuBtn){background:var(--v51-card2)!important;color:var(--v51-text)!important;border-color:var(--v51-line)!important}
/* Keep branded action buttons readable */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.header-btn,.btn-primary,.btn-accent,.wa,.call,.cta-btn,.visit-btn,.quote,.all-price,.price-demo-link,.service-page-btn){color:#fff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .mobile-contact .wa{background:#22a85a!important;color:#fff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .mobile-contact .call{background:#2467d8!important;color:#fff!important}
/* Hero, breadcrumbs and descriptive text */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.kds-page-hero,.page-hero,.hero) :is(h1,h2,h3,p,span,.subtitle,.kds-hero-breadcrumb,.crumb,.hero-tag,.hero-points){color:#fff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-hero-breadcrumb a{color:#dceaff!important}
/* Generic sections, cards, strips and panels */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(
 .home-card,.feature-card,.value-card,.timeline-item,.trust-item,.category-card,.download-category-card,
 .service-block,.service-block-info,.studio-card,.studio-info,.gallery-card,.gallery-item,.review-card,
 .blog-card,.blog-content,.article-card,.contact-box,.faq-item,.booking-card,.form-card,
 .cyber-card,.install-card,.tech-card,.step-box,.step-item,.quick-rate,.pro-price-card,
 .detail-price-strip,.resource-card,.section-banner,.notice,.no-results,.search-box,
 .portal-category-card,.kds-premium-master,.kds-premium-list>a,.order-banner,.action-banner,
 .bg-light-sec,.content-box,.info-box,.panel,.card
){background:var(--v51-card)!important;color:var(--v51-text)!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(
 .home-card,.feature-card,.value-card,.timeline-item,.trust-item,.category-card,.download-category-card,
 .service-block,.studio-card,.gallery-card,.review-card,.blog-card,.article-card,.contact-box,.faq-item,
 .cyber-card,.install-card,.tech-card,.step-box,.quick-rate,.pro-price-card,.detail-price-strip,
 .resource-card,.section-banner,.notice,.order-banner,.action-banner,.kds-premium-master
) :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,.title,.price,.demo-price,.price-label,.section-label,.subcategory){color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(
 .home-card,.feature-card,.value-card,.timeline-item,.trust-item,.category-card,.download-category-card,
 .service-block,.studio-card,.gallery-card,.review-card,.blog-card,.article-card,.contact-box,.faq-item,
 .cyber-card,.install-card,.tech-card,.step-box,.quick-rate,.pro-price-card,.detail-price-strip,
 .resource-card,.section-banner,.notice,.order-banner,.action-banner,.kds-premium-master
) :is(p,li,small,span,.description,.desc,.meta,.review-text,.detail-price-note){color:var(--v51-muted)!important}
/* Common inline dark colors that were hiding */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(
 [style*="color:#111"],[style*="color: #111"],[style*="color:#222"],[style*="color: #222"],
 [style*="color:#333"],[style*="color: #333"],[style*="color:#444"],[style*="color: #444"],
 [style*="color:#555"],[style*="color: #555"],[style*="color:#666"],[style*="color: #666"],
 [style*="color:var(--dark)"],[style*="color: var(--dark)"]
):not(.btn):not([class*="btn"]):not(.wa):not(.call):not(.badge):not(.kds-badge){color:var(--v51-text)!important}
/* CTA and booking strips: force readable text while preserving buttons */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.action-banner,.order-banner,.kds-assistance-cta){color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.action-banner,.order-banner) :is(h1,h2,h3,h4,strong,b,p,span,small){color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-assistance-cta :is(h2,p,.kds-cta-pill){color:#fff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-assistance-cta .kds-cta-wa{background:#35cf78!important;color:#fff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-assistance-cta .kds-cta-call{background:#fff!important;color:#164f9f!important}
/* Premium services */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.kds-premium-master,.kds-premium-list,.kds-premium-list>a){background:var(--v51-card)!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-copy strong{color:var(--v51-text)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-copy small{color:var(--v51-muted)!important}
/* Forms, FAQ, tables and alerts */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#0c1829!important;color:var(--v51-text)!important;border-color:#3a5472!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(input,textarea)::placeholder{color:#8799af!important;opacity:1}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.faq-question,.accordion-header,th){background:var(--v51-card2)!important;color:var(--v51-text)!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.faq-answer,.accordion-content,td){color:var(--v51-muted)!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) table{background:var(--v51-card)!important;color:var(--v51-text)!important;border-color:var(--v51-line)!important}
/* Gallery overlays must stay white over images */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gallery-overlay,
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .gallery-overlay *{color:#fff!important}
/* Footer */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.site-footer,footer){background:#07101d!important;color:#dce8f7!important;border-color:var(--v51-line)!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.site-footer,footer) :is(h1,h2,h3,h4,strong,b){color:#edf5ff!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.site-footer,footer) :is(p,span){color:#b7c5d7!important}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.site-footer,footer) a{color:#c8d7e9!important}
/* Preserve badges, colored icons and document-like white previews */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.badge,.kds-badge,.pill,.hero-tag,.section-count){color:inherit}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(canvas,.pdf-preview,.image-preview,.invoice-preview,.resume-preview,.document-preview){background:#fff!important;color:#111!important}
/* Mobile CTA safety */
@media(max-width:760px){
 :is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.action-banner,.order-banner){gap:14px!important}
 :is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) :is(.action-banner,.order-banner) :is(.btn,.cta-btn,a[class*="btn"]){white-space:normal!important;text-align:center!important}
}
/* V53: Premium Services icons remain visible in dark mode */
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-icon{
  background:#17345c!important;
  color:#8fc5ff!important;
  border:1px solid #315986!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-icon i{
  color:currentColor!important;
  opacity:1!important;
  visibility:visible!important;
}
:is(html[data-theme="dark"],html[data-kds-theme="dark"],html.dark) .kds-premium-arrow{
  color:#9fc5ef!important;
}
