/* =========================================
   MODERN STYLE - MJAILTON (Atualizado)
   ========================================= */

:root {
    --primary: #2563eb;       
    --primary-dark: #1d4ed8;  
    --secondary: #10b981;     
    --secondary-dark: #059669;
    --accent: #f59e0b;        
    --danger: #ef4444;        
    --dark: #1e293b;          
    --gray: #64748b;          
    --light: #f8fafc;         
    --white: #ffffff;
    
    --border-radius: 10px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET E BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    background-color: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- LAYOUT UTILITIES --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.m-auto { margin: auto; }
.gap-2 { gap: 0.5rem; }

/* Espaçamentos */
.mt-1 { margin-top: 1rem; } .mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; } .mb-3 { margin-bottom: 3rem; }
.py-5 { padding-top: 5rem; padding-bottom: 5rem; }

/* Cores de Texto */
.text-primary { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.font-bold { font-weight: 700; }

/* --- GRID SYSTEM --- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media(max-width: 992px) { 
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } 
}
@media(max-width: 768px) { 
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } 
    .flex-mobile-col { flex-direction: column; } 
}

/* --- HEADER --- */
.header-main { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
.logo img { height: 45px; }
.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-menu a { font-weight: 500; color: var(--dark); font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

@media(max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 1rem; box-shadow: var(--shadow); border-top: 1px solid #f1f5f9; }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; margin-bottom: 10px; }
    .mobile-toggle { display: block; }
}

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-align: center; gap: 0.5rem; font-size: 0.95rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-link { background: none; color: var(--primary); padding: 0; text-decoration: underline; }
.btn-link:hover { color: var(--primary-dark); }

/* --- HERO SECTION --- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #172554 100%); color: var(--white); padding: 6rem 0 5rem; text-align: center; border-radius: 0 0 50px 50px; margin-bottom: 3rem; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1.5rem; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- CARDS & FEATURES --- */
.card { background: var(--white); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #e2e8f0; height: 100%; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: inline-block; background: #eff6ff; padding: 15px; border-radius: 50%; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.card h4 { margin-bottom: 0.8rem; font-size: 1.25rem; font-weight: 700; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* --- PRICING --- */
.pricing-card { text-align: center; display: flex; flex-direction: column; }
.pricing-card.featured { border: 2px solid var(--primary); transform: scale(1.02); z-index: 10; }
.price-value { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin: 1rem 0; }
.price-value small { font-size: 1rem; font-weight: 500; color: var(--gray); vertical-align: top; margin-top: 10px; display: inline-block; }
.pricing-features { text-align: left; margin: 2rem 0; list-style: none; flex-grow: 1; }
.pricing-features li { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; color: var(--gray); font-size: 0.9rem; }
.pricing-features i.fa-check { color: var(--secondary); flex-shrink: 0; }
.pricing-features i.fa-times { color: #cbd5e1; flex-shrink: 0; }

/* --- FORMS --- */
.form-group { margin-bottom: 1.5rem; text-align: left; width: 100%; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.8rem 1rem; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; transition: var(--transition); background: var(--white); color: var(--dark); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.form-control::placeholder { color: #94a3b8; }

/* AUTH BOX (Login/Cadastro Split) */
.auth-box { max-width: 900px; margin: 3rem auto; background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-hover); display: flex; min-height: 500px; }
.auth-sidebar { background: #f8fafc; padding: 3rem; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 40%; text-align: center; border-right: 1px solid #e2e8f0; }
.auth-form { padding: 3rem; width: 60%; display: flex; flex-direction: column; justify-content: center; }
@media(max-width: 768px) { .auth-box { flex-direction: column; } .auth-sidebar, .auth-form { width: 100%; } .auth-sidebar { padding: 2rem; border-right: none; border-bottom: 1px solid #e2e8f0; } }

/* --- FOOTER --- */
.footer { background: var(--dark); color: #94a3b8; padding: 4rem 0 2rem; margin-top: auto; }
.footer h5 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul li { margin-bottom: 0.8rem; }
.footer a { color: #cbd5e1; transition: 0.2s; }
.footer a:hover { color: var(--white); text-decoration: none; }
.social-icons a { margin: 0 10px; font-size: 1.5rem; display: inline-block; }
.social-icons a:hover { transform: scale(1.1); color: var(--primary); }


/* =========================================
   ALERTAS E MENSAGENS (TIPO TOAST - FLUTUANTE)
   ========================================= */
.alert-container {
    position: fixed; /* Flutua sobre o conteúdo */
    top: 20px;
    right: 20px;
    width: 100%;
    max-width: 400px; /* Largura controlada */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* Permite clicar através do container vazio */
}

.alert {
    pointer-events: auto; /* Reativa cliques no alerta */
    position: relative;
    padding: 1rem 1.25rem;
    background: #fff;
    border-left: 5px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Tipos de Alerta com Borda Lateral */
.alert-danger {
    background-color: #fff;
    border-left-color: #ef4444;
}
.alert-danger i { color: #ef4444; }

.alert-success {
    background-color: #fff;
    border-left-color: #10b981;
}
.alert-success i { color: #10b981; }

.alert-warning {
    background-color: #fff;
    border-left-color: #f59e0b;
}
.alert-warning i { color: #f59e0b; }

.alert-info {
    background-color: #fff;
    border-left-color: #3b82f6;
}
.alert-info i { color: #3b82f6; }

/* Elementos Internos */
.alert span {
    flex-grow: 1;
    color: var(--dark);
    font-weight: 500;
}

.alert i:first-child {
    font-size: 1.3rem;
    margin-top: 2px;
}

.close-alert {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    transition: 0.2s;
    line-height: 1;
}
.close-alert:hover { color: var(--dark); transform: scale(1.1); }

/* Animação de Entrada */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modal Backdrop (Usado no Login) */
.modal-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center;
    z-index: 1050;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-backdrop.show { opacity: 1; }
.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    width: 100%; max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.modal-backdrop.show .modal-content { transform: translateY(0); }




.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    width: 100%;
    padding: 20px;
    border: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-question span {
    font-size: 22px;
    transition: .3s;
}

.faq-question.active span {
    transform: rotate(45deg);
}