/* GoldLink — app do cliente. Visual de operadora: topo escuro com a marca
   dourada, cartões brancos arredondados, barra de abas embaixo. */
:root {
  color-scheme: light;
  --ouro: #ffc400; --ouro-2: #f5a300; --ouro-tinta: #8a5a00; --ouro-suave: #fff6d6;
  --noite: #0b0e14; --noite-2: #141a24; --noite-3: #1e2633;
  --fundo: #f2f3f6; --cartao: #ffffff; --cartao-2: #f7f8fa;
  --texto: #12151b; --texto-2: #4f5866; --mudo: #858d99; --borda: #e4e7ec;
  --ok: #12804a; --ok-suave: #e3f5eb; --aviso: #a86b00; --aviso-suave: #fff2d6;
  --erro: #c9302c; --erro-suave: #fde8e7; --info: #2a78d6; --info-suave: #e6f0fc;
  --s1: #2a78d6; --s2: #eb6834; --grade: #eceef1; --eixo: #c9ced4;
  --sombra: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --raio: 20px; --raio-p: 14px;
  --topo-seguro: env(safe-area-inset-top, 0px); --base-segura: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fundo: #0b0e14; --cartao: #151a23; --cartao-2: #1b2230; --texto: #f1f2f4; --texto-2: #b9c0cb; --mudo: #8a939f; --borda: #262e3b;
    --ouro-tinta: #ffd24d; --ouro-suave: #2a2410; --ok: #3fbf7f; --ok-suave: #12271c; --aviso: #f0b429; --aviso-suave: #2b2210;
    --erro: #ff6b66; --erro-suave: #2c1616; --info: #6aa8f0; --info-suave: #142236;
    --s1: #3987e5; --s2: #d95926; --grade: #222a36; --eixo: #353d4a;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fundo: #0b0e14; --cartao: #151a23; --cartao-2: #1b2230; --texto: #f1f2f4; --texto-2: #b9c0cb; --mudo: #8a939f; --borda: #262e3b;
  --ouro-tinta: #ffd24d; --ouro-suave: #2a2410; --ok: #3fbf7f; --ok-suave: #12271c; --aviso: #f0b429; --aviso-suave: #2b2210;
  --erro: #ff6b66; --erro-suave: #2c1616; --info: #6aa8f0; --info-suave: #142236;
  --s1: #3987e5; --s2: #d95926; --grade: #222a36; --eixo: #353d4a;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--fundo); }
body {
  margin: 0; min-height: 100dvh; background: var(--fundo); color: var(--texto);
  font: 15px/1.45 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 8px; }

#app { max-width: 560px; margin: 0 auto; padding-bottom: calc(92px + var(--base-segura)); min-height: 100dvh; }
#app.sem-abas { padding-bottom: 0; }

.abertura { min-height: 100dvh; display: grid; place-items: center; background: var(--noite); }
.abertura img { width: 180px; animation: pulsar 1.4s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .55; } }

