* {
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 4px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(248, 248, 250, 0.16);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-item {
    flex: 1 1 20%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: #8a96a3;
    text-decoration: none;
}

.bottom-item:hover,
.bottom-item.active {
    color: #2f8cff;
}

.bottom-item:active {
    transform: scale(0.96);
}

.bottom-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bottom-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bottom-label {
    max-width: 100%;
    font-size: 10px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-item.active::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-top: 1px;
    border-radius: 50%;
    background: #2f8cff;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

body.chat-mobile-open .bottom-nav {
    display: none !important;
}
