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

.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Continuação EXATA do fundo do site (includes/casino-polish.php) — mesma cor,
       mesma pegada. background-attachment:fixed ancora o gradiente ao viewport,
       então a barra coincide pixel a pixel com o body por baixo: deixa de ser uma
       "laje" escura e vira o próprio fundo da casa. */
    background:
        radial-gradient(1100px 540px at 50% -10%, rgba(28,140,255,.12) 0%, rgba(28,140,255,0) 60%),
        radial-gradient(820px 520px at 92% 4%, rgba(0,212,255,.07) 0%, rgba(0,212,255,0) 55%),
        linear-gradient(180deg,#0b1f38 0%, #091726 36%, #070f1c 100%);
    background-attachment: fixed;
    border-top: 1px solid rgba(0, 212, 255, 0.18);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
    /* Sem sombra preta (era ela que desenhava a borda de "laje"); só um respiro azul */
    box-shadow:
        0 -1px 0 rgba(0, 212, 255, 0.18),
        0 -12px 30px rgba(28, 140, 255, 0.08);
}

/* Linha de brilho azul no topo (efeito/vida, sem separar a barra do fundo) */
.tabbar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    filter: blur(0.5px);
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: #9099b2;
    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;
    }
}