/* ==================== HOME HERO COMMAND REDESIGN ==================== */
body:not(.admin-page) .hero.hero-command {
    min-height: auto;
    padding: 5.2rem 1rem 0.85rem;
}

body:not(.admin-page) .hero.hero-command::after {
    height: 42px;
    background: linear-gradient(to top, rgba(3, 8, 22, 0.92), transparent);
}

body:not(.admin-page) .hero.hero-command .hero-layout {
    max-width: 1160px;
    display: grid;
    gap: 0.7rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border-radius: 30px;
    border: 1px solid rgba(110, 229, 255, 0.18);
    background:
        radial-gradient(circle at 85% 15%, rgba(93, 232, 255, 0.13), transparent 22%),
        radial-gradient(circle at 12% 85%, rgba(0, 132, 255, 0.1), transparent 28%),
        linear-gradient(145deg, rgba(7, 17, 38, 0.92), rgba(4, 11, 25, 0.84));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

body:not(.admin-page) .hero.hero-command .hero-command-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(93, 232, 255, 0.04), transparent);
    pointer-events: none;
}

body:not(.admin-page) .hero.hero-command .hero-command-main,
body:not(.admin-page) .hero.hero-command .hero-command-brand,
body:not(.admin-page) .hero.hero-command .hero-command-rail {
    position: relative;
    z-index: 1;
}

body:not(.admin-page) .hero.hero-command .hero-command-main {
    min-width: 0;
}

