/* Arquivo: assets/css/lab-theme.css 
   Tema: Industrial / Glitch / Tech Lab (V4.0 - Vertical Plans & Consolidated)
*/

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=JetBrains+Mono:wght@400;700&family=Oswald:wght@500;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-main: #e0e0e0;
    --plasma-purple: #9d4edd;
    --data-green: #00ff41;
    --alert-yellow: #FFD700;
    --glass-bg: rgba(15, 15, 15, 0.85);
    --border-color: #333;
    --ai-create: rgba(67, 0, 70, 0.195);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'JetBrains Mono', 'Courier New', monospace; 
    margin: 0;
    overflow-x: hidden;
}

/* Fundo Industrial Noise */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.2'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
}

/* --- PRELOADER --- */
#page-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0a0a0a; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out;
}
.preloader-logo {
    width: auto; height: 300px; object-fit: cover;
}
@keyframes pulse { 50% { transform: scale(1.05); opacity: 0.8; } }
body.loading-state { overflow: hidden; }

/* --- TIPOGRAFIA --- */
h1, h2, h3, .font-title {
    font-family: 'Chakra Petch', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.text-highlight { color: var(--plasma-purple); }

/* Glitch Hover */
.glitch-text { position: relative; display: inline-block; }
.glitch-text:hover {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--data-green);
}
@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    100% { transform: skew(0deg); }
}

/* --- BOTÕES TECH --- */
.tech-btn {
    background: transparent;
    border: 1px solid var(--plasma-purple);
    color: var(--plasma-purple);
    padding: 15px 30px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    display: inline-block;
    text-align: center;
}
.tech-btn:hover {
    background: var(--plasma-purple);
    color: #000;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
}
.tech-btn.secondary {
    border-color: var(--text-main);
    color: var(--text-main);
}
.tech-btn.secondary:hover {
    background: var(--text-main);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- PAINÉIS GERAIS --- */
.clean-panel {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    backdrop-filter: blur(5px);
    transition: 0.3s border-color;
    margin-bottom: 40px;
}
.clean-panel:hover { border-color: var(--plasma-purple); }

/* --- PÁGINA DE PLANOS (VERTICAL) --- */
.plans-grid-system {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Espaço vertical entre planos */
    max-width: 700px; /* Largura contida para leitura vertical */
    margin: 50px auto;
}

.plan-module {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    border-top: 4px solid var(--border-color);
    padding: 40px;
    transition: 0.3s;
    background: rgba(10, 10, 10, 0.6); /* Fundo mais escuro para destaque */
}

/* Hover no módulo */
.plan-module:hover {
    transform: translateX(5px); /* Desloca levemente para direita */
    border-top-color: var(--plasma-purple);
    background: rgba(20, 20, 20, 0.9);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
}

/* Destaque (Featured) */
.plan-module.featured {
    border-top-color: var(--alert-yellow);
    background: rgba(255, 215, 0, 0.03);
    transform: scale(1.02); /* Levemente maior por padrão */
}
.plan-module.featured:hover {
    transform: scale(1.02) translateX(5px);
}

.promo-badge {
    background: var(--plasma-purple);
    color: white;
    padding: 5px 10px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.plan-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-name {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price-wrapper {
    font-family: 'Chakra Petch', sans-serif;
    text-align: right;
}

.price-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--plasma-purple);
}

.price-recurrence {
    font-size: 0.9rem;
    color: #888;
    display: block;
}

/* Lista de Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px 0;
    text-align: left;
    background: rgba(15, 15, 15, 0);
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #333;
    color: #ccc;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.features-list li::before {
    content: ">>";
    color: var(--data-green);
    margin-right: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Promoção Black Week */
.struck-text {
    text-decoration: line-through;
    color: #666;
    margin-right: 10px;
    font-size: 0.9rem;
}

.promo-pill {
    background: var(--alert-yellow);
    color: black;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Chakra Petch', sans-serif;
    animation: glow 2s infinite alternate;
}
@keyframes glow { from { box-shadow: 0 0 5px rgba(255,215,0,0.2); } to { box-shadow: 0 0 15px rgba(255,215,0,0.6); } }

/* Texto avulso de pacotes */
.plans-subtitle2 {
    color: var(--text-main);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    margin-top: 60px;
    line-height: 1.5;
    border-left: 3px solid var(--data-green);
    padding-left: 20px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ / ACCORDION --- */
.faq-item {
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    background: rgba(20, 20, 20, 0.3);
    transition: background 0.3s;
}
.faq-item.active {
    background: rgba(20, 20, 20, 0.8);
    border-bottom-color: var(--plasma-purple);
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: 'Chakra Petch', sans-serif;
    user-select: none;
}
.faq-question:hover { color: var(--plasma-purple); }
.faq-toggle-icon {
    font-size: 1.5rem;
    color: var(--plasma-purple);
    transition: transform 0.3s ease;
    line-height: 1;
    display: inline-block;
}
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); color: var(--data-green); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; color: #ccc; padding: 0 20px;
}
.faq-content-inner {
    padding-bottom: 20px; padding-top: 10px; border-left: 2px solid var(--data-green); padding-left: 15px; line-height: 1.6; font-size: 0.95rem;
}
.faq-content-inner ul { margin-left: 20px; }
.faq-content-inner li { margin-bottom: 5px; }
.prompt-box {
    background: rgba(0,0,0,0.6); border: 1px dashed #555; padding: 15px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--data-green); margin-bottom: 10px;
}
.prompt-insight {
    font-size: 0.85rem; color: #999; margin-bottom: 20px; font-style: italic;
}

