/* =============================================================
   Página pública do resultado (/resultados/{loteria}/{concurso})
   Seções que apresentam a análise da plataforma (prefixo rx-):
   Raio-X do concurso, demonstração das análises, chamada para
   cadastro e planos em resumo. Usa as variáveis
   do modern_layout.css; os estilos do resultado (rs-) ficam na view.
   Este arquivo entra ANTES do modern_layout.css (seção CssPage do
   _LayoutHome): para mudar uma regra de lá (.btn, .section-header),
   use um seletor mais específico.
   ============================================================= */

/* ---- Destaque da IA dentro do cartão do resultado (hero) ---- */
.rs-insight {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 123, 84, 0.35);
    background: linear-gradient(135deg, rgba(255, 123, 84, 0.13), rgba(255, 123, 84, 0.04));
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.3s ease;
}

.rs-insight:hover {
    background: rgba(255, 123, 84, 0.2);
    color: var(--text-dark);
}

.rs-insight > i {
    flex-shrink: 0;
    color: var(--secondary-color);
}

.rs-insight > i:first-child {
    font-size: var(--font-size-lg);
}

.rs-insight > i:last-child {
    margin-left: auto;
}

.rs-insight b {
    color: var(--primary-color);
}

/* ---- Rótulo acima do título das seções ---- */
.rx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 123, 84, 0.12);
    color: #c2410c;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rx-eyebrow-claro {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* =============================================================
   Raio-X do concurso
   ============================================================= */
.rx-secao {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, #eef3f9 0, var(--bg-white) 360px);
}

.section-header.rx-header {
    margin-bottom: var(--spacing-2xl);
}

.rx-secao .rx-header p {
    max-width: 720px;
}

.rx-header p strong {
    color: var(--primary-color);
}