body:not(.admin-page) .hero.hero-command .hero-command-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 229, 255, 0.25);
    background: rgba(0, 180, 255, 0.08);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: rgba(187, 228, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

body:not(.admin-page) .hero.hero-command .hero-command-title {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
    font-weight: 900;
}

body:not(.admin-page) .hero.hero-command .hero-command-title span {
    display: block;
}

body:not(.admin-page) .hero.hero-command .hero-command-title span:first-child {
    color: #d9eaff;
}

body:not(.admin-page) .hero.hero-command .hero-command-title span:last-child {
    background: linear-gradient(135deg, #7ee8ff 0%, #00b4ff 55%, #cfffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
    margin: 0 0 0.85rem;
    max-width: 620px;
    color: #8eaac5;
    font-size: 0.97rem;
    line-height: 1.7;
}

body:not(.admin-page) .hero.hero-command .hero-command-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 229, 255, 0.22);
    background: rgba(5, 14, 30, 0.7);
    color: #dff8ff;
    font-size: 0.79rem;
    font-weight: 700;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand {
    padding: 0.95rem;
    border-radius: 24px;
    border: 1px solid rgba(110, 229, 255, 0.14);
    background: linear-gradient(145deg, rgba(5, 13, 29, 0.86), rgba(8, 18, 39, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-logo-box {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 20px;
    border: 1px solid rgba(110, 229, 255, 0.24);
    background: linear-gradient(145deg, rgba(8, 22, 44, 0.95), rgba(7, 17, 36, 0.72));
}

body:not(.admin-page) .hero.hero-command .hero-command-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(93, 232, 255, 0.18));
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-copy {
    min-width: 0;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-copy strong {
    display: block;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 900;
    margin-bottom: 0.18rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-copy span {
    display: block;
    color: #88a7c5;
    font-size: 0.83rem;
    line-height: 1.6;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-note {
    padding-top: 0.72rem;
    border-top: 1px solid rgba(110, 229, 255, 0.1);
    color: #a9bfd4;
    font-size: 0.84rem;
    line-height: 1.65;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 72px;
    padding: 0.75rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(110, 229, 255, 0.14);
    background: rgba(5, 14, 30, 0.72);
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 180, 255, 0.1);
    color: var(--primary-light);
    font-size: 0.95rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item span {
    display: block;
    color: #88a7c5;
    font-size: 0.74rem;
    margin-bottom: 0.16rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

body:not(.admin-page) .hero.hero-command+.categories {
    padding-top: 1.15rem;
}

@media (max-width: 980px) {
    body:not(.admin-page) .hero.hero-command {
        padding: 4.8rem 0.95rem 0.75rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-shell {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-main,
    body:not(.admin-page) .hero.hero-command .hero-command-brand {
        text-align: center;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tags {
        justify-content: center;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand-head {
        justify-content: center;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    body:not(.admin-page) .hero.hero-command {
        padding: 4.3rem 0.8rem 0.6rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-shell {
        padding: 0.85rem;
        border-radius: 24px;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-badge {
        font-size: 0.74rem;
        padding: 0.34rem 0.8rem;
        margin-bottom: 0.65rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-kicker {
        font-size: 0.64rem;
        letter-spacing: 0.18em;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-title {
        font-size: clamp(1.55rem, 6vw, 2.2rem);
        margin-bottom: 0.5rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
        font-size: 0.86rem;
        margin-bottom: 0.7rem;
        line-height: 1.6;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tag {
        min-height: 32px;
        font-size: 0.71rem;
        padding: 0.32rem 0.66rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand {
        padding: 0.8rem;
        border-radius: 20px;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-logo-box {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 16px;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand-copy strong {
        font-size: 1rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand-copy span,
    body:not(.admin-page) .hero.hero-command .hero-command-brand-note {
        font-size: 0.77rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail {
        grid-auto-flow: column;
        grid-auto-columns: minmax(180px, 1fr);
        grid-template-columns: none;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.08rem;
        scrollbar-width: thin;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item {
        min-height: 66px;
        padding: 0.68rem 0.72rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 0.86rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item span {
        font-size: 0.68rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item strong {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    body:not(.admin-page) .hero.hero-command {
        padding: 4.05rem 0.7rem 0.5rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-shell {
        padding: 0.78rem;
        gap: 0.68rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-title {
        font-size: clamp(1.32rem, 6.5vw, 1.8rem);
    }

    body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
        font-size: 0.81rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tags {
        gap: 0.38rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tag {
        font-size: 0.67rem;
        padding: 0.28rem 0.56rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand-head {
        gap: 0.6rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-logo-box {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand-note {
        display: none;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail {
        grid-auto-columns: minmax(156px, 1fr);
    }
}

/* ==================== HOME HERO / SEARCH FINAL OVERRIDES ==================== */
body:not(.admin-page) .hero.hero-command {
    padding: 4.95rem 1rem 0.55rem;
    overflow: clip;
}

body:not(.admin-page) .hero.hero-command::after {
    height: 30px;
}

body:not(.admin-page) .hero.hero-command .hero-layout {
    max-width: 1160px;
    gap: 0.55rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-shell {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.68fr);
    gap: 1rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body:not(.admin-page) .hero.hero-command .hero-command-shell::before {
    display: none;
}

body:not(.admin-page) .hero.hero-command .hero-command-main {
    padding: 0.1rem 0;
}

body:not(.admin-page) .hero.hero-command .hero-command-badge {
    margin-bottom: 0.62rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-title {
    margin-bottom: 0.48rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
    margin-bottom: 0.7rem;
    max-width: 650px;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand {
    align-self: start;
    padding: 0.8rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(110, 229, 255, 0.12);
    background: rgba(5, 13, 29, 0.28);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-head {
    margin-bottom: 0.55rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-brand-note {
    padding-top: 0.55rem;
    font-size: 0.8rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item {
    min-height: 64px;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    background: rgba(5, 14, 30, 0.38);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item span {
    font-size: 0.7rem;
}

body:not(.admin-page) .hero.hero-command .hero-command-rail-item strong {
    font-size: 0.86rem;
}

body:not(.admin-page) .hero.hero-command+.categories {
    padding-top: 0.95rem;
}

.categories-header {
    margin-bottom: 1.35rem;
}

.home-search-band {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 2.6% auto 0.5rem;
    padding: 0 1rem;
}

.home-search-panel {
    width: min(760px, 100%);
    margin: 0 auto;
}

.categories-search-wrap {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.categories-search-label {
    margin-bottom: 0.55rem;
    text-align: center;
    color: #dff7ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.categories-search-box {
    width: min(760px, 100%);
}

.categories-search-hint {
    margin: 0.55rem auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .home-search-band {
        margin: 3.2% auto 0.35rem;
        padding: 0 0.75rem;
    }

    body:not(.admin-page) .hero.hero-command {
        padding: 4.1rem 0.75rem 0.45rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-layout {
        gap: 0.45rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-shell {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-brand {
        display: none;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-main {
        text-align: center;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-badge {
        margin: 0 auto 0.55rem;
        font-size: 0.72rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-kicker {
        display: none;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-title {
        font-size: clamp(1.45rem, 6.3vw, 2rem);
    }

    body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
        max-width: 100%;
        margin: 0 auto 0.6rem;
        font-size: 0.83rem;
        line-height: 1.55;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tags {
        justify-content: center;
        gap: 0.35rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-tag {
        min-height: 30px;
        padding: 0.28rem 0.52rem;
        font-size: 0.66rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item {
        min-height: 58px;
        padding: 0.46rem 0.3rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.22rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        margin: 0 auto;
        font-size: 0.8rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item span {
        font-size: 0.58rem;
        margin-bottom: 0;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item strong {
        font-size: 0.67rem;
        line-height: 1.2;
    }

    body:not(.admin-page) .hero.hero-command+.categories {
        padding-top: 0.82rem;
    }

    .categories-search-wrap {
        margin-top: 0;
    }

    .categories-search-label {
        font-size: 0.8rem;
    }

    .categories-search-box {
        padding: 0.58rem 0.74rem;
        border-radius: 13px;
    }

    .categories-search-input {
        font-size: 0.84rem;
    }

    .categories-search-hint {
        font-size: 0.73rem;
    }
}

@media (max-width: 480px) {
    body:not(.admin-page) .hero.hero-command {
        padding: 3.9rem 0.65rem 0.38rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-title {
        font-size: clamp(1.22rem, 6.8vw, 1.62rem);
    }

    body:not(.admin-page) .hero.hero-command .hero-command-subtitle {
        font-size: 0.78rem;
    }

    body:not(.admin-page) .hero.hero-command .hero-command-rail-item strong {
        font-size: 0.62rem;
    }
}

/* ==================== HOME HERO SUMMIT REDESIGN ==================== */
body:not(.admin-page) .hero.hero-summit {
    min-height: 0;
    padding: 4.9rem 1rem 0.8rem;
    overflow: clip;
}

body:not(.admin-page) .hero.hero-summit::after {
    height: 34px;
}

body:not(.admin-page) .hero.hero-summit .hero-layout.hero-summit-layout {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

body:not(.admin-page) .hero.hero-summit .hero-command-legacy {
    display: none;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-copy {
    max-width: 860px;
    text-align: right;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-kicker {
    color: rgba(206, 230, 255, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.34em;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 42px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(86, 213, 255, 0.3);
    border-radius: 999px;
    background: rgba(3, 12, 28, 0.06);
    color: #8ce8ff;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

body:not(.admin-page) .hero.hero-summit .hero-summit-badge i {
    color: #63deff;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-title {
    margin: 0 0 0.62rem;
    font-size: clamp(2.6rem, 5.6vw, 4.45rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(0, 118, 255, 0.16);
}

body:not(.admin-page) .hero.hero-summit .hero-summit-title span {
    display: block;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-title span:first-child {
    color: #dfeeff;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-title span:last-child {
    color: #4fd6ff;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-subtitle {
    max-width: 760px;
    margin: 0 0 0.92rem;
    color: rgba(206, 220, 240, 0.84);
    font-size: 1.02rem;
    line-height: 1.85;
}

body:not(.admin-page) .home-search-panel {
    width: min(760px, 100%);
    margin: 0 auto 0.2rem;
    display: block !important;
    visibility: visible !important;
}

body:not(.admin-page) .home-search-panel .categories-search-label {
    margin-bottom: 0.45rem;
    text-align: center;
    font-size: 0.86rem;
}

body:not(.admin-page) .home-search-panel .categories-search-box {
    width: min(760px, 100%);
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(7, 13, 27, 0.7), rgba(9, 18, 36, 0.6));
}

body:not(.admin-page) .home-search-panel .categories-search-hint {
    max-width: 620px;
    margin: 0.45rem auto 0;
    text-align: center;
    font-size: 0.78rem;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-pill {
    min-height: 36px;
    padding: 0.48rem 0.92rem;
    border: 1px solid rgba(86, 213, 255, 0.24);
    border-radius: 999px;
    background: transparent;
    color: #ecf9ff;
    font-size: 0.88rem;
    font-weight: 700;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-highlight {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    min-height: 76px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(86, 213, 255, 0.14);
    border-radius: 18px;
    background: rgba(3, 12, 28, 0.08);
    backdrop-filter: blur(10px);
}

body:not(.admin-page) .hero.hero-summit .hero-summit-highlight i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #19c8ff 0%, #5be7ff 100%);
    color: #04101d;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(25, 200, 255, 0.18);
}

body:not(.admin-page) .hero.hero-summit .hero-summit-highlight span {
    display: block;
    margin-bottom: 0.18rem;
    color: rgba(168, 192, 219, 0.78);
    font-size: 0.73rem;
}

body:not(.admin-page) .hero.hero-summit .hero-summit-highlight strong {
    display: block;
    color: #f1fbff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

body:not(.admin-page) .hero.hero-summit+.categories {
    padding-top: 0.95rem;
}

@media (min-width: 992px) {
    body.app-shell:not(.admin-page) .hero.hero-command,
    body.app-shell:not(.admin-page) .hero.hero-summit {
        padding-top: 1.8rem;
    }
}

@media (max-width: 900px) {
    body:not(.admin-page) .hero.hero-summit {
        padding: 4.35rem 0.85rem 0.68rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-title {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-subtitle {
        font-size: 0.92rem;
        line-height: 1.72;
    }
}

@media (max-width: 768px) {
    body:not(.admin-page) .hero.hero-summit {
        padding: calc(5.35rem + env(safe-area-inset-top, 0px)) 0.75rem 0.54rem;
        overflow: visible;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-copy {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-topline {
        display: none;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-title {
        margin-bottom: 0.5rem;
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-subtitle {
        max-width: 340px;
        margin: 0 auto 0.7rem;
        font-size: 0.82rem;
        line-height: 1.6;
    }

    body:not(.admin-page) .home-search-panel {
        margin: 0 auto 0.78rem;
    }

    body:not(.admin-page) .home-search-panel .categories-search-label,
    body:not(.admin-page) .home-search-panel .categories-search-hint {
        text-align: center;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-pills {
        justify-content: center;
        gap: 0.34rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-pill {
        min-height: 30px;
        padding: 0.3rem 0.58rem;
        font-size: 0.66rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlights {
        width: min(100%, 352px);
        margin: 0 auto;
        gap: 0.38rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight {
        min-height: 60px;
        padding: 0.45rem 0.32rem;
        border-radius: 14px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.22rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 11px;
        font-size: 0.78rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight span {
        margin-bottom: 0;
        font-size: 0.56rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight strong {
        font-size: 0.66rem;
    }

    body:not(.admin-page) .hero.hero-summit+.categories {
        padding-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    body:not(.admin-page) .hero.hero-summit {
        padding: calc(5.55rem + env(safe-area-inset-top, 0px)) 0.65rem 0.44rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-title {
        font-size: clamp(1.38rem, 8.4vw, 1.95rem);
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-subtitle {
        font-size: 0.77rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight strong {
        font-size: 0.61rem;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlights {
        width: min(100%, 316px);
    }
}

@media (max-width: 768px) {
    body:not(.admin-page) .header {
        padding: calc(0.34rem + env(safe-area-inset-top, 0px)) 0.55rem 0.36rem;
    }

    body:not(.admin-page) .header-content {
        min-height: 54px;
        padding: 0;
        align-items: center;
    }

    body:not(.admin-page) .header-actions {
        gap: 0.3rem;
        align-items: center;
    }

    body:not(.admin-page) .header-actions>*,
    body:not(.admin-page) #notif-bell-wrapper {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center;
    }

    body:not(.admin-page) .logo {
        min-height: 44px;
        padding: 0.22rem 0.48rem;
        align-items: center;
    }

    body:not(.admin-page) .mobile-menu-btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    body:not(.admin-page) .notif-bell,
    body:not(.admin-page) .user-btn,
    body:not(.admin-page) .lang-btn {
        height: 42px;
        min-height: 42px;
    }

    body:not(.admin-page) .lang-btn {
        min-width: 78px;
        padding: 0 10px;
    }

    body:not(.admin-page) .user-btn .user-avatar-small {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    body:not(.admin-page) .header {
        padding: calc(0.28rem + env(safe-area-inset-top, 0px)) 0.42rem 0.3rem;
    }

    body:not(.admin-page) .header-content {
        min-height: 50px;
        padding: 0;
    }

    body:not(.admin-page) .header-actions {
        gap: 0.22rem;
    }

    body:not(.admin-page) .lang-btn {
        min-width: 72px;
    }
}

/* ==================== MOBILE PERFORMANCE MODE ==================== */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    .stars-layer,
    body::before,
    body::after {
        display: none;
    }

    body {
        background: radial-gradient(circle at top, #082142 0%, #041127 38%, #030816 100%);
    }

    .categories,
    .services,
    .testimonials,
    .features,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 760px;
    }

    .header {
        background: rgba(5, 11, 22, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .services-search-box,
    .services-filters,
    .category-card,
    .service-card,
    .modal,
    .modal-overlay,
    .modal-overlay .modal,
    .user-menu-dropdown,
    body:not(.admin-page) .home-search-panel .categories-search-box,
    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .category-card::after,
    .service-card::after,
    .modal-overlay::before,
    .modal-overlay::after,
    .modal-overlay .modal::before {
        content: none !important;
    }

    .category-card:hover,
    .service-card:hover {
        transform: none;
        box-shadow: none !important;
    }

    .category-card,
    .service-card,
    .mobile-menu-btn,
    .lang-btn,
    .user-btn,
    .notif-bell,
    .pagination-btn,
    .filter-btn {
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .modal-overlay {
        background: rgba(3, 9, 20, 0.92);
    }

    .modal,
    .modal-overlay .modal {
        animation: none !important;
        transform: none !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34) !important;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-title {
        text-shadow: none;
    }

    body:not(.admin-page) .hero.hero-summit .hero-summit-highlight i,
    .category-media,
    .service-icon {
        box-shadow: none !important;
    }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .stars-layer-1,
    .stars-layer-2,
    .stars-layer-3,
    .animate-fadeInUp,
    .animate-fadeIn {
        animation: none !important;
    }
}

/* ==================== MOBILE HEADER / DRAWER REPAIR ==================== */
.mobile-header-profile,
.mobile-header-tools {
    display: none !important;
}

.nav-link-button {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: inherit;
    color: inherit;
    cursor: pointer;
}

.mobile-nav-lang-item {
    display: none;
}

body:not(.admin-page) .nav-menu .mobile-nav-lang-item {
    display: block !important;
}

/* Hide sidebar scrollbars while preserving mouse/touch scrolling */
body.user-authenticated .nav-menu,
body.app-shell .nav-menu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scrollbar-color: transparent transparent !important;
}

body.user-authenticated .nav-menu::-webkit-scrollbar,
body.app-shell .nav-menu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

body.user-authenticated .nav-menu::-webkit-scrollbar-thumb,
body.user-authenticated .nav-menu::-webkit-scrollbar-track,
body.app-shell .nav-menu::-webkit-scrollbar-thumb,
body.app-shell .nav-menu::-webkit-scrollbar-track {
    background: transparent !important;
    border: 0 !important;
}

@media (min-width: 992px) {
    body.app-shell:not(.admin-page) .nav-menu .mobile-nav-lang-item,
    body.app-shell:not(.admin-page) .nav-menu .mobile-nav-signout-item {
        display: none !important;
    }
}

.mobile-nav-brand-item {
    display: none !important;
}

.mobile-nav-signout-item {
    display: none !important;
}

@media (max-width: 768px) {
    body.user-authenticated:not(.admin-page) .header {
        padding: calc(0.28rem + env(safe-area-inset-top, 0px)) 0.44rem 0.3rem;
    }

    body.user-authenticated:not(.admin-page) .header-content {
        position: relative;
        min-height: 60px;
        padding: 0.16rem 0.16rem;
        justify-content: center;
        align-items: center;
        gap: 0;
        overflow: visible;
        border-radius: 14px;
    }

    body.user-authenticated:not(.admin-page) .header-content > nav {
        width: 0;
        flex: 0 0 0;
    }

    body.user-authenticated:not(.admin-page) .header-content > .header-balance-badge,
    body.user-authenticated:not(.admin-page) .header-content > .mobile-menu-btn,
    body.user-authenticated:not(.admin-page) .header-actions,
    body.user-authenticated:not(.admin-page) .logo {
        display: none !important;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile:not(.hidden) {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        display: flex !important;
        align-items: center;
        gap: 0.34rem;
        min-width: 110px;
        max-width: calc(100vw - 10.4rem);
        padding: 0.26rem 0.34rem;
        border: 1px solid rgba(110, 232, 255, 0.22);
        border-radius: 17px;
        background:
            radial-gradient(circle at 16% 12%, rgba(0, 180, 255, 0.16), transparent 40%),
            linear-gradient(145deg, rgba(7, 19, 41, 0.9), rgba(8, 16, 30, 0.82));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 10px 26px rgba(2, 8, 28, 0.24);
        overflow: hidden;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile::before {
        display: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile-link {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile-link .user-avatar-small {
        width: 28px;
        height: 28px;
        font-size: 0.76rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile-name {
        flex: 0 1 3.1rem;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1;
        color: #eef8ff;
        text-align: right;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-progress-shell {
        position: static;
        inset: auto;
        display: flex;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 4.2rem;
        padding: 0;
        gap: 0.08rem;
        background: none;
        border: none;
        box-shadow: none;
        pointer-events: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-progress-head {
        gap: 0.2rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-level-inline {
        font-size: 0.47rem;
        gap: 0.14rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-level-inline i {
        font-size: 0.4rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-progress-caption {
        font-size: 0.38rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-progress-track {
        height: 2.5px;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools:not(.hidden) {
        position: absolute;
        top: 50%;
        left: 0.12rem;
        transform: translateY(-50%);
        z-index: 4;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.28rem;
        width: auto;
        margin: 0;
        padding: 0.34rem 0.38rem;
        border: 1px solid rgba(110, 232, 255, 0.18);
        border-radius: 14px;
        background:
            radial-gradient(circle at 15% 15%, rgba(0, 180, 255, 0.12), transparent 42%),
            linear-gradient(145deg, rgba(7, 19, 41, 0.82), rgba(8, 16, 30, 0.74));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-label {
        display: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-copy {
        gap: 0;
        min-width: 0;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-value {
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-add {
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
        border-radius: 9px;
        box-shadow: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-header-menu-btn {
        display: none !important;
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        position: fixed !important;
        top: auto !important;
        left: auto !important;
        right: 1rem !important;
        bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem)) !important;
        transform: none !important;
        z-index: 10040;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(110, 232, 255, 0.24);
        border-radius: 18px;
        background: linear-gradient(155deg, rgba(10, 22, 45, 0.92), rgba(8, 16, 31, 0.86));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 18px 34px rgba(2, 8, 28, 0.32);
        transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

    body.mobile-nav-open.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px) !important;
    }

    body.user-authenticated:not(.admin-page) .nav-menu {
        display: flex !important;
        top: 0.62rem;
        right: 0.62rem;
        bottom: 0.62rem;
        width: min(236px, calc(100vw - 1.24rem));
        max-width: 236px;
        min-width: 0;
        height: auto;
        padding: 0.92rem 0.76rem;
        gap: 0.42rem;
        background:
            radial-gradient(circle at 18% 10%, rgba(0, 180, 255, 0.16), transparent 42%),
            linear-gradient(180deg, rgba(8, 19, 40, 0.98), rgba(5, 12, 25, 0.95));
        border: 1px solid rgba(116, 233, 255, 0.2);
        border-left: none;
        border-radius: 22px;
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        transform: translateX(calc(100% + 1rem));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    body.user-authenticated:not(.admin-page) .nav-menu::-webkit-scrollbar {
        display: none;
    }

    body.user-authenticated:not(.admin-page) .nav-menu li {
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        padding: 0.82rem 0.92rem;
        border: 1px solid transparent;
        border-radius: 14px;
        background: rgba(7, 20, 40, 0.34);
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link:hover,
    body.user-authenticated:not(.admin-page) .nav-menu .nav-link.active {
        background: rgba(12, 33, 62, 0.76);
        border-color: rgba(102, 230, 255, 0.2);
    }

    body.user-authenticated:not(.admin-page) .nav-menu .mobile-nav-account {
        display: none !important;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-lang-item {
        display: block !important;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-item {
        display: flex !important;
        flex-direction: column;
        gap: 0.72rem;
        margin-bottom: 0.35rem;
        padding-bottom: 0.95rem;
        border-bottom: 1px solid rgba(102, 230, 255, 0.14);
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
        padding: 0.35rem 0.25rem 0.1rem;
        text-decoration: none;
        color: #f4fbff;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-logo {
        width: 52px;
        height: 52px;
        display: block;
        object-fit: contain;
        filter: drop-shadow(0 10px 22px rgba(0, 180, 255, 0.16));
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-title {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.7rem;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0.72rem 0.8rem;
        border: 1px solid rgba(110, 232, 255, 0.18);
        border-radius: 15px;
        background:
            radial-gradient(circle at 16% 16%, rgba(0, 180, 255, 0.16), transparent 46%),
            linear-gradient(145deg, rgba(7, 19, 41, 0.82), rgba(8, 16, 30, 0.68));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        overflow: hidden;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-value {
        font-size: 0.96rem;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-add {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-signout-item {
        display: block !important;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-lang-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        width: 100%;
        background: rgba(7, 20, 40, 0.34);
        border: 1px solid transparent;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-lang-btn i {
        color: var(--primary-color, #4fd7ff);
    }

    body:not(.admin-page) .nav-menu .mobile-nav-signout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        width: 100%;
        background: linear-gradient(155deg, rgba(44, 12, 24, 0.88), rgba(24, 9, 18, 0.72));
        border: 1px solid rgba(255, 118, 145, 0.26);
        color: #ffd7de;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-signout-btn i {
        color: #ff8fa3;
    }

    body.user-authenticated:not(.admin-page) .nav-menu.mobile-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        animation: none;
    }

    body.user-authenticated:not(.admin-page) .hero {
        padding-top: calc(4.95rem + env(safe-area-inset-top, 0px)) !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-header-tools:not(.hidden) {
        left: auto;
        right: 0.12rem;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 1rem !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .nav-menu {
        right: auto;
        left: 0.62rem;
        border-left: 1px solid rgba(116, 233, 255, 0.2);
        border-right: none;
        transform: translateX(calc(-100% - 1rem));
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .nav-menu.mobile-open {
        transform: translateX(0);
    }

    body:not(.profile-page-wrap) #accountSettingsModal .account-settings-shell {
        width: min(760px, 94vw);
    }

    body:not(.profile-page-wrap) #accountSettingsModal .account-card {
        width: 100%;
    }

    body:not(.profile-page-wrap) #accountSettingsModal .account-card-body {
        max-height: min(74vh, 720px);
        overflow-y: auto;
    }

    body:not(.profile-page-wrap) #accountSettingsModal .account-settings-panel {
        padding: 1.1rem;
    }
}

@media (max-width: 480px) {
    body.user-authenticated:not(.admin-page) .header-content {
        min-height: 56px;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile:not(.hidden) {
        min-width: 104px;
        max-width: calc(100vw - 9.8rem);
        padding: 0.22rem 0.3rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile-link,
    body.user-authenticated:not(.admin-page) .mobile-header-profile-link .user-avatar-small {
        width: 26px;
        height: 26px;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile-name {
        flex-basis: 2.55rem;
        max-width: 2.55rem;
        font-size: 0.56rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-level-inline {
        font-size: 0.43rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile .user-progress-caption {
        font-size: 0.35rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge {
        padding: 0.3rem 0.34rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-value {
        font-size: 0.72rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .header-balance-badge-add {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        right: 0.88rem !important;
    }

    body.user-authenticated:not(.admin-page) .nav-menu {
        top: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        width: min(222px, calc(100vw - 1rem));
        max-width: 222px;
        padding: 0.84rem 0.68rem;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 0.88rem !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .nav-menu {
        right: auto;
        left: 0.5rem;
    }
}

@media (max-width: 768px) {
    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        position: fixed !important;
        top: auto !important;
        right: 1rem !important;
        bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem)) !important;
        left: auto !important;
        transform: none !important;
        z-index: 10060 !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 1rem !important;
    }
}

@media (max-width: 480px) {
    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: 0.88rem !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 0.88rem !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-fab:not(.hidden) {
        position: fixed !important;
        top: auto !important;
        right: 1rem !important;
        bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem)) !important;
        left: auto !important;
        transform: none !important;
        z-index: 10070 !important;
    }

    html[dir="ltr"] .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 1rem !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-fab:not(.hidden) {
        right: 0.88rem !important;
    }

    html[dir="ltr"] .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 0.88rem !important;
    }
}
