body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    margin: 0;
    padding: 20px;
    color: #1e293b;
}

/* CENTRALIZA TUDO */
.wrapper {
    max-width: 600px;
    margin: auto;
}

.container {
    text-align: center;
    margin-bottom: 30px;
}

/* CAIXAS */
.box, .resultado, .conteudo {
    background: white;
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.08);
}

.descricao {
    font-size: 14px;
    color: #64748b;
}

.config-item {
    margin-bottom: 15px;
}

.config-item label {
    font-size: 14px;
    font-weight: bold;
}

.info {
    font-size: 13px;
    color: #64748b;
    margin: 3px 0 6px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

/* BOTÃO CALCULAR */
.btn-calcular {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-calcular:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* RESULTADO */
.resultado {
    display: none;
}

/* AÇÕES */
.acoes {
    display: none;
}

/* BOTÕES */
.btn-acao {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

/* COPIAR */
.btn-acao.copiar {
    background: #64748b;
    color: white;
}

.btn-acao.copiar:hover {
    background: #475569;
}

/* WHATSAPP */
.btn-acao.whatsapp {
    background: #3a704e;
    color: white;
}

.btn-acao.whatsapp:hover {
    background: #1ebe5d;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 30px;
}

/* BOTÕES DE AFILIADO */
.produtos-afiliado {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.produtos-afiliado .btn-afiliado {
    display: inline-block;
    padding: 8px 12px;
    background: #16a34a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

.produtos-afiliado .btn-afiliado:hover {
    background: #15803d;
}

/* RESPONSIVO CELULAR */
@media (max-width: 600px) {
    .produtos-afiliado {
        flex-direction: column;
    }
}

/* ==========================
   BLOCO AFILIADO OTIMIZADO
========================== */

#blocoAfiliado {
    margin-top: 20px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

/* TÍTULO */
#blocoAfiliado p:first-of-type {
    font-size: 17px;
    font-weight: bold;
    color: #1e293b;
}

/* SUBTEXTO */
#blocoAfiliado p:nth-of-type(2) {
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
}

/* ALERTA */
#blocoAfiliado p:nth-of-type(3) {
    font-size: 12px;
    color: #b91c1c;
    margin-top: 6px;
}

/* BOTÕES */
#blocoAfiliado a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.25s ease;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

/* TEXTO INTERNO */
#blocoAfiliado a span {
    margin-top: 4px;
    font-size: 11px;
    font-weight: normal;
    opacity: 0.95;
}

/* BOTÃO PRINCIPAL (ARGAMASSA) */
#blocoAfiliado a:first-child {
    background: #f59e0b;
    color: white;
}

/* BOTÃO SECUNDÁRIO (REJUNTE) */
#blocoAfiliado a:last-child {
    background: #16a34a;
    color: white;
}

/* HOVER */
#blocoAfiliado a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.12);
}

/* ANIMAÇÃO */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO */
@media (max-width: 600px) {
    #blocoAfiliado a {
        width: 100%;
    }
}