/* Indicadores (dados reais do concurso) */
.rx-indicadores {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.rx-ind {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
    padding: var(--spacing-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rx-ind:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rx-ind::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), #ff6b3d);
}

/* Super Sete e Loteca: um card só, mais largo */
.rx-ind-largo {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 720px;
}

.rx-ind-titulo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rx-ind-titulo i {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
}

.rx-ind-valor {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.15;
}

.rx-ind-valor small {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.rx-ind-texto {
    margin: auto 0 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.rx-ind-texto b {
    color: var(--text-dark);
}

/* Barra de proporção (pares x ímpares; na Loteca, mandante x empate x visitante) */
.rx-split {
    display: flex;
    height: 10px;
    overflow: hidden;
    border-radius: var(--border-radius-full);
    background: #cfd9e6;
}

.rx-split span {
    background: var(--primary-color);
}

.rx-split-3 span + span {
    background: var(--secondary-color);
}

/* Mini-histograma das 10 faixas de soma */
.rx-faixas {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
}

.rx-faixas span {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: rgba(30, 58, 95, 0.18);
}

.rx-faixas span.atual {
    background: linear-gradient(180deg, var(--secondary-color), #ff6b3d);
}

.rx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rx-chips li {
    padding: 0.15rem 0.55rem;
    border-radius: var(--border-radius-full);
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.rx-chips li.destaque {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* Mapa de atraso das dezenas sorteadas */
.rx-card {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.rx-card-topo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.rx-card-topo h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.rx-card-topo h3 i {
    color: var(--secondary-color);
}

.rx-card-topo p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.rx-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-light);
    font-size: var(--font-size-xs);
}

.rx-legenda li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rx-legenda span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.rx-heat {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rx-heat li {
    display: flex;
    flex: 0 0 56px;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.rx-heat-bola {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
}

.rx-heat-valor {
    color: var(--text-dark);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.rx-heat li.maior .rx-heat-bola {
    box-shadow: 0 0 0 3px var(--bg-white), 0 0 0 5px var(--secondary-color);
}

.rx-heat li.maior .rx-heat-valor {
    color: #c2410c;
}

/* Intensidade do atraso: 0 = saiu no concurso anterior; 3 = entre os maiores atrasos do sorteio */
.rx-n0 {
    background: #e3ebf5;
    color: var(--primary-color);
}

.rx-n1 {
    background: #ffe3d6;
    color: #a63c12;
}

.rx-n2 {
    background: #ffb08f;
    color: #6f260a;
}

.rx-n3 {
    background: linear-gradient(135deg, #f26a3d, #c2410c);
    color: var(--text-white);
}

.rx-atrasos-destaque {
    margin: var(--spacing-lg) 0 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid rgba(255, 123, 84, 0.25);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 123, 84, 0.08);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
}

.rx-atrasos-destaque i {
    margin-right: 0.4rem;
    color: var(--secondary-color);
}

/* Prévia das análises da conta (visual ilustrativo desfocado) */
.rx-bloqueado-topo {
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.rx-bloqueado-topo h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.4rem;
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.rx-bloqueado-topo h3 i {
    color: var(--secondary-color);
}

.rx-bloqueado-topo p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-light);
}

.rx-bloqueados {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.rx-lock {
    min-width: 0;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border: 1px dashed rgba(30, 58, 95, 0.28);
    border-radius: var(--border-radius-lg);
}

.rx-lock-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    height: 104px;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
}

.rx-lock-visual > * {
    filter: blur(4px);
    opacity: 0.85;
    user-select: none;
}

.rx-lock-visual::after {
    content: "\f023";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: auto;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.rx-lock-bolas {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.rx-lock-bolas span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: var(--text-white);
    font-weight: 700;
}

.rx-lock-faixa {
    position: relative;
    height: 12px;
    border-radius: var(--border-radius-full);
    background: #dde5ef;
}

.rx-lock-faixa span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30%;
    width: 38%;
    border-radius: var(--border-radius-full);
    background: var(--secondary-color);
}

.rx-lock-faixa i {
    position: absolute;
    top: -5px;
    left: 52%;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--primary-color);
}

.rx-lock-linhas {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rx-lock-linhas span {
    height: 9px;
    border-radius: var(--border-radius-full);
    background: #d5dee9;
}

.rx-lock-linhas span:nth-child(2) {
    width: 75%;
}

.rx-lock-linhas span:nth-child(3) {
    width: 55%;
}

.rx-lock-grade {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.rx-lock-grade span {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}

.rx-lock-grade .g0 {
    background: #e3ebf5;
}

.rx-lock-grade .g1 {
    background: #ffe3d6;
}

.rx-lock-grade .g2 {
    background: #ffb08f;
}

.rx-lock-grade .g3 {
    background: #f26a3d;
}

.rx-lock-barras {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
}

.rx-lock-barras span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.3), rgba(30, 58, 95, 0.6));
}

.rx-lock h4 {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.rx-lock p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.rx-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--spacing-xl);
}

/* Botão com o preço: em celular estreito quebra a linha em vez de passar da tela (o .btn do layout é nowrap) */
.rx-cta .btn {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.rx-cta-texto {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.rx-link-analise {
    margin: var(--spacing-lg) 0 0;
    text-align: center;
}

.rx-link-analise a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.rx-link-analise a:hover {
    color: var(--primary-color);
}

/* =============================================================
   Demonstração das análises (fundo azul-marinho, como o hero)
   ============================================================= */
.rx-demo-secao {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: var(--text-white);
}

.rx-demo-secao::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='g' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.rx-demo-secao .container {
    position: relative;
    z-index: 1;
}

.rx-demo-secao .section-header h2 {
    color: var(--text-white);
}

.rx-demo-secao .section-header p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.85);
}

.rx-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-2xl) var(--spacing-xl);
}

.rx-demo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.rx-demo .rx-demo-tela {
    max-width: none;
    min-height: 240px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.rx-demo:hover .rx-demo-tela {
    transform: translateY(-4px);
}

.rx-demo h3 {
    margin: 0;
    color: var(--text-white);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.rx-demo p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-sm);
}

.rx-demo-curva {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 92px;
}

.rx-demo-curva span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.45), rgba(33, 150, 243, 0.85));
}

