* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
#header {
    background: linear-gradient(135deg, #26983d, #1e7a30);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#container-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#container-header p {
    font-size: 1rem;
    opacity: 0.95;
}

/* MAIN */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* SEÇÃO GANHADORES */
#ganhadores-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#ganhadores-section h3 {
    text-align: center;
    color: #26983d;
    margin-bottom: 1rem;
}

#carrossel-ganhadores {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.ganhador-card {
    min-width: 200px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
}

.ganhador-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.ganhador-card span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.ganhador-card small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* INFO CAMPANHA */
#info-campanha {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

#premio-box h2 {
    color: #1f4df6;
    margin-bottom: 1rem;
}

#premio-box p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* IMAGEM DO PRÊMIO */
#imagem-premio {
    text-align: center;
    margin-bottom: 2rem;
}

#imagem-premio img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

#imagem-premio img:hover {
    transform: scale(1.02);
}

/* BARRA DE PROGRESSO */
#progresso-vendas {
    margin-top: 2rem;
}

#progresso-barra {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#progresso-preenchimento {
    height: 100%;
    background: linear-gradient(90deg, #26983d, #4CAF50);
    transition: width 0.5s ease;
}

/* LEGENDA */
#legenda {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legenda-cor {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #999;
}

.legenda-cor.disponivel {
    background: white;
}

.legenda-cor.reservado {
    background: #ffeb3b;
}

.legenda-cor.pago {
    background: #ffc107;
}

.legenda-cor.ganhador {
    background: #4CAF50;
}

/* GRADE DE NÚMEROS */
#grade-numeros {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#grade-numeros h3 {
    text-align: center;
    color: #26983d;
    margin-bottom: 1.5rem;
}

#container-cotas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.8rem;
}

.cota-box {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    text-align: center;
    background: white;
}

.cota-box:hover:not(.reservado):not(.pago) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #26983d;
}

.cota-box.selecionada {
    background: #26983d;
    color: white;
    border-color: #1e7a30;
    transform: scale(1.05);
}

.cota-box.reservado,
.cota-box.pago {
    background: #ffeb3b;
    cursor: not-allowed;
    opacity: 0.8;
}

.cota-box.pago {
    background: #ffc107;
}

.cota-numero {
    font-size: 1.2rem;
    font-weight: bold;
}

.cota-nome {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* RESUMO DA SELEÇÃO */
#resumo-selecao {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

#resumo-selecao h3 {
    color: #26983d;
    margin-bottom: 1rem;
}

#resumo-selecao p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#valor-total {
    color: #1f4df6;
    font-size: 1.5rem;
}

/* FORMULÁRIO */
#form-comprador {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#form-comprador h3 {
    text-align: center;
    color: #26983d;
    margin-bottom: 1.5rem;
}

#form-comprador input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

#form-comprador input:focus {
    outline: none;
    border-color: #26983d;
}

#btn-gerar-pix {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #1f4df6, #1a3fc7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-gerar-pix:hover:not(:disabled) {
    background: linear-gradient(135deg, #26983d, #1e7a30);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#btn-gerar-pix:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* FOOTER */
footer {
    background: linear-gradient(to right, #f5fafe, #26983d, #f5fafe);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    #container-header h1 {
        font-size: 1.5rem;
    }

    #container-cotas {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    .cota-numero {
        font-size: 1rem;
    }

    .cota-nome {
        font-size: 0.6rem;
    }

    #legenda {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }

    #container-cotas {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}