
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ================= TOKENS ================= */

:root {
  --bg: #04060b;
  --bg-1: #070b13;
  --bg-2: #0a101b;
  --bg-3: #0e1626;
  --panel: #0a101b;
  --panel2: #0e1626;

  --line: #14213a;
  --line2: #1d3050;
  --txt: #d6e4f7;
  --dim: #6f84a3;
  --mute: #3c4d69;

  --accent: #00f0ff;
  --accent-2: #ff2bd6;
  --blue: #4d8dff;
  --ok: #39ff88;
  --warn: #ffb020;
  --danger: #ff3b6b;
  --amber: #ffb020;
  --red: #ff3b6b;
  --purple: #ab7bff;

  --glow-a: 0 0 8px rgba(0,240,255,.55), 0 0 22px rgba(0,240,255,.25);
  --glow-m: 0 0 8px rgba(255,43,214,.55), 0 0 22px rgba(255,43,214,.25);
  --glow-ok: 0 0 8px rgba(57,255,136,.55);

  --ui: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --cut: 8px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,43,214,.07), transparent 60%),
    radial-gradient(1000px 600px at 5% 0%, rgba(0,240,255,.08), transparent 60%),
    var(--bg);
  color: var(--txt);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
}

body {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ================= BOTÕES ================= */

button, .btn {
  --c: var(--accent);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c);
  background: linear-gradient(180deg, rgba(0,240,255,.10), rgba(0,240,255,.02));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  border-radius: 3px;
  padding: 6px 14px;
  cursor: pointer;
  position: relative;
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: color .15s, background .15s, box-shadow .15s,
              transform .08s, border-color .15s;
}

button:hover, .btn:hover {
  color: #021015;
  background: var(--c);
  border-color: var(--c);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent);
}

button:active, .btn:active {
  transform: translateY(1px) scale(.98);
}

button:disabled, .btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
  color: var(--dim);
  background: var(--bg-2);
  border-color: var(--line2);
}

button.primary, .btn.primary {
  --c: var(--accent);
  color: #021015;
  background: linear-gradient(135deg, var(--accent), #00b8ff);
  border-color: var(--accent);
  box-shadow: var(--glow-a);
}

button.primary:hover, .btn.primary:hover {
  filter: brightness(1.15);
}

button.alt, .btn.alt {
  --c: var(--accent-2);
  background: linear-gradient(180deg, rgba(255,43,214,.12), rgba(255,43,214,.02));
}

button.ok, .btn.ok {
  --c: var(--ok);
  background: linear-gradient(180deg, rgba(57,255,136,.12), rgba(57,255,136,.02));
}

button.danger, .btn.danger {
  --c: var(--danger);
  background: linear-gradient(180deg, rgba(255,59,107,.12), rgba(255,59,107,.02));
}

button.warn, .btn.warn {
  --c: var(--warn);
  background: linear-gradient(180deg, rgba(255,176,32,.12), rgba(255,176,32,.02));
}

button.ghost, .btn.ghost, .ghost {
  --c: var(--accent);
  background: transparent;
  border-color: var(--line2);
  color: var(--dim);
}

button.ghost:hover, .btn.ghost:hover, .ghost:hover {
  color: var(--accent);
  background: rgba(0,240,255,.08);
  border-color: var(--accent);
  box-shadow: none;
}

.btn.sm {
  padding: 4px 9px;
  font-size: 11px;
}

.ghost {
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--glow-a);
}

/* ================= CAMPOS ================= */

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--txt);
  background: var(--bg-1);
  border: 1px solid var(--line2);
  border-radius: 3px;
  padding: 6px 10px;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--glow-a);
}

::placeholder {
  color: var(--mute);
}

::selection {
  background: var(--accent);
  color: #021015;
}

/* ================= SCROLLBAR ================= */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ================= TOPO ================= */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #08101c, #050911);
  border-bottom: 1px solid var(--line2);
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent-2) 75%, transparent);
  box-shadow: 0 0 10px rgba(0,240,255,.6);
  opacity: .8;
}

.mark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #eaffff;
  text-shadow: 0 0 6px rgba(0,240,255,.8), 0 0 18px rgba(0,240,255,.4);
}

.mark span {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-left: 8px;
  text-shadow: 0 0 8px rgba(255,43,214,.6);
}

.online-chip {
  background: rgba(57,255,136,.08);
  border: 1px solid rgba(57,255,136,.55);
  color: var(--ok);
  border-radius: 2px;
  padding: 2px 10px;
  font-size: 11px;
  font-family: var(--mono);
  text-shadow: var(--glow-ok);
  box-shadow: inset 0 0 10px rgba(57,255,136,.12), 0 0 10px rgba(57,255,136,.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.online-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: var(--glow-ok);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: .3;
    transform: scale(.7);
  }
}

