* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #01040a;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #c9f6ff;
}

.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 50% 43%, rgba(18, 125, 255, 0.14), transparent 28%),
    radial-gradient(circle at 25% 70%, rgba(0, 220, 255, 0.07), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(0, 80, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #01040a 0%, #020817 50%, #01030a 100%);
}

.stage {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#energiaCanvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.painel {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 68px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  pointer-events: auto;
}

button {
  border: 1px solid rgba(128, 235, 255, 0.55);
  background: rgba(4, 32, 56, 0.72);
  color: #d9fbff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.4px;
  box-shadow:
    0 0 22px rgba(0, 190, 255, 0.18),
    inset 0 0 14px rgba(150, 245, 255, 0.05);
  transition: 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  background: rgba(9, 91, 195, 0.36);
  box-shadow:
    0 0 30px rgba(0, 190, 255, 0.25),
    inset 0 0 14px rgba(150, 245, 255, 0.08);
}

button.ativo {
  background: rgba(0, 135, 255, 0.32);
  border-color: rgba(160, 245, 255, 0.55);
}

.status {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.88;
}

#statusTexto {
  font-size: 13px;
  color: rgba(235, 253, 255, 0.82);
}

#comandoTexto {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 0 8px rgba(0, 220, 255, 0.16);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.comandos {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 420px;
  justify-content: center;
  align-items: center;
  opacity: 0.12;
  transform: scale(0.86);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.comandos:hover {
  opacity: 0.72;
  transform: scale(0.92);
}

.comandos span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: rgba(212, 250, 255, 0.38);
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(130, 235, 255, 0.06);
  transition: 0.18s ease;
}

.comandos span:hover {
  color: rgba(230, 255, 255, 0.92);
  background: rgba(0, 150, 255, 0.13);
  border-color: rgba(130, 235, 255, 0.22);
  box-shadow: 0 0 12px rgba(0, 220, 255, 0.12);
}

footer {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  z-index: 10;
  font-size: 13px;
  letter-spacing: 8px;
  color: rgba(205, 248, 255, 0.58);
}

.btn-mapa-vivo {
  min-width: 128px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(130, 235, 255, 0.28);
  background: rgba(0, 90, 145, 0.20);
  color: rgba(230, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: 0.22s ease;
}

.btn-mapa-vivo:hover {
  background: rgba(0, 150, 255, 0.30);
  border-color: rgba(160, 245, 255, 0.48);
  box-shadow: 0 0 34px rgba(0, 210, 255, 0.26);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .painel {
    left: 18px;
    right: 18px;
    bottom: 60px;
    gap: 13px;
  }

  button {
    padding: 12px 19px;
  }

  .status {
    min-width: 210px;
  }

  .comandos {
    gap: 6px;
    max-width: 100%;
    transform: scale(0.9);
  }

  .comandos span {
    font-size: 10px;
    padding: 6px 8px;
  }

  footer {
    letter-spacing: 5px;
    font-size: 12px;
  }
}
.stage {
  position: relative;
  overflow: hidden;
}

#mapaReal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  filter: brightness(0.98) contrast(1.02) saturate(1.02);
  pointer-events: auto;

}

#energiaCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
 pointer-events: none;
}

.leaflet-container {
  background: #01040a;
}
@media (max-width: 700px) {
  #painel-destino-vivo {
    left: 18px !important;
    right: 18px !important;
    top: 145px !important;
    width: auto !important;
    max-width: calc(100vw - 36px) !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    transform: none !important;
    z-index: 50 !important;
  }

  #painel-destino-vivo * {
    max-width: 100%;
  }

  #painel-destino-vivo h2,
  #painel-destino-vivo h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  #painel-destino-vivo p,
  #painel-destino-vivo span,
  #painel-destino-vivo div {
    font-size: 12px !important;
  }
}
@media (max-width: 700px) {
  .status,
  .comandos {
    display: none !important;
  }
}

/* MAPA REAL LIMPO */
.leaflet-tile,
.leaflet-tile-pane img {
  filter: none !important;
}

