    /* ==========================================================================
       ORGANIZAÇÃO GERAL DA BARRA
       ========================================================================== */
    #nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        position: relative !important; 
    }

    /* Força o Bloco da Logo perfeitamente alinhado à esquerda */
    .nav-wrapper {
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
    }

    /* Centraliza os links de navegação principais */
    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 0 auto !important; 
    }

    .nav-links a {
        white-space: nowrap !important;
    }

    /* Impede que botões da direita sofram esmagamento de layout */
    .nav-cta, .language-dropdown {
        display: flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .nav-cta {
        margin-left: 20px !important;
    }

    .language-dropdown {
        margin-left: 15px !important;
        margin-right: 0 !important;
    }

    /* Estilização Base de Dropdowns Convencionais do CMS */
    .dropdown:hover > .dropdown-menu:not(.mega-menu-panel) {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .dropdown-menu {
        margin-top: 0 !important; 
    }

    /* Estilos Customizados do Contador de Players */
    .nav-players-counter {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: 20px;
    }

    .counter-title {
        font-size: 11px;
        color: #626674;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2px;
        width: 100%;
        white-space: nowrap !important;
    }

    .counter-number {
        font-size: 20px;
        font-weight: bold;
        color: #ffffff;
        margin: 2px 0;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    .counter-date {
        font-size: 10px;
        color: #4a4d5a;
        white-space: nowrap;
    }

    /* Linha Divisória Estilizada */
    .nav-divider {
        width: 1px;
        height: 50px;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
        margin: 0 25px;
        flex-shrink: 0 !important;
    }

    /* ==========================================================================
       ARQUITETURA DO NOVO MEGA DROPDOWN MENU
       ========================================================================== */
    .mega-dropdown {
        position: static !important; 
        padding-bottom: 25px !important; 
        margin-bottom: -25px !important; 
    }

    /* Painel Flutuante do Mega Menu (Desktop) */
    .dropdown-menu.mega-menu-panel {
        position: absolute !important;
        top: 100% !important; 
        left: 50% !important;
        transform: translateX(-50%) translateZ(0) !important; 
        width: 90% !important;
        max-width: 1300px !important; 
        
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: opacity 0.18s ease-in-out, visibility 0.18s ease-in-out !important;
        
        isolation: isolate !important;
        mix-blend-mode: normal !important;
        
        background: rgba(11, 13, 18, 0.45) !important;
        background-color: rgba(11, 13, 18, 0.98) !important;
        backdrop-filter: blur(25px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(160%) !important;
        
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-top: none !important; 
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75) !important;
        padding: 30px 40px !important;
        z-index: 999999 !important;
        border-radius: 0 0 8px 8px; 
    }

    .mega-dropdown::before {
        content: '';
        position: absolute;
        top: 60%;
        left: 0;
        width: 100%;
        height: 45px;
        background: transparent !important;
        display: none !important;
        z-index: 99998 !important;
    }

    /* Hover apenas em telas grandes (Desktop) */
    @media (min-width: 992px) {
        .mega-dropdown:hover .dropdown-menu.mega-menu-panel {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        .mega-dropdown:hover::before {
            display: block !important;
        }
    }

    .mega-menu-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
        justify-content: space-between !important; 
        align-items: flex-start !important;
        width: 100% !important;
    }

    .mega-column {
        display: flex;
        flex-direction: column;
        flex: 1 1 0% !important; 
        width: 100% !important;
        min-width: 0; 
        padding-right: 20px;
        padding-left: 20px;
        box-sizing: border-box !important;
    }

    .mega-column:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .mega-title {
        font-size: 11px !important;
        color: #3b82f6 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        margin-bottom: 15px !important;
        font-weight: bold !important;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; 
        padding-bottom: 5px !important;
    }

    .mega-column:first-child {
        padding-left: 0 !important;
    }
    .mega-column:last-child {
        padding-right: 0 !important;
    }

    .mega-links-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 8px !important;
    }

    .mega-links-list li a {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #9ca3af;
        position: relative;
        padding-bottom: 4px;
    }

    .mega-links-list li a:hover {
        color: #ffffff !important;
        background: transparent !important; 
    }

    /* ==========================================================================
       SUPORTE RECEPTIVO PARA CELULAR E TABLET (MOBILE) CORRIGIDO
       ========================================================================== */
    @media (max-width: 991px) {
        .nav-players-counter, .nav-divider, .mega-dropdown::before {
            display: none !important;
        }
        
        #nav {
            display: block !important;
            position: relative !important;
        }

        /* Modificado para esconder os links e os botões flutuantes no fluxo padrão */
        .nav-links {
            display: none !important; 
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 15px !important;
            padding: 20px !important;
            margin: 0 !important;
            background: #0b0d12 !important; /* Acompanha o fundo escuro do seu layout */
            border-radius: 8px;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        
        /* Classes comuns de ativação para abrir o menu do CMS */
        .nav-links.show, .nav-links.active, .open .nav-links, .in .nav-links {
            display: flex !important;
        }

        /* Remove margens do desktop e joga os botões para a lista vertical */
        .nav-cta, .language-dropdown {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 8px 0 !important;
            width: 100% !important;
            justify-content: flex-start !important;
        }
        
        /* CORREÇÃO DO SELETOR: Oculta o IDIOMA solto para não quebrar o topo do mobile */
        .language-dropdown {
            display: none !important; 
        }
        
        /* Mostra o IDIOMA alinhado apenas quando o container do menu abrir */
        .nav-links.show .language-dropdown, 
        .nav-links.active .language-dropdown, 
        .open .language-dropdown,
        .in .language-dropdown {
            display: flex !important;
        }
        
        /* Ajustes do comportamento do Mega Menu no mobile */
        .mega-dropdown {
            position: relative !important;
            padding-bottom: 0 !important;
            margin-bottom: 0 !important;
            width: 100%;
        }

        /* O painel agora inicia ESCONDIDO e só abre no clique (comportamento padrão de dropdown mobile) */
        .dropdown-menu.mega-menu-panel {
            display: none !important; 
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            top: 0 !important;
            left: 0 !important;
            transform: none !important;
            width: 100% !important;
            max-width: 100% !important;
            box-shadow: none !important;
            padding: 15px !important;
            background-color: #15171e !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: none !important;
            border-radius: 4px;
            margin-top: 5px !important;
        }

        /* Mostra o menu interno quando o botão pai for clicado/focado no mobile */
        .mega-dropdown:focus-within .dropdown-menu.mega-menu-panel,
        .mega-dropdown.open .dropdown-menu.mega-menu-panel,
        .mega-dropdown:hover .dropdown-menu.mega-menu-panel {
            display: block !important;
        }

        .mega-menu-container {
            flex-direction: column !important;
            gap: 20px !important;
        }

        .mega-column {
            width: 100% !important;
            border-right: none !important;
            padding-right: 0 !important;
            padding-left: 0 !important;
        }
        
        .mega-title {
            border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        }
    }
    
    
    
/* Container do Status */
.server-status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espaço entre a bolinha e o texto */
    font-weight: bold;
                                }
                                
/* Cria a bolinha de status antes do texto */
.server-status-wrapper::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
                                }
                                
