/* Manifest Life Church Template Upgrade - PWA-ready visual polish */
:root{
    --mlc-safe-top: env(safe-area-inset-top,0px);
    --mlc-safe-bottom: env(safe-area-inset-bottom,0px);
    --mlc-upgrade-radius-xl: 2rem;
    --mlc-upgrade-radius-lg: 1.35rem;
    --mlc-upgrade-border: rgba(148,163,184,.18);
    --mlc-upgrade-shadow: 0 24px 70px rgba(15,23,42,.10);
    --mlc-upgrade-shadow-soft: 0 16px 42px rgba(15,23,42,.08);
    --mlc-upgrade-gold: #f59e0b;
    --mlc-upgrade-emerald: #10b981;
    --mlc-upgrade-blue: #2563eb;
    --mlc-upgrade-purple: #7c3aed;
    --mlc-upgrade-orange: #f97316;
}
html{
    scroll-behavior:smooth;
    scroll-padding-top:calc(96px + var(--mlc-safe-top));
    min-height:100%;
}
body{
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    min-height:100%;
    touch-action:manipulation;
    -webkit-tap-highlight-color:rgba(37,99,235,.16);
}
body.mlc-template-enhanced{
    background-attachment:fixed;
}
body.mlc-template-enhanced a,
body.mlc-template-enhanced button,
body.mlc-template-enhanced .btn{
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease, color .22s ease;
}
body.mlc-template-enhanced .btn:hover,
body.mlc-template-enhanced a.btn:hover{
    transform:translateY(-1px);
}
body.mlc-template-enhanced .btn:active,
body.mlc-template-enhanced button:active{
    transform:translateY(0) scale(.99);
}

/* Sticky PWA-ready headers */
.frontend-default-topbar,
.modern-topbar,
.user-topbar,
.classic-topbar,
.admin-topbar{
    position:sticky!important;
    top:0!important;
    z-index:1050!important;
    padding-top:var(--mlc-safe-top)!important;
    backdrop-filter:blur(22px) saturate(180%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(180%)!important;
    border-bottom:1px solid rgba(255,255,255,.22)!important;
    box-shadow:0 12px 42px rgba(15,23,42,.10)!important;
}
.frontend-default-topbar.is-scrolled,
.modern-topbar.is-scrolled,
.user-topbar.is-scrolled,
.classic-topbar.is-scrolled,
.admin-topbar.is-scrolled{
    box-shadow:0 18px 54px rgba(15,23,42,.16)!important;
}
.frontend-default-topbar-inner,
.modern-topbar-inner,
.user-topbar-inner,
.classic-topbar-inner,
.admin-topbar-inner,
.admin-content-wrap{
    max-width:1480px;
}
.frontend-default-brand,
.modern-brand,
.user-brand,
.classic-brand,
.admin-brand,
.navbar-brand{
    min-width:0;
}

/* Classy church frontend surfaces */
.frontend-default-shell,
.modern-shell{
    background:
        radial-gradient(circle at 12% 0%, rgba(245,158,11,.16), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(37,99,235,.14), transparent 28%),
        radial-gradient(circle at 60% 100%, rgba(16,185,129,.12), transparent 32%);
}
.frontend-default-shell::before,
.modern-shell::before{
    opacity:.88;
}
.frontend-default-shell::after,
.modern-shell::after{
    opacity:.72;
}
.frontend-default-content-wrap,
.modern-content-frame{
    position:relative;
    z-index:1;
}
.frontend-default-content-wrap > .container,
.modern-content-frame > .container,
.container.py-4{
    border-radius:var(--mlc-upgrade-radius-xl);
}
.frontend-default-hero,
.modern-hero,
.frontend-default-hero-main,
.modern-hero-main,
.hero-section,
.page-hero{
    border:1px solid rgba(255,255,255,.28)!important;
    box-shadow:0 30px 90px rgba(15,23,42,.12)!important;
    overflow:hidden;
}
.frontend-default-hero-main h1,
.modern-hero-main h1,
.hero-section h1,
.page-hero h1{
    letter-spacing:-.04em;
}
.frontend-default-nav-link,
.frontend-default-nav-group-toggle,
.modern-nav-link,
.modern-nav-group-toggle{
    border-radius:1.1rem!important;
    min-height:48px;
}
.frontend-default-nav-link:hover,
.frontend-default-nav-link.active,
.frontend-default-nav-group-toggle:hover,
.modern-nav-link:hover,
.modern-nav-link.active,
.modern-nav-group-toggle:hover{
    box-shadow:0 16px 38px rgba(15,23,42,.10)!important;
}
.frontend-default-offcanvas,
.modern-offcanvas,
.user-sidebar.offcanvas,
.admin-sidebar-panel,
.admin-mobile-utility-panel{
    padding-top:var(--mlc-safe-top)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:0 30px 90px rgba(2,6,23,.28)!important;
}
.frontend-default-footer-card,
.modern-footer-card,
.footer-card,
.admin-main-card{
    position:relative;
    overflow:hidden;
}
.frontend-default-footer-card::before,
.modern-footer-card::before,
.footer-card::before,
.admin-main-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(135deg, rgba(255,255,255,.13), transparent 36%, rgba(245,158,11,.08));
    opacity:.78;
}
.frontend-default-footer-card > *,
.modern-footer-card > *,
.footer-card > *,
.admin-main-card > *{
    position:relative;
    z-index:1;
}

