/*
    Nome do Arquivo : podeouroplanos.css
    Projeto         : Pó de Ouro — Classificados Rurais
    Escopo          : EXCLUSIVO da tela "Planos de Anúncio" (planos-anuncios.html)
    Plataforma      : Softwareby (Low-Code)
    Upload          : /app/file/resource/css/{ID}
    -------------------------------------------------------------------------
    Este arquivo contém apenas os estilos específicos da tela de planos.
    Por ser isolado do podeouro.css, não há risco de conflito com as demais
    telas (home, busca, detalhe, novo-anúncio, editar-anúncio, perfil etc.).
    -------------------------------------------------------------------------
    Deve ser carregado DEPOIS do podeouro.css, no <head> do planos-anuncios.html.
    Obs.: [x-cloak] é global (Alpine) e permanece no podeouro.css.
*/

/* ═══════════════════════════════════════════════════════════════════════════
   PÁGINA DE PLANOS DE ANÚNCIO (planos-anuncios.html)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Página de planos ── */
.planos-page {
    background: #f8faf8;
    min-height: 100vh;
}

/* Hero */
.planos-hero {
    background: linear-gradient(135deg, #1a3d2b 0%, #2d6a4f 60%, #3a8a5e 100%);
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.planos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.planos-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 99px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 20px;
}

.planos-hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}

.planos-hero__title span {
    color: #6ee7b7;
}

.planos-hero__sub {
    font-size: 17px;
    color: rgba(255, 255, 255, .75);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.planos-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.planos-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.planos-hero__trust-item i {
    color: #6ee7b7;
}

/* Container */
.planos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seção de planos */
.planos-section {
    padding: 64px 0 80px;
}

.planos-section__title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.planos-section__sub {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 48px;
}

/* Grid de cards */
.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    justify-items: center;
}

/* Card de plano */
.plano-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative;
    width: 100%;
    max-width: 380px;
}

.plano-card:hover {
    border-color: var(--color-primary, #2d6a4f);
    box-shadow: 0 16px 48px rgba(45, 106, 79, .12);
    transform: translateY(-4px);
}

.plano-card--destaque {
    border-color: #d97706;
    box-shadow: 0 8px 32px rgba(180, 83, 9, .18);
}

.plano-card--destaque:hover {
    border-color: #b45309;
    box-shadow: 0 16px 48px rgba(180, 83, 9, .22);
    transform: translateY(-4px);
}

/* Badge popular */
.plano-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b45309, #d97706, #f59e0b);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 18px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(180, 83, 9, .35);
}

.plano-card__nome {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.plano-card__descricao {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 24px;
}

.plano-card__preco-wrap {
    margin-bottom: 8px;
}

.plano-card__preco-gratis {
    font-size: 32px;
    font-weight: 900;
    color: #059669;
    line-height: 1;
}

.plano-card__preco-periodo {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
}

.plano-card__parcela-info {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}

.plano-card__parcela-info strong {
    color: #111827;
    font-weight: 800;
}

.plano-card__parcela-valor {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.plano-card__total {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.plano-card__total span {
    font-weight: 700;
    color: #6b7280;
}

.plano-card__avista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.plano-card__avista-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
}

.plano-card__avista-valor-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.plano-card__avista-valor {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-primary, #2d6a4f);
    line-height: 1;
}

.plano-card__avista-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 99px;
    padding: 3px 10px;
    white-space: nowrap;
}

.plano-card__validade {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* Features */
.plano-card__features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plano-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #374151;
}

.plano-card__feature i {
    color: #059669;
    font-size: 13px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.plano-card__feature--off {
    color: #d1d5db;
}

.plano-card__feature--off i {
    color: #d1d5db;
}

/* Botão */
.plano-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: var(--color-primary, #2d6a4f);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
}

.plano-card__btn:hover {
    background: #1a4a35;
    transform: translateY(-1px);
}

.plano-card__btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary, #2d6a4f);
    color: var(--color-primary, #2d6a4f);
}

.plano-card__btn--outline:hover {
    background: var(--color-primary, #2d6a4f);
    color: #fff;
}

/* Card destaque — ícones e preço grátis em âmbar */
.plano-card--destaque .plano-card__feature i {
    color: #d97706;
}

.plano-card--destaque .plano-card__feature--off i {
    color: #d1d5db;
}

.plano-card--destaque .plano-card__preco-gratis {
    color: #b45309;
}

/* Botão do card em destaque — dourado/âmbar */
.plano-card--destaque .plano-card__btn:not([disabled]) {
    background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #f59e0b 100%);
    box-shadow: 0 4px 16px rgba(180, 83, 9, .35);
    color: #fff;
}

.plano-card--destaque .plano-card__btn:not([disabled]):hover {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, .45);
}

/* Seção de benefícios */
.planos-benefits {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 64px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 24px 16px;
}

.benefit-item__icon {
    width: 56px;
    height: 56px;
    background: #ecfdf5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #059669;
    margin: 0 auto 16px;
}

.benefit-item__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.benefit-item__text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

/* CTA final */
.planos-cta {
    background: #ecfdf5;
    border-top: 2px solid #a7f3d0;
    padding: 64px 24px;
    text-align: center;
}

.planos-cta__title {
    font-size: 28px;
    font-weight: 800;
    color: #1a3d2b;
    margin-bottom: 12px;
}

.planos-cta__sub {
    font-size: 15px;
    color: #4b7a5e;
    margin-bottom: 32px;
}

.planos-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3d2b 0%, #2d6a4f 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(45, 106, 79, .25);
}

.planos-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, .35);
}

/* Sem planos cadastrados */
.planos-empty {
    text-align: center;
    padding: 64px 24px;
    color: #9ca3af;
}

.planos-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #d1d5db;
}

.planos-empty p {
    font-size: 16px;
}

/* Card do plano atual */
.plano-card--atual {
    border-color: #059669;
    box-shadow: 0 8px 32px rgba(5, 150, 105, .18);
}

.plano-badge--atual {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 18px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(5, 150, 105, .35);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL — ESCOLHA FORMA DE PAGAMENTO (antes em <style> inline no HTML)
   ═══════════════════════════════════════════════════════════════════════════ */
.escolha-opcao-btn--ativo {
    border-color: #059669 !important;
    background: #f0fdf4 !important;
}

#btn-confirmar-escolha:not([disabled]) {
    opacity: 1 !important;
}

/* ── Spinner do modal de pagamento (antes em <style> inline no HTML) ── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}