/*
 * Homepage V2
 * A single, isolated responsive layer for the storefront header and homepage.
 * It deliberately uses #app/#view-home selectors so older theme rules cannot
 * turn the mobile drawer back into the legacy grid layout.
 */

:root {
    --store-blue: #2f78f6;
    --store-blue-deep: #2465df;
    --store-ink: #172033;
    --store-muted: #667085;
    --store-line: #e8edf4;
    --store-surface: #ffffff;
    --store-page: #f6f8fb;
}

#app .desktop-header-search,
#app .desktop-utility-nav,
#app .mobile-menu-heading,
#app .mobile-menu-backdrop,
#app .mobile-header-action,
#app .mobile-drawer-link {
    display: none;
}

body[data-active-view="home"]:not(.light-theme) {
    background: #070a12 !important;
    background-image: 
        radial-gradient(ellipse at 15% 15%, rgba(56, 189, 248, 0.08), transparent 45%),
        radial-gradient(ellipse at 85% 65%, rgba(139, 92, 246, 0.08), transparent 45%),
        radial-gradient(ellipse at 50% 100%, rgba(7, 10, 18, 0.98), transparent 70%) !important;
}

body[data-active-view="home"].light-theme {
    background: #f8fafc !important;
}

body[data-active-view="home"] .site-warning-ticker {
    display: none !important;
}

body[data-active-view="home"] #ambient-network-canvas {
    display: none !important;
}

/* ---------- Desktop header ---------- */
@media (min-width: 901px) {
    html body:not(.light-theme) #app .glass-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2600 !important;
        width: 100% !important;
        height: 78px !important;
        min-height: 78px !important;
        background: linear-gradient(135deg, #0b1329 0%, #0f172a 60%, #1e1b4b 100%) !important;
        border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    html body.light-theme #app .glass-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2600 !important;
        width: 100% !important;
        height: 78px !important;
        min-height: 78px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    html body #app .header-container {
        position: relative !important;
        width: min(1380px, calc(100% - 40px)) !important;
        max-width: 1380px !important;
        height: 78px !important;
        min-height: 78px !important;
        margin: 0 auto !important;
        padding: 10px 0 !important;
        display: grid !important;
        grid-template-columns: 178px minmax(300px, 1fr) minmax(330px, auto) !important;
        grid-template-rows: 58px !important;
        align-items: center !important;
        gap: 26px !important;
    }

    html body #app .header-container .logo {
        position: static !important;
        grid-column: 1 !important;
        width: 176px !important;
        height: 56px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    html body #app .header-container .site-img-logo {
        width: 170px !important;
        height: 54px !important;
        object-fit: contain !important;
    }

    html body #app .site-img-logo-light {
        display: none !important;
    }

    html body #app .site-img-logo-dark {
        display: block !important;
    }

    html body #app .desktop-header-search {
        grid-column: 2 !important;
        width: 100% !important;
        height: 46px !important;
        max-width: 680px !important;
        justify-self: center !important;
        padding: 4px 5px 4px 18px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 38px !important;
        align-items: center !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 28px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
        backdrop-filter: blur(12px) !important;
    }

    html body:not(.light-theme) #app .desktop-header-search {
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    html body:not(.light-theme) #app .desktop-header-search input {
        color: #ffffff !important;
    }

    html body:not(.light-theme) #app .desktop-header-search input::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    html body.light-theme #app .desktop-header-search {
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    }

    html body.light-theme #app .desktop-header-search input {
        color: #0f172a !important;
    }

    html body.light-theme #app .desktop-header-search input::placeholder {
        color: #64748b !important;
    }

    html body #app .desktop-header-search input {
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        font: 500 13px/1.2 Inter, sans-serif !important;
        box-shadow: none !important;
    }

    html body #app .desktop-header-search button {
        width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
        font-size: 14px !important;
        box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4) !important;
    }

    html body.light-theme #app .desktop-header-search button {
        color: #ffffff !important;
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    }

    html body #app #header-actions,
    html body:not(.light-theme) #app #header-actions {
        position: static !important;
        grid-column: 3 !important;
        width: auto !important;
        max-width: none !important;
        height: 58px !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html body #app #header-actions > a:not(.hidden),
    html body #app #header-actions > button:not(.hidden):not(.mobile-drawer-link) {
        position: relative !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        flex: 0 0 42px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 50% !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
        font-size: 14px !important;
        line-height: 1 !important;
        transform: none !important;
    }

    html body.light-theme #app #header-actions > a:not(.hidden),
    html body.light-theme #app #header-actions > button:not(.hidden):not(.mobile-drawer-link) {
        border: 1px solid #cbd5e1 !important;
        color: #1e293b !important;
        background: #f1f5f9 !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    html body.light-theme #app #header-actions > a:not(.hidden) i,
    html body.light-theme #app #header-actions > button:not(.hidden):not(.mobile-drawer-link) i {
        color: #1e293b !important;
    }

    html body #app #header-actions > a:not(.hidden):hover,
    html body #app #header-actions > button:not(.hidden):hover {
        background: rgba(255, 255, 255, 0.22) !important;
        transform: translateY(-1px) !important;
    }

    html body.light-theme #app #header-actions > a:not(.hidden):hover,
    html body.light-theme #app #header-actions > button:not(.hidden):hover {
        background: #e2e8f0 !important;
        border-color: #94a3b8 !important;
        color: #0f172a !important;
    }

    html body.light-theme #app #header-actions > a:not(.hidden):hover i,
    html body.light-theme #app #header-actions > button:not(.hidden):hover i {
        color: #2563eb !important;
    }

    html body #app #header-actions #nav-guest-1:not(.hidden),
    html body #app #header-actions #nav-guest-2:not(.hidden) {
        width: auto !important;
        min-width: 98px !important;
        padding: 0 15px !important;
        flex: 0 0 auto !important;
        border-radius: 22px !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }

    html body #app #header-actions #nav-guest-2:not(.hidden) {
        color: var(--store-blue-deep) !important;
        background: #ffffff !important;
    }

    html body.light-theme #app #header-actions #nav-guest-1:not(.hidden) {
        color: #ffffff !important;
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        border: 1px solid #2563eb !important;
    }

    html body.light-theme #app #header-actions #nav-guest-2:not(.hidden) {
        color: #0f172a !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
    }

    html body #app #header-actions #nav-user-1:not(.hidden) {
        width: 46px !important;
        min-width: 46px !important;
        flex-basis: 46px !important;
    }

    html body #app #header-actions #nav-user-1 span,
    html body #app #header-actions #nav-otp:not(.hidden),
    html body #app #header-actions .mobile-menu-label {
        display: none !important;
    }

    html body #app #header-actions #nav-deposit:not(.hidden) {
        width: auto !important;
        min-width: 94px !important;
        padding: 0 12px !important;
        flex: 0 0 auto !important;
        gap: 7px !important;
        border-radius: 22px !important;
    }

    html body.light-theme #app #header-actions #nav-deposit:not(.hidden) {
        color: #1d4ed8 !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
    }

    html body.light-theme #app #header-actions #nav-deposit:not(.hidden) i {
        color: #2563eb !important;
    }

    html body.light-theme #app #header-actions #nav-deposit:not(.hidden) span {
        color: #1d4ed8 !important;
        font-weight: 800 !important;
    }

    html body #app #header-actions #nav-deposit span {
        display: inline !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    html body #app #header-actions .header-cart-btn {
        display: inline-flex !important;
    }

    html body #app #header-actions .header-cart-btn #header-cart-count {
        position: absolute !important;
        top: -3px !important;
        right: -3px !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid var(--store-blue) !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        background: #ff4964 !important;
        font-size: 8px !important;
    }

    html body.light-theme #app #header-actions .header-cart-btn #header-cart-count {
        border-color: #ffffff !important;
    }

    html body #app .desktop-utility-nav {
        position: sticky !important;
        top: 78px !important;
        z-index: 2500 !important;
        width: 100% !important;
        height: 58px !important;
        display: block !important;
        border: 0 !important;
        border-bottom: 1px solid var(--store-line) !important;
        background: rgba(255, 255, 255, 0.97) !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }

    html body.light-theme #app .desktop-utility-nav {
        border-bottom-color: #e2e8f0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    }

    html body #app .desktop-utility-nav-inner {
        width: min(1280px, calc(100% - 40px)) !important;
        max-width: 1280px !important;
        height: 58px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    html body #app .desktop-utility-nav button {
        min-width: 0 !important;
        height: 58px !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: #475467 !important;
        background: transparent !important;
        font-size: 11px !important;
        font-weight: 750 !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    html body.light-theme #app .desktop-utility-nav button {
        color: #334155 !important;
        font-weight: 750 !important;
    }

    html body.light-theme #app .desktop-utility-nav button i {
        color: #2563eb !important;
    }

    html body #app .desktop-utility-nav button:first-child {
        color: #172033 !important;
        border-bottom: 3px solid var(--store-blue) !important;
    }

    html body.light-theme #app .desktop-utility-nav button:first-child {
        color: #0f172a !important;
        border-bottom: 3px solid #2563eb !important;
    }

    html body #app .desktop-utility-nav button:hover {
        color: var(--store-blue-deep) !important;
        background: #f7f9fc !important;
    }

    html body.light-theme #app .desktop-utility-nav button:hover {
        color: #2563eb !important;
        background: #f1f5f9 !important;
    }
}