/* Universal content polish */
.card,
.table-responsive,
.accordion-item,
.list-group-item,
.alert,
.modal-content,
.dropdown-menu{
    border-radius:1.15rem;
}
.card,
.table-responsive,
.modal-content{
    box-shadow:var(--mlc-upgrade-shadow-soft);
    border-color:rgba(148,163,184,.16)!important;
}
.table-responsive{
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.table thead th{
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.055em;
    color:#64748b;
    border-bottom-color:rgba(148,163,184,.18)!important;
}
.form-control,
.form-select,
.input-group-text{
    border-radius:1rem;
    border-color:rgba(148,163,184,.28);
}
.form-control:focus,
.form-select:focus{
    box-shadow:0 0 0 .22rem rgba(37,99,235,.14);
    border-color:rgba(37,99,235,.45);
}
.btn-primary,
.btn-success,
.btn-brand,
.admin-action-btn-primary{
    box-shadow:0 14px 32px rgba(37,99,235,.18);
}
.badge,
.rounded-pill{
    letter-spacing:.01em;
}

/* User panel PWA polish */
.user-shell,
.classic-shell,
.admin-shell{
    min-height:100svh;
}
.user-shell,
.classic-shell{
    padding-bottom:var(--mlc-safe-bottom);
}
.user-topbar,
.classic-topbar{
    min-height:68px;
}
.main-content-card,
.user-sidebar .offcanvas-body,
.sidebar-user-card,
.user-dashboard-card,
.user-stat-card{
    box-shadow:0 24px 70px rgba(15,23,42,.10)!important;
}
.main-content-card{
    border:1px solid rgba(255,255,255,.26)!important;
}
.sidebar-link,
.shortcut-link{
    min-height:48px;
    border-radius:1rem!important;
}
.sidebar-link:hover,
.sidebar-link.active,
.shortcut-link:hover,
.shortcut-link.active{
    transform:translateX(2px);
}
.topbar-tools .btn,
.topbar-tools .dropdown-toggle,
.admin-topbar .btn,
.admin-mobile-utility-panel .btn{
    min-height:42px;
}

/* Admin template polish */
.admin-shell{
    padding-bottom:var(--mlc-safe-bottom);
}
.admin-main-card{
    border:1px solid rgba(255,255,255,.22)!important;
}
.admin-sidebar-panel{
    border-radius:0 2rem 2rem 0!important;
}
.admin-menu-link,
.admin-menu-group-toggle{
    min-height:46px;
    border-radius:1rem!important;
}
.admin-menu-link:hover,
.admin-menu-link.active,
.admin-menu-group.is-open > .admin-menu-group-toggle{
    transform:translateX(2px);
}
.admin-mobile-utility-panel{
    border-radius:2rem 2rem 0 0!important;
    padding-bottom:calc(1rem + var(--mlc-safe-bottom))!important;
}

/* Simple fallback header used by includes/head.php */
body > nav.navbar.bg-dark{
    position:sticky;
    top:0;
    z-index:1050;
    padding-top:calc(.65rem + var(--mlc-safe-top));
    padding-bottom:.65rem;
    background:linear-gradient(135deg,#0f172a,#1e3a8a 46%,#065f46)!important;
    box-shadow:0 18px 48px rgba(15,23,42,.22);
    backdrop-filter:blur(18px);
}
body > nav.navbar.bg-dark .navbar-brand img{
    box-shadow:0 10px 26px rgba(255,255,255,.14);
}
body > .container.py-4{
    margin-top:1rem;
    background:rgba(255,255,255,.78);
    border:1px solid rgba(148,163,184,.18);
    box-shadow:var(--mlc-upgrade-shadow-soft);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
body > footer.bg-light{
    background:linear-gradient(135deg,rgba(248,250,252,.96),rgba(239,246,255,.94))!important;
}

/* Mobile-first PWA refinements */
@media(max-width:991.98px){
    html{scroll-padding-top:calc(84px + var(--mlc-safe-top));}
    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar-inner,
    .classic-topbar-inner,
    .admin-content-wrap{
        width:calc(100% - .85rem)!important;
    }
    .frontend-default-topbar,
    .modern-topbar,
    .user-topbar,
    .classic-topbar,
    .admin-topbar{
        border-radius:0 0 1.25rem 1.25rem;
    }
    .frontend-default-offcanvas,
    .modern-offcanvas,
    .user-sidebar.offcanvas{
        width:min(92vw,390px)!important;
        max-width:calc(100vw - .75rem)!important;
        border-radius:0 1.4rem 1.4rem 0!important;
    }
    .admin-sidebar-panel{
        width:min(92vw,380px)!important;
        max-width:calc(100vw - .75rem)!important;
    }
    .main-content-card,
    .admin-main-card,
    .frontend-default-footer-card,
    .modern-footer-card,
    .footer-card{
        border-radius:1.25rem!important;
    }
    .btn,
    .form-control,
    .form-select{
        min-height:44px;
    }
    .table-responsive{
        border-radius:1rem;
    }
}
@media(max-width:575.98px){
    html{scroll-padding-top:calc(78px + var(--mlc-safe-top));}
    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar-inner,
    .classic-topbar-inner,
    .admin-content-wrap{
        width:calc(100% - .55rem)!important;
    }
    .frontend-default-brand-text small,
    .modern-brand-text small,
    .user-brand small,
    .classic-brand small{
        display:none!important;
    }
    .frontend-default-footer-card,
    .modern-footer-card,
    .footer-card,
    .admin-main-card{
        text-align:center;
        justify-content:center!important;
    }
    body > .container.py-4{
        border-radius:1rem;
        padding-left:1rem;
        padding-right:1rem;
    }
}
@supports(height:100dvh){
    .frontend-default-offcanvas,
    .modern-offcanvas,
    .user-sidebar.offcanvas,
    .admin-sidebar-panel,
    .admin-mobile-utility-panel{
        max-height:100dvh;
    }
}
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{
        transition:none!important;
        animation:none!important;
        scroll-behavior:auto!important;
    }
}

/* v3: Mobile-only PWA top bars for frontend and user panel; no fallback/admin shell forcing */
body > nav.navbar.bg-dark,
body > footer.bg-light{
    display:none!important;
}

@media (min-width: 992px){
    .frontend-default-topbar,
    .modern-topbar,
    .user-topbar,
    .classic-topbar{
        top:0;
    }
}

@media (max-width: 991.98px){
    .frontend-default-topbar,
    .modern-topbar,
    .user-topbar,
    .classic-topbar{
        position:sticky!important;
        top:0!important;
        z-index:1080!important;
        padding-top:var(--mlc-safe-top)!important;
        border-radius:0 0 1rem 1rem!important;
        background:rgba(255,255,255,.86)!important;
        box-shadow:0 10px 28px rgba(15,23,42,.12)!important;
        backdrop-filter:blur(18px) saturate(180%)!important;
        -webkit-backdrop-filter:blur(18px) saturate(180%)!important;
    }

    .frontend-default-topbar-inner,
    .modern-topbar-inner{
        min-height:3.65rem!important;
        padding:.34rem .05rem!important;
        width:calc(100% - .65rem)!important;
        gap:.45rem!important;
    }

    .user-topbar .container-fluid,
    .classic-topbar .container-fluid{
        min-height:3.65rem!important;
        padding-top:.34rem!important;
        padding-bottom:.34rem!important;
        padding-left:.65rem!important;
        padding-right:.65rem!important;
    }

    .frontend-default-brand-mark,
    .modern-brand-mark,
    .user-brand-mark,
    .classic-brand-mark{
        width:2.35rem!important;
        height:2.35rem!important;
        border-radius:.85rem!important;
        flex:0 0 auto!important;
    }

    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .icon-action-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:2.45rem!important;
        height:2.45rem!important;
        min-height:2.45rem!important;
        padding:0!important;
        border-radius:.85rem!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
    }

    .frontend-default-brand-title,
    .modern-brand-title,
    .user-brand-title,
    .classic-brand-title{
        font-size:.92rem!important;
        line-height:1.05!important;
        max-width:48vw!important;
        white-space:nowrap!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }

    .frontend-default-brand-copy,
    .modern-brand-copy,
    .user-brand .min-w-0,
    .classic-brand .min-w-0{
        min-width:0!important;
    }

    .frontend-default-brand-meta,
    .modern-brand-meta,
    .user-brand-subtitle,
    .classic-brand-subtitle{
        display:none!important;
    }

    .frontend-default-right,
    .modern-topbar-right,
    .topbar-tools{
        gap:.35rem!important;
        flex:0 0 auto!important;
    }

    .topbar-tools .dropdown,
    .topbar-tools .dropdown-toggle,
    .topbar-tools .theme-toggle-btn,
    .topbar-tools .welcome-chip{
        display:none!important;
    }

    .frontend-default-stage,
    .modern-stage,
    .user-main,
    .classic-main{
        scroll-margin-top:calc(4.2rem + var(--mlc-safe-top))!important;
    }
}

@media (max-width: 575.98px){
    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar .container-fluid,
    .classic-topbar .container-fluid{
        min-height:3.35rem!important;
    }

    .frontend-default-brand-title,
    .modern-brand-title,
    .user-brand-title,
    .classic-brand-title{
        max-width:42vw!important;
        font-size:.86rem!important;
    }

    .frontend-default-brand-mark,
    .modern-brand-mark,
    .user-brand-mark,
    .classic-brand-mark{
        width:2.15rem!important;
        height:2.15rem!important;
    }

    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .icon-action-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:2.25rem!important;
        height:2.25rem!important;
        min-height:2.25rem!important;
    }
}