.rx-demo-curva .hot {
    background: linear-gradient(180deg, var(--secondary-color), #ff6b3d);
}

.rx-demo-pares {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rx-demo-pares span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.rx-demo-pares b {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
}

.rx-demo-pares b:last-of-type {
    margin-right: 0.4rem;
}

.rx-demo-pares span:nth-child(2) b {
    background: linear-gradient(135deg, var(--secondary-color), #ff6b3d);
}

.rx-demo-pares .off b {
    background: #dfe5ec;
}

/* =============================================================
   Chamada para cadastro
   ============================================================= */
.rx-chamada-secao {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.rx-chamada {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    border: 1px solid rgba(255, 123, 84, 0.3);
    border-radius: var(--border-radius-xl);
    background: linear-gradient(135deg, #fff7f3 0%, #ffe9df 100%);
    box-shadow: var(--shadow);
}

.rx-chamada h2 {
    margin: 0 0 var(--spacing-md);
    color: var(--primary-color);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.2;
}

.rx-chamada p {
    margin: 0;
    color: var(--text-dark);
    font-size: var(--font-size-lg);
}

.rx-passos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    margin: var(--spacing-lg) 0 0;
    padding: 0;
    list-style: none;
}

.rx-passos li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.rx-passos b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: var(--font-size-xs);
}

.rx-chamada-acoes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.rx-chamada-acoes .btn {
    width: 100%;
}

.rx-chamada-acoes small {
    color: var(--text-light);
    text-align: center;
}

/* Botão contornado para fundo claro (o .btn-outline do layout é para fundo escuro) */
.btn.btn-outline-escuro {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-outline-escuro:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn.btn-outline-escuro.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =============================================================
   Planos em resumo
   ============================================================= */
.rx-planos-secao {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.rx-planos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
    gap: var(--spacing-xl);
}

.rx-plano {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
}

.rx-plano.destaque {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.rx-plano-selo {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    border-radius: var(--border-radius-full);
    background: var(--secondary-color);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: 700;
    white-space: nowrap;
}

.rx-plano-tipo {
    color: #c2410c;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rx-plano h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.rx-plano-beneficio {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.rx-plano-itens {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rx-plano-itens li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
}

.rx-plano-itens i {
    color: var(--accent-color);
}

.rx-plano-extra {
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
}

.rx-plano-extra i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

.rx-plano-preco {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.rx-plano-preco b {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
}

.rx-plano-preco small {
    color: var(--text-light);
}

.rx-plano-antes {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    text-decoration: line-through;
}

.rx-plano-anual {
    flex-basis: 100%;
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
}

.rx-plano-anual:hover {
    color: var(--primary-color);
}

.rx-plano .btn {
    width: 100%;
}

/* =============================================================
   Confira seu jogo (gancho no hero, logo abaixo das dezenas)
   Cartão branco sobre o azul do hero, com a mesma linguagem do
   cartão do resultado; o laranja fica só para a ação principal.
   ============================================================= */
.cj {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: var(--spacing-lg);
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: 0 18px 40px rgba(6, 20, 40, 0.35);
    text-align: left;
}

.cj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), #ffb08f);
}

.cj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 123, 84, 0.12);
    color: #c2410c;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cj-titulo {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.2;
}

.cj-texto {
    margin: 0 0 var(--spacing-md);
    color: var(--text-dark);
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Botão principal sempre na largura do cartão (fácil de tocar no celular) */
.cj .btn.cj-botao {
    width: 100%;
    justify-content: center;
    font-weight: 700;
}

.cj .btn.cj-botao:disabled {
    opacity: 0.45;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Brilho único no botão da chamada, para puxar o olho logo depois das dezenas */
.cj-abrir {
    position: relative;
    overflow: hidden;
}

.cj-abrir::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: cjBrilho 1.1s ease 1.2s 2;
    pointer-events: none;
}

@keyframes cjBrilho {
    to {
        left: 130%;
    }
}

.cj-micro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    margin: 0.6rem 0 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.cj-micro i {
    margin-right: 0.25rem;
    color: var(--accent-color);
}

/* Depois de abrir o volante (ou de conferir), a chamada vira só o título */
.cj-chamada.is-recolhida .cj-texto,
.cj-chamada.is-recolhida .cj-abrir,
.cj-chamada.is-recolhida .cj-micro {
    display: none;
}

.cj-chamada.is-recolhida .cj-titulo {
    font-size: var(--font-size-xl);
}

.cj-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
}

.cj-link:hover {
    color: var(--primary-color);
}

/* Lista de benefícios (gate e chamada das loterias sem volante) */
.cj-lista {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0 0 var(--spacing-md);
    padding: 0;
    list-style: none;
}

.cj-lista li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.cj-lista i {
    color: var(--accent-color);
}

/* ---- Volante ---- */
.cj-volante {
    margin-top: var(--spacing-sm);
}

.cj-volante-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: 0.6rem;
}

.cj-contador {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.cj-contador.is-ok {
    color: #2e7d32;
}

.cj-contador.is-limite {
    color: #c2410c;
}

.cj-grade {
    display: grid;
    grid-template-columns: repeat(var(--cj-colunas, 10), minmax(0, 1fr));
    gap: 5px;
}

.cj-dezena {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid #d5dee9;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.cj-dezena:hover {
    border-color: var(--secondary-color);
}

.cj-dezena:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.cj-dezena.is-on {
    border-color: transparent;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b3d);
    color: var(--text-white);
    transform: scale(1.06);
}

.cj-digitar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: var(--spacing-md) 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.cj-campo {
    width: 100%;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: var(--font-size-base);
    font-weight: 600;
    letter-spacing: 0.03em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cj-campo:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.2);
}

