html.dark-style body,
html[data-theme="dark"] body {
    background-color: #1a1b27 !important;
}

/* Public navbar host must stay transparent in BOTH themes so the home
   slider can show through around the floating bar. */
.unified-navbar-host--public,
html.dark-style .unified-navbar-host--public,
html[data-theme="dark"] .unified-navbar-host--public {
    background: transparent !important;
}

/* Home page: float the public navbar over the slider (out of document flow)
   and start the carousel at the top so the image fills behind the bar —
   same look in light and dark mode. */
body:has(#myCarousel) .unified-navbar-host--public {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: transparent !important;
}

body:has(#myCarousel) #myCarousel {
    top: 0 !important;
}

/* Public home search — light + dark contrast (Select2 included) */
.search-form-wrapper #general_search_form,
.search-form-wrapper #general_search_form * {
    direction: ltr !important;
}

.search-form-wrapper #general_search_form .form-control,
.search-form-wrapper #general_search_form .form-select,
.search-form-wrapper #general_search_form input,
.search-form-wrapper #general_search_form select {
    text-align: left !important;
}

html.dark-style .search-form-wrapper .form-control,
html.dark-style .search-form-wrapper .form-select,
html.dark-style .search-form-wrapper input,
html.dark-style .search-form-wrapper select,
html.dark-style .search-form-wrapper .select2-container .select2-selection--single,
html[data-theme="dark"] .search-form-wrapper .form-control,
html[data-theme="dark"] .search-form-wrapper .form-select,
html[data-theme="dark"] .search-form-wrapper input,
html[data-theme="dark"] .search-form-wrapper select,
html[data-theme="dark"] .search-form-wrapper .select2-container .select2-selection--single {
    background-color: #2b2c40 !important;
    background: #2b2c40 !important;
    color: #e7e7ff !important;
    border-color: #696cff !important;
}

html.dark-style .search-form-wrapper .select2-selection__rendered,
html[data-theme="dark"] .search-form-wrapper .select2-selection__rendered {
    color: #e7e7ff !important;
    background: transparent !important;
}

html.dark-style .search-form-wrapper .select2-selection__placeholder,
html[data-theme="dark"] .search-form-wrapper .select2-selection__placeholder {
    color: #a1a9c5 !important;
}

html.dark-style .carousel,
html.dark-style #myCarousel,
html.dark-style .carousel-inner,
html[data-theme="dark"] .carousel,
html[data-theme="dark"] #myCarousel,
html[data-theme="dark"] .carousel-inner {
    background-color: #1a1b27 !important;
}

/* bootstrap-dark.css is an RTL build: it floats carousel items right with a
   negative left margin, which shoves the active slide off-screen on our LTR
   pages (slider looks blank in dark mode). Force LTR positioning back. */
html.dark-style .carousel-item,
html[data-theme="dark"] .carousel-item {
    float: left !important;
    margin-right: -100% !important;
    margin-left: 0 !important;
}

/* Unified guest/public navbar — load LAST so it wins over dashboard + web CSS */
.unified-navbar-host {
    position: relative;
    z-index: 1080;
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.unified-navbar-host--public {
    position: sticky !important;
    top: 0 !important;
    padding: 0.75rem 1rem 0 !important;
    background: transparent !important;
    z-index: 1080 !important;
}

.unified-navbar-host .unified-app-navbar,
.unified-navbar-host .unified-guest-navbar,
#layout-navbar.unified-app-navbar,
#layout-navbar.unified-guest-navbar {
    box-sizing: border-box !important;
    min-height: 64px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1080 !important;
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.unified-navbar-host--public .unified-app-navbar,
.unified-navbar-host--public .unified-guest-navbar,
.unified-navbar-host--public #layout-navbar {
    width: min(1320px, calc(100% - 0.5rem)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    /* One closed-bar height at every width */
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0.4rem 1rem !important;
    border-radius: 0.9rem !important;
    box-shadow: 0 4px 18px rgba(67, 89, 113, 0.12) !important;
    border: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Allow height to grow only while the hamburger menu is open */
.unified-navbar-host--public #layout-navbar:has(.unified-guest-collapse.show),
.unified-navbar-host--public .unified-app-navbar:has(.unified-guest-collapse.show),
.unified-navbar-host--public .unified-guest-navbar:has(.unified-guest-collapse.show) {
    height: auto !important;
    max-height: none !important;
}

html:not(.dark-style):not([data-theme="dark"]) .unified-navbar-host--public .unified-app-navbar,
html:not(.dark-style):not([data-theme="dark"]) .unified-navbar-host--public .unified-guest-navbar,
html:not(.dark-style):not([data-theme="dark"]) .unified-navbar-host--public #layout-navbar,
html.light-style .unified-navbar-host--public .unified-app-navbar,
html.light-style .unified-navbar-host--public .unified-guest-navbar,
html.light-style .unified-navbar-host--public #layout-navbar {
    background: #fff !important;
    background-color: #fff !important;
}

.unified-navbar-host .unified-app-navbar *,
.unified-navbar-host .unified-guest-navbar *,
#layout-navbar.unified-app-navbar *,
#layout-navbar.unified-guest-navbar * {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.unified-navbar-topbar {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 0.35rem !important;
    width: 100% !important;
}

