/* Reset & Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores de Destaque - Mantidas */
    --primary: #6c47ff;     /* Roxo Principal */
    --primary-dark: #5a37e0;
    --secondary: #ff3d7f;   /* Rosa */
    --accent: #00d4ff;      /* Azul Ciano */
    
    /* Cores de Fundo e Texto - Tema Semi-Dark Elegante */
    --background: #1e293b;  /* Fundo Escuro Sutil (Cinza-Azulado) */
    --surface: #334155;     /* Superfície dos Cards/Componentes (Cinza Mais Escuro) */
    --text-light: #f1f5f9;  /* Texto Claro Principal */
    --text-gray: #94a3b8;   /* Texto Cinza Secundário */
    --border: #475569;      /* Linha de Borda Sutil */
    --darker: #0d1117;      /* Fundo do Footer */
    
    --success: #34d399;     /* Verde Sucesso */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Transição mais suave */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Header Fixo de Plataforma */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95); /* Fundo escuro com leve transparência */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem; /* Logo menor */
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Espaçamento menor */
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400; /* Fonte mais leve */
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* Linha de destaque mais fina */
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Telas Cheias */
.screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px; /* Ajuste de padding */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section Minimalista */
.hero {
    background: var(--background);
    text-align: left;
    padding-top: 150px;
}

.hero-content {
    padding-top: 0;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    color: var(--text-gray);
    max-width: 700px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: white;
    padding: 14px 30px;
    border-radius: 6px; /* Mais quadrado */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 71, 255, 0.4);
    position: relative;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 71, 255, 0.6);
}

/* Seções de Conteúdo */
.features, .pricing, .testimonials, .faq {
    background: var(--background);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    color: var(--text-light);
    font-weight: 700;
}

.section-title .highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Features Section - Estilo "Painel" */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface); /* Fundo escuro do card */
    border-radius: 8px; /* Cantos mais suaves */
    padding: 2rem;
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary); /* Ícone com cor sólida */
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Pricing Section - Estilo "Painel" */
.plans-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.plan-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    width: 330px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 3px solid var(--primary);
    background: rgba(108, 71, 255, 0.15); /* Fundo sutilmente mais claro */
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(108, 71, 255, 0.2);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 6px 20px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(255, 61, 127, 0.4);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.plan-price {
    font-size: 2.8rem; /* Fonte menor */
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.5rem 0;
    line-height: 1;
}

.plan-price .currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 2px;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

.plan-discount {
    color: var(--success);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.6rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--success);
    font-size: 1rem;
}

.plan-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 10px rgba(108, 71, 255, 0.3);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 71, 255, 0.5);
}

/* Testimonials Carousel (MANTIDO SE VOCÊ NÃO O REMOVEU) */
.testimonials {
    background: var(--surface); 
}

.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    height: 300px;
    padding-top: 2rem;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: var(--transition);
    pointer-events: none;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-avatar {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.7;
    position: relative;
}

.testimonial-text::before {
    content: none; 
}

