/* =====================================================================
   TEMA FUTURISTA "Hunter Neon": escuro, vidro e brilho verde.
   Redefine os tokens de app.css: tudo o que usa var(--...) herda.
   ===================================================================== */
:root, :root[data-theme] {
  --brand: #00d26a; --brand-2: #00f07a; --brand-soft: rgba(0,210,106,.12);
  --ink: #e8f2ee; --ink-2: #b4c4bd; --muted: #7d8f88; --line: rgba(140,255,200,.10);
  --bg: #05080a; --surface: rgba(14,22,20,.72); --side: #040706; --side-ink: #b9c9c2;
  --danger: #ff6b6b; --danger-soft: rgba(255,107,107,.12); --warn: #ffc857; --warn-soft: rgba(255,200,87,.12);
  --ok: #3ef0a0; --ok-soft: rgba(62,240,160,.12); --info: #6cb8ff; --info-soft: rgba(108,184,255,.12);
  --radius: 16px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  --glow: 0 0 0 1px rgba(0,210,106,.25), 0 0 24px rgba(0,210,106,.18);
  color-scheme: dark;
}
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0,210,106,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(0,140,255,.07), transparent 60%),
    linear-gradient(rgba(140,255,200,.025) 1px, transparent 1px) 0 0 / 100% 32px,
    #05080a;
  background-attachment: fixed;
}
.side { background: rgba(4,7,6,.92); border-right: 1px solid var(--line); backdrop-filter: blur(14px); }
#nav a { border-radius: 10px; transition: background .15s, color .15s, box-shadow .15s; }
#nav a.active { background: linear-gradient(90deg, rgba(0,210,106,.22), rgba(0,210,106,.04)); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
#nav a[data-badge]:not([data-badge=""])::after { content: attr(data-badge); float: right; background: var(--brand); color: #031008; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; box-shadow: 0 0 12px rgba(0,210,106,.6); }
.card { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.card:hover { border-color: rgba(0,210,106,.28); box-shadow: var(--shadow), 0 0 0 1px rgba(0,210,106,.08); }
.card h2::before { box-shadow: 0 0 10px var(--brand); }
.page-head h1 { background: linear-gradient(90deg, #fff 30%, #9dffcf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--ink); }
.btn:hover { border-color: rgba(0,210,106,.45); background: rgba(0,210,106,.08); }
.btn.primary { background: linear-gradient(90deg, #00f07a, #00b862); color: #031008; border-color: transparent; box-shadow: 0 0 18px rgba(0,210,106,.28); }
.btn.primary:hover { box-shadow: 0 0 26px rgba(0,210,106,.5); }
.btn.glow { animation: hpulse 2.4s ease-in-out infinite; }
@keyframes hpulse { 50% { box-shadow: 0 0 34px rgba(0,240,122,.65); } }
input, select, textarea { background: rgba(0,0,0,.35); border-color: var(--line); color: var(--ink); }
select option { background: #0b1210; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,210,106,.18); }
th { background: rgba(5,8,10,.85); }
tr.click:hover td { background: rgba(0,210,106,.05); }
.tag { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.kanban .col { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px; }
.kcard { background: rgba(14,22,20,.9); border: 1px solid var(--line); border-radius: 12px; }
.kcard:hover { border-color: rgba(0,210,106,.4); box-shadow: var(--glow); }
.modal { background: #0b1210; border: 1px solid var(--line); color: var(--ink); }
.modal-back { backdrop-filter: blur(6px); }
.banner { border-radius: 12px; }
.h-hero { border: 1px solid rgba(0,210,106,.25); box-shadow: var(--glow); }
.ld-box h3 svg { filter: drop-shadow(0 0 6px rgba(0,210,106,.6)); }
.ai-out { background: rgba(0,210,106,.06); border-color: rgba(0,210,106,.25); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(140,255,200,.15); border-radius: 10px; }

/* Chat do agente */
.chip { font: inherit; font-size: 12px; color: var(--ink-2); background: rgba(0,210,106,.06); border: 1px solid rgba(0,210,106,.22); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.chip:hover { color: #fff; border-color: var(--brand); }
.ag { display: flex; flex-direction: column; gap: 10px; }
.ag-card { padding: 0; overflow: hidden; }
.ag-card .ag { height: calc(100vh - 230px); min-height: 420px; padding: 16px; }
.ag-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.ag-msg { display: flex; } .ag-msg.user { justify-content: flex-end; }
.ag-b { max-width: 82%; padding: 10px 14px; border-radius: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.ag-msg.user .ag-b { background: linear-gradient(135deg, rgba(0,210,106,.28), rgba(0,210,106,.12)); border: 1px solid rgba(0,210,106,.35); border-bottom-right-radius: 4px; }
.ag-msg.assistant .ag-b { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ag-b p { margin: 0 0 6px; } .ag-b p:last-child { margin: 0; } .ag-b ul { margin: 4px 0 6px 18px; padding: 0; } .ag-b h4 { margin: 8px 0 4px; color: var(--brand-2); }
.ag-b table { font-size: 12.5px; margin: 6px 0; } .ag-b td, .ag-b th { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.ag-tool { align-self: flex-start; font-size: 11.5px; color: var(--brand-2); background: rgba(0,210,106,.07); border: 1px dashed rgba(0,210,106,.35); border-radius: 99px; padding: 3px 10px; }
.ag-thinking { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.ag-thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: hblink 1.2s infinite; }
.ag-thinking span:nth-child(2) { animation-delay: .2s; } .ag-thinking span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes hblink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ag-sugg { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-input { display: flex; gap: 8px; align-items: flex-end; }
.ag-input textarea { flex: 1; resize: none; border-radius: 12px; min-height: 46px; }
.ag-foot { margin: 0; }
.ag-empty { margin: auto; text-align: center; max-width: 440px; }
.ag-empty h3 { font-family: var(--display); font-size: 20px; margin: 14px 0 6px; }
.ag-orb { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b8ffd9, #00d26a 40%, #014d2a 75%); box-shadow: 0 0 40px rgba(0,210,106,.55), inset 0 0 18px rgba(255,255,255,.25); animation: horb 4s ease-in-out infinite; }
.ag-orb.sm { width: 16px; height: 16px; margin: 0; display: inline-block; box-shadow: 0 0 10px rgba(0,210,106,.8); }
@keyframes horb { 50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(0,240,122,.7), inset 0 0 18px rgba(255,255,255,.25); } }
.ag-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: #e8fff3; background: rgba(6,14,11,.9); border: 1px solid rgba(0,210,106,.5); border-radius: 99px; padding: 10px 16px; cursor: pointer; box-shadow: 0 0 24px rgba(0,210,106,.35); backdrop-filter: blur(10px); }
.ag-dock { position: fixed; right: 22px; bottom: 76px; z-index: 61; width: min(440px, calc(100vw - 32px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: rgba(7,12,10,.96); border: 1px solid rgba(0,210,106,.3); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(0,210,106,.15); backdrop-filter: blur(16px); }
.ag-dock[hidden] { display: none; }
.ag-dock header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ag-dock .ag { flex: 1; min-height: 0; padding: 12px; } .ag-dock .ag-sugg { max-height: 64px; overflow: hidden; }
/* Fila de envios */
.ob-list { display: grid; gap: 12px; }
.ob-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .ob-head > div { flex: 1; }
.ob-ch { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--brand-2); background: rgba(0,210,106,.1); border: 1px solid rgba(0,210,106,.3); }
.ob.pendente { border-left: 3px solid var(--warn); } .ob.manual { border-left: 3px solid var(--info); } .ob.enviado { border-left: 3px solid var(--ok); }
.ob-why { color: var(--ink-2); background: rgba(255,255,255,.03); border-radius: 8px; padding: 6px 10px; }
.ob-subj, .ob-body { width: 100%; margin-bottom: 8px; } .ob-text { color: var(--ink-2); }
@media (max-width: 640px) { .ag-fab { right: 14px; bottom: 14px; } .ag-dock { right: 8px; bottom: 66px; } }
@media (prefers-reduced-motion: reduce) { .ag-orb, .btn.glow, .ag-thinking span { animation: none; } }
