﻿/* ==========================================================================
   TRACER — console
   Preto profundo, superfícies com elevação, cantos redondos, Inter.
   Monocromático: a hierarquia vem de contraste, peso e profundidade.
   ========================================================================== */

:root {
  --bg: #000000;
  --bg2: #050507;
  --surface: #0b0b0e;
  --surface2: #101014;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #f8f8fa;
  --soft: #b6b6be;
  --dim: #808089;
  --faint: #56565f;
  --accent: #ffffff;
  --red: #ff4040;
  --amber: #ffbe2e;
  --green: #22e06b;

  --r: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --elev: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.055), transparent 60%),
    radial-gradient(100% 100% at 50% 120%, rgba(0, 0, 0, 0.55), transparent 55%);
}

::selection { background: rgba(255, 255, 255, 0.9); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------------------------------------------------------------- shell */

.shell { position: relative; z-index: 2; display: flex; min-height: 100vh; }

.side {
  width: 260px;
  flex: 0 0 260px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.85), rgba(8, 8, 10, 0.9));
  backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px 16px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-sm);
  transition: background .18s var(--ease);
}

.brand:hover { background: rgba(255, 255, 255, 0.035); }

.brandMark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 18px -12px rgba(0, 0, 0, 0.9);
  display: block;
}

.brandMark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gateBrand .brandMark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; }

.brandMark svg { width: 22px; height: 22px; display: block; }

.brandText { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brandText b { font-size: 15px; font-weight: 700; letter-spacing: 2.6px; }
.brandText i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding: 2px; }

.navGroup {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 12px 8px;
}

.navGroup:first-child { padding-top: 4px; }

.navItem {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--soft);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .16s var(--ease), background .16s var(--ease);
  position: relative;
}

.navItem svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .75; transition: opacity .16s; }
.navItem:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.navItem:hover svg { opacity: 1; }

.navItem.on {
  color: #0a0a0c;
  background: linear-gradient(180deg, #ffffff, #e8e8ec);
  font-weight: 600;
  box-shadow: 0 6px 18px -10px rgba(255, 255, 255, 0.55);
}

.navItem.on svg { opacity: 1; }

.navBadge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.navItem.on .navBadge { background: rgba(0, 0, 0, 0.12); color: #0a0a0c; }

.sideFoot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.userCard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line2);
}

.userMeta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.userMeta b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userMeta i { font-style: normal; font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1.2px; }

.licence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
}

.licence b {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.sideOut {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: all .16s var(--ease);
}

.sideOut svg { width: 16px; height: 16px; }
.sideOut:hover { color: #0a0a0c; background: var(--text); border-color: var(--text); }

/* ---------------------------------------------------------------- main */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 6;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.crumbsRoot { color: var(--faint); letter-spacing: 1.4px; }
.crumbsSep { color: var(--faint); opacity: .5; }
.crumbsNow { color: var(--text); }

.topActions { display: flex; align-items: center; gap: 10px; }

.netPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11.5px;
  color: var(--soft);
  font-weight: 500;
}

.netPill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22e06b;
  box-shadow: 0 0 0 3px rgba(34, 224, 107, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

.netPill.bad i { background: #ff4040; box-shadow: 0 0 0 3px rgba(255, 64, 64, 0.16); animation: none; }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

.iconBtn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  cursor: pointer;
  transition: all .16s var(--ease);
}

.iconBtn svg { width: 15px; height: 15px; }
.iconBtn:hover { color: #0a0a0c; background: var(--text); border-color: var(--text); }

.stage { padding: 30px; max-width: 1320px; width: 100%; margin: 0 auto; flex: 1; }

/* ---------------------------------------------------------------- tipografia */

h1, h2, h3 { margin: 0; font-weight: 600; }

.pageTitle { font-size: 26px; letter-spacing: -0.7px; font-weight: 700; }
.pageSub { margin: 6px 0 0; color: var(--dim); font-size: 13px; }

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.mono { font-family: var(--mono); }
.dim { color: var(--dim); }

.pageHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.pageHead .actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- cartões */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--elev);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.card:hover { border-color: var(--line2); }

.cardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 0;
}

.cardHead h2 { font-size: 14.5px; letter-spacing: -0.1px; }
.cardHead p { margin: 4px 0 0; font-size: 12px; color: var(--dim); }
.cardBody { padding: 18px 20px 20px; }
.cardBody.flush { padding: 0; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  position: relative;
  padding: 17px 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: var(--elev);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.kpi:hover { transform: translateY(-2px); border-color: var(--line2); }

.kpiTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.kpiLabel {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faint);
}

.kpiIcon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--soft);
}

.kpiIcon svg { width: 13px; height: 13px; }

