/* ============================================================
   MaisZapp — Estilos Customizados
   Complementa o Tailwind CSS CDN com variáveis de tema,
   componentes específicos e animações.
   ============================================================ */

/* ============================================================
   GOOGLE FONTS (carregado via HTML)
   ============================================================ */

/* ============================================================
   VARIÁVEIS DE TEMA
   ============================================================ */
:root {
    /* Cores primárias */
    --cor-primaria:      #7c3aed;
    --cor-primaria-hover: #6d28d9;
    --cor-primaria-claro: #ede9fe;
    --cor-secundaria:    #2563eb;
    --cor-acento:        #06b6d4;

    /* Gradientes */
    --gradiente-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --gradiente-card: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.05));
    --gradiente-btn:  linear-gradient(135deg, #7c3aed, #2563eb);

    /* Tema Escuro (padrão) */
    --bg-base:    #0a0a12;
    --bg-card:    #12121e;
    --bg-card2:   #1a1a2e;
    --bg-input:   #1e1e32;
    --bg-sidebar: #0d0d1a;

    --txt-primario:    #f1f0ff;
    --txt-secundario:  #a0a0c0;
    --txt-mudo:        #6060a0;

    --borda:      rgba(124,58,237,0.2);
    --borda-sutil: rgba(255,255,255,0.06);

    --sombra-card: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,58,237,0.1);
    --sombra-btn:  0 4px 15px rgba(124,58,237,0.35);

    /* Glassmorphism */
    --glass-bg:     rgba(18,18,30,0.8);
    --glass-borda:  rgba(124,58,237,0.25);
    --glass-blur:   blur(20px);
}

/* Tema Claro */
[data-tema="claro"] {
    --bg-base:    #f5f4ff;
    --bg-card:    #ffffff;
    --bg-card2:   #f0effe;
    --bg-input:   #f8f7ff;
    --bg-sidebar: #ffffff;

    --txt-primario:   #1a1040;
    --txt-secundario: #5040a0;
    --txt-mudo:       #9080c0;

    --borda:      rgba(124,58,237,0.25);
    --borda-sutil: rgba(124,58,237,0.1);

    --sombra-card: 0 2px 16px rgba(124,58,237,0.1), 0 0 0 1px rgba(124,58,237,0.08);
    --glass-bg:    rgba(255,255,255,0.9);
    --glass-borda: rgba(124,58,237,0.2);
}

/* ============================================================
   RESET E BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--txt-primario);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background-color: rgba(124,58,237,0.35);
    color: #fff;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--cor-primaria); border-radius: 999px; }

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-borda);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--borda-sutil);
    border-radius: 16px;
    box-shadow: var(--sombra-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2);
}

.card-stat {
    background: var(--gradiente-card);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn-primario {
    background: var(--gradiente-btn);
    color: #fff;
    box-shadow: var(--sombra-btn);
}

.btn-primario:hover {
    box-shadow: 0 6px 24px rgba(124,58,237,0.5);
    transform: translateY(-1px);
}

.btn-secundario {
    background: var(--bg-input);
    color: var(--txt-primario);
    border: 1px solid var(--borda);
}

.btn-secundario:hover {
    background: var(--bg-card2);
    border-color: var(--cor-primaria);
}

.btn-fantasma {
    background: transparent;
    color: var(--cor-primaria);
    border: 1px solid var(--cor-primaria);
}

.btn-fantasma:hover {
    background: rgba(124,58,237,0.1);
}

.btn-perigo {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.btn-perigo:hover {
    box-shadow: 0 4px 15px rgba(220,38,38,0.4);
    transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.campo-form {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1px solid var(--borda);
    border-radius: 10px;
    color: var(--txt-primario);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.campo-form:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.campo-form::placeholder { color: var(--txt-mudo); }

.campo-form.erro-campo { border-color: #ef4444; }
.campo-form.erro-campo:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

.label-form {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-secundario);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ============================================================
   SIDEBAR DO PAINEL
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--borda-sutil);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--borda-sutil);
}

.sidebar-logo .logo-texto {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradiente-btn);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sidebar-nav { flex: 1; padding: 16px 12px; }

.sidebar-secao-titulo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--txt-mudo);
    padding: 12px 8px 6px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--txt-secundario);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(124,58,237,0.1);
    color: var(--txt-primario);
}

.sidebar-item.ativo {
    background: rgba(124,58,237,0.15);
    color: #c4b5fd;
    font-weight: 600;
}

.sidebar-item.ativo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--cor-primaria);
    border-radius: 0 3px 3px 0;
}

.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-badge {
    margin-left: auto;
    background: var(--cor-primaria);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--borda-sutil);
}

.sidebar-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-usuario:hover { background: rgba(124,58,237,0.1); }

/* ============================================================
   TOPBAR DO PAINEL
   ============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--borda-sutil);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 90;
}

/* ============================================================
   CONTEÚDO PRINCIPAL
   ============================================================ */