.cj-nota {
    margin: 0.6rem 0 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    text-align: center;
}

/* ---- Resposta ---- */
.cj-res-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0 0.6rem;
}

.cj-res-rotulo {
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cj-res-rotulo i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

.cj-meu-jogo {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cj-meu-jogo li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e3ebf5;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.cj-meu-jogo li.acerto {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

.cj-placar {
    margin: 0.75rem 0 0;
    color: var(--text-dark);
    font-size: var(--font-size-lg);
}

.cj-placar b {
    color: var(--primary-color);
}

.cj-salvo {
    margin: 0.4rem 0 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
}

.cj-salvo i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

/* Histórico do jogo x acaso */
.cj-hist {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.cj-hist-carregando,
.cj-hist-erro {
    margin: 0;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.cj-hist-carregando i {
    margin-right: 0.4rem;
    color: var(--secondary-color);
}

.cj-hist-titulo {
    margin: 0 0 0.6rem;
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: 700;
}

.cj-hist-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.cj-hist-tabela th {
    padding: 0 0.4rem 0.35rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
}

.cj-hist-tabela td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.cj-hist-tabela tbody tr:last-child td {
    border-bottom: none;
}

.cj-hist-tabela .cj-faixa {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.cj-hist-tabela tr.tem .cj-vezes {
    font-weight: 700;
    color: #2e7d32;
}

.cj-hist-tabela .cj-esperado {
    color: var(--text-light);
}

.cj-hist-melhor,
.cj-hist-leitura {
    margin: 0.6rem 0 0;
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.cj-hist-melhor i {
    color: #d4a017;
}

.cj-hist-melhor a {
    color: var(--secondary-color);
    font-weight: 700;
}

.cj-hist-leitura {
    color: var(--text-light);
}

.cj-hist-leitura i {
    color: var(--primary-color);
}

/* Convite para a conta, depois da resposta */
.cj-gate {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 123, 84, 0.3);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #fff7f3 0%, #ffe9df 100%);
}

.cj-gate h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.3;
}

.cj-gate h3 i {
    color: var(--secondary-color);
}

/* Prévia ilustrativa (desfocada, sem dados) do raio-X das dezenas que fica na conta */
.cj-gate-previa {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.cj-gate-previa li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 46px;
    padding: 0.35rem 0;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.08);
}

.cj-gate-previa b {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
}

.cj-gate-previa span {
    width: 30px;
    height: 6px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(90deg, #ffb08f, #f26a3d);
    filter: blur(2px);
}

.cj-gate-previa span + span {
    width: 22px;
    background: #cfd9e6;
}

.cj-gate .cj-lista {
    margin-bottom: var(--spacing-md);
}

/* Usuário logado: atalhos para a conta */
.cj-conta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--spacing-md);
}

.cj-link-conta {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
}

.cj-link-conta:hover {
    color: var(--primary-color);
}

/* =============================================================
   Oferta paga do gancho (_OfertaResultado: Passe 24h e Premium)
   ============================================================= */
.of {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 123, 84, 0.35);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(160deg, #fff7f3 0%, #ffffff 55%);
}

/* Loterias sem volante: a oferta é o próprio conteúdo do cartão */
.cj > .of {
    margin-top: 0;
    padding: 0;
    border: none;
    background: none;
}

.of-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--border-radius-full);
    background: var(--primary-color);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.of-titulo {
    margin: 0 0 0.35rem;
    color: var(--primary-color);
    font-size: var(--font-size-xl);
    font-weight: 800;
    line-height: 1.25;
}

.of-sub {
    margin: 0;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    line-height: 1.45;
}

.of-falta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: #c2410c;
    font-size: var(--font-size-xs);
    font-weight: 700;
}

/* Palpite da IA: ilustração desfocada (sem dados) do que fica na conta */
.of-palpite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: var(--spacing-md);
    padding: 0.65rem 0.8rem;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: var(--text-white);
}