/* ---------- topo escuro (estilo operadora) ---------- */
.topo {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 196, 0, .22), transparent 55%),
              radial-gradient(80% 60% at 0% 100%, rgba(245, 163, 0, .12), transparent 60%), var(--noite);
  padding: calc(14px + var(--topo-seguro)) 20px 76px; border-radius: 0 0 28px 28px;
}
.topo.curto { padding-bottom: 22px; }
.topo::after { content: ''; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 196, 0, .16); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.topo-logo { height: 26px; width: auto; }
.topo-acoes { display: flex; gap: 8px; }
.btn-redondo {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: #fff;
}
.btn-redondo svg { width: 22px; height: 22px; }
.selo { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ouro); color: #1a1300; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--noite); }
.saudacao { position: relative; z-index: 1; margin-top: 22px; }
.saudacao small { color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 500; }
.saudacao h1 { margin: 2px 0 10px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .09); color: #fff; }
.chip .ponto { width: 8px; height: 8px; border-radius: 50%; background: #3fd98a; box-shadow: 0 0 0 3px rgba(63, 217, 138, .22); }
.chip.ruim .ponto { background: #ff6b66; box-shadow: 0 0 0 3px rgba(255, 107, 102, .25); }
.chip.ouro { background: linear-gradient(135deg, var(--ouro), var(--ouro-2)); color: #1a1300; }
.topo-titulo { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.topo-titulo h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.voltar { margin-left: -8px; }

.corpo { padding: 0 16px; }
.sobe { margin-top: -56px; position: relative; z-index: 2; }
.corpo > * + * { margin-top: 14px; }
.secao-titulo { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 4px 10px; }
.secao-titulo h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.secao-titulo a, .link { color: var(--ouro-tinta); font-weight: 700; font-size: 13.5px; text-decoration: none; background: none; border: 0; padding: 0; }

/* ---------- cartões ---------- */
.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.cartao.plano { padding: 0; overflow: hidden; }
.rotulo { font-size: 12.5px; font-weight: 600; color: var(--mudo); text-transform: uppercase; letter-spacing: .06em; }
.valor-grande { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.valor-grande small { font-size: 18px; font-weight: 700; margin-right: 2px; }
.fatura-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pilula { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pilula svg { width: 14px; height: 14px; }
.pilula.ok { background: var(--ok-suave); color: var(--ok); }
.pilula.aviso { background: var(--aviso-suave); color: var(--aviso); }
.pilula.erro { background: var(--erro-suave); color: var(--erro); }
.pilula.info { background: var(--info-suave); color: var(--info); }
.pilula.neutra { background: var(--cartao-2); color: var(--texto-2); }
.sub { color: var(--texto-2); font-size: 14px; }
.botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ouro { background: linear-gradient(135deg, var(--ouro), var(--ouro-2)); color: #1a1300; box-shadow: 0 6px 16px rgba(245, 163, 0, .28); }
.btn-escuro { background: var(--noite); color: #fff; }
:root[data-theme="dark"] .btn-escuro { background: var(--noite-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-escuro { background: var(--noite-3); } }
.btn-claro { background: var(--cartao-2); color: var(--texto); border: 1px solid var(--borda); }
.btn-perigo { background: var(--erro-suave); color: var(--erro); }
.btn-largo { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.botoes .btn { padding: 0 10px; white-space: nowrap; font-size: 14.5px; }

/* alerta de destaque (aviso da central / fatura vencida) */
.faixa { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--raio-p); text-decoration: none; }
.faixa .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.faixa .ic svg { width: 21px; height: 21px; }
.faixa b { display: block; font-size: 14.5px; }
.faixa span { font-size: 13.5px; color: var(--texto-2); }
.faixa.erro { background: var(--erro-suave); } .faixa.erro .ic { background: var(--erro); color: #fff; }
.faixa.aviso { background: var(--aviso-suave); } .faixa.aviso .ic { background: var(--aviso); color: #fff; }
.faixa.info { background: var(--info-suave); } .faixa.info .ic { background: var(--info); color: #fff; }
.faixa.ouro { background: var(--ouro-suave); } .faixa.ouro .ic { background: var(--ouro); color: #1a1300; }

/* grade de atalhos */
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 8px; }
.atalho { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; border: 0; background: none; text-decoration: none; text-align: center; font-size: 12px; font-weight: 600; color: var(--texto); border-radius: 14px; }
.atalho .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--ouro-suave); color: var(--ouro-tinta); }
.atalho .ic svg { width: 24px; height: 24px; }
.atalho:active .ic { transform: scale(.94); }

/* plano */
.plano-cabeca { padding: 18px; background: linear-gradient(135deg, var(--noite-2), var(--noite-3)); color: #fff; display: flex; align-items: center; gap: 14px; }
.plano-cabeca .vel { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plano-cabeca .vel small { font-size: 14px; font-weight: 700; color: var(--ouro); margin-left: 3px; }
.plano-cabeca .nome { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.plano-cabeca .fibra { margin-left: auto; width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 196, 0, .14); color: var(--ouro); display: grid; place-items: center; }
.plano-cabeca .fibra svg { width: 28px; height: 28px; }
.linhas { padding: 6px 18px 10px; }
.linha { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--borda); font-size: 14px; }
.linha:last-child { border-bottom: 0; }
.linha span:first-child { color: var(--texto-2); }
.linha span:last-child { font-weight: 600; text-align: right; }

/* listas */
.lista { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--borda); background: none; width: 100%; text-align: left; text-decoration: none; }
.item:last-child { border-bottom: 0; }
.item .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--cartao-2); color: var(--texto-2); }
.item .ic svg { width: 21px; height: 21px; }
.item .meio { flex: 1; min-width: 0; }
.item .meio b { display: block; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meio span { font-size: 13px; color: var(--mudo); }
.item .fim { text-align: right; flex: none; }
.item .fim b { display: block; font-variant-numeric: tabular-nums; }
.item .seta { width: 18px; height: 18px; color: var(--mudo); flex: none; }
.item.nao-lido .meio b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ouro-2); margin-right: 7px; vertical-align: middle; }
.vazio { text-align: center; padding: 34px 20px; color: var(--mudo); }
.vazio svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--eixo); display: block; }

/* abas segmentadas */
.segmentos { display: flex; background: var(--cartao); border-radius: 14px; padding: 4px; box-shadow: var(--sombra); }
.segmentos button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--texto-2); }
.segmentos button[aria-selected="true"] { background: var(--noite); color: #fff; }

/* ---------- barra de abas ---------- */
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--cartao) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--borda); padding: 6px 6px calc(6px + var(--base-segura));
}
.abas-dentro { display: flex; width: 100%; max-width: 560px; }
.aba { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--mudo); font-size: 11.5px; font-weight: 600; position: relative; }
.aba svg { width: 24px; height: 24px; }
.aba[aria-current="page"] { color: var(--texto); }
.aba[aria-current="page"] .aba-ic { background: var(--ouro); color: #1a1300; }
.aba-ic { width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
.aba .selo { top: 0; right: calc(50% - 26px); box-shadow: 0 0 0 2px var(--cartao); }

/* ---------- login ---------- */
.entrar { min-height: 100dvh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(90% 60% at 100% 0%, rgba(255, 196, 0, .25), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(245, 163, 0, .14), transparent 60%), var(--noite);
  padding: calc(40px + var(--topo-seguro)) 24px calc(24px + var(--base-segura)); }
.entrar-marca { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 420px; width: 100%; margin: 0 auto; }
.entrar-marca img { width: 200px; margin-bottom: 28px; }
.entrar h1 { font-size: 30px; line-height: 1.12; margin: 0 0 8px; font-weight: 800; letter-spacing: -.02em; }
.entrar p { color: rgba(255, 255, 255, .7); margin: 0 0 28px; }
.entrar form { max-width: 420px; width: 100%; margin: 0 auto; }
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--texto-2); }
.entrar .campo > span { color: rgba(255, 255, 255, .75); }
.entrada { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--borda); background: var(--cartao); color: var(--texto); font-size: 16px; outline: none; }
textarea.entrada { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.45; }
select.entrada { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mudo) 50%), linear-gradient(135deg, var(--mudo) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.entrada:focus { border-color: var(--ouro-2); box-shadow: 0 0 0 4px rgba(255, 196, 0, .18); }
.entrar .entrada { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.entrar .entrada::placeholder { color: rgba(255, 255, 255, .38); }
.senha-caixa { position: relative; }
.senha-caixa button { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: rgba(255, 255, 255, .6); border-radius: 10px; }
.senha-caixa button svg { width: 20px; height: 20px; }
.marcar { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.marcar input { width: 20px; height: 20px; accent-color: var(--ouro-2); }
.erro-form { background: rgba(255, 107, 102, .14); color: #ffb3b0; padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.entrar-rodape { text-align: center; margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.entrar-rodape a { color: var(--ouro); font-weight: 700; text-decoration: none; }
.demo-dica { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 196, 0, .1); border: 1px dashed rgba(255, 196, 0, .4); font-size: 13px; color: rgba(255, 255, 255, .85); }
.demo-dica code { color: var(--ouro); font-weight: 700; }

/* ---------- folha de baixo (pagamento etc.) ---------- */
.folha-fundo { position: fixed; inset: 0; background: rgba(5, 7, 10, .55); z-index: 40; animation: aparecer .2s; }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow: auto;
  background: var(--cartao); border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--base-segura)); animation: subir .26s cubic-bezier(.2, .8, .2, 1);
}
.folha-alca { width: 42px; height: 5px; border-radius: 3px; background: var(--borda); margin: 0 auto 14px; }
.folha h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }
.qr { width: 220px; height: 220px; margin: 16px auto; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--borda); }
.qr svg, .qr img { width: 100%; height: 100%; }
.copiar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cartao-2); border: 1px solid var(--borda); border-radius: 14px; margin-top: 10px; }
.copiar code { flex: 1; min-width: 0; font: 600 13px/1.4 ui-monospace, 'SF Mono', Consolas, monospace; word-break: break-all; color: var(--texto-2); max-height: 3.2em; overflow: hidden; }
.passos { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: p; }
.passos li { counter-increment: p; position: relative; padding-left: 32px; font-size: 14px; color: var(--texto-2); margin-bottom: 8px; min-height: 22px; }
.passos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ouro-suave); color: var(--ouro-tinta); font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* ---------- consumo ---------- */
.medidor { display: flex; align-items: center; gap: 18px; }
.medidor-num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.medidor-num small { font-size: 18px; font-weight: 700; color: var(--texto-2); margin-left: 3px; }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--texto-2); margin-top: 12px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.grafico { position: relative; margin-top: 12px; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .eixo-txt { font-size: 10.5px; fill: var(--mudo); font-family: inherit; }
.grafico .grade { stroke: var(--grade); stroke-width: 1; }
.grafico .alvo { fill: transparent; cursor: pointer; }
.grafico .ativo rect.barra { opacity: 1; }
.grafico.focando rect.barra { opacity: .45; }
.grafico.focando g.ativo rect.barra { opacity: 1; }
.dica { position: absolute; pointer-events: none; background: var(--noite); color: #fff; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transform: translate(-50%, -100%); z-index: 3; }
.dica b { display: block; margin-bottom: 3px; }
.dica i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.mini-barras { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 12px; }
.mini-barras span { flex: 1; background: var(--s1); border-radius: 3px 3px 0 0; min-height: 3px; opacity: .85; }
.mini-barras span:last-child { opacity: 1; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--borda); }
.tabela th:first-child, .tabela td:first-child { text-align: left; }
.tabela th { color: var(--mudo); font-weight: 600; font-size: 12px; }

/* ---------- suporte / chamado ---------- */
.motivos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.motivo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; background: var(--cartao); border: 1.5px solid transparent; border-radius: 18px; box-shadow: var(--sombra); text-align: left; font-weight: 700; font-size: 14px; }
.motivo .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ouro-suave); color: var(--ouro-tinta); }
.motivo .ic svg { width: 22px; height: 22px; }
.motivo small { font-weight: 500; color: var(--mudo); font-size: 12.5px; margin-top: -6px; }
.motivo[aria-pressed="true"] { border-color: var(--ouro-2); background: var(--ouro-suave); }
.dicas { margin: 0; padding-left: 20px; color: var(--texto-2); font-size: 14px; }
.dicas li { margin-bottom: 6px; }
.conversa { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.msg small { display: block; font-size: 11.5px; margin-top: 4px; opacity: .65; }
.msg.cliente { align-self: flex-end; background: var(--noite); color: #fff; border-bottom-right-radius: 6px; }
.msg.equipe { align-self: flex-start; background: var(--cartao); box-shadow: var(--sombra); border-bottom-left-radius: 6px; }
.msg.equipe .quem { font-weight: 700; font-size: 12.5px; color: var(--ouro-tinta); margin-bottom: 2px; }
.msg.sistema { align-self: center; background: none; color: var(--mudo); font-size: 12.5px; text-align: center; padding: 4px; }
.escrever { position: sticky; bottom: calc(76px + var(--base-segura)); display: flex; gap: 8px; padding: 10px 0; background: var(--fundo); }
.escrever .entrada { min-height: 48px; }
.escrever .btn { width: 48px; padding: 0; flex: none; }
.estrelas { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.estrelas button { border: 0; background: none; padding: 4px; color: var(--eixo); }
.estrelas button svg { width: 34px; height: 34px; }
.estrelas button.on { color: var(--ouro-2); }
.linha-tempo { display: flex; gap: 0; margin: 14px 0 4px; }
.linha-tempo div { flex: 1; text-align: center; font-size: 11.5px; color: var(--mudo); font-weight: 600; position: relative; padding-top: 18px; }
.linha-tempo div::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--borda); z-index: 1; }
.linha-tempo div::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--borda); }
.linha-tempo div:first-child::after { display: none; }
.linha-tempo div.feito { color: var(--texto); }
.linha-tempo div.feito::before, .linha-tempo div.feito::after { background: var(--ouro-2); }

