*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--texto); font: 400 1rem/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--ciano-texto); text-underline-offset: 3px; }
a:hover { color: var(--lima); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; color: var(--ciano-texto); }
h1, h2, h3 { font-family: var(--f-titulo); margin: 0; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }

.fundo { position: fixed; inset: 0; z-index: -1; background: var(--grad-fundo); pointer-events: none; overflow: hidden; }
.fundo::before { content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(var(--linha) 1px, transparent 1px), linear-gradient(90deg, var(--linha) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(90% 70% at 60% 0%, #000, transparent 75%); }
.fundo i { position: absolute; bottom: -12px; width: 6px; height: 6px; background: var(--lima); opacity: .0; box-shadow: var(--brilho-lima); animation: sobe 14s linear infinite; }
.fundo i:nth-child(2n) { background: var(--ciano); box-shadow: var(--brilho-ciano); animation-duration: 18s; }
@keyframes sobe { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .55; } 90% { opacity: .35; } 100% { transform: translateY(-105vh); opacity: 0; } }

.faixa-demo { position: sticky; top: 0; z-index: 70; display: block; height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 7px 12px; font: 600 .7rem/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; text-align: center;
  color: var(--alerta); background: rgba(1, 16, 21, .94); border-bottom: 1px solid rgba(255, 180, 94, .35); }
.faixa-demo a { color: var(--alerta); }
.faixa-demo[hidden] { display: none; }

.app { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 28px); }
.lateral { display: none; }
.conteudo { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 28px; z-index: 60; height: var(--topo); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; background: rgba(1, 16, 21, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.topo-esq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topo-esq .logo-mini { width: 32px; height: 32px; border-radius: 50%; }
#topo-titulo { font: 700 .95rem/1.1 var(--f-titulo); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topo-usuario { display: flex; align-items: center; gap: 10px; }
.chip-hud { display: none; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--linha-forte); background: rgba(6, 22, 30, .9);
  font: 600 .78rem/1 var(--f-ui); color: var(--texto-2); }
.chip-hud b { color: var(--lima); font-size: .9rem; }
.chip-hud svg { color: var(--lima); }
.icone-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--linha); background: transparent; cursor: pointer; color: var(--texto-2); }
.icone-btn:hover { border-color: var(--lima); color: var(--lima); }
.icone-btn .ponto { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--alerta); }
.avatar-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--lima); background: var(--painel-2); box-shadow: var(--brilho-lima); overflow: hidden; }
#palco { flex: 1; padding: 20px 16px 110px; outline: none; width: 100%; max-width: none; }

#nav-baixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(1, 16, 21, .95); border-top: 1px solid var(--linha-forte); backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
#nav-baixo .nav-item { display: grid; justify-items: center; gap: 3px; padding: 9px 2px 10px; text-decoration: none; color: var(--mudo); font: 600 .66rem/1 var(--f-ui); }
#nav-baixo .nav-item.ativo { color: var(--lima); }
#nav-baixo .nav-item.ativo svg { filter: drop-shadow(0 0 6px rgba(177, 249, 22, .7)); }

.lateral .marca { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; text-decoration: none; color: var(--texto);
  font: 900 1.12rem/1 var(--f-titulo); font-style: italic; letter-spacing: -.02em; }
.lateral .marca img { border-radius: 50%; box-shadow: 0 0 18px rgba(177, 249, 22, .35); }
.lateral .marca small { display: block; margin-top: 4px; font: 600 .6rem/1 var(--f-ui); font-style: normal; letter-spacing: .18em; color: var(--ciano-texto); }
.nav { display: grid; gap: 4px; padding: 8px 12px; }
.nav .nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none;
  color: var(--texto-2); font-weight: 500; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--curva); }
