/* Premium page styles */
:root {
    --gold: #f59e0b;
    --gold-2: #d97706;
    --bg: #0b0f19;
    --card: #111827;
    --text: #e5e7eb;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 50% -100px, #121826 10%, #0b0f19 60%), linear-gradient(180deg, #0b0f19, #111827);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    display: flex;
    flex-direction: column
}

/* ========== Skeleton (loading placeholders) ========== */
.sk{ display:none; position:relative; overflow:hidden; background:linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%); background-size:400% 100%; animation:skShimmer 1.1s ease-in-out infinite; border-radius:8px; }
.sk.sk-title{ height:18px; margin:6px 0 10px; width:60%; }
.sk.sk-sub{ height:12px; margin:4px 0 12px; width:70%; border-radius:6px; }
.sk.sk-price{ height:28px; margin:8px 0 12px; width:140px; border-radius:8px; }
@keyframes skShimmer{ 0%{ background-position:100% 0 } 100%{ background-position:0 0 } }

/* Quando carregando, ocultar conteúdo real e exibir skeletons nos cards */
body.is-loading .plan-card[data-load-gate] h2,
body.is-loading .plan-card[data-load-gate] .subcopy,
body.is-loading .plan-card[data-load-gate] .price,
body.is-loading .plan-card[data-load-gate] .cta,
body.is-loading .plan-card[data-load-gate] .plan-badge,
body.is-loading .plan-card[data-load-gate] .plan-compare,
body.is-loading .plan-card[data-load-gate] .plan-small,
body.is-loading .plan-card[data-load-gate] .powered-by,
body.is-loading .plan-card[data-load-gate] .plan-meta{ visibility:hidden; }
body.is-loading .plan-card[data-load-gate] .sk{ display:block; }

.premium-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1 0 auto;
    width: 100%
}

/* Hero */
.premium-hero{
    text-align:center;
    margin: 10px 0 28px;
}
.hero-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.28);
    color: rgba(245,194,65,.95);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .2px;
}
.premium-hero h1{
    margin: 16px 0 8px;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.6px;
}
.premium-hero h1 .accent{ color: rgba(245,194,65,.95); }
.premium-hero p{
    max-width: 760px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
}
.hero-bullets{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}
.hero-bullet{ display:inline-flex; align-items:center; gap:8px; }
.hero-bullet i{ color: #22c55e; }

@media (max-width: 700px){
    .premium-hero h1{ font-size: 34px; }
}

.selling-points{ display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:0; }
/* Benefícios: estilo mais neutro e consistente com features */
.benefits .benefits-list .point{
    background: rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
    padding:8px 12px;border-radius:999px;font-weight:800;font-size:12px;color:#cbd5e1;
}
.benefits .benefits-list .point i{ color:#22c55e; margin-right:6px; }

.premium-header .back {
    position: absolute;
    left: 24px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 700
}
.back-floating{
    position: absolute;
    top: 14px; /* sobe um pouco em relação ao header */
    left: 24px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 700;
    z-index: 2;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    /* Evita “vazio” no rodapé: não estica todos os cards para a maior altura */
    align-items: start;
    margin: 28px 0 24px;
}

/* No desktop (3 colunas), desce os cards laterais para destacar o plano do meio */
@media (min-width: 981px) {
    .plans.plans-3 .plan-card:not(.best){
        margin-top: 40px;
    }
}

@media (max-width: 980px) {
    .plans { grid-template-columns: 1fr; }
    .plan-card{ min-height: 0; }
    .plan-card.best{ transform: none; }
}

/* Benefícios fora dos cards */
.benefits { margin: 32px 0 28px; }
.benefits-card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 18px 20px 22px;
    box-shadow: 0 12px 24px rgba(0,0,0,.2);
    max-width: 880px;
    margin: 0 auto;
}
.benefits-title {
    margin: 0 0 10px;
    font-size: 18px;
}
.benefits-title i { color: var(--gold); margin-right: 6px; }
.benefits .benefits-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}
@media (max-width: 700px) {
    .benefits .benefits-list { justify-content: flex-start; }
}

.plan-card {
    background: var(--card);
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(255, 255, 255, .06);
    position: relative;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-height: 0;
}

/* Cards menores (Mensal e Gratuito) — mantém o Anual maior */
.plan-card:not(.best){
    padding: 20px 18px;
}
.plan-card:not(.best) .plan-meta{ margin-top: 12px; }
.plan-card:not(.best) .plan-features{ gap: 7px; }

