/* VoltZap — identidade visual do painel (a mesma da página de venda). Carregado por último: manda no que vier antes.
   Fundo quase preto com grade e brilho que acompanha o mouse, gradiente menta → ciano → violeta, Sora nos títulos e botões, Inter Tight no texto (tipografia inspirada na ZapFy, 22/11/2026), cantos de 9px,
   cartões com foco de luz, entrada suave das páginas. Respeita "reduzir movimento" e some no tema claro onde atrapalharia. */

/* ---------- fundo vivo (criado por fundo.js) ---------- */
#fx { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.gridbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .3; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 85% 65% at 62% 0, #000 12%, transparent 72%); mask-image: radial-gradient(ellipse 85% 65% at 62% 0, #000 12%, transparent 72%); }
.glow { position: fixed; left: 0; top: 0; z-index: 0; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; filter: blur(110px); opacity: .15; background: radial-gradient(circle, var(--accent-2), transparent 65%); transform: translate(-50%, -50%); }
:root[data-tema=claro] #fx, :root[data-tema=claro] .gridbg, :root[data-tema=claro] .glow { display: none; }
#app, #entrada { position: relative; z-index: 1; background: transparent; }
:root[data-tema=claro] #app { background: var(--bg); }
#conteudo { background: transparent; }

/* ---------- tipografia ---------- */
body { font-family: var(--fonte); }
h1, h2, h3, h4, .cabeca h2 { font-family: var(--titulo); letter-spacing: -.025em; }
.cabeca h2 { font-weight: 700; }
.cabeca .sub, .sub-pagina { color: var(--muted); }
.mono, th { font-family: var(--mono); }
th { font-weight: 500; letter-spacing: .1em; font-size: 10.5px; }
.grad-texto { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: desliza 6s linear infinite; }
@keyframes desliza { to { background-position: 200% 0; } }

/* ---------- botões ---------- */
.btn { border-radius: var(--r-md); font-family: var(--titulo); font-size: 13px; font-weight: 600; letter-spacing: -.005em; transition: transform var(--rapido) var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s; }
.btn:hover { background: var(--card-2); border-color: var(--line-2); }
.btn.icone { border-radius: 50%; }
.btn.destaque { background: var(--grad); background-size: 200% 100%; border: 0; color: var(--on-accent); font-weight: 700; box-shadow: 0 10px 28px -10px rgba(37, 244, 160, .6); }
.btn.destaque:hover { background: var(--grad); background-size: 200% 100%; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(37, 244, 160, .8); color: var(--on-accent); }
.cabeca .btn.destaque { animation: pulso 3.2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 12px rgba(37, 244, 160, 0), 0 10px 28px -10px rgba(37, 244, 160, .6); } 100% { box-shadow: 0 0 0 0 rgba(37, 244, 160, 0), 0 10px 28px -10px rgba(37, 244, 160, .6); } }
.btn.primario { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
.btn.primario:hover { background: var(--grad); border-color: transparent; color: var(--on-accent); transform: translateY(-1px); }
.btn.perigo:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: var(--foco); }
input, select, textarea { border-radius: var(--r-md); }

/* ---------- cartões com foco de luz que segue o mouse ---------- */
.caixa, .wh, .kpi, .ag-sec { background-color: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sombra); transition: border-color .3s, transform .3s var(--ease), background-color .3s; }
.caixa:hover, .wh:hover, .kpi:hover, .ag-sec:hover { border-color: rgba(34, 211, 238, .34); background-image: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .11), transparent 62%); }
.kpi:hover, .wh:hover { transform: translateY(-2px); }
.kpi .kpi-ico { border-radius: 13px; }

/* ---------- menu lateral ---------- */
#lateral { background: linear-gradient(180deg, rgba(34, 211, 238, .06), transparent 240px), var(--side); border-right: 1px solid var(--side-line); }
.lat-marca { font-family: var(--titulo); font-weight: 700; letter-spacing: -.03em; }
.lat-marca svg { filter: drop-shadow(0 0 14px rgba(37, 244, 160, .45)); }
.lat-emp { border-radius: var(--r-lg); background: rgba(255, 255, 255, .035); }
.lat-av { background: var(--grad); color: var(--on-accent); }
#lateral .grupo { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--faint); display: flex; align-items: center; gap: 9px; }
#lateral .grupo::before { content: ''; width: 14px; height: 1px; background: var(--accent); opacity: .8; }
#lateral a { border-radius: var(--r-md); }
#lateral a:hover { background: var(--side-hover); }
#lateral a.ativo { background: linear-gradient(90deg, rgba(37, 244, 160, .15), rgba(34, 211, 238, .03)); box-shadow: inset 0 0 0 1px var(--accent-line); color: #fff; }
#lateral a.ativo::before { background: var(--grad); box-shadow: 0 0 14px rgba(37, 244, 160, .6); }
#lateral a.ativo .ic { color: var(--accent); }
#lateral a .num { background: var(--grad); color: var(--on-accent); }
#lateral a .breve { border-radius: var(--r-pill); font-family: var(--mono); font-size: 9.5px; color: var(--accent-ink); border-color: var(--accent-line); }
.pt.on { background: var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(37, 244, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 244, 160, 0); } }
.lat-acoes button { border-radius: var(--r-pill); }