.nav .nav-item:hover { background: rgba(83, 221, 195, .07); color: var(--texto); transform: translateX(3px); }
.nav .nav-item.ativo { color: var(--lima); background: linear-gradient(90deg, rgba(177, 249, 22, .16), rgba(177, 249, 22, .04)); border-color: rgba(177, 249, 22, .55);
  box-shadow: inset 0 0 18px rgba(177, 249, 22, .08), 0 0 16px rgba(177, 249, 22, .18); font-weight: 700; }
.nav .nav-item.ativo::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; background: var(--lima); box-shadow: var(--brilho-lima); }
.nav .nav-item.ativo svg { animation: brilha 2.4s ease-in-out infinite; }
@keyframes brilha { 0%,100% { filter: drop-shadow(0 0 2px rgba(177, 249, 22, .4)); } 50% { filter: drop-shadow(0 0 8px rgba(177, 249, 22, .9)); } }
.console { margin: auto 16px 10px; padding: 12px; border-radius: 14px 14px 26px 14px; border: 2px solid var(--linha-forte);
  background: linear-gradient(160deg, #0A2D35, #06161E); box-shadow: inset 0 0 0 3px rgba(1, 16, 21, .6), 0 0 24px rgba(3, 200, 172, .12); }
.console-tela { display: grid; place-items: center; height: 74px; border-radius: 6px; background: #010A0D; border: 2px solid #021c22; position: relative; overflow: hidden; }
.console-tela::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px); }
.console-tela img { border-radius: 50%; animation: respira 3s ease-in-out infinite; }
@keyframes respira { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.console-botoes { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.console-botoes i { width: 22px; height: 6px; border-radius: 3px; background: rgba(83, 221, 195, .3); }
.console-botoes b { width: 16px; height: 16px; border-radius: 50%; background: var(--lima); box-shadow: var(--brilho-lima); }
.versao { display: flex; align-items: center; gap: 6px; margin: 0 16px 16px; color: var(--mudo); font: 600 .7rem/1 var(--f-ui); letter-spacing: .06em; text-decoration: none; }
.versao:hover { color: var(--lima); }

.ui-titulo { display: flex; align-items: center; gap: 8px; font: 700 .9rem/1.2 var(--f-titulo); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.ui-seta { color: var(--lima); text-shadow: var(--brilho-lima); }
.ui-painel { position: relative; padding: 16px; border-radius: 14px; border: 1px solid var(--linha); background: linear-gradient(180deg, rgba(10, 45, 53, .55), rgba(6, 22, 30, .8)); }
.ui-cantos::before, .ui-cantos::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--lima); pointer-events: none; }
.ui-cantos::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.ui-cantos::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.ui-barra { height: 10px; border-radius: 3px; background: rgba(83, 221, 195, .12); overflow: hidden; border: 1px solid var(--linha); }
.ui-barra b { display: block; height: 100%; width: var(--p); background: var(--grad-marca); box-shadow: var(--brilho-lima); animation: enche 1.1s var(--curva) both; }
@keyframes enche { from { width: 0; } }
.ui-blocos { display: inline-flex; gap: 3px; }
.ui-blocos i { width: 12px; height: 12px; border: 1px solid var(--linha-forte); background: rgba(83, 221, 195, .06); }
.ui-blocos i.feito { background: var(--lima); border-color: var(--lima); box-shadow: 0 0 6px rgba(177, 249, 22, .6); }
.ui-demo { display: inline-block; font: 700 .62rem/1 var(--f-ui); letter-spacing: .14em; color: var(--alerta); border: 1px dashed rgba(255, 180, 94, .6); padding: 4px 6px; border-radius: 5px; vertical-align: middle; }
.ui-pend { display: inline-block; font: 600 .7rem/1.3 var(--f-ui); color: var(--alerta); border: 1px dashed rgba(255, 180, 94, .6); background: rgba(255, 180, 94, .07); padding: 2px 7px; border-radius: 6px; }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--f-titulo); text-decoration: none; background: var(--lima); color: var(--sobre-lima); transition: transform .2s var(--curva), box-shadow .2s; }
.ui-btn:hover { color: var(--sobre-lima); transform: translateY(-2px); box-shadow: var(--brilho-lima); }
.ui-btn.fantasma { background: transparent; color: var(--texto); border: 1px solid var(--linha-forte); }
.ui-btn.fantasma:hover { color: var(--texto); border-color: var(--ciano); box-shadow: var(--brilho-ciano); }
.ui-btn[disabled], .ui-btn[aria-disabled="true"] { background: transparent; color: var(--mudo); border: 1px dashed var(--linha-forte); cursor: not-allowed; box-shadow: none; transform: none; }
.pixel-avatar { image-rendering: pixelated; }
.pixel-avatar .piscar { opacity: 0; animation: pisca 5s steps(1) infinite; }
@keyframes pisca { 0%, 92% { opacity: 0; } 93%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }

