/* ── MOTORISTAON ──────────────────────────────────────────────────────────────
   Família visual do NexusLOS: azul-noite, halos de luz, vidro, ciano para ação.
   O dourado é reservado ao prêmio (moeda, selos, pódio) — se aparecer em outro
   lugar, o prêmio perde o brilho.
   Animações SEM prefers-reduced-motion, por decisão do dono: valem em todo aparelho. */

:root {
  --noite: #030b1c;
  --noite-2: #071638;
  --noite-3: #082a4b;
  --cyan: #00d4ff;
  --cyan-rgb: 0, 212, 255;
  --azul: #1677d8;
  --texto: #eaf2ff;
  --texto-2: rgba(226, 237, 255, .74);
  --texto-fraco: rgba(226, 237, 255, .52);
  --vidro: rgba(255, 255, 255, .042);
  --vidro-2: rgba(255, 255, 255, .07);
  --vidro-borda: rgba(255, 255, 255, .09);
  --vidro-borda-forte: rgba(255, 255, 255, .16);
  --ouro: #f2c14e;
  --ouro-rgb: 242, 193, 78;
  --prata-rgb: 207, 216, 230;
  --bronze-rgb: 214, 140, 84;
  --bom: #5fe3ff;
  --ruim: #ff8b97;
  --ruim-rgb: 255, 107, 122;
  --atencao: #fcd34d;
  --atencao-rgb: 251, 191, 36;
  --raio-g: 20px;
  --raio: 14px;
  --raio-p: 10px;
  --fonte-titulo: "Sora", "Segoe UI", system-ui, sans-serif;
  --fonte-texto: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sombra: 0 28px 70px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--noite); }
html:has(dialog[open]) { overflow: hidden; }
/* Sem barra de rolagem à direita (dono, 08/10/2026): a página, os diálogos e as listas rolam igual,
   com o dedo, a rodinha ou o trackpad; só a barra não aparece. */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--noite);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--fonte-titulo); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.4px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ── O CENÁRIO (o mesmo do portal) ────────────────────────────────────────── */
.cena { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cena::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 10% 0%, rgba(0, 212, 255, .2), transparent 60%),
    radial-gradient(ellipse 70% 60% at 95% 100%, rgba(22, 119, 216, .24), transparent 62%),
    linear-gradient(160deg, var(--noite) 0%, var(--noite-2) 55%, var(--noite-3) 100%);
}
.cena::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 78%);
}
.cena img {
  position: absolute; right: -30vmin; top: 8%; width: 86vmin; opacity: .07; mix-blend-mode: screen;
}

/* ── VIDRO ────────────────────────────────────────────────────────────────── */
.vidro {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid var(--vidro-borda);
  border-radius: var(--raio-g);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sombra);
}

/* ── MARCA ────────────────────────────────────────────────────────────────── */
/* O logo oficial (vetorizado do arquivo do dono) na versão negativa: "on", pneu e caminhão em
   branco, "MOTORISTA" no vermelho da marca. O original azul some no fundo noite. */
.marca { display: flex; align-items: center; gap: 12px; }
.marca-logo { display: block; width: 118px; height: auto; filter: drop-shadow(0 2px 12px rgba(3, 11, 28, .55)); }
.marca small { display: block; font-size: 12.5px; color: var(--texto-fraco); font-weight: 500; }

/* ── BOTÕES ───────────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 15.5px; letter-spacing: -.1px;
  color: #021226; text-decoration: none;
  background: linear-gradient(135deg, #3ee2ff, var(--cyan) 40%, var(--azul));
  box-shadow: 0 0 0 1px rgba(0, 212, 255, .45), 0 12px 30px -12px rgba(0, 212, 255, .75);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.botao:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(0, 212, 255, .7), 0 14px 36px -10px rgba(0, 212, 255, .9); }
.botao:active { transform: translateY(1px); }
.botao[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.botao-claro { color: var(--texto); background: var(--vidro-2); box-shadow: inset 0 0 0 1px var(--vidro-borda-forte); }
.botao-claro:hover { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.botao-perigo { color: #ffd5da; background: rgba(var(--ruim-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--ruim-rgb), .5); }
.botao-perigo:hover { background: rgba(var(--ruim-rgb), .3); box-shadow: inset 0 0 0 1px rgba(var(--ruim-rgb), .8), 0 10px 26px -12px rgba(var(--ruim-rgb), .8); }
.botao-pequeno { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.botao-icone {
  width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--vidro-2); border: 1px solid var(--vidro-borda-forte); color: var(--texto-2);
}
.botao-icone:hover { color: var(--texto); border-color: rgba(0, 212, 255, .5); }
.link {
  background: none; border: 0; padding: 2px 0; cursor: pointer; font-weight: 700; color: var(--cyan);
  text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, .35);
}
.link:hover { border-bottom-color: var(--cyan); }

/* ── CAMPOS ───────────────────────────────────────────────────────────────── */
.campo { display: grid; gap: 7px; }
.campo label { font-weight: 600; font-size: 14px; color: var(--texto-2); }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--vidro-borda-forte); background: rgba(3, 11, 28, .6);
  font-size: 17px; letter-spacing: .3px; transition: border-color .2s ease, box-shadow .2s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: rgba(226, 237, 255, .3); }
.campo textarea { min-height: 112px; font-size: 15.5px; resize: vertical; letter-spacing: 0; }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none; border-color: rgba(0, 212, 255, .75); box-shadow: 0 0 0 4px rgba(0, 212, 255, .14), 0 0 24px -6px rgba(0, 212, 255, .6);
}
.campo input[type="date"] { color-scheme: dark; }
.campo .ajuda { color: var(--texto-fraco); font-size: 13px; }
.campo[hidden] { display: none; }

/* ── AVISOS ───────────────────────────────────────────────────────────────── */
.aviso { border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; font-size: 14.5px; }
.aviso strong { color: var(--texto); }
.aviso-ruim { background: rgba(var(--ruim-rgb), .1); border: 1px solid rgba(var(--ruim-rgb), .35); color: #ffc2c9; }
.aviso-atencao { background: rgba(var(--atencao-rgb), .09); border: 1px solid rgba(var(--atencao-rgb), .32); color: #fde7a6; }
.aviso-ok { background: rgba(0, 212, 255, .08); border: 1px solid rgba(0, 212, 255, .3); color: #b8f1ff; }

/* ── VEREDITOS E PONTOS ───────────────────────────────────────────────────── */
.veredito {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .1px;
}
.veredito-ok { background: rgba(0, 212, 255, .12); color: var(--bom); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .28); }
.veredito-ruim { background: rgba(var(--ruim-rgb), .12); color: var(--ruim); box-shadow: inset 0 0 0 1px rgba(var(--ruim-rgb), .3); }
.veredito-abonado { background: rgba(var(--atencao-rgb), .12); color: var(--atencao); box-shadow: inset 0 0 0 1px rgba(var(--atencao-rgb), .3); }
.veredito-neutro { background: rgba(255, 255, 255, .06); color: var(--texto-fraco); box-shadow: inset 0 0 0 1px var(--vidro-borda); }
.pontos-mais { color: var(--bom); text-shadow: 0 0 16px rgba(0, 212, 255, .45); }
.pontos-menos { color: var(--ruim); }
.pontos-zero { color: var(--texto-fraco); }

/* ── FOTO / AVATAR ────────────────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--vidro-2); flex: none; }
.avatar-iniciais {
  display: grid; place-items: center; font-family: var(--fonte-titulo); font-weight: 700; font-size: 15px;
  color: var(--texto-2); background: linear-gradient(145deg, rgba(0, 212, 255, .18), rgba(22, 119, 216, .12));
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .25);
}

/* ── ÍCONE DA OPERAÇÃO (padrão das trilhas do portal) ─────────────────────────
   RGB solto porque a mesma cor serve de traço cheio e de fundo translúcido. O
   amarelo puro do Mercado Livre estoura no fundo escuro; o tom foi segurado. */
.operacao {
  --op: 0, 212, 255;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 46px; height: 34px; padding: 5px; flex: none; border-radius: 10px;
  background: rgba(var(--op), .08); box-shadow: inset 0 0 0 1px rgba(var(--op), .3), 0 0 16px -8px rgba(var(--op), .9);
}
.operacao img { display: block; width: 100%; height: 100%; object-fit: contain; }
.operacao-amazon { padding: 6px 4px 4px; }
.operacao-amazon { --op: 255, 153, 0; }
.operacao-shopee { --op: 248, 92, 62; }
.operacao-meli { --op: 255, 221, 40; }

.selo-mini { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 8px rgba(var(--ouro-rgb), .55)); }
.placa-velocidade { width: 30px; height: 30px; flex: none; }

/* ── MODAIS ───────────────────────────────────────────────────────────────── */
dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 1px solid var(--vidro-borda-forte); border-radius: var(--raio-g); padding: 0;
  background: linear-gradient(180deg, #0c1c3d, #081530); color: var(--texto);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 212, 255, .08);
}
dialog::backdrop { background: rgba(1, 6, 18, .72); backdrop-filter: blur(5px); }
dialog[open] { animation: modal-entra .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes modal-entra { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal { display: grid; gap: 16px; padding: 24px; }
.modal h3 { font-size: 20px; }
.modal-acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-acoes .botao { flex: 1 1 auto; white-space: nowrap; }

.selo-prototipo {
  position: relative; z-index: 1; display: block; width: fit-content; margin: 0 auto 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px;
  color: #2a1d00; background: var(--atencao); box-shadow: 0 6px 18px -6px rgba(var(--atencao-rgb), .8);
}

/* ════════════════════════════════════════════════════════════════════════════
   APP DO MOTORISTA
   ════════════════════════════════════════════════════════════════════════════ */
.app-motorista .tela {
  position: relative; z-index: 1; width: min(480px, 100%); margin: 0 auto;
  padding: 14px 16px 64px; display: grid; gap: 16px;
}

/* Entrada */
.entrada { min-height: 100dvh; align-content: center; gap: 18px; }
.cartao-entrada { padding: 30px 24px 26px; display: grid; gap: 22px; }
.cartao-entrada .marca { justify-content: center; padding: 4px 0 2px; }
.cartao-entrada .marca-logo { width: 210px; }
.cartao-entrada h1 { text-align: center; }
.cartao-entrada h1 { font-size: 15px; font-weight: 500; font-family: var(--fonte-texto); color: var(--texto-2); letter-spacing: 0; }
.form-entrada { display: grid; gap: 16px; }
.contas-teste { border: 1px dashed var(--vidro-borda-forte); border-radius: 14px; padding: 12px 14px; color: var(--texto-fraco); font-size: 14px; background: rgba(3, 11, 28, .35); }
.contas-teste summary { cursor: pointer; font-weight: 700; color: var(--texto-2); }
.contas-teste ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.contas-teste button { width: 100%; text-align: left; background: var(--vidro); border: 1px solid var(--vidro-borda); border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--texto); }
.contas-teste button:hover { border-color: rgba(0, 212, 255, .4); }
.contas-teste button span { display: block; font-size: 12.5px; color: var(--texto-fraco); }
.rodape { text-align: center; color: var(--texto-fraco); font-size: 13px; }
.rodape + .rodape { margin-top: -12px; }
/* Entrada: a explicação do passo, a senha com "Mostrar" e o código. */
.explica-entrada { margin: 0; color: var(--texto-2); font-size: 15px; line-height: 1.5; }
.explica-entrada b { color: var(--texto); }
.senha-caixa { position: relative; }
.senha-caixa input { padding-right: 104px; }
.senha-ver {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 38px; padding: 0 12px; border-radius: 9px;
  background: var(--vidro-2); border: 1px solid var(--vidro-borda); color: var(--cyan); font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.senha-ver:hover { border-color: rgba(0, 212, 255, .5); }
.campo .campo-codigo { font-size: 26px; letter-spacing: .5em; text-align: center; padding-left: calc(16px + .5em); }
.campo .campo-codigo::placeholder { letter-spacing: .5em; }

/* Barra do topo */
.barra { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.barra .marca { flex: 1; }
.barra .marca-logo { width: 92px; }
.foto-botao { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.foto-botao .avatar { width: 40px; height: 40px; }

/* Herói: a moeda */
.heroi { padding: 22px 20px 20px; display: grid; justify-items: center; text-align: center; gap: 4px; overflow: hidden; position: relative; }
.heroi::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 320px; height: 320px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--ouro-rgb), .2), rgba(0, 212, 255, .06) 45%, transparent 70%);
  pointer-events: none;
}
.saudacao { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 6px; }
.saudacao h1 { font-size: 21px; }
.saudacao p { color: var(--texto-fraco); font-size: 13px; }

.patente {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 999px; flex: none;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 13px;
  color: rgb(var(--patente-rgb)); background: rgba(var(--patente-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--patente-rgb), .4), 0 0 18px -6px rgba(var(--patente-rgb), .8);
}
.patente svg { width: 18px; height: 18px; }

.medalha { position: relative; width: 200px; height: 200px; margin: 10px 0 8px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 700px; }
.medalha .moeda { position: absolute; inset: 0; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(var(--ouro-rgb), .45)); }
.medalha .moeda svg { width: 100%; height: 100%; display: block; }
/* Halo de energia: dois arcos girando em sentidos opostos. */
.medalha::before, .medalha::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.medalha::before { background: conic-gradient(from 0deg, transparent 0 62%, rgba(0, 212, 255, .2) 70%, var(--cyan) 86%, #fff 88%, transparent 89%); animation: girar 3.2s linear infinite; filter: drop-shadow(0 0 6px var(--cyan)); }
.medalha::after { inset: -20px; background: conic-gradient(from 180deg, transparent 0 70%, rgba(var(--ouro-rgb), .2) 78%, var(--ouro) 92%, transparent 93%); animation: girar 5.5s linear infinite reverse; opacity: .8; }
@keyframes girar { to { transform: rotate(1turn); } }
.medalha .brilho { position: absolute; inset: 8%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.medalha .brilho::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg);
}
.medalha.cunhar .moeda { animation: cunhar 1.1s cubic-bezier(.2, .85, .25, 1.12) both; }
.medalha.cunhar .brilho::before { animation: brilho 1.1s .85s ease-out both, brilho-ciclo 8s 2.2s linear infinite; }
.medalha.brilhando .brilho::before { animation: brilho-ciclo 8s 1s linear infinite; }
@keyframes cunhar {
  0% { transform: scale(.35) rotateY(200deg); opacity: 0; }
  55% { transform: scale(1.08) rotateY(-12deg); opacity: 1; }
  78% { transform: scale(.98) rotateY(4deg); }
  100% { transform: scale(1) rotateY(0); }
}
@keyframes brilho { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes brilho-ciclo { 0% { left: -60%; } 12%, 100% { left: 130%; } }
/* Faíscas que saltam da moeda ao cunhar. */
.faisca { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--ouro); box-shadow: 0 0 10px 2px rgba(var(--ouro-rgb), .9); opacity: 0; pointer-events: none; }
.medalha.cunhar .faisca { animation: faisca .9s .55s ease-out both; }
@keyframes faisca {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-150px) scale(.3); }
}

