/* ============================================
   ARISEFLIX - Planos e Checkout PIX
   ============================================ */

/* ---------- Botao "Planos" na navbar da landing ---------- */
.landing-nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn-landing-plans {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    padding: .45rem 1rem;
    font: 600 .9rem var(--font, 'Inter', sans-serif);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.btn-landing-plans:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Secao de planos (landing) ---------- */
.landing-plans { padding: 3.5rem 4% 2.5rem; scroll-margin-top: 64px; }
.landing-plans-head { text-align: center; margin-bottom: 2.25rem; }
.landing-plans-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.landing-plans-head p { color: #b3b3b3; margin-top: .5rem; font-size: 1.02rem; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
    align-items: stretch;
}
.plans-grid.count-1 { max-width: 380px; }
.plans-grid.count-2 { max-width: 740px; }

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1c1c1f 0%, #151517 100%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 1.9rem 1.5rem 1.5rem;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.plan-card.highlight {
    border-color: transparent;
    background:
        linear-gradient(180deg, #221316 0%, #171214 100%) padding-box,
        linear-gradient(160deg, #ff3b47 0%, #E50914 45%, #7a0610 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 20px 50px rgba(229,9,20,.18);
}
.plan-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: #E50914;
    color: #fff;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: .32rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(229,9,20,.4);
}
.plan-card:not(.highlight) .plan-badge { background: #2b2b30; color: #e5e5e5; box-shadow: none; border: 1px solid rgba(255,255,255,.14); }

.plan-name { font-size: 1.05rem; font-weight: 700; color: #e5e5e5; text-transform: uppercase; letter-spacing: .08em; }
.plan-desc { color: #8c8c8c; font-size: .86rem; margin-top: .3rem; min-height: 1.2em; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin-top: 1.15rem; }
.plan-price .cur { font-size: 1.05rem; font-weight: 600; color: #b3b3b3; }
.plan-price .val { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan-price .cents { font-size: 1.3rem; font-weight: 700; }
.plan-period { color: #8c8c8c; font-size: .86rem; margin-top: .35rem; }
.plan-equiv { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; min-height: 1.7rem; font-size: .86rem; color: #b3b3b3; }
.plan-save {
    background: rgba(70,211,105,.14);
    color: #46d369;
    font-weight: 700; font-size: .74rem;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.plan-features { list-style: none; margin: 1.2rem 0 1.5rem; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: .6rem; flex: 1; }
.plan-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: #d4d4d4; line-height: 1.35; }
.plan-features li i { color: #46d369; font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.plan-cta {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    font: 700 .98rem var(--font, 'Inter', sans-serif);
    cursor: pointer;
    transition: background .2s, transform .15s, border-color .2s;
}
.plan-cta:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.plan-card.highlight .plan-cta { background: #E50914; border-color: #E50914; }
.plan-card.highlight .plan-cta:hover { background: #f6121d; transform: scale(1.02); }

.plans-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; color: #8c8c8c; font-size: .85rem; }
.plans-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.plans-trust i { color: #46d369; }

/* ---------- Links injetados (login / dropdown) ---------- */
.login-plans-link { margin-top: .9rem; font-size: .92rem; color: #b3b3b3; }
.login-plans-link a, .login-renew-btn { color: #fff; font-weight: 600; cursor: pointer; text-decoration: underline; background: none; border: none; font-size: inherit; font-family: inherit; padding: 0; }
.login-renew-btn { display: inline-block; margin-top: .5rem; color: #fff; background: #E50914; text-decoration: none; padding: .5rem .9rem; border-radius: 6px; }
.dropdown-sub { display: block; font-size: .72rem; color: #8c8c8c; margin-top: 1px; }
.dropdown-sub.warn { color: #e8b74a; }
.dropdown-sub.danger { color: #ff5a64; }

/* ---------- Aviso de PIX pendente ---------- */
.ck-pending-pill {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
    z-index: 900;
    display: flex; align-items: center; gap: .7rem;
    background: #1f1f23; color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .55rem .6rem .55rem 1rem;
    font-size: .86rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
    max-width: calc(100vw - 24px);
}
.ck-pending-pill button { border: none; border-radius: 999px; cursor: pointer; font: 600 .82rem var(--font, 'Inter', sans-serif); }
.ck-pending-pill .go { background: #E50914; color: #fff; padding: .4rem .85rem; white-space: nowrap; }
.ck-pending-pill .x { background: transparent; color: #8c8c8c; padding: .3rem .45rem; font-size: 1rem; }

/* ---------- Modal de checkout ---------- */
.ck-overlay {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px;
    overflow-y: auto;
}
.ck-overlay.open { display: flex; }
.ck-modal {
    position: relative;
    width: 100%; max-width: 470px;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #17171a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
    color: #fff;
    animation: ckIn .22s ease;
    margin: auto;
}
@keyframes ckIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ck-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    border: none; background: rgba(255,255,255,.08); color: #fff;
    cursor: pointer; font-size: .95rem;
    display: grid; place-items: center;
}
.ck-close:hover { background: rgba(255,255,255,.18); }
.ck-head { padding: 1.5rem 1.5rem 0; }
.ck-brand { font-family: var(--font-display, 'Bebas Neue', sans-serif); color: #E50914; font-size: 1.5rem; letter-spacing: 2px; line-height: 1; }
.ck-title { font-size: 1.3rem; font-weight: 800; margin-top: .65rem; }
.ck-sub { color: #9a9a9a; font-size: .9rem; margin-top: .25rem; }
.ck-body { padding: 1.15rem 1.5rem 1.5rem; }

/* Etapas */
.ck-steps { display: flex; gap: 6px; margin-top: 1rem; }
.ck-steps span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ck-steps span.on { background: #E50914; }

/* Resumo do plano */
.ck-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .8rem 1rem;
    margin-bottom: 1.1rem;
}
.ck-summary .n { font-weight: 700; font-size: .98rem; }
.ck-summary .d { color: #9a9a9a; font-size: .8rem; margin-top: 2px; }
.ck-summary .p { font-weight: 800; font-size: 1.15rem; white-space: nowrap; text-align: right; }
.ck-summary .chg { display: block; background: none; border: none; color: #b3b3b3; font: 500 .76rem var(--font, 'Inter', sans-serif); text-decoration: underline; cursor: pointer; padding: 0; margin-top: 2px; margin-left: auto; }

/* Lista de planos dentro do modal */
.ck-plan-list { display: grid; gap: .65rem; }
.ck-plan-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    width: 100%; text-align: left;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: .95rem 1rem;
    color: #fff; cursor: pointer;
    font-family: var(--font, 'Inter', sans-serif);
    transition: border-color .2s, background .2s;
}
.ck-plan-opt:hover { border-color: #E50914; background: rgba(229,9,20,.08); }
.ck-plan-opt.highlight { border-color: rgba(229,9,20,.6); }
.ck-plan-opt .n { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ck-plan-opt .n em { font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #E50914; padding: .15rem .45rem; border-radius: 999px; }
.ck-plan-opt .d { color: #9a9a9a; font-size: .8rem; margin-top: 3px; }
.ck-plan-opt .p { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }

/* Abas */
.ck-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px; margin-bottom: 1rem; }
.ck-tabs button { border: none; background: transparent; color: #b3b3b3; padding: .58rem .5rem; border-radius: 7px; cursor: pointer; font: 600 .88rem var(--font, 'Inter', sans-serif); }
.ck-tabs button.on { background: #2c2c31; color: #fff; }

/* Campos (16px evita o zoom automatico do iPhone) */
.ck-form { display: grid; gap: .7rem; }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ck-field { position: relative; }
.ck-field input {
    width: 100%;
    background: #232327;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    color: #fff;
    font: 400 16px var(--font, 'Inter', sans-serif);
    padding: 1.3rem .9rem .5rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ck-field input:focus { border-color: #E50914; box-shadow: 0 0 0 3px rgba(229,9,20,.18); }
.ck-field input[readonly] { color: #9a9a9a; background: #1d1d20; }
.ck-field label {
    position: absolute; left: .95rem; top: .95rem;
    color: #8c8c8c; font-size: .95rem;
    pointer-events: none;
    transition: all .15s ease;
}
.ck-field input:focus + label,
.ck-field input:not(:placeholder-shown) + label { top: .42rem; font-size: .7rem; color: #b3b3b3; }
.ck-field.bad input { border-color: #ff5a64; }
.ck-hint { font-size: .76rem; color: #8c8c8c; margin-top: -.3rem; }
.ck-divider { display: flex; align-items: center; gap: .7rem; color: #8c8c8c; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; margin: .35rem 0 .05rem; }
.ck-divider::before, .ck-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

.ck-error { color: #ff7a82; font-size: .86rem; min-height: 1.1rem; margin-top: .15rem; }
.ck-btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    background: #E50914; color: #fff;
    border: none; border-radius: 10px;
    padding: .95rem 1rem;
    font: 700 1rem var(--font, 'Inter', sans-serif);
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.ck-btn:hover { background: #f6121d; }
.ck-btn:disabled { opacity: .6; cursor: wait; }
.ck-btn.ghost { background: rgba(255,255,255,.08); }
.ck-btn.ghost:hover { background: rgba(255,255,255,.16); }
.ck-secure { display: flex; align-items: center; justify-content: center; gap: .45rem; color: #8c8c8c; font-size: .78rem; margin-top: .8rem; }
.ck-secure i { color: #46d369; }
.ck-spin { display: inline-block; animation: ckSpin 1s linear infinite; }
@keyframes ckSpin { to { transform: rotate(360deg); } }

/* PIX */
.ck-pix { text-align: center; }
.ck-qr {
    width: 216px; height: 216px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    display: grid; place-items: center;
}
.ck-qr canvas, .ck-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ck-qr .ph { color: #666; font-size: .8rem; }
.ck-amount { font-size: 1.7rem; font-weight: 800; margin-top: .9rem; letter-spacing: -.02em; }
.ck-timer { color: #9a9a9a; font-size: .84rem; margin-top: .15rem; }
.ck-timer b { color: #fff; font-variant-numeric: tabular-nums; }
.ck-copy { display: flex; gap: .5rem; margin-top: 1rem; }
.ck-copy input {
    flex: 1; min-width: 0;
    background: #232327; border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
    color: #b3b3b3; font: 400 13px ui-monospace, SFMono-Regular, Menlo, monospace;
    padding: .7rem .75rem; outline: none;
}
.ck-copy button {
    flex-shrink: 0;
    background: #fff; color: #111; border: none; border-radius: 9px;
    padding: 0 1rem; cursor: pointer;
    font: 700 .86rem var(--font, 'Inter', sans-serif);
    display: inline-flex; align-items: center; gap: .4rem;
    transition: background .2s;
}
.ck-copy button.done { background: #46d369; }
.ck-wait {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    margin-top: 1rem; padding: .7rem;
    background: rgba(232,183,74,.08);
    border: 1px solid rgba(232,183,74,.22);
    border-radius: 10px;
    color: #e8b74a; font-size: .88rem; font-weight: 600;
}
.ck-howto { text-align: left; list-style: none; counter-reset: s; margin-top: 1rem; display: grid; gap: .5rem; padding: 0; }
.ck-howto li { counter-increment: s; display: flex; gap: .65rem; align-items: flex-start; color: #b3b3b3; font-size: .85rem; line-height: 1.4; }
.ck-howto li::before {
    content: counter(s);
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    font-size: .7rem; font-weight: 700;
    display: grid; place-items: center;
}

/* Sucesso / estados finais */
.ck-done { text-align: center; padding-top: .5rem; }
.ck-check {
    width: 76px; height: 76px; border-radius: 50%;
    margin: 0 auto 1rem;
    background: rgba(70,211,105,.14);
    color: #46d369; font-size: 2.4rem;
    display: grid; place-items: center;
    animation: ckPop .45s cubic-bezier(.2,1.4,.4,1);
}
.ck-check.warn { background: rgba(232,183,74,.14); color: #e8b74a; }
.ck-check.bad { background: rgba(255,90,100,.14); color: #ff5a64; }
@keyframes ckPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ck-done h3 { font-size: 1.35rem; font-weight: 800; }
.ck-done p { color: #b3b3b3; font-size: .92rem; margin-top: .4rem; line-height: 1.5; }
.ck-account {
    text-align: left;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .2rem 1rem;
    margin: 1.1rem 0;
}
.ck-account div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.ck-account div:last-child { border-bottom: none; }
.ck-account span { color: #9a9a9a; }
.ck-account b { font-weight: 700; word-break: break-all; text-align: right; }
.ck-support { display: inline-flex; align-items: center; gap: .4rem; color: #46d369; font-weight: 600; font-size: .88rem; margin-top: .9rem; text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .landing-plans { padding: 2.5rem 5% 2rem; }
    .plans-grid { grid-template-columns: 1fr; gap: 1.4rem; max-width: 420px; }
    .plan-card { padding: 1.7rem 1.25rem 1.25rem; }
    .plan-card:hover { transform: none; }
    .btn-landing-plans { padding: .4rem .7rem; font-size: .82rem; }

    .ck-overlay { padding: 0; align-items: flex-end; }
    .ck-modal {
        max-width: none;
        max-height: 94vh; max-height: 94dvh;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        animation: ckUp .25s ease;
        margin: 0;
    }
    @keyframes ckUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .ck-head { padding: 1.25rem 1.15rem 0; }
    .ck-body { padding: 1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom)); }
    .ck-qr { width: 196px; height: 196px; }
}
@media (max-width: 380px) {
    .ck-row { grid-template-columns: 1fr; }
}


/* ---------- Conta sem assinatura ativa: barra fixa ---------- */
.af-lock-bar {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 250; display: flex; align-items: center; gap: .8rem;
    width: max-content; max-width: calc(100vw - 24px);
    padding: .7rem .8rem .7rem 1.1rem; border-radius: 14px;
    background: rgba(20,20,24,.96); border: 1px solid rgba(229,9,20,.55);
    box-shadow: 0 14px 40px rgba(0,0,0,.6); color: #e8e8e8;
    font: 400 .9rem var(--font, 'Inter', sans-serif); line-height: 1.35;
}
.af-lock-bar > i { color: #E50914; font-size: 1.15rem; flex-shrink: 0; }
.af-lock-bar b { color: #fff; font-weight: 700; }
.af-lock-bar button {
    flex-shrink: 0; border: none; border-radius: 9px; cursor: pointer;
    background: #E50914; color: #fff; padding: .6rem 1rem; white-space: nowrap;
    font: 700 .88rem var(--font, 'Inter', sans-serif);
}
.af-lock-bar button:hover { background: #f6121d; }
body.af-locked #mainContent { padding-bottom: 96px; }
body.af-locked .ck-pending-pill { bottom: 96px; }
/* Com o player aberto ou o modal de assinatura, a barra nao aparece por cima */
.ck-overlay.open ~ .af-lock-bar { display: none; }
.ck-account-mini { margin: 0 0 1rem; padding-top: 0; padding-bottom: 0; }
@media (max-width: 600px) {
    .af-lock-bar { left: 10px; right: 10px; bottom: 10px; transform: none; width: auto; max-width: none; font-size: .82rem; gap: .6rem; padding: .6rem .6rem .6rem .8rem; }
    .af-lock-bar button { padding: .55rem .8rem; font-size: .82rem; }
    body.af-locked #mainContent { padding-bottom: 120px; }
    body.af-locked .ck-pending-pill { bottom: 120px; }
}
