/* ============================================
   LOGIN — mesmo vocabulário visual do mapa
   (fundo #0d0e16, ciano #00d9ff, verde #00ff88, vermelho #ff2e63)
   ============================================ */
:root {
  --bg: #0b0c14;
  --painel: rgba(15, 16, 26, .82);
  --borda: rgba(255, 255, 255, .08);
  --ciano: #00d9ff;
  --verde: #00ff88;
  --amar: #ffbe0b;
  --verm: #ff2e63;
  --txt: #e6e8ef;
  --txt2: #8b93a7;
  --txt3: #565c72;
  --raio: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 78% 40%, #0f1a2a 0%, var(--bg) 60%);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- fundo animado ---------- */
#rede { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#rede .r { fill: none; stroke-linecap: round; }
#rede .base { stroke: rgba(0, 217, 255, .07); stroke-width: 1; }
#rede .on  { stroke: rgba(0, 255, 136, .28); stroke-width: 1.4; stroke-dasharray: 8 7; animation: fluxo 3s linear infinite; }
#rede .wk  { stroke: rgba(255, 190, 11, .42); stroke-width: 1.4; stroke-dasharray: 6 6; animation: fluxo 2.4s linear infinite; }
#rede .off { stroke: rgba(255, 46, 99, .55); stroke-width: 1.6; stroke-dasharray: 3 7; animation: pisca 1.6s ease-in-out infinite; }
#rede .n   { fill: rgba(0, 217, 255, .35); }
@keyframes fluxo { to { stroke-dashoffset: -45; } }
@keyframes pisca { 50% { opacity: .25; } }
.vinheta {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,12,20,.94) 0%, rgba(11,12,20,.55) 45%, rgba(11,12,20,.25) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ---------- layout ---------- */
.palco {
  position: relative; z-index: 2; min-height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
  align-items: center; gap: 64px;
  max-width: 1160px; margin: 0 auto; padding: 48px 40px;
}

/* ---------- marca ---------- */
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.logo svg { width: 46px; height: 46px; }
.logo .anel { fill: rgba(0, 217, 255, .1); stroke: rgba(0, 217, 255, .45); stroke-width: 1.2; }
.logo .fibra { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 4; animation: fluxo 2.2s linear infinite; }
.logo .f2 { stroke: var(--verde); }
.logo .pino { fill: rgba(0, 217, 255, .16); stroke: var(--ciano); stroke-width: 1.8; stroke-linejoin: round; }
.logo .nucleo { fill: #fff; filter: drop-shadow(0 0 6px var(--ciano)); }
.logo .onda { fill: none; stroke: var(--verde); stroke-width: 1.4; transform-origin: 24px 20.6px; animation: onda 2.4s ease-out infinite; }
@keyframes onda { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.logo b { display: block; font-size: 19px; font-weight: 800; color: var(--ciano); letter-spacing: .2px; }
.logo small { display: block; font-size: 10.5px; font-weight: 700; color: var(--txt3); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 2px; }

.marca h1, .marca .tit { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.04; font-weight: 800; letter-spacing: -1.2px; }
.marca h1 span, .marca .tit span { white-space: nowrap;
  background: linear-gradient(90deg, var(--ciano), var(--verde));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.marca .lead { margin-top: 18px; max-width: 440px; font-size: 15.5px; line-height: 1.6; color: var(--txt2); }
.leg { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; }
.leg li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--txt2); }
.leg i { width: 22px; height: 0; border-top: 2.5px dashed; }
.leg .on { color: var(--verde); } .leg .wk { color: var(--amar); } .leg .off { color: var(--verm); }

/* ---------- cartão ---------- */
.cartao {
  background: var(--painel);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 34px 32px 26px;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  position: relative;
}
.cartao::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ciano), transparent);
}
.topo { display: flex; align-items: center; gap: 10px; }
.topo h2 { font-size: 20px; font-weight: 800; letter-spacing: -.2px; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(0,255,136,.6); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(0,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); } }
.dica { font-size: 13px; color: var(--txt2); margin: 6px 0 22px; }