.entra > * { animation: entra .6s var(--curva) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }

.chat-fab { position: fixed; right: 16px; bottom: 78px; z-index: 66; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 14px;
  border: 1px solid var(--lima); background: linear-gradient(180deg, rgba(10, 45, 53, .97), rgba(6, 22, 30, .97)); color: var(--texto); font: 700 .92rem/1 var(--f-titulo);
  cursor: pointer; box-shadow: var(--brilho-lima), 0 14px 30px -12px #000; transition: transform .2s var(--curva), box-shadow .2s; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(177, 249, 22, .6), 0 14px 30px -12px #000; }
.chat-fab .fab-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lima); color: var(--sobre-lima); }
.chat-fab .on { width: 9px; height: 9px; border-radius: 50%; background: var(--lima-forte); box-shadow: 0 0 0 0 rgba(59, 245, 10, .6); animation: online 2s infinite; }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
@keyframes online { 70% { box-shadow: 0 0 0 8px rgba(59, 245, 10, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 245, 10, 0); } }
.gaveta-fundo { position: fixed; inset: 0; z-index: 79; background: rgba(1, 8, 11, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.gaveta-fundo.aberta { opacity: 1; }
.gaveta { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 80; width: min(430px, calc(100vw - 24px)); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #082129, var(--bg-2) 30%); border: 1px solid var(--linha-forte);
  transform: translateX(calc(100% + 24px)); transition: transform .38s var(--curva); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(177, 249, 22, .08), 0 0 40px rgba(177, 249, 22, .12); }
.gaveta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-marca); box-shadow: var(--brilho-lima); }
.gaveta.aberta { transform: none; }
@media (max-width: 520px) { .gaveta { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; } }

.hud-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; color: var(--lima);
  border: 1px solid rgba(177, 249, 22, .45); background: radial-gradient(circle at 50% 30%, rgba(177, 249, 22, .2), rgba(1, 16, 21, .85) 70%);
  box-shadow: inset 0 0 12px rgba(177, 249, 22, .12), 0 0 14px rgba(177, 249, 22, .15); }
.hud-ico.ciano { color: var(--ciano-texto); border-color: rgba(83, 221, 195, .5); background: radial-gradient(circle at 50% 30%, rgba(3, 200, 172, .22), rgba(1, 16, 21, .85) 70%); box-shadow: inset 0 0 12px rgba(3, 200, 172, .12); }
.hud-ico.mudo { color: var(--mudo); border-color: var(--linha-forte); background: rgba(1, 16, 21, .7); box-shadow: none; }
.hud-ico.g { width: 52px; height: 52px; border-radius: 14px; }
.ui-painel { background:
    linear-gradient(var(--lima), var(--lima)) left top / 14px 2px no-repeat,
    linear-gradient(var(--lima), var(--lima)) left top / 2px 14px no-repeat,
    linear-gradient(var(--ciano), var(--ciano)) right bottom / 14px 2px no-repeat,
    linear-gradient(var(--ciano), var(--ciano)) right bottom / 2px 14px no-repeat,
    linear-gradient(180deg, rgba(10, 45, 53, .55), rgba(6, 22, 30, .8)); }
