/* Omni · Avanço Commerce — mesma paleta do tema "Avanço 2.0" dos sistemas */
:root {
  --fundo: #06040a;
  --superficie: rgb(20 15 30 / .55);
  --borda: rgb(255 255 255 / .07);
  --texto: #f3eefc;
  --suave: #a99bc4;
  --apagado: #6f6489;
  --primaria: #7c4ddb;
  --violeta: #9b6cf0;
  --lilas: #e2d6fb;
  --indigo: #5b4fe6;
  --ok: #4ade80;
  --erro: #f87171;
  --breve: #fbbf24;
  --grad: linear-gradient(135deg, #b892f7 0%, #7c4ddb 50%, #5b4fe6 100%);
  --grad-texto: linear-gradient(100deg, #ffffff 0%, #e6dbff 40%, #b892f7 100%);
  --raio: 22px;
  --mov: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 15px/1.55 Inter, system-ui, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
  overflow-x: hidden;
}
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
::selection { background: rgb(155 108 240 / .45); color: #fff; }

/* ---------- fundo: rede de partículas + aurora + grade ---------- */
#rede { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.aurora {
  position: fixed; inset: -25%; z-index: -3; pointer-events: none;
  background:
    radial-gradient(36% 30% at 78% 10%, rgb(124 77 219 / .32), transparent 70%),
    radial-gradient(30% 28% at 10% 30%, rgb(91 79 230 / .18), transparent 70%),
    radial-gradient(34% 30% at 55% 95%, rgb(155 108 240 / .16), transparent 70%);
  animation: aurora 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) rotate(-4deg) scale(1.02); }
}
.grade {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(18px, 5vw, 56px);
  animation: entrar .7s var(--mov) both;
}
.marca { display: flex; align-items: center; gap: 16px; }
.logo { height: 54px; width: auto; filter: drop-shadow(0 0 18px rgb(155 108 240 / .35)); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; filter: drop-shadow(0 0 18px rgb(155 108 240 / .35)); }
.logo-txt b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(90deg, #fff, var(--lilas)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-txt small { font: 600 10.5px/1.4 "JetBrains Mono", monospace; letter-spacing: .32em; text-transform: uppercase; color: var(--suave); }
@media (max-width: 640px) { .logo-txt b { font-size: 19px; } }
.selo {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .28em;
  color: var(--lilas); padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgb(124 77 219 / .14); border: 1px solid rgb(155 108 240 / .35);
  box-shadow: 0 0 24px -6px rgb(124 77 219 / .6) inset;
}
.selo-ponto { width: 6px; height: 6px; border-radius: 50%; background: var(--violeta); box-shadow: 0 0 10px var(--violeta); animation: piscar 2.4s ease-in-out infinite; }
.relogio { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hora { font-size: 22px; letter-spacing: .04em; color: var(--lilas); }
.data { font-size: 12.5px; color: var(--suave); }
.data::first-letter { text-transform: uppercase; }

.topo, .rodape { width: 100%; max-width: 1240px; margin: 0 auto; }

/* ---------- herói ---------- */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 4vh clamp(18px, 5vw, 56px) 40px; }
.heroi { margin-bottom: 44px; animation: entrar .8s .08s var(--mov) both; }
.sobretitulo { margin: 0 0 10px; color: var(--violeta); font-size: 13px; letter-spacing: .06em; }
h1 {
  margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05;
  background: var(--grad-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitulo { margin: 14px 0 22px; max-width: 560px; color: var(--suave); font-size: 16px; }
.resumo {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: var(--superficie); border: 1px solid var(--borda); backdrop-filter: blur(12px);
  font-size: 13.5px; color: var(--lilas);
}
.resumo-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--apagado); }
.resumo.ok .resumo-ponto { background: var(--ok); box-shadow: 0 0 0 0 rgb(74 222 128 / .6); animation: pulso 2s infinite; }
.resumo.alerta .resumo-ponto { background: var(--erro); box-shadow: 0 0 0 0 rgb(248 113 113 / .6); animation: pulso-erro 2s infinite; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; perspective: 1400px; }

.card {
  --x: 50%; --y: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; min-height: 290px;
  padding: 26px; border-radius: var(--raio);
  background: var(--superficie); backdrop-filter: blur(16px) saturate(1.2);
  color: inherit; text-decoration: none; isolation: isolate; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--mov), box-shadow .5s var(--mov);
  box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 24px 50px -30px rgb(0 0 0 / .9);
  animation: entrar .7s var(--mov) both;
  outline: none;
}
/* borda em gradiente (máscara) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(140deg, rgb(190 160 255 / .38), rgb(255 255 255 / .05) 40%, rgb(255 255 255 / .03) 60%, rgb(124 77 219 / .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background .4s;
}
/* holofote que segue o mouse */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x) var(--y), rgb(155 108 240 / .2), transparent 45%);
}
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card:hover, .card:focus-visible { box-shadow: 0 1px 0 rgb(255 255 255 / .07) inset, 0 30px 70px -30px rgb(124 77 219 / .55); }
.card:hover::before, .card:focus-visible::before { background: linear-gradient(140deg, #b892f7, rgb(255 255 255 / .08) 40%, rgb(255 255 255 / .05) 60%, #5b4fe6); }

.card-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.icone {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(145deg, rgb(124 77 219 / .3), rgb(91 79 230 / .12));
  border: 1px solid rgb(155 108 240 / .35);
  box-shadow: 0 0 30px -8px rgb(124 77 219 / .7), 0 1px 0 rgb(255 255 255 / .12) inset;
  color: var(--lilas);
  transition: transform .5s var(--mov);
}
.icone svg { width: 28px; height: 28px; }
.card:hover .icone { transform: translateZ(30px) scale(1.06); }

.estado {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font: 600 11.5px/1 Inter, sans-serif; letter-spacing: .02em;
  background: rgb(255 255 255 / .04); border: 1px solid var(--borda); color: var(--suave);
}
.estado i { width: 7px; height: 7px; border-radius: 50%; background: var(--apagado); }
.estado.online { color: #b9f6cf; border-color: rgb(74 222 128 / .3); background: rgb(74 222 128 / .08); }
.estado.online i { background: var(--ok); animation: pulso 2s infinite; }
.estado.offline { color: #fecaca; border-color: rgb(248 113 113 / .3); background: rgb(248 113 113 / .08); }
.estado.offline i { background: var(--erro); }
.estado.breve { color: #fde68a; border-color: rgb(251 191 36 / .3); background: rgb(251 191 36 / .08); }
.estado.breve i { background: var(--breve); }

.card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.card p { margin: 0 0 18px; color: var(--suave); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 8px; color: var(--lilas); background: rgb(124 77 219 / .12); border: 1px solid rgb(155 108 240 / .18); }

.card-rodape {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--borda);
}
.endereco { font-size: 12px; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abrir {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; color: #fff;
  background: var(--grad); box-shadow: 0 8px 24px -10px rgb(124 77 219 / .9);
  transition: transform .3s var(--mov), box-shadow .3s;
}
.abrir svg { width: 15px; height: 15px; transition: transform .3s var(--mov); }
.card:hover .abrir { box-shadow: 0 10px 30px -8px rgb(155 108 240 / 1); }
.card:hover .abrir svg { transform: translate(2px, -2px); }
.atalho { position: absolute; right: 18px; bottom: 76px; font-size: 64px; font-weight: 800; letter-spacing: -.05em; color: rgb(255 255 255 / .03); pointer-events: none; }

.card.desativado { cursor: default; }
.card.desativado .abrir { background: rgb(255 255 255 / .06); box-shadow: none; color: var(--suave); }
.card.desativado .icone { filter: saturate(.6); }

/* esqueleto enquanto carrega */
.card.carregando { min-height: 290px; }
.card.carregando::after { opacity: 1; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .04) 50%, transparent 70%); background-size: 200% 100%; animation: brilho 1.4s linear infinite; }

/* ---------- rodapé ---------- */
.rodape {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px clamp(18px, 5vw, 56px) 26px; color: var(--apagado); font-size: 12.5px;
}
kbd { font: 500 11px "JetBrains Mono", monospace; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--borda); background: rgb(255 255 255 / .04); color: var(--suave); }

/* ---------- animações ---------- */
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgb(74 222 128 / .55); } 70% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); } }
@keyframes pulso-erro { 0% { box-shadow: 0 0 0 0 rgb(248 113 113 / .55); } 70% { box-shadow: 0 0 0 8px rgb(248 113 113 / 0); } 100% { box-shadow: 0 0 0 0 rgb(248 113 113 / 0); } }
@keyframes piscar { 50% { opacity: .35; } }
@keyframes brilho { to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .logo { height: 34px; }
  .relogio .data { display: none; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .dica { display: none; }
  .topo { padding: 16px 16px 8px; }
  main { padding: 12px 16px 28px; }
  .heroi { margin-bottom: 24px; }
  .subtitulo { font-size: 15px; margin: 10px 0 16px; }
  .card { min-height: 0; padding: 20px; transform: none !important; }
  .card-topo { margin-bottom: 14px; }
  .icone { width: 46px; height: 46px; border-radius: 13px; }
  .icone svg { width: 23px; height: 23px; }
  .card h2 { font-size: 19px; }
  .card p { font-size: 14px; margin-bottom: 14px; }
}
@media (max-width: 360px) {
  .selo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { transform: none !important; }
}