.heroi-numero { font-family: var(--fonte-titulo); font-weight: 800; font-size: 19px; position: relative; }
.heroi-numero span { color: var(--ouro); text-shadow: 0 0 18px rgba(var(--ouro-rgb), .55); }
.heroi-sub { color: var(--texto-fraco); font-size: 13px; max-width: 34ch; position: relative; }

.trilho { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.trilho > i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--azul), var(--cyan)); box-shadow: 0 0 14px rgba(0, 212, 255, .8);
  transition: width 1.3s cubic-bezier(.2, .8, .2, 1) .35s;
}
.trilho > i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); background-size: 60px 100%; background-repeat: no-repeat;
  animation: correr 2.4s linear infinite;
}
@keyframes correr { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.trilho-ouro > i { background: linear-gradient(90deg, #b87d1a, var(--ouro), #ffe9a8); box-shadow: 0 0 14px rgba(var(--ouro-rgb), .8); }
.proxima { width: 100%; display: grid; gap: 7px; margin-top: 12px; position: relative; }
.proxima-linha { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-fraco); }
.proxima-linha b { color: var(--texto-2); }

/* Seletor de período */
.seletor-periodo { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(3, 11, 28, .5); border: 1px solid var(--vidro-borda); overflow-x: auto; }
.seletor-periodo button {
  flex: 1 0 auto; border: 0; background: none; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  font-weight: 700; font-size: 13.5px; color: var(--texto-fraco); white-space: nowrap;
}
.seletor-periodo button[aria-pressed="true"] { color: var(--texto); background: linear-gradient(135deg, rgba(0, 212, 255, .22), rgba(22, 119, 216, .22)); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .45), 0 0 18px -6px rgba(0, 212, 255, .8); }

/* Placar */
.placar { padding: 18px 18px 16px; display: grid; gap: 14px; }
.placar-numeros { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.placar-numeros > div { padding: 0 12px; }
.placar-numeros > div:first-child { padding-left: 0; }
.placar-numeros > div + div { border-left: 1px solid var(--vidro-borda); }
.placar-numeros dt { color: var(--texto-fraco); font-size: 12px; font-weight: 600; }
.placar-numeros dd { margin: 2px 0 0; font-family: var(--fonte-titulo); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -1px; }
.placar-numeros dd small { font-size: 14px; font-weight: 600; color: var(--texto-fraco); letter-spacing: 0; }
.placar-numeros .destaque-num { background: linear-gradient(180deg, #fff, #9fefff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(0, 212, 255, .35)); }
.placar-meta { font-size: 13.5px; color: var(--texto-2); }
.placar-meta strong { color: var(--texto); }

/* Conquistas */
.secao-cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.secao-cabeca p { color: var(--texto-fraco); font-size: 13px; }
.conquistas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.conquista { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--texto-fraco); line-height: 1.25; }
.conquista .emblema {
  width: 54px; height: 60px; display: grid; place-items: center; position: relative;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(255, 255, 255, .05); color: rgba(226, 237, 255, .25);
}
.conquista .emblema svg { width: 24px; height: 24px; }
.conquista.ganha { color: var(--texto); }
.conquista.ganha .emblema { background: linear-gradient(160deg, #fff1bd, var(--ouro) 45%, #a86d12); color: #4a2f00; }
.conquista.ganha .emblema::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%);
  background-size: 250% 100%; animation: reluz 4s ease-in-out infinite;
}
.conquista.ganha .halo-emblema { filter: drop-shadow(0 0 10px rgba(var(--ouro-rgb), .6)); }
@keyframes reluz { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

/* Destaques: pódio */
.destaques { padding: 18px 16px 14px; display: grid; gap: 16px; }
.podio { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 8px; }
.degrau { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; --cor: var(--prata-rgb); }
.degrau-1 { --cor: var(--ouro-rgb); }
.degrau-3 { --cor: var(--bronze-rgb); }
/* Sem borda comprada, o anel do pódio leva a cor da posição (ouro, prata, bronze). */
.degrau .aro { position: relative; }
.degrau .moldura.borda-padrao { box-shadow: 0 0 22px -4px rgba(var(--cor), .85); }
.degrau .moldura.borda-padrao .moldura-anel::before { background: conic-gradient(from 200deg, rgb(var(--cor)), rgba(var(--cor), .35), rgb(var(--cor))); }
.degrau .avatar { width: 58px; height: 58px; border: 2px solid var(--noite-2); }
.degrau-1 .avatar { width: 76px; height: 76px; }
.degrau .coroa { position: absolute; z-index: 2; left: 50%; top: -20px; width: 30px; transform: translateX(-50%); color: var(--ouro); filter: drop-shadow(0 0 8px rgba(var(--ouro-rgb), .9)); }
.degrau .nome { font-family: var(--fonte-titulo); font-weight: 700; font-size: 13.5px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.degrau .pts { font-family: var(--fonte-titulo); font-weight: 800; font-size: 16px; color: rgb(var(--cor)); }
.degrau .pts small { font-size: 11px; font-weight: 600; opacity: .8; margin-left: 2px; }
.degrau .base {
  width: 100%; display: grid; place-items: center; border-radius: 12px 12px 4px 4px;
  font-family: var(--fonte-titulo); font-weight: 800; font-size: 28px; color: rgba(var(--cor), .95);
  background: linear-gradient(180deg, rgba(var(--cor), .3), rgba(var(--cor), .03));
  box-shadow: inset 0 1px 0 rgba(var(--cor), .6), inset 0 0 0 1px rgba(var(--cor), .22);
  height: 46px; transform-origin: bottom;
}
.degrau-2 .base { height: 62px; }
.degrau-1 .base { height: 84px; }
.com-entrada .degrau .base { animation: subir .8s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: .75s; }
.com-entrada .degrau-1 .base { animation-delay: .9s; }
.com-entrada .degrau-3 .base { animation-delay: 1.05s; }
@keyframes subir { from { transform: scaleY(0); opacity: 0; } }
.degrau.eu .moldura.borda-padrao .moldura-anel::before { background: conic-gradient(from 200deg, var(--cyan), var(--azul), var(--cyan)); }
.seguintes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seguintes li { display: grid; grid-template-columns: 26px 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--vidro-borda); }
.seguintes .pos { font-family: var(--fonte-titulo); font-weight: 800; color: var(--texto-fraco); text-align: center; }
.seguintes .avatar { width: 38px; height: 38px; }
.seguintes .quem { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seguintes .quem small { display: block; font-weight: 500; color: var(--texto-fraco); font-size: 12px; }
.seguintes .pts { font-family: var(--fonte-titulo); font-weight: 800; }
.seguintes li.eu { border-color: rgba(0, 212, 255, .5); background: rgba(0, 212, 255, .08); box-shadow: 0 0 22px -10px rgba(0, 212, 255, .9); }
.destinos-vazio { color: var(--texto-fraco); text-align: center; padding: 10px; }

/* Extrato: linha do tempo da viagem */
.extrato { display: grid; gap: 12px; }
.viagem { overflow: hidden; }
.viagem-cabeca { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.viagem-cabeca .codigo { font-family: var(--fonte-titulo); font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.viagem-cabeca .codigo small { display: block; font-family: var(--fonte-texto); font-weight: 600; font-size: 12px; color: var(--texto-fraco); letter-spacing: 0; }
.viagem-cabeca .dia { margin-left: auto; color: var(--texto-fraco); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.linha-tempo { list-style: none; margin: 0; padding: 4px 16px 4px; }
.ponto { --cor-no: 226, 237, 255; display: grid; grid-template-columns: 18px 1fr auto; gap: 4px 12px; position: relative; padding: 10px 0; }
.ponto-ok { --cor-no: var(--cyan-rgb); }
.ponto-ruim { --cor-no: var(--ruim-rgb); }
.ponto-abonado { --cor-no: var(--atencao-rgb); }
.ponto-neutro { --cor-no: 150, 165, 190; }
.ponto:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 30px; bottom: -12px; width: 2px; border-radius: 2px; background: linear-gradient(rgba(var(--cor-no), .55), rgba(255, 255, 255, .08)); }
.ponto .no { grid-row: 1 / span 2; width: 14px; height: 14px; margin: 4px 0 0 2px; border-radius: 50%; background: rgb(var(--cor-no)); box-shadow: 0 0 0 4px rgba(var(--cor-no), .14), 0 0 14px rgba(var(--cor-no), .8); }
.ponto-neutro .no { background: transparent; box-shadow: inset 0 0 0 2px rgba(var(--cor-no), .8); }
.ponto-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ponto-titulo b { font-weight: 700; }
.ponto-titulo .cidade { color: var(--texto-fraco); font-size: 13px; }
.ponto-horas { grid-column: 2; display: flex; gap: 14px; font-size: 13px; color: var(--texto-fraco); }
.ponto-horas b { color: var(--texto-2); font-weight: 700; }
.ponto-pts { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-family: var(--fonte-titulo); font-weight: 800; font-size: 17px; text-align: right; min-width: 48px; }
.ponto-nota { grid-column: 2 / -1; font-size: 12.5px; color: var(--texto-fraco); }
.viagem-velocidade { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0 16px; padding: 10px 0 12px; border-top: 1px dashed var(--vidro-borda-forte); font-size: 13.5px; color: var(--texto-2); }
.viagem-velocidade .ponto-pts { grid-column: auto; grid-row: auto; }
.viagem-velocidade .ponto-nota { grid-column: 1 / -1; }
.viagem-pe { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(3, 11, 28, .45); border-top: 1px solid var(--vidro-borda); }
.viagem-pe .total { margin-left: auto; font-family: var(--fonte-titulo); font-weight: 800; font-size: 21px; }
.viagem-pe .sem-selo { color: var(--texto-fraco); font-size: 13px; }
.viagem-pe .com-selo { font-family: var(--fonte-titulo); font-weight: 700; font-size: 14px; color: var(--ouro); text-shadow: 0 0 14px rgba(var(--ouro-rgb), .6); }
.viagem.perfeita { box-shadow: var(--sombra), inset 0 0 0 1px rgba(var(--ouro-rgb), .28); }
.viagem.perfeita .viagem-pe { background: linear-gradient(90deg, rgba(var(--ouro-rgb), .12), rgba(3, 11, 28, .45) 70%); }

.foto-modal-previa { display: flex; justify-content: center; }
.foto-modal-previa { padding: 18px 0 8px; }
.foto-modal-previa .moldura > .avatar { width: 150px; height: 150px; }
.foto-modal-previa .avatar-iniciais { font-size: 46px; }
/* Editor da foto (js/recorte.js): o palco quadrado com a foto e o círculo do que vai aparecer no
   perfil; fora do círculo fica escurecido. touch-action: none para o dedo mexer a foto, não a tela. */
.foto-modal-previa[hidden], .foto-editor[hidden] { display: none; }
.foto-editor { display: grid; gap: 12px; justify-items: center; padding-top: 4px; }
.foto-palco {
  position: relative; width: min(280px, 72vw); aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: rgba(3, 11, 28, .8); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.foto-palco:active { cursor: grabbing; }
.foto-palco:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.foto-palco canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foto-mascara {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 999px rgba(2, 8, 20, .62), inset 0 0 0 2px rgba(0, 212, 255, .85);
}
.foto-zoom { display: flex; align-items: center; gap: 10px; width: min(280px, 72vw); color: var(--texto-2); font-weight: 700; font-size: 18px; }
.foto-zoom input[type="range"] { flex: 1; min-width: 0; accent-color: var(--cyan); }
.foto-dica { margin: 0; text-align: center; max-width: 300px; font-size: 13px; line-height: 1.45; color: var(--texto-fraco); }
.vazio { color: var(--texto-fraco); padding: 22px 6px; text-align: center; }

/* Entrada orquestrada: cada bloco sobe uma vez, em sequência — só na primeira
   pintura (.com-entrada), não a cada redesenho. */
.com-entrada .entra { animation: entra .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } }

/* ════════════════════════════════════════════════════════════════════════════
   PAINEL DO ADMIN
   ════════════════════════════════════════════════════════════════════════════ */
.app-admin { font-size: 14.5px; }
.app-admin .entrada { width: min(440px, 100%); margin: 0 auto; padding: 28px 16px; display: grid; position: relative; z-index: 1; }
.admin { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100dvh; }
.admin-lado {
  position: sticky; top: 0; height: 100dvh; padding: 22px 14px; display: flex; flex-direction: column; gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border-right: 1px solid var(--vidro-borda); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.app-admin .marca { flex-direction: column; align-items: flex-start; gap: 8px; }
.app-admin .cartao-entrada .marca { align-items: center; }
.admin-lado .marca { padding: 0 6px; }
.admin-lado .marca-logo { width: 132px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  background: none; border: 0; color: var(--texto-2); text-align: left; padding: 8px 10px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.admin-nav .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 212, 255, .07); border: 1px solid rgba(0, 212, 255, .16); color: var(--cyan); }
.admin-nav .ico svg { width: 17px; height: 17px; }
.admin-nav button:hover { background: rgba(255, 255, 255, .05); color: var(--texto); }
.admin-nav button[aria-current="page"] { background: linear-gradient(90deg, rgba(0, 212, 255, .16), rgba(0, 212, 255, .03)); color: var(--texto); }
.admin-nav button[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.admin-nav button[aria-current="page"] .ico { background: var(--cyan); color: var(--noite); box-shadow: 0 0 18px rgba(0, 212, 255, .6); }
.admin-nav .contador { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--atencao); color: #2a1d00; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 14px -2px rgba(var(--atencao-rgb), .8); }
.quem-sou { margin-top: auto; display: grid; gap: 6px; font-size: 13px; color: var(--texto-fraco); padding: 14px 6px 0; border-top: 1px solid var(--vidro-borda); }
.quem-sou strong { color: var(--texto); font-weight: 700; word-break: break-all; }
.quem-sou a, .quem-sou button { color: var(--texto-2); background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; font-weight: 600; text-decoration: none; }
.quem-sou a:hover, .quem-sou button:hover { color: var(--cyan); }

.admin-corpo { padding: 30px 34px 64px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.admin-titulo { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-titulo h2 { font-size: 28px; letter-spacing: -.8px; }
.admin-titulo p { color: var(--texto-fraco); max-width: 72ch; margin-top: 4px; }
.cartoes-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.resumo { padding: 14px 16px; }
.resumo dt { color: var(--texto-fraco); font-size: 12.5px; font-weight: 600; }
.resumo dd { margin: 2px 0 0; font-family: var(--fonte-titulo); font-weight: 800; font-size: 26px; letter-spacing: -.8px; }

.bloco { overflow: hidden; }
.bloco-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--vidro-borda); flex-wrap: wrap; }
.bloco-cabeca small { color: var(--texto-fraco); }
.bloco-corpo { padding: 16px 18px; }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros input[type="search"] { min-height: 40px; border-radius: 10px; border: 1px solid var(--vidro-borda-forte); background: rgba(3, 11, 28, .6); padding: 0 14px; min-width: 260px; }
.filtros input[type="search"]:focus { outline: none; border-color: rgba(0, 212, 255, .7); box-shadow: 0 0 0 3px rgba(0, 212, 255, .14); }
.filtros button { border: 1px solid var(--vidro-borda-forte); background: var(--vidro); color: var(--texto-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-weight: 700; font-size: 13px; }
.filtros button[aria-pressed="true"] { color: var(--texto); border-color: rgba(0, 212, 255, .6); background: rgba(0, 212, 255, .14); box-shadow: 0 0 16px -6px rgba(0, 212, 255, .9); }

.tabela-rolagem { overflow-x: auto; }
table.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--vidro-borda); vertical-align: middle; white-space: nowrap; }
.tabela th { font-size: 12px; color: var(--texto-fraco); font-weight: 700; background: rgba(3, 11, 28, .35); }
.tabela td.num, .tabela th.num { text-align: right; }
.tabela td.num { font-family: var(--fonte-titulo); font-weight: 700; }
.tabela tbody tr { cursor: pointer; transition: background-color .15s ease; }
.tabela tbody tr:hover { background: rgba(0, 212, 255, .05); }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela .pessoa { display: flex; align-items: center; gap: 11px; }
.tabela .pessoa .avatar { width: 36px; height: 36px; }
.tabela .pessoa b { font-weight: 700; }
.tabela .pessoa small { display: block; color: var(--texto-fraco); font-size: 12px; }
.tabela .ops { display: flex; gap: 5px; }
.tabela .ops .operacao { width: 38px; height: 28px; padding: 4px; border-radius: 8px; }

.situacao { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.situacao::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.situacao-ativo { background: rgba(0, 212, 255, .1); color: var(--bom); }
.situacao-desativado { background: rgba(255, 255, 255, .06); color: var(--texto-fraco); }
.situacao-banido { background: rgba(var(--ruim-rgb), .12); color: var(--ruim); }
.situacao-bloqueado { background: rgba(var(--atencao-rgb), .12); color: var(--atencao); }

.grade-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cartao-foto { border: 1px solid var(--vidro-borda); border-radius: 16px; overflow: hidden; background: rgba(3, 11, 28, .4); display: grid; }
.cartao-foto .foto-grande { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--vidro-2); }
.cartao-foto .info { padding: 12px 14px; display: grid; gap: 4px; }
.cartao-foto .info small { color: var(--texto-fraco); }
.cartao-foto .comparar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texto-fraco); }
.cartao-foto .comparar .avatar { width: 26px; height: 26px; }
.cartao-foto .acoes { display: flex; gap: 8px; padding: 0 14px 14px; }
.cartao-foto .acoes .botao { flex: 1; }

.lista-contestacoes { display: grid; gap: 12px; }
.contestacao { padding: 16px 18px; display: grid; gap: 12px; }
.contestacao-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contestacao-topo .avatar { width: 34px; height: 34px; }
.contestacao-topo .quando { margin-left: auto; color: var(--texto-fraco); font-size: 12.5px; }
.contestacao blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--cyan); background: rgba(0, 212, 255, .05); border-radius: 0 12px 12px 0; color: var(--texto-2); }
.contestacao .fatos { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 13px; color: var(--texto-fraco); }
.contestacao .fatos strong { color: var(--texto); font-family: var(--fonte-titulo); }
.contestacao .resposta { font-size: 13.5px; color: var(--texto-2); }

.periodos { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.coluna { display: grid; gap: 20px; }
.ranking-admin { list-style: none; margin: 0; padding: 0; }
.ranking-admin li { display: grid; grid-template-columns: 30px 36px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--vidro-borda); border-radius: 10px; }
.ranking-admin li:last-child { border-bottom: 0; }
.ranking-admin .pos { font-family: var(--fonte-titulo); font-weight: 800; font-size: 17px; text-align: center; color: var(--texto-fraco); }
.ranking-admin .avatar { width: 36px; height: 36px; }
.ranking-admin .pts { font-family: var(--fonte-titulo); font-weight: 800; font-size: 16px; text-align: right; min-width: 64px; }
.ranking-admin .selos { display: flex; align-items: center; gap: 5px; color: var(--texto-2); font-size: 13px; font-weight: 700; }
.ranking-admin .selos .selo-mini { width: 20px; height: 20px; }
.ranking-admin li.top { background: linear-gradient(90deg, rgba(var(--ouro-rgb), .12), transparent 75%); }
.ranking-admin li.top .pos { color: var(--ouro); }
.form-periodo { display: grid; gap: 12px; }
.form-periodo .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-periodo .campo input { min-height: 46px; font-size: 15px; }
.periodo-fechado { border-top: 1px solid var(--vidro-borda); padding: 14px 0; display: grid; gap: 6px; }
.periodo-fechado:first-child { border-top: 0; padding-top: 0; }
.periodo-fechado ol { margin: 4px 0 0; padding-left: 22px; color: var(--texto-2); }
.periodo-fechado small { color: var(--texto-fraco); }

/* Gaveta do motorista */
.gaveta { width: min(740px, calc(100vw - 24px)); }
.gaveta-topo { display: flex; align-items: center; gap: 16px; }
.gaveta-topo .avatar { width: 80px; height: 80px; box-shadow: 0 0 0 3px var(--noite-2), 0 0 0 5px rgba(0, 212, 255, .6); }
.gaveta-topo .avatar-iniciais { font-size: 28px; }
.gaveta-topo h3 { font-size: 23px; }
.gaveta-topo p { color: var(--texto-fraco); margin-top: 2px; }
.gaveta-numeros { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--vidro-borda); border-radius: 14px; background: rgba(3, 11, 28, .35); }
.gaveta-numeros div { padding: 12px 16px; }
.gaveta-numeros div + div { border-left: 1px solid var(--vidro-borda); }
.gaveta-numeros dt { font-size: 12px; color: var(--texto-fraco); font-weight: 600; }
.gaveta-numeros dd { margin: 0; font-family: var(--fonte-titulo); font-weight: 800; font-size: 24px; }
.gaveta-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.gaveta-acoes .botao { min-height: 40px; font-size: 14px; }
/* max-content: sem isso o grid encolhe os cartões (overflow:hidden) para caber na altura. */
.gaveta .extrato { max-height: 52vh; overflow: auto; padding-right: 6px; grid-auto-rows: max-content; }
.gaveta ul.historico { margin: 0; padding-left: 18px; color: var(--texto-2); font-size: 13.5px; display: grid; gap: 4px; }

@media (max-width: 920px) {
  .admin { grid-template-columns: 1fr; }
  .admin-lado { position: static; height: auto; gap: 14px; border-right: 0; border-bottom: 1px solid var(--vidro-borda); }
  .admin-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .admin-nav button[aria-current="page"]::before { display: none; }
  .quem-sou { margin-top: 0; }
  .admin-corpo { padding: 20px 16px 56px; }
  .periodos { grid-template-columns: 1fr; }
  .cartoes-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros input[type="search"] { min-width: 0; width: 100%; }
  .gaveta-numeros { grid-template-columns: 1fr; }
  .gaveta-numeros div + div { border-left: 0; border-top: 1px solid var(--vidro-borda); }
}
@media (max-width: 380px) {
  .placar-numeros dd { font-size: 25px; }
  .conquistas { gap: 4px; }
  .conquista .emblema { width: 46px; height: 52px; }
}

.acoes-linha { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── SELOS INDIVIDUAIS: OTA, ETA e velocidade ─────────────────────────────── */
.selos-tipos { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; position: relative; }
.selo-tipo {
  display: grid; justify-items: center; gap: 2px; padding: 10px 6px 9px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(var(--ouro-rgb), .1), rgba(var(--ouro-rgb), .02));
  box-shadow: inset 0 0 0 1px rgba(var(--ouro-rgb), .22);
}
.selo-tipo .selo-tipo-moeda { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(var(--ouro-rgb), .55)); margin-bottom: 2px; }
.selo-tipo b { font-family: var(--fonte-titulo); font-weight: 800; font-size: 22px; line-height: 1.1; color: var(--ouro); text-shadow: 0 0 14px rgba(var(--ouro-rgb), .45); }
.selo-tipo span { font-size: 11.5px; color: var(--texto-fraco); line-height: 1.25; }
.selo-tipo.zerado { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--vidro-borda); }
.selo-tipo.zerado .selo-tipo-moeda { filter: grayscale(1) brightness(.6); opacity: .55; }
.selo-tipo.zerado b { color: var(--texto-fraco); text-shadow: none; }
.selos-tipos-admin { margin: 0; }
.ponto-pts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.selo-ponto { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 6px rgba(var(--ouro-rgb), .6)); }
.selos-ganhos { display: inline-flex; align-items: center; }
.selos-ganhos .selo-mini { width: 24px; height: 24px; }
.selos-ganhos .selo-mini + .selo-mini { margin-left: -7px; }