/* v3 feature-preserving mobile toolbar compaction */
@media (max-width: 991.98px){
    .topbar-tools .dropdown{
        display:inline-flex!important;
    }
    .topbar-tools .dropdown-toggle{
        display:inline-flex!important;
        width:2.45rem!important;
        height:2.45rem!important;
        min-height:2.45rem!important;
        padding:0!important;
        align-items:center!important;
        justify-content:center!important;
        border-radius:.85rem!important;
        overflow:hidden!important;
    }
    .topbar-tools .dropdown-toggle span:not(.visually-hidden),
    .topbar-tools .dropdown-toggle small,
    .topbar-tools .dropdown-toggle .label,
    .topbar-tools .dropdown-toggle .d-none,
    .topbar-tools .theme-toggle-btn span,
    .topbar-tools .welcome-chip{
        display:none!important;
    }
    .topbar-tools .theme-toggle-btn{
        display:inline-flex!important;
    }
}

/* v6: Correct mobile app top bars and hide closed side panels completely. */
@media (max-width: 991.98px){
    html{scroll-padding-top:calc(3.75rem + var(--mlc-safe-top))!important;}

    .frontend-default-shell,
    .modern-shell,
    .user-shell,
    .classic-shell{
        overflow:visible!important;
    }

    .frontend-default-topbar,
    .modern-topbar,
    .user-topbar,
    .classic-topbar{
        position:fixed!important;
        top:0!important;
        left:0!important;
        right:0!important;
        z-index:2140!important;
        margin:0!important;
        padding-top:var(--mlc-safe-top)!important;
        border-radius:0 0 .95rem .95rem!important;
        box-shadow:0 8px 22px rgba(15,23,42,.13)!important;
    }

    .frontend-default-shell,
    .modern-shell,
    .user-shell,
    .classic-shell{
        padding-top:calc(3.75rem + var(--mlc-safe-top))!important;
    }

    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar .container-fluid,
    .classic-topbar .container-fluid{
        min-height:3.25rem!important;
        padding-top:.28rem!important;
        padding-bottom:.28rem!important;
    }

    .frontend-default-brand-mark,
    .modern-brand-mark,
    .user-brand-mark,
    .classic-brand-mark{
        width:2.05rem!important;
        height:2.05rem!important;
        border-radius:.72rem!important;
    }

    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .icon-action-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:2.18rem!important;
        height:2.18rem!important;
        min-height:2.18rem!important;
        border-radius:.72rem!important;
    }

    .frontend-default-brand-title,
    .modern-brand-title,
    .user-brand-title,
    .classic-brand-title{
        max-width:45vw!important;
        font-size:.84rem!important;
        line-height:1.05!important;
    }

    .frontend-default-brand-meta,
    .modern-brand-meta,
    .user-brand-subtitle,
    .classic-brand-subtitle,
    .frontend-default-chip,
    .modern-pill,
    .topbar-tools .welcome-chip{
        display:none!important;
    }

    .frontend-default-stage,
    .modern-stage,
    .layout-wrap{
        padding-top:.55rem!important;
        scroll-margin-top:calc(3.85rem + var(--mlc-safe-top))!important;
    }
}