.services {
  display: flex;
  gap: 5px;
  overflow: hidden;
  max-width: 38%;
}

.services img, .services .svc {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s, color .15s;
}

.services img:hover, .services .svc:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-a);
}

.spacer {
  flex: 1;
}

.conn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid var(--line2);
  color: var(--dim);
  background: var(--bg-2);
}

.conn.ok {
  color: var(--ok);
  border-color: rgba(57,255,136,.55);
  box-shadow: var(--glow-ok);
}

.conn.bad {
  color: var(--danger);
  border-color: rgba(255,59,107,.55);
  box-shadow: 0 0 8px rgba(255,59,107,.25);
}

/* ================= FILTROS E BUSCA ================= */

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.fbtn {
  font-family: var(--ui);
  background: var(--bg-2);
  border: 1px solid var(--line2);
  color: var(--dim);
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: none;
  transition: all .15s;
}

.fbtn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,240,255,.08);
  box-shadow: none;
}

.fbtn.on {
  color: #021015;
  background: linear-gradient(135deg, var(--accent), #00b8ff);
  border-color: var(--accent);
  box-shadow: var(--glow-a);
}

.busca {
  margin-left: auto;
  width: 260px;
  max-width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line2);
  border-radius: 3px;
  padding: 5px 9px;
  outline: none;
}

.busca:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-a);
}

/* ================= ESTRUTURA ================= */

.shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  height: calc(100vh - 53px - 24px - 62px);
  transition: grid-template-columns .25s ease;
}

.side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #060a12, #04070c);
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 3px;
  border-left: 2px solid transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .6px;
  transition: all .15s;
}

.nav:hover {
  background: rgba(0,240,255,.06);
  color: var(--txt);
  border-left-color: var(--line2);
}

.nav.on {
  background: linear-gradient(90deg, rgba(0,240,255,.16), rgba(0,240,255,0));
  color: #eaffff;
  border-left-color: var(--accent);
  box-shadow: inset 0 0 18px rgba(0,240,255,.06);
  text-shadow: 0 0 8px rgba(0,240,255,.7);
}

.nav b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0,240,255,.08);
  border: 1px solid rgba(0,240,255,.3);
  border-radius: 2px;
  padding: 0 6px;
}

.sep {
  margin: 12px 8px 4px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 700;
  opacity: .75;
}

.view {
  overflow: auto;
  padding: 12px 14px;
}

/* ================= TABELA ================= */

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #070d18;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 1px 10px rgba(0,240,255,.2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
}

.grid td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(29,48,80,.55);
  font-family: var(--mono);
  white-space: nowrap;
}

.grid tr.client {
  cursor: pointer;
  transition: background .12s;
}

.grid tr.client:hover td {
  background: rgba(0,240,255,.07);
}

.grid tr.client:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}

.grid tr.arquivado td {
  opacity: .5;
}

.grid td.ip {
  color: #8fd8ff;
}

.grid td.banco {
  color: var(--blue);
}

.grid td.id {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,240,255,.45);
}

.grid td.tmp {
  color: var(--dim);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mute);
  display: inline-block;
}

.dot.on {
  background: var(--ok);
  box-shadow: var(--glow-ok);
}

.cell-svcs {
  display: flex;
  gap: 3px;
}

.cell-svcs i {
  width: 17px;
  height: 17px;
  border-radius: 3px;
  background: var(--bg-3);
  border: 1px solid var(--line2);
  font-style: normal;
  font-size: 9px;
  display: grid;
  place-items: center;
  color: var(--dim);
}

.svc-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: -3px;
  margin-right: 5px;
}

.grid td .svc-logo {
  vertical-align: -3px;
}

.empty {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  padding: 30px 4px;
  text-align: center;
  letter-spacing: 1px;
  border: 1px dashed var(--line2);
  border-radius: 6px;
  margin: 10px 0;
}

.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 2px;
  color: var(--dim);
  font-size: 11.5px;
  font-family: var(--mono);
}

.pager button {
  padding: 3px 12px;
}

/* ================= FICHA DO CLIENTE ================= */

.ficha-wrap {
  padding: 10px 12px;
  overflow: auto;
  height: calc(100vh - 53px - 46px);
}

.ficha {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(0,240,255,.06);
}

.ficha > div {
  background: var(--bg-1);
  padding: 8px 11px;
  transition: background .15s;
}

.ficha > div:hover {
  background: var(--bg-3);
}

