:root {
  --bg: #0d0d10;
  --bg2: #111115;
  --surface: #131317;
  --surface-2: #18181d;
  --solid: #111114;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);
  --text: #ececf1;
  --muted: #9a9aa6;
  --dim: #62626d;
  --roxo: #8b5cf6;
  --roxo-2: #a78bfa;
  --roxo-3: #6d28d9;
  --rosa: #c4b5fd;
  --verde: #34d399;
  --amarelo: #fbbf24;
  --vermelho: #f87171;
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.28), 0 0 18px rgba(139, 92, 246, 0.18);
  --raio: 14px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(232, 121, 249, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before { /* malha sutil */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(192,132,252,.18) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
a { color: var(--roxo-2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(168,85,247,.45); }
.oculto { display: none !important; }

/* carregando */
.carregando { min-height: 100vh; display: grid; place-items: center; }
.pulso { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #f5d0fe, var(--roxo) 45%, transparent 70%); animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 0%,100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; z-index: 1; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px; backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,.6), var(--glow); }
.login-orb { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fae8ff, var(--roxo) 40%, #3b0764 75%); box-shadow: 0 0 40px rgba(168,85,247,.7), 0 0 0 10px rgba(168,85,247,.08), 0 0 0 22px rgba(168,85,247,.04); animation: respira 4s ease-in-out infinite; }
@keyframes respira { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.login h1 { text-align: center; font-size: 26px; margin: 0; letter-spacing: .5px; }
.login p.sub { text-align: center; color: var(--muted); margin: 4px 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

/* estrutura */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.lateral { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--border); background: rgba(8, 4, 16, .75); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.marca-orb { width: 38px; height: 38px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, #fae8ff, var(--roxo) 42%, #3b0764 78%); box-shadow: 0 0 18px rgba(168,85,247,.7); }
.marca b { display: block; font-size: 18px; letter-spacing: 1.5px; }
.marca small { display: block; color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; transition: .15s; white-space: nowrap; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { color: var(--text); background: rgba(168,85,247,.08); }
.nav a.ativo { color: #fff; background: linear-gradient(90deg, rgba(168,85,247,.28), rgba(168,85,247,.06)); box-shadow: inset 2px 0 0 var(--roxo-2); }
.nav .sep { height: 1px; background: var(--border); margin: 8px 4px; }
.lateral .rodape { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.chip-modo { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.ponto { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.ponto.ligada { color: var(--verde); background: var(--verde); }
.ponto.observando { color: var(--amarelo); background: var(--amarelo); }
.ponto.desligada { color: var(--vermelho); background: var(--vermelho); }
.principal { min-width: 0; padding: 26px 30px 60px; }
.topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.topo h1 { margin: 0; font-size: 28px; letter-spacing: .3px; }
.topo p { margin: 2px 0 0; color: var(--muted); }
.topo .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-movel { display: none; }

/* cartões e grid */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 18px; backdrop-filter: blur(12px); min-width: 0; }
.card h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.card h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade > * , .pilha > * { min-width: 0; }
.pilha { display: flex; flex-direction: column; gap: 16px; }
.hud { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.numero { font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.numero small { font-size: 13px; color: var(--muted); font-weight: 400; }
.mudo { color: var(--muted); }
.peq { font-size: 13px; }
.linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.vazio { text-align: center; color: var(--muted); padding: 26px 10px; border: 1px dashed var(--border); border-radius: 14px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(168,85,247,.08); color: var(--text); cursor: pointer; font-weight: 600; transition: .15s; white-space: nowrap; }
.btn:hover { background: rgba(168,85,247,.18); box-shadow: var(--glow); }
.btn svg { width: 17px; height: 17px; }
.btn.prim { background: linear-gradient(135deg, var(--roxo-3), var(--roxo) 55%, var(--rosa)); border-color: transparent; color: #fff; box-shadow: 0 6px 24px rgba(168,85,247,.35); }
.btn.prim:hover { filter: brightness(1.1); }
.btn.perigo { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); color: #fecaca; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.icone { padding: 9px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.girando::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* formulários */
label.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); background: rgba(5,3,10,.6); color: var(--text); outline: none; transition: .15s; font-size: 15px;
}
input:focus, select:focus, textarea:focus { border-color: var(--roxo-2); box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select option { background: var(--solid); }
input[type=range] { width: 100%; accent-color: var(--roxo); }
input[type=checkbox] { accent-color: var(--roxo); width: 17px; height: 17px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form .g2 { gap: 12px; }
.marcas { display: flex; flex-wrap: wrap; gap: 8px; }
.marca-chk { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--text); background: rgba(5,3,10,.4); }
.marca-chk:has(input:checked) { border-color: var(--roxo-2); background: rgba(168,85,247,.16); }
.ajuda { font-size: 12.5px; color: var(--dim); }

/* etiquetas */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: rgba(168,85,247,.1); color: var(--roxo-2); white-space: nowrap; }
.tag.verde { color: #6ee7b7; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.tag.amarelo { color: #fde68a; border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.tag.vermelho { color: #fecaca; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.08); }
.tag.cinza { color: var(--muted); border-color: var(--border); background: transparent; }
.tag.roxo { color: #d8b4fe; border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.1); }

/* botão de modo (Início) */
.modos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.modo { position: relative; padding: 18px 16px; border-radius: 18px; border: 1px solid var(--border); background: rgba(5,3,10,.5); cursor: pointer; text-align: left; transition: .2s; overflow: hidden; }
.modo b { display: block; font-size: 17px; margin-top: 10px; }
.modo span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.modo .luz { width: 16px; height: 16px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; opacity: .35; }
.modo.ligada { color: var(--verde); } .modo.observando { color: var(--amarelo); } .modo.desligada { color: var(--vermelho); }
.modo b, .modo span { color: var(--text); } .modo span { color: var(--muted); }
.modo.sel { border-color: currentColor; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, currentColor 18%, transparent), transparent 60%), rgba(5,3,10,.6); box-shadow: 0 0 0 1px currentColor, 0 0 30px color-mix(in srgb, currentColor 35%, transparent); }
.modo.sel .luz { opacity: 1; animation: pulso 2s ease-in-out infinite; }

/* listas */
.lista { display: flex; flex-direction: column; gap: 10px; }
.item { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(5,3,10,.45); min-width: 0; }
.item .titulo { font-weight: 600; overflow-wrap: anywhere; }
.item .texto { white-space: pre-wrap; overflow-wrap: anywhere; color: #ddd0f7; font-size: 14px; margin-top: 6px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filtros .btn.sel { background: rgba(168,85,247,.25); border-color: var(--roxo-2); }

/* cérebro */
.cerebro-wrap { position: relative; border-radius: 22px; border: 1px solid var(--border); overflow: hidden; background: radial-gradient(80% 70% at 50% 50%, rgba(76, 29, 149, .25), rgba(5,3,10,.9) 70%); }
.cerebro-wrap canvas { display: block; width: 100%; height: 560px; cursor: grab; touch-action: none; }
.cerebro-hud { position: absolute; left: 16px; top: 14px; right: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; flex-wrap: wrap; }
.cerebro-hud > * { pointer-events: auto; }
.cerebro-dica { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 1px; }
.tooltip-grafo { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: rgba(12,6,22,.95); border: 1px solid var(--border-2); font-size: 13px; max-width: 260px; box-shadow: var(--glow); transform: translate(-50%, calc(-100% - 14px)); }
.areas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(5,3,10,.5); cursor: pointer; font-size: 13.5px; }
.area-chip .bol { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; background: currentColor; }
.area-chip.off { opacity: .45; }
.area-chip.sel { border-color: var(--roxo-2); background: rgba(168,85,247,.16); }
.conh { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.conh .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(168,85,247,.14); color: var(--roxo-2); }
.conh .ico svg { width: 18px; height: 18px; }
.chave { position: relative; width: 42px; height: 24px; flex: none; }
.chave input { opacity: 0; width: 0; height: 0; position: absolute; }
.chave span { position: absolute; inset: 0; border-radius: 999px; background: rgba(111,90,146,.35); border: 1px solid var(--border); cursor: pointer; transition: .2s; }
.chave span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #cbb8ec; transition: .2s; }
.chave input:checked + span { background: rgba(168,85,247,.55); border-color: var(--roxo-2); box-shadow: 0 0 12px rgba(168,85,247,.5); }
.chave input:checked + span::after { transform: translateX(18px); background: #fff; }
.progresso { height: 6px; border-radius: 999px; background: rgba(168,85,247,.12); overflow: hidden; }
.progresso i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--roxo-3), var(--rosa)); transition: width .2s; }
.soltar { border: 1.5px dashed var(--border-2); border-radius: 16px; padding: 26px 16px; text-align: center; cursor: pointer; transition: .2s; background: rgba(168,85,247,.04); }
.soltar:hover, .soltar.arrastando { background: rgba(168,85,247,.12); box-shadow: var(--glow); }
.soltar b { display: block; margin-top: 8px; }
.soltar svg { width: 30px; height: 30px; color: var(--roxo-2); }

/* rosto */
.rosto { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.orb-wrap { position: relative; border-radius: 22px; border: 1px solid var(--border); overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, rgba(91, 33, 182, .35), rgba(5,3,10,.95) 72%); }
.orb-wrap canvas { display: block; width: 100%; height: 440px; }
.orb-estado { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--roxo-2); text-shadow: 0 0 12px rgba(168,85,247,.8); }
.orb-legenda { position: absolute; left: 18px; right: 18px; top: 16px; text-align: center; font-size: 15px; color: #f3e8ff; min-height: 22px; text-shadow: 0 0 14px rgba(0,0,0,.9); }
.mini-cerebro { margin-top: 16px; }
.mini-cerebro canvas { display: block; width: 100%; height: 240px; }
.chat { display: flex; flex-direction: column; height: 696px; }
.chat .msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 10px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg.voce { align-self: flex-end; background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(168,85,247,.35)); border: 1px solid rgba(192,132,252,.35); border-bottom-right-radius: 4px; }
.msg.atena { align-self: flex-start; background: rgba(5,3,10,.6); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg .fontes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg.pensando { color: var(--muted); font-style: italic; }
.enviar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-top: 10px; align-items: end; }
.enviar textarea { min-height: 46px; max-height: 140px; }
.conversa-voz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.btn.grande { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn.grande svg { width: 19px; height: 19px; }
#r-conv.ativo { background: linear-gradient(135deg, #be185d, #7c3aed); box-shadow: 0 0 0 4px rgba(232,121,249,.18), 0 0 28px rgba(232,121,249,.55); animation: pulso 1.6s ease-in-out infinite; }
.btn.mic { --nivel: 0; }
.btn.mic.ouvindo { background: rgba(232,121,249,.3); border-color: var(--rosa); box-shadow: 0 0 0 calc(4px + var(--nivel) * 10px) rgba(232,121,249,.18), 0 0 calc(18px + var(--nivel) * 30px) rgba(232,121,249,.65); transition: box-shadow .08s; }

/* tabela simples */
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tabela td { padding: 10px; border-bottom: 1px solid rgba(168,85,247,.08); vertical-align: top; }
.rolagem { overflow-x: auto; }

/* modal */
.fundo-modal { position: fixed; inset: 0; z-index: 50; background: rgba(3, 1, 8, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: aparece .15s; }
.modal { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; background: #0e0719; border: 1px solid var(--border-2); border-radius: 20px; padding: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.7), var(--glow); }
.modal.largo { max-width: 820px; }
.modal h3 { margin: 0 0 14px; font-size: 19px; }
.modal .rod { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@keyframes aparece { from { opacity: 0; } }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 15px; border-radius: 14px; background: #150b26; border: 1px solid var(--border-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; animation: aparece .2s; }
.toast.ok { border-color: rgba(52,211,153,.5); }
.toast.erro { border-color: rgba(248,113,113,.6); }

/* celular */
@media (max-width: 980px) {
  .rosto { grid-template-columns: 1fr; }
  .chat { height: 560px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-105%); transition: transform .25s; }
  .app.menu-aberto .lateral { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .app.menu-aberto::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; }
  .menu-movel { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: rgba(5,3,10,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .menu-movel .marca { padding: 0; }
  .principal { padding: 18px 16px 50px; }
  .topo h1 { font-size: 23px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .modos { grid-template-columns: 1fr; }
  .cerebro-wrap canvas { height: 430px; }
  .orb-wrap canvas { height: 340px; }
  .conh { grid-template-columns: auto 1fr; }
  .conh > :last-child { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr 1fr; } .numero { font-size: 26px; } }
.grade > label.campo { justify-content: space-between; }

[hidden] { display: none !important; }

/* ===================================================================== v1.4 — tema sóbrio (grafite + detalhes roxos) */
body { background: var(--bg); background-image: none; font-size: 14.5px; }
body::before { display: none; }
.lateral { background: #0b0b0e; backdrop-filter: none; }
.marca-orb { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, #f5f3ff, #a78bfa 45%, #3b1d7a 85%); box-shadow: 0 0 14px rgba(167,139,250,.3); }
.marca b { font-size: 15px; letter-spacing: .4px; font-weight: 600; }
.marca small { color: var(--dim); font-size: 10px; }
.nav a { border-radius: 9px; padding: 9px 11px; font-size: 14px; border: 1px solid transparent; }
.nav a svg { width: 17px; height: 17px; opacity: .8; }
.nav a:hover { background: rgba(255,255,255,.035); }
.nav a.ativo { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--border); box-shadow: none; }
.nav a.ativo svg { color: var(--roxo-2); opacity: 1; }
.chip-modo { border-radius: 10px; }
.ponto { box-shadow: 0 0 6px currentColor; width: 8px; height: 8px; }
.topo h1 { font-size: 26px; font-weight: 600; letter-spacing: -.3px; }
.card { backdrop-filter: none; border-radius: 14px; }
.card h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.numero { font-weight: 600; letter-spacing: -.5px; }
.btn { border-radius: 10px; background: var(--surface-2); border-color: var(--border-2); font-weight: 500; }
.btn:hover { background: #1e1e24; border-color: rgba(167,139,250,.45); box-shadow: none; }
.btn.prim { background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px rgba(109,40,217,.25); }
.btn.perigo { background: rgba(248,113,113,.06); }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=time], input[type=search], select, textarea { background: #0f0f13; border-radius: 10px; font-size: 14.5px; }
input:focus, select:focus, textarea:focus { border-color: rgba(167,139,250,.6); box-shadow: 0 0 0 3px rgba(139,92,246,.14); }
.marca-chk { background: transparent; border-radius: 9px; }
.marca-chk:has(input:checked) { border-color: rgba(167,139,250,.5); background: rgba(139,92,246,.1); }
.tag { background: rgba(139,92,246,.08); border-color: rgba(167,139,250,.22); font-weight: 500; border-radius: 7px; }
.tag.cinza { border-color: var(--border); }
.modo { background: #111115; border-radius: 14px; }
.modo .luz { width: 10px; height: 10px; box-shadow: 0 0 10px currentColor; }
.modo.sel { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, currentColor 10%, transparent), transparent 60%), #121216; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 70%, transparent); }
.item { background: #111115; border-radius: 12px; }
.item .texto { color: #d4d4dc; }
.vazio { border-color: var(--border-2); }
.login-card { background: var(--surface); backdrop-filter: none; box-shadow: 0 30px 80px rgba(0,0,0,.5); border-radius: 18px; }
.login-orb { width: 74px; height: 74px; background: radial-gradient(circle at 35% 30%, #f5f3ff, #a78bfa 42%, #3b1d7a 85%); box-shadow: 0 0 34px rgba(139,92,246,.35); }
.login p.sub { color: var(--dim); }
.pulso { background: radial-gradient(circle, #ede9fe, var(--roxo) 45%, transparent 70%); }
::selection { background: rgba(139,92,246,.4); }
/* cérebro */
.cerebro-wrap { border-radius: 14px; border-color: var(--border); background: radial-gradient(80% 70% at 50% 50%, #141419 0%, #0f0f13 70%); }
.cerebro-wrap canvas { height: 600px; }
.cerebro-dica { color: var(--dim); font-size: 10.5px; }
.tooltip-grafo { background: rgba(19,19,23,.94); border-color: var(--border-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(8px); border-radius: 10px; }
.area-chip { background: transparent; border-radius: 9px; }
.area-chip .bol { width: 8px; height: 8px; box-shadow: none; }
.area-chip.sel { border-color: rgba(167,139,250,.55); background: rgba(139,92,246,.1); }
/* rosto */
.orb-wrap { border-radius: 14px; border-color: var(--border); background: radial-gradient(70% 60% at 50% 48%, #141419, #0d0d10 75%); }
.orb-nome { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 6px; color: var(--muted); }
.orb-legenda { top: 46px; font-size: 14px; color: #e4e0f0; text-shadow: none; }
.orb-estado { color: var(--dim); text-shadow: none; font-size: 11px; letter-spacing: 3px; }
.btn.mic.ouvindo { background: rgba(139,92,246,.18); border-color: var(--roxo-2); animation: none; }
#r-conv.ativo { background: linear-gradient(180deg, #7c3aed, #5b21b6); box-shadow: 0 0 0 3px rgba(167,139,250,.18), 0 0 22px rgba(139,92,246,.35); animation: none; }
.msg { border-radius: 12px; }
@media (max-width: 760px) { .cerebro-wrap canvas { height: 470px; } }
.msg.voce { background: rgba(139,92,246,.14); border-color: rgba(167,139,250,.24); }
.msg.atena { background: var(--surface-2); }
/* economia de créditos */
.eco-gasto { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #111115; }
.eco-barra { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.eco-barra span { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, #7c3aed); border-radius: 99px; }
.eco-lista { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.eco-lista div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.eco-lista em { font-style: normal; color: var(--dim); font-size: 12px; margin-left: 6px; }
.eco-lista b { color: var(--text); font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.eco-perfis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eco-perfil { color: var(--roxo-2); }
.eco-perfil b { margin-top: 0; font-size: 15px; }
.eco-estimativa { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(139,92,246,.07); border: 1px solid rgba(167,139,250,.18); font-size: 13px; color: var(--muted); line-height: 1.6; }
.eco-estimativa b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .eco-perfis { grid-template-columns: 1fr; } }
