/* ===================================
   TABBAR - NAVEGAÇÃO INFERIOR
   =================================== */

.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #06060f;
    border-top: 1px solid #0f0f20;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: #2e2e50;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    min-width: 60px;
}

.tabbar-item i {
    font-size: 20px;
    transition: all 0.2s;
}

.tabbar-item span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabbar-item:hover,
.tabbar-item.active {
    color: #00d4ff;
}

.tabbar-item.active i {
    color: #00d4ff;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
    transform: scale(1.15);
}

.tabbar-item.active span {
    color: #00d4ff;
}

.tabbar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #00d4ff;
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* Badge de notificações */
.chat-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #ff4454;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ===================================
   MODAL CHAT AO VIVO
   =================================== */

.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 8, 0.97);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    flex-direction: column;
}

.chat-modal.active {
    display: flex;
}

/* Ajuste mobile para não ser cortado pelo tabbar */
body.tabbar-active .content,
body.tabbar-active main {
    padding-bottom: 80px;
}

/* Esconder tabbar em desktop */
@media (min-width: 769px) {
    .tabbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .tabbar-item span {
        font-size: 9px;
    }

    .tabbar-item i {
        font-size: 18px;
    }
}