.ui-titulo::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; margin-left: 6px; order: 1;
  background: linear-gradient(90deg, var(--linha-forte), rgba(83, 221, 195, .04)); }
.ui-titulo > a, .ui-titulo > .ui-titulo-extra { order: 2; }
.ui-barra { height: 12px; border-radius: 4px; padding: 2px; background: rgba(1, 16, 21, .8); border: 1px solid var(--linha-forte); }
.ui-barra b { border-radius: 2px; background: repeating-linear-gradient(90deg, var(--lima) 0 9px, transparent 9px 12px); box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(177, 249, 22, .7)); }
.hud-diag { background-image: repeating-linear-gradient(135deg, rgba(177, 249, 22, .07) 0 2px, transparent 2px 12px); }
.lateral { background-image: linear-gradient(180deg, rgba(6, 22, 30, .92), rgba(1, 16, 21, .96)); }
.lateral::after { content: ""; display: block; height: 90px; margin-top: -90px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(3, 200, 172, .08) 0 2px, transparent 2px 14px);
  mask-image: linear-gradient(0deg, #000, transparent); -webkit-mask-image: linear-gradient(0deg, #000, transparent); }
.nav .nav-item > svg { width: 32px; height: 32px; padding: 6px; flex: none; border-radius: 9px; border: 1px solid var(--linha); background: rgba(1, 16, 21, .6); }
.nav .nav-item.ativo > svg { border-color: rgba(177, 249, 22, .7); background: rgba(177, 249, 22, .14); }
.nav-sep { margin: 10px 12px 2px; font: 700 .6rem/1 var(--f-ui); letter-spacing: .2em; color: var(--mudo); display: flex; align-items: center; gap: 8px; }
.nav-sep::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.topo { border-bottom: 0; box-shadow: 0 1px 0 var(--linha); }
.topo::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 180px; height: 2px; background: var(--grad-marca); box-shadow: var(--brilho-lima); }
.chip-hud .mini-seg { display: inline-grid; grid-template-columns: repeat(8, 5px); gap: 2px; margin-left: 4px; }
.chip-hud .mini-seg i { height: 8px; border-radius: 1px; background: rgba(83, 221, 195, .18); }
.chip-hud .mini-seg i.on { background: var(--lima); box-shadow: 0 0 4px rgba(177, 249, 22, .8); }
.patente { position: relative; display: inline-grid; place-items: center; width: 64px; height: 72px; flex: none; }
.patente svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(177, 249, 22, .35)); }
.patente b { position: relative; font: 900 1.2rem/1 var(--f-titulo); color: var(--lima); text-shadow: var(--brilho-lima); }
.st-chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .62rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--linha-forte); color: var(--ciano-texto); white-space: nowrap; }
.st-chip::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.st-chip.ui { color: var(--lima); border-color: rgba(177, 249, 22, .5); }
.st-chip.plano { color: var(--mudo); }
.st-chip.espec { color: var(--alerta); border-color: rgba(255, 180, 94, .5); }

.falha { display: grid; gap: 10px; justify-items: start; padding: 28px; border-radius: 14px; border: 1px dashed rgba(255, 180, 94, .6); color: var(--texto-2); }
.falha svg { color: var(--alerta); }


@media (min-width: 760px) {
  .chip-hud { display: inline-flex; }
  #palco { padding: 24px 24px 110px; }
}
@media (min-width: 1000px) {
  .app { grid-template-columns: var(--lateral) 1fr; }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 28px; height: calc(100vh - 28px); border-right: 1px solid var(--linha);
    background: linear-gradient(180deg, rgba(6, 22, 30, .92), rgba(1, 16, 21, .96)); overflow-y: auto; }
  #nav-baixo { display: none; }
  .topo-esq .logo-mini { display: none; }
  .chat-fab { bottom: 20px; right: 20px; }
  #palco { padding: 26px 30px 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fundo i { display: none; }
  .pixel-avatar .piscar { opacity: 0; }
}