.of-palpite-rotulo {
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.of-palpite-rotulo i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

.of-palpite-bolas {
    display: flex;
    gap: 4px;
}

.of-palpite-bolas i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-style: normal;
    font-weight: 800;
    filter: blur(1.5px);
}

/* O que o acesso libera */
.of-stack-titulo {
    margin: var(--spacing-md) 0 0.5rem;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.of-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.of-stack li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.of-stack-icone {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 123, 84, 0.14);
    color: #c2410c;
    font-size: 0.8rem;
}

.of-stack b {
    display: block;
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    line-height: 1.3;
}

.of-stack small {
    display: block;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    line-height: 1.4;
}

/* Produtos: o destaque vem primeiro, com o botão laranja */
.of-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: var(--spacing-md);
}

.of-produto {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-white);
}

.of-produto.is-destaque {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 22px rgba(255, 123, 84, 0.2);
}

.of-produto-tag {
    align-self: flex-start;
    padding: 0.15rem 0.6rem;
    border-radius: var(--border-radius-full);
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.of-produto.is-destaque .of-produto-tag {
    background: var(--secondary-color);
    color: var(--text-white);
}

.of-produto h4 {
    margin: 0.15rem 0 0;
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: 800;
}

.of-preco {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.4rem;
    margin: 0;
}

.of-preco b {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    line-height: 1.1;
}

.of-preco s {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.of-preco small {
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.of-produto-texto {
    margin: 0 0 0.35rem;
    color: var(--text-dark);
    font-size: var(--font-size-xs);
    line-height: 1.45;
}

.of-produto-texto b {
    color: #2e7d32;
}

/* O .btn do layout não quebra linha (nowrap) e o .btn-large tem 2rem de respiro dos lados: no cartão estreito do
   produto o texto passava da borda. Aqui o botão é mais compacto e pode quebrar em duas linhas. */
.of .btn.of-botao {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 0.7rem 1rem;
    justify-content: center;
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.of-anual {
    padding: 0;
    border: none;
    background: none;
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.of-anual:hover {
    color: var(--primary-color);
}

/* Confiança e saída para o grátis */
.of-confianca {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.9rem;
    margin: 0.85rem 0 0;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.of-confianca i {
    margin-right: 0.25rem;
    color: var(--accent-color);
}

.of-gratis {
    display: block;
    margin: 0.6rem auto 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.of-gratis:hover {
    color: var(--primary-color);
}

.of-responsavel {
    margin: 0.6rem 0 0;
    color: var(--text-light);
    font-size: 0.68rem;
    line-height: 1.4;
    text-align: center;
}

/* Seção #oferta: o destino dos botões do Raio-X, da demonstração e do próximo sorteio (variantes pagas) */
.of-secao {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0, #fff3ec 100%);
}

.of-secao .of {
    max-width: 980px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.of-secao .of-titulo {
    font-size: var(--font-size-3xl);
}

.of-secao .of-sub {
    font-size: var(--font-size-base);
}

@media (min-width: 993px) {
    .of-secao .of {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
        gap: var(--spacing-2xl);
    }

    .of-secao .of-produtos {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .of-secao .of {
        padding: var(--spacing-md);
    }

    .of-secao .of-titulo {
        font-size: var(--font-size-2xl);
    }
}

/* Raio-X e demonstração: link para as opções e linha de preços abaixo do botão */
.rx-cta-link {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
}

.rx-cta-link:hover {
    color: var(--primary-color);
}

.rx-cta-texto i {
    margin-right: 0.3rem;
    color: var(--accent-color);
}

.rx-demo-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.rx-demo-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    font-weight: 600;
}


/* Barra fixa da oferta (depois que a oferta foi vista e o gancho saiu da tela) */
.of-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem max(16px, calc((100% - 960px) / 2));
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 -8px 24px rgba(6, 20, 40, 0.25);
    animation: ofBarraEntrada 0.3s ease both;
}

.of-barra[hidden] {
    display: none;
}

@keyframes ofBarraEntrada {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.of-barra-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.of-barra-info b {
    font-size: var(--font-size-sm);
}

.of-barra-info span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.of-barra .btn.of-barra-botao {
    flex-shrink: 0;
    font-weight: 700;
}

.of-barra-fechar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    cursor: pointer;
}

/* Com a barra na tela, o botão de ajuda sobe para não ficar por baixo dela */
body.of-com-barra .ct-botao-ajuda {
    bottom: 96px;
}

/* =============================================================
   Responsivo
   ============================================================= */
@media (max-width: 992px) {
    .rx-indicadores,
    .rx-demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-bloqueados {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .rx-chamada {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 576px) {
    .rx-indicadores,
    .rx-demo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rx-card,
    .rx-chamada {
        padding: var(--spacing-lg);
    }

    .rx-chamada h2 {
        font-size: var(--font-size-2xl);
    }

    .rx-heat li {
        flex-basis: 46px;
    }

    .rx-heat-bola {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-sm);
    }

    .rx-bloqueado-topo h3 {
        font-size: var(--font-size-xl);
    }

    .rx-planos {
        grid-template-columns: minmax(0, 1fr);
    }

    .cj {
        padding: var(--spacing-md);
    }

    .cj-titulo {
        font-size: var(--font-size-xl);
    }

    .cj-grade {
        gap: 4px;
    }

    .cj-dezena {
        font-size: 0.72rem;
    }

    .cj-meu-jogo li {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-xs);
    }
}

/* Hero em uma coluna (o cartão do gancho fica centralizado, como o das dezenas) */
@media (max-width: 768px) {
    .cj {
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cj-abrir::after,
    .of-barra {
        animation: none;
    }

    .cj-dezena {
        transition: none;
    }

    .rx-ind,
    .rx-demo .rx-demo-tela {
        transition: none;
    }

    .rx-ind:hover,
    .rx-demo:hover .rx-demo-tela {
        transform: none;
    }
}