/* SE O STATUS FOR ONLINE (Glow Verde) */
/* Nota: Altere '.Online' caso a classe ou o texto gerado pelo seu CMS seja diferente */
.server-status-wrapper:has(:-webkit-any(.Online, :contains("Online")))::before,
.server-status-wrapper::before { 
    background-color: #2ecc71; /* Verde */
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse-green 2s infinite;
                                }
                                
/* SE O STATUS FOR OFFLINE (Glow Vermelho) */
.server-status-wrapper:has(:-webkit-any(.Offline, :contains("Offline")))::before {
    background-color: #e74c3c; /* Vermelho */
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse-red 2s infinite;
                                }
                                
/* Animação do Pulso Verde */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
                                }
                                
/* Animação do Pulso Vermelho */
@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
                                    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
                                    }
}




/* Esconde o balão de texto por padrão */
.tooltip-invasoes .tooltip-box {
display: none;
position: absolute;
bottom: 125%; /* Faz o balão aparecer acima do texto */
left: 50%;
transform: translateX(-50%);
background-color: #1a1a1e;
color: #fff;
text-align: left;
padding: 8px 12px;
border-radius: 4px;
border: 1px solid #3a3a40;
font-size: 12px;
white-space: nowrap;
z-index: 999;
box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

/* Mostra o balão com efeito ao passar o mouse */
.tooltip-invasoes:hover .tooltip-box {
    display: block;
}




/* Efeito de fundo na linha */
tr.salas:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    transition: background 0.2s ease;
}

/* Efeito de aumento de fonte nas células */
tr.salas:hover td {
    font-size: 14.4px !important;
    transition: font-size 0.2s ease, border 0.2s ease;
}

/* Transição suave para a borda não aparecer do nada */
tr.salas td {
    border-top: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    transition: border 0.2s ease, font-size 0.2s ease;
}