.ficha small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  opacity: .8;
}

.ficha b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #e4f2ff;
  word-break: break-all;
}

.warn-nb {
  border: 1px solid rgba(255,176,32,.6);
  border-left-width: 3px;
  background: linear-gradient(90deg, rgba(255,176,32,.12), rgba(255,176,32,.03));
  color: #ffd9a0;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(255,176,32,.12);
}

/* ================= ABAS ================= */

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line2);
  background: var(--bg-2);
  border-radius: 6px 6px 0 0;
  overflow: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  clip-path: none;
  padding: 9px 14px;
  color: var(--dim);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

.tab:hover {
  color: var(--accent);
  background: rgba(0,240,255,.06);
  box-shadow: none;
}

.tab.on {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 8px rgba(0,240,255,.6);
  background: rgba(0,240,255,.04);
}

.pane {
  border: 1px solid var(--line2);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 10px;
  min-height: 340px;
  background: rgba(7,11,19,.5);
}

.pane:not(.on) {
  display: none;
}

/* ================= CAPTURAS / IMAGENS ================= */

.cb-wrap {
  background: #02040a;
  border: 1px solid var(--line2);
  border-radius: 6px;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,240,255,.05), 0 0 20px rgba(0,240,255,.08);
}

.cb-wrap::before, .cb-wrap::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border: 2px solid var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.cb-wrap::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.cb-wrap::after {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
}

.cb-wrap img {
  max-width: 100%;
  max-height: 60vh;
  display: none;
}

.cb-wrap img.on {
  display: block;
}

.cb-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line2);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--bg-1);
}

.frames {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,240,255,.5);
}

.aviso {
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  padding: 22px 0;
  letter-spacing: .5px;
}

/* ================= LISTAS / CREDENCIAIS ================= */

.lista {
  display: grid;
  gap: 7px;
}

.item {
  border: 1px solid var(--line2);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,240,255,.05), var(--bg-1) 40%);
  border-radius: 4px;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  transition: box-shadow .15s, border-color .15s;
}

.item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0,240,255,.15);
}

.item .h {
  display: flex;
  gap: 9px;
  color: var(--dim);
  font-size: 10px;
  margin-bottom: 4px;
}

.item .h b {
  color: var(--accent-2);
}

.item .v {
  color: #dbe9f8;
  word-break: break-all;
}

.item .acoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.item button {
  margin-top: 6px;
}

/* ================= PARES / DADOS ================= */

.par {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(29,48,80,.35);
}

.par span {
  color: var(--dim);
}

.par b {
  color: #dbe6f2;
  word-break: break-all;
}

/* ================= SCREENSHOTS ================= */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
}

.shots figure {
  margin: 0;
  border: 1px solid var(--line2);
  border-radius: 5px;
  overflow: hidden;
  background: #02040a;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.shots figure:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-a);
  transform: translateY(-2px);
}

