:root {
    --copa-verde: #009739;
    --copa-amarelo: #FEDD00;
    --copa-azul: #012169;
    --copa-laranja: #FF6B00;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #14532d 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
}

.copa-header {
    background-image: url('/img/capa.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    text-align: center;
    min-height: 350px;
    padding: 120px 15px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {

    .copa-header {
        min-height: 180px;
        padding: 60px 15px;
        background-position: center top;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.copa-header h1 {
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.copa-header p {
    opacity: 0.95;
    margin: 0;
}

/* CARD DO GRUPO */
.grupo-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
    overflow: hidden;
    border-top: 6px solid var(--copa-verde);
}

.grupo-header {
    background: var(--copa-amarelo);
    color: var(--copa-verde);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .grupo-header .badge-grupo {
        background: var(--copa-verde);
        color: var(--copa-amarelo);
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }

/* CARD DO JOGO */
.jogo-card {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 15px;
    margin: 15px;
    transition: all 0.25s ease;
    background: #fafafa;
}

    .jogo-card:hover {
        box-shadow: 0 6px 18px rgba(0, 151, 57, 0.25);
        transform: translateY(-3px);
        background: #fff;
    }

.jogo-info {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

    .jogo-info i {
        color: var(--copa-verde);
    }

.time-bloco {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .time-bloco img {
        width: 34px;
        height: 24px;
        object-fit: cover;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

.placar-input {
    width: 55px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid var(--copa-verde);
    border-radius: 8px;
}

    .placar-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 151, 57, 0.3);
        border-color: var(--copa-verde);
    }

.versus {
    font-weight: 800;
    color: var(--copa-laranja);
    font-size: 1.1rem;
}

/* DOBRAR APOSTA */
.form-check-dobrar .form-check-input:checked {
    background-color: var(--copa-laranja);
    border-color: var(--copa-laranja);
}

.form-check-dobrar label {
    font-weight: 600;
    color: var(--copa-laranja);
    cursor: pointer;
}

/* BOTÃO SALVAR */
.btn-salvar, .btn-salvar:active {
    /* background: linear-gradient(90deg, var(--copa-verde), #00b347); */
    background-color: var(--copa-verde) !important;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 8px 25px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 151, 57, 0.4);
}

    .btn-salvar:hover, .btn-salvar:active {
        /* background: linear-gradient(90deg, #007a2e, var(--copa-verde)); */
        background-color: var(--copa-verde);
        color: #fff !important;
        transform: scale(1.05);
    }

/* NAV */
.navbar-copa {
    background: rgb(20, 83, 45) 100% !important;
    backdrop-filter: blur(6px);
}

    .navbar-copa .nav-link,
    .navbar-copa .navbar-brand {
        color: #fff !important;
        font-weight: 600;
    }

        .navbar-copa .nav-link.active {
            color: var(--copa-amarelo) !important;
        }

@media (max-width: 575px) {
    .placar-input {
        width: 45px;
        font-size: 1rem;
    }

    .time-bloco {
        font-size: 0.85rem;
    }
}

.mf-05 {
    margin-left: .5em;
}

/* MODAL COPA */

.modal-copa {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.modal-header-copa {
    background: var(--copa-verde);
    color: #fff;
    border-bottom: 3px solid var(--copa-amarelo);
    padding: 1rem 1.5rem;
}

    .modal-header-copa .modal-title {
        font-weight: 700;
        letter-spacing: .5px;
    }

.aposta-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.time-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
    font-weight: 700;
}

    .time-modal img {
        width: 64px;
        height: 46px;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,.25);
    }

.aposta-versus {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--copa-laranja);
}

.placar-input-modal {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    border: 3px solid var(--copa-verde);
    border-radius: 12px;
}

    .placar-input-modal:focus {
        border-color: var(--copa-verde);
        box-shadow: 0 0 0 .25rem rgba(0,151,57,.25);
    }

.bonus-card {
    background: rgba(255,107,0,.08);
    border: 2px dashed var(--copa-laranja);
    border-radius: 12px;
    padding: 15px;
}

    .bonus-card label {
        color: var(--copa-laranja);
        cursor: pointer;
    }

    .bonus-card .form-check-input:checked {
        background-color: var(--copa-laranja);
        border-color: var(--copa-laranja);
    }

.btn-cancelar {
    background-color: #adb0b3;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 8px 25px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

    .btn-cancelar:hover {
        background-color: #5c636a;
        color: #fff;
        transform: scale(1.05);
    }

    .btn-cancelar:focus,
    .btn-cancelar:active {
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
    }

.toast-copa {
    background: var(--copa-verde);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(0,151,57,.4);
}

.palpite-salvo {
    animation: destaquePalpite 2s;
}

@keyframes destaquePalpite {

    0% {
        box-shadow: 0 0 0 rgba(0,151,57,0);
    }

    50% {
        box-shadow: 0 0 20px rgba(0,151,57,.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(0,151,57,0);
    }
}

.status-jogo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    user-select: none;
}

/* AO VIVO */

.status-ao-vivo {
    background: #dc3545;
    box-shadow: 0 4px 10px rgba(220,53,69,.4);
}

.pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: .5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.status-aguardando {
    background: var(--copa-amarelo);
    color: #333;
    box-shadow: 0 4px 10px rgba(254,221,0,.4);
}

.status-jogo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: #fff;
    flex-wrap: wrap;
}

.status-encerrado {
    background: #46637d;
    box-shadow: 0 4px 10px rgb(28 35 43 / 40%)
}

.resultado-final-mini {
    color: var(--copa-amarelo);
    font-size: 1rem;
    font-weight: 800;
}

.pontuacao-mini {
    color: #7CFC00;
    font-weight: 800;
}

.status-separador {
    opacity: .5;
}

/* ── RANKING CARD ── */
.ranking-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    margin-bottom: 14px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ranking-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.3);
    }

    /* cabeçalho do card */
    .ranking-card .card-header {
        display: flex;
        align-items: center;
        padding: 14px 18px;
        background: #fff;
        border-bottom: none;
        gap: 12px;
    }

/* posição */
.pos-badge {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.pos-1 {
    background: #FFD700;
    color: #5a3e00;
    font-size: 1.2rem;
}

.pos-2 {
    background: #C0C0C0;
    color: #3a3a3a;
    font-size: 1.2rem;
}

.pos-3 {
    background: #cd7f32;
    color: #fff;
    font-size: 1.2rem;
}

.pos-default {
    background: var(--copa-azul);
    color: var(--copa-amarelo);
}

/* nome do jogador */
.player-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* pontuação */
.pts-badge {
    background: linear-gradient(135deg, var(--copa-verde), #00b347);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,151,57,0.35);
    flex-shrink: 0;
}

/* rodapé com barra de progresso */
.ranking-card .card-footer {
    background: #f5f5f5;
    padding: 8px 18px;
    border-top: 1px solid #ececec;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e0e0e0;
}

.progress-bar {
    border-radius: 10px;
}

/* bordas superiores por posição */
.ranking-card.top-1 {
    border-top: 5px solid #FFD700;
}

.ranking-card.top-2 {
    border-top: 5px solid #C0C0C0;
}

.ranking-card.top-3 {
    border-top: 5px solid #cd7f32;
}

.ranking-card.top-outros {
    border-top: 4px solid var(--copa-amarelo);
}

/* barra pódio */
.bar-gold {
    background: linear-gradient(90deg, #FFD700, #ffa500);
}

.bar-silver {
    background: linear-gradient(90deg, #C0C0C0, #a8a8a8);
}

.bar-bronze {
    background: linear-gradient(90deg, #cd7f32, #b06020);
}

.bar-green {
    background: linear-gradient(90deg, #009739, #00b347);
}

/* título da seção */
.section-title {
    color: var(--copa-amarelo);
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ── BLOCOS DE CONTEÚDO ── */
.regras-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
    margin-bottom: 25px;
    border-top: 5px solid var(--copa-amarelo);
}

.regras-card-header {
    background: var(--copa-amarelo);
    color: var(--copa-verde);
    padding: 14px 22px;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
   
    .regras-card-header i {
        background: var(--copa-verde);
        color: var(--copa-amarelo);
        font-size: 1.3rem;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }

.regras-card-body {
    padding: 22px;
}

/* ── ITENS DE REGRA ── */
.regra-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #e8e8e8;
}

    .regra-item:last-child {
        border-bottom: none;
    }

.regra-numero {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--copa-verde), #00b347);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 151, 57, 0.35);
}

.regra-texto {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 4px;
}

    .regra-texto strong {
        color: var(--copa-azul);
    }

/* ── ITENS DE DESEMPATE ── */
.desempate-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed #e8e8e8;
}

    .desempate-item:last-child {
        border-bottom: none;
    }

.desempate-badge {
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--copa-laranja), #ff8c00);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
}

.desempate-texto {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 4px;
}

    .desempate-texto strong {
        color: var(--copa-laranja);
    }

/* ── DESTAQUE INFO ── */
.info-destaque {
    background: linear-gradient(135deg, #f0fff4, #e6f7ff);
    border-left: 4px solid var(--copa-verde);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #2c5f2e;
}

    .info-destaque i {
        color: var(--copa-verde);
        margin-right: 6px;
    }
/* ── PÓDIO ── */
.podio-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.podio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 160px;
}

.podio-emoji {
    font-size: 2rem;
    margin-bottom: 6px;
}

.podio-nome {
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
    line-height: 1.3;
}

.podio-degrau {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}

.degrau-1 {
    height: 110px;
    background: linear-gradient(180deg, #FFD700, #e6a800);
}

.degrau-2 {
    height: 80px;
    background: linear-gradient(180deg, #C0C0C0, #999);
}

.degrau-3 {
    height: 55px;
    background: linear-gradient(180deg, #cd7f32, #a0622a);
}

/* ── CARD DO KIT ── */
.kit-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.22);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .kit-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    }

    .kit-card.kit-1 {
        border-top: 5px solid #FFD700;
    }

    .kit-card.kit-2 {
        border-top: 5px solid #C0C0C0;
    }

    .kit-card.kit-3 {
        border-top: 5px solid #cd7f32;
    }

    .kit-card.kit-especial {
        border-top: 5px solid var(--copa-laranja);
    }

/* foto do kit */
.kit-foto {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

/* placeholder quando não tem foto */
.kit-foto-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    gap: 8px;
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    color: #bbb;
}

    .kit-foto-placeholder span {
        font-size: 0.85rem;
        font-weight: 600;
        color: #ccc;
    }

.kit-body {
    padding: 18px;
}

.kit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.kit-badge-pos {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-1 {
    background: linear-gradient(135deg, #FFD700, #ffa500);
}

.badge-2 {
    background: linear-gradient(135deg, #C0C0C0, #a8a8a8);
}

.badge-3 {
    background: linear-gradient(135deg, #cd7f32, #b06020);
}

.badge-especial {
    background: linear-gradient(135deg, var(--copa-laranja), #ff8c00);
}

.kit-titulo {
    flex: 1;
}

    .kit-titulo h5 {
        font-weight: 800;
        color: var(--copa-azul);
        margin: 0;
        font-size: 1rem;
    }

    .kit-titulo small {
        color: #888;
        font-size: 0.8rem;
    }

.kit-descricao {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
    border-top: 1px dashed #eee;
    padding-top: 12px;
}

/* itens do kit */
.kit-itens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kit-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-verde {
    background: #e8f8ee;
    color: #1a7a3a;
    border: 1px solid #b2e8c4;
}

.tag-laranja {
    background: #fff3e8;
    color: #c05000;
    border: 1px solid #ffd0a0;
}

/* ── BLOCO ESPECIAIS ── */
.premiacao-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.22);
    margin-bottom: 25px;
    border-top: 5px solid var(--copa-laranja);
}

.premiacao-card-header {
    background: var(--copa-azul);
    color: var(--copa-amarelo);
    padding: 14px 22px;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .premiacao-card-header i {
        font-size: 1.3rem;
    }

.premiacao-card-body {
    padding: 18px;
}

/* ── INFO DESTAQUE ── */
.info-destaque {
    background: linear-gradient(135deg, #f0fff4, #e6f7ff);
    border-left: 4px solid var(--copa-verde);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: #2c5f2e;
}

    .info-destaque i {
        color: var(--copa-verde);
        margin-right: 6px;
    }

/* ── SECTION TITLE ── */
.section-title {
    color: var(--copa-amarelo);
    font-weight: 800;
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}