.plan-card h2{
    margin: 4px 0 8px;
    font-size: 16px;
    letter-spacing: .2px;
}

.plan-card.plan-free{ opacity: .92; }

.plan-card.best {
    border-color: rgba(245, 158, 11, .45);
    box-shadow: 0 16px 32px rgba(245, 158, 11, .15);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(17,24,39,.92);
    padding-top: 46px;
    transform: translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(252, 211, 77, .98), rgba(251, 190, 36, .94));
    color: #111827;
    font-weight: 900;
    padding: 8px 10px;
    border-radius: 18px 18px 0 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(217, 119, 6, .65);
    text-align: center;
    letter-spacing: .2px;
}

.plan-card .subcopy{ margin: -4px 0 8px; color:#94a3b8; font-size:12px; }

.plan-compare{
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    margin-top: -2px;
    margin-bottom: 10px;
}
.plan-compare .strike{
    color:#64748b;
    font-weight: 900;
    font-size: 12px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.saving-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(34,197,94,.25);
    color: rgba(34,197,94,.95);
    font-size: 11px;
    font-weight: 900;
}
.plan-small{
    text-align:center;
    margin-top: -4px;
    margin-bottom: 10px;
    color:#64748b;
    font-size: 11px;
    font-weight: 800;
}

.price {
    font-size: 26px;
    font-weight: 900;
    margin: 12px 0 10px;
    display: grid;
    place-items: center;
    text-align: center;
}

.price > span{
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}


.price .price-currency{
    font-size: 18px;
    margin-right: 2px;
    color: #cbd5e1;
    line-height: 1;
}

.price .price-main{
    font-size: 40px;
    letter-spacing: -0.4px;
    color: #e5e7eb;
    line-height: 1;
}

.plan-card.best .price .price-main{
    font-size: 44px;
}

.price small {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

/* No destaque anual, sobe um pouco o bloco do preço */
.plan-card.best .price{ margin-top: 8px; }

.features {
    list-style: none;
    margin: 8px 0 14px;
    padding: 0
}

.features li {
    margin: 6px 0;
    color: #cbd5e1
}

.features i {
    color: #22c55e;
    margin-right: 8px
}

.cta {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(252, 211, 77, .95), rgba(251, 191, 36, .9));
    color: #111827;
    border: 1px solid rgba(217, 119, 6, .7);
    text-align: center;
    text-decoration: none;
}

/* CTAs neutros para planos não-destaque (como no protótipo) */
.plan-card.plan-free .cta,
.plan-card[data-period="monthly"] .cta{
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: rgba(226, 232, 240, 0.92);
}

.plan-card.plan-free .cta:hover,
.plan-card[data-period="monthly"] .cta:hover{
    filter: none;
    background: rgba(148, 163, 184, 0.22);
    border-color: rgba(148, 163, 184, 0.30);
}

/* Spinner linha (substitui dots / fontawesome) */
.cta .spinner-line {
	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spinner-line-rot .8s linear infinite;
	vertical-align: middle;
}

@keyframes spinner-line-rot { to { transform: rotate(360deg); } }

/* CTA mais próximo do preço (evita “vazio” no meio do card) */
.plan-card .cta{ margin-top: 14px; }
.plan-card.best .cta{ margin-top: 16px; }

.powered-by{
    margin-top: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(17, 24, 39, .55);
    border: 1px solid rgba(148, 163, 184, .16);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}
.powered-by img{ width: 18px; height: 18px; object-fit: contain; filter: saturate(1.1); }

.plan-meta{ margin-top: 14px; }
.plan-meta-title{
    color:#cbd5e1;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}
.plan-features{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.plan-features li{ display:flex; align-items:flex-start; gap:10px; color:#cbd5e1; font-size: 11.5px; line-height: 1.35; }
.plan-features li i{ margin-top: 2px; }
.plan-features li.included i{ color:#22c55e; }
.plan-features li.excluded{ color: rgba(148, 163, 184, 0.55); }
.plan-features li.excluded i{ color: rgba(148, 163, 184, 0.55); }

.social-proof{
    text-align:center;
    color:#cbd5e1;
    font-size: 12px;
    font-weight: 800;
    margin: 2px 0 22px;
    opacity: .9;
}

/* Perks */
.premium-perks{
    display:grid;
    /* 3 cards menores + 1 card maior (igual ao print) */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}
.perk-card{
    background: rgba(17,24,39,.72);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 16px 36px rgba(0,0,0,.25);
    display:flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    align-items: center;
    text-align: center;
}
.perk-ico{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom: 10px;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
}
.perk-ico i{ color: rgba(203, 213, 225, 0.92); font-size: 18px; }

/* Cores específicas (igual ao print) */
.perk-refund .perk-ico i{ color: rgba(34,197,94,.95); }
.perk-support .perk-ico i{ color: rgba(245,194,65,.95); }
.perk-pay .perk-ico i{ color: rgba(34,197,94,.95); }
.perk-title{ font-size: 12px; font-weight: 800; color: #e5e7eb; margin-bottom: 6px; }
.perk-text{ font-size: 11px; font-weight: 400; color: #94a3b8; line-height: 1.45; }

.perk-pay{ grid-column: span 2; }

.pay-via{
    height: 45px;
    margin-top: 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(17, 24, 39, .45);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #cbd5e1;
}

.pay-via-label{
    font-size: 11px;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.92);
}

.pay-via-lock{
    color: #635bff;
    font-size: 12px;
    opacity: .95;
}

.pay-via-logo{
    width: 65px;
    height: 55px;
    object-fit: contain;
    filter: saturate(1.05);
    opacity: .92;
}

@media (max-width: 980px) {
    .premium-perks{ grid-template-columns: 1fr; }
    .perk-pay{ grid-column: auto; }
}

/* FAQ card */
.faq-card{
    margin: 22px 0 0;
    background: rgba(17,24,39,.72);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.faq-card h3{ margin: 0 0 16px; text-align:center; }
.faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.faq-q{ font-weight: 900; font-size: 12px; color:#e5e7eb; margin-bottom: 8px; }
.faq-a{ font-size: 11px; color:#94a3b8; line-height: 1.55; }
@media (max-width: 800px){ .faq-grid{ grid-template-columns: 1fr; } }

.cta:hover {
    filter: brightness(1.05)
}

.cta.ghost {
    background: transparent;
    color: var(--gold);
    border-color: rgba(245, 158, 11, .7)
}

.cta.ghost:hover {
    background: rgba(245, 158, 11, .08)
}

.faq {
    margin: 56px 0 0
}
.faq h3 i { color: var(--gold); margin-right: 6px; }

/* Pagamento seguro (Stripe) */
.payment-trust{
    display:flex;
    justify-content:center;
    margin: 10px 0 34px;
}

.payment-trust__inner{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

.payment-trust__inner i{
    color: #94a3b8;
    font-size: 13px;
}

.payment-trust__logo{
    height: 38px;
    width: auto;
    display:block;
    opacity: .95;
}

.payment-trust__link{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 8px;
}

.payment-trust__link:hover .payment-trust__logo{
    opacity: 1;
}

.payment-trust__link:focus-visible{
    outline: 2px solid rgba(148, 163, 184, 0.75);
    outline-offset: 3px;
}

@media (max-width: 520px){
    .payment-trust__inner{
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 0;
    }
}

.trust-strap{
    display:flex;justify-content:center;gap:12px;color:#94a3b8;font-size:12px;margin:24px 0 24px;
}
.trust-strap .point a{ color: inherit; text-decoration: underline; }
.trust-strap i{ color: #10b981; }
.trust-strap .fa-shield-alt{ font-size: 14px; }

.faq h3 {
    margin: 0 0 8px
}

.faq details {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0
}

.faq summary {
    cursor: pointer;
    font-weight: 800
}

@media (max-width: 700px) {
    .plans {
        grid-template-columns: 1fr
    }

    .premium-header .back {
        position: static;
        display: inline-block;
        margin-bottom: 12px
    }
}

/* Footer */
.premium-footer {
    flex-shrink: 0;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

/* ======= Auth Gate Modal (overlay de login/cadastro) ======= */
.auth-gate{ position:fixed; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display:none; align-items:center; justify-content:center; z-index:2100; padding: 16px; }
.auth-gate.show{ display:flex; }
.auth-dialog{ background:#0f172a; width:100%; max-width: 520px; border:1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.35); overflow:hidden; display:flex; flex-direction:column; }
.auth-header{ display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom:1px solid rgba(255,255,255,.08); }
.auth-header h2{ margin:0; font-size: 16px; font-weight: 800; display:flex; gap:8px; align-items:center; }
.auth-header h2 i{ color: var(--gold); }
.auth-close{ background:transparent; border:none; color:#94a3b8; font-size:22px; cursor:pointer; font-weight:700; }
.auth-close:hover{ color:#e5e7eb; }
.auth-tabs{ display:flex; gap:6px; background:#132032; border:1px solid rgba(255,255,255,.08); border-radius:10px; padding:4px; width:fit-content; margin: 12px auto 0 auto; }
.auth-tab{ background:transparent; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; color:#94a3b8; font-weight:800; letter-spacing:.3px; }
.auth-tab.active{ background: linear-gradient(90deg, var(--gold), #ffd556); color:#111827; box-shadow: 0 2px 10px -4px rgba(245,194,65,.35); }
.auth-body{ padding: 16px; }
.auth-panel.hidden{ display:none; }
.auth-actions{ margin-top: 8px; }
.auth-info{ font-size:12px; color:#94a3b8; margin-top:8px; }

/* Billing toggle */
/* Não exibir controle visual de período (usaremos dois cards) */
.billing-toggle { display: none; }

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px
}

/* Switch (input está fora; usamos ~ combinator) */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .25s;
    border-radius: 999px;
    box-shadow: inset 0 0 0 0 rgba(16, 185, 129, .4)
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 50%;
    transform: translate(0, -50%);
    background: #e5e7eb;
    border-radius: 50%;
    transition: .25s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .4)
}

#billingPeriod:checked+.billing-toggle .slider {
    background: #065f46;
    border-color: #10b981;
    box-shadow: inset 0 0 0 4px rgba(16, 185, 129, .35)
}

#billingPeriod:checked+.billing-toggle .slider:before {
    transform: translate(22px, -50%);
    background: #d1fae5
}

/* Prices visibility by billing period */
.price>.monthly,
.price>.annual {
    grid-area: 1 / 1;
    transition: opacity .28s ease, transform .28s ease;
}

.price>.monthly {
    opacity: 1;
    transform: translateY(0);
}

.price>.annual {
    opacity: 0;
    transform: translateY(6px);
}

/* Regras antigas de toggle não são mais necessárias (mantidas como no-op) */

/* Saving badge (aparece apenas no modo anual) */
.saving-badge {
    display: inline-block;
    background: rgba(16, 185, 129, .15);
    color: #34d399;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 6px;
    margin-left: 6px;
    letter-spacing: .5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: .25s ease;
    border: 1px solid rgba(16, 185, 129, .35);
}

/* Saving badge permanece visível no card Anual por padrão */
.plan-card.best .saving-badge { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {

    .price>.monthly,
    .price>.annual {
        transition: none;
        transform: none !important;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Payment Modal */
.pay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.pay-modal.show {
    display: flex;
}

.pay-dialog {
    background: #0f172a;
    width: 100%;
    max-width: 1040px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    max-height: 96vh;
    min-height: 720px;
}

.pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pay-header h2 {
    margin: 0;
    font-size: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 800;
}

.pay-header h2 i {
    color: var(--gold);
}

.pay-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 700;
}

.pay-close:hover {
    color: #e5e7eb;
}

.pay-steps {
    display: flex;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.pay-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    position: relative;
}

/* Linha de conexão entre passos */
.pay-step:before,
.pay-step:after {
    content: "";
    position: absolute;
    top: 13px; /* metade do círculo 26px */
    height: 2px;
    background: #1e293b; /* cor base inativa */
    width: calc(50% - 18px); /* metade menos metade do círculo + gap visual */
    transition: background .35s;
}
.pay-step:before { left: 0; }
.pay-step:after { right: 0; }

/* Não mostrar linha antes do primeiro e depois do último */
.pay-step:first-child:before { display: none; }
.pay-step:last-child:after { display: none; }

/* Estado completado: qualquer passo com número menor que o ativo atual */
.pay-step.completed:before,
.pay-step.completed:after,
.pay-step.completed + .pay-step:before {
    background: linear-gradient(90deg, var(--gold), #fbbf24);
}

/* Quando ativo, pinta a linha que vem antes também */
.pay-step.active:before { background: linear-gradient(90deg, var(--gold), #fbbf24); }

.pay-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.pay-step.active {
    color: #f1f5f9;
}

.pay-step.active span {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    color: #111827;
    border: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .25);
}

.pay-body {
    padding: 26px 34px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pay-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.pay-summary {
    width: 250px;
    background: #111d30;
    border-right: 1px solid rgba(255, 255, 255, .06);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.pay-summary .summary-box.summary-clean {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pay-summary .summary-box.summary-clean .coupon-area {
    margin-top: auto;
}

.pay-summary .summary-box.summary-clean .coupon-btn {
    position: relative;
}

.pay-summary .summary-box.summary-clean .descriptor-text {
    margin-top: 2px;
}

/* Header alterado removido no teste — estilos antigos preservados caso precise voltar */
.summary-clean {
    background: #0f172a;
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px 24px;
}

.plan-id-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.plan-label-static {
    font-weight: 500;
    color: #94a3b8;
}

.plan-name {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: capitalize;
    color: #e2e8f0;
}

.plan-period-line {
    margin-top: 4px;
}

.summary-box.summary-clean .price-line {
    margin-top: 18px;
}

.plan-period-tag {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #cbd5e1;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.install-prefix {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .5px;
}

.main-price {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: .5px;
}

.price-suffix {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.descriptor-text {
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
    font-weight: 500;
}

.paying-row {
    margin-top: -4px;
}

.summary-box.summary-clean .paying-row {
    margin-top: 10px;
}

.summary-box.summary-clean #sumDescriptor {
    margin-top: 10px;
}

.coupon-btn {
    width: 100%;
    background: #ffe13498;
    border: 1px solid rgb(136, 111, 0);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #001a3b;
    font-weight: 600;
    cursor: pointer;
    justify-content: flex-start;
}

.coupon-btn .ico {
    font-size: 13px;
    filter: grayscale(.2);
}

.coupon-btn .add {
    margin-left: auto;
    font-weight: 800;
    color: #e2e8f0;
}

.coupon-btn:hover {
    background: #c4b000e1;
}

.coupon-btn:active {
    background: #132032;
}

.summary-box.summary-clean .summary-row strong {
    font-size: 12px;
}

.summary-box.summary-clean .summary-row span {
    font-size: 11px;
    color: #94a3b8;
}

.summary-box.summary-clean .summary-row {
    padding: 0;
}

.summary-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #e2e8f0;
}

.summary-box {
    background: linear-gradient(180deg, #0f172a, #0d1524);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.35;
}

.summary-row strong {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 12px;
}

.summary-row strong.value-anim {
    position: relative;
    display: inline-block;
}

.value-fade {
    animation: valueFade .38s ease;
}

@keyframes valueFade {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    55% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
    }
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1c2739, transparent);
    margin: 6px 0 2px;
}

.summary-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-features li {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    line-height: 1.3;
}

.summary-features li:before {
    content: '•';
    color: #475569;
    font-size: 14px;
    line-height: 1;
}

.summary-note {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.summary-note {
    display: none !important;
}

@media (max-width:1200px) {
    .pay-dialog {
        max-width: 96%;
    }
}

@media (max-width:820px) {
    .pay-layout {
        flex-direction: column;
    }

    .pay-summary {
        width: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        padding: 18px 16px;
    }

    .summary-box {
        flex: 1 1 220px;
    }
}

.pay-panel h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.method-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 16px 14px;
    color: #e2e8f0;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.method-btn i {
    font-size: 20px;
    color: var(--gold);
}

.method-btn:hover {
    background: #24324a;
}

.method-btn.selected {
    outline: 2px solid var(--gold);
    background: #312718;
}

.dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row.inline {
    flex-direction: row;
    gap: 12px;
}

.form-row.inline .form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #94a3b8;
}

.form-input {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 12px 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
}

/* Estados de validação */
.form-input.field-invalid { border-color: #f97316; box-shadow: 0 0 0 1px rgba(249,115,22,.2); }
.form-input.field-success { border-color: #16a34a; box-shadow: 0 0 0 1px rgba(22,163,74,.25); }
.form-input.field-invalid:focus { outline: 2px solid #ea580c; }
.form-input.field-success:focus { outline: 2px solid #15803d; }

.form-row { position: relative; }
.form-row .status-icon { position:absolute; right:10px; top:50%; transform:translateY(-50%); font-size:13px; pointer-events:none; }
.form-row .status-icon.ok { color:#16a34a; }
.form-row .status-icon.err { color:#f97316; }

.field-error { font-size:11px; margin-top:4px; color:#f97316; font-weight:500; }


.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
}

.cc-wrapper {
    position: relative;
}

.cc-wrapper .form-input {
    padding-left: 78px;
    padding-right: 16px;
    font-size: 15px;
    letter-spacing: 1px;
    height: 54px;
}

.cc-brand {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scale(.9);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    color: #94a3b8;
    opacity: 0;
    transition: .18s ease;
    pointer-events: none;
    min-width: 56px;
    text-align: center;
}

.cc-brand.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.cc-brand.brand-visa {
    color: #2563eb;
    border-color: #2563eb33;
}

.cc-brand.brand-mastercard {
    color: #f97316;
    border-color: #f9731633;
}

.cc-brand.brand-amex {
    color: #0ea5e9;
    border-color: #0ea5e933;
}

.cc-brand.brand-diners {
    color: #8b5cf6;
    border-color: #8b5cf633;
}

.cc-brand.brand-discover {
    color: #f59e0b;
    border-color: #f59e0b33;
}

.cc-brand.brand-jcb {
    color: #10b981;
    border-color: #10b98133;
}

.cc-brand.brand-elo {
    color: #eab308;
    border-color: #eab30833;
}

.cc-brand.brand-hipercard {
    color: #dc2626;
    border-color: #dc262633;
}

.pay-footer {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: auto;
}

.pay-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e2e8f0;
    padding: 10px 18px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: .5px;
    transition: .2s ease;
    position: relative;
}

.pay-btn:hover:not(:disabled) {
    background: #25344c;
}

.pay-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.3);
}

/* Botões principais (Avançar / Finalizar) agora padrão amarelo */
.pay-btn.primary,
#payNext.pay-btn,
#payFinish.pay-btn {
    background: linear-gradient(90deg, var(--gold), #fbbf24);
    color: #111827;
    border: 1px solid rgba(245, 158, 11, .6);
    box-shadow: 0 4px 14px -4px rgba(245, 158, 11, .35);
}

.pay-btn.primary:hover:not(:disabled),
#payNext.pay-btn:hover:not(:disabled),
#payFinish.pay-btn:hover:not(:disabled) {
    filter: brightness(1.07);
}

.pay-btn.primary:disabled,
#payNext.pay-btn:disabled,
#payFinish.pay-btn:disabled {
    background: linear-gradient(90deg, #fcd34d55, #fbbf2455);
    color: #111827aa;
    box-shadow: none;
    border: 1px solid rgba(245, 158, 11, .25);
}

.pay-btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
}

.pay-spacer {
    flex: 1;
}

.qr-box {
    background: #1e293b;
    border: 1px dashed rgba(255, 255, 255, .25);
    padding: 22px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.qr-code {
    width: 170px;
    height: 170px;
    background: repeating-linear-gradient(45deg, #0f172a, #0f172a 10px, #1e293b 10px, #1e293b 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
}

.qr-key {
    font-family: monospace;
    font-size: 12px;
    background: #0f172a;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    word-break: break-all;
}

.review-block {
    background: #1e293b;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #94a3b8;
}

.status-badge.success {
    background: rgba(16, 185, 129, .15);
    border-color: rgba(16, 185, 129, .4);
    color: #34d399;
}

.loader-line {
    height: 4px;
    background: linear-gradient(90deg, var(--gold), #fbbf24);
    width: 0;
    border-radius: 4px;
    animation: grow 2s linear forwards;
}

@keyframes grow {
    to {
        width: 100%;
    }
}

/* Modal de planos (planModal) */
.plan-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 24px;
}

.plan-modal.show {
    display: flex;
}

.plan-dialog {
    background: #0f172a;
    width: 100%;
    max-width: 760px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.plans-modal {
    margin-top: 8px;
}

.plans-modal .price>.monthly,
.plans-modal .price>.annual {
    grid-area: 1/1;
    transition: opacity .28s ease, transform .28s ease;
}

.plans-modal .price>.monthly {
    opacity: 1;
    transform: translateY(0);
}

.plans-modal .price>.annual {
    opacity: 0;
    transform: translateY(6px);
}

/* Toggle interno do modal: estrutura real é input + .modal-toggle + wrapper (.plans-modal) dentro de .modal-plans-wrapper */
.modal-plans-wrapper{ position:relative; display:flex; flex-direction:column; }
.modal-period-tabs{ display:inline-flex; background:#132032; border:1px solid rgba(255,255,255,.08); padding:4px; border-radius:12px; gap:4px; width:max-content; margin:0 0 10px; }
.period-tab{ background:transparent; border:none; color:#94a3b8; font-size:12px; font-weight:700; letter-spacing:.5px; padding:8px 14px; border-radius:8px; cursor:pointer; position:relative; transition:.25s ease; }
.period-tab.active{ background:linear-gradient(90deg,#fcd34d,#fbbf24); color:#111827; box-shadow:0 2px 8px -3px rgba(245,158,11,.4); }
.modal-plans-wrapper[data-period="annual"] .plans-modal .price > .monthly{ opacity:0; transform:translateY(-6px); }
.modal-plans-wrapper[data-period="annual"] .plans-modal .price > .annual{ opacity:1; transform:translateY(0); }
.plans-modal .saving-badge{ opacity:0; transform:translateY(-4px); transition:.25s ease; }
.modal-plans-wrapper[data-period="annual"] .plans-modal .saving-badge{ opacity:1; transform:translateY(0); }

.plans-modal .plan-card {
    transition: .22s ease;
    cursor: pointer;
}

.plans-modal .plan-card.active {
    outline: 2px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .2);
}

.modal-toggle {
    margin-top: 0;
}

.plan-body {
    padding: 34px 38px 20px;
}

.plan-footer {
    padding: 18px 26px;
}

.pay-body {
    padding: 34px 44px 32px;
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.plan-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    gap: 8px;
    align-items: center;
}

.plan-header h2 i {
    color: var(--gold);
}

.plan-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 700;
}

.plan-close:hover {
    color: #f1f5f9;
}

.plan-body {
    padding: 24px 26px 10px;
    overflow-y: auto;
}

.plan-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.plan-mini {
    background: #111d30;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 18px 18px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
}

.plan-mini.best {
    border-color: rgba(245, 158, 11, .45);
    box-shadow: 0 10px 28px -6px rgba(245, 158, 11, .2);
}

.pm-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    color: #111827;
    font-weight: 900;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
    border: 1px solid rgba(217, 119, 6, .6);
}

.pm-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pm-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
}

.pm-tag {
    display: inline-block;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    color: #e2e8f0;
}

.pm-tag.alt {
    background: #312718;
    border-color: rgba(245, 158, 11, .4);
    color: #fbbf24;
}

.pm-feat {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.pm-feat li:before {
    content: '• ';
    color: #475569;
}

.pm-choose {
    margin-top: auto;
    background: linear-gradient(90deg, #fcd34d, #fbbf24);
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    color: #111827;
    box-shadow: 0 4px 14px -4px rgba(245, 158, 11, .35);
}

.pm-choose:hover {
    filter: brightness(1.05);
}

.plan-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.plan-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, .15);
    color: #e2e8f0;
    padding: 10px 18px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.plan-btn:hover {
    background: #25344c;
}

.plan-btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
}

/* Variantes de ação principal dos planos (consistentes com .pay-btn.primary) */
.plan-btn.primary {
    background: linear-gradient(90deg, var(--gold), #fbbf24);
    color: #111827;
    border: 1px solid rgba(245, 158, 11, .6);
    box-shadow: 0 4px 14px -4px rgba(245, 158, 11, .35);
}

.plan-btn.primary:hover:not(:disabled) {
    filter: brightness(1.07);
}

.plan-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.3);
}

.plan-btn.primary:disabled {
    background: linear-gradient(90deg, #fcd34d55, #fbbf2455);
    color: #111827aa;
    box-shadow: none;
    border: 1px solid rgba(245, 158, 11, .25);
}

/* Acessibilidade: foco visível */
.plan-btn:focus-visible,
.pay-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (max-width:620px) {
    .plan-body {
        padding: 20px 18px 8px;
    }

    .plan-grid-modal {
        grid-template-columns: 1fr;
    }
}

@media (max-width:560px) {
    .pay-dialog {
        max-width: 96%;
        min-height: auto;
        border-radius: 18px;
    }

    .pay-body {
        padding: 20px 20px 24px;
    }

    .method-btn {
        padding: 14px 12px;
    }

    .pay-header h2 {
        font-size: 16px;
    }

    .pay-step span {
        width: 24px;
        height: 24px;
    }
}