/* ==========================================================================
   Wevarox Pro Theme Switcher & Unified Dark Mode (wevarox-theme.css)
   ========================================================================== */

/* ---------- 1. PRO FLOATING SUN / MOON PILL SWITCHER ---------- */
.wx-theme-dock {
    position: fixed;
    left: 20px;
    bottom: 22px;
    z-index: 9980;
}

.wx-theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 72px;
    height: 38px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    outline: none;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.16s ease;
}

.wx-theme-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(114, 83, 235, 0.22), 0 2px 8px rgba(15, 23, 42, 0.08);
    border-color: rgba(114, 83, 235, 0.45);
}

.wx-theme-switch:focus-visible {
    box-shadow: 0 0 0 3px rgba(114, 83, 235, 0.35);
}

.wx-theme-switch__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.42);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background 0.26s ease, box-shadow 0.26s ease;
}

.wx-theme-switch__opt {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.wx-theme-switch__opt--sun {
    color: #ffffff;
}

.wx-theme-switch__opt--moon {
    color: #64748b;
}

/* Dark state of switcher */
[data-bs-theme="dark"] .wx-theme-switch,
.wx-theme-switch.is-dark {
    background: rgba(18, 20, 31, 0.94);
    border-color: rgba(114, 83, 235, 0.42);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(114, 83, 235, 0.16);
}

[data-bs-theme="dark"] .wx-theme-switch__thumb,
.wx-theme-switch.is-dark .wx-theme-switch__thumb {
    transform: translateX(34px);
    background: linear-gradient(135deg, #7253eb 0%, #5b3bd6 100%);
    box-shadow: 0 3px 12px rgba(114, 83, 235, 0.55);
}

[data-bs-theme="dark"] .wx-theme-switch__opt--sun,
.wx-theme-switch.is-dark .wx-theme-switch__opt--sun {
    color: #94a3b8;
}

[data-bs-theme="dark"] .wx-theme-switch__opt--moon,
.wx-theme-switch.is-dark .wx-theme-switch__opt--moon {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .wx-theme-dock {
        left: 14px;
        bottom: 18px;
    }
    .wx-theme-switch {
        width: 64px;
        height: 34px;
        padding: 3px;
    }
    .wx-theme-switch__thumb,
    .wx-theme-switch__opt {
        width: 26px;
        height: 26px;
    }
    [data-bs-theme="dark"] .wx-theme-switch__thumb,
    .wx-theme-switch.is-dark .wx-theme-switch__thumb {
        transform: translateX(30px);
    }
}

/* ==========================================================================
   2. UNIFIED DARK MODE ([data-bs-theme="dark"])
   ========================================================================== */
[data-bs-theme="dark"],
[data-bs-theme="dark"] .wx-page,
[data-bs-theme="dark"] .hk-home {
    --wx-dark-canvas: #0b0c12;
    --wx-dark-surface: #12141f;
    --wx-dark-surface-2: #181b2a;
    --wx-dark-border: #25293e;
    --wx-dark-ink: #f8fafc;
    --wx-dark-body: #cbd5e1;
    --wx-dark-muted: #94a3b8;
    --wx-dark-purple: #8b6ff5;
    --wx-dark-lav: rgba(114, 83, 235, 0.16);

    /* Homepage & Store Design Tokens (flips all var(--hk-*) & var(--hkp-*) surfaces & inks!) */
    --hk-ink: #f8fafc;
    --hk-body: #cbd5e1;
    --hk-muted: #94a3b8;
    --hk-border: #25293e;
    --hk-soft: #131624;
    --hk-lav: rgba(114, 83, 235, 0.16);

    --hkp-ink: #f8fafc;
    --hkp-body: #cbd5e1;
    --hkp-muted: #94a3b8;
    --hkp-border: #25293e;
    --hkp-soft: #131624;
    --hkp-lav: rgba(114, 83, 235, 0.16);
    color-scheme: dark;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] body.tt-body-wrapper,
[data-bs-theme="dark"] body.wevarox-homepage,
[data-bs-theme="dark"] body.wevarox-homepage #main-body,
[data-bs-theme="dark"] body.wevarox-homepage #main-body.ptb-100,
[data-bs-theme="dark"] body:has(.wx-page) #main-body,
[data-bs-theme="dark"] body.wx-cart-pro #main-body,
[data-bs-theme="dark"] body:has(#order-standard_cart:not(.hkp-page)) #main-body,
[data-bs-theme="dark"] body.wx-contact-page #main-body,
[data-bs-theme="dark"] #main-body,
[data-bs-theme="dark"] #main-body:has(.wx-ct-wrap) {
    background-color: #0b0c12 !important;
    color: #e2e8f0 !important;
}

/* ---------- Header, Brand Logo & Navbar ---------- */
[data-bs-theme="dark"] #header.tt-header,
[data-bs-theme="dark"] #header .navbar {
    background: #0f111a !important;
    border-bottom: 1px solid #1e2235;
}
[data-bs-theme="dark"] body.wevarox-homepage #header.tt-header,
[data-bs-theme="dark"] body.wevarox-homepage #header .navbar {
    background: rgba(13, 12, 18, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] #header .navbar-brand .logo-img,
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__logo img {
    filter: brightness(0) invert(1) !important;
}
@media (min-width: 992px) {
    [data-bs-theme="dark"] #header .offcanvas-collapse,
    [data-bs-theme="dark"] #header .navbar-collapse,
    [data-bs-theme="dark"] #header .wx-nav {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
}
@media (max-width: 991.98px) {
    [data-bs-theme="dark"] #header .offcanvas-collapse {
        background: #10121c !important;
    }
}
[data-bs-theme="dark"] #header .wx-nav > li > a,
[data-bs-theme="dark"] #header .tt-secondary-list > li > a,
[data-bs-theme="dark"] #header .tt-toolbar-wrap a {
    color: #f1f5f9 !important;
}
[data-bs-theme="dark"] #header .wx-nav > li > a:hover,
[data-bs-theme="dark"] #header .wx-nav > li.dropdown:hover > a {
    color: #a78bfa !important;
}
[data-bs-theme="dark"] #header .wx-nav-toggle,
[data-bs-theme="dark"] #header .wx-nav-close {
    background: #181b2a !important;
    border-color: #2b3048 !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #header .offcanvas-collapse #nav > li {
    border-bottom-color: #1f2336 !important;
}
[data-bs-theme="dark"] #header .offcanvas-collapse #nav > li > a {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #header .wx-mega,
[data-bs-theme="dark"] body.wevarox-homepage .wevarox-sheet #header .wx-nav .wx-mega {
    background: #12141f !important;
    border-color: #262a40 !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] #header .wx-mega__title,
