.mobile-menu-wrapper {
    position: fixed;

    z-index: 1050;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 0 16px 12px;

    pointer-events: none;
}

.mobile-glass-menu {
    position: relative;

    width: 100%;
    max-width: 500px;

    height: 68px;

    margin: 0 auto;
    padding: 5px;

    display: flex;
    align-items: stretch;

    pointer-events: auto;
    isolation: isolate;

    /* Glass */
    background:
        linear-gradient(
            180deg,
            rgba(45, 45, 52, 0.62),
            rgba(28, 28, 34, 0.58)
        );

    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    /* Border */
    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 24px;

    /* Shadow */
    box-shadow:
        0 14px 45px rgba(0, 0, 0, 0.48),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.035);
}


/* Top glass reflection */
.mobile-glass-menu::before {
    content: "";

    position: absolute;

    left: 18%;
    right: 18%;

    top: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.38),
        transparent
    );

    opacity: 0.8;

    pointer-events: none;
}


/* Navigation item */
.mobile-menu-item {
    position: relative;
    z-index: 2;

    flex: 1 1 0;

    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    color: rgba(255, 255, 255, 0.48);

    text-decoration: none;

    border-radius: 19px;

    overflow: hidden;

    -webkit-tap-highlight-color: transparent;

    transition:
        color 0.25s ease,
        transform 0.18s cubic-bezier(.22, 1, .36, 1);
}


/* Desktop hover */
@media (hover: hover) {
    .mobile-menu-item:hover {
        color: rgba(255, 255, 255, 0.78);
    }
}


/* Active item */
.mobile-menu-item.active {
    color: #fff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.065)
        );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.045),
        0 2px 10px rgba(0, 0, 0, 0.12);
}


/* Internal active glow */
.mobile-menu-item.active::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse 80% 70% at 50% 0%,
            rgba(255, 255, 255, 0.16),
            transparent 75%
        );

    opacity: 0.8;

    pointer-events: none;
}


/* Active top highlight */
.mobile-menu-item.active::after {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;

    top: 0;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.48),
        transparent
    );

    opacity: 0.7;

    pointer-events: none;
}


/* Icon */
.mobile-menu-item i {
    position: relative;
    z-index: 3;

    font-size: 19px;
    line-height: 1;

    transition:
        transform 0.3s cubic-bezier(.22, 1, .36, 1),
        filter 0.25s ease;
}

.mobile-menu-item.active i {
    transform:
        translateY(-1px)
        scale(1.04);

    filter:
        drop-shadow(
            0 1px 4px rgba(255, 255, 255, 0.16)
        );
}


/* Label */
.mobile-menu-item span {
    position: relative;
    z-index: 3;

    font-size: 10px;
    font-weight: 500;

    line-height: 1;

    transition:
        transform 0.25s cubic-bezier(.22, 1, .36, 1),
        opacity 0.25s ease;
}

.mobile-menu-item.active span {
    transform: translateY(-0.5px);
}


/* Press */
.mobile-menu-item:active {
    transform: scale(0.93);
}

.mobile-menu-item:active i {
    transform: scale(0.96);
}


/* Small screens */
@media (max-width: 360px) {

    .mobile-menu-wrapper {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 8px;
    }

    .mobile-glass-menu {
        height: 64px;
        border-radius: 22px;
    }

    .mobile-menu-item {
        border-radius: 17px;
    }

    .mobile-menu-item i {
        font-size: 19px;
    }

    .mobile-menu-item span {
        font-size: 9px;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .mobile-menu-item,
    .mobile-menu-item i,
    .mobile-menu-item span {
        transition: none;
    }
}