body:not(.light-theme) #app .desktop-utility-nav {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(16px) !important;
}

body:not(.light-theme) #app .desktop-utility-nav button,
body:not(.light-theme) #app .desktop-utility-nav button:first-child {
    color: #94a3b8 !important;
    transition: all 0.25s ease !important;
}

body:not(.light-theme) #app .desktop-utility-nav button:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

/* ---------- Desktop homepage ---------- */
@media (min-width: 901px) {
    html body[data-active-view="home"] main.container {
        width: min(1380px, calc(100% - 40px)) !important;
        max-width: 1380px !important;
        margin: 0 auto !important;
        padding: 18px 0 64px !important;
    }

    html body #view-home.active {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr) !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas:
            "hero otp"
            "promos promos"
            "products products" !important;
        gap: 18px !important;
    }

    html body #view-home.active .home-layout {
        grid-area: hero !important;
        width: 100% !important;
        height: 342px !important;
        display: block !important;
    }

    html body #view-home.active .hero {
        width: 100% !important;
        height: 342px !important;
        min-height: 342px !important;
        margin: 0 !important;
        padding: 48px 54px !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 16px !important;
        background:
            radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
            radial-gradient(circle at 92% 92%, rgba(38, 234, 213, 0.28), transparent 30%),
            linear-gradient(135deg, #2563eb 0%, #3b82f6 54%, #06b6d4 100%) !important;
        box-shadow: 0 10px 28px rgba(37, 99, 235, 0.2) !important;
    }

    html body #view-home.active .hero-canvas,
    html body #view-home.active #hero-canvas,
    html body #view-home.active .hero-orb {
        display: none !important;
    }

    html body #view-home.active .hero-content {
        position: relative !important;
        z-index: 2 !important;
        width: min(650px, 88%) !important;
        max-width: 650px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    html body #view-home.active .hero h1 {
        margin: 0 !important;
        color: #ffffff !important;
        line-height: 1.08 !important;
    }

    html body #view-home.active .hero-heading-kicker {
        margin: 0 0 9px !important;
        display: inline-flex !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 12px !important;
        letter-spacing: 0.2em !important;
    }

    html body #view-home.active #hero-typing-text.hero-feature-title {
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        max-height: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: clamp(36px, 3.3vw, 52px) !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        text-shadow: 0 5px 16px rgba(16, 58, 142, 0.22) !important;
    }

    html body #view-home.active .hero-feature-title::after {
        background: rgba(255, 255, 255, 0.9) !important;
    }

    html body #view-home.active .hero-description {
        max-width: 590px !important;
        margin: 14px 0 0 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.55 !important;
    }

    html body #view-home.active .hero-benefits {
        margin-top: 17px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    html body #view-home.active .hero-benefits span {
        min-height: 30px !important;
        padding: 0 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 15px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        font-size: 9px !important;
        font-weight: 750 !important;
    }

    html body #view-home.active .hero-actions {
        margin-top: 18px !important;
        display: flex !important;
        gap: 10px !important;
    }

    html body #view-home.active .hero-actions button {
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 9px !important;
        color: var(--store-blue-deep) !important;
        background: #ffffff !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        box-shadow: none !important;
    }

    html body #view-home.active .hero-actions button:last-child {
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.42) !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    html body #view-home.active .service-discovery-row {
        grid-area: otp !important;
        width: 100% !important;
        height: 342px !important;
        margin: 0 !important;
        display: block !important;
    }

    html body #view-home.active .otp-spotlight {
        width: 100% !important;
        height: 342px !important;
        min-height: 342px !important;
        margin: 0 !important;
        padding: 34px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 16px !important;
        background:
            radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
            radial-gradient(circle at 92% 92%, rgba(38, 234, 213, 0.28), transparent 30%),
            linear-gradient(135deg, #2563eb 0%, #3b82f6 54%, #06b6d4 100%) !important;
        box-shadow: 0 10px 28px rgba(37, 99, 235, 0.2) !important;
    }

    html body #view-home.active .otp-spotlight-heading {
        width: 64px !important;
        height: 64px !important;
        margin: 0 0 22px !important;
        display: block !important;
    }

    html body #view-home.active .otp-spotlight-icon {
        width: 64px !important;
        height: 64px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 16px !important;
        color: var(--store-blue) !important;
        background: #ffffff !important;
        font-size: 23px !important;
    }

    html body #view-home.active .otp-spotlight-badge {
        display: none !important;
    }

    html body #view-home.active .otp-spotlight > strong {
        margin: 0 !important;
        color: #ffffff !important;
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    html body #view-home.active .otp-spotlight > small {
        margin: 7px 0 24px !important;
        color: rgba(255, 255, 255, 0.76) !important;
        font-size: 12px !important;
    }

    html body #view-home.active .otp-spotlight > button {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #174197 !important;
        background: #ffffff !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        box-shadow: none !important;
    }

    html body #view-home.active #promo-banners {
        grid-area: promos !important;
    }

    html body #view-home.active .products-section {
        grid-area: products !important;
    }

}