[data-bs-theme="dark"] #header .wx-mega__head-title,
[data-bs-theme="dark"] #header .wx-mega__item strong,
[data-bs-theme="dark"] #header .wx-mega__foot-info strong {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #header .wx-mega__desc,
[data-bs-theme="dark"] #header .wx-mega__sub,
[data-bs-theme="dark"] #header .wx-mega__item span,
[data-bs-theme="dark"] #header .wx-mega__foot-info span {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] #header .wx-mega--dom .wx-mega__item {
    background: #171a29 !important;
    border-color: #262a40 !important;
}
[data-bs-theme="dark"] #header .wx-mega--dom .wx-mega__item:hover,
[data-bs-theme="dark"] #header .wx-mega--host .wx-mega__item:hover,
[data-bs-theme="dark"] #header .wx-mega--lic .wx-mega__item:hover {
    background: #1e2236 !important;
    border-color: rgba(139, 111, 245, 0.45) !important;
}
[data-bs-theme="dark"] #header .wx-mega__ico {
    background: #1d2134 !important;
    border-color: #2b314d !important;
}
[data-bs-theme="dark"] #header .wx-mega--dom .wx-mega__tag {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] #header .wx-mega__foot {
    background: #0e1019 !important;
    border-top-color: #22263b !important;
}