.unified-navbar-topbar .unified-guest-actions {
    margin-left: auto !important;
}

.unified-navbar-logo {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    text-decoration: none !important;
}

.unified-navbar-logo img {
    display: block !important;
    width: 220px !important;
    height: 58px !important;
    object-fit: contain !important;
}

/* Public navbar logo: default size; narrower max-width below 535px */
.unified-navbar-host--public .unified-navbar-logo {
    flex: 0 0 auto !important;
    min-width: auto !important;
}

.unified-navbar-host--public .unified-navbar-logo img {
    width: auto !important;
    max-width: 200px !important;
    height: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

.unified-navbar-host .unified-guest-collapse,
#layout-navbar .unified-guest-collapse {
    flex: 1 1 auto !important;
    flex-basis: auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 676px) {
    .unified-navbar-host--public .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host--public .unified-guest-collapse.collapsing,
    .unified-navbar-host--public #layout-navbar .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host--public #layout-navbar .unified-guest-collapse.collapsing {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
}

@media (min-width: 1200px) {
    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapsing,
    .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar .unified-guest-collapse.collapsing {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
}

.unified-guest-links,
.unified-guest-actions {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.2rem !important;
    overflow: visible !important;
}

.unified-guest-links {
    margin-right: auto !important;
}

.unified-guest-actions {
    margin-left: auto !important;
    gap: 0.35rem !important;
}

.unified-guest-links > li,
.unified-guest-actions > li {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.unified-guest-link,
.unified-guest-dropdown-toggle,
.unified-guest-icon-btn,
.unified-login-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    border: 0 !important;
    background: transparent !important;
    color: #566a7f !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    border-radius: 0.55rem !important;
    padding: 0.55rem 0.75rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.unified-guest-link:hover,
.unified-guest-link:focus,
.unified-guest-link.is-active,
.unified-guest-dropdown-toggle:hover,
.unified-guest-dropdown-toggle:focus,
.unified-guest-dropdown.is-open > .unified-guest-dropdown-toggle {
    color: #696cff !important;
    background: rgba(105, 108, 255, 0.1) !important;
}

.unified-guest-dropdown-toggle i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

.unified-guest-icon-btn {
    width: 2.25rem !important;
    height: 2.25rem !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
}

/* Home/public navbar only: even gaps + theme hover matching language */
.unified-navbar-host--public .unified-guest-actions {
    gap: 0.55rem !important;
}

.unified-navbar-host--public .unified-guest-actions > .dropdown-notifications,
.unified-navbar-host--public .unified-guest-actions > .dropdown-notifications.me-3,
.unified-navbar-host--public .unified-guest-actions > .dropdown-notifications.me-xl-1 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn,
.unified-navbar-host--public .dropdown-style-switcher > .unified-guest-icon-btn {
    width: auto !important;
    min-width: 2.35rem !important;
    height: auto !important;
    padding: 0.45rem 0.6rem !important;
    border-radius: 0.55rem !important;
    color: #566a7f !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:hover,
.unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:focus,
.unified-navbar-host--public #layout-navbar .dropdown-style-switcher.show > .unified-guest-icon-btn,
.unified-navbar-host--public .dropdown-style-switcher > .unified-guest-icon-btn:hover,
.unified-navbar-host--public .dropdown-style-switcher > .unified-guest-icon-btn:focus,
.unified-navbar-host--public .dropdown-style-switcher.show > .unified-guest-icon-btn {
    color: #696cff !important;
    background: rgba(105, 108, 255, 0.1) !important;
}

html.dark-style .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn,
html[data-theme="dark"] .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn {
    color: #cfd3ec !important;
}

html.dark-style .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:hover,
html.dark-style .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:focus,
html.dark-style .unified-navbar-host--public #layout-navbar .dropdown-style-switcher.show > .unified-guest-icon-btn,
html[data-theme="dark"] .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:hover,
html[data-theme="dark"] .unified-navbar-host--public #layout-navbar .dropdown-style-switcher > .unified-guest-icon-btn:focus,
html[data-theme="dark"] .unified-navbar-host--public #layout-navbar .dropdown-style-switcher.show > .unified-guest-icon-btn {
    color: #fff !important;
    background: rgba(105, 108, 255, 0.22) !important;
}

.unified-login-link {
    color: #696cff !important;
}

a.btn.btn-primary.unified-signup-link,
.unified-signup-link {
    white-space: nowrap !important;
    border-radius: 0.55rem !important;
    padding: 0.55rem 0.9rem !important;
    font-weight: 650 !important;
    text-decoration: none !important;
    background-color: #696cff !important;
    border-color: #696cff !important;
    color: #fff !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
    font-size: 0.92rem !important;
}

a.btn.btn-primary.unified-signup-link:hover,
.unified-signup-link:hover {
    background-color: #5f61e6 !important;
    border-color: #5f61e6 !important;
    color: #fff !important;
}

.unified-navbar-toggler {
    margin-left: auto !important;
    border: 0 !important;
    background: transparent !important;
    color: #566a7f !important;
    box-shadow: none !important;
    display: none !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.55rem !important;
}

.unified-navbar-toggler i {
    font-size: 1.65rem !important;
}

.unified-guest-dropdown {
    position: relative !important;
}

.unified-guest-dropdown.is-open > .unified-guest-dropdown-toggle {
    color: #696cff !important;
    background: rgba(105, 108, 255, 0.1) !important;
}

.unified-navbar-host--public,
.unified-navbar-host--public .unified-app-navbar,
.unified-navbar-host--public .unified-guest-navbar,
.unified-navbar-host--public #layout-navbar,
.unified-navbar-host--public .unified-guest-collapse,
.unified-navbar-host--public .unified-guest-links,
.unified-navbar-host--public .unified-guest-dropdown {
    overflow: visible !important;
}

.unified-categories-menu {
    display: none !important;
    list-style: none !important;
    position: fixed !important;
    z-index: 5000 !important;
    margin: 0 !important;
    padding: 0.35rem !important;
    min-width: 17rem !important;
    width: max-content !important;
    max-width: min(22rem, calc(100vw - 2rem)) !important;
    max-height: min(65vh, 22rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(67, 89, 113, 0.1) !important;
    border-radius: 0.9rem !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(67, 89, 113, 0.18) !important;
}

/* Open state works even when the menu is portaled to <body> */
.unified-categories-menu.is-open,
.unified-guest-dropdown.is-open > .unified-categories-menu {
    display: block !important;
}

.unified-categories-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.unified-categories-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 0.55rem !important;
    padding: 0.45rem 0.65rem !important;
    color: #566a7f !important;
    font-weight: 520 !important;
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    text-transform: none !important;
    background: transparent !important;
}

.unified-categories-menu .dropdown-item:hover,
.unified-categories-menu .dropdown-item:focus {
    background: rgba(105, 108, 255, 0.12) !important;
    color: #696cff !important;
    transform: none !important;
}

.unified-categories-menu .dropdown-item i {
    width: 1.6rem !important;
    height: 1.6rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.45rem !important;
    background: rgba(67, 89, 113, 0.06) !important;
    color: #8592a3 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.unified-guest-links--spacer {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    pointer-events: none !important;
}

/* Notifications text label: hamburger only (icon stays in top bar) */
.dropdown-notifications .unified-guest-menu-label {
    display: none !important;
}

/* Badge sits on the top-right of the bell, not beside it */
.unified-navbar-host .dropdown-notifications > .nav-link,
#layout-navbar .dropdown-notifications > .nav-link {
    position: relative !important;
    overflow: visible !important;
}

.unified-navbar-topbar .dropdown-notifications > .nav-link,
.unified-guest-actions .dropdown-notifications > .nav-link,
#layout-navbar .navbar-nav-right .dropdown-notifications > .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    padding: 0 !important;
}