/* ---------- selos, chips e avisos ---------- */
.badge, .chip, .etq { border-radius: var(--r-pill); }
.etq { background: var(--accent-soft); color: var(--accent-ink) !important; border-color: var(--accent-line); }
.item .bolinha, .c-abas button.ativo i { background: var(--grad); color: var(--on-accent); }
.toast { border-radius: var(--r-lg); border-left-color: var(--accent); backdrop-filter: blur(12px); }

/* ---------- entrada suave das páginas ---------- */
#pagina:not(.cheia) > * { animation: sobe .55s var(--ease) both; }
#pagina:not(.cheia) > *:nth-child(2) { animation-delay: .05s; } #pagina:not(.cheia) > *:nth-child(3) { animation-delay: .1s; } #pagina:not(.cheia) > *:nth-child(4) { animation-delay: .15s; } #pagina:not(.cheia) > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } }
.grade > *, .kpis > * { animation: sobe .6s var(--ease) both; } .grade > *:nth-child(2), .kpis > *:nth-child(2) { animation-delay: .06s; } .grade > *:nth-child(3), .kpis > *:nth-child(3) { animation-delay: .12s; } .grade > *:nth-child(n+4), .kpis > *:nth-child(n+4) { animation-delay: .18s; }

/* ---------- chats ---------- */
.item.ativo { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, rgba(37, 244, 160, .09), transparent); }

/* ---------- editor de fluxos: cores dos blocos na mesma paleta ---------- */
.c-inicio { background: #0e9f6e; } .c-texto { background: #0891b2; } .c-imagem { background: #6d4fe0; } .c-video { background: #8b5cf6; } .c-audio { background: #db2777; } .c-arquivo { background: #475569; }
.c-delay { background: #b7791f; } .c-aguarda { background: #c026d3; } .c-etiqueta { background: #0f9d9a; } .c-condicional { background: #a16207; } .c-distribuidor { background: #e11d73; } .c-kanban { background: #4d9e0f; }
.c-notificar { background: #dc2626; } .c-outro_fluxo { background: #334155; } .c-agente { background: #0d9488; } .c-transferir { background: #7c3aed; } .c-texto_ia { background: #7c5cff; } .c-pix { background: #12b886; } .c-status { background: #475569; } .c-campo { background: #0284c7; } .c-webhook { background: #9333ea; } .c-pixel { background: #1877f2; } .c-menu { background: #0891b2; } .c-reagir { background: #db2777; } .c-audio_ia { background: #7c5cff; } .c-comprovante { background: #16a34a; }
.no { border-radius: var(--r-lg); transition: box-shadow .3s, border-color .3s; } .no:hover { border-color: rgba(34, 211, 238, .4); box-shadow: 0 18px 40px -18px rgba(34, 211, 238, .35); }
#fab, #fab.aberto { background: var(--grad); color: var(--on-accent); box-shadow: 0 14px 34px -10px rgba(37, 244, 160, .7); }
.no .metrica { background: var(--grad); color: var(--on-accent); font-weight: 700; } .no .metrica.zero { background: var(--card-3); color: var(--muted); }

/* ---------- login ---------- */
.lg-marca { background: radial-gradient(70% 55% at 0% 0%, rgba(37, 244, 160, .12), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(139, 92, 246, .16), transparent 70%), var(--side); border-right: 1px solid var(--side-line); }
.lg-marca h1 { font-family: var(--titulo); font-weight: 700; letter-spacing: -.035em; }
.lg-marca h1 em { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: desliza 6s linear infinite; }
.lg-logo { font-family: var(--titulo); font-weight: 700; } .lg-logo svg { filter: drop-shadow(0 0 16px rgba(37, 244, 160, .5)); }
.lg-form { background: none; }
.lg-form form { background: rgba(13, 20, 34, .72); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sombra-2); }
.lg-form h2 { font-family: var(--titulo); font-weight: 700; }
.lg-form .btn { height: 48px; }
.lg-form .link { color: var(--accent-ink); }
:root[data-tema=claro] .lg-form form { background: rgba(255, 255, 255, .85); }

/* ---------- barras de rolagem e detalhes ---------- */
::selection { background: rgba(37, 244, 160, .25); color: #fff; }
a { color: var(--accent-ink); }

/* ---------- celular: sem partículas, sem brilho do cursor ---------- */
@media (max-width: 800px), (hover: none) { #fx, .glow { display: none; } .cabeca .btn.destaque { animation: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } #fx { display: none; } }

/* Tipografia e densidade (inspiradas na ZapFy, 22/11/2026): títulos em Sora com letras mais juntas, menu compacto. */
h1, h2, h3, .cabeca h2 { font-family: var(--titulo); letter-spacing: -.025em; }
#lateral a { padding: 9px 11px; font-size: 13.5px; font-weight: 500; }
#lateral a.ativo { font-weight: 600; }