.leaflet-container {
  background: #d7dedc !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(rgba(120, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 220, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 55%, rgba(0, 210, 255, 0.10), transparent 32%),
    linear-gradient(to bottom, rgba(0, 8, 18, 0.08), rgba(0, 8, 18, 0.38));
  background-size:
    38px 38px,
    38px 38px,
    100% 100%,
    100% 100%;
  mix-blend-mode: screen;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(120, 220, 255, 0.10) 48%, transparent 52%);
  opacity: 0.22;
  animation: leituraMapaVivo 5.5s linear infinite;
}

@keyframes leituraMapaVivo {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

body.modo-motorista::before {
  opacity: 0.72;
}

body.modo-motorista .leaflet-tile,
body.modo-motorista .leaflet-tile-pane img {
  filter: none !important;
}
/* ENTRADA CINEMATOGRÁFICA DO MAPA */
  body.entrada-mapa-vivo #mapaReal {
  transform-origin: center center;
}

body.entrada-mapa-vivo #energiaCanvas {
  animation: energiaCinemaAparece 4.8s ease forwards;
}

body.entrada-mapa-vivo .painel-destino-vivo {
  animation: painelCinemaEntra 4.8s ease forwards;
}

.entrada-mapa-vivo-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(0, 220, 255, 0.06), transparent 38%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 55%, rgba(0, 8, 18, 0.08));
  animation: layerCinemaSome 2.6s ease forwards;
}

.entrada-mapa-vivo-layer::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -28%;
  height: 72%;
  background:
    linear-gradient(rgba(120, 235, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 235, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(620px) rotateX(62deg) translateY(80px);
  opacity: 0;
  animation: malhaCinemaSobe 4.8s ease forwards;
}

.entrada-mapa-vivo-label {
  position: fixed;
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
  color: rgba(225, 250, 255, 0.95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 220, 255, 0.55);
  animation: labelCinema 4.8s ease forwards;
  white-space: nowrap;
}

.entrada-mapa-vivo-scan {
  position: fixed;
  left: 0;
  right: 0;
  top: -20%;
  height: 22%;
  background: linear-gradient(to bottom, transparent, rgba(130, 240, 255, 0.26), transparent);
  filter: blur(1px);
  opacity: 0;
  animation: scanCinemaDesce 4.8s ease forwards;
}

@keyframes mapaCinemaDesce {
  0% {
    transform: scale(1.18) translateY(-70px);
    filter: brightness(0.75) contrast(1.18) saturate(1.1);
  }

  48% {
    transform: scale(1.07) translateY(-24px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes energiaCinemaAparece {
  0% {
  opacity: 0.75;
  filter: blur(1px);
  }

  58% {
    opacity: 0.45;
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes painelCinemaEntra {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }

  48% {
    opacity: 0;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes layerCinemaSome {
  0% {
    opacity: 0.28;
  }

  60% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
  }
}

@keyframes malhaCinemaSobe {
  0% {
    opacity: 0;
    transform: perspective(620px) rotateX(62deg) translateY(150px) scale(1.16);
  }

  22% {
    opacity: 0.22;
  }

  72% {
    opacity: 0.16;
  }

  100% {
    opacity: 0;
    transform: perspective(620px) rotateX(62deg) translateY(-30px) scale(1);
  }
}

@keyframes labelCinema {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }

  22% {
    opacity: 1;
  }

  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scanCinemaDesce {
  0% {
    opacity: 0;
    transform: translateY(-30vh);
  }

  18% {
    opacity: 1;
  }

  72% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateY(120vh);
  }
}
/* DESLIGAR VARREDURA AZUL / QUADRADO PASSANDO */
body::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

body.modo-motorista::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}/* LIMPEZA FINAL: REMOVE CAMADAS AZUIS DO MAPA VIVO */
body::before,
body::after,
body.modo-motorista::before,
body.modo-motorista::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
  background: none !important;
}

@media (max-width: 700px) {
  body:not(.modo-motorista) .painel-destino-vivo {
    position: fixed !important;
    top: 22px !important;
    right: 8px !important;
    left: auto !important;
    width: 222px !important;
    max-width: 222px !important;
    padding: 7px 9px !important;
    border-radius: 14px !important;
    background: rgba(9, 20, 30, 0.48) !important;
    border: 1px solid rgba(120, 220, 255, 0.18) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  body:not(.modo-motorista) #destinoLabel {
    font-size: 7px !important;
    letter-spacing: 3px !important;
    margin-bottom: 4px !important;
  }

  body:not(.modo-motorista) #destinoNome {
    font-size: 14px !important;
    line-height: 1.05 !important;
    margin-bottom: 5px !important;
  }

  body:not(.modo-motorista) #destinoMeta {
    font-size: 9px !important;
    line-height: 1.22 !important;
  }

  body:not(.modo-motorista) #destinoStatus {
    font-size: 8px !important;
    padding: 4px 7px !important;
    line-height: 1.15 !important;
    background: rgba(30, 190, 230, 0.13) !important;
  }

  body:not(.modo-motorista) #gpsBarra {
    height: 2px !important;
    margin-top: 5px !important;
  }
}
@media (max-width: 700px) {
  body:not(.modo-motorista) .painel-destino-vivo {
    position: fixed !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 218px !important;
    max-width: 218px !important;
    padding: 7px 9px !important;
    border-radius: 14px !important;
    background: rgba(9, 20, 30, 0.34) !important;
    border: 1px solid rgba(120, 220, 255, 0.12) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }

  body .painel-destino-vivo div {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.35) !important;
  }
}