/* ---------- Shared homepage catalog ---------- */
html body #view-home.active #promo-banners {
    width: 100% !important;
    margin: 0 !important;
}

html body #view-home.active #promo-banners:empty {
    display: none !important;
}

html body #view-home.active #promo-banners > div {
    padding: 0 0 4px !important;
    gap: 14px !important;
}

html body #view-home.active #promo-banners a {
    overflow: hidden !important;
    border-radius: 14px !important;
}

html body #view-home.active #promo-banners img {
    border-radius: 14px !important;
    box-shadow: none !important;
}

html body #view-home.active .products-section {
    width: 100% !important;
    height: auto !important;
    min-height: 340px !important;
    margin: 0 !important;
    padding: 26px !important;
    overflow: visible !important;
    border: 1px solid var(--store-line) !important;
    border-radius: 16px !important;
    background: var(--store-surface) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

html body #view-home.active .home-section-bar {
    width: 100% !important;
    height: auto !important;
    min-height: 46px !important;
    margin: 0 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

html body #view-home.active .home-section-bar h2 {
    margin: 0 !important;
    color: var(--store-blue-deep) !important;
    font-size: 24px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

html body #view-home.active .home-section-bar p {
    margin: 5px 0 0 !important;
    display: block !important;
    color: var(--store-muted) !important;
    font-size: 10px !important;
}

html body #view-home.active .home-section-bar button {
    width: auto !important;
    min-width: 112px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4a8af8, #2f78f6) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 7px 15px rgba(47, 120, 246, 0.18) !important;
}

html body #view-home.active .product-search-bar {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 14px 0 !important;
    display: grid !important;
    grid-template-columns: minmax(250px, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    border-top: 1px solid var(--store-line) !important;
    border-bottom: 1px solid var(--store-line) !important;
}

html body #view-home.active .psb-inner {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #dce4ef !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

html body #view-home.active .psb-input {
    color: #172033 !important;
    font-size: 11px !important;
}

html body #view-home.active .psb-result-count {
    justify-self: start !important;
    color: #667085 !important;
    font-size: 9px !important;
    white-space: nowrap !important;
}

html body #view-home.active .product-sort-controls {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: visible !important;
}

html body #view-home.active .product-filter-row,
html body #view-home.active .product-utility-controls {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

html body #view-home.active .product-source-segment {
    width: auto !important;
    height: 38px !important;
    padding: 3px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e1e7ef !important;
    border-radius: 8px !important;
    background: #f5f7fa !important;
}

html body #view-home.active .product-source-btn {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    flex: 0 0 auto !important;
    color: #667085 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    font-size: 8px !important;
    font-weight: 750 !important;
}

html body #view-home.active .product-source-btn.active {
    color: #172033 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}

html body #view-home.active .product-sort-select {
    width: 138px !important;
    min-width: 138px !important;
    height: 38px !important;
    padding: 0 8px !important;
    border: 1px solid #e1e7ef !important;
    border-radius: 8px !important;
    color: #667085 !important;
    background: #ffffff !important;
}

html body #view-home.active .product-sort-select select {
    color: #344054 !important;
    font-size: 8px !important;
}

html body #view-home.active .product-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)) !important;
    gap: 16px !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
}

html body #view-home.active .product-card,
html body #view-home.active .product-card:nth-child(n+6) {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 320px !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #e7ecf3 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.055) !important;
    transform: none !important;
}

html body #view-home.active .product-card:hover {
    border-color: #bdd0f4 !important;
    box-shadow: 0 12px 25px rgba(36, 101, 223, 0.11) !important;
    transform: translateY(-3px) !important;
}

html body #view-home.active .product-card .pc-banner {
    width: 100% !important;
    height: 154px !important;
    min-height: 154px !important;
    padding: 0 !important;
    flex: 0 0 154px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
    background: #f8fafc !important;
}

html body #view-home.active .product-card .pc-banner img,
html body #view-home.active .product-card .pc-banner-placeholder {
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    object-fit: contain !important;
    background: #f8fafc !important;
}

html body #view-home.active .product-card .pc-stock-badge {
    top: 8px !important;
    right: 8px !important;
    padding: 5px 7px !important;
    border-radius: 7px !important;
    font-size: 7px !important;
}

html body #view-home.active .product-card .pc-body {
    position: relative !important;
    width: 100% !important;
    height: 166px !important;
    min-height: 166px !important;
    padding: 10px 13px 10px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(34px, 42px) 16px 20px 42px !important;
    align-items: center !important;
    justify-items: center !important;
    align-content: space-between !important;
    justify-content: stretch !important;
    gap: 4px 0 !important;
    text-align: center !important;
    flex: 0 0 166px !important;
}

html body #view-home.active .product-card .pc-name {
    width: 100% !important;
    min-height: 36px !important;
    max-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    flex: 0 0 auto !important;
}

html body #view-home.active .product-card .pc-name > span {
    max-width: 100% !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
    text-align: center !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

html body #view-home.active .product-card .pc-duration {
    width: 100% !important;
    min-height: 16px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    flex: 0 0 16px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body #view-home.active .product-card .pc-trust-row {
    width: 100% !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 0 0 20px !important;
    overflow: hidden !important;
}

html body #view-home.active .product-card .pc-trust-pill {
    min-width: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    color: var(--store-blue-deep) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 20px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body #view-home.active .product-card .pc-trust-pill > i {
    color: currentColor !important;
}

html body #view-home.active .product-card .pc-trust-pill:nth-child(n+3) {
    display: none !important;
}

html body #view-home.active .product-card .pc-price {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    color: #0d77b8 !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

html body #view-home.active .product-card .pc-price-old {
    color: #98a2b3 !important;
    font-size: 8px !important;
}

html body #view-home.active .product-card .pc-btn {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: 0 0 42px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #4a8af8, #2f78f6) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
}

html body #view-home.active .product-card .pc-btn > i {
    flex: 0 0 auto !important;
    font-size: 12px !important;
}

