/* ==============================================================================
   ESTILOS GLOBAIS - SISTEMA MINISTÉRIO ONLINE
   Design System Elegante, Acessível e Responsivo
   ============================================================================== */

:root {
    --bg-main: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --border-color: #374151;
    --border-subtle: #1f2937;
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.25);
    
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Cabeçalho */
.site-header {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-symbol {
    color: var(--primary);
    font-size: 1.4rem;
}

.logo-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        min-height: 52px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        flex-wrap: wrap;
    }
    .main-nav {
        gap: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        scrollbar-width: none;
        padding-bottom: 0.2rem;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-nav a {
        font-size: 0.82rem;
    }
    .btn-nav {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary) !important;
}

.btn-nav:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Painel Administrativo */
.admin-topbar {
    background: #0b1120;
    border-bottom: 1px solid var(--border-color);
}

.admin-subnav {
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition);
}

.admin-nav-link:hover {
    color: #ffffff;
    background: #1e293b;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.admin-table th {
    background: #0b1120;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pago { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-pendente { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-falhou { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-novo { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

/* Conteúdo Principal */
.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Botões */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #374151;
    border-color: #4b5563;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3.5rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12), transparent 70%);
}

.badge-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin: 0 auto 1.25rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Grid */
.features-section {
    padding: 4rem 0 5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Páginas Padrão */
.page-content {
    padding: 3.5rem 1.5rem;
    flex: 1;
}

.page-header {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Caixa Legal / LGPD */
.legal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.legal-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-box .updated-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-box section {
    margin-bottom: 1.75rem;
}

.legal-box h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.legal-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-box a {
    color: var(--primary);
}

/* Formulários e Honeypot */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.checkout-wrapper, .auth-card {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.checkout-card, .auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
}

.checkout-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Telas de Pagamento e Obrigado */
.payment-card, .thankyou-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.pix-placeholder-box {
    background: var(--bg-main);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.75rem 0;
}

.qr-box {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.order-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.download-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 1.5rem 0;
    text-align: left;
}

.expiry-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Erros (404 e 500) */
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
}

.error-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.error-badge {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.code-404 { color: var(--warning); }
.code-500 { color: var(--danger); }

.error-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.error-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ref-badge {
    background: var(--bg-main);
    border: 1px dashed var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    user-select: all;
}

.ref-badge strong {
    color: #38bdf8;
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Rodapé */
.site-footer {
    background: #080b12;
    border-top: 1px solid var(--border-color);
    padding-top: 3.5rem;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    max-width: 380px;
}

.footer-col h4 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ==============================================================================
   PÁGINAS PÚBLICAS & VITRINES (ETAPA 5)
   ============================================================================== */

/* Seção Sobre e Missão */
.about-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-card-quote {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
}

.quote-symbol {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-author {
    display: block;
    margin-top: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

/* Seção Workshops e Ministrações */
.workshops-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.workshop-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.workshop-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.workshop-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.workshop-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

.btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
    white-space: nowrap;
}

/* Vitrines e Produtos */
.showcase-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.bg-surface {
    background: var(--bg-surface);
}

.section-header-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.showcase-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem 0;
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Box de Aviso Obrigatório do PRD em Materiais */
.highlight-notice-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    text-align: left;
    margin: 1.75rem 0;
}

.notice-icon {
    font-size: 2rem;
    line-height: 1;
}

.notice-title {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.notice-text {
    font-size: 0.95rem;
    color: #d1fae5;
    line-height: 1.5;
    margin: 0;
}

/* Cards de Produtos */
.product-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.product-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-cover-placeholder {
    width: 100%;
    height: 180px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tag-free {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tag-paid {
    align-self: flex-start;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features-mini {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.price-display {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-price-free {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Formulário de Convites Acessível */
.form-container-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--danger);
}

.form-input, .form-select, .form-textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-error {
    border-color: var(--danger) !important;
}

.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

/* Alertas de Convite */
.alert-success-banner {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.alert-success-banner h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.alert-success-banner p {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.6;
}

.form-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: #fca5a5;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-error-alert ul {
    margin: 0.5rem 0 0 1.25rem;
}

/* Páginas Legais (LGPD, Termos, Licença) */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.legal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

@media (max-width: 600px) {
    .legal-card {
        padding: 1.5rem;
    }
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.legal-section ul {
    margin: 0.75rem 0 1rem 1.5rem;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.legal-table th, .legal-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    font-weight: 700;
}

.legal-table td {
    background: var(--bg-main);
    color: var(--text-secondary);
}

.legal-callout {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 1rem;
}

/* Redes Sociais e Contato */
.social-links-grid {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==============================================================================
   CHECKOUT UNIFICADO & PÁGINA DE OBRIGADO (ETAPA 6)
   ============================================================================== */

.checkout-container {
    max-width: 1040px;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.checkout-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.checkout-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.checkout-cover-placeholder {
    width: 100%;
    height: 180px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.checkout-product-details {
    padding: 2rem;
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.75rem 0;
}

.checkout-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.checkout-product-notice {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #93c5fd;
    margin-bottom: 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.checkout-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
}

@media (max-width: 860px) {
    .checkout-container {
        padding-top: 0.75rem;
        padding-bottom: 2rem;
    }
    .checkout-layout {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
    .checkout-summary {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    .checkout-cover {
        flex-shrink: 0;
        width: 65px;
        height: 65px;
    }
    .checkout-cover img {
        width: 65px;
        height: 65px;
        border-radius: var(--radius-sm);
        object-fit: cover;
    }
    .checkout-cover-placeholder {
        width: 65px;
        height: 65px;
        font-size: 0.85rem;
    }
    .checkout-product-details {
        padding: 0;
    }
    .checkout-title {
        font-size: 1.1rem;
        margin: 0.15rem 0;
    }
    .checkout-desc {
        display: none;
    }
    .checkout-perks {
        display: none;
    }
    .checkout-product-notice {
        display: none;
    }
}

/* Formulário de Checkout */
.checkout-form-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

@media (max-width: 600px) {
    .checkout-form-box {
        padding: 1.5rem;
    }
}

/* Card Obrigatório de Gratuidade (Acima da dobra no celular) */
.free-notice-card {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.free-notice-card .notice-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.free-notice-card strong {
    color: var(--accent);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.35rem;
}

.free-notice-card p {
    color: #d1fae5;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Seletor de Oferta Voluntária */
.donation-selector-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-donation {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
}

.btn-donation span {
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-muted);
}

.btn-donation:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-donation.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: #60a5fa;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.btn-donation[data-value="0"].active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.input-currency-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: bold;
}

.input-currency-wrapper .form-input {
    padding-left: 2.5rem;
}

/* Preço Fixo e Order Bump */
.fixed-price-banner {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.price-caption {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.order-bump-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed var(--warning);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.bump-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.bump-badge {
    background: var(--warning);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.bump-add-price {
    font-weight: 800;
    color: var(--warning);
    font-size: 1.1rem;
}

.bump-body {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.bump-body input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--warning);
}

.bump-body label {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
}

/* Box de Pagamento */
.payment-fields-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.payment-box-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-box-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.cpf-requirement-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.method-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.method-card:hover {
    border-color: var(--primary);
}

.method-card input[type="radio"] {
    accent-color: var(--primary);
}

.method-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Botões e Selos de Confiança */
.checkout-submit-area {
    margin-top: 1.75rem;
}

.btn-block {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tela de Obrigado */
.thank-you-container {
    max-width: 680px;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.thank-you-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
}

.success-icon-pulse {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.thank-you-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.thank-you-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auto-download-notice {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
}

.download-items-box {
    text-align: left;
    margin-bottom: 2rem;
}

.items-box-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.download-item-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-icon {
    font-size: 1.5rem;
}

.item-title {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.item-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.license-info-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.license-info-card code {
    background: #1e293b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #60a5fa;
}

.thank-you-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-action {
    color: var(--primary);
    font-weight: bold;
    text-decoration: underline;
}

.payment-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 680px;
    margin: 2rem auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.payment-header {
    margin-bottom: 2rem;
}

.payment-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem 0;
}

.payment-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.payment-items-summary {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

.payment-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.payment-item-row .item-price {
    font-weight: bold;
    color: var(--text-primary);
}

.pix-payment-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.qr-code-img {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.qr-code-placeholder {
    width: 220px;
    height: 220px;
    background: #1e293b;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 0.5rem;
}

.pix-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
}

.pix-copy-paste-group {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.copy-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.copy-input-wrapper input {
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-feedback {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: bold;
}

.order-status-indicator {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-pulse-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-pulse {
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.status-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.validity-notice {
    display: block;
    color: #eab308;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.payment-footer-notice {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
}