.shots img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.shots figcaption {
  font-size: 10px;
  color: var(--dim);
  padding: 4px 6px;
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

/* ================= EVENTOS / LOGS ================= */

.ev {
  border-left: 2px solid var(--line2);
  padding: 6px 9px;
  margin-bottom: 6px;
  background: var(--bg-1);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.ev:hover {
  background: var(--bg-3);
  border-left-color: var(--accent);
}

.ev .h {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.ev .t {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
}

.ev .time {
  font-size: 10px;
  color: var(--mute);
  font-family: var(--mono);
}

.ev .v {
  font-family: var(--mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
  color: var(--txt);
}

.ev .raw {
  display: none;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
  background: #02040a;
  padding: 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.ev.open .raw {
  display: block;
}

.ev.type-ic {
  border-left-color: var(--ok);
}

.ev.type-rm {
  border-left-color: var(--blue);
}

.ev.type-ck {
  border-left-color: var(--purple);
}

.ev.type-cmd {
  border-left-color: #44536a;
}

/* ================= FORMULÁRIOS ================= */

.group {
  margin-bottom: 14px;
}

.group > h3 {
  margin: 0 0 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 4px;
  margin-bottom: 7px;
}

.field label {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .5px;
}

.field input,
.field select,
.field textarea {
  background: var(--bg-1);
  border: 1px solid var(--line2);
  border-radius: 3px;
  padding: 6px 8px;
  outline: none;
  width: 100%;
}

.field textarea {
  font-family: var(--mono);
  font-size: 11.5px;
  min-height: 66px;
  resize: vertical;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.hintbox {
  font-size: 11px;
  color: var(--dim);
  background: var(--bg-1);
  border: 1px dashed var(--line2);
  border-radius: 4px;
  padding: 7px 9px;
  margin-bottom: 8px;
}

pre.json {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  color: #b8c4d4;
  background: #02040a;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
}

/* ================= RODAPÉ ================= */

.rodape {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 22px;
  background: #080c11;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 10.5px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= STATUS BAR ================= */

.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #0a0e14;
  border-top: 1px solid var(--line2);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  z-index: 30;
}

.statusbar > * {
  white-space: nowrap;
}

/* ================= TOASTS ================= */

.toasts {
  position: fixed;
  right: 14px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 40;
}

.toast {
  background: linear-gradient(90deg, rgba(0,240,255,.08), var(--bg-2));
  border: 1px solid var(--line2);
  border-left: 3px solid var(--ok);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  max-width: 340px;
  box-shadow: 0 0 12px rgba(0,240,255,.08);
}

.toast.err {
  border-left-color: var(--danger);
  box-shadow: 0 0 12px rgba(255,59,107,.08);
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,4,10,.92);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 60;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border: 1px solid var(--accent);
  box-shadow: 0 0 30px rgba(0,240,255,.2);
  border-radius: 4px;
}

/* ================= LOGIN ================= */

.login-wrap {
  height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 50% 30%, rgba(0,240,255,.10), transparent 70%),
    radial-gradient(600px 400px at 50% 70%, rgba(255,43,214,.06), transparent 70%),
    #06080c;
}

.login {
  width: 340px;
  max-width: calc(100vw - 30px);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 22px;
  box-shadow: 0 0 30px rgba(0,240,255,.08);
  position: relative;
}

.login::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

.login h1 {
  font-size: 19px;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,240,255,.3);
}

.login p {
  color: var(--dim);
  font-size: 12px;
  margin: 0 0 16px;
}

.login .err {
  color: var(--danger);
  font-size: 12px;
  min-height: 18px;
}

/* ================= QR ================= */

.qr-prev {
  max-width: 180px;
  max-height: 180px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 12px rgba(0,240,255,.08);
}

/* ================= SIDEBAR RECOLHIDA ================= */

.shell.recolhido {
  grid-template-columns: 52px minmax(0, 1fr);
}

.shell.recolhido .nav {
  justify-content: center;
  font-size: 0;
  border-left-color: transparent;
}

.shell.recolhido .nav.on {
  box-shadow: inset 2px 0 0 var(--accent), inset 0 0 18px rgba(0,240,255,.06);
}

.shell.recolhido .nav b,
.shell.recolhido .sep {
  display: none;
}

/* ================= RESPONSIVO ================= */

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .shell .nav {
    justify-content: center;
    font-size: 0;
  }

  .shell .nav b,
  .shell .sep {
    display: none;
  }

  .services {
    display: none;
  }

  .filters {
    flex-wrap: wrap;
  }

  .busca {
    width: 100%;
    margin-left: 0;
  }

  .grid {
    min-width: 600px;
  }

  .view {
    overflow-x: auto;
  }

  .ficha {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .statusbar {
    overflow-x: auto;
  }

  .login {
    padding: 18px;
  }
}

/* ================= ACESSIBILIDADE ================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* cards de clientes */
.cards { display: grid; gap: 10px; padding-bottom: 8px; }
.card { display: flex; gap: 12px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid #2a3546; border-radius: 12px;
  padding: 12px 14px; cursor: pointer; box-shadow: 0 3px 10px #00000055; transition: transform .08s, border-color .12s, background .12s; }
.card:hover { background: #101924; border-color: var(--line2); transform: translateY(-1px); }
.card.online { border-left-color: var(--accent); }
.card.arquivado { opacity: .6; }
.card-logo { width: 48px; height: 48px; border-radius: 10px; background: #0a0f15; border: 1px solid var(--line2);
  display: grid; place-items: center; flex: none; overflow: hidden; }
.card-logo img { width: 40px; height: 40px; border-radius: 8px; }
.card-corpo { flex: 1; min-width: 0; }
.card-topo { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.card-servico { font-size: 15px; color: #dbe6f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; color: #6b7a8d; border: 1px solid var(--line2); border-radius: 999px; padding: 1px 7px; }
.card-linha { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: #93a4b8; }
.card-meta { color: #627182; margin-top: 3px; }
.card-meta .id { color: var(--accent); }
.card-svcs { display: flex; gap: 4px; flex: none; }
.card-svcs i { width: 20px; height: 20px; border-radius: 5px; background: #141c27; border: 1px solid var(--line2);
  font-style: normal; font-size: 9px; display: grid; place-items: center; color: var(--dim); }