/* ---------- teste de velocidade ---------- */
.velocimetro { text-align: center; padding-top: 26px; }
.vel-anel { width: 200px; height: 200px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 225deg, var(--ouro) 0 75%, var(--borda) 75% 100%); position: relative; }
.vel-anel::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--cartao); }
.vel-anel > div { position: relative; }
.vel-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

/* ---------- aviso ---------- */
.aviso-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.aviso-texto { white-space: pre-wrap; font-size: 15.5px; line-height: 1.6; }

/* interruptor */
.interruptor { position: relative; width: 50px; height: 30px; flex: none; }
.interruptor input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; z-index: 1; cursor: pointer; }
.interruptor span { position: absolute; inset: 0; border-radius: 15px; background: var(--borda); transition: .2s; }
.interruptor span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: .2s; }
.interruptor input:checked + span { background: var(--ok); }
.interruptor input:checked + span::after { transform: translateX(20px); }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--base-segura)); transform: translateX(-50%); z-index: 60; background: var(--noite); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); animation: aparecer .2s; }
.esqueleto { background: linear-gradient(90deg, var(--cartao-2), var(--borda), var(--cartao-2)); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: 10px; }
@keyframes brilho { to { background-position: -200% 0; } }
.rodape-app { text-align: center; color: var(--mudo); font-size: 12px; padding: 26px 0 8px; }
@media (min-width: 600px) { #app { padding-top: 0; } .topo { border-radius: 0 0 32px 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