.msg { font-size: 12.5px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid; }
.msg.erro { color: #ff8aa6; background: rgba(255, 46, 99, .1); border-color: rgba(255, 46, 99, .35); animation: treme .35s; }
.msg.ok   { color: #7dffc0; background: rgba(0, 255, 136, .07); border-color: rgba(0, 255, 136, .25); }
.msg.info { color: #9fe9ff; background: rgba(0, 217, 255, .07); border-color: rgba(0, 217, 255, .25); }
.msg code { display: block; margin-top: 8px; padding: 8px; background: rgba(0,0,0,.35); border-radius: 6px; font: 11.5px ui-monospace, Menlo, Consolas, monospace; color: var(--txt); word-break: break-all; }
@keyframes treme { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.campo { display: block; margin-bottom: 16px; }
.campo > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--txt2); margin-bottom: 7px; }
.ctl { position: relative; display: flex; align-items: center; }
.ctl > svg { position: absolute; left: 13px; width: 17px; height: 17px; fill: none; stroke: var(--txt3); stroke-width: 1.8; pointer-events: none; transition: stroke .2s; }
.ctl input {
  width: 100%; height: 46px; padding: 0 44px 0 42px;
  background: rgba(255, 255, 255, .045); color: var(--txt);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px;
  font-size: 14.5px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.ctl input:hover { border-color: rgba(0, 217, 255, .28); }
.ctl input:focus { border-color: var(--ciano); background: rgba(0, 217, 255, .06); box-shadow: 0 0 0 3px rgba(0, 217, 255, .14); }
.ctl:focus-within > svg { stroke: var(--ciano); }
.ctl input:-webkit-autofill { -webkit-text-fill-color: var(--txt); -webkit-box-shadow: 0 0 0 40px #12182a inset; caret-color: var(--txt); }
.olho { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.olho svg { width: 18px; height: 18px; fill: none; stroke: var(--txt3); stroke-width: 1.8; }
.olho:hover svg, .olho.ativo svg { stroke: var(--ciano); }
.olho:focus-visible { outline: 2px solid var(--ciano); }
.caps[hidden] { display: none; }
.caps { display: block; margin-top: 6px; font-size: 11.5px; font-style: normal; color: var(--amar); }

.lembrar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--txt2); cursor: pointer; user-select: none; margin: 4px 0 22px; }
.lembrar input { position: absolute; opacity: 0; }
.lembrar .chk { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .22); display: grid; place-items: center; transition: .15s; flex-shrink: 0; }
.lembrar input:checked + .chk { background: var(--ciano); border-color: var(--ciano); }
.lembrar input:checked + .chk::after { content: ""; width: 9px; height: 5px; border: 2px solid #06121a; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lembrar input:focus-visible + .chk { outline: 2px solid var(--ciano); outline-offset: 2px; }

.entrar {
  width: 100%; height: 48px; border: 0; border-radius: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 800; letter-spacing: .3px; color: #041018;
  background: linear-gradient(90deg, var(--ciano), #3cf2c4);
  box-shadow: 0 10px 28px rgba(0, 217, 255, .25);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.entrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.entrar:hover { filter: brightness(1.07); box-shadow: 0 14px 34px rgba(0, 217, 255, .35); }
.entrar:hover svg { transform: translateX(3px); }
.entrar:active { transform: translateY(1px); }
.entrar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.entrar.carregando { pointer-events: none; filter: saturate(.6); }
.entrar.carregando svg { animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.rodape { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--borda); font-size: 11.5px; color: var(--txt3); }
.assinatura { margin-top: 14px; text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt3); }
.seg.ok { color: #3fd68e; } .seg.alerta { color: var(--amar); cursor: help; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .palco { grid-template-columns: 1fr; gap: 28px; padding: 28px 16px; max-width: 460px; }
  .marca h1, .marca .lead, .leg { display: none; }
  .logo { margin-bottom: 0; justify-content: center; }
  .vinheta { background: rgba(11, 12, 20, .7); }
  .cartao { padding: 28px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- verificação em duas etapas ---------- */
.quem { font-size: 13px; color: var(--txt); margin: -8px 0 14px; }
.otp { font: 700 22px ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: 4px; text-align: center; padding-right: 14px !important; }
.ajuda2 { display: block; margin-top: 7px; font-size: 11.5px; font-style: normal; color: var(--txt3); line-height: 1.4; }
.voltar { display: block; width: 100%; margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--txt2); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.voltar:hover { color: var(--ciano); }
.passos { margin: 0 0 14px 18px; font-size: 12.5px; color: var(--txt2); line-height: 1.55; }
.qr { width: 190px; height: 190px; margin: 0 auto 10px; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.chave { font-size: 12px; color: var(--txt2); margin-bottom: 14px; text-align: center; }
.chave summary { cursor: pointer; }
.chave code { display: block; margin-top: 8px; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.35); color: var(--txt); font: 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; word-break: break-all; }
.rec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.rec code { padding: 9px; text-align: center; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.15); font: 700 14px ui-monospace, Menlo, Consolas, monospace; color: var(--txt); letter-spacing: 1px; }
.rec-acoes { display: flex; gap: 8px; }
.rec-acoes .voltar { margin-top: 0; border: 1px solid var(--borda); border-radius: 9px; padding: 8px; }
@media print { #rede, .vinheta, .marca, .rec-acoes, .entrar, .rodape { display: none !important; } .cartao { box-shadow: none; border: 0; } body { background: #fff; color: #000; } .rec code { color: #000; } }

.rodape .versao { opacity: .75; }

/* ============================================
   VISUAIS ALTERNATIVOS — body.t-b (caminho da luz) e body.t-d (minimalista)
   O visual alterna a cada abertura (login.php); "◐ visual" no rodapé troca na hora.
   ============================================ */
#fibras, .diag { display: none; }
.trocar { background: none; border: 0; padding: 0; font: inherit; color: var(--txt3); cursor: pointer; }
.trocar:hover { color: var(--ciano); }
@keyframes luz { to { stroke-dashoffset: -260; } }

/* ---------- B · dividida: texto + caminho da luz à esquerda, formulário em painel sólido à direita ---------- */
body.t-b { background: #0b0c14; }
body.t-b #rede { opacity: .35; }
body.t-b .vinheta { background: radial-gradient(ellipse 60% 70% at 30% 60%, rgba(0,217,255,.07), transparent 70%), linear-gradient(90deg, rgba(11,12,20,.6), rgba(11,12,20,.85)); }
body.t-b .palco { max-width: none; margin: 0; padding: 0; gap: 0; min-height: 100vh; grid-template-columns: minmax(0, 1fr) 460px; align-items: stretch; }
body.t-b .marca { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; }
body.t-b .logo { margin-bottom: 48px; }
body.t-b .marca h1, body.t-b .marca .tit { font-size: clamp(30px, 3.2vw, 42px); }
body.t-b .marca .lead { font-size: 14.5px; }
body.t-b .diag { display: block; width: 100%; max-width: 680px; height: auto; margin-top: 34px; overflow: visible; }
body.t-b .leg { margin-top: 26px; }
body.t-b .cartao { border-radius: 0; border: 0; border-left: 1px solid rgba(255,255,255,.06); background: #10121b; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding: 0 52px; display: flex; flex-direction: column; justify-content: center; }
body.t-b .cartao::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--ciano), transparent); }
body.t-b .topo h2 { font-size: 24px; }
body.t-b .msg.ok { border: 0; border-left: 3px solid var(--verde); border-radius: 0 8px 8px 0; }
body.t-b .ctl input { background: #0b0c14; }
body.t-b .rodape { flex-direction: column; gap: 6px; border-top: 0; }
body.t-b .assinatura { text-align: left; }

/* diagrama OLT → splitter → CTOs → clientes (a luz corre; a 3ª CTO oscila entre sinal fraco e rompimento) */
.diag path { fill: none; stroke-linecap: round; }
.diag .tr { stroke: var(--ciano); stroke-width: 3; }
.diag .ok { stroke: var(--ciano); stroke-width: 2.4; }
.diag .wk { stroke: var(--amar); stroke-width: 2.4; }
.diag .cl { stroke: var(--verde); stroke-width: 2; }
.diag .rp { stroke: var(--verm); stroke-width: 2; stroke-dasharray: 5 5; animation: fluxo 1.4s linear infinite; }
.diag .lz { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 10 250; opacity: .85; filter: drop-shadow(0 0 4px var(--ciano)); animation: luz 2.6s linear infinite; }
.diag .cl.lz { animation-delay: .9s; } .diag .ok.lz, .diag .wk.lz { animation-delay: .45s; }
.diag .olt { fill: #0d1a24; stroke: var(--ciano); stroke-width: 1.6; }
.diag text { font: 10px ui-monospace, Menlo, Consolas, monospace; fill: var(--txt3); text-anchor: middle; }
.diag .olt-t { fill: var(--ciano); font-weight: 800; }
.diag .v { text-anchor: start; font-size: 11px; fill: var(--txt2); } .diag .rpt { fill: #ff8aa6; animation: pisca 1.6s ease-in-out infinite; }
.diag .spl { fill: #0b0c14; stroke: var(--ciano); stroke-width: 2; }
.diag .cto { fill: #0d1a14; stroke: var(--verde); stroke-width: 1.8; }
.diag .cto.c3 { fill: #1f1a08; stroke: var(--amar); animation: c3 5s ease-in-out infinite; }
.diag .onu { fill: var(--verde); } .diag .onu.off { fill: var(--verm); animation: pisca 1.6s ease-in-out infinite; }
@keyframes c3 { 0%, 45% { stroke: var(--amar); fill: #1f1a08; } 55%, 90% { stroke: var(--verm); fill: #2a0d16; } }

/* ---------- D · minimalista: logo e frase no centro, campos arredondados, fibras coloridas embaixo ---------- */
body.t-d { background: #06070b; }
body.t-d #rede { display: none; }
body.t-d .vinheta { background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(0,217,255,.06), transparent 70%); }
body.t-d #fibras { display: block; position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 42vh; z-index: 0; }
#fibras path { fill: none; stroke-linecap: round; }
#fibras .fb { stroke-width: 1.6; opacity: .55; }
#fibras .f1 { stroke: #00d9ff; } #fibras .f2 { stroke: #2f7de1; } #fibras .f3 { stroke: #f08a24; } #fibras .f4 { stroke: #2fa84f; opacity: .3; }
#fibras .fl { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 18 1400; opacity: .9; animation: luzD 6s linear infinite; }
#fibras .fl.f1 { filter: drop-shadow(0 0 5px #00d9ff); } #fibras .fl.f2 { animation-delay: -2s; filter: drop-shadow(0 0 5px #2f7de1); } #fibras .fl.f3 { animation-delay: -4s; filter: drop-shadow(0 0 5px #f08a24); }
@keyframes luzD { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1418; } }
body.t-d .palco { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 22px; max-width: 420px; padding: 48px 20px 30vh; }
body.t-d .marca { text-align: center; }
body.t-d .logo { flex-direction: column; gap: 10px; margin-bottom: 8px; }
body.t-d .logo svg { width: 58px; height: 58px; }
body.t-d .logo b { font-size: 24px; color: #fff; }
body.t-d .marca h1 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--txt2); }
body.t-d .marca h1 br { display: none; }
body.t-d .marca h1 span { background: none; color: var(--txt2); -webkit-background-clip: initial; background-clip: initial; white-space: normal; }
body.t-d .marca h1 span::before { content: " "; }
body.t-d .lead, body.t-d .leg { display: none; }
body.t-d .cartao { width: 340px; max-width: 100%; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
body.t-d .cartao::before, body.t-d .topo, body.t-d .dica, body.t-d .campo > span { display: none; }
body.t-d .msg { text-align: center; border: 0; background: none; padding: 0 0 4px; }
body.t-d .msg.ok::before { content: "✓ "; }
body.t-d .campo { margin-bottom: 10px; }
body.t-d .ctl input { height: 46px; border-radius: 23px; background: rgba(255,255,255,.04); padding-left: 44px; }
body.t-d .lembrar { justify-content: center; margin: 8px 0 16px; font-size: 12.5px; }
body.t-d .entrar { border-radius: 23px; height: 46px; }
body.t-d .rodape { justify-content: center; gap: 6px 16px; border-top: 0; font-size: 11px; color: #4b5164; }
body.t-d .assinatura { color: #3b4050; }

@media (max-width: 900px) {
  body.t-b .palco { grid-template-columns: 1fr; padding: 28px 16px; max-width: 460px; margin: 0 auto; }
  body.t-b .marca { padding: 0; }
  body.t-b .diag { display: none; }
  body.t-b .cartao { border-left: 0; border-radius: var(--raio); padding: 28px 22px 22px; border: 1px solid var(--borda); }
  body.t-b .cartao::before { display: none; }
  body.t-d .palco { padding-bottom: 24vh; }
  body.t-d #fibras { height: 30vh; }
}


/* ---------- cenas do lado esquerdo (frase + diagrama trocam a cada 7 s) ---------- */
.cenas { display: grid; }
.cena { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease; pointer-events: none; }
.cena.on { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .25s; }
.cena .lead, .cena .diag, .cena .leg { transition: opacity .9s ease .1s, transform .9s ease .1s; }
.cena:not(.on) .diag { transform: translateX(-18px); }
.cena-nav { display: flex; gap: 8px; margin-top: 30px; }
.cena-nav button { width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; overflow: hidden; }
.cena-nav button::after { content: ""; position: absolute; inset: 0; background: var(--ciano); transform: scaleX(0); transform-origin: left; }
.cena-nav button.on { width: 40px; }
.cena-nav button.on::after { animation: barra 7s linear forwards; }
.cena-nav button:hover { background: rgba(255,255,255,.25); }
@keyframes barra { to { transform: scaleX(1); } }
body.t-b .cena .diag { display: block; width: 100%; max-width: 680px; height: auto; margin-top: 34px; overflow: visible; }
body.t-b .cena .leg { margin-top: 26px; }
.cena .lead { min-height: 3.2em; }

/* cena 2 · OLT → CEO → CTO → casa */
.diag .ceo { fill: #0b1a24; stroke: var(--ciano); stroke-width: 3; }
.diag .casa { fill: #0d1a14; stroke: var(--verde); stroke-width: 1.8; stroke-linejoin: round; }
.diag .km { fill: var(--txt2); font-size: 10.5px; }
.diag .lz.l2 { animation-delay: .8s; } .diag .lz.l3 { animation-delay: 1.6s; }
/* cena 3 · rompimento */
.diag .faixa { fill: rgba(255,46,99,.1); stroke: rgba(255,46,99,.5); stroke-dasharray: 4 3; animation: pisca 1.6s ease-in-out infinite; }
.diag .x { stroke: var(--verm); stroke-width: 3.2; animation: pisca 1.2s ease-in-out infinite; }
.diag .cto.off { fill: #2a0d16; stroke: var(--verm); }
.diag text.rpt { fill: #ff8aa6; }
/* cena 4 · sinal caindo (a curva se desenha quando a cena entra) */
.diag .grade { stroke: rgba(255,255,255,.06); }
.diag .lim { stroke: var(--amar); stroke-dasharray: 6 5; opacity: .7; }
.diag .limt { fill: var(--amar); text-anchor: end; font-weight: 700; } .diag .limt.s { text-anchor: start; }
.diag .area { fill: rgba(0,217,255,.08); stroke: none; }
.diag .curva { stroke: var(--ciano); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cena.on .diag .curva { animation: desenha 2.6s ease-out .5s forwards; }
.diag .alerta { fill: var(--amar); opacity: 0; }
.cena.on .diag .alerta { animation: aparece .4s ease 3s forwards, pulsoA 1.6s ease-in-out 3.4s infinite; }
.diag .wkt { fill: var(--amar); }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes aparece { to { opacity: 1; } }
@keyframes pulsoA { 50% { opacity: .35; } }
/* cena 5 · rastreio caixa a caixa (a fibra acende da CTO até a OLT) */
.diag .base { stroke: rgba(0,217,255,.25); stroke-width: 2; }
.diag .trilha { stroke: var(--amar); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(255,190,11,.7)); }
.cena.on .diag .trilha { animation: desenha 3.4s linear .4s forwards; }
.diag .cx { fill: #10121b; stroke: #3a4256; stroke-width: 2; }
.cena.on .diag .cx { animation: acende .5s ease forwards; }
.cena.on .diag .k1 { animation-delay: .3s; } .cena.on .diag .k2 { animation-delay: 1.1s; } .cena.on .diag .k3 { animation-delay: 1.9s; } .cena.on .diag .k4 { animation-delay: 2.7s; } .cena.on .diag .k5 { animation-delay: 3.6s; }
@keyframes acende { to { stroke: var(--amar); fill: #1f1a08; } }

@media (max-width: 900px) { .cenas, .cena-nav { display: none; } }