/* --- RESPONSIVIDADE GERAL --- */
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 75vh; }
.macbook-visual { position: relative; padding: 10px; }
.macbook-frame { border: 1px solid #333; background: rgba(0,0,0,0.5); padding: 20px; position: relative; }
.corner-tl { position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--plasma-purple); border-left: 2px solid var(--plasma-purple); }
.corner-br { position: absolute; bottom: -1px; right: -1px; width: 20px; height: 20px; border-bottom: 2px solid var(--plasma-purple); border-right: 2px solid var(--plasma-purple); }

/* --- HEADER & FOOTER --- */

.site-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 30px; /* Padding lateral reduzido, vertical zerado pois usamos height fixa */
    /* background-color: rgba(255, 255, 255, 0); */
    /* background: linear-gradient(180deg, #000000 0%, #00000090 25%, #00000080 50%, #00000060 75%, #00000000 100%); */
    background:linear-gradient(180deg, #080808 0%, #101010d1 70%, #00000000 100%);
    position: sticky; 
    top: 0; 
    z-index: 1000; /* Garante que fique acima de tudo */
    height: 70px; /* Altura controlada */
    box-sizing: border-box;
    width: 100%;
}

/* Containers internos para alinhar os itens horizontalmente */
.header-content-left, 
.header-content-right {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

/* Ajuste dos Links de Navegação */
.nav-link {
    color: #e0e0e0; 
    text-decoration: none; 
    margin: 0; /* Remove margens antigas, usa gap do pai */
    font-weight: bold;
    transition: 0.2s; 
    font-family: 'Chakra Petch', sans-serif; 
    text-transform: uppercase;
    font-size: 0.9rem; /* Tamanho de fonte ideal para caber */
    white-space: nowrap; /* Impede que o texto quebre linha */
    cursor: pointer;
}
.nav-link:hover { 
    color: var(--plasma-purple); 
    text-shadow: 0 0 5px var(--plasma-purple); 
}

/* Ajuste da Logo */
.logo-wrapper {
    display: flex;
    align-items: center;

}
.logo-wrapper img {
    height: 60px; /* Tamanho controlado */
    width: auto;
    display: block;
    margin-top: 15px;
}

/* Ajuste do Texto de Usuário */
.header-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}

/* Botão Mobile (Hambúrguer) */
.mobile-menu-toggle {
    display: none; /* Escondido no Desktop */
    background: transparent;
    border: 1px solid var(--text-main);
    padding: 5px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 30px;
    width: 35px;
}
.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
}

