/*
 * A página do programa de afiliados (/afiliados, 30/09/2026; pranchas AF1 e AF2). A base é a das
 * páginas de novidade (novidade-central.css, classes .nvc-*, identidade Azulejo Lusa); aqui ficam o
 * cartão do link, o simulador, as regras e as perguntas. Classes .afl-*. O amarelo é o destaque;
 * o verde continua só nos botões de ação.
 */
.nv-afiliados [id] { scroll-margin-top: 84px; }
.afl-cartao button { font-family: inherit; }
/* Os títulos chegam como frase inteira (para a tradução) e o destaque vem em <strong>. */
.nv-afiliados h1 strong, .nv-afiliados h2 strong { font-weight: inherit; color: var(--amarelo); }
.afl-heroi { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.afl-selo-ok { color: #8fe3bd; border-color: rgba(0, 255, 136, .4); background: rgba(0, 255, 136, .1); }
.afl-selo-ok svg { color: var(--verde); }
.afl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.afl-chips li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .14);
    font-size: 12.5px; font-weight: 700; color: #d7e2dc; white-space: nowrap; }
.afl-chips strong { color: var(--amarelo); font-weight: 800; }
.afl-chips svg { color: var(--amarelo); }

/* ------------------------------------------------------------------ o cartão do link */
.afl-cartao { justify-self: end; width: min(440px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #16191d; border: 1px solid #2f363e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5); min-width: 0; }
.afl-cartao-cab { display: flex; align-items: center; gap: 8px; min-width: 0; }
.afl-cartao-cab svg { flex: none; color: var(--amarelo); }
.afl-cartao-cab b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afl-etq { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: #232930; color: var(--t2);
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.afl-etq-ok { background: rgba(0, 255, 136, .12); color: #8fe3bd; }
.afl-campo { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px; border-radius: 12px; background: #0f1215; border: 1px solid #3a424b; min-width: 0; }
.afl-campo > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.afl-campo button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; background: #232930; border: 1px solid #3a424b; color: #fff;
    font-size: 12.5px; font-weight: 800; cursor: pointer; }
.afl-campo button.feito { border-color: var(--amarelo); color: var(--amarelo); }
.afl-envio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.afl-envio a, .afl-envio button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 10px; border: 1px solid #2f363e; background: #15181c; color: #fff !important;
    font-size: 12.5px; font-weight: 800; white-space: nowrap; text-decoration: none; cursor: pointer; min-width: 0; }
.afl-envio .afl-zap { color: #5be584 !important; }
.afl-envio .afl-tg { color: #7cc4ff !important; }
.afl-envio a:hover, .afl-envio button:hover, .afl-campo button:hover { border-color: rgba(255, 255, 255, .4); }
.afl-cartao [aria-disabled="true"], .afl-cartao button:disabled { opacity: .6; pointer-events: none; cursor: default; }
.afl-cartao a:focus-visible, .afl-cartao button:focus-visible, .afl-pergunta summary:focus-visible, .afl-controle input:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 3px; }
.afl-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 12px; background: var(--linha); overflow: hidden; }
.afl-numeros > div { display: grid; gap: 3px; padding: 11px 12px; background: #15181c; min-width: 0; }
.afl-numeros dt { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afl-numeros dd { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afl-numeros .afl-saldo { color: var(--amarelo); }
.afl-pelos { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--t2, #b9bec5); }
.afl-pelos[hidden] { display: none; }
.afl-pelos svg { color: #00ff88; flex: none; }
.afl-apelido[hidden], .afl-apelido-ver[hidden], .afl-apelido-form[hidden], .afl-apelido-erro[hidden] { display: none; }
.afl-apelido-ver { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--t2, #b9bec5); }
.afl-apelido-ver b { color: #fff; }
.afl-apelido-ver button, .afl-apelido-botoes button { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--linha, #2a3037); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.afl-apelido-form { display: flex; flex-direction: column; gap: 8px; }
.afl-apelido-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--t2, #b9bec5); }
.afl-apelido-form input { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha, #2a3037); background: #0e1013; color: #fff; font: inherit; font-size: 16px; box-sizing: border-box; }
.afl-apelido-form input:focus { outline: none; border-color: #00ff88; }
.afl-apelido-form small { font-size: 12px; color: var(--t3, #8b929b); line-height: 1.4; }
.afl-apelido-erro { margin: 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 138, 106, .1); color: #ffb39e; font-size: 13px; }
.afl-apelido-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.afl-apelido-botoes button.verde { border-color: transparent; background: #00ff88; color: #04140c; font-weight: 800; }
.afl-apelido-botoes button:disabled { opacity: .5; cursor: default; }
.afl-cartao-pe { font-size: 12px; color: #8b929b; }

/* ------------------------------------------------------------------ como funciona */
.afl-passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ------------------------------------------------------------------ o simulador */
.afl-sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 16px; background: var(--cartao); border: 1px solid var(--linha); overflow: hidden; }
.afl-sim-controles { display: grid; gap: 22px; align-content: center; padding: 24px; min-width: 0; }
.afl-controle { display: grid; gap: 10px; min-width: 0; }
.afl-controle > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: #d5d9de; }
.afl-controle b { flex: none; font-size: 16px; font-weight: 800; color: var(--amarelo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.afl-controle input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--amarelo); cursor: pointer; }
.afl-escala { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--t3); }
.afl-sim-nota { font-size: 12.5px; line-height: 1.55; color: #8b929b; }
.afl-sim-resultado { display: grid; gap: 10px; align-content: center; padding: 24px 28px; border-left: 1px solid var(--linha); min-width: 0;
    background: linear-gradient(135deg, rgba(255, 212, 59, .12), rgba(255, 212, 59, .03)); }
.afl-sim-rotulo { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); }
.afl-sim-total { font-family: var(--titulo); font-style: italic; font-weight: 800; font-size: clamp(46px, 6vw, 66px); line-height: 1; color: var(--amarelo); font-variant-numeric: tabular-nums; }
.afl-conta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; line-height: 1.4; color: #c7d2cb; }
.afl-conta b { flex: none; color: #fff; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afl-conta-fim { margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 212, 59, .2); }
.afl-conta-fim b { color: var(--amarelo); }

/* ------------------------------------------------------------------ grupo grande (30/09: condições especiais com a equipe de parceiros) */
.afl-grande { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 18px; background: var(--cartao);
    border: 1px solid rgba(255, 212, 59, .32); position: relative; overflow: hidden; isolation: isolate; }
.afl-grande::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--azulejo); background-size: 72px 72px; opacity: .05; }
.afl-grande .afl-ic { width: 52px; height: 52px; margin: 0; border-radius: 15px; }
.afl-grande-texto { display: grid; gap: 6px; min-width: 0; }
.afl-grande h2 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.afl-grande p { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--t2); }
.afl-grande-contato { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.afl-grande-contato .nvc-botao svg { flex: none; color: var(--amarelo); }
.afl-grande-mail { font-size: 12.5px; color: var(--t3); text-align: center; }
.afl-grande-mail b { color: #fff; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.afl-grande-mail a { color: inherit; text-decoration: none; }
.afl-grande-mail a:hover b { color: var(--amarelo); }

/* ------------------------------------------------------------------ o que conta */
.afl-regras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.afl-regras-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.afl-regra { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 16px; background: var(--cartao); border: 1px solid var(--linha); min-width: 0; }
.afl-regra p { font-size: 13.5px; line-height: 1.5; color: var(--t2); }
.afl-regra h3 { font-size: 16px; line-height: 1.25; }
.afl-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 11px; background: rgba(255, 212, 59, .12); color: var(--amarelo); }

/* ------------------------------------------------------------------ perguntas */
.afl-perguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.afl-pergunta { border-radius: 16px; background: var(--cartao); border: 1px solid var(--linha); overflow: hidden; }
.afl-pergunta[open] { border-color: #3a424b; }
.afl-pergunta summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.afl-pergunta summary::-webkit-details-marker { display: none; }
.afl-pergunta summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(45deg); transition: transform .2s ease; }
.afl-pergunta[open] summary::after { margin-top: 4px; border-color: var(--amarelo); transform: rotate(225deg); }
.afl-pergunta p { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.55; color: var(--t2); }

.nv-afiliados .nvc-fim .nvc-acoes { justify-content: center; }

@media (max-width: 1000px) {
    .afl-regras, .afl-regras-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .afl-heroi { grid-template-columns: minmax(0, 1fr); }
    .afl-cartao { justify-self: stretch; width: 100%; }
    .afl-passos, .afl-perguntas { grid-template-columns: minmax(0, 1fr); }
    .afl-sim { grid-template-columns: minmax(0, 1fr); }
    .afl-sim-controles { padding: 18px 16px; }
    .afl-sim-resultado { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--linha); }
    .afl-grande { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
    .afl-grande-contato { justify-items: stretch; }
    .afl-grande-contato .nvc-botao { justify-content: center; }
}
@media (max-width: 520px) {
    /* No celular os botões ficam um embaixo do outro, inteiros (o texto não quebra). */
    .nv-afiliados .nvc-acoes { flex-direction: column; align-items: stretch; }
    .nv-afiliados .nvc-botao { flex: none; white-space: nowrap; }
    /* O cartão do link no celular: o link inteiro em duas linhas e os três números sem cortar. */
    .afl-cartao { padding: 14px; }
    .afl-cartao-cab b { font-size: 14px; }
    .afl-campo { height: auto; min-height: 48px; padding: 7px 6px 7px 12px; }
    .afl-campo > span { white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.35; }
    .afl-numeros > div { padding: 10px 8px; }
    .afl-numeros dt { font-size: 9px; letter-spacing: .03em; }
    .afl-numeros dd { font-size: 15px; }
    .afl-regras, .afl-regras-3 { grid-template-columns: minmax(0, 1fr); }
    .afl-envio a, .afl-envio button { font-size: 11.5px; gap: 4px; }
    .afl-envio svg { width: 14px; height: 14px; }
    .afl-conta { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .afl-pergunta summary::after { transition: none; }
}
