/* Serva shared app-shell sidebar — clean professional navigation. */

@media (min-width: 992px) {
    body.app-shell:not(.admin-page) {
        --app-side-header-width: 236px;
        padding-left: 0;
        padding-right: calc(var(--app-side-header-width) + 1.15rem);
    }

    body.app-shell:not(.admin-page) .header {
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: var(--app-side-header-width);
        padding: 0;
        border: 1px solid rgba(111, 224, 255, 0.16);
        border-radius: 24px;
        background:
            radial-gradient(circle at 84% 0%, rgba(41, 190, 255, 0.1), transparent 34%),
            linear-gradient(180deg, rgba(6, 16, 34, 0.985), rgba(4, 10, 23, 0.985));
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.035);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.app-shell:not(.admin-page) .header::after {
        content: none;
    }

    body.app-shell:not(.admin-page) .header-content {
        padding: 0.78rem;
        gap: 0.58rem;
        border-radius: inherit;
        background: transparent;
    }

    body.app-shell:not(.admin-page) .logo {
        min-height: 54px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.68rem;
        padding: 0.38rem 0.45rem;
        border: 0;
        border-radius: 16px;
        background: transparent;
        text-align: start;
    }

    body.app-shell:not(.admin-page) .logo:hover {
        background: rgba(255, 255, 255, 0.025);
        transform: none;
    }

    body.app-shell:not(.admin-page) .logo-img {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border-radius: 13px;
        box-shadow: 0 8px 22px rgba(0, 174, 255, 0.18);
    }

    body.app-shell:not(.admin-page) .logo-text {
        font-size: 1.12rem;
        font-weight: 900;
        letter-spacing: 0.035em;
        color: #effaff;
        text-shadow: none;
    }

    body.app-shell:not(.admin-page) > .header .header-balance-badge:not(.hidden) {
        position: relative;
        isolation: isolate;
        min-height: 112px;
        margin: 0;
        padding: 0.72rem;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: minmax(46px, auto) 38px;
        align-items: center;
        gap: 0.52rem 0.7rem;
        overflow: hidden;
        direction: ltr;
        border: 1px solid rgba(94, 218, 255, 0.29);
        border-radius: 18px;
        background:
            radial-gradient(circle at 12% 0%, rgba(83, 207, 255, 0.22), transparent 42%),
            linear-gradient(145deg, rgba(10, 55, 91, 0.96), rgba(5, 20, 48, 0.94));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 32px rgba(0, 12, 38, 0.25);
    }

    body.app-shell:not(.admin-page) .header-balance-badge-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 0.08rem;
        direction: rtl;
        text-align: right;
    }

    body.app-shell:not(.admin-page) .header-balance-badge-wallet-icon {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #8bb7ff;
        font-size: 1.45rem;
    }

    body.app-shell:not(.admin-page) .header-balance-badge-wallet-icon img {
        width: 36px;
        height: 36px;
        display: block;
        filter: drop-shadow(0 7px 12px rgba(48, 156, 255, 0.3));
    }

    body.app-shell:not(.admin-page) .header-balance-badge-label {
        color: #9cb9ce;
        font-size: 0.68rem;
        font-weight: 800;
    }

    body.app-shell:not(.admin-page) .header-balance-badge-value {
        color: #f5fbff;
        font-size: 1.34rem;
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0.01em;
    }

    body.app-shell:not(.admin-page) .header-balance-badge-add {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 0 0.72rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.48rem;
        direction: rtl;
        border: 1px solid rgba(105, 201, 255, 0.42);
        border-radius: 11px;
        background: linear-gradient(135deg, rgba(29, 112, 178, 0.58), rgba(28, 60, 120, 0.72));
        color: #e2f3ff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 34, 78, 0.18);
    }

    body.app-shell:not(.admin-page) .header-balance-badge-add-label {
        font-size: 0.72rem;
        font-weight: 900;
        white-space: nowrap;
    }

    body.app-shell:not(.admin-page) .header-balance-badge-add i {
        width: 23px;
        height: 23px;
        flex: 0 0 23px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(149, 224, 255, 0.7);
        border-radius: 50%;
        background: linear-gradient(145deg, rgba(83, 203, 255, 0.24), rgba(55, 128, 255, 0.16));
        color: #c9f3ff;
        font-size: 0.74rem;
        box-shadow: 0 0 0 3px rgba(63, 181, 255, 0.07), 0 5px 12px rgba(0, 61, 132, 0.22);
    }

    body.app-shell:not(.admin-page) .header-balance-badge-add:hover {
        border-color: rgba(139, 224, 255, 0.72);
        background: linear-gradient(135deg, rgba(31, 139, 210, 0.72), rgba(43, 78, 152, 0.84));
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 10px 22px rgba(0, 69, 146, 0.23);
    }

    body.app-shell:not(.admin-page) .header-content > nav {
        margin: 0.08rem 0;
        padding: 0.2rem 0;
        border-top: 1px solid rgba(126, 218, 255, 0.075);
        border-bottom: 1px solid rgba(126, 218, 255, 0.075);
        overflow: hidden;
    }

    body.app-shell:not(.admin-page) .nav-menu {
        gap: 0.14rem;
        padding: 0.36rem 0.08rem;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-balance-redundant-item {
        display: none !important;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-group-header {
        margin: 0.32rem 0 0.12rem;
        padding: 0.25rem 0.72rem 0.12rem;
        color: #69869e;
        font-size: 0.88rem;
        font-weight: 900;
        font-weight: 800;
        letter-spacing: 0;
        opacity: 1;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link {
        min-height: 47px;
        padding: 0.34rem 0.48rem;
        gap: 0.52rem;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #93a9bd;
        font-size: 0.82rem;
        font-weight: 700;
        transition:
            color 0.18s ease,
            background-color 0.18s ease,
            border-color 0.18s ease;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link-icon,
    body.app-shell:not(.admin-page) .nav-menu .nav-link > i:first-child {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border-radius: 10px;
        background: rgba(92, 155, 191, 0.08);
        color: #7996ad;
        font-size: 0.76rem;
        opacity: 1;
        transition: color 0.18s ease, background-color 0.18s ease;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link:hover {
        border-color: rgba(94, 210, 255, 0.09);
        background: rgba(59, 147, 189, 0.065);
        color: #dcebf4;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link.active {
        border-color: rgba(72, 210, 255, 0.18);
        background: linear-gradient(90deg, rgba(21, 159, 216, 0.04), rgba(21, 159, 216, 0.15));
        color: #f1fbff;
        box-shadow: inset -3px 0 0 #27c8ff;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link.active .nav-link-icon,
    body.app-shell:not(.admin-page) .nav-menu .nav-link.active > i:first-child {
        background: linear-gradient(145deg, #26c9ff, #0b94d1);
        color: #03121e;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link-profile:not(.active) {
        border-color: rgba(75, 207, 255, 0.12);
        background: linear-gradient(90deg, rgba(35, 180, 235, 0.025), rgba(35, 180, 235, 0.075));
        color: #c6e8f7;
    }

    body.app-shell:not(.admin-page) .nav-menu .nav-link-profile:not(.active) > i:first-child {
        background: rgba(39, 200, 255, 0.12);
        color: #5fd9ff;
    }

    body.app-shell:not(.admin-page) .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 0.42rem;
        margin: 0;
        padding-top: 0.08rem;
    }

    body.app-shell:not(.admin-page) .header-actions > * {
        min-width: 0;
    }

    body.app-shell:not(.admin-page) .header-actions .lang-btn,
    body.app-shell:not(.admin-page) .header-actions .sidebar-support-square {
        width: 100%;
        min-height: 40px;
        padding: 0.4rem 0.48rem;
        gap: 0.38rem;
        border: 1px solid rgba(108, 190, 225, 0.12);
        border-radius: 11px;
        background: rgba(36, 79, 108, 0.08);
        color: #a9bdcc;
        box-shadow: none;
        font-size: 0.72rem;
        font-weight: 800;
    }

    body.app-shell:not(.admin-page) .header-actions .lang-btn:hover,
    body.app-shell:not(.admin-page) .header-actions .sidebar-support-square:hover {
        border-color: rgba(90, 209, 255, 0.2);
        background: rgba(35, 129, 171, 0.1);
        color: #e7f6ff;
        box-shadow: none;
    }

    body.app-shell:not(.admin-page) .header-actions .lang-btn i,
    body.app-shell:not(.admin-page) .header-actions .sidebar-support-square i {
        color: #3bcfff;
        font-size: 0.78rem;
    }

    body.app-shell:not(.admin-page) .header-actions .sidebar-support-square {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0.4rem 0.48rem;
        justify-self: stretch;
    }

    body.app-shell:not(.admin-page) .header-actions .sidebar-support-square span { display: inline; }

    body.app-shell:not(.admin-page) .header-actions .sidebar-logout-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 38px;
        padding: 0.42rem 0.65rem;
        gap: 0.45rem;
        border: 1px solid rgba(255, 105, 135, 0.13);
        border-radius: 11px;
        background: rgba(109, 24, 48, 0.08);
        color: #d89aaa;
        box-shadow: none;
        font-size: 0.72rem;
        font-weight: 800;
    }

    body.app-shell:not(.admin-page) .header-actions .sidebar-logout-btn:hover {
        border-color: rgba(255, 112, 143, 0.24);
        background: rgba(139, 27, 55, 0.14);
        color: #ffd9e1;
        box-shadow: none;
    }

    html[dir="ltr"] body.app-shell:not(.admin-page) {
        padding-right: 0;
        padding-left: calc(var(--app-side-header-width) + 1.15rem);
    }

    html[dir="ltr"] body.app-shell:not(.admin-page) .header {
        right: auto;
        left: 0.75rem;
        border: 1px solid rgba(111, 224, 255, 0.16);
    }

    html[dir="ltr"] body.app-shell:not(.admin-page) .nav-menu .nav-link.active {
        box-shadow: inset 3px 0 0 #27c8ff;
    }
}

@media (max-width: 768px) {
    body.user-authenticated:not(.admin-page) .mobile-header-tools:not(.hidden) {
        left: max(0.35rem, env(safe-area-inset-left, 0px));
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-header-tools:not(.hidden) {
        right: max(0.35rem, env(safe-area-inset-right, 0px));
        left: auto;
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        position: absolute !important;
        top: 50% !important;
        right: 0.12rem !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        z-index: 5 !important;
        width: 47px !important;
        min-width: 47px !important;
        height: 47px !important;
        min-height: 47px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(111, 229, 255, 0.32);
        border-radius: 14px;
        background:
            radial-gradient(circle at 78% 12%, rgba(78, 220, 255, 0.2), transparent 46%),
            linear-gradient(145deg, rgba(8, 38, 69, 0.98), rgba(5, 20, 40, 0.98));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 8px 20px rgba(0, 126, 190, 0.18);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 0;
        border-radius: 999px;
        background: #effcff;
        box-shadow: 0 0 8px rgba(105, 227, 255, 0.26);
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden):hover,
    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden):focus-visible {
        border-color: rgba(111, 229, 255, 0.66);
        background:
            radial-gradient(circle at 78% 12%, rgba(78, 220, 255, 0.28), transparent 48%),
            linear-gradient(145deg, rgba(10, 51, 88, 0.99), rgba(6, 27, 52, 0.99));
        outline: none;
    }

    body.mobile-nav-open.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-50%) scale(0.92) !important;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 0.12rem !important;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile:not(.hidden) {
        width: 128px;
        min-width: 128px;
        max-width: 128px;
        box-sizing: border-box;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta {
        position: relative;
        isolation: isolate;
        width: clamp(92px, 30vw, 116px);
        min-width: 92px;
        max-width: 116px;
        min-height: 46px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        padding: 0.32rem 0.34rem;
        overflow: visible;
        border: 1px solid rgba(100, 224, 255, 0.3);
        border-radius: 15px;
        color: #f3fbff;
        background:
            radial-gradient(circle at 12% 0%, rgba(102, 230, 255, 0.2), transparent 50%),
            linear-gradient(145deg, rgba(8, 40, 72, 0.98), rgba(5, 20, 40, 0.98));
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 9px 22px rgba(0, 103, 166, 0.2);
        font-size: 0.7rem;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        text-decoration: none;
        transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: 0;
        inset-inline: 12px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(135, 235, 255, 0.75), transparent);
        pointer-events: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta:hover,
    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta:focus-visible {
        border-color: rgba(102, 230, 255, 0.68);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            0 10px 24px rgba(0, 174, 230, 0.24);
        transform: translateY(-1px);
        outline: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta:active {
        transform: translateY(0) scale(0.98);
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-icon {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(166, 242, 255, 0.5);
        border-radius: 50%;
        color: #dffaff;
        background: linear-gradient(145deg, #24b8ec, #0877bd);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 5px 12px rgba(0, 145, 210, 0.24);
        font-size: 1.04rem;
        font-weight: 800;
        line-height: 1;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-label {
        display: block;
        letter-spacing: 0;
        color: #f5fbff;
        font-size: 0.61rem;
        font-weight: 900;
        line-height: 1.05;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-copy {
        display: grid;
        justify-items: start;
        flex: 1 1 auto;
        gap: 0.2rem;
        min-width: 0;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-balance-row {
        display: inline-flex;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        white-space: nowrap;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-balance-label {
        display: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-balance {
        display: block;
        color: #9cefff;
        font-family: Tajawal, Cairo, sans-serif;
        font-size: clamp(0.62rem, 2.8vw, 0.74rem);
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
        direction: ltr;
        unicode-bidi: isolate;
        white-space: nowrap;
        text-shadow: 0 0 12px rgba(81, 224, 255, 0.2);
    }

    body.user-authenticated:not(.admin-page) .nav-menu {
        top: 0.7rem;
        right: 0.7rem;
        bottom: 0.7rem;
        width: min(286px, calc(100vw - 1.4rem));
        max-width: 286px;
        padding: 0.78rem;
        gap: 0.18rem;
        border: 1px solid rgba(100, 218, 255, 0.16);
        border-radius: 22px;
        background:
            radial-gradient(circle at 82% 0%, rgba(36, 187, 247, 0.11), transparent 36%),
            linear-gradient(180deg, rgba(6, 16, 34, 0.99), rgba(4, 10, 23, 0.99));
        box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-item {
        gap: 0.58rem;
        margin-bottom: 0.18rem;
        padding-bottom: 0.72rem;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-link {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.62rem;
        padding: 0.15rem 0.28rem;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-brand-title {
        font-size: 1rem;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] {
        padding: 0.68rem;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-rows: minmax(44px, auto) 38px;
        align-items: center;
        gap: 0.48rem 0.64rem;
        direction: ltr;
        border-radius: 17px;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-wallet-icon {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        background: transparent;
        color: #8bb7ff;
        font-size: 1.3rem;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-wallet-icon img {
        width: 34px;
        height: 34px;
        display: block;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-copy {
        min-width: 0;
        align-items: flex-end;
        direction: rtl;
        text-align: right;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-add {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        height: 38px;
        padding: 0 0.66rem;
        gap: 0.46rem;
    }

    body:not(.admin-page) .nav-menu [data-mobile-nav-brand-balance] .header-balance-badge-add-label {
        display: inline;
        font-size: 0.71rem;
        font-weight: 900;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-balance-redundant-item {
        display: none !important;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-group-header {
        margin: 0.25rem 0 0.05rem;
        padding: 0.25rem 0.65rem 0.12rem;
        font-size: 0.62rem;
        opacity: 0.7;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link {
        min-height: 43px;
        padding: 0.38rem 0.52rem;
        gap: 0.5rem;
        border-radius: 12px;
        background: transparent;
        font-size: 0.82rem;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link-icon,
    body.user-authenticated:not(.admin-page) .nav-menu .nav-link > i:first-child {
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border-radius: 9px;
        background: rgba(91, 159, 194, 0.08);
        color: #7f9bb0;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link:hover,
    body.user-authenticated:not(.admin-page) .nav-menu .nav-link.active {
        background: rgba(28, 123, 166, 0.1);
        border-color: rgba(83, 206, 255, 0.14);
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link-profile:not(.active) {
        border-color: rgba(75, 207, 255, 0.12);
        background: linear-gradient(90deg, rgba(35, 180, 235, 0.025), rgba(35, 180, 235, 0.075));
        color: #c6e8f7;
    }

    body.user-authenticated:not(.admin-page) .nav-menu .nav-link-profile:not(.active) > i:first-child {
        background: rgba(39, 200, 255, 0.12);
        color: #5fd9ff;
    }

    body:not(.admin-page) .nav-menu .mobile-nav-lang-btn {
        justify-content: flex-start;
        background: rgba(37, 76, 104, 0.07);
    }

    body:not(.admin-page) .nav-menu .mobile-nav-signout-btn {
        min-height: 40px;
        margin-top: 0.1rem;
        background: rgba(109, 24, 48, 0.08);
        border-color: rgba(255, 105, 135, 0.13);
        color: #d99baa;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .nav-menu {
        right: auto;
        left: 0.7rem;
        border: 1px solid rgba(100, 218, 255, 0.16);
    }
}

@media (max-width: 360px) {
    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: 0.08rem !important;
        width: 43px !important;
        min-width: 43px !important;
        height: 43px !important;
        min-height: 43px !important;
        border-radius: 13px;
    }

    body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) span {
        width: 23px;
        height: 2.8px;
        gap: 4px;
    }

    html[dir="ltr"] body.user-authenticated:not(.admin-page) .mobile-menu-fab:not(.hidden) {
        right: auto !important;
        left: 0.08rem !important;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-profile:not(.hidden) {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta {
        width: clamp(92px, 30vw, 116px);
        min-width: 92px;
        max-width: 116px;
        gap: 0.22rem;
        min-height: 43px;
        padding-inline: 0.28rem;
        font-size: 0.65rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-icon {
        display: none;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-label {
        font-size: 0.55rem;
    }

    body.user-authenticated:not(.admin-page) .mobile-header-tools .mobile-topup-cta-balance {
        font-size: clamp(0.62rem, 2.8vw, 0.68rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-shell:not(.admin-page) .nav-menu .nav-link,
    body.app-shell:not(.admin-page) .header-balance-badge-add {
        transition: none;
    }
}

body.app-shell:not(.admin-page) .mobile-nav-utility-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
}

body.app-shell:not(.admin-page) .mobile-nav-utility-row .mobile-nav-lang-btn,
body.app-shell:not(.admin-page) .mobile-nav-utility-row .mobile-nav-support-btn {
    width: 100%;
    min-width: 0;
}

body.app-shell:not(.admin-page) .mobile-nav-utility-row .mobile-nav-support-btn {
    padding: 0.55rem 0.7rem;
    justify-content: center;
    align-self: center;
    height: 44px;
    min-height: 44px;
}

body.app-shell:not(.admin-page) .mobile-nav-utility-row .mobile-nav-support-btn span { display: inline; }

/* Featured profile destination: directly below the wallet/account card. */
body.app-shell:not(.admin-page) .nav-menu .nav-link-profile {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.68rem;
    min-height: 66px !important;
    margin-bottom: 0.22rem;
    padding: 0.58rem 0.68rem !important;
    overflow: hidden;
    color: #ecfaff !important;
    font-size: 0.86rem !important;
    font-weight: 900 !important;
    border: 1px solid rgba(82, 218, 255, 0.28) !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 8% 15%, rgba(54, 212, 255, 0.2), transparent 44%),
        linear-gradient(135deg, rgba(13, 52, 84, 0.88), rgba(13, 24, 58, 0.92)) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 12px 28px rgba(0, 15, 42, 0.22) !important;
}

body.app-shell:not(.admin-page) .nav-menu .nav-link-profile::before {
    content: '';
    position: absolute;
    inset-inline-end: -28px;
    top: -38px;
    z-index: -1;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(103, 226, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 20px rgba(93, 86, 255, 0.025);
}

body.app-shell:not(.admin-page) .nav-menu .nav-link-profile::after {
    content: attr(data-profile-subtitle) !important;
    grid-column: 2;
    grid-row: 2;
    display: block !important;
    min-width: 0;
    overflow: hidden;
    color: #7fa6bd;
    font-size: 0.61rem;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.app-shell:not(.admin-page) .nav-menu .nav-link-profile > i:first-child,
body.app-shell:not(.admin-page) .nav-menu .nav-link-profile .nav-link-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 40px !important;
    height: 40px !important;
    display: grid !important;
    place-items: center;
    color: #03131f !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(133, 239, 255, 0.34) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #78eaff, #41a9f2) !important;
    box-shadow: 0 8px 20px rgba(31, 177, 255, 0.22) !important;
}

body.app-shell:not(.admin-page) .nav-menu .nav-link-profile:hover {
    transform: translateY(-1px);
    border-color: rgba(99, 226, 255, 0.48) !important;
    background:
        radial-gradient(circle at 8% 15%, rgba(54, 212, 255, 0.26), transparent 44%),
        linear-gradient(135deg, rgba(16, 66, 101, 0.95), rgba(16, 31, 72, 0.96)) !important;
}