.kpiValue {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  margin-top: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kpiValue small { font-size: 13px; letter-spacing: 0; color: var(--dim); margin-left: 6px; font-weight: 500; }

.kpiSpark { margin-top: 12px; height: 26px; opacity: .9; }
.kpiSpark svg { width: 100%; height: 26px; display: block; overflow: visible; }

.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .16s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn.primary {
  background: linear-gradient(180deg, #ffffff, #e6e6ea);
  color: #0a0a0c;
  box-shadow: 0 8px 22px -12px rgba(255, 255, 255, 0.7);
}

.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(255, 255, 255, 0.85); }
.btn.primary:active { transform: translateY(0); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn.soft {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line2);
  color: var(--text);
}

.btn.soft:hover { background: rgba(255, 255, 255, 0.1); }

.btn.ghost { background: transparent; border-color: var(--line2); color: var(--soft); }
.btn.ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }

.btn.tiny { height: 29px; padding: 0 11px; font-size: 11.5px; border-radius: 8px; }
.btn.wide { width: 100%; }

.iconAction {
  width: 29px; height: 29px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  cursor: pointer;
  transition: all .16s var(--ease);
}

.iconAction svg { width: 14px; height: 14px; }
.iconAction:hover { color: #0a0a0c; background: var(--text); border-color: var(--text); }
.iconAction.danger:hover { background: #ff4040; border-color: #ff4040; color: #fff; }

/* ---------------------------------------------------------------- inputs */

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field > span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--faint);
}

input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 0 13px;
  font-family: var(--sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

textarea {
  height: auto;
  min-height: 190px;
  padding: 12px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

input::placeholder, textarea::placeholder { color: var(--faint); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377777f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 36px;
}

select option { background: #101014; color: var(--text); }

input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }

input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line2);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  margin-right: 12px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

input[type="range"] { width: 100%; accent-color: #ffffff; }

.formGrid { display: grid; gap: 15px; }
.formRow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.note { margin: 0; font-size: 12.5px; color: var(--dim); min-height: 18px; }
.note.err { color: #ff4040; }
.note.ok { color: #22e06b; }

/* ---------------------------------------------------------------- tabela */

.tableWrap { width: 100%; overflow-x: auto; }

table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }

table.table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  white-space: nowrap;
}

table.table tbody tr { transition: background .14s var(--ease); }
table.table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
table.table tbody tr:last-child td { border-bottom: none; }

td.pinCell { font-family: var(--mono); font-weight: 600; letter-spacing: 1.2px; }
td.mono { font-family: var(--mono); font-size: 12px; }

.cellEnd { text-align: right; }
.rowActions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid var(--line2);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}

.chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }

.chip.ok { color: #22e06b; border-color: rgba(34, 224, 107, 0.28); background: rgba(34, 224, 107, 0.09); }
.chip.warn { color: #ffbe2e; border-color: rgba(255, 190, 46, 0.26); background: rgba(255, 190, 46, 0.08); }
.chip.bad { color: #ff4040; border-color: rgba(255, 64, 64, 0.26); background: rgba(255, 64, 64, 0.08); }
.chip.mute { color: var(--dim); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }

.sevBar { display: flex; gap: 2px; height: 6px; min-width: 96px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.sevBar span { display: block; height: 100%; }

/* ---------------------------------------------------------------- listas */

.list { display: flex; flex-direction: column; }

.listItem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background .14s var(--ease);
}

.listItem:last-child { border-bottom: none; }
.listItem:hover { background: rgba(255, 255, 255, 0.03); }

.listMark {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}

.listMark.bad { color: #ff4040; border-color: rgba(255, 64, 64, 0.25); background: rgba(255, 64, 64, 0.08); }
.listMark.ok { color: #22e06b; border-color: rgba(34, 224, 107, 0.25); background: rgba(34, 224, 107, 0.08); }

.listMain { flex: 1; min-width: 0; }
.listTitle {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.listSub { font-size: 11.5px; color: var(--dim); margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }

.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.empty b { display: block; color: var(--soft); font-size: 13.5px; margin-bottom: 6px; font-weight: 600; }

/* ---------------------------------------------------------------- toolbar */

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.search input { padding-left: 36px; }

.search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--faint);
  pointer-events: none;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  gap: 2px;
}

.segmented button {
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s var(--ease);
}

.segmented button:hover { color: var(--text); }
.segmented button.on { background: rgba(255, 255, 255, 0.95); color: #0a0a0c; font-weight: 600; }

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px 20px;
  overflow-y: auto;
  animation: fade .18s var(--ease);
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.modalShell {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #121217, #0d0d11);
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: rise .22s var(--ease);
  overflow: hidden;
}

.modalShell.wide { max-width: 880px; }

@keyframes rise { from { transform: translateY(10px) scale(.99); opacity: 0 } to { transform: none; opacity: 1 } }

.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
}

.modalHead h2 { font-size: 17px; letter-spacing: -0.3px; }
.modalHead p { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); }

.modalBody { padding: 4px 22px 20px; max-height: 64vh; overflow-y: auto; }
.modalFoot {
  padding: 14px 22px 18px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.closeBtn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim);
  cursor: pointer;
  transition: all .16s var(--ease);
  flex: 0 0 30px;
}

.closeBtn svg { width: 14px; height: 14px; }
.closeBtn:hover { color: #0a0a0c; background: var(--text); border-color: var(--text); }

/* ---------------------------------------------------------------- detalhe */

.dl { display: grid; grid-template-columns: 128px 1fr; gap: 11px 18px; font-size: 13px; }
.dl dt { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.dl dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-word; }

.findings { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }

.finding {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.finding .sev {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: 66px;
  flex: 0 0 66px;
  color: var(--dim);
}

.finding .sev.hi { color: #ff4040; }
.finding .mod {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  width: 84px;
  flex: 0 0 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding .nm { color: var(--soft); overflow: hidden; text-overflow: ellipsis; }

.reportFrame { width: 100%; height: 56vh; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; display: block; }

/* ---------------------------------------------------------------- gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(14px);
}

.gateCard {
  width: 100%;
  max-width: 388px;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, #121217, #0c0c10);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.gateBrand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }

.gateForm { display: flex; flex-direction: column; gap: 14px; }
.gateForm h1 { font-size: 20px; letter-spacing: -0.4px; }
.gateLead { margin: -8px 0 2px; color: var(--dim); font-size: 12.5px; }

.linkBtn {
  background: none;
  border: none;
  padding: 0;
  color: var(--dim);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  align-self: center;
  margin-top: 2px;
}

.linkBtn:hover { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #0a0a0c;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  max-width: 90vw;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #0b0b0f; color: #ff4040; border: 1px solid rgba(255, 64, 64, 0.3); }

/* ---------------------------------------------------------------- preview */

.scannerPreview {
  border-radius: var(--r);
  border: 1px solid var(--line2);
  padding: 20px;
  font-family: Tahoma, var(--sans);
  position: relative;
  overflow: hidden;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

.spTop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.spLogo { font-weight: 700; letter-spacing: .6px; }
.spTitle { font-size: 11px; opacity: .75; }
.spBar { height: 3px; opacity: .22; margin: 15px 0; position: relative; border-radius: 99px; overflow: hidden; }
.spBar i { position: absolute; inset: 0 62% 0 0; display: block; border-radius: 99px; }
.spRows { display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.spRow { display: flex; justify-content: space-between; }
.spText { font-size: 10px; margin-top: 14px; opacity: .8; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 13px; }

/* ---------------------------------------------------------------- analytics */

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }

.barCol {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4));
  min-height: 3px;
  transition: opacity .16s;
}

.barCol:hover { opacity: .75; }
.barLabel { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend b { width: 9px; height: 9px; border-radius: 3px; display: block; }

/* ---------------------------------------------------------------- updates */

.updates { display: flex; flex-direction: column; }

.update {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.update:last-child { border-bottom: none; }

.updateDate {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  padding-top: 2px;
  letter-spacing: .3px;
}

.updateBody h3 { font-size: 13.5px; margin-bottom: 6px; }
.updateBody p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.65; }

.updateTag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  margin-right: 8px;
  vertical-align: 2px;
}

/* ---------------------------------------------------------------- tabs */

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 20px;
}

.tabs button {
  height: 31px;
  padding: 0 15px;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s var(--ease);
}

.tabs button:hover { color: var(--text); }
.tabs button.on { background: rgba(255, 255, 255, 0.95); color: #0a0a0c; font-weight: 600; }

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 1180px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1040px) {
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side {
    width: 100%;
    flex: none;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 12px 12px 10px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .brand { padding: 0; flex: 0 0 auto; }
  .brandText i { display: none; }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    flex: 1;
    padding: 0;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .navGroup { display: none; }
  .navItem { white-space: nowrap; padding: 7px 11px; font-size: 12.5px; }
  .navBadge { display: none; }
  .sideFoot { border-top: none; padding-top: 0; flex-direction: row; align-items: center; gap: 8px; }
  .userCard, .licence { display: none; }
  .topbar { padding: 0 16px; height: 56px; }
  .stage { padding: 18px 16px 40px; }
  .pageTitle { font-size: 21px; }
  .grid3 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 4px; }
  .dl dt { padding-top: 9px; }
  .formRow2 { grid-template-columns: 1fr; }
  .update { grid-template-columns: 1fr; gap: 6px; }
  .modalShell { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #bg { opacity: .35; }
}