/* MODO MOTORISTA - NAVEGAÇÃO LIMPA */
body.modo-motorista .status,
body.modo-motorista .comandos {
  display: none !important;
}

body.modo-motorista .busca-texto-vivo {
  left: 18px !important;
  top: 32px !important;
  width: 122px !important;
  height: 24px !important;
  opacity: 0.24 !important;
  filter: none !important;
}

body.modo-motorista .busca-texto-vivo:focus-within {
  width: 178px !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.18)) !important;
}

body.modo-motorista .busca-texto-vivo input {
  font-size: 8px !important;
  padding: 0 9px !important;
  background: rgba(4, 18, 34, 0.22) !important;
  border: 1px solid rgba(128, 235, 255, 0.14) !important;
  color: rgba(230, 255, 255, 0.76) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

body.modo-motorista .busca-texto-vivo input::placeholder {
  color: rgba(225, 250, 255, 0.42) !important;
}

body.modo-motorista .busca-texto-vivo:focus-within input {
  background: rgba(4, 32, 56, 0.50) !important;
  border: 1px solid rgba(128, 235, 255, 0.34) !important;
  color: rgba(240, 255, 255, 0.96) !important;
}

body.modo-motorista .painel-destino-vivo {
  position: fixed !important;
  top: 20px !important;
  right: 10px !important;
  left: auto !important;
  width: 250px !important;
  max-width: 250px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(7, 18, 28, 0.54) !important;
  border: 1px solid rgba(120, 220, 255, 0.18) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body.modo-motorista #destinoLabel {
  font-size: 8px !important;
  letter-spacing: 3px !important;
  margin-bottom: 5px !important;
}

body.modo-motorista #destinoNome {
  font-size: 16px !important;
  line-height: 1.08 !important;
  margin-bottom: 6px !important;
}

body.modo-motorista #destinoMeta {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

body.modo-motorista #destinoStatus {
  font-size: 9px !important;
  padding: 5px 8px !important;
  line-height: 1.12 !important;
  background: rgba(30, 190, 230, 0.14) !important;
}

body.modo-motorista #gpsBarra {
  height: 3px !important;
  margin-top: 6px !important;
}

body.modo-motorista .alerta-radar-vivo {
  top: 66px !important;
  left: 18px !important;
  width: 132px !important;
  padding: 4px 7px !important;
  opacity: 0 !important;
}

body.modo-motorista .alerta-radar-vivo.ativo {
  opacity: 1 !important;
}

@media (max-width: 700px) {
  body.modo-motorista .painel-destino-vivo {
    top: 20px !important;
    right: 8px !important;
    left: auto !important;
    width: 232px !important;
    max-width: 232px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }

  body.modo-motorista #destinoNome {
    font-size: 15px !important;
  }

  body.modo-motorista #destinoMeta {
    font-size: 9px !important;
  }

  body.modo-motorista #destinoStatus {
    font-size: 8px !important;
    padding: 4px 7px !important;
  }

  body.modo-motorista .busca-texto-vivo {
    left: 18px !important;
    top: 32px !important;
    width: 112px !important;
    height: 23px !important;
  }

  body.modo-motorista .busca-texto-vivo:focus-within {
    width: 168px !important;
  }

  body.modo-motorista .alerta-radar-vivo {
    top: 62px !important;
    left: 18px !important;
    width: 126px !important;
  }
}