.unified-navbar-host .dropdown-notifications > .nav-link .badge-notifications,
#layout-navbar .dropdown-notifications > .nav-link .badge-notifications {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    min-width: 1.05rem !important;
    height: 1.05rem !important;
    padding: 0 0.28rem !important;
    font-size: 0.625rem !important;
    line-height: 1.05rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Public navbar: bar = mobile top row, menu = hamburger, desktop = wide row */
.unified-guest-links--bar,
.unified-guest-links--menu {
    display: none !important;
}

.unified-guest-links--desktop,
.unified-guest-links--menu.unified-guest-links--auth {
    display: flex !important;
}

/* Icon-only in the bar; Theme label stays visible when moved into hamburger extras */
.unified-navbar-topbar .unified-guest-actions .unified-guest-menu-label,
.unified-guest-actions > .dropdown-style-switcher .unified-guest-menu-label {
    display: none !important;
}

.unified-navbar-host .nav-dd-lang-toggle,
#layout-navbar .nav-dd-lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.45rem 0.6rem !important;
    border-radius: 0.55rem !important;
    color: #566a7f !important;
    font-weight: 650 !important;
    text-decoration: none !important;
}

.unified-navbar-host .dropdown-toggle::after,
#layout-navbar.unified-app-navbar .dropdown-toggle::after {
    display: none !important;
}

.unified-navbar-host .nav-link,
#layout-navbar.unified-app-navbar .nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