/* Footer */
.site-footer {
    color: #cccccc !important; 
    margin-top: 80px; 
    padding: 40px;
    text-align: center; 
    font-family: 'Chakra Petch', sans-serif; 
    font-size: 0.9rem;
    background: linear-gradient(0deg, #000000 0%, #00000090 25%, #00000080 50%, #00000010 75%, #00000000 100%);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media screen and (max-width: 900px) {
    .site-header {
        padding: 0 15px;
        height: 60px; /* Header mais baixo no mobile */
    }
    
    /* Esconde menus de desktop no mobile */
    .header-content-left, 
    .header-content-right {
        display: none; 
    }

    /* Mostra o botão hambúrguer */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Ajustes da Home Grid */
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 40px; 
        padding-top: 20px;
    }
    h1 { font-size: 2.5rem !important; }
    .macbook-visual { margin-bottom: 30px; order: -1; }
    .tech-btn { width: 100%; max-width: 300px; }
}

/* --- TERMINAL INPUTS (NOVO ESTILO) --- */
/* Aplica-se a todos os inputs de texto e textareas automaticamente */
/* --- TERMINAL INPUTS (CORRIGIDO E AJUSTADO) --- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
.terminal-input {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid #444;
    border-left: 4px solid var(--plasma-purple);
    color: #f0f0f0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    padding: 15px;
    
    /* CORREÇÃO DE TAMANHO */
    width: 100%; 
    box-sizing: border-box; /* Garante que o padding não aumente a largura total */
    
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* Ajuste específico para área de texto */
textarea {
    min-height: 200px; /* Aumenta a altura inicial */
    resize: vertical;  /* Permite redimensionar apenas a altura */
}

input:focus, 
textarea:focus,
.terminal-input:focus {
    background-color: rgba(45, 45, 45, 0.9);
    border-color: var(--data-green);
    border-left-color: var(--data-green);
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 0 1px rgba(0, 255, 65, 0.1);
}

.footer-logo {
  position: absolute;
  right: 90px;
  width: 45px;
  height: 40px;
  filter: invert(1);
}

/* --- ESTILOS DO DASHBOARD (Adicionar ao final do lab-theme.css) --- */

/* Tabelas "Data Grid" */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
    background: rgba(0,0,0,0.2);
}

.tech-table thead th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--plasma-purple);
    color: var(--plasma-purple);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.tech-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
}

.tech-table tbody tr:hover {
    background: rgba(157, 78, 221, 0.05); /* Hover Roxo Suave */
    color: white;
}

/* Status Badges na Tabela */
.status-badge {
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: bold;
}
.status-active { background: rgba(0, 255, 65, 0.1); color: var(--data-green); border: 1px solid var(--data-green); }
.status-inactive { background: rgba(255, 0, 0, 0.1); color: #ff4444; border: 1px solid #ff4444; }

/* Gráficos */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* --- MOBILE NAV (CORREÇÃO DE VISIBILIDADE) --- */
.mobile-nav {
    display: none; /* Oculto por padrão (Desktop) */
    position: fixed;
    top: 70px; /* Altura exata do header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    z-index: 990; /* Abaixo do Header (1000) */
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block; /* Visível apenas quando ativado pelo JS */
}

/* --- PREVIEW BOX COM TELA REAL --- */
.plugin-preview-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: transparent; /* Removemos o fundo preto pois teremos imagens */
    border: none; /* Removemos a borda do container, a borda será na imagem se precisar */
    padding-top: 0; /* Remove padding que forçava aspecto quadrado se houver */
    height: auto; /* Altura automática baseada na imagem do macbook */
}

/* Container relativo para manter a proporção */
.macbook-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Limite de largura para não estourar */
    margin: 0 auto;
}

/* A imagem do Macbook (Base) */
.macbook-base {
    width: 100%;
    display: block;
    filter: contrast(1.1) grayscale(0.5); /* Efeito industrial */
    z-index: 1;
    position: relative;
}

/* A tela do plugin (Overlay) */
.plugin-screen-img {
    position: absolute;
    /* Ajuste fino para encaixar no macbook-30.png */
    top: 6%;       
    left: 12.5%;
    width: 75%;
    height: auto; 
    /* ----------------------------------------- */
    z-index: 2;
    mix-blend-mode: normal; /* Normal para ver as cores reais do plugin */
    border-radius: 2px; /* Leve arredondamento para encaixar na tela */
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Sombra interna simulada */
}