html body #view-home.active .product-card .pc-btn:disabled,
html body #view-home.active .product-card .pc-btn-sold {
    color: #98a2b3 !important;
    background: #eef1f5 !important;
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 900px) {
    html body #app .desktop-header-search,
    html body #app .desktop-utility-nav {
        display: none !important;
    }

    html body #app .glass-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2800 !important;
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        border: 0 !important;
        background: linear-gradient(110deg, #1f61d2 0%, #286ddd 58%, #225bc5 100%) !important;
        box-shadow: 0 5px 15px rgba(28, 83, 191, 0.18) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body #app .header-container {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        padding: 5px 10px !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 40px 40px !important;
        grid-template-rows: 54px !important;
        align-items: center !important;
        gap: 3px !important;
    }

    html body #app .mobile-utility-toggle,
    html body #app .mobile-header-action {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 9px !important;
        color: #ffffff !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 19px !important;
    }

    html body #app .mobile-utility-toggle {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    html body #app .header-container .logo {
        position: static !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        width: min(45vw, 156px) !important;
        height: 50px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    html body #app .header-container .site-img-logo {
        width: 100% !important;
        height: 48px !important;
        object-fit: contain !important;
    }

    html body #app .site-img-logo-light {
        display: none !important;
    }

    html body #app .site-img-logo-dark {
        display: block !important;
    }

    html body #app .mobile-header-search {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    html body #app .mobile-header-products {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }

    html body.mobile-menu-open {
        overflow: hidden !important;
    }

    html body #app #header-actions,
    html body:not(.light-theme) #app #header-actions {
        position: fixed !important;
        z-index: 3200 !important;
        inset: 0 auto 0 0 !important;
        width: min(84vw, 340px) !important;
        max-width: 340px !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 18px 24px !important;
        display: flex !important;
        flex: none !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: #253147 !important;
        background: #ffffff !important;
        box-shadow: 22px 0 55px rgba(0, 0, 0, 0.25) !important;
        transform: translateX(-105%) !important;
        transition: transform 0.24s ease !important;
    }

    html body #app #header-actions.mobile-open,
    html body:not(.light-theme) #app #header-actions.mobile-open {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        transform: translateX(0) !important;
    }

    html body:not(.light-theme) #app #header-actions {
        color: #e5edf8 !important;
        background: #101927 !important;
    }

    html body #app #header-actions > .mobile-menu-heading {
        width: calc(100% + 36px) !important;
        min-width: calc(100% + 36px) !important;
        height: 84px !important;
        min-height: 84px !important;
        margin: 0 -18px 10px !important;
        padding: max(14px, env(safe-area-inset-top)) 18px 13px !important;
        display: flex !important;
        flex: 0 0 84px !important;
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 12px !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, var(--store-blue), #5aa9ff) !important;
    }

    html body #app #header-actions > .mobile-menu-heading strong {
        color: #ffffff !important;
        font-size: 21px !important;
        line-height: 40px !important;
    }

    html body #app #header-actions > .mobile-menu-heading button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.18) !important;
        font-size: 18px !important;
    }

    html body #app #header-actions > .mobile-menu-heading button i {
        color: #ffffff !important;
    }

    html body #app #header-actions > .mobile-drawer-link,
    html body #app #header-actions > a:not(.hidden),
    html body #app #header-actions > button:not(.hidden):not(.header-cart-btn):not(.mobile-drawer-link) {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 52px !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        display: flex !important;
        flex: 0 0 52px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 13px !important;
        border: 0 !important;
        border-bottom: 1px solid #edf0f5 !important;
        border-radius: 0 !important;
        color: #344054 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
    text-align: center !important;
        transform: none !important;
    }

    html body:not(.light-theme) #app #header-actions > .mobile-drawer-link,
    html body:not(.light-theme) #app #header-actions > a:not(.hidden),
    html body:not(.light-theme) #app #header-actions > button:not(.hidden):not(.header-cart-btn):not(.mobile-drawer-link) {
        color: #dbe6f6 !important;
        border-bottom-color: rgba(148, 163, 184, 0.16) !important;
    }

    html body #app #header-actions > .mobile-drawer-link i,
    html body #app #header-actions > a:not(.hidden) i,
    html body #app #header-actions > button:not(.hidden) i {
        width: 22px !important;
        margin: 0 !important;
        flex: 0 0 22px !important;
        color: var(--store-blue-deep) !important;
        font-size: 16px !important;
        text-align: center !important;
    }

    html body:not(.light-theme) #app #header-actions > .mobile-drawer-link i,
    html body:not(.light-theme) #app #header-actions > a:not(.hidden) i,
    html body:not(.light-theme) #app #header-actions > button:not(.hidden) i {
        color: #77a8ff !important;
    }

    html body #app #header-actions .mobile-menu-label,
    html body #app #header-actions #nav-user-1 span,
    html body #app #header-actions #nav-deposit span {
        display: inline !important;
    }

    html body #app #header-actions > a::before,
    html body #app #header-actions > a::after,
    html body #app #header-actions > button::before,
    html body #app #header-actions > button::after {
        content: none !important;
        display: none !important;
    }

    html body #app #header-actions #nav-user-email {
        min-width: 0 !important;
        max-width: 220px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body #app #header-actions #nav-guest-1:not(.hidden),
    html body #app #header-actions #nav-guest-2:not(.hidden) {
        width: 100% !important;
        min-height: 46px !important;
        margin-top: 9px !important;
        padding: 0 14px !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 9px !important;
        color: #ffffff !important;
        background: var(--store-blue) !important;
        text-align: center !important;
    }

    html body #app #header-actions #nav-guest-2:not(.hidden) {
        margin-top: 7px !important;
        color: var(--store-blue-deep) !important;
        border: 1px solid #dce7fb !important;
        background: #f4f8ff !important;
    }

    html body #app #header-actions .header-cart-btn {
        display: none !important;
    }

    html body #app .mobile-menu-backdrop {
        position: fixed !important;
        z-index: 2700 !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        display: block !important;
        border: 0 !important;
        background: rgba(2, 8, 23, 0.56) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.22s ease, visibility 0.22s ease !important;
    }

    html body.mobile-menu-open #app .mobile-menu-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html body[data-active-view="home"] {
        padding-bottom: 0 !important;
    }

    html body[data-active-view="home"] .mobile-bottom-nav,
    html body[data-active-view="home"] .site-warning-ticker {
        display: none !important;
    }

    html body[data-active-view="home"] .chat-widget,
    html body[data-active-view="home"].warning-collapsed .chat-widget {
        right: 12px !important;
        bottom: 14px !important;
    }

    html body[data-active-view="home"] main.container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 14px 12px 48px !important;
    }

    html body #view-home.active {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    html body #view-home.active .home-layout {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        order: 1 !important;
    }

    html body #view-home.active .hero {
        width: 100% !important;
        height: 206px !important;
        min-height: 206px !important;
        margin: 0 !important;
        padding: 25px 23px !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 14px !important;
        background:
            radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
            radial-gradient(circle at 92% 92%, rgba(38, 234, 213, 0.28), transparent 30%),
            linear-gradient(135deg, #2563eb 0%, #3b82f6 54%, #06b6d4 100%) !important;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2) !important;
    }

    html body.light-theme #app #view-home.active .hero {
        background:
            radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
            radial-gradient(circle at 92% 92%, rgba(38, 234, 213, 0.28), transparent 30%),
            linear-gradient(135deg, #2563eb 0%, #3b82f6 54%, #06b6d4 100%) !important;
    }

    html body #view-home.active #hero-canvas,
    html body #view-home.active .hero-orb {
        display: none !important;
    }

    html body #view-home.active .hero-content {
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    html body #view-home.active .hero h1 {
        margin: 0 !important;
        line-height: 1.05 !important;
    }

    html body #view-home.active .hero-heading-kicker {
        margin: 0 0 6px !important;
        display: inline-flex !important;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 9px !important;
        letter-spacing: 0.18em !important;
    }

    html body #view-home.active #hero-typing-text.hero-feature-title {
        width: 100% !important;
        height: auto !important;
        min-height: 36px !important;
        max-height: none !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.08 !important;
        text-align: left !important;
        text-shadow: 0 4px 12px rgba(16, 58, 142, 0.2) !important;
    }

    html body #view-home.active .hero-description {
        max-width: 92% !important;
        margin: 8px 0 0 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 10px !important;
        line-height: 1.45 !important;
    }

    html body #view-home.active .hero-benefits {
        margin-top: 10px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        overflow: hidden !important;
    }

    html body #view-home.active .hero-benefits span {
        min-width: 0 !important;
        height: 24px !important;
        padding: 0 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.11) !important;
        font-size: 7px !important;
        font-weight: 750 !important;
        white-space: nowrap !important;
    }

    html body #view-home.active .hero-actions {
        margin-top: 11px !important;
        display: flex !important;
        gap: 7px !important;
    }

    html body #view-home.active .hero-description,
    html body #view-home.active .hero-benefits {
        display: none !important;
    }

    html body #view-home.active .hero-actions button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 11px !important;
        border: 0 !important;
        border-radius: 8px !important;
        color: var(--store-blue-deep) !important;
        background: #ffffff !important;
        font-size: 8px !important;
        font-weight: 850 !important;
        box-shadow: none !important;
    }

    html body #view-home.active .hero-actions button:last-child {
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.38) !important;
        background: rgba(255, 255, 255, 0.12) !important;
    }

    html body #view-home.active .service-discovery-row {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: block !important;
        order: 3 !important;
    }

    html body #view-home.active .otp-spotlight {
        width: 100% !important;
        height: 112px !important;
        min-height: 112px !important;
        margin: 0 !important;
        padding: 14px !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 96px !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 0 11px !important;
        overflow: hidden !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, #173d88, #118c9f) !important;
        box-shadow: none !important;
    }

    html body #view-home.active .otp-spotlight-heading {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
    }

    html body #view-home.active .otp-spotlight-icon {
        width: 48px !important;
        height: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        color: var(--store-blue) !important;
        background: #ffffff !important;
        font-size: 18px !important;
    }

    html body #view-home.active .otp-spotlight-badge {
        display: none !important;
    }

    html body #view-home.active .otp-spotlight > strong {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        align-self: end !important;
        color: #ffffff !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body #view-home.active .otp-spotlight > small {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 3px 0 0 !important;
        align-self: start !important;
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 8px !important;
    }

    html body #view-home.active .otp-spotlight > button {
        grid-column: 3 !important;
        grid-row: 1 / 3 !important;
        width: 96px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 0 !important;
        border-radius: 9px !important;
        color: #174197 !important;
        background: #ffffff !important;
        font-size: 8px !important;
        font-weight: 850 !important;
        box-shadow: none !important;
    }

    html body #view-home.active #promo-banners {
        order: 3 !important;
    }

    html body #view-home.active .products-section {
        order: 4 !important;
        padding: 20px 14px !important;
        overflow: hidden !important;
        border-radius: 14px !important;
    }

    html body #view-home.active .home-section-bar {
        min-height: 42px !important;
        margin-bottom: 14px !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 11px !important;
    }

    html body #view-home.active .home-section-bar h2 {
        font-size: 20px !important;
    }

    html body #view-home.active .home-section-bar p {
        display: none !important;
    }

    html body #view-home.active .home-section-bar button {
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
    }

    html body.light-theme #app #view-home.active .home-section-bar button {
        color: #ffffff !important;
    }

    html body #view-home.active .product-search-bar {
        margin-bottom: 16px !important;
        padding: 12px 0 14px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    html body #view-home.active .psb-inner {
        height: 44px !important;
        min-height: 44px !important;
    }

    html body #view-home.active .psb-result-count {
        justify-self: start !important;
    }

    html body #view-home.active .product-sort-controls,
    html body #view-home.active .product-filter-row,
    html body #view-home.active .product-utility-controls {
        width: 100% !important;
    }

    html body #view-home.active .product-filter-row,
    html body #view-home.active .product-utility-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 118px !important;
        gap: 8px !important;
    }

    html body #view-home.active .product-source-segment {
        width: 100% !important;
    }

    html body #view-home.active .product-source-btn {
        padding: 0 6px !important;
        flex: 1 1 0 !important;
        font-size: 7px !important;
    }

    html body #view-home.active .product-sort-select {
        width: 118px !important;
        min-width: 118px !important;
    }

    html body #view-home.active .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    html body #view-home.active .product-card,
    html body #view-home.active .product-card:nth-child(n+6) {
        height: 278px !important;
        min-height: 278px !important;
        border-radius: 11px !important;
    }

    html body #view-home.active .product-card .pc-banner {
        height: 124px !important;
        min-height: 124px !important;
        flex-basis: 124px !important;
    }

    html body #view-home.active .product-card .pc-body {
        height: 154px !important;
        min-height: 154px !important;
        padding: 10px !important;
        grid-template-rows: 40px 16px 20px 40px !important;
        gap: 6px 0 !important;
        flex-basis: 154px !important;
    }

    html body #view-home.active .product-card .pc-name {
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 14px !important;
        flex-basis: 40px !important;
    }

    html body #view-home.active .product-card .pc-price {
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        font-size: 14px !important;
    }

    html body #view-home.active .product-card .pc-btn {
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: 40px !important;
        min-height: 40px !important;
        flex-basis: 40px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    html body #view-home.active .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    html body #view-home.active .product-card,
    html body #view-home.active .product-card:nth-child(n+6) {
        height: 272px !important;
        min-height: 272px !important;
    }

    html body #view-home.active .product-card .pc-banner {
        height: 118px !important;
        min-height: 118px !important;
        flex-basis: 118px !important;
    }

    html body #view-home.active .product-card .pc-body {
        height: 154px !important;
        min-height: 154px !important;
        flex-basis: 154px !important;
    }
}