html.dark-style .unified-navbar-host--public .unified-guest-navbar,
html.dark-style .unified-navbar-host--public .unified-app-navbar,
html.dark-style .unified-navbar-host--public #layout-navbar,
html.dark-style #layout-navbar.unified-app-navbar,
html.dark-style #layout-navbar.unified-guest-navbar,
html[data-theme="dark"] .unified-navbar-host--public .unified-guest-navbar,
html[data-theme="dark"] .unified-navbar-host--public .unified-app-navbar,
html[data-theme="dark"] .unified-navbar-host--public #layout-navbar,
html[data-theme="dark"] #layout-navbar.unified-app-navbar,
html[data-theme="dark"] #layout-navbar.unified-guest-navbar {
    background: #2b2c40 !important;
    background-color: #2b2c40 !important;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.34) !important;
}

html.dark-style .unified-guest-link,
html.dark-style .unified-guest-dropdown-toggle,
html.dark-style .unified-guest-icon-btn,
html.dark-style .unified-navbar-toggler,
html.dark-style .unified-navbar-host .nav-dd-lang-toggle,
html.dark-style #layout-navbar .unified-guest-link,
html.dark-style #layout-navbar .unified-guest-dropdown-toggle,
html.dark-style #layout-navbar .unified-guest-icon-btn,
html.dark-style #layout-navbar .nav-dd-lang-toggle,
html[data-theme="dark"] .unified-guest-link,
html[data-theme="dark"] .unified-guest-dropdown-toggle,
html[data-theme="dark"] .unified-guest-icon-btn,
html[data-theme="dark"] .unified-navbar-toggler,
html[data-theme="dark"] .unified-navbar-host .nav-dd-lang-toggle,
html[data-theme="dark"] #layout-navbar .unified-guest-link,
html[data-theme="dark"] #layout-navbar .unified-guest-dropdown-toggle,
html[data-theme="dark"] #layout-navbar .unified-guest-icon-btn,
html[data-theme="dark"] #layout-navbar .nav-dd-lang-toggle {
    color: #cfd3ec !important;
}

html.dark-style .unified-guest-link:hover,
html.dark-style .unified-guest-link:focus,
html.dark-style .unified-guest-link.is-active,
html.dark-style .unified-guest-dropdown-toggle:hover,
html.dark-style .unified-guest-dropdown-toggle:focus,
html.dark-style .unified-guest-dropdown.show > .unified-guest-dropdown-toggle,
html.dark-style .unified-guest-dropdown.is-open > .unified-guest-dropdown-toggle,
html.dark-style #layout-navbar .unified-guest-link:hover,
html.dark-style #layout-navbar .unified-guest-link:focus,
html.dark-style #layout-navbar .unified-guest-link.is-active,
html.dark-style #layout-navbar .unified-guest-dropdown-toggle:hover,
html.dark-style #layout-navbar .unified-guest-dropdown-toggle:focus,
html[data-theme="dark"] .unified-guest-link:hover,
html[data-theme="dark"] .unified-guest-link:focus,
html[data-theme="dark"] .unified-guest-link.is-active,
html[data-theme="dark"] .unified-guest-dropdown-toggle:hover,
html[data-theme="dark"] .unified-guest-dropdown-toggle:focus,
html[data-theme="dark"] .unified-guest-dropdown.show > .unified-guest-dropdown-toggle,
html[data-theme="dark"] .unified-guest-dropdown.is-open > .unified-guest-dropdown-toggle,
html[data-theme="dark"] #layout-navbar .unified-guest-link:hover,
html[data-theme="dark"] #layout-navbar .unified-guest-link:focus,
html[data-theme="dark"] #layout-navbar .unified-guest-link.is-active,
html[data-theme="dark"] #layout-navbar .unified-guest-dropdown-toggle:hover,
html[data-theme="dark"] #layout-navbar .unified-guest-dropdown-toggle:focus {
    color: #fff !important;
    background: rgba(105, 108, 255, 0.22) !important;
}

html.dark-style .unified-login-link,
html.dark-style #layout-navbar .unified-login-link,
html[data-theme="dark"] .unified-login-link,
html[data-theme="dark"] #layout-navbar .unified-login-link {
    color: #8b8dff !important;
}

html.dark-style .unified-categories-menu,
html.dark-style #layout-navbar .unified-categories-menu,
html.dark-style #layout-navbar .dropdown-menu.nav-dd,
html.dark-style #layout-navbar .dropdown-styles,
html[data-theme="dark"] .unified-categories-menu,
html[data-theme="dark"] #layout-navbar .unified-categories-menu,
html[data-theme="dark"] #layout-navbar .dropdown-menu.nav-dd,
html[data-theme="dark"] #layout-navbar .dropdown-styles {
    background: #2b2c40 !important;
    background-color: #2b2c40 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35) !important;
}