/* ════════════════════════════════════════════════════════════════════════════
   APP EM ABAS: barra embaixo no celular, menu lateral no computador
   ════════════════════════════════════════════════════════════════════════════ */
.grade-aba { display: grid; gap: 16px; }
.grade-aba .col { display: grid; gap: 16px; align-content: start; min-width: 0; }

/* Menu hambúrguer: no celular desliza da esquerda; no computador fica fixo. */
.menu-botao { flex: none; position: relative; }
.menu-botao svg { width: 20px; height: 20px; }
.menu-botao .bolinha { position: absolute; top: -4px; right: -4px; }
.abas-app {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: min(300px, 86vw);
  display: flex; flex-direction: column; gap: 4px; padding: 20px 14px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0b1c3f, #061230); border-right: 1px solid var(--vidro-borda-forte);
  box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .9);
  transform: translateX(-105%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
  overflow-y: auto;
}
.menu-aberto .abas-app { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.menu-fundo {
  position: fixed; inset: 0; z-index: 39; background: rgba(1, 6, 18, .6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.menu-aberto .menu-fundo { opacity: 1; pointer-events: auto; }
.menu-aberto { overflow: hidden; }
.abas-marca { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 16px 8px; }
.abas-marca .marca-logo { width: 132px; }
.menu-fechar svg { width: 18px; height: 18px; }
.menu-perfil {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--vidro-borda);
}
.menu-perfil .avatar { width: 42px; height: 42px; }
/* Só o nome: o título (chip) dentro do cartão também tem <b> e não pode herdar isto. */
.menu-perfil > div { min-width: 0; }
.menu-perfil > div > b { display: block; font-family: var(--fonte-titulo); font-size: 14.5px; line-height: 1.25; }
.menu-perfil small { color: var(--texto-fraco); font-size: 12.5px; }
.abas-app .item-menu {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; color: var(--texto-2);
  font-weight: 700; font-size: 15px; text-align: left; transition: background-color .2s ease, color .2s ease;
}
.item-menu .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 212, 255, .07); border: 1px solid rgba(0, 212, 255, .16); color: var(--cyan); }
.item-menu .ico svg { width: 18px; height: 18px; }
.abas-app .item-menu:hover { background: rgba(255, 255, 255, .05); color: var(--texto); }
.abas-app .item-menu[aria-current="page"] { background: linear-gradient(90deg, rgba(0, 212, 255, .16), rgba(0, 212, 255, .03)); color: var(--texto); }
.abas-app .item-menu[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.abas-app .item-menu[aria-current="page"] .ico { background: var(--cyan); color: var(--noite); box-shadow: 0 0 18px rgba(0, 212, 255, .6); }
.menu-rodape { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--vidro-borda); display: grid; gap: 8px; }
.menu-rodape .item-menu { color: var(--texto-fraco); }
.menu-rodape .item-menu .ico { background: rgba(255, 255, 255, .04); border-color: var(--vidro-borda); color: var(--texto-fraco); }
.bolinha {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--atencao); color: #2a1d00; font-size: 11px; font-weight: 800; font-style: normal;
  box-shadow: 0 0 12px -2px rgba(var(--atencao-rgb), .9);
}

