/* ==========================================================================
   App do motoboy (Moto DV). Celular primeiro: botoes grandes para usar com
   luva, contraste alto para ler no sol.
   ========================================================================== */
.app-moto {
  --moto: #FF6A00;
  --moto-escuro: #E24E00;
  --moto-creme: #FFF4EA;
  background: var(--moto-creme);
  min-height: 100vh;
}
.app-moto.com-abas { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

.moto-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid #f1e1d2;
  position: sticky; top: 0; z-index: 20;
}
.moto-logo { height: 38px; width: auto; }

.moto-conteudo { max-width: 560px; margin: 0 auto; padding: 16px; }

.moto-abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: #fff; border-top: 1px solid #f1e1d2;
  padding-bottom: env(safe-area-inset-bottom);
}
.moto-abas a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 0 8px; font-size: .72rem; font-weight: 600; color: #6b7280; text-decoration: none;
}
.moto-abas a i { font-size: 1.3rem; }
.moto-abas a.ativa { color: var(--moto); }

.moto-cartao {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08); margin-bottom: 14px;
}

.btn-moto {
  background: var(--moto); border-color: var(--moto); color: #fff; font-weight: 700;
}
.btn-moto:hover, .btn-moto:focus { background: var(--moto-escuro); border-color: var(--moto-escuro); color: #fff; }

/* Interruptor online/offline: o botao mais importante do app */
.chave-online {
  width: 100%; border: 0; border-radius: 18px; padding: 18px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  font-weight: 800; font-size: 1.15rem; color: #fff; background: #6b7280;
  transition: background .2s;
}
.chave-online.ligada { background: #16a34a; }
.chave-online .bolinha {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; flex: none;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .25);
}
.chave-online.ligada .bolinha { animation: pulso 1.6s infinite; }
.chave-online small { display: block; font-weight: 500; font-size: .8rem; opacity: .9; }
@keyframes pulso { 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

.ganhos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ganhos div { background: #fff; border-radius: 14px; padding: 10px; text-align: center; }
.ganhos strong { display: block; font-size: 1.02rem; }
.ganhos span { font-size: .72rem; color: #6b7280; }

/* Chamada tocando: ocupa a tela, igual ligacao */
.chamada {
  position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 39, .72);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
}
.chamada[hidden] { display: none; }
.chamada-caixa {
  background: #fff; width: 100%; max-width: 520px; border-radius: 22px; padding: 18px;
  animation: subir .25s ease-out;
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.chamada-valor { font-size: 2.4rem; font-weight: 800; color: var(--moto); line-height: 1; }
.chamada-tempo { height: 6px; background: #f1e1d2; border-radius: 6px; overflow: hidden; }
.chamada-tempo div { height: 100%; background: var(--moto); transition: width 1s linear; }

.rota { position: relative; padding-left: 26px; }
.rota::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  border-left: 2px dashed #f1c9a8;
}
.rota .ponto { position: relative; margin-bottom: 12px; }
.rota .ponto:last-child { margin-bottom: 0; }
.rota .ponto::before {
  content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--moto);
}
.rota .ponto.destino::before { background: var(--moto); }
.rota .rotulo { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #9a6b47; letter-spacing: .04em; }

.btn-etapa { padding: 16px; font-size: 1.05rem; border-radius: 14px; }