html.dark-style .unified-categories-menu .dropdown-item,
html.dark-style #layout-navbar .unified-categories-menu .dropdown-item,
html.dark-style #layout-navbar .dropdown-menu.nav-dd .dropdown-item,
html.dark-style #layout-navbar .dropdown-styles .dropdown-item,
html[data-theme="dark"] .unified-categories-menu .dropdown-item,
html[data-theme="dark"] #layout-navbar .unified-categories-menu .dropdown-item,
html[data-theme="dark"] #layout-navbar .dropdown-menu.nav-dd .dropdown-item,
html[data-theme="dark"] #layout-navbar .dropdown-styles .dropdown-item {
    color: #cfd3ec !important;
}

html.dark-style .unified-categories-menu .dropdown-item:hover,
html.dark-style .unified-categories-menu .dropdown-item:focus,
html.dark-style #layout-navbar .dropdown-menu.nav-dd .dropdown-item:hover,
html.dark-style #layout-navbar .dropdown-menu.nav-dd .dropdown-item:focus,
html.dark-style #layout-navbar .dropdown-styles .dropdown-item:hover,
html.dark-style #layout-navbar .dropdown-styles .dropdown-item:focus,
html[data-theme="dark"] .unified-categories-menu .dropdown-item:hover,
html[data-theme="dark"] .unified-categories-menu .dropdown-item:focus,
html[data-theme="dark"] #layout-navbar .dropdown-menu.nav-dd .dropdown-item:hover,
html[data-theme="dark"] #layout-navbar .dropdown-menu.nav-dd .dropdown-item:focus,
html[data-theme="dark"] #layout-navbar .dropdown-styles .dropdown-item:hover,
html[data-theme="dark"] #layout-navbar .dropdown-styles .dropdown-item:focus {
    color: #fff !important;
    background: rgba(105, 108, 255, 0.18) !important;
}

html.dark-style .unified-categories-menu .dropdown-item i,
html[data-theme="dark"] .unified-categories-menu .dropdown-item i {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cfd3ec !important;
}