/* Viagem recolhida: uma linha que abre ao tocar */
details.viagem > summary {
  list-style: none; cursor: pointer; display: grid; align-items: center; gap: 6px 12px; padding: 14px 14px 12px 16px;
  grid-template-columns: auto minmax(0, 1fr) auto 18px;
  grid-template-areas: "logo meio fim seta" "logo linha linha seta";
}
details.viagem > summary::-webkit-details-marker { display: none; }
details.viagem > summary .operacao { grid-area: logo; align-self: start; margin-top: 2px; }
.resumo-meio { grid-area: meio; min-width: 0; display: grid; }
.resumo-meio b { font-family: var(--fonte-titulo); font-weight: 700; font-size: 15px; letter-spacing: -.2px; }
.resumo-meio small { color: var(--texto-fraco); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resumo-fim { grid-area: fim; display: grid; justify-items: end; }
.resumo-fim b { font-family: var(--fonte-titulo); font-weight: 800; font-size: 18px; }
.resumo-fim small { color: var(--texto-fraco); font-size: 12px; white-space: nowrap; }
.resumo-linha { grid-area: linha; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.resumo-linha .sem-selo { color: var(--texto-fraco); font-size: 12.5px; }
.selo-perdido { font-size: 12px; font-weight: 800; color: var(--ruim); padding: 2px 8px; border-radius: 999px; background: rgba(var(--ruim-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--ruim-rgb), .32); }
.seta-abrir { grid-area: seta; width: 18px; height: 18px; color: var(--texto-fraco); transition: transform .25s ease; }
details.viagem[open] > summary { border-bottom: 1px solid var(--vidro-borda); }
details.viagem[open] .seta-abrir { transform: rotate(180deg); color: var(--cyan); }
details.viagem > summary:hover .seta-abrir { color: var(--texto); }
details.viagem[open] .linha-tempo { animation: abrir .3s ease; }
@keyframes abrir { from { opacity: 0; transform: translateY(-6px); } }
.etiqueta-perfeita { color: #2a1d00; background: linear-gradient(135deg, #ffe9a8, var(--ouro)); box-shadow: 0 0 14px -3px rgba(var(--ouro-rgb), .9); }

/* Abas por operação e filtro */
.abas-op { display: flex; gap: 8px; overflow-x: auto; padding: 8px 6px 4px 2px; scrollbar-width: none; }
.abas-op::-webkit-scrollbar { display: none; }
.aba-op {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: 14px; border: 1px solid var(--vidro-borda-forte); background: var(--vidro); color: var(--texto-2);
  font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.aba-op:first-child { padding-left: 14px; }
.aba-op .operacao { width: 38px; height: 28px; padding: 4px; border-radius: 8px; }
.aba-op small { color: var(--texto-fraco); font-weight: 600; }
.aba-op[aria-pressed="true"] { color: var(--texto); border-color: rgba(0, 212, 255, .6); background: rgba(0, 212, 255, .12); box-shadow: 0 0 18px -6px rgba(0, 212, 255, .9); }
.aba-op .bolinha { position: absolute; top: -7px; right: -5px; }
.filtro-viagens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(3, 11, 28, .5); border: 1px solid var(--vidro-borda); }
.filtro-viagens button { border: 0; background: none; border-radius: 10px; padding: 8px 6px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--texto-fraco); white-space: nowrap; }
.filtro-viagens button small { margin-left: 3px; font-weight: 600; opacity: .8; }
.filtro-viagens button[aria-pressed="true"] { color: var(--texto); background: linear-gradient(135deg, rgba(0, 212, 255, .22), rgba(22, 119, 216, .22)); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .45); }

/* Seção Contestar: um cartão por horário (ou velocidade) */
.filtro-viagens.filtro-dois { grid-template-columns: repeat(2, 1fr); max-width: 360px; }

/* ── Viagens em aberto e busca pela ordem de coleta ───────────────────────── */
.oc-rotulo { font-size: 10.5px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--cyan-rgb), .75) !important; }
.busca-oc {
  display: flex; align-items: center; gap: 10px; max-width: 520px; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--vidro-borda-forte); background: rgba(3, 11, 28, .6); color: var(--texto-fraco);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.busca-oc:focus-within { border-color: rgba(0, 212, 255, .75); box-shadow: 0 0 0 4px rgba(0, 212, 255, .14), 0 0 24px -6px rgba(0, 212, 255, .6); color: var(--cyan); }