@media (max-width: 575.98px){
    .frontend-default-shell,
    .modern-shell,
    .user-shell,
    .classic-shell{
        padding-top:calc(3.45rem + var(--mlc-safe-top))!important;
    }

    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar .container-fluid,
    .classic-topbar .container-fluid{
        min-height:3.05rem!important;
    }

    .frontend-default-brand-title,
    .modern-brand-title,
    .user-brand-title,
    .classic-brand-title{
        max-width:40vw!important;
        font-size:.8rem!important;
    }
}

/* Closed navigation panels must not leave a visible strip at the left edge. */
.admin-sidebar:not(.is-open){
    transform:translateX(calc(-100% - 2.5rem))!important;
    pointer-events:none!important;
}
.admin-sidebar:not(.is-open) .admin-sidebar-panel{
    box-shadow:none!important;
}
.admin-sidebar-panel{
    width:100%!important;
    max-width:100%!important;
}
.frontend-default-offcanvas:not(.show):not(.showing),
.modern-offcanvas:not(.show):not(.showing),
.user-sidebar.offcanvas:not(.show):not(.showing){
    visibility:hidden!important;
    pointer-events:none!important;
    box-shadow:none!important;
    transform:translateX(calc(-100% - 2rem))!important;
}

/* The template shell should not inject a repeating hero/intro board above every frontend page. */
.frontend-default-hero,
.modern-hero-board{
    display:none!important;
}