/* Overlay de "Sem Imagem" (Caso não ache o JPG) */
.no-image-overlay {
    position: absolute;
    top: 6%; left: 12.5%; width: 75%; height: 64%; /* Altura aproximada da tela */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    z-index: 2;
}

 /* Estilos Locais para garantir a sobreposição correta */
    .loading-overlay-custom {
        display: none; /* Controlado via JS */
        position: fixed;
        z-index: 9999; /* Máxima prioridade */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(5, 5, 5, 0.75); /* Quase sólido */
        backdrop-filter: blur(10px);
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .loading-overlay-custom.active {
        display: flex;
    }

    .loading-box {
        text-align: center;
        width: 100%;
        max-width: 500px;
        padding: 40px;
        background: rgba(0, 0, 0, 0);
        position: relative;
    }

    .loading-logo-custom {
        height: 300px;
        width: auto;
        margin-bottom: 30px;
    }
    @keyframes pulseLogo { 0% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0.8; } }

    .loading-text-custom {
        font-family: 'JetBrains Mono', monospace;
        color: var(--data-green);
        font-size: 1.2rem;
        min-height: 1.5em; /* Evita pulo de layout */
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .warning-text {
        font-family: 'Chakra Petch', sans-serif;
        color: #666;
        font-size: 0.8rem;
        margin-top: 20px;
        border-top: 1px dashed #333;
        padding-top: 15px;
    }

    /* Barra de Progresso Indeterminada */
    .loader-bar {
        width: 100%;
        height: 4px;
        background: #111;
        position: relative;
        overflow: hidden;
        margin-bottom: 20px;
    }
    .loader-bar::before {
        content: "";
        position: absolute;
        left: -50%;
        width: 50%;
        height: 100%;
        background: var(--data-green);
        animation: load 1.5s infinite ease-in-out;
    }
    @keyframes load { 0% { left: -50%; } 100% { left: 100%; } }

    /* --- BACKGROUND CUBES (TECH STYLE) --- */
.bg-cube-wrapper { position: absolute; }

.bg-cube {
    width: var(--bg-cube-size, 50px);
    height: var(--bg-cube-size, 50px);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.bg-cube-rotator {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Faces do Cubo */
.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.05);
    opacity: 0.5;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }
.cube-face.back   { transform: rotateY(180deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }
.cube-face.right  { transform: rotateY(90deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }
.cube-face.top    { transform: rotateX(90deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--bg-cube-size, 50px) / 2)); }

/* Animações */
@keyframes anim-rotate1 {
    0% { transform: rotate3d(1, 1, 1, 0deg); }
    100% { transform: rotate3d(1, 1, 1, 360deg); }
}
@keyframes anim-rotate2 {
    0% { transform: rotate3d(1, -1, 0, 0deg); }
    100% { transform: rotate3d(1, -1, 0, -360deg); }
}
@keyframes anim-float {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    50% { transform: translateY(-20px) rotateZ(5deg); }
}

.anim-rotate1 { animation: anim-rotate1 linear infinite; }
.anim-rotate2 { animation: anim-rotate2 linear infinite; }
.anim-float { animation: anim-float ease-in-out infinite; }

/* Estilo para o Relatório da IA */
.ai-report-box {
    background-color: rgba(0, 0, 0, 0.2); /* Fundo escuro sutil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #7d00ff; /* Borda roxa para destacar (Identidade AI) */
    border-radius: 6px;
    padding: 15px;
    margin: 20px auto; /* Espaçamento vertical */
    max-width: 800px; /* Largura máxima para leitura confortável */
    text-align: left;
    font-family: 'Courier New', Courier, monospace; /* Fonte monoespaçada estilo código */
    position: relative;
}

.ai-report-title {
    color: #a56eff; /* Tom lilás claro */
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-report-content {
    color: #e0e0e0; /* Texto quase branco */
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line; /* Respeita as quebras de linha que a IA gerou */
}

.ai-report-icon {
    font-size: 14px;
}