@media (max-width: 390px) {
    html body #app .header-container {
        grid-template-columns: 41px minmax(0, 1fr) 38px 38px !important;
        gap: 1px !important;
    }

    html body #app .mobile-utility-toggle,
    html body #app .mobile-header-action {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    html body #view-home.active .hero {
        height: 198px !important;
        min-height: 198px !important;
        padding: 22px 18px !important;
    }

    html body #view-home.active .hero-benefits span:last-child {
        display: none !important;
    }

    html body #view-home.active .otp-spotlight {
        grid-template-columns: 44px minmax(0, 1fr) 86px !important;
        gap: 0 9px !important;
    }

    html body #view-home.active .otp-spotlight-heading,
    html body #view-home.active .otp-spotlight-icon {
        width: 44px !important;
        height: 44px !important;
    }

    html body #view-home.active .otp-spotlight > button {
        width: 86px !important;
    }

    html body #view-home.active .product-filter-row,
    html body #view-home.active .product-utility-controls {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #view-home.active .product-sort-select {
        width: 100% !important;
    }
}

body:not(.light-theme) #view-home.active .products-section {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.65) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35) !important;
}

body:not(.light-theme) #view-home.active .product-card .pc-name {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

body:not(.light-theme) #view-home.active .product-card .pc-trust-pill {
    color: #38bdf8 !important;
    border-color: transparent !important;
    background: transparent !important;
}