/* v7: Mobile sticky header offset + compact toolbar fix.
   The fixed frontend/user topbars are measured by JS and page/menu spacing uses that real height.
   This prevents the header from covering the first page content or first menu items. */
:root{
    --mlc-mobile-topbar-offset: 64px;
}
@media (max-width: 991.98px){
    html{
        scroll-padding-top:calc(var(--mlc-mobile-topbar-offset, 64px) + .85rem)!important;
    }

    .frontend-default-topbar,
    .modern-topbar,
    .user-topbar,
    .classic-topbar{
        min-height:0!important;
        overflow:visible!important;
    }

    .frontend-default-shell,
    .modern-shell{
        padding-top:calc(var(--mlc-mobile-topbar-offset, 64px) + .55rem)!important;
    }

    .user-shell,
    .classic-shell{
        padding-top:calc(var(--mlc-mobile-topbar-offset, 68px) + .75rem)!important;
    }

    .frontend-default-stage,
    .modern-stage,
    .layout-wrap,
    .user-main,
    .classic-main{
        scroll-margin-top:calc(var(--mlc-mobile-topbar-offset, 64px) + .85rem)!important;
    }

    .layout-wrap{
        margin-top:0!important;
    }

    .frontend-default-topbar-inner,
    .modern-topbar-inner,
    .user-topbar .container-fluid,
    .classic-topbar .container-fluid{
        min-height:0!important;
        height:auto!important;
        max-height:none!important;
        padding-top:.34rem!important;
        padding-bottom:.34rem!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        overflow:visible!important;
    }

    .user-topbar .container-fluid > .d-flex:first-child,
    .classic-topbar .container-fluid > .d-flex:first-child,
    .frontend-default-topbar-inner > .d-flex:first-child,
    .modern-topbar-inner > .d-flex:first-child{
        flex:1 1 auto!important;
        min-width:0!important;
        max-width:100%!important;
        flex-wrap:nowrap!important;
    }

    .user-brand,
    .classic-brand,
    .frontend-default-brand,
    .modern-brand{
        min-width:0!important;
        flex:1 1 auto!important;
        overflow:hidden!important;
        gap:.45rem!important;
    }

    .user-brand .min-w-0,
    .classic-brand .min-w-0,
    .frontend-default-brand-copy,
    .modern-brand-copy{
        min-width:0!important;
        overflow:hidden!important;
    }

    .user-brand-title,
    .classic-brand-title,
    .frontend-default-brand-title,
    .modern-brand-title{
        max-width:32vw!important;
        font-size:.78rem!important;
        line-height:1!important;
        white-space:nowrap!important;
        overflow:hidden!important;
        text-overflow:ellipsis!important;
    }

    .topbar-tools,
    .frontend-default-right,
    .modern-topbar-right{
        flex:0 0 auto!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:flex-end!important;
        gap:.24rem!important;
        min-width:0!important;
        overflow:visible!important;
    }

    .topbar-tools .dropdown,
    .mlc-currency-switcher,
    .mlc-language-switcher{
        flex:0 0 auto!important;
        display:inline-flex!important;
        align-items:center!important;
    }

    .topbar-tools .dropdown-toggle,
    .topbar-tools .icon-action-btn,
    .topbar-tools .theme-toggle-btn,
    .mlc-currency-switcher .dropdown-toggle,
    .mlc-language-switcher .dropdown-toggle,
    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:2.05rem!important;
        height:2.05rem!important;
        min-width:2.05rem!important;
        min-height:2.05rem!important;
        max-width:2.05rem!important;
        max-height:2.05rem!important;
        padding:0!important;
        border-radius:.72rem!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        line-height:1!important;
        overflow:hidden!important;
        white-space:nowrap!important;
    }

    .mlc-currency-switcher .dropdown-toggle::after,
    .mlc-language-switcher .dropdown-toggle::after,
    .topbar-tools .dropdown-toggle::after{
        display:none!important;
    }

    .mlc-currency-switcher .dropdown-toggle span:not(.mlc-currency-current-flag),
    .mlc-language-switcher .dropdown-toggle span:not(.mlc-language-current-flag),
    .topbar-tools .dropdown-toggle span:not(.notification-dot):not(.mlc-currency-current-flag):not(.mlc-language-current-flag),
    .topbar-tools .dropdown-toggle small,
    .topbar-tools .dropdown-toggle .label,
    .topbar-tools .theme-toggle-btn span,
    .welcome-chip{
        display:none!important;
    }

    .mlc-currency-current-flag,
    .mlc-language-current-flag{
        width:auto!important;
        min-width:0!important;
        font-size:1rem!important;
        line-height:1!important;
    }

    .frontend-default-brand-mark,
    .modern-brand-mark,
    .user-brand-mark,
    .classic-brand-mark{
        width:1.95rem!important;
        height:1.95rem!important;
        min-width:1.95rem!important;
        border-radius:.66rem!important;
    }

    .frontend-default-brand-meta,
    .modern-brand-meta,
    .user-brand-subtitle,
    .classic-brand-subtitle,
    .frontend-default-chip,
    .modern-pill{
        display:none!important;
    }

    .frontend-default-offcanvas.show,
    .frontend-default-offcanvas.showing,
    .modern-offcanvas.show,
    .modern-offcanvas.showing,
    .user-sidebar.offcanvas.show,
    .user-sidebar.offcanvas.showing{
        z-index:2600!important;
        top:0!important;
        padding-top:var(--mlc-safe-top)!important;
    }

    .offcanvas-backdrop.show{
        z-index:2590!important;
    }

    .frontend-default-offcanvas .offcanvas-header,
    .modern-offcanvas .offcanvas-header,
    .user-sidebar .offcanvas-header{
        padding-top:calc(.85rem + var(--mlc-safe-top))!important;
    }

    .frontend-default-offcanvas .offcanvas-body,
    .modern-offcanvas .offcanvas-body,
    .user-sidebar .offcanvas-body{
        padding-top:.75rem!important;
    }
}