.btn-modo-mapa {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 9999;
  border: 1px solid rgba(160, 210, 255, 0.08);
 background: rgba(5, 12, 22, 0.18);
  color: rgba(245, 245, 255, 0.58);
 backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.btn-modo-mapa:active {
  transform: scale(0.96);
}

@media (max-width: 700px) {
  .btn-modo-mapa {
    top: 88px;
    right: 14px;
    padding: 8px 13px;
    font-size: 10px;
  }
}
/* RADAR VIVO - ALERTA FINO E LIMPO */
.alerta-radar-vivo {
  position: fixed;
  top: 72px;
  left: 22px;
  transform: translateY(-6px);
  z-index: 99999;

  min-width: 210px;
  max-width: 82vw;
  padding: 7px 14px;
  border-radius: 999px;

  border: 1px solid rgba(255, 80, 80, 0.32);
  background: rgba(42, 6, 10, 0.48);
  box-shadow: 0 0 14px rgba(255, 40, 40, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: rgba(255, 235, 235, 0.92);
  text-align: center;
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.22s ease, transform 0.22s ease;
}

.alerta-radar-vivo.ativo {
  opacity: 1;
  transform: translateY(0);
  animation: radarAlertaFino 0.8s ease-in-out 3;
}

.alerta-radar-vivo .titulo-radar {
  display: inline;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 155, 155, 0.96);
  margin-right: 8px;
}

.alerta-radar-vivo .texto-radar {
  display: inline;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 245, 245, 0.90);
}

.flash-radar-vivo {
  display: none !important;
}

body.radar-proximo-vivo::before {
  display: none !important;
}

@keyframes radarAlertaFino {
  0% {
    opacity: 0.35;
    box-shadow: 0 0 8px rgba(255, 40, 40, 0.10);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 22px rgba(255, 40, 40, 0.28);
  }

  100% {
    opacity: 0.35;
    box-shadow: 0 0 8px rgba(255, 40, 40, 0.10);
  }
}

/* TELA INICIAL - ROTA VIVA */
.intro-rota-viva {
  position: fixed;
  left: 22px;
  top: 72px;
  z-index: 9997;

  width: 188px;
  padding: 10px 12px;
  border-radius: 16px;

  border: 1px solid rgba(128, 235, 255, 0.14);
  background: rgba(4, 18, 34, 0.30);
  box-shadow: 0 0 18px rgba(0, 190, 255, 0.07);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  color: rgba(230, 255, 255, 0.86);
  pointer-events: none;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.intro-rota-viva strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.25px;
  color: rgba(240, 255, 255, 0.94);
}

.intro-rota-viva span {
  display: block;
  font-size: 8px;
  line-height: 1.35;
  color: rgba(210, 245, 255, 0.58);
}

body.intro-rota-viva-oculta .intro-rota-viva,
body.modo-motorista .intro-rota-viva {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}

@media (max-width: 700px) {
  .intro-rota-viva {
    left: 18px;
    top: 68px;
    width: 176px;
    padding: 9px 11px;
    opacity: 0.68;
  }

  .intro-rota-viva strong {
    font-size: 9px;
  }

  .intro-rota-viva span {
    font-size: 7px;
  }
}

/* BOTÕES LIMPOS - LUZ VIVA OFICIAL */

#btnVoz,
#btnModoMotorista,
.btn-modo-motorista,
.btn-modo-mapa,
.btn-emergencia {
  position: fixed !important;
  overflow: hidden !important;
  isolation: isolate !important;
  z-index: 9999 !important;

  height: 28px !important;
  min-width: 92px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.45px !important;
  white-space: nowrap !important;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease !important;
  transform-origin: center !important;

  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

#btnModoMotorista::after,
.btn-modo-motorista::after,
.btn-modo-mapa::after,
.btn-emergencia::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 5px;
  bottom: 5px;
  opacity: 0;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg width='90' height='24' viewBox='0 0 90 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12 L6 12 L9 4 L13 20 L17 7 L21 17 L25 10 L29 14 L33 5 L37 21 L41 12 L45 12 L49 3 L53 22 L57 8 L61 18 L65 11 L69 15 L73 5 L77 21 L81 12 L89 12' fill='none' stroke='%2300d9ff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 90px 100%;
  background-position: 0 center;

  filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.95));
}