body:not(.light-theme) #view-home.active .product-card {
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
}

body:not(.light-theme) #view-home.active .psb-inner,
body:not(.light-theme) #view-home.active .product-source-segment,
body:not(.light-theme) #view-home.active .product-sort-select {
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border-radius: 12px !important;
}

body:not(.light-theme) #view-home.active .psb-input,
body:not(.light-theme) #view-home.active .product-sort-select select {
    color: #f8fafc !important;
}

body:not(.light-theme) #view-home.active .product-source-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

body:not(.light-theme) #view-home.active .product-card .pc-banner,
body:not(.light-theme) #view-home.active .product-card .pc-banner img,
body:not(.light-theme) #view-home.active .product-card .pc-banner-placeholder {
    border-color: rgba(255, 255, 255, 0.06) !important;
    background: rgba(10, 16, 30, 0.85) !important;
}

/* ---------- Final theme consistency guard ---------- */
html body:not(.light-theme) #view-home.active .product-card,
html body:not(.light-theme) #view-home.active .product-card:nth-child(n+6),
html body:not(.light-theme) #view-home.active .product-card .pc-body {
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-radius: 16px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

html body:not(.light-theme) #view-home.active .product-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

html body:not(.light-theme) #view-home.active .product-card .pc-name {
    color: #f8fafc !important;
}

html body:not(.light-theme) #view-home.active .product-card .pc-duration {
    color: #94a3b8 !important;
}

html body:not(.light-theme) #view-home.active .product-card .pc-price {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

html body.light-theme #view-home.active .products-section {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05) !important;
}

html body.light-theme #view-home.active .psb-inner {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
}

html body.light-theme #view-home.active .psb-input {
    color: #0f172a !important;
}

html body.light-theme #view-home.active .psb-input::placeholder {
    color: #64748b !important;
}

html body.light-theme #view-home.active .psb-result-count {
    color: #475467 !important;
    font-weight: 700 !important;
}

html body.light-theme #view-home.active .product-source-segment {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
}

html body.light-theme #view-home.active .product-source-btn {
    color: #475467 !important;
}

html body.light-theme #view-home.active .product-source-btn.active {
    color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1) !important;
}

html body.light-theme #view-home.active .product-sort-select {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

html body.light-theme #view-home.active .product-sort-select select {
    color: #0f172a !important;
}

html body.light-theme #view-home.active .product-card,
html body.light-theme #view-home.active .product-card:nth-child(n+6),
html body.light-theme #view-home.active .product-card .pc-body {
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

html body.light-theme #view-home.active .product-card:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12) !important;
}

html body.light-theme #view-home.active .product-card .pc-banner {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

html body.light-theme #view-home.active .product-card .pc-banner img,
html body.light-theme #view-home.active .product-card .pc-banner-placeholder {
    background: #f8fafc !important;
}

html body.light-theme #view-home.active .product-card .pc-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html body.light-theme #view-home.active .product-card .pc-duration {
    color: #64748b !important;
}

html body.light-theme #view-home.active .product-card .pc-trust-pill {
    color: #2563eb !important;
}

html body.light-theme #view-home.active .product-card .pc-price {
    color: #0284c7 !important;
    font-weight: 850 !important;
    text-shadow: none !important;
}

html body.light-theme #view-home.active .product-card .pc-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* ---------- High-contrast header logo ---------- */
html body #app .glass-header .header-container .logo {
    box-sizing: border-box !important;
    padding: 0 !important;
    justify-content: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body #app .glass-header .header-container .site-img-logo {
    max-width: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body #app .glass-header .header-container .site-img-logo-brand {
    display: block !important;
    aspect-ratio: 2172 / 724 !important;
    object-fit: contain !important;
    clip-path: none !important;
    filter: drop-shadow(0 2px 3px rgba(12, 35, 82, 0.28));
}

html body #app .glass-header .site-img-logo-light {
    display: none !important;
}

html body #app .glass-header .site-img-logo-dark {
    display: block !important;
}

@media (min-width: 901px) {
    html body #app .glass-header .header-container .logo {
        width: 176px !important;
        height: 56px !important;
    }

    html body #app .glass-header .header-container .site-img-logo {
        width: 176px !important;
        height: 56px !important;
    }
}

@media (max-width: 900px) {
    html body #app .glass-header .header-container .logo {
        width: min(45vw, 158px) !important;
        height: 48px !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    html body #app .glass-header .header-container .site-img-logo {
        width: 100% !important;
        height: 48px !important;
    }
}

html body #app .footer-logo .logo {
    width: 190px !important;
    height: 64px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:not(.light-theme) #app .footer-logo .site-img-logo-brand {
    display: block !important;
    width: 190px !important;
    height: 64px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    clip-path: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.5)) brightness(1.1) !important;
}

html body.light-theme #app .footer-logo .site-img-logo-brand {
    display: block !important;
    width: 190px !important;
    height: 64px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    clip-path: none !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(1832%) hue-rotate(212deg) brightness(96%) contrast(94%) drop-shadow(0 4px 14px rgba(37, 99, 235, 0.35)) !important;
}

@media (max-width: 700px) {
    html body #app .footer-logo .logo,
    html body #app .footer-logo .site-img-logo-brand {
        width: min(60vw, 190px) !important;
        height: 62px !important;
    }
}

/* ---------- Plain white home title ---------- */
html body #app #view-home.active .hero h1,
html body #app #view-home.active .hero-heading-kicker,
html body #app #view-home.active #hero-typing-text.hero-feature-title,
html body #app #view-home.active #hero-typing-text.hero-feature-title .hero-type-char,
html body.light-theme #app #view-home.active #hero-typing-text.hero-feature-title,
html body.light-theme #app #view-home.active #hero-typing-text.hero-feature-title .hero-type-char {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 4px 14px rgba(12, 40, 95, 0.24) !important;
}