@media (max-width: 575.98px){
    :root{--mlc-mobile-topbar-offset: 60px;}

    .frontend-default-shell,
    .modern-shell{
        padding-top:calc(var(--mlc-mobile-topbar-offset, 60px) + .5rem)!important;
    }

    .user-shell,
    .classic-shell{
        padding-top:calc(var(--mlc-mobile-topbar-offset, 62px) + .7rem)!important;
    }

    .user-brand-title,
    .classic-brand-title,
    .frontend-default-brand-title,
    .modern-brand-title{
        max-width:26vw!important;
        font-size:.75rem!important;
    }

    .topbar-tools,
    .frontend-default-right,
    .modern-topbar-right{
        gap:.18rem!important;
    }

    .topbar-tools .dropdown-toggle,
    .topbar-tools .icon-action-btn,
    .topbar-tools .theme-toggle-btn,
    .mlc-currency-switcher .dropdown-toggle,
    .mlc-language-switcher .dropdown-toggle,
    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:1.94rem!important;
        height:1.94rem!important;
        min-width:1.94rem!important;
        min-height:1.94rem!important;
        max-width:1.94rem!important;
        max-height:1.94rem!important;
    }

    .frontend-default-brand-mark,
    .modern-brand-mark,
    .user-brand-mark,
    .classic-brand-mark{
        width:1.84rem!important;
        height:1.84rem!important;
        min-width:1.84rem!important;
    }
}

@media (max-width: 379.98px){
    .user-brand-title,
    .classic-brand-title,
    .frontend-default-brand-title,
    .modern-brand-title{
        max-width:22vw!important;
    }

    .topbar-tools .dropdown-toggle,
    .topbar-tools .icon-action-btn,
    .topbar-tools .theme-toggle-btn,
    .mlc-currency-switcher .dropdown-toggle,
    .mlc-language-switcher .dropdown-toggle,
    .frontend-icon-btn,
    .modern-icon-btn,
    .menu-toggle-btn,
    .user-topbar .glass-btn,
    .classic-topbar .glass-btn{
        width:1.84rem!important;
        height:1.84rem!important;
        min-width:1.84rem!important;
        min-height:1.84rem!important;
        max-width:1.84rem!important;
        max-height:1.84rem!important;
    }
}

/* Language/Currency switcher clarity fix for mobile PWA headers */
.mlc-switcher-short-label{
    display:none;
    font-weight:800;
    letter-spacing:.035em;
    line-height:1;
    text-transform:uppercase;
}

.mlc-switcher-full-label{
    display:inline-flex;
    align-items:center;
    min-width:0;
}

