@media (max-width: 1023px) {



    .bottom-nav {

        position: fixed;

        left: 12px;

        right: 12px;

        bottom: 10px;

        width: auto;

        height: 74px;

        z-index: 9999;

        border-radius: 24px;

        background: rgba(255, 255, 255, 0.82);

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

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

        border: 1px solid rgba(255,255,255,0.55);

        box-shadow:

            0 10px 30px rgba(15, 23, 42, 0.12),

            0 4px 12px rgba(15, 23, 42, 0.08),

            inset 0 1px 0 rgba(255,255,255,0.75);

        padding-bottom: env(safe-area-inset-bottom);

        transition: transform 0.32s ease, opacity 0.32s ease;

    }



    .bottom-nav.hide {

        transform: translateY(calc(100% + 16px));

        opacity: 0;

    }



    .bn-inner {

        height: 100%;

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        align-items: center;

        gap: 6px;

        padding: 8px;

    }



    .bn-item {

        position: relative;

        height: 100%;

        text-align: center;

        color: #64748b;

        text-decoration: none;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 5px;

        border-radius: 18px;

        cursor: pointer;

        user-select: none;

        -webkit-tap-highlight-color: transparent;

        transition:

            transform 0.22s ease,

            color 0.22s ease,

            background 0.22s ease,

            box-shadow 0.22s ease,

            opacity 0.22s ease;

    }



    .bn-item:hover {

        color: #334155;

        background: rgba(255,255,255,0.52);

    }



    .bn-item.active {

        color: #111827;

        background: linear-gradient(180deg, rgba(99,102,241,0.16), rgba(79,70,229,0.09));

        box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);

    }



    .bn-item:active {

        transform: scale(0.96);

    }



    .bn-icon-wrap,

    .bn-avatar-wrap {

        width: 36px;

        height: 36px;

        border-radius: 14px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;

    }



    .bn-icon-wrap {

        background: rgba(248, 250, 252, 0.95);

        box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);

    }



    .bn-item:hover .bn-icon-wrap,

    .bn-item.active .bn-icon-wrap {

        transform: translateY(-1px);

        background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);

        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.16);

    }



    .bn-item i {

        font-size: 18px;

        line-height: 1;

    }



    .bn-icon-wrap--online i {

        color: #22c55e;

        text-shadow: 0 0 10px rgba(34,197,94,0.35);

    }



    .bn-label {

        font-size: 11px;

        font-weight: 700;

        line-height: 1;

        letter-spacing: .01em;

    }



    .bn-avatar-wrap {

        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);

    }



    .bn-avatar {

        width: 30px;

        height: 30px;

        border-radius: 50%;

        object-fit: cover;

        border: 2px solid rgba(255,255,255,0.95);

        display: block;

        transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;

    }



    .bn-item:hover .bn-avatar,

    .bn-item.active .bn-avatar {

        transform: scale(1.06);

        border-color: #818cf8;

        box-shadow: 0 0 0 3px rgba(99,102,241,0.14);

    }



    body {

        padding-bottom: 96px !important;

    }

}



@media (max-width: 420px) {

    .bottom-nav {

        left: 8px;

        right: 8px;

        bottom: 8px;

        height: 70px;

        border-radius: 22px;

    }



    .bn-inner {

        padding: 7px;

        gap: 4px;

    }



    .bn-icon-wrap,

    .bn-avatar-wrap {

        width: 34px;

        height: 34px;

        border-radius: 12px;

    }



    .bn-avatar {

        width: 28px;

        height: 28px;

    }



    .bn-label {

        font-size: 10px;

    }

}



@media (min-width: 1024px) {

    .bottom-nav {

        display: none !important;

    }

}