.conteudo-principal {
    margin-left: 260px;
    padding-top: 64px;
    min-height: 100vh;
}

.pagina-container {
    padding: 32px 28px;
    max-width: 1600px;
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: var(--gradiente-btn);
}

.avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-roxo   { background: rgba(124,58,237,0.2); color: #c4b5fd; }
.badge-verde  { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.badge-amarelo { background: rgba(245,158,11,0.2); color: #fcd34d; }
.badge-vermelho { background: rgba(239,68,68,0.2); color: #fca5a5; }
.badge-azul   { background: rgba(37,99,235,0.2);  color: #93c5fd; }
.badge-cinza  { background: rgba(107,114,128,0.2); color: #9ca3af; }
.badge-ciano  { background: rgba(6,182,212,0.2);  color: #67e8f9; }

/* ============================================================
   TABELAS
   ============================================================ */
.tabela-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--borda-sutil);
}

.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela thead { background: var(--bg-card2); }

.tabela th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--txt-mudo);
    white-space: nowrap;
}

.tabela td {
    padding: 14px 16px;
    border-top: 1px solid var(--borda-sutil);
    color: var(--txt-primario);
}

.tabela tbody tr {
    transition: background 0.15s ease;
}

.tabela tbody tr:hover { background: rgba(124,58,237,0.04); }

/* ============================================================
   KANBAN
   ============================================================ */
.kanban-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.kanban-coluna {
    flex-shrink: 0;
    width: 280px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--borda-sutil);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.kanban-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--borda-sutil);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-radius: 14px 14px 0 0;
}

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.kanban-card {
    background: var(--bg-card2);
    border: 1px solid var(--borda-sutil);
    border-radius: 10px;
    padding: 14px;
    cursor: grab;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    border-color: var(--cor-primaria);
    box-shadow: 0 4px 12px rgba(124,58,237,0.2);
    transform: translateY(-1px);
}

.kanban-card.sortable-ghost {
    opacity: 0.4;
    background: rgba(124,58,237,0.1);
}

/* ============================================================
   CHAT / CONVERSAS
   ============================================================ */
.chat-container {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.chat-lista {
    border-right: 1px solid var(--borda-sutil);
    overflow-y: auto;
    background: var(--bg-sidebar);
}

.chat-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--borda-sutil);
    transition: background 0.15s ease;
}

.chat-item:hover     { background: rgba(124,58,237,0.05); }
.chat-item.ativo     { background: rgba(124,58,237,0.12); border-right: 3px solid var(--cor-primaria); }

.chat-janela {
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
}

