html { scroll-padding-top: calc(var(--site-header-height, 106px) + 16px); }
body { overflow-x: clip; }
body .main-header { position: sticky; top: 0; z-index: 1040; }
.mobile-drawer { height: 100dvh; max-width: calc(100vw - 24px); overscroll-behavior: contain; }
.mobile-drawer-overlay { height: 100dvh; }
.rich-content { min-width: 0; overflow-wrap: anywhere; line-height: 1.8; }
.rich-content :is(img, video) { max-width: 100%; height: auto; }
.rich-content iframe { max-width: 100%; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }
.rich-content pre { max-width: 100%; overflow-x: auto; }
.rich-content > :last-child { margin-bottom: 0; }

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --site-background: #0d1420;
    --bg-surface: #172231;
    --bg-light: #111c2b;
    --card-bg: #172231;
    --text-dark: #edf2f8;
    --text-heading: #edf2f8;
    --text-muted: #b3bfce;
    --border-light: #354255;
    --border-color: #354255;
    --border: #354255;
    --twonet-dark: #edf2f8;
    --twonet-text-dark: #edf2f8;
    --twonet-text: #b3bfce;
    --twonet-gray: #aab7c9;
    --twonet-neutral: #111c2b;
    --twonet-border-light: #354255;
    --twonet-border-dark: #354255;
    --twonet-link-light: #8596ad;
}
html[data-theme="dark"] body { background: var(--site-background); color: var(--text-dark); }
html[data-theme="dark"] :is(h1, h2, h3, h4, h5, h6) { color: var(--text-dark); }
html[data-theme="dark"] :is(.main-header, .site-nav-submenu, .talex-card, .home-product, .home-service, .home-package, .home-quote, .home-blog, .home-article, .movie-card, .coverage-form, .shop-sort-form select) {
    background-color: var(--bg-surface);
    border-color: var(--border-light);
    color: var(--text-dark);
}
html[data-theme="dark"] :is(.site-nav-row > a, .menu-call-box .call-text a, .cart-icon-btn, .mobile-toggle-btn, .home-product h3 a, .home-blog a, .home-article h3 a, .movie-card-info, .movie-card-info h3) { color: var(--text-dark) !important; }
html[data-theme="dark"] :is(.site-nav-toggle, .menu-call-box .call-text span, .home-section p, .home-quote blockquote, .home-person small, .plan-price small, .text-muted) { color: var(--text-muted) !important; }
html[data-theme="dark"] :is(.site-nav-row:hover, .site-nav-toggle:hover, .menu-call-box .call-icon, .home-service-icon) { background-color: #24334a; }
html[data-theme="dark"] .site-nav-item.active > .site-nav-row > a,
html[data-theme="dark"] .site-nav-row > a:hover { color: #ff7899 !important; }
html[data-theme="dark"] :is(.home-section:nth-of-type(even), .home-hero, .page-title, .page-header, .home-product-image, .home-cta, .home-section.home-cta) { background-color: var(--bg-light); }
html[data-theme="dark"] :is(.btn-outline, .btn-secondary) { border-color: var(--border-light); color: var(--text-dark); }
html[data-theme="dark"] :is(.form-control, .form-select, .site-contact-form input, .site-contact-form textarea, .source-coverage-form input) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--border-light);
}
html[data-theme="dark"] :is(input, textarea)::placeholder { color: #96a5b8; opacity: 1; }
html[data-theme="dark"] .form-control:focus { background-color: var(--bg-light); color: var(--text-dark); }
html[data-theme="dark"] .table { --bs-table-color: var(--text-dark); --bs-table-bg: transparent; --bs-table-border-color: var(--border-light); color: var(--text-dark); }
html[data-theme="dark"] .site-alert { background-color: #143128; border-color: #346a52; color: #d1f2e3; }
html[data-theme="dark"] .site-alert.error { background-color: #3b202e; border-color: #794052; color: #ffd6e0; }

html[data-theme="dark"] .source-home :is(.elementor-element-ed7eed3, .elementor-element-cbedf31, .elementor-element-dab06b9),
html[data-theme="dark"] .source-home .elementor-element-935d3e4 > .elementor-widget-container { background-color: var(--bg-light) !important; }
html[data-theme="dark"] .source-home :is(.services-four-box, .pricing-package-one-box, .whychoose-one-box, .package-one-tabs .nav-link) { background-color: var(--bg-surface); border-color: var(--border-light); }
html[data-theme="dark"] .source-home :is(.section-main-title h1, .section-main-title h2, .source-product-card h3 a, .pricing-package-one-box .box-price h3, .testimonial-one-detais p, .popular-movie-one-title a, .banner-one-left-details p) { color: var(--text-dark) !important; }
html[data-theme="dark"] .source-home .package-one-tabs .nav-link { color: var(--text-dark); }
html[data-theme="dark"] .source-home .package-one-tabs .nav-link.active { background: var(--twonet-primery); color: #fff; }
html[data-theme="dark"] .source-home :is(.btn-bg-white, #internet_offer .btn-bg-primary, .source-product-detail) { color: #111; }
html[data-theme="dark"] .source-home .pricing-package-one-box:hover { background-color: #080d16; }
html[data-theme="dark"] .source-home .source-product-image { background-color: #e7ebf0; }
html[data-theme="dark"] .source-home .section-main-title span { color: #fff; }
html[data-theme="dark"] .source-home .elementor-element-9ace766 .section-main-title span { color: #ff7899; }

@media (max-width: 575px) {
    body .main-header .header-menu { gap: 12px; }
    body .main-header .header-right-actions { gap: 8px; }
    body .main-header .cart-icon-btn { padding: 6px; }
}