/* ---------- Compact split hero ---------- */
@media (min-width: 901px) {
    html body #view-home.active {
        grid-template-columns: minmax(240px, 0.72fr) minmax(0, 2.28fr) !important;
        grid-template-areas:
            "otp hero"
            "promos promos"
            "products products" !important;
    }

    html body #view-home.active .home-layout,
    html body #view-home.active .service-discovery-row {
        height: 156px !important;
    }

    html body #view-home.active .hero,
    html body #view-home.active .otp-spotlight-compact {
        height: 156px !important;
        min-height: 156px !important;
        border-radius: 14px !important;
    }

    html body #view-home.active .hero {
        padding: 28px 34px !important;
    }

    html body #view-home.active .hero-content {
        width: 100% !important;
        max-width: none !important;
        text-align: center !important;
    }

    html body #view-home.active .hero h1 {
        width: 100% !important;
        max-width: none !important;
        align-items: center !important;
        text-align: center !important;
    }

    html body #view-home.active #hero-typing-text.hero-feature-title {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        display: block !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        font-size: clamp(26px, 2.55vw, 40px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.025em !important;
        white-space: nowrap !important;
    }
}

html body #view-home.active .otp-spotlight-compact {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    appearance: none !important;
    overflow: hidden !important;
    border: 0 !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
        radial-gradient(circle at 92% 92%, rgba(38, 234, 213, 0.28), transparent 30%),
        linear-gradient(135deg, #2563eb 0%, #3b82f6 54%, #06b6d4 100%) !important;
    font: inherit !important;
    cursor: pointer !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.2) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease !important;
}

html body #view-home.active .otp-spotlight-compact > span {
    color: #ffffff !important;
    font-size: clamp(20px, 1.8vw, 26px) !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

html body #view-home.active .otp-spotlight-compact:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3) !important;
    filter: brightness(1.05) !important;
}

html body #view-home.active .otp-spotlight-compact:focus-visible {
    outline: 3px solid rgba(47, 120, 246, 0.34) !important;
    outline-offset: 3px !important;
}

@media (max-width: 900px) {
    html body #view-home.active .home-layout {
        order: 1 !important;
    }

    html body #view-home.active .service-discovery-row {
        height: auto !important;
        order: 2 !important;
    }

    html body #view-home.active .hero {
        height: 108px !important;
        min-height: 108px !important;
        padding: 18px !important;
        border-radius: 12px !important;
    }

    html body #view-home.active .hero-content {
        width: 100% !important;
        max-width: none !important;
    }

    html body #view-home.active .hero h1 {
        width: 100% !important;
        text-align: center !important;
    }

    html body #view-home.active #hero-typing-text.hero-feature-title {
        min-height: 0 !important;
        display: block !important;
        overflow: visible !important;
        font-size: clamp(17px, 5vw, 25px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.035em !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    html body #view-home.active .otp-spotlight-compact {
        height: 78px !important;
        min-height: 78px !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }

    html body #view-home.active .otp-spotlight-compact > span {
        font-size: 20px !important;
    }
}

/* ---------- Breathing motion for the transparent header logo ---------- */
html body #app .glass-header .header-container .logo {
    position: relative !important;
    transform-origin: center !important;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    isolation: isolate;
    animation: brand-logo-breathe 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

html body:not(.light-theme) #app .glass-header .header-container .site-img-logo-brand {
    position: relative;
    z-index: 1;
    will-change: transform, filter;
    backface-visibility: hidden;
    animation: brand-logo-glow-pulse-dark 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

html body.light-theme #app .glass-header .header-container .site-img-logo-brand {
    position: relative;
    z-index: 1;
    will-change: transform, filter;
    backface-visibility: hidden;
    filter: brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(1832%) hue-rotate(212deg) brightness(96%) contrast(94%) !important;
    animation: brand-logo-glow-pulse-light 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

html body #app .glass-header .header-container .logo::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        102deg,
        transparent 18%,
        rgba(255, 255, 255, 0.42) 36%,
        rgba(255, 255, 255, 1) 47%,
        rgba(170, 244, 255, 0.98) 52%,
        rgba(75, 219, 255, 0.7) 59%,
        transparent 78%
    );
    background-size: 210% 100%;
    background-position: 112% 0;
    -webkit-mask: url("assets/logo-taikhoanxin.png?v=1") center / contain no-repeat;
    mask: url("assets/logo-taikhoanxin.png?v=1") center / contain no-repeat;
    filter: brightness(1.35);
    mix-blend-mode: screen;
    animation: brand-logo-shine 2.2s linear infinite !important;
}

html body:not(.light-theme) #app .glass-header .header-container .logo::after {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    top: 50% !important;
    left: 50% !important;
    width: 185px !important;
    height: 32px !important;
    display: block !important;
    pointer-events: none !important;
    border-radius: 50% !important;
    opacity: 0;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.95) 0%, rgba(56, 189, 248, 0.55) 40%, rgba(139, 92, 246, 0.2) 70%, transparent 88%) !important;
    box-shadow: none !important;
    filter: blur(8px);
    transform: translate(-50%, -50%) scaleX(0.7) scaleY(0.5);
    transform-origin: center;
    animation: brand-logo-halo-dark 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

html body.light-theme #app .glass-header .header-container .logo::after {
    display: none !important;
}

@keyframes brand-logo-breathe {
    0%,
    100% {
        transform: translateZ(0) scale3d(1, 1, 1);
    }

    50% {
        transform: translateZ(0) scale3d(1.1, 1.1, 1);
    }
}

@keyframes brand-logo-glow-pulse-dark {
    0%,
    100% {
        filter: brightness(0.9) drop-shadow(0 0 0px transparent) !important;
    }

    50% {
        filter: brightness(1.25) drop-shadow(0 0 5px #00f0ff) drop-shadow(0 0 10px rgba(56, 189, 248, 0.7)) !important;
    }
}

@keyframes brand-logo-glow-pulse-light {
    0%,
    100%,
    50% {
        filter: brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(1832%) hue-rotate(212deg) brightness(96%) contrast(94%) drop-shadow(0 0 0px transparent) !important;
    }
}

@keyframes brand-logo-halo-dark {
    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0.7) scaleY(0.5);
        filter: blur(3px);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scaleX(1.08) scaleY(1.1);
        filter: blur(8px);
    }
}

@keyframes brand-logo-shine {
    0%,
    10% {
        opacity: 0;
        background-position: 112% 0;
    }

    50% {
        opacity: 1;
        background-position: 47% 0;
    }

    90%,
    100% {
        opacity: 0;
        background-position: -18% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body #app .glass-header .header-container .logo,
    html body #app .glass-header .header-container .site-img-logo-brand,
    html body #app .glass-header .header-container .logo::before,
    html body #app .glass-header .header-container .logo::after {
        animation: none !important;
    }

    html body #app .glass-header .header-container .logo {
        transform: none !important;
    }

    html body #app .glass-header .header-container .logo::before,
    html body #app .glass-header .header-container .logo::after {
        display: none !important;
    }
}

