
body {
    background-color: #1A202C; /* Cor de fundo caso a imagem falhe */
}

@media (max-width: 1900px) {
    /* Esconde a sidebar direita */
    .right-sidebar {
        display: none !important;
    }

    /* Esconde ESSE anúncio específico que você renomeou */
    .ad-main-view-footer {
        display: none !important;
    }

    /* Corrige o alinhamento: Remove a 3ª coluna e centraliza o resto */
    .main-layout-grid {
        grid-template-columns: 92px 1fr !important; /* Apenas Sidebar Esquerda e Conteúdo */
        gap: 20px;
    }

    .center-content, .main-view {
        width: 100% !important;
        max-width: none !important;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* Garante que o container tenha altura fixa imediatamente */
.top-nav-content {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible; /* Permite que o dropdown "vaze" para fora da barra */
}

/* Define tamanho fixo para os ícones para o navegador reservar o espaço */
.mobile-icon-nav .nav-icon-link i {
    width: 24px; /* Largura aproximada do ícone */
    height: 24px; /* Altura aproximada do ícone */
    display: inline-block;
    text-align: center;
    font-size: 1.2rem; /* Garante tamanho da fonte consistente */
}

/* Opcional: Prevenir flash de ícones não carregados */
.fas {
    min-width: 1em;
    min-height: 1em;
    display: inline-block;
}

.ad-sidebar-wrapper-dig {
    background-color: #242526;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #3e4042;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* ============================================= */
/* === ANÚNCIOS (AD MANAGER) === */
/* ============================================= */

/* Container genérico para centralizar e dar margem */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 15px 0;
    width: 100%;
    /* Opcional: cor de fundo para saber onde está o ad se ele demorar a carregar */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 90px; /* Evita o "pulo" de layout (CLS) */
}

/* --- Anúncio na Lateral (Sidebar) --- */
.ad-sidebar-wrapper {
    background-color: #242526; /* Mesma cor dos cards da sidebar */
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #3e4042;
    text-align: center;
}

/* --- Anúncio no Grid de Notícias --- */
.ad-grid-fullwidth {
    /* Faz o anúncio ocupar a linha inteira do Grid de 12 colunas */
    grid-column: 1 / -1;
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #3e4042;
    border-radius: 12px;
    display: flex;
    justify-content: center;
}



/*fim css ads*/


.mobile-icon-nav .nav-icon-link {
            -webkit-user-select: none; /* Safari, Chrome, Opera */
            -moz-user-select: none;    /* Firefox */
            -ms-user-select: none;     /* IE/Edge */
            user-select: none;         /* Padrão */
            -webkit-tap-highlight-color: transparent; /* Remove o destaque de toque no mobile */
        }

.modular-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
    gap: 20px; /* Espaço entre os cards */
    margin-top: 20px;
}

/* O Card de Notícia Padrão */
.news-card-module {
    background: var(--bg-card); /* Usa suas variáveis */
    border: 1px solid #3e4042;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .news-card-module:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

.btn {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

/* ============================================= */
/* === GRID CÍCLICO INFINITO === */
/* ============================================= */

.modular-news-grid {
    display: grid;
    /* Mantemos 12 colunas para divisões precisas */
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-top: 20px;
    /* grid-auto-flow: dense; ajuda a preencher buracos se houver diferenças de altura */
    grid-auto-flow: dense;
}

/* --- ESTILO PADRÃO DOS CARDS --- */
.news-card-module {
    background: var(--bg-card);
    border: 1px solid #3e4042;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    transition: transform 0.2s;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-module .news-card-img-wrapper {
    flex-grow: 1;
    overflow: hidden;
    min-height: 150px; /* Garante que a imagem sempre apareça */
}

.news-card-body {
    padding: 15px;
    background-color: #242526;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* ============================================= */
/* === LÓGICA DO LOOP (Ciclo de 6 Itens) === */
/* ============================================= */

/* A lógica é baseada em múltiplos de 6. 
   "6n + 1" significa: Item 1, Item 7, Item 13...
*/

/* [POSIÇÃO 1] O Grande da Esquerda (Item 1, 7, 13...) */
.modular-news-grid .news-card-module:nth-child(6n + 1) {
    grid-column: span 6; /* Metade da tela */
    grid-row: span 2; /* 2 linhas de altura */
}
    /* Destaque visual para o primeiro do grupo */
    .modular-news-grid .news-card-module:nth-child(6n + 1) .news-card-title {
        font-size: 1.6rem;
    }

/* [POSIÇÃO 2 e 3] Os Pequenos do Topo (Item 2, 3, 8, 9, 14, 15...) */
.modular-news-grid .news-card-module:nth-child(6n + 2),
.modular-news-grid .news-card-module:nth-child(6n + 3) {
    grid-column: span 3; /* 1/4 da tela cada */
    grid-row: span 1;
}

/* [POSIÇÃO 4] O Grande da Direita Baixo (Item 4, 10, 16...) */
/* Ele flutua para a direita para ficar embaixo dos pequenos */
.modular-news-grid .news-card-module:nth-child(6n + 4) {
    grid-column: 7 / span 6; /* Começa na col 7 e vai até o fim */
    grid-row: span 2;
}

/* [POSIÇÃO 5] O Retângulo Esquerda Baixo (Item 5, 11, 17...) */
.modular-news-grid .news-card-module:nth-child(6n + 5) {
    grid-column: span 6;
    grid-row: span 1;
}

/* [POSIÇÃO 6] O BANNER / LINHA ÚNICA (Item 6, 12, 18...) */
/* Este é o item que você pediu para ser "apenas um" na linha */
.modular-news-grid .news-card-module:nth-child(6n) {
    grid-column: 1 / -1; /* Largura total (Full Width) */
    grid-row: span 1; /* Altura normal ou maior se preferir */
    flex-direction: row; /* Opcional: Imagem lado a lado com texto */
    height: 292px;
}

    /* Ajuste específico para o banner (imagem lado a lado) */
    .modular-news-grid .news-card-module:nth-child(6n) .news-card-img-wrapper {
        width: 50%; /* Imagem metade */
        height: auto;
    }

    .modular-news-grid .news-card-module:nth-child(6n) .news-card-body {
        width: 50%; /* Texto metade */
        justify-content: center;
    }

.news-card-meta {
    margin-top: auto; /* 1. Empurra para o fundo do card */
    display: flex; /* 2. Habilita flexbox dentro da meta */
    justify-content: flex-end; /* 3. Alinha os itens (data/botão) à DIREITA */
    align-items: center; /* 4. Centraliza verticalmente data e botão */
    gap: 15px; /* 5. Espaço entre a data e o botão */
    padding-top: 17px;
    width: 100%;
}

.news-card-excerpt 
{
    padding-top: 11px;
}


    /* ============================================= */
    /* === RESPONSIVIDADE MOBILE === */
    /* ============================================= */
    @media (max-width: 900px) {
        .modular-news-grid {
            grid-template-columns: 1fr; /* 1 Coluna para tudo */
            grid-auto-rows: auto;
        }
            /* Reseta todas as regras complexas acima */
            .modular-news-grid .news-card-module:nth-child(n) {
                grid-column: auto !important;
                grid-row: auto !important;
                flex-direction: column !important; /* Volta imagem pra cima */
                min-height: auto;
            }
                /* Reseta larguras internas */
                .modular-news-grid .news-card-module:nth-child(n) .news-card-img-wrapper,
                .modular-news-grid .news-card-module:nth-child(n) .news-card-body {
                    width: 100% !important;
                }

        .news-card-img {
            height: 200px; /* Altura padrão mobile */
        }
    }


    /* ============================================= */
    /* === CSS DO DASHBOARD STEAM === */
    /* ============================================= */
    .container {
        display: flex;
        flex-wrap: wrap; /* Permite que as colunas quebrem em telas pequenas */
        gap: 20px;
    }

.column {
    flex: 1;
    min-width: 300px;
    background-color: #242526;
    padding: 20px;
    padding-bottom: 15px;
    border-radius: 12px;
}

    .center-content {
        /* Permite que o conteúdo empurre a página para baixo */
        min-height: 100vh;
        height: auto !important;
        overflow-y: visible !important;
    }

    /* Garante que o container pai também deixe rolar */
    .main-layout-grid {
        height: auto !important;
        min-height: 100vh;
    }

    .column h2 {
        color: #ffffff;
        padding-bottom: 5px;
    }

    .column hr {
        border-color: #2a3f5a;
        margin: 30px 0;
        border-style: solid;
        border-width: 1px;
    }

    /* --- GRID PRINCIPAL --- */
    .news-grid {
        display: grid;
        /* Coluna da esquerda (1.6x maior) e direita (1x) */
        grid-template-columns: 1.6fr 1fr;
        gap: 24px;
        margin-top: 20px;
        /* Define uma altura fixa para alinhar os cards (opcional, mas fica igual a foto) */
        min-height: 480px;
    }

    /* --- ESTILOS GERAIS DOS CARDS --- */
    .card {
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    /* --- CARD DESTAQUE (ESQUERDA) --- */
    .card-featured {
        background-size: cover;
        background-position: center;
        justify-content: flex-end; /* Joga o texto para baixo */
    }

    /* Gradiente preto sobre a imagem para o texto aparecer */
    .featured-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0, 0.95) 0%, rgba(0,0,0, 0.3) 60%, transparent 100%);
        z-index: 1;
    }

    .featured-content {
        position: relative;
        z-index: 2;
        padding: 30px;
    }

    .card-featured .article-title {
        font-size: 1.8rem;
        color: #fff;
        margin-bottom: 12px;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .card-featured .article-excerpt {
        color: #ddd;
        margin-bottom: 20px;
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Limita texto a 3 linhas */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- CARD LATERAL (DIREITA) --- */
    .side-column {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card-secondary {
        background: linear-gradient(145deg, #121212 0%, #0a0a0a 100%); /* Fundo escuro tech */
        padding: 30px;
        flex: 1;
        justify-content: space-between;
        margin-top: 9px;
    }

    .brand-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        font-weight: 600;
        color: #fff;
        opacity: 0.9;
    }

    .secondary-body .article-title {
        font-size: 1.4rem;
        color: #fff;
        margin-bottom: 10px;
    }

    .secondary-body .article-excerpt {
        color: #999;
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .meta-date {
        font-size: 0.85rem;
        color: #666;
        margin-top: 10px;
    }

    /* --- BOTÕES --- */
    /* Estilo base para manter o tamanho */
    .btn-open-article {
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        font-size: 1rem;
        transition: 0.3s;
        border: none;
        text-decoration: none;
        display: inline-block;
    }

    /* Botão Destaque (Sólido - Usa sua variável --accent se quiser, ou azul fixo) */
    .btn-primary {
        background-color: var(--accent, #00aaff);
        color: white;
    }

        .btn-primary:hover {
            filter: brightness(1.1);
        }

    /* Botão Lateral (Outline/Escuro) */
    .btn-dark {
        background-color: transparent;
        border: 1px solid var(--accent, #00aaff);
        color: white;
        width: 100%; /* Ocupa largura total na lateral */
        margin-top: 15px;
    }

        .btn-dark:hover {
            background-color: var(--accent, #00aaff);
        }



    /* Estilos do Lado Esquerdo */
    .news-item {
        margin-bottom: 20px;
        border-bottom: 1px solid #2a3f5a;
        padding-bottom: 15px;
    }

        .news-item h3 {
            margin-top: 0;
        }

        .news-item a {
            text-decoration: none;
            color: #66c0f4;
            font-size: 1.1em;
        }

            .news-item a:hover {
                color: #ffffff;
            }

        .news-item p {
            font-size: 0.8em;
            color: #8f98a0;
            margin: 5px 0 0 0;
        }

    .game-list {
        padding-left: 0;
    }

        .game-list li {
            list-style: none;
            margin-bottom: 10px;
            background-color: #2a3f5a;
            padding: 5px;
            border-radius: 3px;
            display: flex;
            align-items: center;
        }

        .game-list img {
            width: 100px;
            vertical-align: middle;
            margin-right: 10px;
        }

    /* Estilo para a lista de Destaques/Promoções */
    .specials-list {
        padding-left: 0;
        /* ATIVA O MODO GRADE (GRID) */
        display: grid;
        /* Cria colunas automáticas com no mínimo 250px de largura cada */
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px; /* Espaço entre os jogos */
        padding-top: 10px;
    }

        .specials-list li {
            list-style: none;
            background-color: #2a3f5a;
            border-radius: 3px;
            overflow: hidden;
            /* Removemos o margin-bottom pois o 'gap' acima já cuida do espaço */
            display: flex;
            flex-direction: column; /* Garante que a imagem fique em cima e texto embaixo */
        }

        .specials-list img {
            width: 100%;
            display: block;
        }

        .specials-list .game-info {
            padding: 10px;
        }

        .specials-list .game-name {
            font-size: 1.1em;
            font-weight: bold;
            color: #ffffff;
        }

        .specials-list .game-prices {
            margin-top: 5px;
            display: flex;
            align-items: center;
        }

        .specials-list .discount {
            background-color: #a9d15c;
            color: #171a21;
            font-weight: bold;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 1.1em;
            margin-right: 10px;
        }

        .specials-list .prices {
            display: flex;
            flex-direction: column;
        }

        .specials-list .original-price {
            font-size: 0.8em;
            color: #8f98a0;
            text-decoration: line-through;
        }

        .specials-list .final-price {
            font-size: 1em;
            color: #a9d15c;
        }

    /* Estilos do Lado Direito */
    .price-info {
        font-size: 1.5em;
        color: #a9d15c;
    }

        .price-info .original {
            text-decoration: line-through;
            color: #8f98a0;
            font-size: 0.8em;
            margin-left: 10px;
        }

    .disclaimer {
        font-size: 0.9em;
        color: #8f98a0;
        border: 1px dashed #8f98a0;
        padding: 10px;
        margin-top: 20px;
    }

    .error {
        color: #ff6b6b;
        font-weight: bold;
        background-color: #3d2a2a;
        padding: 10px;
        border-radius: 4px;
    }

    /* Estilo do Perfil de Usuário */
    .profile-box {
        background-color: #2a3f5a;
        padding: 15px;
        border-radius: 5px;
        display: flex;
        align-items: center;
    }

        .profile-box img {
            border-radius: 3px;
            border: 2px solid #66c0f4;
            margin-right: 15px;
        }

        .profile-box a {
            color: #ffffff;
            font-size: 1.2em;
            text-decoration: none;
            font-weight: bold;
        }

            .profile-box a:hover {
                color: #66c0f4;
            }

    /* Estilo da Biblioteca de Jogos */
    .gamelist-owned {
        padding-left: 0;
    }

        .gamelist-owned li {
            list-style: none;
            margin-bottom: 10px;
            background-color: #2a3f5a;
            padding: 8px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .gamelist-owned .game-details {
            display: flex;
            align-items: center;
        }

        .gamelist-owned img {
            width: 32px; /* Ícone é pequeno */
            height: 32px;
            margin-right: 10px;
        }

        .gamelist-owned .game-playtime {
            font-size: 0.9em;
            color: #a9d15c;
            font-weight: bold;
        }

    .right-sidebar {
        margin-bottom: -20px;
        position: sticky; /* <-- CORRIGIDO */
        top: 75px; /* <-- ADICIONADO (para saber onde grudar) */
    }

    #chat-status-widget {
        position: fixed !important;
        bottom: 0;
        width: 318px;
        flex-shrink: 0;
        z-index: 1000;
        background-color: #242526;
        border-radius: 8px 8px 0 0;
        border: 1px solid #3e4042;
        overflow: hidden;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .create-post-input {
        width: 100%;
        border: 1px solid #3e4042;
        background-color: #18191a;
        border-radius: 8px;
        padding: 10px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    #chat-windows-container {
        /* ▼▼▼ CORREJA AQUI ▼▼▼ */
        position: fixed; /* ANTES: position: absolute; */
        /* ▲▲▲ FIM DA CORREÇÃO ▲▲▲ */

        bottom: 0;
        right: 0px;
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-end;
        height: auto;
        z-index: 1001; /* Z-index MAIOR (fica na frente do widget) */

        background-color: transparent;
        border: none;
        box-shadow: none;
        width: auto;
        overflow: visible;
    }

    .article-players {
        font-size: 0.85rem;
        color: #b0b3b8;
        margin-top: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .article-players i {
            color: #28a745;
        }

    .create-post-card {
        background-color: #242526;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .create-post-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 15px;
    }

        .create-post-header h3 {
            font-size: 1.1rem;
            color: #e4e6eb margin: 0;
        }

    .create-post-input {
        width: 100%;
        border: 1px solid #3e4042;
        background-color: #18191a;
        border-radius: 8px;
        padding: 10px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

        .create-post-input img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .create-post-input textarea {
            flex-grow: 1;
            border: none;
            background: none;
            font-family: inherit;
            font-size: 1rem;
            color: #e4e6eb;
            resize: none;
            min-height: 40px;
            outline: none;
            overflow: hidden;
            line-height: 1.4;
            box-sizing: border-box;
        }

            .create-post-input textarea::placeholder {
                color: #b0b3b8;
            }

    .create-post-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #3e4042;
    }

        .create-post-footer .action-button {
            background-color: transparent;
            border: none;
            color: #b0b3b8;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.2s;
        }

            .create-post-footer .action-button:hover {
                color: white;
            }

        .create-post-footer .publish-button {
            background-color: #2d88ff;
            color: #18191a;
            border: none;
            padding: 8px 20px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.2s;
        }

            .create-post-footer .publish-button:hover {
                background-color: #5aa1e1;
            }

    .file-input-wrapper {
        position: relative;
        display: inline-block;
    }

        .file-input-wrapper input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

    .shared-post-wrapper {
        border-left: 3px solid #3e4042;
        padding-left: 15px;
        padding-top: 10px;
    }

        .shared-post-wrapper .post-header {
            margin-bottom: 10px;
        }

        .shared-post-wrapper .post-body {
            border: 1px solid #3e4042;
            border-radius: 8px;
            padding: 10px;
        }

    .shared-indicator {
        font-size: 0.8rem;
        color: #b0b3b8;
    }

    .comment-section.active {
        display: block;
    }

    .comment-display {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        align-items: flex-start;
    }

        .comment-display .comment-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: cover;
        }

    .submit-comment-button {
        background: none;
        color: white;
        border: none;
        padding: 8px 12px;
        margin-left: -10px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.6);
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background-color: #242526;
        padding: 25px;
        border-radius: 10px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        position: relative;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #3e4042;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

        .modal-header h2 {
            margin: 0;
            font-size: 1.2rem;
        }

    .modal-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #b0b3b8;
        cursor: pointer;
    }

    .modal-footer {
        margin-top: 20px;
        text-align: right;
    }

    .modal input, .modal textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        background-color: #242526;
        border: 1px solid #3e4042;
        border-radius: 5px;
        color: #e4e6eb
    }

    .modal-submit-btn {
        background-color: #2d88ff;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .modal-submit-btn:hover {
            background-color: #5aa1e1;
        }

    .friend-list .sidebar-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-right: 12px;
    }

    .friend-list .add-friend-btn {
        background-color: transparent;
        border: none;
        color: #b0b3b8;
        cursor: pointer;
        transition: color 0.2s;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 4px;
    }

        .friend-list .add-friend-btn:hover {
            color: white;
        }

    .top-nav-bar {
        background-color: #242526;
        border-bottom: 1px solid #3e4042;
        padding: 0;
        height: 55px;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 900;
        display: flex;
        align-items: center;
        position: fixed;
    }

    .top-nav-content {
        width: 100%;
        padding: 0 20px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }

    .top-nav-logo {
        font-weight: 700;
        font-size: 1.5rem;
        color: #e4e6eb
    }

    .icon-actions {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .notification-icon-wrapper {
        position: relative;
        cursor: pointer;
        color: #b0b3b8;
        font-size: 1.4rem;
    }

    .notification-count {
        position: absolute;
        top: -5px;
        right: -8px;
        background-color: #e74c3c;
        color: white;
        font-size: 0.7rem;
        font-weight: bold;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #242526;
    }

    .notification-dropdown {
        display: none;
        position: absolute;
        top: 150%;
        right: 0;
        width: 360px;
        background-color: #242526;
        border: 1px solid #3e4042;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        overflow: hidden;
    }

        .notification-dropdown.active {
            display: block;
            z-index: 1003;
        }

    .notification-dropdown-header {
        padding: 12px;
        font-weight: bold;
        border-bottom: 1px solid #3e4042;
    }

    .notification-list {
        max-height: 400px;
        overflow-y: auto;
    }

.notification-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    padding: 12px;
    font-size: 0.9rem;
    color: #b0b3b8;
    border-bottom: 1px solid #3e4042;
    /* ADICIONADO: Transição suave e opacidade reduzida para itens lidos */
    transition: background-color 0.2s, opacity 0.3s;
    opacity: 0.6; /* <-- Isso faz o efeito "lido/apagado" */
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background-color: #3a3b3c;
        opacity: 1; /* <-- Ao passar o mouse, fica nítido para ler */
    }

    /* ESTILO PARA NÃO LIDO (Destaque) */
    .notification-item.unread {
        /* Mudamos de cor sólida (#2d88ff) para um azul transparente 
           para o texto cinza continuar legível */
        background-color: rgb(0 0 0 / 15%);
        border-left: 3px solid #2d88ff; /* Barrinha azul na esquerda */
        color: #ffffff; /* Texto mais branco para destacar */
        opacity: 1; /* <-- Totalmente visível */
    }

    .notification-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .settings-icon-wrapper {
        cursor: pointer;
        color: #b0b3b8;
        font-size: 1.4rem;
        transition: color 0.2s;
    }

    .profile-card-unified {
        background: #242526;
        padding: 0;
        text-align: left;
    }

    .profile-card-header {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px 20px 15px 20px;
        border-bottom: 1px solid #3e4042;
    }

    .profile-card-avatar-lg {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 3px solid #2d88ff;
    }

    .profile-identity .profile-card-name {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0 0 5px 0;
        color: #e4e6eb
    }

    .profile-level-line {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .level-badge {
        background-color: #2d88ff;
        color: white;
        font-size: 0.75rem;
        font-weight: 700;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .level-title {
        font-size: 0.9rem;
        color: #b0b3b8;
        font-weight: 600;
    }

    .profile-xp-section {
        padding: 15px 20px;
    }

    .xp-bar-wrapper {
        background-color: #2d88ff;
        border-radius: 5px;
        height: 8px;
        padding: 2px;
        margin-bottom: 5px;
    }

    .xp-bar-progress {
        background-color: #2d88ff;
        height: 100%;
        border-radius: 3px;
        transition: width 0.5s ease-in-out;
    }

    .xp-bar-text {
        font-size: 0.75rem;
        color: #b0b3b8;
        margin: 0;
        text-align: center;
    }

    .profile-card-footer {
        background-color: rgba(0,0,0,0.2);
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #3e4042;
    }

    .xp-test-controls {
        margin: 0;
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .xp-test-btn {
        background-color: #2d88ff;
        border: 1px solid #3e4042;
        color: #b0b3b8;
        padding: 2px 8px;
        font-size: 10px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .xp-test-btn:hover {
            background-color: #3a3b3c
        }

    .mobile-icon-nav {
        display: none;
        align-items: center;
        justify-content: space-around;
        flex-grow: 0.9; /* Ocupa o espaço central */
        height: 100%;
        /* Adicione 'flex-basis' para garantir que ele não seja esmagado */
        flex-basis: 0;
    }

    .chat-message.is-media {
        background: none;
        background-color: transparent;
        padding: 0;
    }

        /* Garante que a imagem do GIF dentro da bolha de mídia
  tenha os cantos arredondados corretos.
*/
        .chat-message.is-media img {
            border-radius: 18px; /* O mesmo 'border-radius' da sua bolha normal */
            /* Ajusta o arredondamento para a bolha 'sent' */
            border-bottom-right-radius: 4px;
        }

    /* Corrige o canto da bolha 'received' (se necessário)
  Se suas bolhas recebidas também tiverem um canto diferente,
  adicione aqui. Ex:
*/
    .chat-message.received.is-media img {
        border-bottom-left-radius: 4px; /* Exemplo */
        border-bottom-right-radius: 18px; /* Exemplo */
    }

    .mobile-icon-nav .nav-icon-link {
        color: #b0b3b8;
        font-size: 1.4rem;
        transition: color 0.2s, border-bottom 0.2s;
        height: 100%;
        display: flex;
        align-items: center;
        border-bottom: none;
        text-decoration: none;
    }

        .mobile-icon-nav .nav-icon-link:hover, .mobile-icon-nav .nav-icon-link.active {
            border-bottom-color: #2d88ff;
        }

    .mobile-icon-nav .sidebar-avatar-mobile-nav {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #b0b3b8;
        transition: border-color 0.2s;
    }

    .mobile-icon-nav .nav-icon-link.active .sidebar-avatar-mobile-nav {
        border-color: #2d88ff;
    }

    .iframe-modal-content {
        background-color: transparent;
        border: none;
        width: 100%;
        height: 100%;
        padding: 0;
        position: relative;
    }

        .iframe-modal-content iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

    .iframe-modal-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #fff;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        cursor: pointer;
        z-index: 1001;
    }

    .sidebar-link.group-active {
        color: var(--accent-color) !important;
        background-color: #3a3b3c font-weight: bold;
    }

    #user-groups-card .sidebar-card-title {
        cursor: pointer;
        position: relative;
        user-select: none;
    }

        #user-groups-card .sidebar-card-title::after {
            content: ' \25BC';
            font-size: 0.8em;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            transition: transform 0.2s ease-in-out;
        }

    #user-groups-card.collapsed .sidebar-card-title::after {
        transform: translateY(-50%) rotate(-90deg);
    }

    #user-groups-card.collapsed .group-list {
        display: none;
    }

    /* INÍCIO: Estilos adicionados para o ícone do grupo */
    .sidebar-group-icon {
        width: 22px;
        height: 22px;
        border-radius: 4px;
        object-fit: cover;
        vertical-align: middle;
        flex-shrink: 0; /* Impede que a imagem encolha */
    }

    .sidebar-link i.fa-users { /* Garante que o ícone de fallback tenha o mesmo espaço */
        width: 22px;
        text-align: center;
        margin-right: 7px;
        margin-left: 6px;
        vertical-align: middle;
        flex-shrink: 0;
    }
    /* FIM: Estilos adicionados para o ícone do grupo */
    .main-layout-grid {
        min-height: 100vh;
        box-sizing: border-box; /* Impede que o padding aumente a altura total */
        /* Padding padrão para desktop (55px header + 20px espaço) */
        padding-top: 75px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }


    .main-view.active {
        flex-grow: 1; /* Faz o iframe crescer para ocupar o espaço disponível no container flex */
        border: none; /* Remove a borda padrão do iframe */
        align-self: anchor-center;
        width: 97%;
    }



    /* ================================================================ */
    /* --- Regras de Layout para Telas Menores (Desktop e Tablet) --- */
    /* ================================================================ */

    @media (max-width: 1900px) {
        /* Colapsa o sidebar esquerdo */
        .left-sidebar .sidebar-link span,
        .left-sidebar .sidebar-card-title {
            display: none;
        }

        .ad-responsive-1900 {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            opacity: 0 !important;
            pointer-events: none !important;
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .left-sidebar .sidebar-link {
            justify-content: center;
            padding-left: 0;
            padding-right: 0;
        }

        .sidebar-link i.fa-users { /* Garante que o ícone de fallback tenha o mesmo espaço */

            margin-left: 7px;
        }

        .left-sidebar .sidebar-link .sidebar-avatar-small {
            margin-right: 0;
        }
        /* Redefine o Grid: 80px (Left Sidebar colapsado) + 1fr (Center) + auto (Right Sidebar) */
        .main-layout-grid {
            grid-template-columns: 80px 1fr auto;
        }
        /* Mantém a barra direita com redimensionamento manual */
        .right-sidebar {
            width: 300px;
            overflow: auto;
            min-width: 280px;
            max-width: 450px;
        }

        /* Esconde a barra lateral direita */
        .right-sidebar {
            display: none;
        }
        /* Redefine o Grid: 80px (Left Sidebar colapsado) + 1fr (Center) */
        .main-layout-grid {
            grid-template-columns: 80px 1fr;
        }
    }

    @media screen and (min-width: 1901px) {
        .ad-responsive-1900 {
            display: block !important;
            /* Ou flex, dependendo do seu layout original */
            visibility: visible !important;
            height: auto !important;
            opacity: 1 !important;
        }
    }


    @media (max-width: 1400px) {
        .modular-news-grid {
            /* Muda de 12 colunas para apenas 2 colunas iguais */
            grid-template-columns: 1fr 1fr !important;
            grid-auto-rows: auto !important;
            gap: 15px;
        }

            /* RESETA toda a lógica complexa (6n+1, 6n+4, etc) do Desktop */
            .modular-news-grid .news-card-module:nth-child(n) {
                grid-column: auto !important; /* Ocupa apenas 1 espaço */
                grid-row: auto !important; /* Altura automática */
                flex-direction: column !important; /* Imagem sempre em cima */
                height: auto !important; /* Remove altura fixa do banner */
                min-height: 380px; /* Altura mínima para ficar bonito */
            }

                /* Garante que a imagem e o texto ocupem 100% da largura do card */
                .modular-news-grid .news-card-module:nth-child(n) .news-card-img-wrapper,
                .modular-news-grid .news-card-module:nth-child(n) .news-card-body {
                    width: 100% !important;
                    height: auto !important;
                }

                /* Ajuste da altura da imagem para não ficar gigante */
                .modular-news-grid .news-card-module:nth-child(n) .news-card-img {
                    height: 200px;
                    object-fit: cover;
                }
    }


    /* ================================================================ */
    /* --- REGRAS MOBILE CORRIGIDAS E CONSOLIDADAS (max-width: 768px) --- */
    /* ================================================================ */
    @media (max-width: 768px) {
        /* =========================================
       1. NAVEGAÇÃO E ELEMENTOS DO SISTEMA
       ========================================= */
        .mobile-icon-nav {
            display: flex;
        }

        .top-nav-content {
            padding: 0 10px;
        }

        .top-nav-logo {
            display: none;
        }

        /* Oculta Sidebars e Widgets de Desktop */
        .left-sidebar,
        .right-sidebar,
        #chat-status-widget,
        .library-highlight-thumbnails {
            display: none !important;
        }

        /* =========================================
       2. LAYOUT PRINCIPAL (GRID)
       ========================================= */
        .main-layout-grid {
            grid-template-columns: 1fr !important;
            padding-top: 65px !important;
            padding-bottom: 70px !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
            width: 100%;
            height: auto !important;
            min-height: 100vh;
        }

        .main-view, #gaming-view {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
        }

        /* =========================================
       3. CORREÇÃO: SHOWCASE DE JOGOS
       ========================================= */
        .recent-games-showcase {
            display: flex !important;
            flex-direction: column !important; /* O Card Principal fica em cima */
            height: auto !important;
            min-height: auto !important;
            gap: 15px !important;
        }

        /* Card Principal (Imagem Grande) */
        .recent-main-wrapper {
            width: 100% !important;
            flex: none !important;
            height: 220px;
        }

        .recent-main-card {
            height: 100% !important;
            background-size: cover;
            background-position: center;
        }

        /* --- CORREÇÃO: CARROSSEL LADO A LADO (SEM SCROLL) --- */
        .recent-carousel {
            display: flex !important;
            flex-direction: row !important; /* Força ficar um ao lado do outro */
            width: 100% !important;
            overflow: hidden !important; /* Remove qualquer rolagem */
            padding-bottom: 0 !important;
            gap: 8px !important; /* Espaço pequeno entre eles */
            height: auto !important;
        }

        .recent-carousel-card {
            flex: 1 !important; /* Faz cada card ocupar 1/3 do espaço disponível */
            width: auto !important; /* Reseta larguras fixas */
            min-width: 0 !important; /* Permite que o card encolha se necessário */
            height: 100px !important; /* Altura menor para ficar proporcional */

            border-radius: 8px;
            background-size: cover !important;
            background-position: center !important;
            margin: 0 !important;
        }

        /* =========================================
       4. CORREÇÃO: DASHBOARD STEAM
       ========================================= */
        .container {
            flex-direction: column !important;
            width: 100% !important;
            padding: 0 !important;
        }

        .column {
            min-width: 0 !important;
            width: 100% !important;
            margin-bottom: 20px;
            padding: 10px !important;
        }

        .specials-list {
            grid-template-columns: 1fr !important;
        }

            .specials-list img {
                width: 100% !important;
                height: auto !important;
            }

        /* =========================================
       5. CORREÇÃO: ANÚNCIOS (IFRAMES)
       ========================================= */
        .ad-grid-fullwidth iframe,
        .ad-container iframe,
        iframe[width="728"] {
            max-width: 100% !important;
            width: 100% !important;
            height: auto !important;
        }

        .ad-grid-fullwidth {
            width: 100% !important;
            box-sizing: border-box;
            overflow: hidden;
            margin: 10px 0;
            padding: 0 !important;
        }

        /* =========================================
       6. CORREÇÃO: GRID DE NOTÍCIAS
       ========================================= */
        .modular-news-grid {
            display: flex !important;
            flex-direction: column !important;
            grid-template-columns: 1fr !important;
        }

            .modular-news-grid .news-card-module:nth-child(1) {
                flex-direction: column;
                background-color: black;
            }

            .modular-news-grid .news-card-module {
                width: 100% !important;
                margin-bottom: 15px;
            }

                .modular-news-grid .news-card-module:nth-child(n) .news-card-img-wrapper,
                .modular-news-grid .news-card-module:nth-child(n) .news-card-body {
                    width: 100% !important;
                }

        .news-grid {
            grid-template-columns: 1fr;
            min-height: auto;
        }

        .card {
            min-height: auto;
        }

        .my-library-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px !important;
        }

        .minimalist-banner-grid {
            grid-template-columns: 1fr;
        }

        .section-title {
            font-size: 1.5rem;
        }

        .article-card-horizontal {
            flex-direction: column-reverse;
        }

            .article-card-horizontal .article-image {
                max-height: 200px;
            }
    }


    .icon-actions .notification-icon-wrapper,
    .icon-actions .settings-icon-wrapper,
    .icon-actions i {
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* IE10+/Edge */
        user-select: none; /* Padrão */
        -webkit-tap-highlight-color: transparent; /* Remove o quadrado azul ao tocar no Android/iOS */
        outline: none; /* Remove borda de foco */
        cursor: pointer;
    }

        /* Opcional: Efeito visual suave ao tocar (feedback) */
        .icon-actions .notification-icon-wrapper:active,
        .icon-actions .settings-icon-wrapper:active {
            opacity: 0.6;
            transform: scale(0.95);
        }