/* Cena Freelas — tema escuro de cinema, pensado primeiro para o celular. */
:root {
  color-scheme: dark;
  --fundo: #111113;
  --sup: #1c1c1f;
  --sup-2: #242428;
  --sup-3: #303036;
  --linha: #2c2c32;
  --texto: #ffffff;
  --texto-2: #a9a9b3;
  --rec: #ff6a1a;
  --rec-escuro: #c2410a;
  --rec-botao: #d9450e; /* fundo com texto branco: contraste 4,4:1 (texto em negrito) */
  --laranja-grad: linear-gradient(135deg, #ff8a1f, #ff6a1a 45%, #e5500f);
  --rec-suave: rgba(255, 106, 26, 0.14);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  --verde: #1fae55;
  --roxo: #c7b6ff;
  --raio: 18px;
  --abas-h: 64px;
  --fonte: "Montserrat", system-ui, -apple-system, sans-serif;
  --titulo: "Montserrat", var(--fonte);
  --mola: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--fundo); color: var(--texto);
  font: 16px/1.5 var(--fonte);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--titulo); letter-spacing: -0.02em; margin: 0; }

.app {
  max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative;
  padding-bottom: calc(var(--abas-h) + env(safe-area-inset-bottom) + 16px);
}
@media (min-width: 600px) {
  .app { border-left: 1px solid var(--linha); border-right: 1px solid var(--linha); }
}
.tela { padding: 0 16px; animation: entrar 0.35s var(--mola); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0 10px; padding-top: max(14px, env(safe-area-inset-top));
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--fundo) 75%, transparent);
}
.marca { display: flex; align-items: center; gap: 8px; font: 700 20px var(--titulo); letter-spacing: -0.02em; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); }
@keyframes piscar { 50% { opacity: 0.35; } }
.titulo-tela { font-size: 26px; }
.chip-regiao {
  display: inline-flex; align-items: center; gap: 6px; max-width: 60%;
  border: 1px solid var(--linha); background: var(--sup); border-radius: 999px;
  padding: 7px 12px; font-size: 14px; font-weight: 600;
}
.chip-regiao span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-regiao svg { color: var(--rec); flex: none; }

