/* =================================================================
   1. ESTILOS GERAIS E BODY
   ================================================================= */
   body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-content-top {
    margin-top: 76px; /* Espaço para a navbar fixa */
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px auto;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* =================================================================
   2. NAVBAR
   ================================================================= */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /*border-bottom: 1px solid #667eea;*/
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* --- Navbar para telas menores --- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        border-radius: 10px;
        padding: 1rem;
        border: 1px solid #2a214d;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    .navbar-text {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =================================================================
   3. CABEÇALHOS E SEÇÕES DE DESTAQUE
   ================================================================= */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.fase-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin: 30px 0 20px 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.fase-header h4 {
    margin: 0;
    font-weight: 600;
}

/* =================================================================
   4. CARDS (Padrões e Variações)
   ================================================================= */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 20px;
}

.card-header h5, .card-header h6 {
    margin: 0;
    font-weight: 600;
}

.stats-card, .action-card, .info-card, .partida-card, .ranking-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover, .action-card:hover, .partida-card:hover, .ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stats-card { padding: 1.5rem; }
.action-card { padding: 2rem; text-align: center; }
.partida-card { overflow: hidden; }

/* --- Componentes Internos dos Cards --- */
.stats-card-icon { font-size: 2rem; }
.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partida-mini {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #667eea;
}

.countdown-timer {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
}

.ranking-position {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
}

.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.status-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* =================================================================
   5. PÁGINA DE PALPITES (Abas, Formulários, etc.)
   ================================================================= */
.nav-tabs {
    border: none;
    margin-bottom: 30px;
}

.nav-tabs .nav-link {
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 10px;
    margin-right: 10px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.time-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
}

.time-info {
    text-align: center;
    flex: 1;
}

.time-info strong {
    font-size: 1.1rem;
    color: #333;
}

.vs-separator {
    margin: 0 15px;
    font-weight: bold;
    color: #667eea;
    font-size: 1.2rem;
}

