
/* V60 - fechamento do lote de testes */
.top-message-shortcut{
  width:38px;height:38px;border-radius:10px;border:1px solid #2b3138;
  background:#11161c;color:#fff;display:grid;place-items:center;cursor:pointer;
  margin-left:6px;flex:0 0 auto;
}
.top-message-shortcut:hover{border-color:#ff7a00;color:#ff7a00}
.chat{width:min(100%,760px)!important;max-width:760px!important;margin:0 auto!important;overflow:hidden!important}
.chat-scroll{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:12px 14px!important;overflow-x:hidden!important}
.chat-scroll .bubble{max-width:min(72%,520px)!important;min-width:72px!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.chat-scroll .bubble.mine{margin-left:auto!important}
.composer{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.composer input{min-width:0!important;width:100%!important}
.vote-actions button{min-width:44px!important;min-height:36px!important;padding:7px 10px!important}
.trip-safety-contacts{margin-top:14px!important}
.trip-safety-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.trip-safety-head span{font-size:12px;opacity:.7}
.trip-safety-contact-list{display:grid;gap:8px;margin-top:10px}
.trip-safety-contact{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px;border:1px solid #282e35;border-radius:10px}
.trip-safety-contact>div{display:grid;min-width:0}.trip-safety-contact small{opacity:.7;overflow:hidden;text-overflow:ellipsis}
.v60-clickable-stat{cursor:pointer!important;border-radius:8px;transition:.15s ease}
.v60-clickable-stat:hover{background:rgba(255,122,0,.12)}
#moto-v60-toast-host{position:fixed;right:16px;top:74px;z-index:100000;display:grid;gap:8px;width:min(360px,calc(100vw - 24px))}
.moto-v60-toast{display:grid;text-align:left;gap:4px;border:1px solid rgba(255,122,0,.55);background:#101419;color:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 12px 32px rgba(0,0,0,.45);cursor:pointer}
.moto-v60-toast strong{color:#ff8a18}.moto-v60-toast span{font-size:13px;line-height:1.35}
.marker-me.marker-rider-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media (min-width:900px){
  .mc-main-hamburger [data-menu-grid], .mc-main-hamburger .menu-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (max-width:768px){
  .top-message-shortcut{width:34px;height:34px;border-radius:9px}
  .chat{width:100%!important;max-width:100%!important}
  .chat-scroll{padding:10px 8px!important}
  .chat-scroll .bubble{max-width:82%!important}
  #moto-v60-toast-host{top:64px;right:8px;width:calc(100vw - 16px)}
  .trip-safety-contact{grid-template-columns:minmax(0,1fr) auto}
  .trip-safety-contact .danger-action{grid-column:2}
}

/* V61 - conversa */
.chat-contact-head{display:flex!important;align-items:center!important;gap:10px!important;min-width:0}
.chat-contact-photo{width:42px!important;height:42px!important;flex:0 0 42px!important;border:2px solid rgba(255,122,0,.65)!important}
.chat-contact-photo img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.chat-contact-head>div:last-child{min-width:0}
.chat-contact-head h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:768px){
  .chat-contact-photo{width:36px!important;height:36px!important;flex-basis:36px!important}
}

/* V62 - Ajuda, mensagens e votos */
.help-types-btn{font-size:12px!important;padding:8px 10px!important}
.help-types-panel{margin:10px 0 12px!important}
.help-types-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.help-arrived-btn{background:#ff7a00!important;color:#111!important;font-weight:800!important}
.top-message-shortcut{position:relative!important}
.top-message-shortcut.v62-has-unread::after,
button[aria-label="Abrir mensagens"].v62-has-unread::after{
  content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#ff3b30;
  top:3px;right:3px;box-shadow:0 0 0 2px #0d1116;
}
.chat-contact-photo{display:grid!important;place-items:center!important;overflow:hidden!important;background:#1a2027!important;color:#fff!important;font-weight:800!important}
.chat-contact-photo img{display:block!important}
.moto-v60-toast.v62-help{border-color:#ffb000!important;box-shadow:0 0 0 1px rgba(255,176,0,.2),0 12px 32px rgba(0,0,0,.55)!important}
@media(max-width:768px){
  .help-types-grid{grid-template-columns:1fr}
  .help-types-btn{max-width:160px;white-space:normal;line-height:1.1}
}

/* V63 - Ajuda a caminho */
.v63-help-tracker{grid-column:1/-1;width:100%;margin-top:10px;padding:10px;border:1px solid #2c333b;border-radius:12px;background:#0d1217}
.v63-track-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.v63-track-head b{color:#ff941f}.v63-track-head span{font-size:12px;opacity:.82;text-align:right}
.v63-help-map{height:240px;width:100%;border-radius:10px;overflow:hidden;background:#111820}
.v63-tracking-locked{grid-column:1/-1;display:grid;gap:3px;padding:10px;border:1px dashed rgba(255,122,0,.45);border-radius:10px;background:rgba(255,122,0,.06)}
.v63-tracking-locked b{color:#ff8a18}.v63-tracking-locked span{font-size:12px;opacity:.75}
.v63-help-requester-photo,.v63-help-requester-marker,.v63-help-helper-marker{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;border:3px solid #ff7a00;background:#111;color:#fff;font-weight:900;overflow:visible;box-shadow:0 3px 16px rgba(0,0,0,.55)}
.v63-help-requester-photo img,.v63-help-helper-marker img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.v63-help-helper-marker{width:40px;height:40px;border-color:#2acb78;overflow:hidden}.v63-help-helper-marker.self{font-size:20px;overflow:visible}
.v63-pulse{position:relative;animation:v63MarkerPulse 1.25s infinite ease-out}
.v63-pulse::after{content:"";position:absolute;inset:-8px;border:3px solid #ff3b30;border-radius:50%;animation:v63RingPulse 1.25s infinite ease-out;pointer-events:none}
@keyframes v63MarkerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes v63RingPulse{0%{opacity:.95;transform:scale(.82)}100%{opacity:0;transform:scale(1.5)}}
.help-arrived-btn.disabled{opacity:.5!important;cursor:not-allowed!important}
@media(max-width:768px){.v63-help-map{height:210px}.v63-track-head{align-items:flex-start;flex-direction:column}.v63-track-head span{text-align:left}}

/* V64 - ajuda a caminho persistente */
#moto-v64-help-guard{
  position:fixed;inset:0;z-index:200000;background:rgba(5,8,12,.94);
  display:grid;place-items:center;padding:18px;backdrop-filter:blur(6px)
}
.v64-help-guard-card{
  width:min(520px,100%);border:2px solid #ffb000;border-radius:20px;
  background:#10151b;color:#fff;padding:28px;display:grid;gap:14px;text-align:center;
  box-shadow:0 0 0 1px rgba(255,176,0,.18),0 28px 80px rgba(0,0,0,.65)
}
.v64-help-icon{font-size:48px;animation:v64HelpPulse 1s infinite ease-in-out}
.v64-help-guard-card strong{font-size:25px;color:#ffb000;letter-spacing:.04em}
.v64-help-guard-card span{opacity:.85}
#moto-v64-help-float{
  position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);
  z-index:199999;display:flex;align-items:center;gap:6px;padding:6px;border-radius:999px;
  background:#111820;border:2px solid #ffb000;box-shadow:0 8px 30px rgba(0,0,0,.6);
  animation:v64HelpPulse 1.15s infinite ease-in-out
}
.v64-help-open{border:0;background:transparent;color:#ffcf4a;font-weight:900;padding:8px 10px;cursor:pointer}
.v64-help-close{width:32px;height:32px;border-radius:50%;border:1px solid #653d00;background:#2a1c05;color:#fff;font-size:20px;cursor:pointer}
#moto-v64-help-confirm{
  position:fixed;inset:0;z-index:210000;background:rgba(0,0,0,.82);display:grid;place-items:center;padding:18px
}
.v64-confirm-card{width:min(440px,100%);display:grid;gap:12px;padding:22px;border-radius:16px;background:#151a20;color:#fff;border:1px solid #39404a}
.v64-confirm-card strong{font-size:20px}.v64-confirm-card span{opacity:.8}.v64-confirm-card>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.v64-confirm-card button{padding:10px 14px;border-radius:10px;border:1px solid #39404a;background:#20262d;color:#fff;cursor:pointer}
.v64-confirm-card button.danger{background:#8d1e1e;border-color:#bd2d2d}
@keyframes v64HelpPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@media(max-width:768px){
  .v64-help-guard-card{padding:22px 16px}.v64-help-guard-card strong{font-size:22px}
  #moto-v64-help-float{width:calc(100vw - 24px);justify-content:center}
}

/* V65 final corrections */
.directory-head-actions{display:flex;gap:8px;align-items:center}
#moto-v64-help-float{left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 24px)}
#moto-v64-help-float .v64-help-open{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:768px){
  #moto-v64-help-float{width:auto!important;min-width:min(330px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
  .directory-head-actions .secondary{padding:8px 10px;font-size:12px}
}

/* V66 mapa/fotos */
.marker-me.marker-rider-photo,.marker-rider-photo{overflow:hidden!important;background:#111!important}
.marker-me.marker-rider-photo img,.marker-rider-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}

/* V67 - popup central, fotos e assistente de rota */
.maplibregl-popup{z-index:30}
.maplibregl-popup-content{max-width:min(320px,calc(100vw - 32px))!important}
.marker-me.marker-rider-photo,.marker-rider-photo{overflow:hidden!important;background:#111!important;border-radius:50%!important}
.marker-me.marker-rider-photo img,.marker-rider-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.v67-assistant-btn.listening,.v67-nav-mic.listening{animation:v67micpulse 1s infinite}
.v67-nav-mic{position:absolute;right:12px;bottom:max(86px,calc(env(safe-area-inset-bottom) + 86px));z-index:12;border:0;border-radius:999px;padding:12px 15px;font-weight:900;background:#ff7a00;color:#111;box-shadow:0 8px 26px rgba(0,0,0,.45)}
@keyframes v67micpulse{50%{transform:scale(1.06);filter:brightness(1.15)}}
@media(max-width:768px){
  .maplibregl-popup{max-width:calc(100vw - 24px)!important}
  .maplibregl-popup-content{max-width:calc(100vw - 24px)!important}
}

/* V68 Assistente IA privacy-first */
.v68-ai-privacy{display:block;margin:8px 0 2px;opacity:.72;font-size:11px;line-height:1.35}
.v67-assistant-btn{font-weight:800}
.v67-assistant-btn:has(.lock){opacity:.85}

/* V77 - IA clicável e controles desktop lado a lado */
.trip-map-fullscreen .v67-nav-mic{
  pointer-events:auto!important;
  z-index:40!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
}
.v77-ai-hit-fallback{
  position:fixed!important;
  z-index:2147483000!important;
  border:0!important;
  border-radius:999px!important;
  padding:0!important;
  font-weight:900!important;
  background:#ff7a00!important;
  color:#111!important;
  box-shadow:0 8px 26px rgba(0,0,0,.45)!important;
  cursor:pointer!important;
}
@media(min-width:769px){
  .trip-map-fullscreen .nav-map-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    right:16px!important;
    left:auto!important;
    bottom:16px!important;
  }
}

/* V78 - controles de navegação centralizados no desktop */
@media(min-width:769px){
  .trip-map-fullscreen .nav-map-actions{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:16px!important;
    transform:translateX(-50%)!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:center!important;
    align-items:center!important;
    gap:10px!important;
    width:max-content!important;
    z-index:30!important;
  }
  .trip-map-fullscreen .nav-speedometer{
    left:12px!important;
    right:auto!important;
  }
}

/* V79 - Admin E-mail / SMTP */
.moto-smtp-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.moto-smtp-status{font-size:11px;font-weight:900;border-radius:999px;padding:6px 10px;white-space:nowrap}
.moto-smtp-status.ok{background:#14351f;color:#86efac;border:1px solid #166534}
.moto-smtp-status.off{background:#2c1b10;color:#fdba74;border:1px solid #9a3412}
.moto-smtp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.moto-smtp-grid label,.moto-smtp-wide{display:block;font-size:12px;font-weight:800;color:#e5e7eb}
.moto-smtp-grid input,.moto-smtp-wide input{
  width:100%;box-sizing:border-box;margin-top:6px;padding:11px 12px;border-radius:9px;
  border:1px solid #303640;background:#10141a;color:#fff;outline:none
}
.moto-smtp-grid input:focus,.moto-smtp-wide input:focus{border-color:#f97316}
.moto-smtp-wide{margin-top:12px}
.moto-smtp-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:760px){
  .moto-smtp-title{flex-direction:column}
  .moto-smtp-grid{grid-template-columns:1fr}
  .moto-smtp-actions .moto-primary{width:100%}
}