@media (max-width: 767.98px){
    .frontend-default-right .mlc-currency-switcher .dropdown-toggle,
    .frontend-default-right .mlc-language-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-currency-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-language-switcher .dropdown-toggle,
    .topbar-tools .mlc-currency-switcher .dropdown-toggle,
    .topbar-tools .mlc-language-switcher .dropdown-toggle,
    .user-topbar .mlc-currency-switcher .dropdown-toggle,
    .user-topbar .mlc-language-switcher .dropdown-toggle,
    .classic-topbar .mlc-currency-switcher .dropdown-toggle,
    .classic-topbar .mlc-language-switcher .dropdown-toggle{
        width:auto!important;
        min-width:3.78rem!important;
        max-width:none!important;
        height:2.05rem!important;
        min-height:2.05rem!important;
        max-height:2.05rem!important;
        padding:.22rem .48rem!important;
        gap:.28rem!important;
        border-radius:.78rem!important;
        overflow:visible!important;
        color:#10233f!important;
        border:1px solid rgba(37,99,235,.20)!important;
        background:linear-gradient(135deg,#ffffff 0%,#eef6ff 100%)!important;
        box-shadow:0 10px 24px rgba(15,23,42,.12)!important;
    }

    .frontend-default-right .mlc-language-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-language-switcher .dropdown-toggle,
    .topbar-tools .mlc-language-switcher .dropdown-toggle,
    .user-topbar .mlc-language-switcher .dropdown-toggle,
    .classic-topbar .mlc-language-switcher .dropdown-toggle{
        border-color:rgba(234,88,12,.24)!important;
        background:linear-gradient(135deg,#fffaf2 0%,#fff1d6 100%)!important;
    }

    .frontend-default-right .mlc-currency-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-currency-switcher .dropdown-toggle,
    .topbar-tools .mlc-currency-switcher .dropdown-toggle,
    .user-topbar .mlc-currency-switcher .dropdown-toggle,
    .classic-topbar .mlc-currency-switcher .dropdown-toggle{
        border-color:rgba(22,163,74,.24)!important;
        background:linear-gradient(135deg,#f5fff8 0%,#dcfce7 100%)!important;
    }

    .mlc-currency-switcher .dropdown-toggle .mlc-switcher-full-label,
    .mlc-language-switcher .dropdown-toggle .mlc-switcher-full-label{
        display:none!important;
    }

    .mlc-currency-switcher .dropdown-toggle .mlc-switcher-short-label,
    .mlc-language-switcher .dropdown-toggle .mlc-switcher-short-label{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        font-size:.72rem!important;
        color:currentColor!important;
        white-space:nowrap!important;
        max-width:none!important;
        overflow:visible!important;
    }

    .mlc-currency-switcher .dropdown-toggle .mlc-currency-current-flag,
    .mlc-language-switcher .dropdown-toggle .mlc-language-current-flag{
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:1rem!important;
        min-width:1rem!important;
        max-width:1rem!important;
        font-size:.9rem!important;
        opacity:1!important;
        visibility:visible!important;
    }

    .mlc-currency-switcher .dropdown-menu,
    .mlc-language-switcher .dropdown-menu{
        min-width:min(19rem, calc(100vw - 1rem))!important;
        max-width:calc(100vw - 1rem)!important;
        z-index:3200!important;
    }
}

@media (max-width: 575.98px){
    .frontend-default-right .mlc-currency-switcher .dropdown-toggle,
    .frontend-default-right .mlc-language-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-currency-switcher .dropdown-toggle,
    .modern-topbar-right .mlc-language-switcher .dropdown-toggle,
    .topbar-tools .mlc-currency-switcher .dropdown-toggle,
    .topbar-tools .mlc-language-switcher .dropdown-toggle,
    .user-topbar .mlc-currency-switcher .dropdown-toggle,
    .user-topbar .mlc-language-switcher .dropdown-toggle,
    .classic-topbar .mlc-currency-switcher .dropdown-toggle,
    .classic-topbar .mlc-language-switcher .dropdown-toggle{
        min-width:3.28rem!important;
        height:1.96rem!important;
        min-height:1.96rem!important;
        max-height:1.96rem!important;
        padding:.18rem .34rem!important;
        gap:.22rem!important;
    }

    .mlc-currency-switcher .dropdown-toggle .mlc-switcher-short-label,
    .mlc-language-switcher .dropdown-toggle .mlc-switcher-short-label{
        font-size:.66rem!important;
    }

    .mlc-currency-switcher .dropdown-toggle .mlc-currency-current-flag,
    .mlc-language-switcher .dropdown-toggle .mlc-language-current-flag{
        width:.9rem!important;
        min-width:.9rem!important;
        max-width:.9rem!important;
        font-size:.82rem!important;
    }
}

/* Final language/currency selector placement and mobile visibility fix */
.mlc-selector-panel{display:block;width:100%;border:1px solid rgba(148,163,184,.22);border-radius:1.1rem;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.92));box-shadow:0 14px 30px rgba(15,23,42,.08);overflow:hidden;margin-bottom:.7rem}
.mlc-selector-panel-toggle{width:100%;border:0;background:transparent;padding:.85rem .95rem;display:flex;align-items:center;gap:.75rem;text-align:left;color:#10233f}
.mlc-selector-panel-toggle:focus{outline:2px solid rgba(37,99,235,.25);outline-offset:-2px}
.mlc-selector-panel-icon{width:2.25rem;height:2.25rem;border-radius:.8rem;display:inline-flex;align-items:center;justify-content:center;background:#fff;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);font-size:1.12rem;flex:0 0 auto}
.mlc-selector-panel-copy{min-width:0;display:flex;flex-direction:column;gap:.12rem;line-height:1.12;flex:1 1 auto}
.mlc-selector-panel-label{font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#64748b}
.mlc-selector-panel-copy strong{font-size:.92rem;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mlc-selector-panel-caret{color:#64748b;transition:transform .2s ease}.mlc-selector-panel-toggle[aria-expanded="true"] .mlc-selector-panel-caret{transform:rotate(180deg)}
.mlc-selector-panel-list{padding:.25rem .55rem .65rem}.mlc-selector-panel-option{display:flex;align-items:center;gap:.7rem;padding:.68rem .7rem;border-radius:.86rem;color:#334155;text-decoration:none}.mlc-selector-panel-option:hover{background:rgba(37,99,235,.08);color:#0f172a}.mlc-selector-panel-option.active{background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(22,163,74,.12));color:#0f172a;box-shadow:inset 0 0 0 1px rgba(37,99,235,.14)}
.mlc-selector-panel-option-icon{width:1.7rem;height:1.7rem;border-radius:.62rem;display:inline-flex;align-items:center;justify-content:center;background:#fff;box-shadow:inset 0 0 0 1px rgba(148,163,184,.14);flex:0 0 auto}.mlc-selector-panel-option-copy{min-width:0;display:flex;flex-direction:column;line-height:1.12}.mlc-selector-panel-option-copy strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mlc-selector-panel-option-copy small{font-size:.74rem;color:#64748b}.mlc-selector-panel-option.active small{color:#475569}.mlc-selector-panel-language .mlc-selector-panel-toggle{background:linear-gradient(135deg,rgba(255,247,237,.9),rgba(255,255,255,.65))}.mlc-selector-panel-currency .mlc-selector-panel-toggle{background:linear-gradient(135deg,rgba(240,253,244,.92),rgba(255,255,255,.66))}
.mlc-user-dropdown-selector-wrap{padding:.75rem .85rem;border-top:1px solid rgba(148,163,184,.14);border-bottom:1px solid rgba(148,163,184,.14);background:rgba(248,250,252,.75)}
.mlc-user-dropdown-selector-wrap .mlc-selector-panel{margin-bottom:.55rem;box-shadow:none}.mlc-user-dropdown-selector-wrap .mlc-selector-panel:last-child{margin-bottom:0}.mlc-user-sidebar-selector-stack{display:grid;gap:.7rem}.mlc-user-sidebar-selector-stack .mlc-selector-panel{margin-bottom:0}.mlc-user-sidebar-selector-section{margin-top:0!important}
@media (max-width:767.98px){
    .user-topbar .mlc-currency-switcher,.user-topbar .mlc-language-switcher,.classic-topbar .mlc-currency-switcher,.classic-topbar .mlc-language-switcher{display:none!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher,.frontend-default-toolbar-stack .mlc-language-switcher,.modern-toolbar-stack .mlc-currency-switcher,.modern-toolbar-stack .mlc-language-switcher{display:block!important;width:100%!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-toggle,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-toggle,.modern-toolbar-stack .mlc-currency-switcher .dropdown-toggle,.modern-toolbar-stack .mlc-language-switcher .dropdown-toggle{width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:3.05rem!important;max-height:none!important;justify-content:flex-start!important;padding:.75rem .9rem!important;border-radius:1rem!important;gap:.7rem!important;overflow:visible!important;white-space:normal!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-switcher-full-label,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-switcher-full-label,.modern-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-switcher-full-label,.modern-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-switcher-full-label{display:inline-flex!important;font-size:.88rem!important;font-weight:800!important;color:#10233f!important;white-space:normal!important;overflow:visible!important;max-width:none!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-switcher-short-label,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-switcher-short-label,.modern-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-switcher-short-label,.modern-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-switcher-short-label{display:none!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-currency-current-flag,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-language-current-flag,.modern-toolbar-stack .mlc-currency-switcher .dropdown-toggle .mlc-currency-current-flag,.modern-toolbar-stack .mlc-language-switcher .dropdown-toggle .mlc-language-current-flag{display:inline-flex!important;width:2rem!important;min-width:2rem!important;max-width:2rem!important;height:2rem!important;align-items:center!important;justify-content:center!important;border-radius:.75rem!important;background:#fff!important;font-size:1.08rem!important;box-shadow:inset 0 0 0 1px rgba(148,163,184,.16)!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-toggle::after,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-toggle::after,.modern-toolbar-stack .mlc-currency-switcher .dropdown-toggle::after,.modern-toolbar-stack .mlc-language-switcher .dropdown-toggle::after{display:inline-block!important;margin-left:auto!important}
    .frontend-default-toolbar-stack .mlc-currency-switcher .dropdown-menu,.frontend-default-toolbar-stack .mlc-language-switcher .dropdown-menu,.modern-toolbar-stack .mlc-currency-switcher .dropdown-menu,.modern-toolbar-stack .mlc-language-switcher .dropdown-menu{position:static!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin-top:.45rem!important;box-shadow:0 14px 30px rgba(15,23,42,.12)!important}
}
