* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    background: #061b35;
    color: white;
}


a {
    text-decoration: none;
}


.afiliado-topo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: #041426;
    border-bottom: 1px solid rgba(255,255,255,.1);
}


.logo {
    font-size: 25px;
    font-weight: 900;
}


.logo span {
    color: #f4c542;
}


.voltar-site {
    color: white;
    font-weight: 700;
}


.hero-afiliado {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    background:
        radial-gradient(
            circle at top,
            #123e70,
            #061b35 65%
        );
}


.hero-conteudo {
    max-width: 850px;
}


.tag {
    display: inline-block;
    color: #f4c542;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}


.hero-conteudo h1 {
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1;
    margin-bottom: 25px;
}


.hero-conteudo h1 strong {
    color: #f4c542;
}


.hero-conteudo p {
    font-size: 20px;
    line-height: 1.6;
    color: #dce8f5;
    max-width: 700px;
    margin: auto auto 35px;
}


.botao-principal,
.botao-enviar,
.botao-whatsapp {
    display: inline-block;
    padding: 17px 30px;
    border-radius: 10px;
    font-weight: 900;
    border: none;
    cursor: pointer;
}


.botao-principal,
.botao-enviar {
    background: #f4c542;
    color: #061b35;
}


/* ==================================================
   BENEFÍCIO PRINCIPAL
   ================================================== */

.beneficios {
    padding: 70px 20px;
    background:
        linear-gradient(
            135deg,
            #092b4f,
            #0d3b68
        );
}


.beneficio-destaque {
    max-width: 1100px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 35px;

    padding: 45px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #123f6d,
            #0a2949
        );

    border: 1px solid rgba(244,197,66,.35);

    box-shadow:
        0 20px 50px rgba(0,0,0,.18);
}


.beneficio-icone {
    width: 90px;
    height: 90px;

    min-width: 90px;

    border-radius: 24px;

    background: #f4c542;
    color: #061b35;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 45px;
    font-weight: 900;

    box-shadow:
        0 10px 30px rgba(244,197,66,.25);
}


.beneficio-texto {
    flex: 1;
}


.beneficio-tag {
    display: block;

    margin-bottom: 8px;

    color: #f4c542;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;
}


.beneficio-texto h2 {
    font-size: 32px;
    line-height: 1.15;

    margin-bottom: 15px;
}


.beneficio-texto h2 strong {
    color: #f4c542;
}


.beneficio-texto p {
    max-width: 800px;

    color: #d4e1ee;

    line-height: 1.6;

    font-size: 16px;
}


.beneficio-resumo {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 22px;
}


.beneficio-resumo span {
    padding: 9px 14px;

    border-radius: 50px;

    background: rgba(244,197,66,.10);

    border: 1px solid rgba(244,197,66,.25);

    color: #f4c542;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .5px;
}


/* ==================================================
   COMO FUNCIONA
   ================================================== */

.como-funciona {
    max-width: none;

    margin: 0;

    padding: 90px 20px;

    background:
        linear-gradient(
            180deg,
            #f4f7fb,
            #eaf0f7
        );

    color: #061b35;
}


.como-funciona .titulo-secao {
    margin-bottom: 50px;
}


.como-funciona .titulo-secao span {
    color: #1769aa;
}


.como-funciona .titulo-secao h2 {
    color: #061b35;
}


.como-funciona .titulo-secao p {
    color: #53677b;
}


.passos {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.passo {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 30px;

    background: #ffffff;

    border-radius: 20px;

    border: 1px solid #dce5ee;

    box-shadow:
        0 10px 30px rgba(6,27,53,.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.passo:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 35px rgba(6,27,53,.12);
}


.passo-icone {
    width: 55px;
    height: 55px;

    min-width: 55px;

    border-radius: 16px;

    background: #061b35;

    color: #f4c542;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 900;
}


.passo h3 {
    margin: 3px 0 10px;

    color: #061b35;

    font-size: 17px;
}


.passo p {
    color: #607286;

    line-height: 1.55;

    font-size: 14px;
}


/* ==================================================
   CADASTRO DO AFILIADO
   ================================================== */

.cadastro-afiliado {

    position: relative;

    padding: 85px 20px 95px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(31, 105, 165, 0.20),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #071a2f 0%,
            #041321 100%
        );

    overflow: hidden;
}


/* BRILHO DECORATIVO */

.cadastro-afiliado::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    right: -170px;

    border-radius: 50%;

    background:
        rgba(244, 197, 66, 0.045);

    filter: blur(20px);

    pointer-events: none;
}