/* ---------- botões ---------- */
.botao {
  border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s var(--mola), background 0.15s; white-space: nowrap;
}
.botao:active, .opcao:active, .card:active, .chips button:active { transform: scale(0.97); }
.botao-primario { background: var(--rec-botao); background-image: var(--laranja-grad); color: #fff; font-weight: 700; text-shadow: 0 1px 1px rgba(120, 35, 0, 0.35); }
.botao-primario:hover { background: var(--rec-escuro); }
.botao-fantasma { background: var(--sup-2); border: 1px solid var(--linha); }
.botao-whats { background: var(--verde); color: #fff; }
.botao[disabled] { opacity: 0.5; pointer-events: none; }
.largo { width: 100%; }
.pequeno { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.link { background: none; border: 0; color: var(--rec); font-weight: 600; font-size: 14px; padding: 4px 0; }
.fechar { border: 0; background: var(--sup-3); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; flex: none; display: grid; place-items: center; }

/* ---------- permissão ---------- */
.tela-permissao { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.tela-permissao h1 { font-size: 32px; }
.tela-permissao p { color: var(--texto-2); margin: 0 auto; max-width: 34ch; }
.tela-permissao strong { color: var(--texto); }
.garantias { list-style: none; padding: 0; margin: 8px auto; display: grid; gap: 8px; text-align: left; max-width: 320px; font-size: 14px; color: var(--texto-2); }
.garantias li { display: flex; gap: 10px; }
.garantias li::before { content: "✓"; color: var(--verde); font-weight: 700; flex: none; }
.permissao-acoes { display: grid; gap: 10px; margin-top: 12px; }
.linha-cidade { display: flex; gap: 8px; }
.linha-cidade input { flex: 1; min-width: 0; }

.radar-grande { position: relative; width: 180px; height: 180px; margin: 0 auto 8px; display: grid; place-items: center; }
.radar-grande span, .radar span {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--rec);
  animation: onda 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; opacity: 0;
}
.radar-grande span:nth-child(2), .radar span:nth-child(2) { animation-delay: 0.8s; }
.radar-grande span:nth-child(3), .radar span:nth-child(3) { animation-delay: 1.6s; }
@keyframes onda { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
.pino { width: 72px; height: 72px; border-radius: 50%; background: var(--rec-botao); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 40px rgba(255, 77, 54, 0.45); position: relative; }

/* ---------- campos ---------- */
.campo { display: grid; gap: 8px; }
.rotulo { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.dica { margin: 0; font-size: 13px; color: var(--texto-2); }
input, select, textarea {
  width: 100%; border: 1px solid var(--linha); border-radius: 12px; background: var(--sup);
  padding: 13px 14px; font-size: 16px; /* 16px evita zoom no iPhone */
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rec); box-shadow: 0 0 0 3px var(--rec-suave); }
::placeholder { color: #7d7d87; }
.erro { color: var(--rec); font-size: 14px; margin: 0; }

/* ---------- início ---------- */
.saudacao { padding: 8px 0 18px; }
.saudacao h1 { font-size: 30px; line-height: 1.1; }
.saudacao p { margin: 8px 0 0; color: var(--texto-2); font-size: 15px; }
.saudacao p strong { color: var(--texto); }

.opcoes-servico { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcao {
  border: 1px solid var(--linha); background: var(--sup); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 16px; text-align: left; display: grid; gap: 4px; transition: transform 0.15s var(--mola), border-color 0.15s;
}
.opcao:hover { border-color: var(--rec); }
.opcao strong { font: 600 17px var(--titulo); }
.opcao small { color: var(--texto-2); font-size: 13px; display: block; }
.opcao-icone { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.opcao-larga { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, rgba(255,106,26,0.22), var(--sup) 62%); }
.opcao-larga .opcao-icone { margin: 0; }

.secao-titulo { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.secao-titulo h2 { font-size: 20px; }

.carrossel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrossel::-webkit-scrollbar { display: none; }
.mini {
  flex: none; width: 148px; scroll-snap-align: start; border: 1px solid var(--linha); background: var(--sup);
  border-radius: var(--raio); padding: 14px; text-align: left; display: grid; gap: 8px; justify-items: start;
}
.mini strong { font-size: 14px; line-height: 1.2; }
.mini small { color: var(--texto-2); font-size: 12px; }

/* ---------- avatar ---------- */
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 700 16px var(--titulo); color: #fff; background-size: cover; background-position: center;
  border: 2px solid var(--sup-3);
}
.avatar.grande { width: 96px; height: 96px; font-size: 30px; border: 4px solid var(--fundo); }

/* ---------- segmentado / chips ---------- */
.segmentado { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; background: var(--sup); padding: 4px; border-radius: 14px; border: 1px solid var(--linha); }
.segmentado button { flex: 1 0 auto; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--texto-2); }
.segmentado button[aria-pressed="true"] { background: var(--rec-botao); background-image: var(--laranja-grad); color: #fff; }
.linha-filtros { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
#contaFiltros:not(:empty) { background: var(--rec-botao); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--linha); background: var(--sup); border-radius: 999px; padding: 8px 13px; font-size: 14px; font-weight: 500; transition: transform 0.15s var(--mola); }
.chips button.ativo { background: var(--rec-suave); border-color: var(--rec); color: #fff; }

/* ---------- cards ---------- */
.lista { display: grid; gap: 10px; }
.vazio { color: var(--texto-2); font-size: 14px; text-align: center; padding: 24px 8px; }
.card {
  box-shadow: var(--sombra);
  background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px;
  display: grid; gap: 12px; text-align: left; width: 100%; transition: transform 0.15s var(--mola);
}
.card-topo { display: flex; gap: 12px; align-items: center; min-width: 0; }
.card-topo > div:last-child { min-width: 0; flex: 1; }
.card h3 { font: 600 16px var(--fonte); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local { font-size: 13px; color: var(--texto-2); }
.distancia { color: var(--texto); font-weight: 600; }
.nota { font-size: 13px; color: var(--texto-2); white-space: nowrap; }
.nota b { color: #ffb020; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selo { font-size: 12px; font-weight: 600; border-radius: 7px; padding: 4px 8px; background: var(--sup-2); color: var(--texto-2); }
.selo-cap { background: var(--rec-suave); color: #ffa066; }
.selo-ed { background: rgba(150, 120, 255, 0.14); color: var(--roxo); }
.selo-exemplo { background: rgba(255, 190, 40, 0.12); color: #ffc94d; }
.card-rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--texto-2); }
.card-rodape strong { color: var(--texto); font-size: 15px; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.thumb { aspect-ratio: 16 / 9; background: var(--sup-3) center / cover; position: relative; border: 0; padding: 0; }
.thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.thumb.falso { background: linear-gradient(135deg, var(--c1, #2b2723), var(--c2, #171513)); }
.thumb.falso::after { content: attr(data-rotulo); font-size: 11px; font-weight: 600; padding: 4px; text-align: center; }

/* ---------- abas de baixo ---------- */
.abas {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
  width: 100%; max-width: 560px; height: calc(var(--abas-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(17, 17, 19, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--linha);
}
.abas button { border: 0; background: none; color: var(--texto-2); font-size: 11px; font-weight: 600; display: grid; justify-items: center; align-content: center; gap: 3px; position: relative; }
.abas svg { width: 24px; height: 24px; transition: transform 0.2s var(--mola); }
.abas button.ativa { color: var(--texto); }
.abas button.ativa svg { color: var(--rec); transform: translateY(-1px) scale(1.08); }
.bolinha { position: absolute; top: 10px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 2px var(--fundo); }

/* ---------- folhas (bottom sheets) ---------- */
dialog { color: var(--texto); }
.folha {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh;
  background: var(--sup); border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain;
}
.folha[open] { animation: subir 0.4s var(--mola); }
@keyframes subir { from { transform: translateY(100%); } }
.folha::backdrop, .tela-cheia::backdrop, .player::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.folha-alca { width: 40px; height: 5px; border-radius: 3px; background: var(--sup-3); margin: 10px auto 0; }
.folha-corpo { padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.folha-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.folha-topo h2 { font-size: 22px; }
.passos { display: flex; gap: 4px; }
.passos i { flex: 1; height: 3px; border-radius: 2px; background: var(--sup-3); }
.passos i.feito { background: var(--rec); }
.voltar { background: none; border: 0; color: var(--texto-2); font-weight: 600; padding: 0; font-size: 14px; }

/* Categorias de nível no estilo "UberX / Black" */
.niveis-lista { display: grid; gap: 8px; }
.nivel {
  display: flex; gap: 12px; align-items: center; text-align: left; width: 100%;
  border: 1.5px solid var(--linha); background: var(--sup-2); border-radius: 16px; padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.nivel[aria-pressed="true"], .nivel:has(input:checked) { border-color: var(--rec); background: var(--rec-suave); }
.nivel input { display: none; }
.nivel-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sup-3); display: grid; place-items: center; font: 700 16px var(--titulo); }
.nivel[aria-pressed="true"] .nivel-num, .nivel:has(input:checked) .nivel-num { background: var(--rec-botao); color: #fff; }
.nivel-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nivel-info strong { font-size: 15px; }
.nivel-info small { font-size: 12.5px; color: var(--texto-2); line-height: 1.35; }
.nivel-preco { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.nivel-preco small { display: block; color: var(--texto-2); font-weight: 500; font-size: 11px; }

/* ---------- busca tipo radar ---------- */
.buscando { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.radar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.radar .pino { width: 56px; height: 56px; }
.pedido-card { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; display: grid; gap: 12px; }
.pedido-card.ativo { border-color: var(--rec); box-shadow: 0 0 0 3px var(--rec-suave); }
.pedido-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.status-procurando { background: var(--rec-suave); color: #ffa066; }
.status-confirmado { background: rgba(31, 174, 85, 0.16); color: #5fdc8f; }
.status-cancelado { background: var(--sup-3); color: var(--texto-2); }
.pedido-texto { margin: 0; color: var(--texto-2); font-size: 14px; }
.propostas { display: grid; gap: 8px; }
.proposta { background: var(--sup-2); border-radius: 14px; padding: 12px; display: grid; gap: 10px; animation: entrar 0.4s var(--mola); }
.proposta p { margin: 0; font-size: 14px; color: var(--texto-2); }
.proposta-acoes { display: flex; gap: 8px; }
.proposta-acoes .botao { flex: 1; padding: 10px; font-size: 14px; }
.valor { font: 700 18px var(--titulo); white-space: nowrap; }

/* ---------- perfil em tela cheia ---------- */
.tela-cheia {
  border: 0; padding: 0; margin: 0 auto; width: 100%; max-width: 560px; height: 100dvh; max-height: 100dvh;
  background: var(--fundo); overflow-y: auto; overscroll-behavior: contain;
}
.tela-cheia[open] { animation: subir 0.45s var(--mola); }
.capa { height: 210px; background: linear-gradient(135deg, #5a2a10, #111113) center / cover; position: relative; }
.capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--fundo)); }
.capa .fechar { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 2; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); color: #fff; }
.perfil-corpo { padding: 0 16px 120px; margin-top: -54px; position: relative; display: grid; gap: 16px; }
.perfil-corpo h2 { font-size: 26px; }
.perfil-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perfil-numeros div { background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; padding: 10px; text-align: center; }
.perfil-numeros strong { display: block; font: 700 18px var(--titulo); }
.perfil-numeros span { font-size: 12px; color: var(--texto-2); }
.bloco { background: var(--sup); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.bloco strong { display: block; margin-bottom: 2px; }
.bloco p { margin: 0; color: var(--texto-2); }
.portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portfolio .thumb { border-radius: 12px; }
.portfolio .thumb:first-child { grid-column: 1 / -1; }
.portfolio .thumb::after { font-size: 22px; }
.rodape-fixo {
  position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--fundo) 30%); margin: 0 -16px;
}

/* ---------- busca no mapa ---------- */
.tela-mapa { overflow: hidden; } /* o dialog já é fixo; não mudar o position */
.mapa, .mapa-reserva { position: absolute; inset: 0; }
.mapa-reserva { display: grid; place-items: center; background: transparent; padding-bottom: 40%; }
.mapa-topo {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px 14px; background: none;
}
.fechar-vidro { background: rgba(28, 28, 31, 0.85); backdrop-filter: blur(10px); font-size: 26px; color: #fff; box-shadow: var(--sombra); }
.mapa-status {
  flex: 1; box-shadow: var(--sombra); background: rgba(28, 28, 31, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--linha); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600;
}
.mapa-status small { display: block; font-weight: 500; color: var(--texto-2); font-size: 12px; }
.mapa-painel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 52%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--sup); border-radius: 24px 24px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5); display: grid; gap: 12px; animation: subir 0.5s var(--mola);
}
.barra-busca { height: 3px; border-radius: 2px; background: var(--sup-3); overflow: hidden; }
.barra-busca i { display: block; height: 100%; width: 35%; background: var(--rec); border-radius: 2px; animation: varrer 1.4s ease-in-out infinite; }
@keyframes varrer { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.tela-mapa { background: #020309; }
.ceu-estrelado { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mapa .maplibregl-canvas { outline: none; }

/* Marcadores no mapa */
.marcador-voce { position: relative; width: 120px; height: 120px; display: grid; place-items: center; pointer-events: none; }
.marcador-voce span { position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 77, 54, 0.18); border: 1.5px solid var(--rec); animation: onda 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; opacity: 0; }
.marcador-voce span:nth-child(2) { animation-delay: 1.2s; }
.marcador-voce b { width: 18px; height: 18px; border-radius: 50%; background: var(--rec); border: 3px solid #fff; box-shadow: 0 0 20px var(--rec); }
.marcador-pro {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: var(--sup-3) center / cover;
  display: grid; place-items: center; font: 700 13px var(--titulo); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  animation: pop 0.5s var(--mola) both; cursor: pointer;
}
.marcador-pro.apagado { width: 14px; height: 14px; border: 2.5px solid #fff; background: var(--rec-botao); box-shadow: 0 2px 6px rgba(0,0,0,0.35); font-size: 0; }
.marcador-pro.proposta { border-color: var(--rec); box-shadow: 0 0 0 4px var(--rec-suave), 0 6px 18px rgba(0,0,0,0.5); }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(17,17,19,0.7) !important; color: var(--texto-2); }
.maplibregl-ctrl-attrib a { color: var(--texto-2); }

/* ---------- chat ---------- */
.tela-chat[open] { display: flex; flex-direction: column; }
.chat-topo { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 14px 12px; border-bottom: 1px solid var(--linha); background: var(--sup); }
.chat-quem { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; }
.chat-quem .avatar { width: 40px; height: 40px; font-size: 14px; }
.chat-quem strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-quem small { color: var(--texto-2); font-size: 12px; }
.chat-garantia { display: flex; gap: 10px; align-items: flex-start; margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: rgba(31,174,85,0.12); color: #8fe3b0; font-size: 13px; }
.chat-garantia svg { flex: none; margin-top: 1px; }
.chat-garantia strong { color: #c6f3d7; }
.chat-mensagens { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; word-wrap: break-word; animation: entrar 0.25s var(--mola); }
.msg small { display: block; font-size: 10.5px; opacity: 0.6; margin-top: 2px; text-align: right; }
.msg-eu { align-self: flex-end; background: var(--rec-botao); color: #fff; border-bottom-right-radius: 6px; }
.msg-ele { align-self: flex-start; background: var(--sup-2); border-bottom-left-radius: 6px; }
.msg-sistema { align-self: center; max-width: 92%; background: none; color: var(--texto-2); font-size: 12.5px; text-align: center; padding: 6px; }
.msg-digitando { align-self: flex-start; background: var(--sup-2); color: var(--texto-2); }
.chat-rodape-acoes { display: flex; justify-content: center; padding: 0 14px 4px; }
.chat-rodape-acoes .link { color: var(--texto-2); font-weight: 500; font-size: 12.5px; }
.chat-envio { display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--sup); }
.chat-envio input { flex: 1; min-width: 0; border-radius: 999px; padding: 11px 16px; }
.chat-envio .botao { border-radius: 50%; width: 46px; height: 46px; padding: 0; flex: none; }

/* ---------- player ---------- */
.player { border: 0; padding: 0; background: transparent; width: min(960px, 100%); max-width: 100%; overflow: visible; }
.player-caixa { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 12px; overflow: hidden; }
.player-caixa iframe { width: 100%; height: 100%; border: 0; display: block; }
.fechar-player { margin: 0 0 10px auto; color: #fff; }

/* ---------- cadastro ---------- */
.cadastro { padding: 0 16px; display: grid; gap: 18px; }
.topo-fixo h2 { font-size: 18px; }
.foto-campo { display: grid; justify-items: center; gap: 8px; }
.foto-perfil {
  width: 104px; height: 104px; border-radius: 50%; border: 2px dashed var(--linha); background: var(--sup) center / cover;
  display: grid; place-items: center; cursor: pointer; color: var(--texto-2); font-weight: 600; font-size: 14px;
}
.foto-perfil.com-foto { border: 3px solid var(--rec); }
.foto-perfil.com-foto span { display: none; }
.opcoes-check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-cartao input { position: absolute; opacity: 0; pointer-events: none; }
.check-cartao span { display: block; text-align: center; border: 1.5px solid var(--linha); background: var(--sup); border-radius: 14px; padding: 12px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check-cartao input:checked + span { border-color: var(--rec); background: var(--rec-suave); }
.check-cartao input:focus-visible + span { outline: 2px solid var(--rec); outline-offset: 2px; }
.previa-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.previa-videos .thumb { border-radius: 8px; }

/* ---------- área do pro ---------- */
.pro-card { display: grid; gap: 14px; box-shadow: var(--sombra); background: linear-gradient(135deg, rgba(255,106,26,0.2), var(--sup) 58%); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; }
.pro-card p { margin: 0; color: var(--texto-2); font-size: 14px; }

/* ---------- aviso flutuante ---------- */
.aviso-flutuante {
  position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 50;
  background: var(--texto); color: var(--fundo); font-weight: 600; font-size: 14px;
  padding: 11px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-width: calc(100% - 32px);
  animation: cair 0.35s var(--mola);
}
@keyframes cair { from { transform: translate(-50%, -140%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- identidade Cena Freelas ---------- */
.marca { gap: 9px; font-weight: 800; font-style: italic; letter-spacing: -0.03em; }
.marca img { width: 30px; height: 30px; border-radius: 8px; }
.marca b { color: var(--rec); font-weight: 800; }
.marca .rec { display: none; }
h1, h2, h3 { letter-spacing: -0.025em; font-weight: 800; }

/* Busca e categorias no início */
.busca-inicio { display: flex; align-items: center; gap: 10px; background: var(--sup-2); border: 1px solid var(--linha); border-radius: 16px; padding: 4px 6px 4px 14px; margin: 4px 0 16px; }
.busca-inicio svg { color: var(--texto-2); flex: none; }
.busca-inicio input { border: 0; background: none; padding: 11px 0; box-shadow: none !important; }
.categorias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.categoria { border: 1px solid var(--linha); background: var(--sup); border-radius: 16px; padding: 12px 4px 10px; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--texto); transition: transform 0.15s var(--mola), border-color 0.15s; }
.categoria:hover { border-color: var(--rec); }
.categoria:active { transform: scale(0.96); }
.categoria svg { width: 30px; height: 30px; color: var(--rec); }
.secao-rotulo { font-size: 13px; font-weight: 700; color: var(--texto-2); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.escolher {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--linha); background: var(--sup); border-radius: var(--raio); padding: 16px;
}
.escolher strong { font-size: 16px; display: block; }
.escolher small { color: var(--texto-2); font-size: 13px; }
.escolher .seta { margin-left: auto; color: var(--rec); font-size: 22px; }

/* Agenda e preço */
.agenda-curta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--texto-2); }
.livre { background: rgba(31, 174, 85, 0.14); color: #6fe09d; border-radius: 6px; padding: 3px 7px; font-weight: 600; }
.selo-aceitou { background: rgba(31, 174, 85, 0.16); color: #6fe09d; }
.selo-contra { background: rgba(255, 176, 32, 0.14); color: #ffc24d; }
.preco-entrada { display: flex; align-items: center; gap: 8px; background: var(--sup-2); border: 1px solid var(--linha); border-radius: 14px; padding: 0 14px; }
.preco-entrada span { font-weight: 800; color: var(--rec); font-size: 18px; }
.preco-entrada input { border: 0; background: none; font: 800 24px var(--titulo); padding: 12px 0; box-shadow: none !important; }
.campo-preco .dica strong { color: var(--texto); }
.agenda-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.agenda-dias div { background: var(--sup-2); border-radius: 10px; padding: 6px 0; text-align: center; font-size: 11px; color: var(--texto-2); }
.agenda-dias div b { display: block; font-size: 15px; color: var(--texto); }
.agenda-dias div.sim { background: rgba(31, 174, 85, 0.16); }
.agenda-dias div.sim b { color: #6fe09d; }
.agenda-dias div.nao { opacity: 0.45; text-decoration: line-through; }
.data-escolhida input { padding: 7px 10px; font-size: 14px; border-radius: 999px; width: auto; }

/* ---------- início estilo Uber ---------- */
.tela-inicio { padding: 0; animation: none; pointer-events: none; }
.tela-inicio .painel-inicio, .tela-inicio .topo-flutuante, .tela-inicio .online-chip { pointer-events: auto; }
.mapa-inicio {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 0;
  width: 100%; max-width: 560px; height: 64vh; background: #020309; pointer-events: auto; overflow: hidden;
}
.mapa-inicio .mapa { position: absolute; inset: 0; }
.mapa-inicio .ceu-estrelado { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa-degrade { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, var(--fundo)); pointer-events: none; }
.topo-flutuante {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 6;
  width: 100%; max-width: 560px; padding: max(12px, env(safe-area-inset-top)) 14px 12px; background: none;
}
.marca-vidro, .topo-flutuante .chip-regiao {
  background: rgba(17, 17, 19, 0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; box-shadow: var(--sombra);
}
.marca-vidro { padding: 6px 14px 6px 8px; font-size: 18px; }
.tela-inicio { position: relative; padding-top: 46vh; }
.online-chip {
  position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 58px); left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(17, 17, 19, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--sombra);
}
.online-chip i { width: 8px; height: 8px; border-radius: 50%; background: #2ee07a; box-shadow: 0 0 0 0 rgba(46, 224, 122, 0.6); animation: vivo 2s infinite; }
@keyframes vivo { 70% { box-shadow: 0 0 0 8px rgba(46, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 224, 122, 0); } }
.painel-inicio {
  position: relative; z-index: 2; min-height: 60vh;
  background: var(--fundo); border-radius: 28px 28px 0 0; padding: 4px 16px 24px;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.painel-inicio > .folha-alca { margin: 10px auto 14px; }
.painel-inicio h1 { font-size: 26px; line-height: 1.15; }
.painel-inicio > .dica { margin: 6px 0 14px; }
.painel-inicio .secao-titulo { margin-top: 22px; }
.painel-inicio .secao-titulo .dica { font-size: 12px; }

/* Serviços com foto */
.servicos { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.servicos::-webkit-scrollbar { display: none; }
.servico {
  flex: none; width: 138px; height: 168px; border: 0; padding: 0; border-radius: 20px; position: relative; overflow: hidden;
  background: var(--sup-3) center / cover; scroll-snap-align: start; text-align: left; color: #fff;
  transition: transform 0.18s var(--mola); box-shadow: var(--sombra);
}
.servico::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85)); }
.servico span { position: absolute; left: 12px; right: 10px; bottom: 11px; z-index: 1; display: grid; gap: 2px; }
.servico strong { font-size: 16px; font-weight: 800; }
.servico small { font-size: 11.5px; opacity: 0.85; line-height: 1.25; }
.servico:active { transform: scale(0.96); }
.escolher { margin-top: 12px; }
.escolher-icone { width: 44px; height: 44px; border-radius: 14px; background: var(--rec-suave); color: var(--rec); display: grid; place-items: center; flex: none; }

/* Card do profissional (como no mockup) */
.avatar.quadrado { width: 58px; height: 58px; border-radius: 16px; }
.funcao { font-size: 13px; color: var(--texto-2); font-weight: 600; }
.card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--texto-2); margin-top: 3px; align-items: center; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta small { opacity: 0.8; }
.estrela { color: #ffb020; }
.card-pro .card-rodape .botao { padding: 10px 20px; }
.card-pro h3 { font-weight: 800; }

/* ---------- profissional online ---------- */
.online-card { display: flex; gap: 16px; align-items: center; background: var(--sup); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; margin-bottom: 14px; box-shadow: var(--sombra); }
.online-card p { margin: 4px 0 0; font-size: 13px; color: var(--texto-2); }
.online-card strong { font-size: 16px; }
.botao-online {
  flex: none; width: 92px; height: 92px; border-radius: 50%; border: 0; font-weight: 800; font-size: 14px; color: #fff;
  background: var(--rec-botao); background-image: var(--laranja-grad); box-shadow: 0 10px 26px rgba(229, 80, 15, 0.35);
}
.online-card.ligado { border-color: rgba(46, 224, 122, 0.4); }
.online-card.ligado .botao-online { background: #1a9e55; background-image: none; animation: vivo 2s infinite; box-shadow: 0 0 0 0 rgba(46, 224, 122, 0.6); }

/* Alerta de novo pedido */
.alerta-pedido { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; background: var(--sup); border-radius: 28px 28px 0 0; overflow: hidden; color: var(--texto); }
.alerta-pedido[open] { animation: subir 0.45s var(--mola); }
.alerta-pedido::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.alerta-foto { height: 170px; background: center / cover; position: relative; }
.alerta-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--sup)); }
.alerta-selo { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--rec-botao); background-image: var(--laranja-grad); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 12px; animation: piscar 1s ease-in-out infinite; }
.alerta-info { padding: 4px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.alerta-info h2 { font-size: 24px; }
.alerta-info .valor { font-size: 26px; color: #fff; }
.alerta-texto { margin: 0; font-size: 15px; }
.contagem { height: 5px; border-radius: 3px; background: var(--sup-3); overflow: hidden; }
.contagem i { display: block; height: 100%; background: var(--rec); transform-origin: left; animation: encolher 30s linear forwards; }
@keyframes encolher { to { transform: scaleX(0); } }
.alerta-info .proposta-acoes .botao { padding: 15px; font-size: 16px; }

.topo-flutuante { transition: background 0.25s; }
.topo-flutuante.rolou { background: linear-gradient(var(--fundo) 70%, rgba(17,17,19,0)); }
.secao-titulo.coluna { flex-direction: column; align-items: flex-start; gap: 2px; }
.secao-titulo h2 { white-space: nowrap; }

/* ---------- comportamento de app de celular ---------- */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
input, textarea, .msg, .bio, .pedido-texto, .alerta-texto { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }

/* Troca de abas com transição de app */
.tela.entra-dir { animation: entraDir 0.32s var(--mola); }
.tela.entra-esq { animation: entraEsq 0.32s var(--mola); }
@keyframes entraDir { from { opacity: 0; transform: translateX(28px); } }
@keyframes entraEsq { from { opacity: 0; transform: translateX(-28px); } }
.tela-inicio.entra-dir, .tela-inicio.entra-esq { animation: aparecer 0.3s ease; }
@keyframes aparecer { from { opacity: 0; } }

/* Abas com indicador e toque mais vivo */
.abas button { transition: color 0.2s; }
.abas button::before {
  content: ""; position: absolute; top: 6px; width: 46px; height: 30px; border-radius: 15px;
  background: var(--rec-suave); transform: scale(0.4); opacity: 0; transition: transform 0.3s var(--mola), opacity 0.2s;
}
.abas button.ativa::before { transform: scale(1); opacity: 1; }
.abas button:active svg { transform: scale(0.85); }

/* Cards entram em cascata */
.lista > * { animation: subirCard 0.42s var(--mola) both; }
.lista > *:nth-child(2) { animation-delay: 0.04s; }
.lista > *:nth-child(3) { animation-delay: 0.08s; }
.lista > *:nth-child(4) { animation-delay: 0.12s; }
.lista > *:nth-child(5) { animation-delay: 0.16s; }
.lista > *:nth-child(n+6) { animation-delay: 0.2s; }
@keyframes subirCard { from { opacity: 0; transform: translateY(14px); } }
.card:active { transform: scale(0.985); }
.servico, .categoria, .opcao, .escolher, .card, .botao, .chips button, .nivel { will-change: transform; }
.escolher:active, .nivel:active { transform: scale(0.98); }
.abas svg { position: relative; z-index: 1; }
