* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a192f 0%, #0d1f2d 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu {
    background: #0f2a3f;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.menu a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.welcome-banner {
    background: linear-gradient(135deg, #0f2a3f 0%, #1a3a4f 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.user-info p {
    margin: 0;
    opacity: 0.9;
}

.pontos-card {
    background: rgba(255,255,255,0.15);
    padding: 10px 25px;
    border-radius: 50px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.pontos-card .numero {
    font-size: 2em;
    font-weight: bold;
}

.secao-titulo {
    font-size: 1.5em;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    color: white;
}

.grid-grupos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card-jogo {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #3498db;
}

.card-jogo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.time-box {
    flex: 1;
    text-align: center;
}

.time-nome {
    font-weight: bold;
    font-size: 1.1em;
    color: #0a192f;
}

.vs-circle {
    background: #0f2a3f;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
    margin: 0 10px;
}

.info-jogo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #666;
}

.prazo-info {
    font-size: 0.7em;
    color: #888;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.btn-palpitar {
    background: #0f2a3f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-palpitar:hover {
    background: #1a4a6f;
}

.palpite-salvo {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: #2e7d32;
}

.timer-alerta {
    background: #fff3e0;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 10px;
    color: #ff9800;
}

.prazo-encerrado {
    background: #ffebee;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: #c62828;
    font-size: 0.9em;
}

.badge-comum {
    background: #e0e0e0;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
}

.badge-prata {
    background: #ffd700;
    color: #8b6914;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
}

.badge-ouro {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #b8860b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
}

/* Bracket mata-mata */
.bracket-container {
    background: #0f2a3f;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.bracket {
    display: flex;
    justify-content: center;
    min-width: 900px;
}

.bracket-round {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 0 10px;
}

.round-title {
    text-align: center;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.bracket-game {
    background: #1a3a4f;
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
    transition: transform 0.2s;
}

.bracket-game:hover {
    transform: scale(1.02);
    background: #2a4a6f;
}

.bracket-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #0f2a3f;
    border-radius: 8px;
    font-size: 0.9em;
}

.team-name {
    color: white;
    font-weight: 500;
}

.team-score {
    background: #0a192f;
    padding: 2px 8px;
    border-radius: 6px;
    color: #3498db;
    font-weight: bold;
}

.palpite-indicator {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #2a5a7f;
    font-size: 0.75em;
    text-align: center;
}

.palpite-feito {
    color: #4caf50;
}

.palpite-pendente {
    color: #ff9800;
}

.btn-palpitar-mata {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.7em;
    margin-top: 8px;
    width: 100%;
}

.btn-palpitar-mata:hover {
    background: #5dade2;
}

.final-game {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.final-game .team-name {
    color: #1a1a2e;
    font-weight: bold;
}

.final-game .team-score {
    background: #fff;
    color: #1a472a;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
}

.modal-inputs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.modal-inputs input {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    border: 2px solid #ddd;
    border-radius: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .grid-grupos {
        grid-template-columns: 1fr;
    }
    .times {
        flex-direction: column;
        gap: 10px;
    }
    .vs-circle {
        margin: 5px 0;
    }
    .bracket-container {
        padding: 15px 10px;
    }
    .bracket-round {
        margin: 0 5px;
    }
    .team {
        font-size: 0.7em;
        padding: 3px 6px;
    }
}