/* style.css - VERSÃO FINAL CORRIGIDA E COMPLETA */

/* --- VARIÁVEIS DE COR E CONFIGURAÇÕES GLOBAIS --- */
:root {
    --color-primary: #007bff;
    --color-primary-dark: #0056b3;
    --dark-blue: #2c3e50;
    --color-background: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --color-success: #198754;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
.header {
    background-color: var(--color-surface);
    padding: 15px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header .logo { 
    font-size: 1.6em; 
    font-weight: 700; 
    color: var(--color-text); 
    text-decoration: none; 
}
.header .nav a { 
    text-decoration: none; 
    color: var(--color-text-muted); 
    margin-left: 25px; 
    font-weight: 500; 
    transition: color 0.2s; 
}
.header .nav a:hover { 
    color: var(--color-primary); 
}
.header .nav .btn { 
    background-color: var(--color-primary); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 6px; 
}
.header .nav .btn:hover { 
    background-color: var(--color-primary-dark); 
}

/* --- BOTÃO PADRÃO --- */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-surface);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* --- SEÇÃO HERO (TOPO DA PÁGINA) --- */
.hero {
    text-align: center;
    padding: 80px 20px;
}
.hero h1 { 
    font-size: 3.2em; 
    font-weight: 700; 
    margin-bottom: 15px; 
}
.hero p { 
    font-size: 1.2em; 
    color: var(--color-text-muted); 
    max-width: 650px; 
    margin: 0 auto 40px auto; 
}

/* --- PLANOS DE PREÇO --- */
.plan-toggle { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 50px; 
}
.plans-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}
.plan-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
}
.plan-card h3 { 
    font-size: 1.5em; 
    margin-bottom: 10px; 
}
.plan-card .price { 
    font-size: 3em; 
    font-weight: 700; 
    color: var(--color-primary); 
    margin: 20px 0; 
}
.plan-card .price span { 
    font-size: 0.4em; 
    color: var(--color-text-muted); 
}
.plan-card .features { 
    list-style: none; 
    margin: 20px 0; 
    text-align: left; 
    padding-left: 10px;
}
.plan-card .features li { 
    margin-bottom: 12px; 
}
.plan-card .btn { 
    width: 100%; 
    padding: 12px; 
}

/* --- CABEÇALHO PADRÃO DE SEÇÃO --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}
.section-header p {
    font-size: 1.1em;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SEÇÃO DE RECURSOS (FEATURES) --- */
.features-section {
    padding: 80px 0;
    background-color: #f0f4f8; /* Fundo sutilmente diferente */
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.feature-item img {
    margin-bottom: 15px;
    height: 48px;
}
.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* --- SEÇÃO DE GARANTIA --- */
.guarantee-section {
    background-color: #eaf3fe;
    padding: 60px 20px;
    text-align: center;
}
.guarantee-section .container {
    max-width: 800px;
}
.guarantee-section img {
    display: block;
    margin: 0 auto 20px auto;
    height: 72px;
}
.guarantee-section h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 15px 0;
}
.guarantee-section p {
    margin: 0 auto;
    font-size: 1.1em;
}

.faq-section {
  text-align: center;
  padding: 60px 20px;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  background: #f9f9f9;
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
}

/* --- RODAPÉ --- */
.footer {
    background-color: var(--dark-blue);
    color: #a0aec0;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9em;
}
.footer p {
    margin-bottom: 5px;
}
.footer a {
    color: var(--color-surface);
    text-decoration: none;
    font-weight: 500;
}
.footer a:hover {
    text-decoration: underline;
}

/* --- ESTILOS DE PÁGINAS INTERNAS (DASHBOARD, ADMIN, ETC) --- */
.page-header { 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--color-border); 
    padding-bottom: 20px; 
}
.page-header h1 { 
    font-size: 2.2em; 
}
.dashboard-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    margin-bottom: 30px; 
}
.card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card h3 { 
    margin-top: 0; 
    margin-bottom: 20px; 
}
.card .stat-number { 
    font-size: 2.5em; 
    font-weight: 700; 
    color: var(--color-primary); 
}
.orders-table { 
    width: 100%; 
    border-collapse: collapse; 
}
.orders-table th, .orders-table td { 
    padding: 15px; 
    border-bottom: 1px solid var(--color-border); 
    text-align: left; 
}
.orders-table th { 
    font-weight: 600; 
}
.status-badge { 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 0.8em; 
    font-weight: 600; 
    text-transform: uppercase; 
}
.status-pending { 
    background-color: #fff3cd; 
    color: #664d03; 
}
.status-completed, .status-paid { 
    background-color: #d1e7dd; 
    color: var(--color-success); 
}
.access-info {
    background-color: #212529;
    color: #f8f9fa;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}
.access-info span { 
    display: block; 
    margin-bottom: 5px; 
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .plans-grid { 
        grid-template-columns: 1fr; 
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header { 
        flex-direction: column; 
        gap: 15px; 
    }
    .dashboard-grid { 
        grid-template-columns: 1fr; 
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .section-header h2 {
        font-size: 2em;
    }
}