/* ==========================================================================
   STYLE MASTER - FACILITY.IA (CONSOLIDADO)
   Este arquivo une os estilos do index.html e do styles.css original.
   ========================================================================== */

/* --- 1. VARIÁVEIS E BASE (Fundido) --- */
:root {
    /* Variáveis Visuais Principais (Vindas do index.html) */
    --header-height: 70px;
    --neon-green: #00ff88;
    --dark-bg: #0d1117;
    --glass-bg: rgba(13, 17, 23, 0.90);

    /* Cores Auxiliares (Vindas do styles.css para componentes internos) */
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --bg-deep: #050507;
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* Reset Básico */
* {
    box-sizing: border-box;
    outline: none;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Fundo e Partículas */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 10%, #1a1a2e 0%, var(--bg-deep) 70%);
}

.scanline {
    display: none;
}


/* --- 2. ESTRUTURA PRINCIPAL (Vinda do index.html) --- */
/* Preserva exatamente o layout do Header e Espaçamentos atuais */

main {
    padding-top: calc(var(--header-height) + 40px);
    /* Espaço para não ficar atrás do header */
}

/* Header Glassmorphism Premium */
header.header-glass {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: auto;
    min-height: var(--header-height);
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    padding: 15px 0;
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.badge-beta {
    font-size: 0.6rem;
    padding: 2px 8px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    margin-left: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Navegação Fluida */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: var(--neon-green);
    background: rgba(255, 255, 255, 0.05);
}

/* Botão Entrar / CTA */
.nav-menu .cta-button,
.cta-button {
    background: var(--neon-green);
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
}

.cta-button-primary {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #009966 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    display: inline-block;
    text-align: center;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}


/* --- 3. COMPONENTES E INTERFACE (Cards, Inputs, Switch) --- */

/* Hero Typography */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    width: 100%;
}

.hero-content h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efeito de Digitação */
#typing-text {
    min-height: 1.2em;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#typing-text::after {
    content: '|';
    margin-left: 5px;
    color: var(--neon-green);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Stats Grid */
.stats-grid {
    display: inline-flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    padding: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Switch / Toggle Cards */
.switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.switch-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.switch-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.switch-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.backend-note {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 8px;
    opacity: 0;
    transition: 0.3s;
}

/* O Botão Switch em si */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Agente Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
}

.agente-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
    width: 260px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.agente-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.agente-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.agente-card h4 {
    margin: 0 0 10px 0;
    color: white;
}

.agente-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.card-status {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-btn {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 0;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.card-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Busca de Profissões e Autocomplete */
.universal-box {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: default;
}

.input-search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.input-profession {
    width: 100%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: #0f1115;
    color: white;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-activate {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    color: black;
    border: none;
    padding: 13px 30px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Autocomplete Dropdown */
.texto-centralizado {
    text-align: center;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 15px 15px;
    display: none;
    text-align: left;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.autocomplete-item:hover {
    background: var(--neon-green);
    color: #000;
    font-weight: bold;
}

/* Chat Window e Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: 0.3s;
}

.chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: #161b22;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    z-index: 999;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: var(--primary);
    color: black;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #333;
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
}

/* Footer Desktop Padrão */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 5%;
    margin-top: 80px;
    background: #020203;
    color: #666;
    font-size: 0.85rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-grid .footer-col {
    flex: 1;
}

.footer-col h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #111;
}


/* --- 4. AJUSTES GERAIS MOBILE --- */



/* --- FIX DE ANIMAÇÕES (Necessário para o script.js funcionar) --- */
.animate-slide-up {
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Garante que o cursor pisque mesmo se o JS falhar */
#typing-text {
    min-height: 1.5em;
    /* Reserva espaço para o texto não pular */
    display: inline-block;
}

/* ==========================================================================
   ESTILOS INTERNOS (Dashboard, Admin, Perfil)
   Adicione isso ao FINAL do style-master.css
   ========================================================================== */

/* --- VARIÁVEIS DO DASHBOARD --- */
:root {
    --sidebar-width: 260px;
    --header-mobile-height: 60px;
    --card-bg: #161b22;
    --warning: #ffcc00;
    --danger: #ff5555;
}

/* --- LAYOUT SIDEBAR --- */
.layout {
    display: flex;
    min-height: 100vh;
    /* FIX AZURE: impede que filhos com width:100% + margin-left causem overflow horizontal */
    overflow-x: hidden;
    max-width: 100vw;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 12, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    padding: 0;
    text-align: left;
    border: none;
}

.sidebar .logo span {
    color: var(--primary);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 5px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-btn.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-btn i {
    width: 20px;
    text-align: center;
}

.spacer {
    flex: 1;
    min-height: 20px;
}

/* Mini Perfil na Sidebar */
.user-mini {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.user-mini:hover {
    background: rgba(255, 255, 255, 0.05);
}

.avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, #009966 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* --- CONTEÚDO PRINCIPAL (DASHBOARD) --- */
.content {
    margin-left: var(--sidebar-width);
    padding: 40px;
    /* FIX AZURE: width: 100% dentro de flex pode somar com margin-left e vazar a viewport.
       Usar calc() garante que a soma nunca ultrapasse 100vw em qualquer ambiente de servidor. */
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    box-sizing: border-box;
    overflow-x: hidden;
    padding-top: 40px;
    /* Reset do padding do index */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #888;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(5, 5, 7, 0.9) 100%), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 2rem;
    color: white;
    margin: 0 0 10px 0;
}

.hero-desc {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 600px;
}

.hero-btn {
    background: var(--primary);
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Tabs de Categoria */
.category-tabs,
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab,
.pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 20px;
    color: #ccc;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    user-select: none;
    font-size: 0.9rem;
}

.cat-tab.active,
.pill.active,
.cat-tab:hover,
.pill:hover {
    background: white;
    color: black;
    border-color: white;
}

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Grid de Apps (Dashboard & Escolher Agente) */
.card-grid,
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    /* FIX AZURE: garante que o grid nunca ultrapasse o container pai em nenhum servidor */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.app-card,
.agent-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    align-items: flex-start;
    animation: fadeIn 0.5s ease;
    /* FIX AZURE: impede que min-width implícito do flex/grid expanda além do container */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.agent-card {
    align-items: center;
    text-align: center;
}

/* Centralizado na tela de escolha */

.app-card:hover,
.agent-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon,
.agent-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.agent-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.card-title,
.agent-name {
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.card-desc,
.agent-desc {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
    flex: 1;
}

.card-arrow {
    align-self: flex-end;
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.5;
    transition: 0.3s;
    transform: translateX(0);
}

.app-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Cores dos Ícones */
.icon-juridico,
.area-juridico .agent-icon {
    color: #bd93f9;
}

.icon-saude,
.area-saude .agent-icon {
    color: #ff5555;
}

.icon-tech,
.area-tech .agent-icon {
    color: #00ccff;
}

.icon-engenharia,
.area-engenharia .agent-icon {
    color: #ffcc00;
}

/* Operacional */
.icon-operacional,
.area-operacional .agent-icon {
    color: #EC4E3A;
}

div.icon-operacional,
div.area-operacional .agent-icon {
    background: linear-gradient(135deg, #EC4E3A 0%, #7B1C1C 100%) !important;
    color: white !important;
    box-shadow: 0 8px 15px -3px rgba(236, 78, 58, 0.4) !important;
}

div.icon-operacional i, div.area-operacional .agent-icon i {
    color: white !important;
}

/* Mobile Header (Interno) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-mobile-height);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.menu-trigger {
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.mobile-title {
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVIDADE PAINEL */

/* ==========================================================================
   ESTILOS ESPECÍFICOS (Admin, Perfil, Treinamento)
   Adicionado para manter o visual original sem sujar o HTML.
   ========================================================================== */

/* --- ADMIN: Tabela e Modal --- */
.table-container {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #ccc;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #161b22;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #333;
}

.modal-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #0d1117;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

/* --- PERFIL: Card e Avatar --- */
.profile-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
}

.profile-avatar-large {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: black;
    border: 4px solid #161b22;
    background-size: cover;
    background-position: center;
}

.camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    color: black;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* --- TREINAMENTO: Upload Zone (Tema Ciano) --- */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: 0.3s;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover {
    border-color: #00F3FF;
    background: rgba(0, 243, 255, 0.05);
}

.file-info-badge {
    background: rgba(0, 243, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00F3FF;
    margin-top: 20px;
}

/* ==========================================================================
   ESTILOS DE AUTENTICAÇÃO (Login / Cadastro)
   ========================================================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.6s ease-out;
}

/* Efeito de borda brilhante no topo */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.auth-logo span {
    color: var(--primary);
}

.auth-subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Inputs do Login */
.auth-input-group {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}

.auth-input-group label {
    display: block;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 8px;
    margin-left: 5px;
}

.auth-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
    background: #161b22;
}

.auth-icon {
    position: absolute;
    left: 15px;
    top: 42px;
    color: #666;
}

/* Botões Auth */
.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.btn-auth:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.feedback-msg {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* ==========================================================================
   ESTILOS DE APOIO (Planos, Checkout, Prompts)
   ========================================================================== */

/* ==========================================================================
   ESTILOS ESPECÍFICOS: PLANOS (Restaurado do Original)
   ========================================================================== */

.pricing-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pricing-header p {
    color: #888;
    margin-bottom: 40px;
}

/* Toggle de Ciclo (Slider Premium) */
.billing-cycle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.toggle-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px;
    display: inline-flex;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-option {
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #aaa;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.toggle-option.active {
    color: #000;
}

.slider-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: var(--primary);
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.4);
    width: 0;
    /* JS define a largura */
}

/* Badges de Desconto (Animação Bounce) */
.discount-badge {
    position: absolute;
    top: -15px;
    right: -5px;
    background: #ff0055;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    animation: bounce 2s infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-10 {
    background: #ff9900;
    animation-delay: 1s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Grid de Preços Original */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: left;
    transition: 0.3s;
    position: relative;
    display: block;
    /* Reset do flex anterior */
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    background: rgba(0, 255, 136, 0.03);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    margin-top: 0;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    transition: 0.2s;
}

.price span {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}

.price-subtext {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    height: 20px;
}

.plan-desc {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: var(--primary);
}

.disabled {
    color: #555;
    text-decoration: line-through;
}

.disabled span {
    color: #555;
}

.btn-price {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-top: 0;
}

.btn-price:hover {
    background: #fff;
    color: #000;
    transform: none;
}

.featured .btn-price {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.featured .btn-price:hover {
    background: #fff;
    box-shadow: none;
}

/* Responsividade Mobile Específica */


/* --- MEUS PROMPTS --- */
.prompt-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
}

.prompt-card:hover {
    border-color: var(--primary);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: 0.3s;
}

.prompt-card:hover .prompt-actions {
    opacity: 1;
}

.prompt-text {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-prompt-card {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    min-height: 200px;
}

.add-prompt-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
}

/* --- CHECKOUT --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.gateway-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
    margin-bottom: 15px;
}

.gateway-card:hover {
    border-color: #666;
}

.gateway-card.active {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-card.active .radio-circle {
    border-color: var(--primary);
}

.gateway-card.active .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.summary-card {
    background: #161b22;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #ccc;
}

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}


/* ==========================================================================
   ESTILOS CHAT WORKSTATION (ORIGINAL RESTAURADO)
   Este bloco isola o chat do resto do site para manter o visual exato.
   ========================================================================== */

/* Reseta influências globais do style-master.css APENAS no chat */
body.chat-mode {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #050507 !important;
    font-family: 'Segoe UI', sans-serif !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Zera o padding-top que o site coloca no <main> (Isso conserta a barra sumindo) */
body.chat-mode main {
    padding-top: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    display: block !important;
}

/* --- Layout Principal --- */
.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Específica */
.chat-layout .sidebar {
    background: rgba(15, 17, 21, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 20;
    transition: 0.3s ease-in-out;
    position: relative;
    /* Garante que não flutue errado */
    box-shadow: none;
}



/* Componentes do Histórico */
.new-chat-btn {
    background: rgba(0, 255, 136, 0.05);
    border: 1px dashed var(--primary);
    color: var(--primary);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 25px;
}

.new-chat-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.history-item {
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    color: #a0a0b0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.history-item.active {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.08), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.delete-chat-btn {
    position: absolute;
    right: 10px;
    color: #ff5555;
    background: #161b22;
    padding: 5px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.3s;
}

.history-item:hover .delete-chat-btn {
    opacity: 1;
}

/* Interface do Chat */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background: transparent;
}

.chat-header-bar {
    min-height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 30px;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.active-modules-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.module-badge {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Área de Mensagens */
.messages-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 800px;
    animation: slideIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-bubble {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 40px;
    display: block;
    word-break: break-word;
    white-space: pre-wrap;
}

.ai .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
    border-top-left-radius: 0;
}

.user .msg-bubble {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: white;
    border-top-right-radius: 0;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Wrapper (Barra de Conversa) */
.input-wrapper {
    padding: 20px 30px;
    background: #050507;
    z-index: 10;
}

.input-box-styled {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: 0.3s;
}

.input-box-styled:focus-within {
    border-color: var(--primary);
}

.input-container {
    padding: 10px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* Reset crucial para o textarea */
.input-container textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    resize: none;
    height: 45px;
    padding: 10px;
    font-family: inherit;
    outline: none;
    min-height: auto;
    /* Evita herança */
}

.action-icon {
    padding: 10px;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.action-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.action-icon.recording {
    color: #ff5555;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 85, 85, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 85, 85, 0);
    }
}

/* Menus Flutuantes */
.floating-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 220px;
    display: none;
    z-index: 100;
    padding: 5px;
}

.menu-option {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
}

.menu-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.floating-panel {
    position: absolute;
    bottom: 75px;
    left: 20px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(22, 27, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: none;
    z-index: 200;
}

.panel-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.prompt-switch-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mini-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.mini-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mini-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.mini-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.mini-slider {
    background-color: var(--primary);
}

input:checked+.mini-slider:before {
    transform: translateX(18px);
}

/* Anexos */
.attachments-preview {
    display: flex;
    gap: 10px;
    padding: 10px 15px 0 15px;
    flex-wrap: wrap;
}

.attachment-chip {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #ccc;
}

/* ==========================================================================
   ESTILOS DE CADASTRO (Steps & Verificação)
   ========================================================================== */

/* Animação de troca de passo */
#step-verify {
    display: none;
    animation: fadeIn 0.5s ease;
}

/* Badge de "Código Enviado" */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Link de voltar discreto */
.back-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-top: 25px;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

/* Input de código centralizado */
.input-code {
    letter-spacing: 5px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS: PÁGINA "COMO FUNCIONA" (PROMPTS)
   ========================================================================== */

/* Ajuste do conteúdo para não ficar atrás do header fixo */
.page-prompts main {
    padding-top: calc(70px + 40px);
    /* 70px é header height */
}

/* --- Explainer Section (Topo) --- */
.explainer-section {
    text-align: center;
    max-width: 600px;
    margin: 40px auto 40px auto;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.explainer-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.explainer-text {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.steps-visual {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #666;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-arrow {
    align-self: center;
    color: #444;
}

/* --- Tabs (Pills) --- */
.nav-pills {
    display: flex;
    gap: 15px;
    margin: 0 auto 30px auto;
    background: #161b22;
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.pill {
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.pill.active {
    background: var(--primary);
    color: #000;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* --- Demo Blocks (Pipelines) --- */
.pipeline-container {
    display: none;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

.pipeline-container.active {
    display: flex;
}

.demo-block {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    position: relative;
}

.block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.block-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Grid do Fluxo */
.flow-grid {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.col-user {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Switch Demo Específico */
.switch-demo {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch-demo input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-demo {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider-demo:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider-demo {
    background-color: var(--primary);
}

input:checked+.slider-demo:before {
    transform: translateX(26px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Coluna Processamento */
.col-process {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.process-visual {
    display: flex;
    gap: 10px;
    opacity: 0.2;
    transition: 0.5s;
}

.prompt-chip {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    white-space: nowrap;
    transform: scale(0.9);
}

.col-process.active {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
}

.col-process.active .process-visual {
    opacity: 1;
}

.col-process.active .prompt-chip {
    animation: chipPulse 1.5s infinite alternate;
}

.col-process.active .prompt-chip:nth-child(2) {
    animation-delay: 0.2s;
}

.col-process.active .prompt-chip:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chipPulse {
    from {
        transform: scale(0.9);
        box-shadow: 0 0 0 transparent;
    }

    to {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
    }
}

/* Coluna Resultado */
.col-result {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-mini {
    width: 50px;
    height: 65px;
    background: #fff;
    border-radius: 4px;
    position: relative;
    transform: translateY(10px);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.doc-mini::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 5px;
    right: 5px;
    height: 3px;
    background: #ddd;
}

.doc-mini::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 5px;
    right: 15px;
    height: 3px;
    background: #ddd;
    box-shadow: 0 6px 0 #ddd, 0 12px 0 #ddd;
}

.check-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    transform: scale(0);
    transition: 0.3s 0.6s;
}

.col-result.active .doc-mini {
    transform: translateY(0);
    opacity: 1;
}

.col-result.active .check-badge {
    transform: scale(1);
}

/* ==========================================================================
   PIPELINE VISUAL PREMIUM
   ========================================================================== */

/* Layout principal do pipeline */
.flow-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 15px 10px;
    position: relative;
}

/* Cada estágio do pipeline */
.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.stage-trigger {
    width: 80px;
}

.stage-process {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.stage-result {
    width: 80px;
}

/* Ícone circular de cada estágio */
.stage-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #555;
    transition: all 0.4s ease;
}

/* Ícone do trigger quando ativo */
.demo-block.active .stage-trigger .stage-icon-wrap {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.25);
}

/* Ícone de processamento */
.process-icon {
    color: #555;
}

.stage-process.active .process-icon {
    border-color: var(--accent, var(--primary));
    color: var(--accent, var(--primary));
    background: rgba(0, 255, 136, 0.06);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.2);
    animation: iconSpin 2s ease-in-out infinite;
}

.stage-process.active .process-icon i {
    animation: none;
}

@keyframes iconSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

/* Ícone de resultado */
.result-icon {
    color: #555;
}

.stage-result.active .result-icon {
    border-color: #2ecc71;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.3);
    animation: resultBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- CONECTORES COM ENERGY PULSE --- */
.pipeline-connector {
    flex: 0 0 auto;
    width: 40px;
    height: 4px;
    position: relative;
    z-index: 1;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.energy-pulse {
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.energy-pulse.active {
    width: 100%;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }
}

/* --- STAGE LABELS --- */
.stage-label {
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.label-active {
    color: var(--primary) !important;
    font-weight: 600;
}

.label-processing {
    color: #ffc107 !important;
    animation: labelBlink 1s ease-in-out infinite;
}

.label-done {
    color: #2ecc71 !important;
    font-weight: 600;
}

@keyframes labelBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* --- PROMPT CHIPS ENHANCED --- */
.stage-process .prompt-chip {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prompt-chip.chip-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stage-process.active .process-visual {
    opacity: 1;
}

.stage-process .process-visual {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

/* --- DEMO BLOCK ACTIVE GLOW --- */
.demo-block {
    transition: all 0.5s ease;
}

.demo-block.active {
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.06), inset 0 0 30px rgba(0, 255, 136, 0.02);
}

/* Shimmer effect quando processando */
.demo-block.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.03), transparent);
    animation: shimmerSweep 3s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

@keyframes shimmerSweep {
    0% {
        left: -60%;
    }

    100% {
        left: 160%;
    }
}

/* --- Comparação (Agentes) --- */
.agent-explainer-section {
    padding: 50px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.comparison-box {
    background: #121212;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    width: 45%;
    text-align: left;
}

.comparison-box.specialized {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.comparison-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.connector-arrow {
    color: #555;
    font-size: 1.5rem;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pro-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Feature Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: white;
    margin-bottom: 10px;
}

.feature-item p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsividade Específica Prompts */

/* --- RESPONSIVIDADE MOBILE DO CHAT (Adicione ao final do style-master.css) --- */

/* ==========================================================================
   ATUALIZAÇÃO: VISUAL GEMINI + BOTÃO COPIAR
   Cole isso no FINAL do style-master.css
   ========================================================================== */

/* Ajuste fino nas mensagens para permitir o botão */
.message-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* O texto da IA */
.ai-message .message-bubble {
    background: transparent !important;
    padding: 0 !important;
    color: #e3e3e3 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Botão de Copiar (Estilo Gemini) */
.action-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    opacity: 0;
    /* Invisível por padrão */
    transition: opacity 0.2s ease-in-out;
}

/* Só mostra os ícones quando passa o mouse na mensagem inteira */
.message-row:hover .action-row {
    opacity: 1;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    /* Seu verde neon */
}

/* Ajuste da bolha do usuário para ficar redondinha */
.user-message .message-bubble {
    background: #2e2f33 !important;
    color: #fff !important;
    border-radius: 24px !important;
    padding: 12px 20px !important;
    border: none !important;
}

/* =========================================
   CORREÇÃO: TAMANHO DAS BARRAS
   Cole no final do style-master.css
   ========================================= */

/* 1. Arrumar a bolha da mensagem do usuário (para não esticar) */
.user-message {
    justify-content: flex-end;
    /* Garante que fique na direita */
}

.user-message .message-content-wrapper {
    width: auto !important;
    /* Remove a largura 100% que estava esticando */
    max-width: 85%;
    /* Limite máximo para não bater na esquerda */
    align-items: flex-end;
    /* Alinha os itens internos à direita */
}

.user-message .message-bubble {
    width: fit-content;
    /* O balão só ocupa o tamanho do texto */
    min-width: 50px;
    /* Tamanho mínimo estético */
    text-align: left;
    /* Texto sempre alinhado à esquerda dentro do balão */
    border-bottom-right-radius: 4px !important;
    /* Detalhe estético de canto */
}

/* 2. Diminuir a altura da barra de digitação (Input lá embaixo) */
.input-wrapper {
    padding: 10px 20px !important;
    /* Reduz o espaço em volta da barra verde */
}

.input-container {
    min-height: auto !important;
    /* Remove altura mínima forçada */
    padding: 5px 10px !important;
    /* Menos preenchimento interno */
}

.input-container textarea {
    height: auto;
    min-height: 38px !important;
    max-height: 300px !important;
    padding: 8px 0 !important;
    line-height: 20px;
    resize: none;
    overflow-y: hidden;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* Verde WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    /* Verde mais escuro ao passar o mouse */
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 255, 136, 0.4);
    /* Glow no estilo do seu site */
}

/* O Balão (Tooltip) */
.tooltip-bala {
    position: absolute;
    right: 75px;
    /* Posiciona à esquerda do botão */
    top: 50%;
    transform: translateY(-50%);
    background-color: #1a1a1a;
    /* Cor de fundo escura do seu tema */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    /* Invisível por padrão */
    visibility: hidden;
    transition: opacity 0.3s, right 0.3s;
    border: 1px solid #333;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Setinha do balão apontando para o botão */
.tooltip-bala::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    /* Encosta no botão */
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #1a1a1a;
}

/* Mostrar o balão quando passar o mouse */
.whatsapp-float:hover .tooltip-bala {
    opacity: 1;
    visibility: visible;
    right: 85px;
    /* Leve movimento para a esquerda para dar destaque */
}

/* --- INTERATIVIDADE MOBILE (Força o balão aparecer) --- */


/* --- Definição das Animações --- */
@keyframes slideInBaloon {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
        /* Vem da direita */
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
        /* Posição final */
    }
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Garante que os elementos observados pelo JS se tornem visíveis */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================================================
   NOVA INTERATIVIDADE MOBILE (PÁGINA INICIAL)
   ========================================================================== */
/* Esconde elementos mobile no Desktop */
.mobile-menu-btn,
.mobile-menu-header,
.mobile-nav-overlay {
    display: none;
}