.busca-oc svg { width: 20px; height: 20px; flex: none; }
.busca-oc input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; letter-spacing: .4px; padding: 12px 0; color: var(--texto); }
.busca-oc input::placeholder { color: rgba(226, 237, 255, .35); letter-spacing: 0; }
.viagens-corpo { display: grid; gap: 14px; }
.busca-total { color: var(--texto-2); font-size: 14px; padding: 0 2px; }
.busca-total b { color: var(--texto); }

.viagem-aberta { padding: 16px 16px 14px; display: grid; gap: 12px; position: relative; overflow: hidden; }
.viagem-aberta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--cyan), rgba(22, 119, 216, .6)); opacity: .55; }
.viagem-aberta.andando::before { opacity: 1; box-shadow: 0 0 16px rgba(var(--cyan-rgb), .9); }
.aberta-topo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.ordem-coleta { display: grid; min-width: 0; }
.ordem-coleta small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--cyan-rgb), .75); }
.ordem-coleta b { font-family: var(--fonte-titulo); font-size: 17px; letter-spacing: .2px; overflow-wrap: anywhere; }
.etapa {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 800; color: var(--texto-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--vidro-borda-forte);
}
.etapa i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
.andando .etapa { color: var(--cyan); background: rgba(var(--cyan-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .45); }
.andando .etapa i { opacity: 1; animation: pulso-etapa 1.6s ease-in-out infinite; }
@keyframes pulso-etapa { 0% { box-shadow: 0 0 0 0 rgba(var(--cyan-rgb), .7); } 70%, 100% { box-shadow: 0 0 0 6px rgba(var(--cyan-rgb), 0); } }
.aberta-chegadas { list-style: none; margin: 0; padding: 0 2px; display: grid; }
.aberta-chegadas li { display: grid; grid-template-columns: 16px 1fr auto; align-items: start; gap: 2px 12px; padding: 7px 0; position: relative; }
.aberta-chegadas li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: -8px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.aberta-chegadas .no { width: 12px; height: 12px; margin: 4px 0 0 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(var(--cyan-rgb), .8); }
.aberta-chegadas li.feita .no { background: var(--cyan); box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .14), 0 0 12px rgba(var(--cyan-rgb), .8); }
.chegada-onde { display: grid; min-width: 0; }
.chegada-onde b { font-size: 14px; }
.chegada-onde span { color: var(--texto-2); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.chegada-onde small { color: var(--texto-fraco); font-size: 12.5px; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.chegada-mapa {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: var(--cyan); text-decoration: none;
  background: rgba(var(--cyan-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .4); transition: background-color .2s ease;
}
.chegada-mapa:hover, .chegada-mapa:focus-visible { background: rgba(var(--cyan-rgb), .2); }
.chegada-mapa svg { width: 15px; height: 15px; }
.chegada-quando { font-size: 13.5px; font-weight: 700; color: var(--texto-2); text-align: right; padding-top: 1px; }
.feita .chegada-quando { color: var(--cyan); }
.aberta-nota { color: var(--texto-fraco); font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--vidro-borda); }
.proxima-viagem { display: grid; gap: 10px; }

/* Rotograma da SM, dentro do cartão da viagem aberta */
.rotograma { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(3, 11, 28, .45); box-shadow: inset 0 0 0 1px var(--vidro-borda); }
.rotograma-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rotograma-topo b { font-family: var(--fonte-titulo); font-size: 14px; letter-spacing: .02em; color: var(--cyan); }
.rotograma-topo span { font-weight: 800; font-size: 13.5px; color: var(--texto-2); }
.rotograma-rota { color: var(--texto-fraco); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
/* Sem SM: só a faixa de aviso, sem a caixa do rotograma em volta. */
.rotograma:has(> .rotograma-aguardando) { padding: 0; background: none; box-shadow: none; }
.rotograma-aguardando {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.4;
  color: #ffd98a; background: rgba(var(--atencao-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--atencao-rgb), .35);
}
.rotograma-relogio { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; position: relative; }
.rotograma-relogio::before, .rotograma-relogio::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 2px; background: currentColor; border-radius: 2px; transform-origin: bottom center; }
.rotograma-relogio::before { height: 6px; }
.rotograma-relogio::after { height: 4px; transform: rotate(90deg); }
.rotograma-aviso, .rotograma-vazio { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--texto-fraco); font-size: 13px; }
.rotograma-aviso .girando { width: 16px; height: 16px; border-width: 2px; }
.rotograma details > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.rotograma details > summary::-webkit-details-marker { display: none; }
.rotograma details > summary::before { content: "▸"; color: var(--cyan); transition: transform .2s ease; }
.rotograma details[open] > summary::before { transform: rotate(90deg); }
.rotograma details > summary small { color: var(--texto-fraco); font-size: 12.5px; }
.rotograma-locais { display: grid; gap: 8px; }
.rotograma-locais[open] > summary { margin-bottom: 4px; }
.rotograma-cidade { display: grid; gap: 4px; margin-top: 6px; }
.rotograma-cidade > small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(var(--cyan-rgb), .75); }
.rotograma-cidade ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rotograma-cidade a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; color: var(--texto); text-decoration: none; font-size: 13.5px; }
.rotograma-cidade a:hover, .rotograma-cidade a:focus-visible { background: rgba(var(--cyan-rgb), .08); }
.rotograma-cidade a svg { width: 15px; height: 15px; flex: none; color: var(--cyan); }
.rotograma-mapa { height: 230px; border-radius: 12px; overflow: hidden; background: #0b1730; box-shadow: inset 0 0 0 1px var(--vidro-borda-forte); }
/* O OpenStreetMap é claro: invertido e girado no matiz, fica no azul-noite do app. */
.rotograma-mapa .rotograma-tiles { filter: invert(1) hue-rotate(185deg) brightness(.95) contrast(.9) saturate(.55); }
.rotograma-mapa .leaflet-control-attribution { background: rgba(3, 11, 28, .7); color: var(--texto-fraco); font-size: 10px; }
.rotograma-mapa .leaflet-control-attribution a { color: var(--texto-2); }
.rotograma-mapa .leaflet-bar a { background: #0b1c3f; color: var(--texto); border-color: var(--vidro-borda-forte); }
.rotograma-mapa .leaflet-popup-content-wrapper, .rotograma-mapa .leaflet-popup-tip { background: #0b1c3f; color: var(--texto); }
.rotograma-mapa .leaflet-popup-content a { color: var(--cyan); }
.rotograma-google { margin-top: 0; }
.rotograma-itinerario p { margin-top: 6px; color: var(--texto-2); font-size: 12.5px; line-height: 1.5; }
.rotograma-itinerario p b { display: block; color: var(--texto-fraco); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.item-explica { color: var(--texto-fraco); font-size: 13.5px; max-width: 70ch; }
.lista-itens { display: grid; gap: 10px; }
.lista-titulo { font-size: 15px; color: var(--texto-2); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.lista-titulo small { font-family: var(--fonte-texto); font-size: 12px; font-weight: 700; color: var(--texto-fraco); padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.item-contestar { padding: 14px 16px; display: grid; gap: 10px; justify-items: start; box-shadow: var(--sombra), inset 3px 0 0 var(--atencao); }
.item-contestar.item-aberta { box-shadow: var(--sombra), inset 3px 0 0 rgba(var(--atencao-rgb), .5); }
.item-contestar.item-aceita { box-shadow: var(--sombra), inset 3px 0 0 var(--cyan); }
.item-contestar.item-recusada { box-shadow: var(--sombra), inset 3px 0 0 var(--ruim); }
.item-topo { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
/* .resumo-meio/.resumo-fim têm área nomeada na linha da viagem; aqui não. */
.item-topo > * { grid-area: auto; }
.item-alvo { font-size: 12.5px; }
.item-fato { color: var(--texto-2); font-size: 14px; }
.item-fato b { color: var(--texto); }
.item-contestar blockquote { width: 100%; margin: 0; padding: 10px 14px; border-left: 3px solid var(--cyan); background: rgba(0, 212, 255, .05); border-radius: 0 12px 12px 0; color: var(--texto-2); font-size: 14px; }
.item-resposta { color: var(--texto-2); font-size: 13.5px; }

/* Ranking */
.seguintes .reticencias { display: block; text-align: center; color: var(--texto-fraco); background: none; border: 0; padding: 0; }

/* Perfil */
.perfil-topo { padding: 0; overflow: hidden; text-align: center; }
.perfil-topo h1 { font-size: 21px; }
.perfil-cpf { color: var(--texto-fraco); font-size: 13px; }
.perfil-foto-texto { color: var(--texto-2); font-size: 13.5px; max-width: 36ch; }
.bloco-patente { padding: 18px; display: grid; gap: 14px; }
/* Avisos no celular: o cartão do Perfil e o convite do Início (o conteúdo chega depois do desenho). */
.bloco-avisos { padding: 18px; display: grid; gap: 12px; }
.bloco-avisos:empty { display: none; }
.bloco-avisos .item-explica { margin: 0; }
.chip-avisos { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--vidro-2); color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--vidro-borda-forte); }
.chip-avisos-ligado { color: var(--bom); background: rgba(0, 212, 255, .12); box-shadow: inset 0 0 0 1px rgba(0, 212, 255, .45); }
.chip-avisos-bloqueado { color: var(--ruim); background: rgba(var(--ruim-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--ruim-rgb), .4); }
.acoes-avisos { display: flex; flex-wrap: wrap; gap: 10px; }
.acoes-avisos .botao { flex: 1 1 140px; }
/* Tela obrigatória dos avisos (antes do painel, desde o primeiro acesso). */
.portao-avisos { display: grid; gap: 14px; justify-items: center; text-align: center; }
.portao-avisos h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.portao-icone { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--cyan); background: rgba(0, 212, 255, .12); box-shadow: 0 0 30px -6px rgba(0, 212, 255, .85); animation: sino 2.6s ease-in-out .8s infinite; }
.portao-icone svg { width: 34px; height: 34px; }
.portao-texto { display: grid; gap: 10px; color: var(--texto-2); font-size: 15px; line-height: 1.5; text-align: left; width: 100%; }
.portao-texto p { margin: 0; }
.portao-lista, .portao-passos { margin: 0; padding: 0; display: grid; gap: 8px; }
.portao-lista { list-style: none; }
.portao-lista li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: rgba(3, 11, 28, .45); border: 1px solid var(--vidro-borda); }
.portao-lista li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 212, 255, .8); }
.portao-lista b, .portao-passos b { color: var(--texto); }
.portao-passos { padding-left: 22px; }
.portao-dica { color: var(--texto-fraco); font-size: 13.5px; text-align: center; }
.portao-avisos #retorno, .portao-avisos .botao { width: 100%; }
@keyframes sino { 0%, 70%, 100% { rotate: 0deg; } 75% { rotate: 14deg; } 80% { rotate: -12deg; } 85% { rotate: 8deg; } 90% { rotate: -5deg; } }
.bloco-patente .proxima { margin-top: 0; }
.escada-patentes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.escada-patentes li { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--vidro-borda); color: var(--texto-fraco); font-size: 11.5px; }
.escada-patentes li b { font-family: var(--fonte-titulo); font-size: 12px; }
.escada-patentes li.feita { color: rgb(var(--patente-rgb)); background: rgba(var(--patente-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--patente-rgb), .4); }