/* ---------- Homepage (.hk-home / wevarox-cloud-ui.css) ---------- */
[data-bs-theme="dark"] .hk-home,
[data-bs-theme="dark"] .hk-sec,
[data-bs-theme="dark"] .hk-logos-sec,
[data-bs-theme="dark"] .hk-logos-sec--top,
[data-bs-theme="dark"] .hk-bento-sec,
[data-bs-theme="dark"] .hk-feat-sec,
[data-bs-theme="dark"] .hk-why-sec,
[data-bs-theme="dark"] .hk-migrate-sec,
[data-bs-theme="dark"] .hk-reviews-sec,
[data-bs-theme="dark"] .hk-support-sec,
[data-bs-theme="dark"] .hk-faq-sec,
[data-bs-theme="dark"] .wevarox-logos-strip {
    background: #0b0c12 !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .hk-h2,
[data-bs-theme="dark"] .hk-home h2,
[data-bs-theme="dark"] .hk-home h3,
[data-bs-theme="dark"] .hk-home h4,
[data-bs-theme="dark"] .hk-sol-card h3,
[data-bs-theme="dark"] .hk-sol-price,
[data-bs-theme="dark"] .hk-counter strong,
[data-bs-theme="dark"] .hk-rev-foot strong,
[data-bs-theme="dark"] .hk-faq-q,
[data-bs-theme="dark"] .hk-guide-card h3,
[data-bs-theme="dark"] .hk-sup-list li {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hk-lead,
[data-bs-theme="dark"] .hk-home p,
[data-bs-theme="dark"] .hk-sol-card p,
[data-bs-theme="dark"] .hk-sol-card li,
[data-bs-theme="dark"] .hk-counter span,
[data-bs-theme="dark"] .hk-rev-card p,
[data-bs-theme="dark"] .hk-rev-foot span,
[data-bs-theme="dark"] .hk-faq-a {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .hk-pill,
[data-bs-theme="dark"] .hk-pill--white {
    background: rgba(114, 83, 235, 0.16) !important;
    border-color: rgba(167, 139, 250, 0.32) !important;
    color: #d8ccff !important;
}
[data-bs-theme="dark"] .hk-btn--outline-purple {
    background: rgba(114, 83, 235, 0.12) !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hk-btn--outline-purple:hover {
    background: #7253eb !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
}

/* Homepage solution cards */
[data-bs-theme="dark"] .hk-sol-card,
[data-bs-theme="dark"] .hk-card,
[data-bs-theme="dark"] .hk-bento-card,
[data-bs-theme="dark"] .hk-feat-card,
[data-bs-theme="dark"] .hk-why-card,
[data-bs-theme="dark"] .hk-mig-card,
[data-bs-theme="dark"] .hk-rev-card,
[data-bs-theme="dark"] .hk-faq-item,
[data-bs-theme="dark"] .hk-guide-card,
[data-bs-theme="dark"] .hk-plan-card,
[data-bs-theme="dark"] .hk-price-card {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;
}
[data-bs-theme="dark"] .hk-sol-card--lav {
    background: radial-gradient(260px 190px at 90% 10%, rgba(167, 139, 250, 0.18), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-card--slate {
    background: radial-gradient(260px 190px at 90% 10%, rgba(148, 163, 184, 0.15), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-card--blue {
    background: radial-gradient(260px 190px at 90% 10%, rgba(96, 165, 250, 0.18), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-card--pink {
    background: radial-gradient(260px 190px at 90% 10%, rgba(232, 121, 249, 0.16), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-card--mint {
    background: radial-gradient(260px 190px at 90% 10%, rgba(52, 211, 153, 0.18), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-card--amber {
    background: radial-gradient(260px 190px at 90% 10%, rgba(251, 191, 36, 0.16), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hk-sol-ico,
[data-bs-theme="dark"] .hk-mig-ico {
    background: #1b1e30 !important;
    border-color: #2b304a !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hk-sol-ico img,
[data-bs-theme="dark"] .hk-sol-ico svg,
[data-bs-theme="dark"] .hk-mig-ico img,
[data-bs-theme="dark"] .hk-mig-ico svg,
[data-bs-theme="dark"] .hkp-feat-item__ic img,
[data-bs-theme="dark"] .hkp-feat-item__ic svg {
    filter: brightness(0) invert(1) opacity(0.92);
}
[data-bs-theme="dark"] .hk-sol-card a,
[data-bs-theme="dark"] .hk-sol-foot,
[data-bs-theme="dark"] .hk-sol-link,
[data-bs-theme="dark"] .hk-faq-item summary,
[data-bs-theme="dark"] .hkp-faq-item summary,
[data-bs-theme="dark"] .hkp-price-val,
[data-bs-theme="dark"] .hkp-price-main,
[data-bs-theme="dark"] .hkp-hero-stat__ring strong,
[data-bs-theme="dark"] .hkp-locnote strong,
[data-bs-theme="dark"] .hkp-more summary {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hkp-more {
    background: #181b2c !important;
    border-color: #292e47 !important;
}
[data-bs-theme="dark"] .hkp-standout-box {
    background: #12141f !important;
    border-color: #25293e !important;
}

/* Homepage domain search banner */
[data-bs-theme="dark"] .hk-dom-card {
    background:
        radial-gradient(520px 320px at 88% 12%, rgba(244, 114, 182, 0.14), transparent 65%),
        radial-gradient(520px 320px at 14% 88%, rgba(114, 83, 235, 0.22), transparent 65%),
        linear-gradient(135deg, #16142a 0%, #101322 52%, #18132a 100%) !important;
    border: 1px solid #282c46 !important;
}
[data-bs-theme="dark"] .hk-dom-deco {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-bs-theme="dark"] .hk-dom-deco i {
    background: rgba(255, 255, 255, 0.14) !important;
}
[data-bs-theme="dark"] .hk-dom-form {
    background: #181b2a !important;
    border: 1px solid #2d324d !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;
}
[data-bs-theme="dark"] .hk-dom-form input {
    background: transparent !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hk-dom-form input::placeholder {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .hk-dom-form__tld {
    background: #202438 !important;
    color: #f1f5f9 !important;
    border-color: #2f3552 !important;
}

/* Homepage bento, speed counters, FAQ, guides & CTA */
[data-bs-theme="dark"] .hk-bento-card--lav {
    background: radial-gradient(320px 240px at 85% 12%, rgba(114, 83, 235, 0.2), transparent 72%), #131524 !important;
    border: 1px solid #292d48 !important;
}
[data-bs-theme="dark"] .hk-bento-card--mint {
    background: radial-gradient(320px 240px at 85% 12%, rgba(16, 185, 129, 0.16), transparent 72%), #121722 !important;
    border: 1px solid #23343b !important;
}
[data-bs-theme="dark"] .hk-bento-wide {
    background: radial-gradient(400px 260px at 85% 20%, rgba(99, 102, 241, 0.18), transparent 72%), #121524 !important;
    border: 1px solid #262b46 !important;
}
[data-bs-theme="dark"] .hk-cdn-badge,
[data-bs-theme="dark"] .hk-speed-chip,
[data-bs-theme="dark"] .hk-counter {
    background: #181b2b !important;
    border: 1px solid #2b304a !important;
    color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .hk-counter__ic--pink {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fb7185 !important;
}
[data-bs-theme="dark"] .hk-counter__ic--purple {
    background: rgba(114, 83, 235, 0.2) !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hk-counter__ic--green {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}
[data-bs-theme="dark"] .hk-rev-btn {
    background: #181b2a !important;
    border-color: #2a2f46 !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hk-rev-btn:hover {
    background: #7253eb !important;
    border-color: #7253eb !important;
}
[data-bs-theme="dark"] .hk-faq-item[open] {
    background: #161929 !important;
    border-color: rgba(139, 111, 245, 0.42) !important;
}
[data-bs-theme="dark"] .hk-faq-plus {
    background: #1e2236 !important;
    border-color: #2e3452 !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hk-guide-card__thumb {
    background: #181b2c !important;
}
[data-bs-theme="dark"] .hk-guide-tag {
    background: #12141f !important;
    color: #c4b5fd !important;
    border: 1px solid #2b304a !important;
}
[data-bs-theme="dark"] .hk-cta-banner {
    background: linear-gradient(135deg, #16142a 0%, #111320 100%) !important;
    border: 1px solid #2a2f4a !important;
}
[data-bs-theme="dark"] .hk-logo-pill,
[data-bs-theme="dark"] .wevarox-logos-strip .wx-logo-tile {
    background: #151826 !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}

/* ---------- All 14 Store Product Pages (.wx-page / .hkp-page / wx-store.css) ---------- */
[data-bs-theme="dark"] .wx-page,
[data-bs-theme="dark"] .hkp-page,
[data-bs-theme="dark"] .hkp-sec {
    background: #0b0c12 !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .hkp-hero-sec {
    background:
        radial-gradient(560px 360px at 88% 12%, rgba(114, 83, 235, 0.22), transparent 65%),
        radial-gradient(520px 340px at 10% 90%, rgba(56, 189, 248, 0.1), transparent 65%),
        linear-gradient(180deg, #131124 0%, #0b0c12 100%) !important;
    border-bottom: 1px solid #1f2238 !important;
}
[data-bs-theme="dark"] .hkp-hero__title,
[data-bs-theme="dark"] .hkp-sec h2,
[data-bs-theme="dark"] .hkp-sec h3,
[data-bs-theme="dark"] .hkp-sec h4,
[data-bs-theme="dark"] .hkp-card__title,
[data-bs-theme="dark"] .hkp-card h3,
[data-bs-theme="dark"] .hkp-price,
[data-bs-theme="dark"] .hkp-price__num,
[data-bs-theme="dark"] .hkp-plan-card h3,
[data-bs-theme="dark"] .hkp-plan-price,
[data-bs-theme="dark"] .hkp-demo h3,
[data-bs-theme="dark"] .hkp-amber-card h3,
[data-bs-theme="dark"] .hkp-lav-card h3,
[data-bs-theme="dark"] .hkp-cross-card h3,
[data-bs-theme="dark"] .hkp-faq-q,
[data-bs-theme="dark"] .hkp-cta-banner h2 {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hkp-hero__lead,
[data-bs-theme="dark"] .hkp-hero__checks li,
[data-bs-theme="dark"] .hkp-sec p,
[data-bs-theme="dark"] .hkp-card p,
[data-bs-theme="dark"] .hkp-card li,
[data-bs-theme="dark"] .hkp-specs li,
[data-bs-theme="dark"] .hkp-plan-card li,
[data-bs-theme="dark"] .hkp-amber-card p,
[data-bs-theme="dark"] .hkp-lav-card p,
[data-bs-theme="dark"] .hkp-cross-card p,
[data-bs-theme="dark"] .hkp-faq-a {
    color: #b4bfd4 !important;
}

/* Store buttons in dark mode (high contrast!) */
[data-bs-theme="dark"] .hkp-btn--dark {
    background: #7253eb !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(114, 83, 235, 0.34);
}
[data-bs-theme="dark"] .hkp-btn--dark:hover {
    background: #5b3bd6 !important;
    border-color: #5b3bd6 !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .hkp-btn--ghost {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hkp-btn--ghost:hover {
    background: rgba(114, 83, 235, 0.2) !important;
    border-color: rgba(167, 139, 250, 0.55) !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .hkp-btn--outline-purple {
    background: rgba(114, 83, 235, 0.12) !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hkp-btn--outline-purple:hover {
    background: #7253eb !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
}

/* Store hero floating widgets */
[data-bs-theme="dark"] .hkp-hero-browser__bar {
    background: #161929 !important;
    border-bottom-color: #252a42 !important;
}
[data-bs-theme="dark"] .hkp-hero-browser__url {
    background: #202438 !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .hkp-hero-shield,
[data-bs-theme="dark"] .hkp-hero-stat {
    background: #151828 !important;
    border: 1px solid #2b314e !important;
    color: #f8fafc !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45) !important;
}
[data-bs-theme="dark"] .hkp-hero-stat span,
[data-bs-theme="dark"] .hkp-hero-shield span {
    color: #e2e8f0 !important;
}

/* Store billing cycle pills & toggles */
[data-bs-theme="dark"] .hkp-billing-bar,
[data-bs-theme="dark"] .hkp-cycle-bar,
[data-bs-theme="dark"] .hkp-pills {
    background: #151826 !important;
    border-color: #262b42 !important;
}
[data-bs-theme="dark"] .hkp-cycle-btn,
[data-bs-theme="dark"] .hkp-pills__btn {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .hkp-cycle-btn.is-active,
[data-bs-theme="dark"] .hkp-cycle-btn[aria-pressed="true"],
[data-bs-theme="dark"] .hkp-pills__btn.is-on {
    background: #7253eb !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .hkp-pills__save {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}
[data-bs-theme="dark"] .hkp-pills__btn.is-on .hkp-pills__save {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Store pricing cards & gradients */
[data-bs-theme="dark"] .hkp-card,
[data-bs-theme="dark"] .hkp-plan-card,
[data-bs-theme="dark"] .hkp-feat-panel,
[data-bs-theme="dark"] .hkp-bento-card,
[data-bs-theme="dark"] .hkp-demo,
[data-bs-theme="dark"] .hkp-faq-item,
[data-bs-theme="dark"] .hkp-cross-card {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .hkp-card--t0 {
    background: radial-gradient(280px 210px at 90% 6%, rgba(167, 139, 250, 0.16), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-card--t1 {
    background: radial-gradient(280px 210px at 90% 6%, rgba(125, 211, 252, 0.16), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-card--t2 {
    background: radial-gradient(280px 210px at 90% 6%, rgba(110, 231, 183, 0.16), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-card--t3 {
    background: radial-gradient(280px 210px at 90% 6%, rgba(253, 224, 71, 0.14), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-plan-card--pop,
[data-bs-theme="dark"] .hkp-plan-card.is-popular,
[data-bs-theme="dark"] .hkp-card--pop {
    background: linear-gradient(180deg, #1b1733 0%, #12141f 100%) !important;
    border-color: #7253eb !important;
}
[data-bs-theme="dark"] .hkp-savechip {
    background: rgba(114, 83, 235, 0.18) !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
    color: #d8ccff !important;
}
[data-bs-theme="dark"] .hkp-order {
    background: #1b1f33 !important;
    border-color: #303654 !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .hkp-order:hover,
[data-bs-theme="dark"] .hkp-card--pop .hkp-order {
    background: #7253eb !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .hkp-mint-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(18, 20, 31, 0.98)) !important;
    border: 1px solid rgba(52, 211, 153, 0.28) !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .hkp-mint-chip {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
    color: #34d399 !important;
}

/* Store interactive demo, feature cards, FAQ & CTA */
[data-bs-theme="dark"] .wx-demo__btn {
    background: #1a1e30 !important;
    border-color: #2d3350 !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .wx-demo__btn:hover,
[data-bs-theme="dark"] .wx-demo__btn.is-active {
    background: #7253eb !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] .hkp-meter p {
    background: #202438 !important;
}
[data-bs-theme="dark"] .wx-demo__status {
    background: #171a2b !important;
    border-color: #272c45 !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .wx-demo__pill--ok {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}
[data-bs-theme="dark"] .wx-demo__pill--off {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #f87171 !important;
}
[data-bs-theme="dark"] .wx-demo__pill--warn {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #fbbf24 !important;
}
[data-bs-theme="dark"] .hkp-amber-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(18, 20, 31, 0.98)) !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
}
[data-bs-theme="dark"] .hkp-amber-card__art {
    background: rgba(255, 255, 255, 0.04) !important;
}
[data-bs-theme="dark"] .hkp-amber-badge {
    background: #1c2033 !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    color: #fcd34d !important;
}
[data-bs-theme="dark"] .hkp-lav-card {
    background: linear-gradient(135deg, rgba(114, 83, 235, 0.18), rgba(18, 20, 31, 0.98)) !important;
    border: 1px solid rgba(167, 139, 250, 0.28) !important;
}
[data-bs-theme="dark"] .hkp-faq-item[open] {
    background: #161929 !important;
    border-color: rgba(139, 111, 245, 0.42) !important;
}
[data-bs-theme="dark"] .hkp-faq-plus {
    background: #1e2236 !important;
    border-color: #2e3452 !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .hkp-cross-card--a {
    background: radial-gradient(280px 200px at 94% 12%, rgba(96, 165, 250, 0.18), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-cross-card--b {
    background: radial-gradient(280px 200px at 94% 12%, rgba(52, 211, 153, 0.18), transparent 72%), #12141f !important;
}
[data-bs-theme="dark"] .hkp-cta-banner {
    background: linear-gradient(135deg, #16142a 0%, #111320 100%) !important;
    border: 1px solid #2a2f4a !important;
}

/* ---------- Domain Register, Transfer, Cart & Checkout (.wx-cart-pro) ---------- */
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) {
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .header-lined h1,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .header-lined h2,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .sub-heading span,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .sub-heading-borderless span,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-pro-card__title,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-guide__title,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-steps strong,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-chk-banner__copy strong,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-pricing h4,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .tld-row strong,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-promo-box h3,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .product-info .product-title,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .marketing-email-optin h4,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-field label {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-steps-bar,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-pro-card,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-guide,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-chk-banner,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-pricing,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .featured-tld,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .spotlight-tld,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-promo-box,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-checker-result-headline,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .field-container,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .panel-addon,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .order-summary,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .summary-container,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .view-cart-items,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .view-cart-tabs,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-selection-options .option,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) #frmCheckout .sub-heading + .row,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) #containerNewUserSignup > .row,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) #containerExistingUserSignin,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) #paymentGatewaysContainer,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .marketing-email-optin {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .panel-addon-selected,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .domain-selection-options .option-selected {
    background: #1b1833 !important;
    border-color: #7253eb !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-dom-search-bar {
    background: #151826 !important;
    border: 1px solid #2e3350 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-dom-search-bar input {
    background: transparent !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-pro-card__head,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-pro-card__foot,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .product-info,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .featured-tld .price,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .tld-pricing-header,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .order-summary .total-due-today {
    background: #181b2a !important;
    border-color: #262b42 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-pro-card__ico,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-steps__num {
    background: rgba(114, 83, 235, 0.18) !important;
    border: 1px solid rgba(167, 139, 250, 0.34) !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-perks {
    border-top-color: #25293e !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-tr-perks span {
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(52, 211, 153, 0.28) !important;
    color: #34d399 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-step.is-done .wx-step__num {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-step__line {
    background: #25293e !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .tld-row {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .tld-row:hover {
    background: #1a1e30 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .tld-filters a {
    background: #1a1e30 !important;
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-chk-switch {
    background: #1a1e30 !important;
    border-color: #2b3048 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-chk-switch__btn {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-chk-switch__btn.is-active {
    background: #7253eb !important;
    color: #ffffff !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-step.is-active {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .wx-step__num {
    background: #1e2236 !important;
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .form-control,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .field,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) select.form-control {
    background: #181b2a !important;
    border-color: #2d324d !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .intl-tel-input .selected-flag,
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .iti .iti__selected-flag {
    background: #202438 !important;
    border-right-color: #2d324d !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .intl-tel-input .selected-dial-code {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #order-standard_cart:not(.hkp-page) .intl-tel-input .country-list {
    background: #151826 !important;
    border-color: #2b3048 !important;
    color: #e2e8f0 !important;
}

/* ---------- Contact Page (.wx-ct-wrap) ---------- */
[data-bs-theme="dark"] .wx-ct-ch,
[data-bs-theme="dark"] .wx-ct-card {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .wx-ct-card__head {
    background: #181b2a !important;
    border-bottom-color: #25293e !important;
}
[data-bs-theme="dark"] .wx-ct-ch h3,
[data-bs-theme="dark"] .wx-ct-card__head h2,
[data-bs-theme="dark"] .wx-ct-depts h3,
[data-bs-theme="dark"] .wx-ct-dept-list strong,
[data-bs-theme="dark"] .wx-ct-form label {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .wx-ct-ch p,
[data-bs-theme="dark"] .wx-ct-card__head p,
[data-bs-theme="dark"] .wx-ct-dept-list span {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .wx-ct-form .form-control {
    background: #181b2a !important;
    border-color: #2d324d !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .wx-ct-ch__ico,
[data-bs-theme="dark"] .wx-ct-card__head-ico,
[data-bs-theme="dark"] .wx-ct-dept-dot {
    background: rgba(114, 83, 235, 0.16) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
    color: #a78bfa !important;
}
[data-bs-theme="dark"] .wx-ct-ch__ico--green {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
}

/* ---------- Knowledgebase, Sidebars & General WHMCS Pages ---------- */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-sidebar,
[data-bs-theme="dark"] .panel,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .primary-content .alert-info,
[data-bs-theme="dark"] .primary-content .tt-kb-search {
    background: #12141f !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .sidebar .card-sidebar .card-header {
    background: #181b2a !important;
    border-bottom-color: #25293e !important;
}
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .sidebar .card-sidebar .card-header .card-title,
[data-bs-theme="dark"] .primary-content h1,
[data-bs-theme="dark"] .primary-content h2,
[data-bs-theme="dark"] .primary-content h3,
[data-bs-theme="dark"] .primary-content h4 {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .sidebar .list-group-item {
    background: transparent !important;
    color: #cbd5e1 !important;
    border-color: #1f2336 !important;
}
[data-bs-theme="dark"] .sidebar .list-group-item .sidebar-menu-item-icon-wrapper {
    background: #1e2236 !important;
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] .sidebar .list-group-item:hover {
    background: rgba(114, 83, 235, 0.14) !important;
    color: #c4b5fd !important;
}
[data-bs-theme="dark"] .primary-content .form-control,
[data-bs-theme="dark"] .primary-content select.form-control,
[data-bs-theme="dark"] .primary-content textarea.form-control,
[data-bs-theme="dark"] .primary-content .tt-kb-search input.form-control {
    background: #181b2a !important;
    border-color: #2d324d !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .primary-content .bg-gray-light {
    background: #151826 !important;
    border: 1px solid #25293e;
}

/* ---------- Footer (#footer.hk-footer) ---------- */
[data-bs-theme="dark"] #footer.hk-footer {
    background: #0f111a !important;
    border-top-color: #1f2336 !important;
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__col h6,
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__pay span {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__desc,
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__addr,
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__col li a {
    color: #94a3b8 !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__col li a:hover {
    color: #a78bfa !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__paybar {
    border-color: #1f2336 !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__pill,
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__langbtn {
    background: #181b2a !important;
    border-color: #2a2f46 !important;
    color: #f1f5f9 !important;
}
[data-bs-theme="dark"] #footer.hk-footer .hk-footer__bottom {
    background: #090a10 !important;
    color: #94a3b8 !important;
}

/* ==========================================================================
   3. GLOBAL MODAL LAYERING & LANGUAGE/CURRENCY MODAL (#modalChooseLanguage)
   ========================================================================== */
.modal {
    z-index: 10020 !important;
}
body.modal-open .modal-backdrop {
    z-index: 10010 !important;
}
#modalChooseLanguage.wx-loc-modal .item-selector .item::before,
#modalChooseLanguage.wx-loc-modal .item-selector .item::after {
    display: none !important;
    content: none !important;
}

#modalChooseLanguage.wx-loc-modal .modal-dialog {
    max-width: 740px;
}

#modalChooseLanguage.wx-loc-modal .wx-loc-content {
    border: 1px solid #e4e7f0 !important;
    border-radius: 22px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24), 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Obsidian Modal Header */
#modalChooseLanguage .wx-loc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    background:
        radial-gradient(360px 180px at 14% 0%, rgba(114, 83, 235, 0.34), transparent 70%),
        linear-gradient(135deg, #141226 0%, #0d0c14 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#modalChooseLanguage .wx-loc-head__id {
    display: flex;
    align-items: center;
    gap: 14px;
}

#modalChooseLanguage .wx-loc-head__ico {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: rgba(114, 83, 235, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.38);
    color: #c4b5fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#modalChooseLanguage .wx-loc-head__title {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff !important;
}

#modalChooseLanguage .wx-loc-head__sub {
    margin: 0;
    font-size: 13px;
    color: #a9b2c8;
    line-height: 1.45;
}

#modalChooseLanguage .wx-loc-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

#modalChooseLanguage .wx-loc-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Body & Sections */
#modalChooseLanguage .wx-loc-body {
    padding: 24px 26px 20px !important;
    background: #ffffff;
}

#modalChooseLanguage .wx-loc-sec + .wx-loc-sec {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef0f6;
}

#modalChooseLanguage .wx-loc-sec__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 13px;
}

#modalChooseLanguage .wx-loc-sec__label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #5b5f70;
}

#modalChooseLanguage .wx-loc-sec__hint {
    font-size: 12.2px;
    color: #7c8294;
}

/* Currency Cards */
#modalChooseLanguage .wx-loc-cur-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin: 0 !important;
}

#modalChooseLanguage .wx-cur-card {
    display: flex !important;
    align-items: center !important;
    gap: 11px;
    padding: 12px 14px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    border: 1.5px solid #e4e7f0 !important;
    background: #f9fafd !important;
    color: #13151d !important;
    text-decoration: none !important;
    text-align: left !important;
    line-height: 1.25 !important;
    transition: all 0.18s ease;
}

#modalChooseLanguage .wx-cur-card:hover {
    border-color: rgba(114, 83, 235, 0.5) !important;
    background: #f6f4ff !important;
    transform: translateY(-1px);
}

#modalChooseLanguage .wx-cur-card.active {
    border-color: #7253eb !important;
    background: linear-gradient(135deg, rgba(114, 83, 235, 0.1) 0%, rgba(114, 83, 235, 0.04) 100%) !important;
    box-shadow: 0 6px 18px rgba(114, 83, 235, 0.14);
}

#modalChooseLanguage .wx-cur-card__sym {
    min-width: 38px;
    height: 36px;
    padding: 0 7px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e6f0;
    color: #7253eb;
    font-size: 13.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#modalChooseLanguage .wx-cur-card.active .wx-cur-card__sym {
    background: #7253eb;
    border-color: #7253eb;
    color: #ffffff;
}

#modalChooseLanguage .wx-cur-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

#modalChooseLanguage .wx-cur-card__meta strong {
    font-size: 14.5px;
    font-weight: 700;
    color: #11131a;
}

#modalChooseLanguage .wx-cur-card__meta small {
    font-size: 11.5px;
    color: #6c7285;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Language Search */
#modalChooseLanguage .wx-loc-search {
    position: relative;
    width: 240px;
    max-width: 100%;
}

#modalChooseLanguage .wx-loc-search__ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #8890a4;
    pointer-events: none;
}

#modalChooseLanguage .wx-loc-search__input {
    width: 100%;
    height: 36px;
    padding: 6px 12px 6px 33px;
    border-radius: 10px;
    border: 1.5px solid #dfe3ee;
    background: #f8f9fc;
    color: #13151d;
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#modalChooseLanguage .wx-loc-search__input:focus {
    border-color: #7253eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(114, 83, 235, 0.14);
}

/* Language Card Grid */
#modalChooseLanguage .wx-loc-lang-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 248px;
    overflow-y: auto;
    padding-right: 4px;
    margin: 0 !important;
}

#modalChooseLanguage .wx-loc-lang-grid::-webkit-scrollbar {
    width: 6px;
}
#modalChooseLanguage .wx-loc-lang-grid::-webkit-scrollbar-thumb {
    background: rgba(114, 83, 235, 0.28);
    border-radius: 999px;
}

#modalChooseLanguage .wx-lang-card {
    display: flex !important;
    align-items: center !important;
    gap: 9px;
    padding: 9px 11px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    border: 1.5px solid #e8ebf3 !important;
    background: #ffffff !important;
    color: #252836 !important;
    font-size: 13.3px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-align: left !important;
    line-height: 1.25 !important;
    transition: all 0.16s ease;
}

#modalChooseLanguage .wx-lang-card:hover {
    border-color: rgba(114, 83, 235, 0.45) !important;
    background: #f8f6ff !important;
}

#modalChooseLanguage .wx-lang-card.active {
    border-color: #7253eb !important;
    background: rgba(114, 83, 235, 0.08) !important;
    color: #11131a !important;
    font-weight: 700 !important;
}

#modalChooseLanguage .wx-lang-card__code {
    width: 26px;
    height: 24px;
    flex: 0 0 26px;
    border-radius: 6px;
    background: #f1f3f9;
    color: #5a6072;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#modalChooseLanguage .wx-lang-card.active .wx-lang-card__code {
    background: #7253eb;
    color: #ffffff;
}

#modalChooseLanguage .wx-lang-card__name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active Check Circle */
#modalChooseLanguage .wx-loc-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: #7253eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

#modalChooseLanguage .item.active .wx-loc-check {
    opacity: 1;
    transform: scale(1);
}

#modalChooseLanguage .wx-loc-empty {
    display: none;
    text-align: center;
    padding: 24px 12px;
    font-size: 13.5px;
    color: #7c8294;
}

/* Footer Action Bar */
#modalChooseLanguage .wx-loc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 26px;
    background: #f8f9fc;
    border-top: 1px solid #e8ebf3;
}

#modalChooseLanguage .wx-loc-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e6f0;
    font-size: 12.8px;
    font-weight: 600;
    color: #252836;
}

#modalChooseLanguage .wx-loc-preview__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

#modalChooseLanguage .wx-loc-foot__btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

#modalChooseLanguage .wx-loc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13.8px;
    font-weight: 700;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
}

#modalChooseLanguage .wx-loc-btn--ghost {
    background: #ffffff;
    border-color: #dce0ec;
    color: #404454;
}

#modalChooseLanguage .wx-loc-btn--ghost:hover {
    border-color: #7253eb;
    color: #7253eb;
}

#modalChooseLanguage .wx-loc-btn--primary {
    background: linear-gradient(135deg, #7253eb 0%, #5b3bd6 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(114, 83, 235, 0.3);
}

#modalChooseLanguage .wx-loc-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(114, 83, 235, 0.42);
}

/* Dark Mode for #modalChooseLanguage */
[data-bs-theme="dark"] #modalChooseLanguage.wx-loc-modal .wx-loc-content {
    background: #12141f !important;
    border-color: #262b42 !important;
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(114, 83, 235, 0.18) !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-body {
    background: #12141f !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-sec + .wx-loc-sec {
    border-top-color: #22263b;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-sec__label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-sec__hint,
[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-empty {
    color: #94a3b8;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card {
    background: #171a29 !important;
    border-color: #262b42 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card:hover {
    background: #1e2236 !important;
    border-color: rgba(167, 139, 250, 0.48) !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card.active {
    background: linear-gradient(135deg, rgba(114, 83, 235, 0.24) 0%, rgba(114, 83, 235, 0.1) 100%) !important;
    border-color: #7253eb !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card__sym {
    background: #202438;
    border-color: #303654;
    color: #c4b5fd;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card.active .wx-cur-card__sym {
    background: #7253eb;
    border-color: #7253eb;
    color: #ffffff;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card__meta strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-cur-card__meta small {
    color: #94a3b8;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-search__input {
    background: #181b2a;
    border-color: #2c314d;
    color: #f8fafc;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-search__input::placeholder {
    color: #94a3b8;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-lang-card {
    background: #171a29 !important;
    border-color: #25293e !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-lang-card:hover {
    background: #1e2236 !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-lang-card.active {
    background: rgba(114, 83, 235, 0.2) !important;
    border-color: #7253eb !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-lang-card__code {
    background: #22263c;
    color: #94a3b8;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-lang-card.active .wx-lang-card__code {
    background: #7253eb;
    color: #ffffff;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-foot {
    background: #0f111b;
    border-top-color: #22263b;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-preview {
    background: #181b2a;
    border-color: #2b3048;
    color: #f1f5f9;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-btn--ghost {
    background: #181b2a;
    border-color: #2d324d;
    color: #cbd5e1;
}

[data-bs-theme="dark"] #modalChooseLanguage .wx-loc-btn--ghost:hover {
    border-color: #8b6ff5;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    #modalChooseLanguage .wx-loc-head {
        padding: 18px 18px;
    }
    #modalChooseLanguage .wx-loc-body {
        padding: 18px 18px 16px !important;
    }
    #modalChooseLanguage .wx-loc-cur-grid {
        grid-template-columns: 1fr;
    }
    #modalChooseLanguage .wx-loc-lang-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 220px;
    }
    #modalChooseLanguage .wx-loc-search {
        width: 100%;
    }
    #modalChooseLanguage .wx-loc-foot {
        padding: 14px 18px;
        flex-direction: column;
        align-items: stretch;
    }
    #modalChooseLanguage .wx-loc-preview {
        justify-content: center;
    }
    #modalChooseLanguage .wx-loc-foot__btns {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
    }
}