/* ==================================================
   CAIXA DO CADASTRO
   ================================================== */

.cadastro-box {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    padding: 48px 45px 45px;

    background: #f8fafc;

    color: #061b35;

    border-radius: 24px;

    border:
        1px solid
        rgba(255, 255, 255, 0.85);

    box-shadow:
        0 25px 65px
        rgba(0, 0, 0, 0.30);
}


/* ==================================================
   TÍTULO DO CADASTRO
   ================================================== */

.cadastro-box .titulo-secao {

    text-align: center;

    margin-bottom: 38px;
}


.cadastro-box .titulo-secao span {

    display: inline-block;

    margin-bottom: 10px;

    color: #287fb8;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.cadastro-box .titulo-secao h2 {

    margin: 0 0 12px;

    color: #08213b;

    font-size:
        clamp(28px, 5vw, 38px);

    font-weight: 900;

    line-height: 1.1;
}


.cadastro-box .titulo-secao p {

    max-width: 580px;

    margin: 0 auto;

    color: #667789;

    font-size: 14px;

    line-height: 1.6;
}


/* ==================================================
   FORMULÁRIO
   ================================================== */

#formAfiliado {

    display: grid;

    gap: 20px;
}


/* ==================================================
   CAMPOS
   ================================================== */

#formAfiliado .campo {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


#formAfiliado .campo label {

    color: #19334d;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .2px;
}


#formAfiliado .campo input,
#formAfiliado .campo select {

    width: 100%;

    min-height: 51px;

    padding: 13px 15px;

    background: #ffffff;

    color: #102b45;

    border:
        1px solid
        #d5dfe8;

    border-radius: 10px;

    font-size: 14px;

    outline: none;

    box-shadow:
        0 2px 8px
        rgba(9, 35, 58, 0.04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


#formAfiliado .campo input::placeholder {

    color: #a1adba;
}


#formAfiliado .campo input:hover,
#formAfiliado .campo select:hover {

    border-color: #b7c9d8;
}


#formAfiliado .campo input:focus,
#formAfiliado .campo select:focus {

    background: #ffffff;

    border-color: #3b9bd3;

    box-shadow:
        0 0 0 3px
        rgba(59, 155, 211, 0.11);
}


/* SELECT DESABILITADO */

#formAfiliado .campo select:disabled {

    background: #eef2f5;

    color: #9aa6b1;

    cursor: not-allowed;
}


/* ==================================================
   CHECKBOX
   ================================================== */

#formAfiliado input[type="checkbox"] {

    accent-color: #287fb8;
}


/* ==================================================
   BOTÃO DE CADASTRO
   ================================================== */

#formAfiliado .botao-enviar {

    width: 100%;

    min-height: 55px;

    margin-top: 10px;

    padding: 15px 22px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #3fa7df,
            #217db7
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: .8px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(33, 125, 183, 0.22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


#formAfiliado .botao-enviar:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.05);

    box-shadow:
        0 14px 30px
        rgba(33, 125, 183, 0.30);
}


#formAfiliado .botao-enviar:active {

    transform:
        translateY(0);
}


#formAfiliado .botao-enviar:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 700px) {

    .cadastro-afiliado {

        padding:
            55px 14px 65px;
    }


    .cadastro-box {

        padding:
            36px 20px 32px;

        border-radius: 20px;
    }


    .cadastro-box .titulo-secao {

        margin-bottom: 30px;
    }


    .cadastro-box .titulo-secao h2 {

        font-size: 28px;
    }


    .cadastro-box .titulo-secao p {

        font-size: 13px;
    }


    #formAfiliado {

        gap: 16px;
    }


    #formAfiliado .campo input,
    #formAfiliado .campo select {

        min-height: 49px;

        padding:
            12px 13px;
    }


    #formAfiliado .botao-enviar {

        min-height: 52px;

        font-size: 12px;
    }

}
.mensagem-sucesso {
    text-align: center;
    background: #0b294b;
    border: 1px solid rgba(244,197,66,.3);
    border-radius: 20px;
    padding: 60px 30px;
}


.icone-sucesso {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f4c542;
    color: #061b35;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 20px;
    font-size: 40px;
    font-weight: 900;
}