/* ── COMPUTADOR: menu lateral e duas colunas ─────────────────────────────── */
@media (min-width: 900px) {
  .app-motorista .tela.com-abas { width: auto; max-width: 1120px; margin: 0 0 0 272px; padding: 26px 40px 64px; }
  .abas-app {
    width: 264px; transform: none; visibility: visible; transition: none; box-shadow: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border-right: 1px solid var(--vidro-borda); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .menu-fundo, .menu-botao, .menu-fechar { display: none; }
  .menu-aberto { overflow: visible; }
  .com-abas .barra .marca { visibility: hidden; }
  .grade-inicio { grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .grade-inicio > .col:first-child { position: sticky; top: 24px; }
  .grade-ranking { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .grade-perfil { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .grade-viagens { max-width: 860px; }
  .filtro-viagens { max-width: 520px; }
}
/* O padding do fim some em faixa flex com rolagem: um espaçador garante folga para a bolinha. */
.abas-op::after { content: ""; flex: 0 0 6px; }

/* ── Versão real: carregando, "em breve" e foto sem botão ─────────────────── */
.carregando { display: grid; justify-items: center; gap: 14px; color: var(--texto-2); }
.girando { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(0, 212, 255, .18); border-top-color: var(--cyan); animation: girar .9s linear infinite; box-shadow: 0 0 22px -6px rgba(0, 212, 255, .8); }
.em-breve { padding: 28px 22px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.em-breve h3 { font-size: 19px; }
.em-breve p { color: var(--texto-2); max-width: 46ch; font-size: 14.5px; }
.em-breve-icone { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: var(--ouro); background: rgba(var(--ouro-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--ouro-rgb), .35), 0 0 30px -10px rgba(var(--ouro-rgb), .9); }
.em-breve-icone svg { width: 30px; height: 30px; }
/* Os contadores de selo variam (só as operações que o motorista rodou): colunas iguais, quantas houver. */
.selos-tipos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* ════════════════════════════════════════════════════════════════════════════
   MOLDURA DA FOTO: borda + aura compradas na loja
   Funciona com foto ou iniciais, em qualquer tamanho. Animações SEM
   prefers-reduced-motion, por decisão do dono.
   ════════════════════════════════════════════════════════════════════════════ */
.moldura { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 3px; isolation: isolate; flex: none; }
.moldura.moldura-g { padding: 5px; }
.moldura > .avatar { position: relative; z-index: 1; border: 2px solid var(--noite); }
/* Fundo sólido: as iniciais são translúcidas e deixariam a cor do anel vazar para dentro. */
.moldura > .avatar { background-color: var(--noite-2); }
.moldura-anel { position: absolute; inset: 0; border-radius: 50%; z-index: 0; overflow: hidden; }
.moldura-anel::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 210deg, var(--cyan), var(--azul), var(--cyan)); }
.moldura-aura { position: absolute; inset: -38%; border-radius: 50%; z-index: -1; pointer-events: none; }

/* Bordas */
.borda-prata .moldura-anel::before { background: conic-gradient(from 30deg, #f4f8fb, #9aa6b2, #ffffff, #7e8b98, #f4f8fb); }
.borda-neon-ciano .moldura-anel::before { background: #4ff3ff; }
.borda-neon-ciano { box-shadow: 0 0 10px #00e5ff, 0 0 22px rgba(0, 229, 255, .7); animation: mol-neon 1.8s ease-in-out infinite; --neon: 0, 229, 255; }
.borda-neon-rosa .moldura-anel::before { background: #ff6ad5; }
.borda-neon-rosa { box-shadow: 0 0 10px #ff3cc7, 0 0 22px rgba(255, 60, 199, .7); animation: mol-neon 1.8s ease-in-out infinite; --neon: 255, 60, 199; }
@keyframes mol-neon { 50% { box-shadow: 0 0 6px rgb(var(--neon)), 0 0 14px rgba(var(--neon), .5); } }
.borda-arco-iris .moldura-anel::before { background: conic-gradient(#ff4d4d, #ffb84d, #fff04d, #4dff88, #4dd2ff, #9b6bff, #ff4dd8, #ff4d4d); animation: girar 3s linear infinite; }
.borda-fogo .moldura-anel::before { background: conic-gradient(from 0deg, #ff2a00, #ff8a00, #ffd23f, #ff5a00, #ff2a00, #ffb000, #ff2a00); animation: girar 1.6s linear infinite; }
.borda-fogo { box-shadow: 0 0 14px rgba(255, 110, 0, .85), 0 -4px 18px rgba(255, 60, 0, .6); animation: mol-fogo .35s ease-in-out infinite alternate; }
@keyframes mol-fogo { to { box-shadow: 0 0 20px rgba(255, 140, 0, .95), 0 -6px 24px rgba(255, 80, 0, .7); } }
.borda-raio .moldura-anel::before { background: conic-gradient(#ffffff, #00e5ff 20%, #1677d8 40%, #ffffff 50%, #00e5ff 70%, #1677d8 90%, #ffffff); animation: girar .9s linear infinite; }
.borda-raio { animation: mol-raio 1.2s steps(1) infinite; }
@keyframes mol-raio { 0%, 100% { box-shadow: 0 0 8px #00e5ff; } 20% { box-shadow: 0 0 22px #fff, 0 0 34px #00e5ff; } 24% { box-shadow: 0 0 6px #00e5ff; } 62% { box-shadow: 0 0 26px #fff, 0 0 40px #4ff3ff; } 66% { box-shadow: 0 0 8px #00e5ff; } }
.borda-ouro .moldura-anel::before { background: conic-gradient(from 0deg, #fff0b8, #e2b13d, #94600f, #ffe08a, #b47a19, #fff0b8); animation: girar 6s linear infinite; }
.borda-ouro { box-shadow: 0 0 16px rgba(var(--ouro-rgb), .75); }

/* Auras */
.aura-ciano .moldura-aura { background: radial-gradient(circle, rgba(0, 229, 255, .55), rgba(0, 229, 255, 0) 65%); animation: mol-pulso 2.2s ease-in-out infinite; }
.aura-dourada .moldura-aura { background: radial-gradient(circle, rgba(255, 214, 102, .7), rgba(242, 193, 78, 0) 66%); animation: mol-pulso 2.8s ease-in-out infinite; }
@keyframes mol-pulso { 50% { transform: scale(1.12); opacity: .75; } }
.aura-chamas .moldura-aura { background: radial-gradient(circle at 50% 60%, rgba(255, 120, 0, .55), rgba(255, 60, 0, 0) 62%); }
.aura-chamas .moldura-aura::before, .aura-chamas .moldura-aura::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 40%; height: 55%; border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #ffd23f, #ff6a00 45%, rgba(255, 40, 0, 0) 70%); filter: blur(2px);
  animation: mol-chama 1.1s ease-in infinite; transform-origin: bottom;
}
.aura-chamas .moldura-aura::after { left: 18%; right: 46%; animation-delay: .45s; animation-duration: 1.3s; }
@keyframes mol-chama { 0% { transform: translateY(20%) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-45%) scale(1.1); opacity: 0; } }
.aura-estrelas .moldura-aura { animation: girar 7s linear infinite; background:
  radial-gradient(circle at 50% 6%, #fff 0 2px, transparent 3px),
  radial-gradient(circle at 92% 50%, #fff7c2 0 2.5px, transparent 3.5px),
  radial-gradient(circle at 50% 94%, #bfe9ff 0 2px, transparent 3px),
  radial-gradient(circle at 10% 40%, #fff 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 24% 84%, #fff7c2 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 80% 14%, #bfe9ff 0 1.5px, transparent 2.5px),
  radial-gradient(circle, rgba(140, 180, 255, .3), transparent 62%); }
/* O passo dos raios tem que dividir 360 (24° = 15 raios): com 22° sobrava uma emenda no alto, dois
   raios quase colados girando junto (dono, 08/10/2026). */
.aura-raios .moldura-aura {
  background: repeating-conic-gradient(rgba(255, 226, 140, .75) 0 6deg, rgba(255, 226, 140, 0) 6deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 70%); mask: radial-gradient(circle, #000 28%, transparent 70%);
  animation: girar 14s linear infinite;
}

/* Tamanho grande (perfil, vitrine, foto) */
.moldura-g > .avatar { width: 112px; height: 112px; border-width: 3px; }
.moldura-g > .avatar-iniciais { font-size: 38px; }

/* ════════════════════════════════════════════════════════════════════════════
   CAPA DO PERFIL (também a vitrine da loja)
   ════════════════════════════════════════════════════════════════════════════ */
.capa {
  position: relative; height: 150px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 212, 255, .36), transparent 55%),
    radial-gradient(90% 80% at 96% 18%, rgba(22, 119, 216, .5), transparent 60%),
    linear-gradient(160deg, #0d2a5a, #050f26 72%);
}
/* A capa se dissolve no cartão (máscara), sem linha onde a foto termina. */
.capa { -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.capa > img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.capa-credito {
  position: absolute; z-index: 1; right: 8px; top: 8px; max-width: calc(100% - 16px);
  padding: 3px 8px; border-radius: 999px; font-size: 10.5px; line-height: 1.3; color: rgba(234, 242, 255, .82);
  background: rgba(3, 11, 28, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.capa-foto { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: -66px; }
.foto-trocar { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.foto-trocar:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.foto-trocar .lapis {
  position: absolute; z-index: 3; right: 4px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan); color: var(--noite); border: 3px solid var(--noite);
  box-shadow: 0 0 14px rgba(0, 212, 255, .7);
}
.foto-trocar .lapis svg { width: 14px; height: 14px; }
.perfil-corpo { display: grid; justify-items: center; gap: 8px; padding: 10px 20px 22px; }
.botao-loja { margin-top: 6px; min-height: 42px; font-size: 14px; }
.botao-loja svg { width: 18px; height: 18px; color: var(--cyan); }

/* Adesivos: logo da marca num adesivo branco recortado, cada um num ângulo */
.faixa-adesivos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; padding: 6px 0 2px; }
.adesivo {
  --giro: 0deg;
  display: inline-grid; place-items: center; height: 46px; min-width: 46px; padding: 7px 10px; border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #e3eaf3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92), 0 9px 16px -8px rgba(0, 0, 0, .95);
  transform: rotate(var(--giro));
}
.adesivo img { width: auto; height: auto; max-height: 32px; max-width: 84px; object-fit: contain; }
/* Logo comprida (TransÁgil, Grupo LOS): mais largo e mais baixo, senão o nome fica ilegível. */
.adesivo-largo img { max-width: 150px; max-height: 22px; }
.adesivo.provando { outline: 2px dashed var(--cyan); outline-offset: 4px; }
/* Título secreto (easter egg) ainda não achado: "???" piscando na loja. */
.titulo-secreto { --rar: 242, 193, 78; letter-spacing: .3em; animation: segredo-pisca 1.4s ease-in-out infinite alternate; }
.peca-secreta { cursor: default; }
@keyframes segredo-pisca { to { opacity: .35; } }

/* ════════════════════════════════════════════════════════════════════════════
   LOJA
   ════════════════════════════════════════════════════════════════════════════ */
.moeda-mini { width: 18px; height: 18px; flex: none; }
.carteira { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 16px 18px; }
.carteira-moeda .moeda-mini { width: 48px; height: 48px; filter: drop-shadow(0 0 12px rgba(var(--ouro-rgb), .55)); }
.carteira-saldo small { display: block; color: var(--texto-fraco); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.carteira-saldo b { font-family: var(--fonte-titulo); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--ouro); text-shadow: 0 0 18px rgba(var(--ouro-rgb), .45); }
.carteira p { grid-column: 1 / -1; margin-top: 6px; color: var(--texto-2); font-size: 13px; }
.carteira p b { color: var(--texto); }
.loja-vitrine .perfil-corpo { padding-bottom: 18px; }

.filtro-viagens.filtro-quatro { grid-template-columns: repeat(4, 1fr); }
.grade-pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.peca {
  --rar: 0, 212, 255;
  position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 16px; cursor: pointer; text-align: left; color: var(--texto);
  border: 1px solid var(--vidro-borda); background: linear-gradient(180deg, rgba(var(--rar), .08), rgba(255, 255, 255, .02));
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.peca:hover { transform: translateY(-2px); border-color: rgba(var(--rar), .45); }
.peca[aria-pressed="true"] { border-color: rgb(var(--rar)); box-shadow: 0 0 0 1px rgb(var(--rar)), 0 0 26px -8px rgba(var(--rar), .95); }
.peca-mini {
  display: grid; place-items: center; height: 92px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(var(--rar), .16), rgba(3, 11, 28, .55) 70%);
}
.peca-mini .moldura > .avatar { width: 50px; height: 50px; }
.mini-fundo { width: 100%; height: 100%; object-fit: cover; }
.mini-nexus {
  display: block;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(0, 212, 255, .36), transparent 55%),
    radial-gradient(90% 80% at 96% 18%, rgba(22, 119, 216, .5), transparent 60%),
    linear-gradient(160deg, #0d2a5a, #050f26 72%);
}
.peca-nome { font-weight: 700; font-size: 14px; line-height: 1.25; }
.peca-pe { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.raridade { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: rgb(var(--rar)); }
.peca-preco { display: inline-flex; align-items: center; gap: 4px; font-family: var(--fonte-titulo); font-weight: 800; font-size: 14px; color: var(--ouro); }
.peca-estado { font-size: 12px; font-weight: 700; color: var(--texto-fraco); }
.peca-estado.em-uso { color: var(--cyan); }

/* Barra de compra: embaixo da vitrine no computador; flutuando no rodapé do celular.
   Fica FORA do cartão de vidro: o backdrop-filter dele prenderia o position: fixed. */
.loja-acao {
  --rar: 0, 212, 255;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
  border-radius: 18px; border: 1px solid rgba(var(--rar), .5);
  background: linear-gradient(180deg, #0f2147, #081530);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .9), 0 0 30px -14px rgba(var(--rar), .95);
}
.loja-acao-mini { display: none; }
.loja-acao-nome { min-width: 0; display: grid; text-align: left; }
.loja-acao-nome b { font-family: var(--fonte-titulo); font-size: 15px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.loja-acao .botao { min-height: 44px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }
.loja-soltar svg { width: 16px; height: 16px; }
/* No celular, duas linhas (dono, 08/10/2026: "usar item fica bugado, feio lá embaixo" — numa tela de
   375 px a miniatura do título e o botão espremiam o nome até sumir embaixo do botão):
   em cima a miniatura, o nome inteiro e o X; embaixo o botão na largura toda. */
@media (max-width: 899px) {
  .loja-acao {
    position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    max-width: 460px; margin: 0 auto; padding: 10px; gap: 10px 12px;
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "mini nome soltar" "botao botao botao";
    animation: acao-sobe .3s cubic-bezier(.2, .9, .3, 1.1);
  }
  .loja-acao-mini { grid-area: mini; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: rgba(3, 11, 28, .6); }
  .loja-acao-mini .moldura > .avatar { width: 32px; height: 32px; }
  .loja-acao-mini .adesivo { height: 32px; min-width: 0; padding: 4px 6px; transform: none; }
  .loja-acao-mini .adesivo img { max-height: 22px; max-width: 38px; }
  /* Título: o nome já é o próprio título, a miniatura só repetiria. */
  .loja-acao-mini.peca-mini-titulo { display: none; }
  .loja-acao:has(.peca-mini-titulo) { grid-template-areas: "nome nome soltar" "botao botao botao"; padding-left: 16px; }
  .loja-acao-nome { grid-area: nome; }
  .loja-soltar { grid-area: soltar; }
  .loja-acao .botao { grid-area: botao; width: 100%; min-height: 46px; padding: 0 12px; }
  .grade-loja.com-escolha { padding-bottom: 150px; }
}
@media (min-width: 900px) {
  .grade-loja { grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .grade-loja > .col:first-child { position: sticky; top: 24px; }
}
@keyframes acao-sobe { from { transform: translateY(30px); opacity: 0; } }

/* Recado rápido (compra feita, foto enviada) */
.recado {
  position: fixed; z-index: 60; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%);
  width: max-content; max-width: min(440px, calc(100vw - 24px)); padding: 12px 18px; border-radius: 14px;
  font-weight: 700; font-size: 14.5px; color: var(--texto); text-align: center;
  background: linear-gradient(180deg, #11305e, #0a1d40); border: 1px solid rgba(0, 212, 255, .5);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9), 0 0 24px -8px rgba(0, 212, 255, .8);
  animation: recado-entra .35s cubic-bezier(.2, .9, .3, 1.1); transition: opacity .4s ease, transform .4s ease;
}
.recado-ruim { border-color: rgba(var(--ruim-rgb), .6); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9), 0 0 24px -8px rgba(var(--ruim-rgb), .8); }
.recado.saindo { opacity: 0; transform: translate(-50%, -10px); }
@keyframes recado-entra { from { opacity: 0; transform: translate(-50%, -14px); } }

/* Janela da foto */
.escolher-foto { position: relative; cursor: pointer; justify-self: center; }
.escolher-foto input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.escolher-foto:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════════════════════
   PAINEL DO ADMIN (versão real)
   ════════════════════════════════════════════════════════════════════════════ */
.admin-entrada { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 16px; }
.admin-entrada .cartao-entrada { width: min(440px, 100%); }
.app-admin > main.entrada { min-height: 100dvh; display: grid; place-items: center; }
.fraco { color: var(--texto-fraco); }
.top5 { color: var(--ouro); }
.veredito-atencao { background: rgba(var(--atencao-rgb), .12); color: var(--atencao); box-shadow: inset 0 0 0 1px rgba(var(--atencao-rgb), .3); }
.nome-link { font-weight: 700; text-align: left; padding: 0; font-size: inherit; }
.cartao-foto .info .nome-link { font-size: 15px; justify-self: start; }
/* O ranking do painel não leva foto: posição, nome, selos e pontos. */
.ranking-admin li { grid-template-columns: 30px minmax(0, 1fr) auto auto; }
.ranking-admin .nome-link { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabela td.quebra { white-space: normal; min-width: 260px; max-width: 520px; }
.tabela-fixa tbody tr { cursor: default; }
.tabela .pessoa .moldura > .avatar { width: 36px; height: 36px; }

/* Gaveta: moldura grande e fotos do perfil */
.gaveta-topo .moldura > .avatar { width: 84px; height: 84px; box-shadow: none; }
.fotos-perfil { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.foto-perfil { margin: 0; display: grid; gap: 8px; align-content: start; padding: 8px; border-radius: 14px; border: 1px solid var(--vidro-borda); background: rgba(3, 11, 28, .4); }
.foto-perfil img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--vidro-2); }
.foto-perfil figcaption { display: grid; gap: 3px; justify-items: start; }
.foto-perfil small { color: var(--texto-fraco); font-size: 12px; line-height: 1.35; }
.foto-perfil .acoes { display: flex; gap: 6px; }
.foto-perfil .acoes .botao { flex: 1; min-height: 34px; padding: 0 8px; font-size: 13px; }
.gaveta h3 { margin-top: 4px; }
.periodo-fechado .ranking-admin { padding-left: 0; margin: 4px 0 0; color: var(--texto); }

/* ════════════════════════════════════════════════════════════════════════════
   TÍTULOS: embaixo do nome, na cor da raridade. O lendário é ouro que reluz.
   ════════════════════════════════════════════════════════════════════════════ */
.titulo-chip {
  --rar: 0, 212, 255;
  display: inline-flex; align-items: center; max-width: 100%; padding: 3px 11px; border-radius: 999px;
  font-family: var(--fonte-titulo); font-size: 11.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; line-height: 1.35;
  color: rgb(var(--rar)); background: rgba(var(--rar), .12);
  box-shadow: inset 0 0 0 1px rgba(var(--rar), .5), 0 0 16px -6px rgba(var(--rar), .9);
}
.titulo-chip b { min-width: 0; font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titulo-epico { animation: titulo-pulsa 2.6s ease-in-out infinite; }
@keyframes titulo-pulsa { 50% { box-shadow: inset 0 0 0 1px rgba(var(--rar), .8), 0 0 22px -4px rgba(var(--rar), 1); } }
.titulo-lendario {
  background: linear-gradient(135deg, rgba(var(--ouro-rgb), .22), rgba(var(--ouro-rgb), .06));
  box-shadow: inset 0 0 0 1px rgba(var(--ouro-rgb), .75), 0 0 20px -4px rgba(var(--ouro-rgb), .95);
}
.titulo-lendario b {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(110deg, #f2c14e 0%, #fff0b8 30%, #ffffff 42%, #fff0b8 54%, #e2b13d 72%, #f2c14e 100%);
  background-size: 260% 100%; animation: titulo-reluz 3.2s linear infinite;
}
@keyframes titulo-reluz { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.titulo-mini { padding: 1px 8px; font-size: 9.5px; letter-spacing: .8px; box-shadow: inset 0 0 0 1px rgba(var(--rar), .45); }
.titulo-lendario.titulo-mini { box-shadow: inset 0 0 0 1px rgba(var(--ouro-rgb), .7); }
.titulo-vazio { color: var(--texto-fraco); font-size: 13px; font-weight: 700; }
.degrau .titulo-mini { margin-top: -4px; }
.seguintes .quem small { display: flex; align-items: center; gap: 6px; }
.menu-perfil .titulo-mini { margin: 2px 0 1px; }

/* Loja: cartões de título e missões */
.filtro-viagens.filtro-cinco { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 420px) { .filtro-viagens.filtro-cinco button { font-size: 12px; padding: 8px 2px; } }
.grade-titulos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.peca-mini-titulo { height: 64px; padding: 0 8px; }
.peca-mini-titulo .titulo-chip { font-size: 12px; }
.missao-texto { font-size: 13px; color: var(--texto-2); line-height: 1.35; }
.missao-barra { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.missao-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--rar), .6), rgb(var(--rar))); box-shadow: 0 0 10px rgba(var(--rar), .8); }
.peca-titulo.bloqueado .peca-mini-titulo .titulo-chip { filter: saturate(.35) brightness(.8); }
.loja-acao-mini.peca-mini-titulo { width: auto; max-width: 132px; padding: 0 6px; }
.loja-acao-mini .titulo-chip { font-size: 9.5px; padding: 2px 7px; letter-spacing: .6px; }
.lista-titulo small { text-transform: none; }

/* Comemoração do título conquistado (o efeito do cadeado é o mesmo da compra, logo abaixo) */
.dlg-conquista { overflow: hidden; }
.modal-conquista { --lib-y: 46px; position: relative; justify-items: center; text-align: center; padding-top: 30px; isolation: isolate; }
.modal-conquista .conquista-chamada { animation: lib-texto .5s ease-out .8s both; }
.conquista-chamada { font-family: var(--fonte-titulo); font-weight: 800; font-size: 24px; letter-spacing: -.5px; color: var(--ouro); text-shadow: 0 0 22px rgba(var(--ouro-rgb), .6); }
.conquista-titulos { display: grid; gap: 14px; justify-items: center; }
.conquista-item { display: grid; gap: 6px; justify-items: center; }
.conquista-item .titulo-chip { font-size: 15px; padding: 6px 16px; animation: conquista-entra .6s cubic-bezier(.2, .9, .3, 1.3) .75s both; }
.conquista-item small { color: var(--texto-2); font-size: 13px; }
@keyframes conquista-entra { from { transform: scale(.4); opacity: 0; } }
.modal-conquista .modal-acoes { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════
   LIBERADO! Compra na loja e título conquistado (dono, 08/10/2026: "animação ao liberar algo",
   "mais especial"). Tudo na cor da raridade (--rar, "r, g, b"):
     0–0,45 s  o cadeado aparece e treme · 0,45 s a alça abre · 0,7 s clarão em onda, faíscas e
     raios girando; a peça salta no meio · 0,95 s o texto. Épico e lendário: confete; lendário:
     segunda volta de raios ao contrário, brilho dourado passando no "Liberado!" e fundo dourado.
   Sem prefers-reduced-motion de propósito (o dono quer animação em todo aparelho).
   O passo dos raios divide 360 (24°), senão sobra emenda (ver aura de raios).
   ════════════════════════════════════════════════════════════════════════════ */
.dlg-liberado { overflow: hidden; }
.dlg-liberado:has(.lib-lendario)::backdrop { background: radial-gradient(circle at 50% 40%, rgba(242, 193, 78, .28), rgba(1, 6, 18, .86) 62%); }
.modal-liberado { --lib-y: 111px; position: relative; isolation: isolate; justify-items: center; text-align: center; gap: 6px; padding-top: 26px; }
.modal-liberado .modal-acoes { width: 100%; margin-top: 6px; }
.lib-efeito { position: absolute; z-index: -1; left: 50%; top: var(--lib-y); width: 0; height: 0; pointer-events: none; }
.lib-efeito > * { position: absolute; left: 0; top: 0; translate: -50% -50%; }

.lib-raios {
  width: 560px; height: 560px; opacity: 0;
  background: repeating-conic-gradient(rgba(var(--rar), .26) 0 8deg, transparent 8deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%);
  animation: lib-raios-entra .6s ease-out .7s forwards, girar 16s linear .7s infinite;
}
.lib-raios-2 { width: 460px; height: 460px; background: repeating-conic-gradient(rgba(255, 236, 170, .3) 0 4deg, transparent 4deg 30deg); animation: lib-raios-entra .6s ease-out .8s forwards, lib-girar-volta 11s linear .8s infinite; }
@keyframes lib-raios-entra { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes lib-girar-volta { to { transform: rotate(-1turn); } }

.lib-onda {
  width: 64px; height: 64px; border-radius: 50%; opacity: 0;
  border: 3px solid rgba(var(--rar), .95); box-shadow: 0 0 30px rgba(var(--rar), .85), inset 0 0 26px rgba(var(--rar), .6);
  animation: lib-onda .75s ease-out .68s forwards;
}
@keyframes lib-onda { 0% { opacity: 1; scale: .4; } 100% { opacity: 0; scale: 6.5; } }

.lib-faiscas { width: 0; height: 0; translate: none; }
.lib-faiscas i {
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(var(--rar), .95); opacity: 0;
  animation: lib-faisca 1.05s cubic-bezier(.12, .7, .3, 1) calc(.7s + var(--t)) forwards;
}
@keyframes lib-faisca {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1.5); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.3); }
}

.lib-cadeado {
  width: 64px; height: 75px; color: rgb(var(--rar)); filter: drop-shadow(0 0 16px rgba(var(--rar), .85));
  animation: lib-cadeado-treme .45s ease-in-out both, lib-cadeado-some .3s ease-in .7s forwards;
}
.lib-alca { transform-box: fill-box; transform-origin: 90% 100%; animation: lib-alca-abre .25s ease-out .45s forwards; }
@keyframes lib-cadeado-treme {
  0% { scale: .3; opacity: 0; }
  30% { scale: 1; opacity: 1; rotate: 0deg; }
  45% { rotate: -10deg; } 60% { rotate: 9deg; } 75% { rotate: -6deg; } 90% { rotate: 3deg; }
  100% { scale: 1; opacity: 1; rotate: 0deg; }
}
@keyframes lib-alca-abre { to { transform: translateY(-8px) rotate(30deg); } }
@keyframes lib-cadeado-some { to { scale: 1.9; opacity: 0; } }

.lib-palco { height: 170px; display: grid; place-items: center; }
.lib-peca { animation: lib-peca-entra .75s cubic-bezier(.2, .9, .3, 1.35) .72s both; filter: drop-shadow(0 10px 26px rgba(var(--rar), .5)); }
@keyframes lib-peca-entra { from { transform: scale(.15) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lib-peca[data-cat="borda"], .lib-peca[data-cat="aura"] { scale: 1.5; }
.lib-peca[data-cat="adesivo"] { scale: 1.7; }
.lib-peca[data-cat="fundo"] .mini-fundo { display: block; width: 230px; height: 130px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(var(--rar), .8); }
.lib-peca[data-cat="titulo"] .titulo-chip { font-size: 16px; padding: 7px 18px; }

.lib-chamada {
  margin: 4px 0 0; font-family: var(--fonte-titulo); font-weight: 800; font-size: 32px; letter-spacing: -.5px; color: #fff;
  text-shadow: 0 0 26px rgba(var(--rar), .95); animation: lib-texto .5s ease-out .95s both;
}
.lib-nome { margin: 0; font-size: 18px; font-weight: 700; animation: lib-texto .5s ease-out 1.05s both; }
.lib-raridade { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: rgb(var(--rar)); animation: lib-texto .5s ease-out 1.12s both; }
.modal-liberado .item-explica, .modal-liberado .modal-acoes { animation: lib-texto .5s ease-out 1.2s both; }
@keyframes lib-texto { from { opacity: 0; transform: translateY(10px); } }
/* Lendário: o brilho dourado passando no "Liberado!" */
.lib-lendario ~ .lib-chamada {
  background: linear-gradient(100deg, #f2c14e 20%, #fff 38%, #ffe7a3 46%, #f2c14e 62%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lib-texto .5s ease-out .95s both, lib-brilho 2.4s linear 1.4s infinite;
}
@keyframes lib-brilho { to { background-position: -260% 0; } }

.lib-confete { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lib-confete i {
  position: absolute; top: -14px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; opacity: 0;
  animation: lib-confete var(--du) cubic-bezier(.3, .6, .5, 1) var(--t) forwards;
}
.lib-confete .c0 { background: rgb(var(--rar)); }
.lib-confete .c1 { background: #fff; }
.lib-confete .c2 { background: #00d4ff; }
.lib-confete .c3 { background: #f2c14e; }
@keyframes lib-confete { 0% { opacity: 1; transform: translateY(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(620px) rotate(var(--r)); } }
/* No cartão da loja o título inteiro precisa caber: quebra em duas linhas em vez de cortar. */
.peca-mini-titulo .titulo-chip { font-size: 11px; letter-spacing: .5px; line-height: 1.25; padding: 5px 11px; border-radius: 12px; text-align: center; }
.peca-mini-titulo .titulo-chip b { white-space: normal; }

/* ════════════════════════════════════════════════════════════════════════════
   TÍTULOS DO PÓDIO: TOP 1, 2 e 3 TRANSÁGIL, com asas batendo. Ouro, prata e bronze,
   as mesmas cores do pódio. Temporários: só com o período aberto.
   ════════════════════════════════════════════════════════════════════════════ */
.titulo-top {
  --metal: var(--ouro-rgb);
  --chapa: linear-gradient(135deg, #fff3c4, #f2c14e 42%, #c48a1c 70%, #ffe08a);
  --tinta: #3a2500;
  position: relative; display: inline-flex; align-items: center; max-width: 100%; isolation: isolate;
}
.top-2 { --metal: var(--prata-rgb); --chapa: linear-gradient(135deg, #ffffff, #d7dfeb 42%, #8f9bad 72%, #f1f5fb); --tinta: #18212f; }
.top-3 { --metal: var(--bronze-rgb); --chapa: linear-gradient(135deg, #ffd9b8, #d68c54 42%, #94531f 72%, #f5b884); --tinta: #2b1404; }
.titulo-top b {
  position: relative; z-index: 1; padding: 4px 12px; border-radius: 8px;
  font-family: var(--fonte-titulo); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.3;
  white-space: nowrap; color: var(--tinta); background: var(--chapa); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 0 18px -2px rgba(var(--metal), .9), 0 4px 10px -4px rgba(0, 0, 0, .8);
  animation: top-reluz 3.4s ease-in-out infinite;
}
@keyframes top-reluz { 50% { background-position: 100% 0; } }
.titulo-top .asa {
  width: 30px; height: 19px; flex: none; position: relative; z-index: 0;
  filter: drop-shadow(0 0 5px rgba(var(--metal), .85));
}
.titulo-top .asa-esq { margin-right: -5px; transform-origin: 95% 40%; animation: asa-esq 1.8s ease-in-out infinite; }
.titulo-top .asa-dir { margin-left: -5px; transform-origin: 5% 40%; animation: asa-dir 1.8s ease-in-out infinite; }
.titulo-top .asa-corpo { fill: rgb(var(--metal)); }
.titulo-top .asa-pena { fill: none; stroke: rgba(0, 0, 0, .28); stroke-width: 1.3; stroke-linecap: round; }
@keyframes asa-esq { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes asa-dir { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }

/* Tamanho pequeno: pódio e menu */
.titulo-top.titulo-mini b { padding: 2px 8px; font-size: 9.5px; letter-spacing: .9px; border-radius: 6px; }
.titulo-top.titulo-mini .asa { width: 21px; height: 14px; }
.titulo-top.titulo-mini .asa-esq { margin-right: -4px; }
.titulo-top.titulo-mini .asa-dir { margin-left: -4px; }

/* Loja: vitrine dos três */
.podio-titulos { display: grid; gap: 10px; }
.podio-titulo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--vidro-borda); background: rgba(3, 11, 28, .4); }
.podio-titulo small { color: var(--texto-fraco); font-size: 12.5px; font-weight: 700; text-align: right; }
.podio-titulo.meu { border-color: rgba(var(--ouro-rgb), .6); background: rgba(var(--ouro-rgb), .08); }
.podio-titulo.meu small { color: var(--ouro); }

/* ════════════════════════════════════════════════════════════════════════════
   INSTALAR O APP (celular)
   ════════════════════════════════════════════════════════════════════════════ */
/* Aviso da tela de entrada: Instalar app ou Seguir navegando (pedido do dono) */
.convite-acoes { width: 100%; display: grid; gap: 10px; }
.convite-acoes .botao { width: 100%; }
.abas-app .item-instalar { color: var(--cyan); }
.abas-app .item-instalar .ico { background: rgba(0, 212, 255, .14); border-color: rgba(0, 212, 255, .4); color: var(--cyan); }
.modal-instalar { justify-items: center; text-align: center; }
.modal-instalar > img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 28px -6px rgba(0, 212, 255, .8); }
.passos-instalar { margin: 0; padding-left: 22px; display: grid; gap: 10px; text-align: left; color: var(--texto-2); font-size: 14.5px; line-height: 1.45; }
.passos-instalar b { color: var(--texto); }
.ico-passo { display: inline-grid; place-items: center; width: 24px; height: 24px; vertical-align: middle; border-radius: 6px; background: rgba(0, 212, 255, .14); color: var(--cyan); }
.ico-passo svg { width: 15px; height: 15px; }
.modal-instalar .modal-acoes { width: 100%; }