/* ---------- Categories integrated into the product panel ---------- */
html body #app #view-home.active .products-section .product-category-tabs-inline {
    width: 100% !important;
    min-width: 0 !important;
    margin: -2px 0 2px !important;
    padding: 0 0 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    overflow: visible !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn {
    position: relative !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #526075 !important;
    border: 1px solid #dce4ef !important;
    border-radius: 999px !important;
    background: #f7f9fc !important;
    box-shadow: none !important;
    transform: none !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn > i {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    color: #2f78f6 !important;
    background: transparent !important;
    font-size: 11px !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn > strong {
    max-width: none !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn > span {
    position: static !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    color: #667085 !important;
    background: #e9eef6 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn:hover {
    color: #235fc7 !important;
    border-color: #a9c6ff !important;
    background: #eef5ff !important;
    transform: translateY(-1px) !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active {
    color: #ffffff !important;
    border-color: #2f78f6 !important;
    background: linear-gradient(135deg, #4a8af8, #2f78f6) !important;
    box-shadow: 0 6px 14px rgba(47, 120, 246, 0.2) !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active > i {
    color: #ffffff !important;
}

html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active > span {
    color: #174197 !important;
    background: #ffffff !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn {
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.25s ease !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn > i {
    color: #38bdf8 !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn > span {
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn:hover {
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active {
    color: #ffffff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active > i {
    color: #ffffff !important;
}

html body:not(.light-theme) #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn.active > span {
    color: #1e1b4b !important;
    background: #ffffff !important;
}

@media (max-width: 900px) {
    html body #app #view-home.active .products-section .product-category-tabs-inline {
        margin: 0 !important;
        padding: 0 0 6px !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
    }

    html body #app #view-home.active .products-section .product-category-tabs-inline::-webkit-scrollbar {
        display: none !important;
    }

    html body #app #view-home.active .products-section .product-category-tabs-inline .product-category-btn {
        min-height: 42px !important;
        padding: 0 10px !important;
        scroll-snap-align: start !important;
    }

    html body #view-home.active .home-section-bar {
        min-height: 40px !important;
        margin-bottom: 12px !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    html body #view-home.active .home-section-bar button {
        width: auto !important;
        min-width: 92px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 13px !important;
    }
}

/* =========================================================
   LIGHT THEME DEPOSIT SECTION — HIGH CONTRAST BLUE HARMONY
   ========================================================= */

body.light-theme #view-checkout,
body.light-theme #view-deposit {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.light-theme #view-checkout .checkout-header h2,
body.light-theme #view-deposit .checkout-header h2 {
    color: #0f172a !important;
    font-weight: 850 !important;
}

body.light-theme #view-checkout .checkout-header p,
body.light-theme #view-deposit .checkout-header p {
    color: #64748b !important;
}

body.light-theme #view-checkout .payment-info,
body.light-theme #view-checkout .order-summary,
body.light-theme #view-deposit .payment-info,
body.light-theme #view-deposit .order-summary {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.07) !important;
    color: #0f172a !important;
}

body.light-theme #view-checkout .border-glow::before,
body.light-theme #view-deposit .border-glow::before {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    opacity: 0.35 !important;
}

body.light-theme #view-checkout h3,
body.light-theme #view-deposit h3 {
    color: #1d4ed8 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 800 !important;
}

body.light-theme #view-checkout h3 i,
body.light-theme #view-deposit h3 i {
    color: #2563eb !important;
}

body.light-theme #view-checkout .bank-item,
body.light-theme #view-deposit .bank-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

body.light-theme #view-checkout .bank-item .label,
body.light-theme #view-deposit .bank-item .label {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.light-theme #view-checkout .bank-item .value,
body.light-theme #view-deposit .bank-item .value {
    color: #0f172a !important;
    font-weight: 800 !important;
}

body.light-theme #view-checkout .bank-item .value.text-gradient,
body.light-theme #view-deposit .bank-item .value.text-gradient {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

body.light-theme #view-checkout .btn-icon,
body.light-theme #view-deposit .btn-icon {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
}

body.light-theme #view-checkout .btn-icon:hover,
body.light-theme #view-deposit .btn-icon:hover {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

body.light-theme #deposit-input-group {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 12px !important;
}

body.light-theme #deposit-input-group label {
    color: #1d4ed8 !important;
    font-weight: 750 !important;
}

body.light-theme #deposit-amount-input {
    background: #ffffff !important;
    border: 1px solid #93c5fd !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05) !important;
}

body.light-theme #deposit-amount-input::placeholder {
    color: #94a3b8 !important;
}

body.light-theme .deposit-quick-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 750 !important;
}

body.light-theme .deposit-quick-btn:hover,
body.light-theme .deposit-quick-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25) !important;
}

body.light-theme #btn-confirm-deposit,
body.light-theme #view-checkout .btn-primary,
body.light-theme #view-deposit .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28) !important;
    font-weight: 800 !important;
}

body.light-theme #btn-confirm-deposit:hover,
body.light-theme #view-checkout .btn-primary:hover,
body.light-theme #view-deposit .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38) !important;
}

body.light-theme #btn-confirm-deposit:disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
}

body.light-theme #deposit-memo-group {
    background: #ecfdf5 !important;
    border: 1px dashed #10b981 !important;
}

body.light-theme #deposit-memo-group .label {
    color: #047857 !important;
}

body.light-theme #deposit-memo-group #deposit-content {
    color: #059669 !important;
}

body.light-theme #deposit-amount-display-group {
    background: #eff6ff !important;
    border: 1px dashed #2563eb !important;
}

body.light-theme #deposit-amount-display-group .label {
    color: #1e40af !important;
}

body.light-theme #deposit-amount-display-group #deposit-amount-display {
    color: #2563eb !important;
}

body.light-theme #deposit-countdown-box {
    background: #fffbe6 !important;
    border: 1px solid #ffe58f !important;
    color: #d46b08 !important;
}

/* Keep the home hero heading centered and upright at every viewport size. */
html body #view-home.active .hero {
    align-items: center !important;
    justify-content: center !important;
}

html body #view-home.active .hero-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
}

html body #view-home.active .hero-content h1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

html body #view-home.active #hero-typing-text.hero-feature-title,
html body #view-home.active #hero-typing-text.hero-feature-title .hero-type-char,
body.light-theme #view-home.active #hero-typing-text.hero-feature-title,
body.light-theme #view-home.active #hero-typing-text.hero-feature-title .hero-type-char {
    font-style: normal !important;
    transform: none !important;
    transform-origin: center center !important;
}

/* Share the light-theme logo treatment with the dark theme. */
html body:not(.light-theme) #app .glass-header .header-container .site-img-logo-brand,
html body.light-theme #app .glass-header .header-container .site-img-logo-brand {
    filter: brightness(0) saturate(100%) invert(29%) sepia(94%) saturate(1832%) hue-rotate(212deg) brightness(96%) contrast(94%) !important;
    animation: brand-logo-glow-pulse-light 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

html body:not(.light-theme) #app .glass-header .header-container .logo::after,
html body.light-theme #app .glass-header .header-container .logo::after {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html body:not(.light-theme) #app .glass-header .header-container .site-img-logo-brand,
    html body.light-theme #app .glass-header .header-container .site-img-logo-brand {
        animation: none !important;
    }
}