.chat-mensagens {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.balao {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.balao-entrada {
    align-self: flex-start;
    background: var(--bg-card2);
    border: 1px solid var(--borda-sutil);
    border-bottom-left-radius: 4px;
}

.balao-saida {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--borda-sutil);
    background: var(--bg-card);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* ============================================================
   STATUS INDICATORS
   ============================================================ */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online   { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-dot.ocupado  { background: #f59e0b; }
.status-dot.offline  { background: #6b7280; }
.status-dot.ia       { background: var(--cor-primaria); box-shadow: 0 0 6px var(--cor-primaria); }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.animar-entrada { animation: fadeInUp 0.5s ease forwards; }
.animar-fade    { animation: fadeIn 0.3s ease forwards; }
.animar-float   { animation: float 4s ease-in-out infinite; }

/* Delay de animações para cards em sequência */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card2) 25%,
        var(--bg-input) 50%,
        var(--bg-card2) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

/* ============================================================
   TOAST / ALERTAS
   ============================================================ */
.alerta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    border: 1px solid;
    animation: fadeInUp 0.3s ease;
}

.alerta-sucesso  { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alerta-erro     { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alerta-aviso    { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alerta-info     { background: rgba(37,99,235,0.1);  border-color: rgba(37,99,235,0.3);  color: #93c5fd; }

/* ============================================================
   TOOLTIP
   ============================================================ */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #f1f0ff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid var(--borda);
    z-index: 1000;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 1000;
    animation: fadeInUp 0.15s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--txt-primario);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover { background: rgba(124,58,237,0.1); }
.dropdown-item.perigo { color: #f87171; }
.dropdown-item.perigo:hover { background: rgba(239,68,68,0.1); }
.dropdown-separador { height: 1px; background: var(--borda-sutil); margin: 4px 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: fadeInUp 0.25s ease;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-body    { padding: 0 24px; }
.modal-footer  { padding: 20px 24px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.paginacao {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagina-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--borda);
    background: var(--bg-input);
    color: var(--txt-secundario);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagina-btn:hover { border-color: var(--cor-primaria); color: var(--cor-primaria); }
.pagina-btn.ativa { background: var(--cor-primaria); color: #fff; border-color: var(--cor-primaria); }
.pagina-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   SWITCH TOGGLE
   ============================================================ */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--borda);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.switch input:checked + .switch-slider {
    background: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.aberta {
        transform: translateX(0);
    }

    .topbar {
        left: 0;
    }

    .conteudo-principal {
        margin-left: 0;
    }

    .chat-container {
        grid-template-columns: 280px 1fr;
    }

    .chat-painel-lead { display: none; }
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-lista { display: none; }
    .chat-lista.aberta { display: block; }

    .pagina-container { padding: 20px 16px; }

    .kanban-container { grid-template-columns: 1fr; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.hero-bg {
    background: var(--gradiente-hero);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 60%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.nav-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.nav-landing.rolado {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-borda);
}

.gradient-text {
    background: linear-gradient(135deg, #c4b5fd, #818cf8, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card {
    background: var(--gradiente-card);
    border: 1px solid var(--glass-borda);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--cor-primaria);
    box-shadow: 0 16px 40px rgba(124,58,237,0.25);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.plano-card {
    background: var(--bg-card);
    border: 1px solid var(--borda-sutil);
    border-radius: 24px;
    padding: 36px 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plano-card.destaque {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 40px rgba(124,58,237,0.25);
    transform: scale(1.03);
}

.plano-card:hover {
    border-color: var(--cor-primaria);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 50px rgba(124,58,237,0.2);
}

.plano-card.destaque:hover {
    transform: scale(1.05) translateY(-4px);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-numero {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradiente-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--sombra-btn);
}

/* ============================================================
   UTILITÁRIOS EXTRAS
   ============================================================ */
.text-gradient { background: var(--gradiente-btn); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-card      { background: var(--bg-card); }
.bg-card2     { background: var(--bg-card2); }
.bg-input     { background: var(--bg-input); }
.txt-primario { color: var(--txt-primario); }
.txt-sec      { color: var(--txt-secundario); }
.txt-mudo     { color: var(--txt-mudo); }
.borda-sutil  { border-color: var(--borda-sutil); }

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.separador { height: 1px; background: var(--borda-sutil); }

/* ============================================================
   MODAIS GLOBAIS (Overlay + Box)
   ============================================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: mzFadeIn 0.2s ease;
}

.modal-conteudo {
    background: var(--bg-card);
    border: 1px solid var(--borda-sutil);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: mzSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--borda-sutil);
    padding-bottom: 16px;
}

.modal-cabecalho h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--txt-primario);
    letter-spacing: -0.02em;
}

.modal-fechar {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--txt-mudo);
    cursor: pointer;
    transition: color 0.15s;
}

.modal-fechar:hover {
    color: #ef4444;
}

@keyframes mzFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mzSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FORMULÁRIOS E INPUTS GLOBAIS
   ============================================================ */
.label-form {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-secundario);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.campo-form {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--borda-sutil);
    border-radius: 10px;
    color: var(--txt-primario);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo-form:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.campo-form::placeholder {
    color: var(--txt-mudo);
}

/* Switch Toggle */
.switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--borda-sutil);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .switch-slider {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