@media (min-width: 676px) {
    .unified-navbar-host--public #layout-navbar.unified-app-navbar,
    .unified-navbar-host--public #layout-navbar.unified-guest-navbar,
    .unified-navbar-host--public .unified-app-navbar,
    .unified-navbar-host--public .unified-guest-navbar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar {
        display: contents !important;
    }

    .unified-navbar-host--public .unified-navbar-logo {
        order: 1 !important;
        flex: 0 0 auto !important;
    }

    .unified-navbar-host--public .unified-guest-collapse {
        order: 2 !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions {
        order: 3 !important;
        margin-left: auto !important;
    }

    .unified-guest-links--bar,
    .unified-guest-links--menu:not(.unified-guest-links--auth) {
        display: none !important;
    }

    .unified-guest-links--desktop,
    .unified-guest-links--menu.unified-guest-links--auth {
        display: flex !important;
    }

    .unified-navbar-host--public .unified-navbar-toggler {
        display: none !important;
    }

    .unified-navbar-host--public .unified-guest-collapse {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: auto !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .unified-navbar-host--public .unified-guest-links,
    .unified-navbar-host--public .unified-guest-actions {
        width: auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    .unified-navbar-host--public .unified-guest-links > li,
    .unified-navbar-host--public .unified-guest-actions > li {
        width: auto !important;
    }

    .unified-navbar-host--public .unified-guest-link,
    .unified-navbar-host--public .unified-guest-dropdown-toggle,
    .unified-navbar-host--public .unified-login-link,
    .unified-navbar-host--public .unified-guest-actions .nav-dd-lang-toggle {
        width: auto !important;
        min-height: auto !important;
        justify-content: center !important;
        font-size: 0.92rem !important;
        padding: 0.55rem 0.75rem !important;
    }

    .unified-navbar-host--public .unified-guest-actions {
        gap: 0.55rem !important;
    }

    .unified-navbar-host--public .unified-guest-actions .dropdown-style-switcher > .unified-guest-icon-btn {
        width: auto !important;
        min-width: 2.35rem !important;
        height: auto !important;
        padding: 0.45rem 0.6rem !important;
    }
}

/* Wide top bar (≥821px): Help/Contact labels only */
.unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--help i,
.unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--contact i {
    display: none !important;
}

@media (max-width: 820.98px) {
    .unified-navbar-host--public .unified-guest-actions .unified-guest-link.unified-guest-dropdown-toggle span {
        display: none !important;
    }

    .unified-navbar-host--public .unified-guest-actions .unified-guest-link.unified-guest-dropdown-toggle {
        width: 2.25rem !important;
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    /* Top bar only: Help/Contact as icons (hamburger keeps text labels) */
    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--help span,
    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--contact span {
        display: none !important;
    }

    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--help,
    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--contact {
        width: 2.25rem !important;
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--help i,
    .unified-navbar-host--public .unified-guest-links--desktop .unified-guest-link--contact i {
        display: inline-flex !important;
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }
}

@media (max-width: 675.98px) {
    .unified-navbar-host--public .unified-guest-actions .unified-guest-link.unified-guest-dropdown-toggle {
        width: 2.25rem !important;
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        min-height: 2.25rem !important;
    }

    /* Keep the same closed bar height as ≥676px; only the open menu may grow */
    .unified-navbar-host--public {
        padding: 0.75rem 1rem 0 !important;
        width: 100% !important;
    }

    .unified-navbar-host--public #layout-navbar.unified-app-navbar,
    .unified-navbar-host--public #layout-navbar.unified-guest-navbar,
    .unified-navbar-host--public .unified-app-navbar,
    .unified-navbar-host--public .unified-guest-navbar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 0 !important;
        height: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        padding: 0.4rem 1rem !important;
    }

    .unified-navbar-host--public #layout-navbar:has(.unified-guest-collapse.show),
    .unified-navbar-host--public .unified-app-navbar:has(.unified-guest-collapse.show),
    .unified-navbar-host--public .unified-guest-navbar:has(.unified-guest-collapse.show) {
        height: auto !important;
        max-height: none !important;
        /* Top chrome stays ≥ closed bar; only the menu panel adds height */
        min-height: 64px !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    /* Fixed top-row height; closed collapse must not leave empty space under the bar */
    .unified-navbar-host--public .unified-navbar-topbar {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.25rem !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        height: calc(64px - 0.8rem) !important;
        min-height: calc(64px - 0.8rem) !important;
        max-height: calc(64px - 0.8rem) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .unified-navbar-host--public .unified-navbar-logo {
        flex: 0 0 auto !important;
        min-width: auto !important;
    }

    .unified-navbar-host--public .unified-navbar-toggler {
        display: inline-flex !important;
        margin-left: 0 !important;
        width: 2.25rem !important;
        height: 2.25rem !important;
        min-width: 2.25rem !important;
        flex: 0 0 auto !important;
    }

    .unified-navbar-host--public #layout-navbar .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host--public .unified-guest-collapse.collapse:not(.show),
    .unified-navbar-host--public #layout-navbar .unified-guest-collapse.collapsing,
    .unified-navbar-host--public .unified-guest-collapse.collapsing {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        flex: 0 0 0 !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        flex-basis: 0 !important;
    }

    .unified-navbar-host--public #layout-navbar .unified-guest-collapse.show,
    .unified-navbar-host--public .unified-guest-collapse.show {
        display: flex !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0.2rem !important;
        margin-top: 0.35rem !important;
        padding: 0.65rem 0.15rem 0.35rem !important;
        border-top: 1px solid rgba(67, 89, 113, 0.1) !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    .unified-guest-links--desktop,
    .unified-guest-links--menu.unified-guest-links--auth {
        display: none !important;
    }

    /* Match logged-in mobile: Book/Help/Contact live in hamburger, not top bar */
    .unified-guest-links--bar {
        display: none !important;
    }

    .unified-navbar-host--public .unified-guest-collapse.show .unified-guest-links--menu {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 0.2rem !important;
    }

    .unified-navbar-host--public .unified-guest-collapse.show .unified-guest-links--menu > li {
        width: 100% !important;
    }

    .unified-navbar-host--public .unified-guest-collapse.show .unified-guest-link,
    .unified-navbar-host--public .unified-guest-collapse.show .unified-guest-dropdown-toggle {
        width: 100% !important;
        justify-content: flex-start !important;
        font-size: 1rem !important;
        padding: 0.7rem 0.85rem !important;
        min-height: 2.75rem !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions {
        width: auto !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.35rem !important;
        padding-top: 0 !important;
        margin-left: auto !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions > li {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-guest-icon-btn,
    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .nav-dd-lang-toggle {
        width: 2.25rem !important;
        min-width: 2.25rem !important;
        height: 2.25rem !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-login-link,
    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-signup-link {
        flex-shrink: 0 !important;
        font-size: 0.92rem !important;
        line-height: 1.2 !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-login-link {
        padding: 0.55rem 0.75rem !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-signup-link {
        padding: 0.55rem 0.9rem !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .dropdown-user,
    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .dropdown-notifications {
        margin-left: auto !important;
    }

    .unified-categories-menu,
    #layout-navbar .unified-categories-menu {
        position: fixed !important;
        width: min(22rem, calc(100vw - 1.5rem)) !important;
        max-width: calc(100vw - 1.5rem) !important;
        max-height: min(55vh, 18rem) !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-collapse.show,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-collapse.show {
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 468.98px) {
    /* Theme/language (moved by JS) render below Contact in hamburger extras */
    .unified-navbar-host--public .unified-guest-menu-extras {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0.35rem 0 0 !important;
        padding: 0.35rem 0 0 !important;
        border-top: 1px solid rgba(67, 89, 113, 0.1) !important;
        gap: 0.2rem !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras:empty,
    .unified-navbar-host--public .unified-guest-menu-extras[hidden] {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras > .dropdown-style-switcher,
    .unified-navbar-host--public .unified-guest-menu-extras > .nav-dd-lang,
    .unified-navbar-host--public .unified-guest-menu-extras > .dropdown-notifications,
    .unified-navbar-host--public .unified-guest-menu-extras > .unified-quick-links {
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn,
    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 2.75rem !important;
        padding: 0.7rem 0.85rem !important;
        border-radius: 0.55rem !important;
        color: #566a7f !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        line-height: 1.25 !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:hover,
    .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:focus,
    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:hover,
    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:focus {
        color: #696cff !important;
        background: rgba(105, 108, 255, 0.1) !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-menu-label,
    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-code,
    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-caret {
        display: inline !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-flag {
        font-size: 1.15rem !important;
        line-height: 1 !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-menu {
        z-index: 2100 !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras {
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn,
    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle {
        color: #cfd3ec !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:hover,
    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:focus,
    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:hover,
    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:focus,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:hover,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .unified-guest-icon-btn:focus,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:hover,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .nav-dd-lang-toggle:focus {
        color: #fff !important;
        background: rgba(105, 108, 255, 0.22) !important;
    }
}

@media (max-width: 534.98px) {
    .unified-navbar-host--public {
        padding: 0.75rem 0.45rem 0 !important;
    }

    .unified-navbar-host--public #layout-navbar.unified-app-navbar,
    .unified-navbar-host--public #layout-navbar.unified-guest-navbar,
    .unified-navbar-host--public .unified-app-navbar,
    .unified-navbar-host--public .unified-guest-navbar {
        padding: 0.4rem 0.55rem !important;
    }

    .unified-navbar-host--public #layout-navbar:has(.unified-guest-collapse.show),
    .unified-navbar-host--public .unified-app-navbar:has(.unified-guest-collapse.show),
    .unified-navbar-host--public .unified-guest-navbar:has(.unified-guest-collapse.show) {
        padding: 0.4rem 0.55rem !important;
    }

    .unified-navbar-host--public .unified-navbar-logo img {
        width: auto !important;
        max-width: 130px !important;
        height: 48px !important;
        max-height: 48px !important;
        object-fit: contain !important;
    }
}

@media (max-width: 445.98px) {
    /* Free horizontal space with gaps only — Login/Sign up keep ≤675 sizes */
    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions {
        gap: 0.15rem !important;
    }

    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .unified-guest-icon-btn,
    .unified-navbar-host--public .unified-navbar-topbar > .unified-guest-actions .nav-dd-lang-toggle,
    .unified-navbar-host--public .unified-navbar-toggler {
        width: 2.1rem !important;
        min-width: 2.1rem !important;
        height: 2.1rem !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        list-style: none !important;
        margin: 0.35rem 0 0 !important;
        padding: 0.35rem 0 0 !important;
        border-top: 1px solid rgba(67, 89, 113, 0.1) !important;
        gap: 0.2rem !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras:empty {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications,
    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links {
        width: 100% !important;
        margin: 0 !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link,
    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        min-height: 2.75rem !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0.7rem 0.85rem !important;
        border-radius: 0.55rem !important;
        color: #566a7f !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        justify-content: flex-start !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link::after,
    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link::after {
        display: none !important;
    }

    /* Hamburger extras: text labels only (no icons) */
    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link > i,
    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link > i {
        display: none !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link span:not(.badge),
    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link .unified-guest-menu-label {
        display: inline !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link {
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        padding: 0.7rem 0.85rem !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link .badge-notifications {
        position: static !important;
        transform: none !important;
        margin-left: auto !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras {
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }

    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link,
    html.dark-style .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .dropdown-notifications > .nav-link,
    html[data-theme="dark"] .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link {
        color: #cfd3ec !important;
    }
}

@media (max-width: 380.98px) {
    /* No Login/Sign up size/padding overrides — same styles as ≤675 / ≤445 */
    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link span {
        display: inline !important;
    }

    .unified-navbar-host--public .unified-guest-menu-extras .unified-quick-links > .unified-guest-link > i {
        display: none !important;
    }
}

/* ------------------------------------------------------------------
   Dashboard / app pages (logged-in, NOT public_context):
   Keep the app navbar fixed and reserve one consistent space below it.
   ------------------------------------------------------------------ */

/* Helpers.js injects `.layout-page { padding-top: <navbarHeight>px }`.
   We reserve the offset on .content-wrapper instead, so clear it here. */
html.layout-navbar-fixed .layout-content-navbar .layout-page,
html.layout-menu-fixed .layout-content-navbar .layout-page {
    padding-top: 0 !important;
}

/* Theme blur spacer over the fixed navbar area — we handle spacing below. */
html.layout-navbar-fixed .layout-content-navbar .layout-page:before,
html.layout-menu-fixed .layout-content-navbar .layout-page:before {
    content: none !important;
    display: none !important;
    height: 0 !important;
}

html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public),
html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) {
    position: fixed !important;
    z-index: 1080 !important;
    top: 0.35rem !important;
    right: 0 !important;
    left: 16.25rem !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Keep navbar/menu under the modal backdrop so the dim overlay covers them */
body.modal-open .unified-navbar-host:not(.unified-navbar-host--public),
html.layout-navbar-fixed body.modal-open .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public),
html.layout-menu-fixed body.modal-open .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) {
    z-index: 1030 !important;
}

body.modal-open .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar,
body.modal-open .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar,
body.modal-open .unified-navbar-host:not(.unified-navbar-host--public) .unified-app-navbar {
    z-index: auto !important;
}

body.modal-open .layout-menu {
    z-index: 1030 !important;
}

html.layout-menu-collapsed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) {
    left: 5.25rem !important;
}

/* Only the layout-page content-wrapper reserves space for the fixed navbar.
   Nested .content-wrapper (e.g. Profile) must not get another 4.75rem. */
html.layout-navbar-fixed .layout-content-navbar .layout-page > .content-wrapper,
html.layout-menu-fixed .layout-content-navbar .layout-page > .content-wrapper {
    padding-top: 4.25rem !important;
}

html.layout-navbar-fixed .layout-content-navbar .content-wrapper .content-wrapper,
html.layout-menu-fixed .layout-content-navbar .content-wrapper .content-wrapper {
    padding-top: 0 !important;
}

/* Keep a small consistent gap under the fixed navbar across app pages */
html.layout-navbar-fixed .layout-content-navbar .layout-page > .content-wrapper > .container-p-y:not([class^="pt-"]):not([class*=" pt-"]),
html.layout-menu-fixed .layout-content-navbar .layout-page > .content-wrapper > .container-p-y:not([class^="pt-"]):not([class*=" pt-"]) {
    padding-top: 0.75rem !important;
}

html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached,
html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    min-height: 64px !important;
    max-width: none !important;
    margin-left: 1.625rem !important;
    margin-right: 1.625rem !important;
    margin-top: 0 !important;
    width: calc(100% - 1.625rem * 2) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    border-radius: 0.9rem !important;
    overflow: visible !important;
    box-shadow: 0 4px 18px rgba(67, 89, 113, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

html.dark-style .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
html.dark-style .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached,
html[data-theme="dark"] .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
html[data-theme="dark"] .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached {
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.34) !important;
}

html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse,
html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse,
.unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse,
.unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapse:not(.show),
.unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapsing {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
}

.unified-navbar-host:not(.unified-navbar-host--public) .unified-navbar-toggler {
    display: none !important;
}

.unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions {
    flex-wrap: nowrap !important;
    width: auto !important;
    margin-left: auto !important;
    gap: 0.2rem !important;
}

.unified-navbar-host:not(.unified-navbar-host--public) .layout-menu-toggle .nav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0 !important;
    color: inherit !important;
}

.unified-navbar-host:not(.unified-navbar-host--public) .layout-menu-toggle .nav-link i {
    font-size: 1.55rem !important;
}

@media (max-width: 991.98px) {
    /* Keep dashboard actions on one row; drop Quick Links label */
    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions .unified-guest-link span {
        display: none !important;
    }

    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions .unified-guest-link,
    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions .nav-dd-lang-toggle,
    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions .unified-guest-icon-btn {
        padding: 0.45rem !important;
        min-width: 2.4rem !important;
        justify-content: center !important;
    }

    .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-actions .avatar {
        width: 2.35rem !important;
        height: 2.35rem !important;
    }

    .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
    .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached {
        flex-wrap: nowrap !important;
        min-height: 3.75rem !important;
        align-items: center !important;
    }
}

@media (min-width: 1200px) {
    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-navbar-toggler,
    html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-navbar-toggler {
        display: none !important;
    }

    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapse:not(.show),
    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapsing,
    html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapse:not(.show),
    html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .unified-guest-collapse.collapsing {
        display: flex !important;
        height: auto !important;
        visibility: visible !important;
        overflow: visible !important;
    }
}

@media (max-width: 1199.98px) {
    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public),
    html.layout-menu-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) {
        top: 0.35rem !important;
        left: 0 !important;
        right: 0 !important;
    }
}

@media (max-width: 991.98px) {
    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) #layout-navbar.layout-navbar,
    html.layout-navbar-fixed .layout-content-navbar .unified-navbar-host:not(.unified-navbar-host--public) .layout-navbar.navbar-detached {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        width: calc(100% - 1rem * 2) !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}