.mensagem-sucesso h2 {
    color: #f4c542;
    font-size: 40px;
}


.mensagem-sucesso h3 {
    font-size: 25px;
    margin: 10px 0 20px;
}


.mensagem-sucesso p {
    color: #c6d5e3;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}


.duvidas {
    text-align: center;
    padding: 80px 20px;
}


.duvidas h2 {
    font-size: 32px;
}


.duvidas p {
    color: #b9c9d9;
    margin: 15px 0 25px;
}


.botao-whatsapp {
    background: #22c55e;
    color: white;
}


.escondido {
    display: none !important;
}


@media (max-width: 800px) {

    .hero-conteudo h1 {
        font-size: 43px;
    }


    .afiliado-topo {
        padding: 0 20px;
    }


    .beneficio-destaque {
        flex-direction: column;

        text-align: center;

        padding: 32px 22px;

        gap: 22px;
    }


    .beneficio-texto h2 {
        font-size: 26px;
    }


    .beneficio-texto p {
        font-size: 15px;
    }


    .beneficio-resumo {
        justify-content: center;
    }


    .passos {
        grid-template-columns: 1fr;

        max-width: 500px;
    }


    .passo {
        padding: 25px;
    }

}
    
/* Página de afiliados */

/* ==================================================
   NOTIFICAÇÃO DE SUCESSO
   ================================================== */

.mensagem-sucesso {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(5px);

    animation: fundoSucesso 0.3s ease;
}

.mensagem-sucesso.escondido {
    display: none;
}


/* CARD */

.sucesso-card {
    position: relative;

    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border-radius: 24px;

    padding: 34px 25px 28px;

    text-align: center;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    animation: cardSucesso 0.45s ease;
}


/* BOTÃO FECHAR */

.fechar-sucesso {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #f1f1f1;

    color: #555;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}


/* ÍCONE */

.icone-sucesso {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #16a34a;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(22, 163, 74, 0.30);
}


/* CONTEÚDO */

.sucesso-mini {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: #16a34a;
}


.sucesso-conteudo h2 {
    margin: 0;

    font-size: 30px;

    font-weight: 900;

    line-height: 1.1;
}


.sucesso-conteudo h3 {
    margin: 8px 0 18px;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.3;
}


.sucesso-conteudo p {
    margin: 8px 0;

    font-size: 14px;

    line-height: 1.55;

    color: #555;
}


/* AVISO WHATSAPP */

.aviso-whatsapp {
    margin-top: 20px;

    padding: 14px;

    border-radius: 14px;

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.aviso-whatsapp strong {
    font-size: 12px;

    color: #15803d;
}


.aviso-whatsapp span {
    font-size: 12px;

    color: #4b5563;
}


/* ANIMAÇÕES */

@keyframes fundoSucesso {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes cardSucesso {

    from {
        opacity: 0;
        transform: scale(0.90) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


/* CELULAR */

@media (max-width: 480px) {

    .mensagem-sucesso {
        padding: 16px;
    }

    .sucesso-card {
        max-width: 100%;

        padding: 30px 20px 22px;

        border-radius: 22px;
    }

    .icone-sucesso {
        width: 64px;
        height: 64px;

        font-size: 34px;

        margin-bottom: 15px;
    }

    .sucesso-conteudo h2 {
        font-size: 27px;
    }

    .sucesso-conteudo h3 {
        font-size: 15px;
    }

    .sucesso-conteudo p {
        font-size: 13px;
    }

    .aviso-whatsapp {
        margin-top: 16px;

        padding: 12px;
    }

}
/* ==================================================
   VALIDAÇÃO DA CHAVE PIX
   ================================================== */

#chavePixAfiliado.pix-valido {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}


#chavePixAfiliado.pix-invalido {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}


#chavePixAfiliado.pix-valido:focus {
    border-color: #22c55e !important;
}


#chavePixAfiliado.pix-invalido:focus {
    border-color: #ef4444 !important;
}

/* ==================================================
   ÁREA DO AFILIADO LOGADO
   ================================================== */

.area-afiliado {
    width: 100%;
    padding: 80px 20px;
    background:
        linear-gradient(
            180deg,
            #f4f7fb,
            #e8eef5
        );
    color: #061b35;
}


.area-afiliado-box {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ==================================================
   TÍTULO
   ================================================== */

.area-afiliado .titulo-secao {
    text-align: center;
    margin-bottom: 40px;
}


.area-afiliado .titulo-secao span {
    display: block;
    margin-bottom: 8px;
    color: #1769aa;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}


.area-afiliado .titulo-secao h2 {
    margin: 0 0 12px;
    color: #061b35;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
}


.area-afiliado .titulo-secao p {
    margin: 0 auto;
    max-width: 650px;
    color: #607286;
    font-size: 16px;
    line-height: 1.5;
}


/* ==================================================
   DADOS DO AFILIADO
   ================================================== */

.dados-afiliado {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}


.dado-afiliado {
    min-height: 120px;
    padding: 22px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #dce5ee;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(6,27,53,.08);
}


.dado-afiliado span {
    display: block;
    margin-bottom: 10px;

    color: #718096;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
}


.dado-afiliado strong {
    color: #061b35;
    font-size: 19px;
    font-weight: 900;
    word-break: break-word;
}


/* ==================================================
   LINK DO AFILIADO
   ================================================== */

.link-afiliado-box {
    padding: 25px;

    background: #061b35;

    border-radius: 20px;

    box-shadow:
        0 15px 35px rgba(6,27,53,.15);

    margin-bottom: 30px;
}


.link-afiliado-box > span {
    display: block;

    margin-bottom: 12px;

    color: #f4c542;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.link-afiliado-conteudo {
    display: flex;
    gap: 10px;
}


.link-afiliado-conteudo input {
    flex: 1;
    min-width: 0;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #294666;
    border-radius: 10px;

    background: #0b294b;
    color: white;

    font-size: 14px;
    font-weight: 700;

    outline: none;
}


.link-afiliado-conteudo button {
    height: 52px;

    padding: 0 22px;

    border: none;
    border-radius: 10px;

    background: #f4c542;
    color: #061b35;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.link-afiliado-conteudo button:hover {
    transform: translateY(-2px);
}


.link-afiliado-conteudo button:active {
    transform: scale(.98);
}


/* ==================================================
   DESEMPENHO
   ================================================== */

.desempenho-afiliado {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #dce5ee;
    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(6,27,53,.08);
}


.titulo-desempenho {
    margin-bottom: 22px;
}


.titulo-desempenho span {
    display: block;

    margin-bottom: 6px;

    color: #1769aa;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


.titulo-desempenho h3 {
    margin: 0;

    color: #061b35;

    font-size: 25px;
    font-weight: 900;
}


.cards-desempenho {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    gap: 18px;
}


.card-desempenho {
    padding: 25px;

    border-radius: 18px;

    background: #f4f7fb;

    border: 1px solid #dce5ee;
}


.card-desempenho span {
    display: block;

    margin-bottom: 12px;

    color: #607286;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
}


.card-desempenho strong {
    display: block;

    color: #061b35;

    font-size: 30px;
    font-weight: 900;
}


.card-desempenho small {
    display: block;

    margin-top: 8px;

    color: #718096;

    font-size: 12px;
}


.card-desempenho.cashback {
    background:
        linear-gradient(
            135deg,
            #fffdf3,
            #fff8d9
        );

    border-color:
        rgba(244,197,66,.45);
}


.card-desempenho.cashback strong {
    color: #b38700;
}


/* ==================================================
   MENSAGEM
   ================================================== */

.mensagem-area-afiliado {
    margin-top: 20px;

    text-align: center;

    color: #607286;

    font-size: 14px;
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 800px) {

    .area-afiliado {
        padding: 60px 16px;
    }


    .dados-afiliado {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .dado-afiliado {
        min-height: 105px;
        padding: 18px 15px;
    }


    .dado-afiliado strong {
        font-size: 16px;
    }


    .link-afiliado-box {
        padding: 20px;
    }


    .link-afiliado-conteudo {
        flex-direction: column;
    }


    .link-afiliado-conteudo input {
        width: 100%;
    }


    .link-afiliado-conteudo button {
        width: 100%;
    }


    .desempenho-afiliado {
        padding: 22px;
    }

}


@media (max-width: 480px) {

    .area-afiliado {
        padding: 50px 12px;
    }


    .dados-afiliado {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }


    .dado-afiliado {
        min-height: 100px;
        padding: 15px 12px;
        border-radius: 15px;
    }


    .dado-afiliado span {
        font-size: 9px;
    }


    .dado-afiliado strong {
        font-size: 14px;
    }


    .link-afiliado-box {
        padding: 18px;
        border-radius: 18px;
    }


    .cards-desempenho {
        grid-template-columns: 1fr;
    }


    .card-desempenho {
        padding: 22px;
    }


    .card-desempenho strong {
        font-size: 27px;
    }

}
/* ==================================================
   CONVITE — JÁ SOU UM AFILIADO
   ================================================== */

.login-convite-afiliado {
    width: 100%;
    padding: 75px 20px;
    background:
        linear-gradient(
            180deg,
            #eaf0f7 0%,
            #f5f8fb 100%
        );

    display: flex;
    justify-content: center;
    align-items: center;
}


.login-convite-box {
    width: 100%;
    max-width: 620px;

    padding: 45px 40px;

    text-align: center;

    background: #ffffff;

    border-radius: 26px;

    border: 1px solid rgba(244,197,66,.45);

    box-shadow:
        0 18px 50px rgba(6,27,53,.12),
        0 2px 8px rgba(6,27,53,.05);

    position: relative;
    overflow: hidden;
}


/* detalhe dourado no topo */

.login-convite-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 90px;
    height: 4px;

    transform: translateX(-50%);

    background: #f4c542;

    border-radius: 0 0 10px 10px;
}


/* pequeno título */

.login-convite-box > span {
    display: block;

    margin-bottom: 10px;

    color: #1769aa;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* título principal */

.login-convite-box h2 {
    margin: 0 0 12px;

    color: #061b35;

    font-size: clamp(28px, 4vw, 38px);

    font-weight: 900;

    line-height: 1.1;
}


/* descrição */

.login-convite-box p {
    max-width: 480px;

    margin: 0 auto 28px;

    color: #607286;

    font-size: 15px;

    line-height: 1.6;
}


/* botão */

.login-convite-box .botao-enviar {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 250px;

    min-height: 52px;

    margin: 0;

    padding: 15px 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8d45a,
            #f4c542
        );

    color: #061b35;

    font-size: 14px;

    font-weight: 900;

    letter-spacing: .3px;

    box-shadow:
        0 10px 25px rgba(244,197,66,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.login-convite-box .botao-enviar:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(244,197,66,.35);
}


.login-convite-box .botao-enviar:active {
    transform: translateY(0);
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 600px) {

    .login-convite-afiliado {
        padding: 55px 16px;
    }


    .login-convite-box {
        padding: 38px 22px;

        border-radius: 22px;
    }


    .login-convite-box h2 {
        font-size: 28px;
    }


    .login-convite-box p {
        font-size: 14px;

        margin-bottom: 24px;
    }


    .login-convite-box .botao-enviar {
        width: 100%;

        min-width: 0;

        font-size: 13px;
    }

}

/* ==================================================
   RANKING SEMANAL DO AFILIADO
   ================================================== */

.ranking-afiliado {
    margin-top: 25px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #dce5ee;

    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(6,27,53,.08);
}


/* ==================================================
   TÍTULO DO RANKING
   ================================================== */

.titulo-ranking {
    margin-bottom: 25px;
}


.titulo-ranking > span {
    display: block;

    margin-bottom: 6px;

    color: #1769aa;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.5px;
}


.titulo-ranking h3 {
    margin: 0 0 7px;

    color: #061b35;

    font-size: 25px;

    font-weight: 900;
}


.titulo-ranking p {
    margin: 0;

    color: #718096;

    font-size: 13px;

    font-weight: 600;
}


/* ==================================================
   MINHA POSIÇÃO
   ================================================== */

.minha-posicao-ranking {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 20px;

    margin-bottom: 25px;

    padding: 20px 22px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fffdf3,
            #fff8d9
        );

    border: 1px solid rgba(244,197,66,.45);

    box-shadow:
        0 8px 20px rgba(6,27,53,.05);
}


.minha-posicao-ranking > span {
    color: #718096;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}


.minha-posicao-ranking > strong {
    color: #b38700;

    font-size: 32px;

    font-weight: 900;
}


.minha-posicao-ranking > div {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;
}


.minha-posicao-ranking > div span {
    color: #718096;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .8px;
}


.minha-posicao-ranking > div strong {
    color: #061b35;

    font-size: 18px;

    font-weight: 900;
}


/* ==================================================
   LISTA DO RANKING
   ================================================== */

.lista-ranking-afiliado {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* ==================================================
   ITEM
   ================================================== */

.item-ranking-afiliado {
    display: grid;

    grid-template-columns:
        65px 1fr auto;

    align-items: center;

    gap: 15px;

    min-height: 72px;

    padding: 12px 16px;

    background: #f4f7fb;

    border: 1px solid #dce5ee;

    border-radius: 15px;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.item-ranking-afiliado:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(6,27,53,.08);
}


/* ==================================================
   MINHA LINHA
   ================================================== */

.item-ranking-afiliado.minha-posicao {
    background:
        linear-gradient(
            135deg,
            #fffdf3,
            #fff8d9
        );

    border-color:
        rgba(244,197,66,.65);

    box-shadow:
        0 8px 22px rgba(244,197,66,.12);
}


.item-ranking-afiliado.minha-posicao
.ranking-afiliado-info strong {
    color: #a47700;
}


/* ==================================================
   POSIÇÃO
   ================================================== */

.ranking-posicao {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 45px;

    height: 45px;

    border-radius: 12px;

    background: #061b35;

    color: #f4c542;
}


.ranking-posicao strong {
    font-size: 16px;

    font-weight: 900;
}


/* ==================================================
   INFORMAÇÕES DO AFILIADO
   ================================================== */

.ranking-afiliado-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.ranking-afiliado-info strong {
    overflow: hidden;

    color: #061b35;

    font-size: 15px;

    font-weight: 900;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.ranking-afiliado-info span {
    overflow: hidden;

    color: #718096;

    font-size: 12px;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ==================================================
   VALOR
   ================================================== */

.ranking-valor {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 4px;
}


.ranking-valor span {
    color: #718096;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .7px;
}


.ranking-valor strong {
    color: #061b35;

    font-size: 15px;

    font-weight: 900;

    white-space: nowrap;
}


/* ==================================================
   MENSAGENS
   ================================================== */

.ranking-carregando,
.ranking-vazio {
    padding: 25px;

    text-align: center;

    color: #718096;

    font-size: 14px;

    font-weight: 600;

    background: #f4f7fb;

    border: 1px solid #dce5ee;

    border-radius: 15px;
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 600px) {

    .ranking-afiliado {
        padding: 22px 16px;

        border-radius: 18px;
    }


    .titulo-ranking h3 {
        font-size: 22px;
    }


    .minha-posicao-ranking {
        grid-template-columns:
            auto 1fr;

        gap: 12px;

        padding: 18px;
    }


    .minha-posicao-ranking > strong {
        font-size: 28px;
    }


    .minha-posicao-ranking > div {
        grid-column: 1 / -1;

        align-items: flex-start;

        padding-top: 8px;

        border-top: 1px solid
            rgba(6,27,53,.08);
    }


    .item-ranking-afiliado {
        grid-template-columns:
            48px 1fr;

        gap: 12px;

        padding: 11px;
    }


    .ranking-posicao {
        min-width: 42px;

        width: 42px;

        height: 42px;
    }


    .ranking-afiliado-info strong {
        font-size: 14px;
    }


    .ranking-afiliado-info span {
        font-size: 11px;
    }


    .ranking-valor {
        grid-column: 2;

        align-items: flex-start;

        margin-top: -5px;
    }


    .ranking-valor strong {
        font-size: 14px;
    }

}


@media (max-width: 380px) {

    .ranking-afiliado {
        padding: 20px 12px;
    }


    .item-ranking-afiliado {
        grid-template-columns:
            42px 1fr;

        gap: 9px;

        padding: 10px;
    }


    .ranking-posicao {
        width: 38px;

        min-width: 38px;

        height: 38px;
    }


    .ranking-posicao strong {
        font-size: 14px;
    }


    .ranking-afiliado-info strong {
        font-size: 13px;
    }


    .ranking-valor strong {
        font-size: 13px;
    }

}
/* ==================================================
   AJUDA DO RANKING
   ================================================== */

.titulo-ranking-label {
    display: flex;
    align-items: center;
    gap: 9px;
}


/* ==================================================
   BOTÃO ?
   ================================================== */

.botao-ajuda-ranking {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    padding: 0;

    border: 1px solid #1769aa;
    border-radius: 50%;

    background: #ffffff;
    color: #1769aa;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.botao-ajuda-ranking:hover {
    background: #1769aa;
    color: #ffffff;
    transform: scale(1.08);
}


/* ==================================================
   FUNDO DA JANELA
   ================================================== */

.ajuda-ranking-overlay {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(6, 27, 53, .72);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


/* ==================================================
   JANELA ATIVA
   ================================================== */

.ajuda-ranking-overlay.ativo {
    opacity: 1;
    visibility: visible;
}


/* ==================================================
   CAIXA
   ================================================== */

.ajuda-ranking-box {
    position: relative;

    width: 100%;
    max-width: 500px;

    padding: 35px 30px 30px;

    background: #ffffff;

    border: 1px solid #dce5ee;

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);

    text-align: center;

    transform: translateY(15px) scale(.97);

    transition:
        transform .25s ease;
}

.ajuda-ranking-overlay.ativo
.ajuda-ranking-box {

    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   FECHAR
   ================================================== */

.fechar-ajuda-ranking {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: #f4f7fb;
    color: #061b35;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.fechar-ajuda-ranking:hover {
    background: #061b35;
    color: #ffffff;
}


/* ==================================================
   ÍCONE
   ================================================== */

.icone-ajuda-ranking {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0 auto 15px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #061b35,
            #1769aa
        );

    color: #f4c542;

    font-size: 25px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(6,27,53,.15);
}


/* ==================================================
   TÍTULO
   ================================================== */

.ajuda-ranking-label {
    display: block;

    margin-bottom: 6px;

    color: #1769aa;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.5px;
}

.ajuda-ranking-box h3 {
    margin: 0 0 15px;

    color: #061b35;

    font-size: 25px;
    font-weight: 900;
}

.ajuda-ranking-box > p {
    margin: 0;

    color: #5f7185;

    font-size: 14px;
    line-height: 1.7;
}


/* ==================================================
   EXEMPLO DE PRÊMIO
   ================================================== */

.exemplo-premio-ranking {
    margin: 22px 0;

    padding: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #fffdf3,
            #fff8d9
        );

    border: 1px solid
        rgba(244,197,66,.55);
}

.exemplo-premio-ranking strong {
    display: block;

    margin-bottom: 7px;

    color: #a47700;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;
}

.exemplo-premio-ranking p {
    margin: 0;

    color: #061b35;

    font-size: 14px;
    line-height: 1.6;
}

.exemplo-premio-ranking b {
    color: #a47700;
}


/* ==================================================
   MENSAGEM DE INSPIRAÇÃO
   ================================================== */

.mensagem-inspiracao-ranking {
    margin-top: 5px !important;

    font-size: 13px !important;
    line-height: 1.7 !important;
}

.mensagem-inspiracao-ranking strong {
    color: #1769aa;
}


/* ==================================================
   BOTÃO ENTENDI
   ================================================== */

.botao-entendi-ranking {
    width: 100%;

    margin-top: 22px;

    padding: 14px 20px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #061b35,
            #1769aa
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .8px;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.botao-entendi-ranking:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(6,27,53,.18);
}


/* ==================================================
   BLOQUEIA ROLAGEM QUANDO A JANELA ESTÁ ABERTA
   ================================================== */

body.ranking-modal-aberto {
    overflow: hidden;
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 600px) {

    .ajuda-ranking-box {
        max-width: 100%;

        padding: 32px 20px 22px;

        border-radius: 20px;
    }

    .ajuda-ranking-box h3 {
        font-size: 22px;
    }

    .ajuda-ranking-box > p {
        font-size: 13px;
    }

    .exemplo-premio-ranking {
        padding: 16px;
    }

}
/* ==================================================
   BOTÃO JOGAR AGORA DO AFILIADO
   ================================================== */

.botao-jogar-agora-afiliado {
    width: 100%;

    margin-top: 10px;

    padding: 14px 18px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f4c542,
            #dca900
        );

    color: #061b35;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .7px;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(244,197,66,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.botao-jogar-agora-afiliado:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(244,197,66,.30);
}

/* ==================================================
   LOGIN DO AFILIADO — VISUAL PREMIUM
   ================================================== */

.pagina-login-afiliado {

    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(23, 105, 170, 0.35),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #061b35 0%,
            #041426 100%
        );
}


/* BRILHOS DECORATIVOS */

.pagina-login-afiliado::before {

    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    top: -180px;
    left: -150px;

    border-radius: 50%;

    background:
        rgba(244, 197, 66, 0.07);

    filter: blur(10px);

    pointer-events: none;
}


.pagina-login-afiliado::after {

    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -130px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(23, 105, 170, 0.15);

    filter: blur(15px);

    pointer-events: none;
}


/* ==================================================
   CAIXA DO LOGIN
   ================================================== */

.login-afiliado-box {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 470px;

    padding: 42px 38px 32px;

    background:
        rgba(255, 255, 255, 0.98);

    border-radius: 26px;

    border: 1px solid
        rgba(244, 197, 66, 0.45);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 35px rgba(244, 197, 66, 0.06);

    color: #061b35;

    overflow: hidden;
}


/* DETALHE DOURADO NO TOPO */

.login-afiliado-box::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 110px;
    height: 4px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            #dca900,
            #f8d45a,
            #dca900
        );

    border-radius:
        0 0 10px 10px;
}


/* ==================================================
   TÍTULO
   ================================================== */

.login-afiliado-box .titulo-secao {

    text-align: center;

    margin-bottom: 30px;
}


.login-afiliado-box .titulo-secao span {

    display: block;

    margin-bottom: 9px;

    color: #1769aa;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}


.login-afiliado-box .titulo-secao h2 {

    margin: 0 0 10px;

    color: #061b35;

    font-size: clamp(28px, 5vw, 36px);

    font-weight: 900;

    line-height: 1.1;
}


.login-afiliado-box .titulo-secao p {

    max-width: 350px;

    margin: auto;

    color: #607286;

    font-size: 14px;

    line-height: 1.6;
}


/* ==================================================
   CAMPOS
   ================================================== */

.login-afiliado-box .campo {

    margin-bottom: 18px;

    gap: 8px;
}


.login-afiliado-box .campo label {

    color: #061b35;

    font-size: 12px;

    font-weight: 800;
}


.login-afiliado-box .campo input {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    background: #f5f8fb;

    color: #061b35;

    border: 1px solid #d5e0ea;

    border-radius: 11px;

    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.login-afiliado-box .campo input::placeholder {

    color: #9aa9b8;

}


.login-afiliado-box .campo input:focus {

    background: #ffffff;

    border-color: #1769aa;

    box-shadow:
        0 0 0 3px
        rgba(23, 105, 170, 0.10);
}


/* ==================================================
   BOTÃO ENTRAR
   ================================================== */

.login-afiliado-box .botao-enviar {

    width: 100%;

    min-height: 54px;

    margin-top: 8px;

    padding: 15px 20px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f8d45a,
            #f4c542,
            #dca900
        );

    color: #061b35;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: .6px;

    box-shadow:
        0 10px 25px
        rgba(244, 197, 66, 0.25);

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.login-afiliado-box .botao-enviar:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.04);

    box-shadow:
        0 14px 30px
        rgba(244, 197, 66, 0.35);
}


.login-afiliado-box .botao-enviar:active {

    transform:
        translateY(0);
}


/* ==================================================
   MENSAGEM DE ERRO / AVISO
   ================================================== */

.mensagem-login-afiliado {

    margin-top: 15px;

    padding: 12px 14px;

    border-radius: 10px;

    background: #fff1f1;

    border: 1px solid #fecaca;

    color: #b91c1c;

    text-align: center;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;
}


.login-afiliado-box .botao-enviar { min-height: 52px; font-size: 12px; } 

/* ==================================================
   BOTÃO — QUERO SER AFILIADO
   ================================================== */

.login-cadastro-link {
    text-align: center;
}


.login-cadastro-link p {
    text-align: center;
    margin-bottom: 12px;
}


.login-cadastro-link a {

    display: flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin: 0 auto;

    min-height: 46px;

    padding: 12px 26px;

    background:
        linear-gradient(
            135deg,
            #5bbcff,
            #3298e6
        );

    color: #ffffff;

    border-radius: 10px;

    border: 1px solid
        rgba(255, 255, 255, 0.35);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: .6px;

    box-shadow:
        0 7px 18px
        rgba(50, 152, 230, 0.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.login-cadastro-link a:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.06);

    box-shadow:
        0 10px 24px
        rgba(50, 152, 230, 0.35);
}


.login-cadastro-link a:active {

    transform:
        translateY(0);

}