#btnVoz.onda-ativa::after,
#btnModoMotorista.onda-ativa::after,
.btn-modo-motorista.onda-ativa::after,
.btn-modo-mapa.onda-ativa::after,
.btn-emergencia.onda-ativa::after {
  animation: ondaSonoraViva 3s ease-out;
}

@keyframes ondaSonoraViva {
  0% {
    opacity: 0;
    background-position: 0 center;
    filter: drop-shadow(0 0 2px rgba(0, 217, 255, 0.5));
  }

  10% {
    opacity: 1;
    background-position: -40px center;
    filter: drop-shadow(0 0 7px rgba(0, 217, 255, 1));
  }

  50% {
    opacity: 1;
    background-position: -180px center;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 1));
  }

  85% {
    opacity: 0.85;
    background-position: -280px center;
    filter: drop-shadow(0 0 7px rgba(0, 217, 255, 0.9));
  }

  100% {
    opacity: 0;
    background-position: -360px center;
    filter: drop-shadow(0 0 2px rgba(0, 217, 255, 0.2));
  }
}

/* BOTÕES AZUIS */
#btnVoz,
#btnModoMotorista,
.btn-modo-motorista,
.btn-modo-mapa {
  background: rgba(4, 32, 56, 0.46) !important;
  border: 1px solid rgba(128, 235, 255, 0.34) !important;
  color: rgba(225, 252, 255, 0.88) !important;

  box-shadow:
    0 0 12px rgba(0, 190, 255, 0.14),
    inset 0 0 9px rgba(150, 245, 255, 0.06) !important;
}

/* LUZ INTERNA AZUL */
#btnVoz::before,
#btnModoMotorista::before,
.btn-modo-motorista::before,
.btn-modo-mapa::before {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle,
      rgba(210, 255, 255, 0.78) 0%,
      rgba(105, 245, 255, 0.52) 24%,
      rgba(0, 220, 255, 0.20) 48%,
      transparent 72%);

  filter: blur(7px);
  opacity: 0.72;
  animation: orbitaLuzBotao 4.2s ease-in-out infinite;
}

/* EMERGÊNCIA SEPARADO */
.btn-emergencia {
  right: 18px !important;
  bottom: 52px !important;

  background: rgba(45, 8, 12, 0.48) !important;
  border: 1px solid rgba(255, 80, 80, 0.34) !important;
  color: rgba(255, 232, 232, 0.88) !important;

  font-size: 7px !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;

  box-shadow:
    0 0 12px rgba(255, 60, 60, 0.14),
    inset 0 0 8px rgba(255, 120, 120, 0.06) !important;
}

.btn-emergencia::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle,
      rgba(255, 220, 220, 0.72) 0%,
      rgba(255, 100, 100, 0.42) 26%,
      rgba(255, 40, 40, 0.16) 50%,
      transparent 72%);

  filter: blur(7px);
  opacity: 0.72;
  animation: orbitaLuzBotao 4.2s ease-in-out infinite;
}

/* POSIÇÕES */
#btnVoz {
  left: 18px !important;
  bottom: 18px !important;
}

.btn-modo-mapa {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  text-transform: uppercase !important;
}

#btnModoMotorista,
.btn-modo-motorista {
  right: 18px !important;
  bottom: 18px !important;
}

/* SITE MENOR NO RODAPÉ */
footer {
  bottom: 5px !important;
  font-size: 8px !important;
  letter-spacing: 5px !important;
  opacity: 0.42 !important;
  z-index: 6 !important;
}

/* LUZ SE MEXENDO DENTRO */
@keyframes orbitaLuzBotao {
  0% {
    transform: translate(-22px, -5px) scale(0.92);
    opacity: 0.72;
  }

  35% {
    transform: translate(20px, 2px) scale(1.05);
    opacity: 1;
  }

  70% {
    transform: translate(3px, 9px) scale(0.96);
    opacity: 0.86;
  }

  100% {
    transform: translate(-22px, -5px) scale(0.92);
    opacity: 0.72;
  }
}