.gol-input-container .gol-input {
    width: 60px;
    text-align: center;
    margin: 0 auto; /* Centraliza o input dentro do container */
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.gol-input-container .gol-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.etapa-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.selected-teams {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.team-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.time-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* =================================================================
   6. PÁGINA DE RANKING E CLASSIFICAÇÃO (SEÇÃO ATUALIZADA)
   ================================================================= */
   .ranking-card {
    transition: all 0.2s ease-in-out;
}

.ranking-main-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaçamento entre os itens */
}

.ranking-card .ranking-position {
    flex-basis: 40px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.2rem;
}

.ranking-user-info {
    flex-grow: 1;
}

.nome-participante-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nome-participante-link .icon-ver-palpites {
    margin-left: 8px;
    color: #ccc;
    transition: color 0.2s;
    opacity: 0; /* Começa invisível */
}

.nome-participante-link:hover .icon-ver-palpites {
    color: #667eea;
    opacity: 1; /* Aparece no hover */
}

.ranking-points {
    flex-shrink: 0;
    text-align: right;
}

.pontos-breakdown {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 2px;
}

.ranking-card.usuario-atual {
    background-color: #eef2ff; /* Tom de azul mais sutil */
    border-left: 4px solid #667eea;
}

.table-custom th[title] {
    text-decoration: dotted underline;
    cursor: help;
}
.posicao-1, .posicao-2 {
    border-left: 4px solid #198754;
}

/* =================================================================
   7. PÁGINA DE LOGIN E REGISTRO
   ================================================================= */
.body-login {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    max-width: 450px;
    width: 90%;
    margin: auto;
    animation: slideInUp 0.6s ease-out;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
}

.login-header .subtitle {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-body {
    padding: 2rem;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   8. ELEMENTOS DE FORMULÁRIO (Inputs, Botões, etc.)
   ================================================================= */
.form-floating { margin-bottom: 1.5rem; }

.form-select, .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check {
    background: rgba(102, 126, 234, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.form-check:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-primary, .btn-success, .btn-warning, .btn-info, .btn-light-theme {
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-success:hover, .btn-warning:hover, .btn-info:hover, .btn-light-theme:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    width: 100%;
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
}
.btn-success:hover {
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}
.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}
.btn-info:hover {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.btn-light-theme {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.btn-light-theme:hover {
    background: white;
    color: #764ba2;
}

/* =================================================================
   9. MODAL E ALERTAS
   ================================================================= */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header-alt {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.card-header-alt h6 {
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

.card-alt-bg {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-info {
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =================================================================
   10. CHAT
   ================================================================= */
.chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: 90%;
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    max-height: 500px;
    transition: all 0.35s ease-in-out;
}

.chat-container .card-header {
    cursor: pointer;
}

.chat-container .card-body,
.chat-container .card-footer {
    transition: all 0.35s ease-in-out;
}

.chat-container.minimized .card-body,
.chat-container.minimized .card-footer {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

.chat-box {
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.chat-message-wrapper {
    display: flex;
    margin-bottom: 12px;
}

.chat-message-wrapper.sent { justify-content: flex-end; }
.chat-message-wrapper.received { justify-content: flex-start; }

.chat-message {
    padding: 8px 14px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
}

.chat-message-wrapper.sent .chat-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.chat-message-wrapper.received .chat-message {
    background-color: #f1f3f5;
    color: #333;
    border-radius: 18px 18px 18px 4px;
}

.chat-message .author {
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #3498db;
}

.chat-message-wrapper.sent .chat-message .author {
    color: rgba(255,255,255,0.8);
}

/* [ALTERAÇÃO VISUAL] - Regras para o rodapé da mensagem */
.chat-message .timestamp {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px; /* Espaço entre horário e botão */
    font-size: 0.75em;
    color: #999;
    margin-top: 4px;
}

/* [ALTERAÇÃO VISUAL] - Remove margens do botão quando ele está no rodapé */
.chat-message .timestamp .like-chat-wrapper {
    margin: 0;
}


.chat-message-wrapper.consecutive-message {
    margin-top: -8px;
}

.chat-container .card-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f1f1f1;
    background-color: #fff;
}

.chat-input-wrapper {
    position: relative;
    width: 100%;
}

#chat-message-input {
    border-radius: 20px;
    border: 1px solid #ddd;
    height: 45px;
    padding-right: 45px; 
}

#chat-message-input:focus {
    border-color: #667eea;
}

.btn-send-chat {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}

.btn-send-chat:hover {
    background: #764ba2;
}

#chat-notification-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 0.7em;
    padding: 4px 7px;
    border-radius: 50%;
}

@keyframes blink-animation {
    50% { background-color: #5a6abf; }
}

.chat-header.has-new-messages {
    animation: blink-animation 1.5s infinite;
}

/* [NOVO] Estilo para o separador de data */
.chat-date-separator {
    text-align: center;
    margin: 15px 0 10px;
    position: relative;
}

.chat-date-separator span {
    background-color: #f1f3f5;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* =================================================================
   11. ELEMENTOS DIVERSOS E UTILITÁRIOS
   ================================================================= */
.team-logo-inline {
    height: 20px;
    vertical-align: middle;
}

.partida-card-logo {
    height: 50px;
    vertical-align: middle;
}

.team-logo-table {
    height: 24px;
    width: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* =================================================================
   12. RESPONSIVIDADE E MEDIA QUERIES
   ================================================================= */
/* --- Telas de Tablet --- */
@media (max-width: 768px) {
    .page-content-top { margin-top: 60px; }
    .hero-section { padding: 1.5rem 0; margin-bottom: 1.5rem; }
    .main-container { margin: 10px; padding: 20px; border-radius: 15px; }
    .action-card { padding: 1.5rem; }
    .action-icon { font-size: 2.5rem; }
    .stats-card { padding: 1rem; }
    .chart-container {
      position: relative;
      min-height: 400px;
      width: 100%;
    }
}

/* --- Telas de Celular --- */
@media (max-width: 576px) {
    .page-content-top { margin-top: 60px; }
    .hero-section h1 { font-size: 2rem; }
    .ranking-position h2 { font-size: 1.5rem; }
    .btn-lg { padding: 10px 20px; font-size: 1rem; }
    
    .login-container { width: 95%; }
    .login-header, .login-body { padding: 1.5rem; }
    .login-header h3 { font-size: 1.5rem; }

    .partida-card .time-vs { flex-direction: row; gap: 10px; }
    .partida-card .vs-separator { display: block; }
    .partida-card-logo { height: 35px; }
    .alert ul.small { font-size: 0.8rem; }
    
    .chat-box {
        max-height: 65vh;
    }
    
    .chat-container.minimized {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        bottom: 15px;
        right: 15px;
    }
    .chat-container.minimized .card-header {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        border-radius: 50%;
    }
    .chat-container.minimized .card-header h5 {
        font-size: 1.5rem;
        margin: 0;
    }
    .chat-container.minimized .chat-header-text,
    .chat-container.minimized #chat-notification-badge {
        display: none;
    }
}

/* =================================================================
   13. PÁGINA DE CLASSIFICAÇÃO (CHAVEAMENTO)
   ================================================================= */
   .chaveamento-partida {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease-in-out;
}

.partida-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: normal;
    text-transform: uppercase;
}

.partida-id {
    font-weight: 500;
}

.partida-data {
    color: #adb5bd; /* Cor mais clara para a data */
}

.chaveamento-partida:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.chaveamento-time {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Alinha o segundo time à direita */
.chaveamento-time:last-of-type {
   flex-direction: row-reverse; 
}

.chaveamento-time span {
    color: #343a40;
}

.vs-separator-chaveamento {
    font-weight: bold;
    color: #667eea;
    margin: 0 15px;
}

.chaveamento-time.time-vencedor span {
    font-weight: bold;
    color: #198754; /* Verde para o vencedor */
}

.chaveamento-time.time-perdedor {
    opacity: 0.6; /* Levemente apagado para o perdedor */
}

/* =================================================================
   14. DESTAQUE DE TIME EM JOGO NA CLASSIFICAÇÃO
   ================================================================= */

/* Define a animação de piscar */
@keyframes blink-live {
    50% {
        opacity: 0.2;
    }
}

/* Adiciona um círculo vermelho antes do nome do time em jogo */
.table-custom .time-em-jogo td:nth-child(2)::before {
    content: '●'; /* O caractere do círculo */
    color: #dc3545; /* Cor vermelha (live) */
    font-size: 0.8em;
    margin-right: 8px;
    animation: blink-live 1.5s infinite;
}

/* Opcional: Um fundo levemente destacado para a linha inteira */
.table-custom .time-em-jogo {
    background-color: rgba(102, 126, 234, 0.05);
}

/* === CHAT: Curtidas estilo WhatsApp === */
.like-chat-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 1em;
}
.btn-like-chat {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1em;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.chat-message-wrapper:hover .btn-like-chat {
    opacity: 1;
    pointer-events: auto;
    color: #667eea;
}
.btn-like-chat.curtido {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
    opacity: 1;
    pointer-events: auto;
}
.btn-like-chat:hover {
    background: #f1f3f5;
    color: #764ba2;
}
.like-count-chat {
    min-width: 18px;
    text-align: center;
    color: #764ba2;
    font-weight: bold;
    font-size: 0.95em;
    background: #f1f3f5;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 2px;
    display: none;
}
.like-count-chat.has-likes {
    display: inline-block;
}

.emoji-reacao {
    font-size: 1em;
    vertical-align: middle;
    margin-right: 2px;
}
.contador-reacao {
    font-size: 0.95em;
    font-weight: bold;
    color: #764ba2;
    vertical-align: middle;
}

.menu-reacoes-chat {
    display: flex;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 4px 8px;
    z-index: 2000;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s;
}
.btn-reacao-menu {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: background 0.2s;
}
.btn-reacao-menu:hover {
    background: #f1f3f5;
}
.reacoes-list-chat {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    margin-left: auto;
}

.modal-reacoes-chat {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-reacoes-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px 32px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(102,126,234,0.15);
    text-align: center;
}
.modal-reacoes-content ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
}
.modal-reacoes-content li {
    padding: 2px 0;
    color: #764ba2;
    font-weight: 500;
}
.fechar-modal-reacoes {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 18px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.fechar-modal-reacoes:hover {
    background: #764ba2;
}

/* =================================================================
   15. PÁGINA DE CONQUISTAS
   ================================================================= */
.conquista-card {
    transition: all 0.3s ease;
    height: 100%;
}

.conquista-card.nao-ganhou {
    opacity: 0.6;
    filter: grayscale(80%);
}

.conquista-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 1;
    filter: grayscale(0%);
}

.conquista-icon {
    transition: color 0.3s ease;
}

.conquista-data {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
}