.testimonial-author {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    border-color: var(--primary);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* FAQ Section */
.faq {
    background: var(--background);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.8rem;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(108, 71, 255, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    transition: var(--transition);
    font-weight: 300;
    color: var(--text-gray);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Final Section */
.final-cta {
    background: var(--surface);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.cta-button {
    background: var(--secondary);
    color: white;
    padding: 16px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 61, 127, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 61, 127, 0.5);
}

/* Footer */
.footer {
    background: var(--darker); 
    padding: 3rem 0 1.5rem;
    text-align: left;
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------------------------------------------------------------------- */
/* --- CORREÇÕES FINAIS DO MODAL DE PAGAMENTO --- */
/* ---------------------------------------------------------------------- */

.modal-overlay {
    /* CORREÇÃO CRÍTICA: display: none está aqui para esconder o modal no início.
       O JavaScript vai sobrescrever isso, trocando para 'flex' no clique. */
    display: none; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    
    /* CENTRALIZAÇÃO - Usamos flex, mas o "display: none" acima tem precedência inicial */
    justify-content: center;
    align-items: center; 
    
    padding: 1rem;
    /* Se você quiser o modal sempre centralizado, tire o overflow-y: auto daqui
       e coloque no modal-content. Mas, para não quebrar a funcionalidade, vamos manter. */
    overflow-y: auto;
}

/* Localize e substitua o bloco .modal-form (Linha ~507 no código anterior) */
.modal-form {
    display: grid;
    gap: 1rem; /* ESPAÇAMENTO ENTRE OS CAMPOS */
}

/* Localize e substitua o bloco .modal-form input, .modal-form select (Linha ~518 no código anterior) */
.modal-form input,
.modal-form select {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--background); /* FUNDO CONTRASTANTE */
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    width: 100%; /* LARGURA TOTAL */
}

/* 3. ESTILO DOS INPUTS DENTRO DO MODAL */
.modal-content {
    background: var(--surface); 
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    border: 1px solid var(--border);
    color: var(--text-light);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--background); /* Fundo escuro */
    color: var(--text-gray);      /* Cor do "X" */
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Aumenta um pouco para visibilidade */
    cursor: pointer;
    transition: var(--transition);
    line-height: 1; /* Garante alinhamento do X */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Sombra sutil */
}

.modal-close:hover {
    background: var(--primary); /* Fica roxo no hover */
    color: white;             /* O "X" fica branco no hover */
    transform: scale(1.1);
}

.modal-title {
    color: var(--text-light);
    font-size: 1.6rem;
}

.modal-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
}

.modal-plan-info {
    background: var(--background);
    border: 1px dashed var(--border);
    color: var(--text-light);
    padding: 1rem;
}

.modal-plan-info strong {
    color: var(--primary);
}

.modal-form input,
.modal-form select {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--background); /* FUNDO CONTRASTANTE */
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    width: 100%; /* LARGURA TOTAL */
}

.modal-form select {
    background: var(--background) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236c47ff'><polygon points='0,0 10,0 5,10'/></svg>") no-repeat right 15px center/8px;
}

.modal-form select:valid {
    color: var(--text-light);
}

.modal-form option {
    background: var(--surface);
    color: var(--text-light);
}

.modal-form input:focus,
.modal-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 71, 255, 0.3);
    background: var(--background);
}

.modal-submit {
    background: var(--primary); /* Cor de fundo roxa */
    color: white;             /* Texto branco */
    border: none;
    padding: 14px 0; /* Padding vertical */
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600; /* Negrito */
    cursor: pointer;
    transition: var(--transition);
    width: 100%; /* Ocupa a largura total */
    box-shadow: 0 4px 10px rgba(108, 71, 255, 0.3); /* Sombra para profundidade */
    margin-top: 0.5rem; /* Pequeno espaçamento superior */
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 71, 255, 0.5); /* Sombra maior no hover */
}

.modal-submit:disabled {
    background: var(--text-gray); /* Cinza quando desabilitado */
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

/* Checkout Transparente - Ajustes de Cores Dark */
.qr-code-container {
    background: var(--text-light); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pix-code-section label {
    color: var(--text-light);
}

.pix-code-input {
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-light);
}

.payment-instructions {
    background: var(--background);
    border: 1px solid var(--border);
}

.payment-instructions ol {
    color: var(--text-light);
}

.payment-status {
    background: var(--background);
    border: 1px solid var(--border);
}

.status-indicator {
    color: var(--text-gray);
}

.status-indicator .spinner {
    border-top-color: var(--primary);
}

.checkout-actions .btn-secondary {
    background: var(--background);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.checkout-actions .btn-secondary:hover {
    background: var(--border);
}

.btn-link {
    color: var(--primary);
}

.error-message {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

.modal-form input.error,
.modal-form select.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.toast {
    background: var(--surface);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu { display: none; }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero { text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { padding: 12px 25px; font-size: 0.95rem; }

    .feature-card { padding: 1.5rem; }
    .features-grid { gap: 1rem; }

    .plans-container { flex-direction: column; align-items: center; gap: 1.5rem; }
    .plan-card { width: 100%; max-width: 350px; }
    .plan-card.featured { transform: scale(1); }

    .testimonials-carousel { height: auto; padding-bottom: 1rem; }

    .modal-content { padding: 1.5rem; }
    .modal-title { font-size: 1.4rem; }
    .modal-form input, .modal-form select, .modal-submit { padding: 12px; font-size: 0.9rem; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}