/* --- VARIÁVEIS E BASE --- */
:root {
    --primary: #00f3ff;
    --secondary: #bd00ff;
    --bg-dark: #05070a;
    --bg-card: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --gradient-primary: linear-gradient(135deg, #00f3ff 0%, #bd00ff 100%);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.badge { background: rgba(0, 243, 255, 0.1); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- BOTÕES --- */
.btn-primary { background: var(--gradient-primary); color: #000; border: none; padding: 15px 30px; border-radius: 50px; font-weight: 800; cursor: pointer; transition: 0.3s; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 243, 255, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--glass-border); padding: 12px 25px; border-radius: 50px; font-weight: 600; cursor: pointer; }

/* --- HEADER --- */
header { padding: 20px 0; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; background: rgba(10,14,20,0.8); backdrop-filter: blur(10px); z-index: 1000; }
header nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary); }

/* --- LANDING PAGE (INDEX) --- */
.hero { text-align: center; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; letter-spacing: -2px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-grid h4 { margin-top: 20px; font-size: 1.2rem; margin-bottom: 10px; }

.pricing-container { display: flex; gap: 30px; justify-content: center; align-items: stretch; margin-top: 50px; flex-wrap: wrap; }
.card-plan { 
    background: var(--bg-card); padding: 50px 40px; border-radius: 24px; 
    border: 1px solid var(--glass-border); text-align: center; transition: 0.4s; 
    width: 100%; max-width: 380px; display: flex; flex-direction: column;
}
.card-plan:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(255,255,255,0.04); }
.card-plan.selected { border: 2px solid var(--primary); box-shadow: 0 0 40px rgba(0, 243, 255, 0.15); }
.price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; }

/* CARROSSEL */
.carousel-container { position: relative; width: 100%; border-radius: 20px; overflow: hidden; background: #05070a; }
.carousel-slide { display: none; min-width: 100%; }
.carousel-slide.active { display: block; animation: fadeIn 0.8s; }
.carousel-slide img { 
    width: 100%; 
    height: 500px; 
    object-fit: cover; 
    object-position: top; 
    display: block;
    border-radius: 20px;
}
@media (max-width: 768px) {
    .carousel-slide img { height: 260px; }
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

/* --- DASHBOARD COMPONENTS --- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 80px); }
.sidebar { background: #05070a; border-right: 1px solid var(--glass-border); padding: 30px 20px; }
.sidebar-link { padding: 12px 15px; border-radius: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 12px; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.sidebar-link.active, .sidebar-link:hover { background: rgba(0, 243, 255, 0.1); color: var(--primary); }
.history-item { background: rgba(255,255,255,0.02); border: 1px solid transparent; padding: 10px; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.3s; }
.history-item:hover { border-color: var(--primary); background: rgba(0,243,255,0.05); }

.main-content { padding: 40px; background: radial-gradient(circle at top right, rgba(0, 243, 255, 0.05), transparent 400px); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); padding: 25px; border-radius: 20px; border: 1px solid var(--glass-border); }
.stat-card strong { display: block; font-size: 2.4rem; font-weight: 800; margin-top: 10px; color: var(--primary); }
#stat-revenue { color: #00ff88; }
#stat-hot { color: #ffaa00; }

.search-panel { background: rgba(255,255,255,0.02); padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border); display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: flex-end; }
.form-group label { font-size: 0.75rem; color: var(--primary); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.form-group input { background: rgba(0,0,0,0.4) !important; border: 1px solid var(--glass-border); padding: 15px; border-radius: 12px; color: #fff; width: 100%; transition: 0.3s; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); outline: none; }

.main-table-wrapper { border-radius: 20px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); overflow-x: auto; }
.main-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.main-table th { padding: 20px; text-align: left; font-size: 0.8rem; color: var(--primary); font-weight: 800; text-transform: uppercase; }
.main-table td { padding: 20px; border-top: 1px solid var(--glass-border); }

/* --- MODAIS --- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 5000; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: #0a0e14; border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; width: 100%; max-width: 550px; max-height: 90vh; overflow-y: auto; position: relative; }

/* ANIMATIONS */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader { animation: spin 1s linear infinite; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-modal { font-size: 2rem; cursor: pointer; color: var(--text-muted); background: none; border: none; }

@media (max-width: 768px) {
    .modal-content { padding: 30px 20px; }
    .modal-header h3 { font-size: 1.1rem; }
    .btn-primary { width: 100% !important; padding: 18px !important; font-size: 0.9rem !important; }
}

/* --- FOOTER ROBUSTO --- */
.main-footer { background: #05070a; border-top: 1px solid var(--glass-border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--primary); margin-bottom: 25px; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 10px; display: block; }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.8rem; }

/* --- FUNCIONALIDADES PRO (LOCK SYSTEM) --- */
.pro-gate { position: relative; overflow: hidden; }
.lock-overlay { 
    position: absolute; inset: 0; background: rgba(10,14,20,0.85); 
    backdrop-filter: blur(4px); display: flex; flex-direction: column; 
    align-items: center; justify-content: center; opacity: 0; 
    transition: 0.3s; pointer-events: none; z-index: 5;
}
.pro-gate:hover .lock-overlay { opacity: 1; pointer-events: auto; }
.lock-overlay i { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.lock-overlay span { font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; color: #fff; }

/* --- NAVEGAÇÃO MOBILE (BOTTOM NAV) --- */
.mobile-nav { 
    display: none; position: fixed; bottom: 0; left: 0; width: 100%; 
    background: rgba(10,14,20,0.95); backdrop-filter: blur(15px); 
    border-top: 1px solid var(--glass-border); justify-content: space-around; 
    padding: 10px 0; z-index: 4000; box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.mobile-nav-link { 
    display: flex; flex-direction: column; align-items: center; 
    color: var(--text-muted); font-size: 0.7rem; gap: 4px; transition: 0.3s;
}
.mobile-nav-link i { font-size: 1.2rem; }
.mobile-nav-link.active, .mobile-nav-link:hover { color: var(--primary); }

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .dashboard-layout { display: flex; flex-direction: column; }
    .sidebar { display: none !important; }
    .mobile-nav { display: flex; } /* Mostra no celular */
    .main-content { padding-bottom: 80px !important; } /* Espaço para a barra não cobrir o conteúdo */
    .hide-mobile-btn { display: none !important; } /* Esconde o botão redundante */
}

@media (max-width: 768px) {
    .main-content { padding: 15px !important; margin-top: 10px; }
    .stat-row { display: flex; flex-direction: column; gap: 15px; }
    .stat-card { padding: 20px; }
    .stat-card strong { font-size: 1.8rem; }
    
    .search-panel { padding: 20px; grid-template-columns: 1fr; gap: 15px; }
    .btn-primary#btn-start { height: 55px; font-size: 1rem; width: 100%; border-radius: 12px; }
    
    .pricing-container { flex-direction: column; align-items: center; }
    .card-plan { width: 100%; max-width: 100%; }
}
