/* =====================================================================
   Minha BarbearIA — Estilos do PWA
   Arquivo: public/assets/app.css
   Conceito: tradição da barbearia (preto, dourado, tipografia forte)
   + tecnologia (o "IA" em ciano com brilho). Uma mão, polegar, 48px+.
   ===================================================================== */
:root {
  --bg: #0E0F12;
  --bg-2: #16181D;
  --card: #1C1F26;
  --card-2: #242832;
  --linha: #2E3340;
  --texto: #F3F1EC;
  --texto-2: #A9ADB8;
  --texto-3: #767B88;
  --ouro: #D4A94F;
  --ouro-2: #B8893A;
  --ia: #3FE0FF;
  --ia-2: #1FB6D6;
  --ok: #3DD68C;
  --alerta: #FFB547;
  --erro: #FF6B6B;
  --raio: 16px;
  --raio-p: 10px;
  --sombra: 0 8px 24px rgba(0,0,0,.35);
  --nav-h: 68px;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-marca: "Oswald", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--texto); font-family: var(--fonte); font-size: 16px; }
body { min-height: 100dvh; overscroll-behavior-y: contain; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ia); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.oculto { display: none !important; }

/* ---------- Estrutura ---------- */
#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 28px); }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; position: sticky; top: env(safe-area-inset-top, 0px); background: linear-gradient(var(--bg) 75%, transparent); z-index: 5; }
.topo h1 { font-size: 22px; font-weight: 700; }
.topo .sub { color: var(--texto-2); font-size: 14px; margin-top: 2px; }
.voltar { background: var(--card); border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }

/* Marca: "Minha Barbear" + "IA" em destaque */
.marca { font-family: var(--fonte-marca); font-weight: 700; letter-spacing: .5px; font-size: 20px; white-space: nowrap; }
.marca b { color: var(--ouro); font-weight: 700; }
/* Logo oficial (imagem). A proporção é 900x128; a altura define o tamanho. */
.logo { display: block; width: auto; max-width: 100%; }
.logo-topo { height: 34px; }
.logo-grande { height: auto; width: min(300px, 82vw); margin: 0 auto 14px; }
.logo-medio { height: 26px; margin-bottom: 4px; }
.logo-rodape { height: 20px; margin: 0 auto; opacity: .85; }
.topo-marca { align-items: flex-start; padding-top: 18px; }
.topo-marca .sub { margin-top: 8px; }
.btn-redondo { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linha); background: var(--card); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.btn-redondo:active { transform: scale(.96); }
.marca .m { color: var(--ouro); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; border: 1px solid var(--linha); }
.card h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h2 small { color: var(--texto-2); font-weight: 500; font-size: 13px; }
.card-ia { background: radial-gradient(120% 140% at 100% 0%, rgba(63,224,255,.16), transparent 55%), var(--card); border-color: rgba(63,224,255,.35); }
.card-ia h2 .brilho { color: var(--ia); }
.linha-ia { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--linha); font-size: 15px; line-height: 1.35; }
.linha-ia:first-of-type { border-top: 0; }
.linha-ia .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; flex: none; font-size: 15px; }
.vazio { color: var(--texto-2); text-align: center; padding: 24px 8px; font-size: 15px; }

/* Números */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numeros.dois { grid-template-columns: repeat(2, 1fr); }
.num { background: var(--card-2); border-radius: var(--raio-p); padding: 10px; min-width: 0; }
.num .r { font-size: 12px; color: var(--texto-2); }
.num .v { font-size: 18px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num .v.ouro { color: var(--ouro); }
.num .v.ok { color: var(--ok); }
.num .v.erro { color: var(--erro); }
.num .d { font-size: 12px; margin-top: 2px; }
.sobe { color: var(--ok); } .desce { color: var(--erro); }

/* ---------- Listas ---------- */
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linha); min-height: 56px; cursor: pointer; }
.item:first-child { border-top: 0; }
.item .corpo { flex: 1; min-width: 0; }
.item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .s { font-size: 13px; color: var(--texto-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .dir { text-align: right; flex: none; }
.item .valor { font-weight: 700; }
.hora { font-weight: 700; font-size: 15px; background: var(--card-2); border-radius: 8px; padding: 6px 8px; min-width: 56px; text-align: center; }
.cancelado .t, .cancelado .valor { text-decoration: line-through; opacity: .5; }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--texto-2); }
.tag.ok { background: rgba(61,214,140,.15); color: var(--ok); }
.tag.alerta { background: rgba(255,181,71,.15); color: var(--alerta); }
.tag.erro { background: rgba(255,107,107,.15); color: var(--erro); }
.tag.ia { background: rgba(63,224,255,.14); color: var(--ia); }
.tag.ouro { background: rgba(212,169,79,.16); color: var(--ouro); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 0 18px; min-height: 48px; font-weight: 700; cursor: pointer; background: var(--card-2); color: var(--texto); font-size: 16px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primario { background: var(--ouro); color: #1A1406; }
.btn.ia { background: var(--ia); color: #04222A; }
.btn.perigo { background: rgba(255,107,107,.15); color: var(--erro); }
.btn.fantasma { background: transparent; border: 1px solid var(--linha); }
.btn.grande { min-height: 58px; font-size: 18px; width: 100%; }
.btn.bloco { width: 100%; }
.btn.peq { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.acoes > .btn { flex: 1; }

/* Grade de escolha (serviços, formas de pagamento) */
.grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grade.tres { grid-template-columns: repeat(3, 1fr); }
.opcao { background: var(--card-2); border: 2px solid transparent; border-radius: 12px; padding: 12px 10px; min-height: 64px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.opcao .n { font-weight: 700; font-size: 15px; }
.opcao .p { font-size: 13px; color: var(--texto-2); margin-top: 2px; }
.compacta .opcao { min-height: 58px; padding: 8px; }
.compacta .opcao .n { font-size: 14px; line-height: 1.2; }
.compacta .opcao .p { font-size: 12px; }
.opcao.sel { border-color: var(--ouro); background: rgba(212,169,79,.12); }
.opcao.centro { text-align: center; align-items: center; }
.pag { min-height: 56px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; flex-wrap: wrap; }
.chips.rolar { flex-wrap: nowrap; }
.chip { flex: none; border: 1px solid var(--linha); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; font-weight: 600; min-height: 40px; }
.chip.sel { background: var(--ouro); color: #1A1406; border-color: var(--ouro); }
.chip.ia { border-color: rgba(63,224,255,.4); color: var(--ia); }
.seg { display: flex; background: var(--card); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; min-height: 40px; font-weight: 700; font-size: 14px; color: var(--texto-2); cursor: pointer; }
.seg button.sel { background: var(--card-2); color: var(--texto); }

/* ---------- Formulários ---------- */
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 13px; color: var(--texto-2); margin-bottom: 6px; font-weight: 600; }
.campo .ajuda { font-size: 12px; color: var(--texto-3); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--linha); border-radius: 12px; min-height: 50px; padding: 12px 14px; font-size: 16px; outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ouro); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texto-2); margin: 12px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ouro); flex: none; margin-top: 1px; }
.valor-grande { display: block; width: 100%; font-size: 34px; font-weight: 800; text-align: center; background: transparent; border: 0; border-bottom: 2px solid var(--linha); border-radius: 0; }
.linha-form { display: flex; gap: 8px; }
.linha-form > * { flex: 1; }
.autocompl { position: relative; }
.sugs { position: absolute; left: 0; right: 0; top: 100%; background: var(--card-2); border: 1px solid var(--linha); border-radius: 12px; z-index: 30; max-height: 220px; overflow: auto; margin-top: 4px; box-shadow: var(--sombra); }
.sugs div { padding: 12px 14px; border-top: 1px solid var(--linha); cursor: pointer; }
.sugs div:first-child { border-top: 0; }

/* ---------- Navegação inferior ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(22,24,29,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--linha); z-index: 20; }
.nav .in { max-width: 560px; margin: 0 auto; height: var(--nav-h); display: grid; grid-template-columns: 1fr 1fr 88px 1fr 1fr; align-items: center; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--texto-3); font-weight: 600; padding: 6px 0; }
.nav a.at { color: var(--ouro); }
.nav a svg { width: 24px; height: 24px; }
.mic { justify-self: center; width: 72px; height: 72px; border-radius: 50%; border: 0; margin-top: -30px; cursor: pointer; background: radial-gradient(circle at 35% 30%, #7EEBFF, var(--ia) 45%, var(--ia-2)); color: #03242C; box-shadow: 0 0 0 6px var(--bg), 0 6px 22px rgba(63,224,255,.45); display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic svg { width: 32px; height: 32px; }
.mic.gravando { animation: pulsa 1s infinite; background: radial-gradient(circle at 35% 30%, #FF9F9F, var(--erro)); }
@keyframes pulsa { 0% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 10px rgba(255,107,107,.5); } 100% { box-shadow: 0 0 0 6px var(--bg), 0 0 0 26px rgba(255,107,107,0); } }
.fab { position: fixed; right: max(16px, calc(50% - 264px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 15; border-radius: 999px; box-shadow: var(--sombra); }

/* ---------- Bottom sheet ---------- */
.fundo { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; opacity: 0; transition: opacity .2s; }
.fundo.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92dvh; overflow-y: auto; background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease-out; max-width: 560px; margin: 0 auto; }
.sheet.on { transform: translateY(0); }
.sheet .pega { width: 44px; height: 5px; border-radius: 3px; background: var(--linha); margin: 4px auto 12px; }
.sheet h3 { font-size: 19px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet .fechar { background: var(--card); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 20px; flex: none; }
.secao { font-size: 13px; color: var(--texto-2); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin: 16px 0 8px; }
.rodape-sheet { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg-2) 30%); padding: 14px 0 4px; margin-top: 8px; }

/* Voz */
.ouvindo { text-align: center; padding: 16px 0 8px; }
.ondas { display: flex; gap: 6px; justify-content: center; align-items: center; height: 60px; margin: 10px 0; }
.ondas i { width: 6px; border-radius: 3px; background: var(--ia); animation: onda 1s ease-in-out infinite; }
.ondas i:nth-child(2) { animation-delay: .1s } .ondas i:nth-child(3) { animation-delay: .2s } .ondas i:nth-child(4) { animation-delay: .3s } .ondas i:nth-child(5) { animation-delay: .4s }
@keyframes onda { 0%,100% { height: 12px; } 50% { height: 54px; } }
.parado .ondas i { animation: none; height: 12px; opacity: .4; }
.transcricao { font-size: 19px; line-height: 1.4; min-height: 54px; color: var(--texto); padding: 8px; }
.transcricao.fraca { color: var(--texto-3); }
.fala { background: var(--card); border-left: 3px solid var(--ia); padding: 10px 12px; border-radius: 8px; color: var(--texto-2); font-size: 14px; margin-bottom: 12px; font-style: italic; }
.duvida { background: rgba(255,181,71,.12); color: var(--alerta); border-radius: 12px; padding: 12px; font-weight: 600; margin-bottom: 12px; }
.aviso { font-size: 13px; color: var(--texto-2); margin: 4px 0; }
.item-rasc { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 12px; padding: 8px 8px 8px 12px; margin-bottom: 6px; }
.item-rasc .corpo { flex: 1; }
.item-rasc input { width: 96px; min-height: 40px; padding: 6px 10px; text-align: right; }
.x { background: var(--card-2); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--texto-2); flex: none; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 90px; }
.bolha { max-width: 86%; padding: 12px 14px; border-radius: 16px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; }
.bolha.eu { align-self: flex-end; background: var(--ouro); color: #1A1406; border-bottom-right-radius: 4px; }
.bolha.ia { align-self: flex-start; background: var(--card); border: 1px solid rgba(63,224,255,.3); border-bottom-left-radius: 4px; }
.digitando { display: inline-flex; gap: 4px; } .digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--ia); animation: pisca 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .2s } .digitando i:nth-child(3) { animation-delay: .4s }
@keyframes pisca { 50% { opacity: .2; } }
.barra-chat { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 16px; z-index: 12; }
.barra-chat .in { max-width: 528px; margin: 0 auto; display: flex; gap: 8px; }

/* Agenda: faixa de dias */
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.dia { flex: none; width: 58px; border-radius: 14px; background: var(--card); border: 1px solid var(--linha); padding: 8px 0; text-align: center; cursor: pointer; }
.dia .ds { font-size: 12px; color: var(--texto-2); text-transform: uppercase; }
.dia .dn { font-size: 20px; font-weight: 800; }
.dia.sel { background: var(--ouro); color: #1A1406; border-color: var(--ouro); }
.dia.sel .ds { color: #3A2D10; }
.st-agendado { border-left: 4px solid var(--texto-3); }
.st-confirmado { border-left: 4px solid var(--ia); }
.st-atendido { border-left: 4px solid var(--ok); opacity: .7; }
.st-faltou { border-left: 4px solid var(--erro); opacity: .7; }
.ag { background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 8px; display: flex; gap: 12px; align-items: center; cursor: pointer; }

/* Barras (gráfico simples) */
.barras { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-top: 8px; }
.barras div { flex: 1; background: var(--ouro-2); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.barras div.hoje { background: var(--ouro); }
.eixo { display: flex; justify-content: space-between; font-size: 11px; color: var(--texto-3); margin-top: 4px; }
.hbar { margin: 8px 0; }
.hbar .rot { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.hbar .trilho { height: 8px; background: var(--card-2); border-radius: 4px; overflow: hidden; }
.hbar .trilho i { display: block; height: 100%; background: var(--ouro); border-radius: 4px; }

/* Toast */
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%) translateY(-20px); background: var(--texto); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 60; opacity: 0; transition: .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--sombra); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.erro { background: var(--erro); color: #fff; }
.toast.ok { background: var(--ok); color: #05281A; }

/* Tela de entrada */
.entrada { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.entrada .marca { font-size: 38px; text-align: center; }
.entrada .slogan { text-align: center; color: var(--texto-2); margin: 8px 0 28px; line-height: 1.4; }
.carregando { display: grid; place-items: center; min-height: 60dvh; color: var(--texto-2); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--linha); border-top-color: var(--ia); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.offline-bar { background: var(--alerta); color: #2A1A00; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; position: sticky; top: 0; z-index: 30; }
.menu .item { padding: 14px 0; }
.menu .item .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th, .tabela td { border-bottom: 1px solid var(--linha); padding: 6px; text-align: left; white-space: nowrap; }
.rolavel { overflow-x: auto; }
.prog { height: 10px; background: var(--card-2); border-radius: 5px; overflow: hidden; margin: 8px 0; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--ia-2), var(--ia)); }
@media (min-width: 400px) { .grade.auto { grid-template-columns: repeat(3, 1fr); } }
/* Diálogo de confirmação (substitui confirm/prompt) */
.dialogo { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 51; width: min(92vw, 420px); background: var(--bg-2); border: 1px solid var(--linha); border-radius: 18px; padding: 18px; box-shadow: var(--sombra); }
.dialogo h3 { font-size: 18px; margin-bottom: 8px; }
.dialogo p { color: var(--texto-2); margin: 0 0 14px; line-height: 1.4; }
/* Troco (pagamento em dinheiro) */
.troco-caixa { background: var(--card); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px 16px; margin-bottom: 14px; }
.troco-linha { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; padding: 4px 0; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.troco-linha b { color: var(--texto); font-size: 18px; }
.troco-valor { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--linha); margin-top: 8px; padding-top: 12px; }
.troco-valor span { font-weight: 700; color: var(--ouro); text-transform: uppercase; letter-spacing: .6px; font-size: 14px; }
.troco-valor strong { font-size: 40px; font-weight: 800; color: var(--ouro); font-variant-numeric: tabular-nums; }
.troco-notas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.troco-notas .chip { cursor: default; font-variant-numeric: tabular-nums; }
.troco-previa { font-size: 17px; margin: 4px 0 12px; min-height: 24px; color: var(--texto-2); }
.troco-previa b { color: var(--ouro); font-size: 20px; }
/* Linha do card da IA que é uma ação (ex.: aniversário -> parabéns) */
.linha-acao { cursor: pointer; align-items: center; }
.linha-acao:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; border-radius: 8px; }
.linha-acao .btn { flex: none; }
/* Botões de ação abaixo das respostas do chat */
.chat-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; align-self: flex-start; max-width: 92%; }
.chat-acoes .chip { font-size: 13px; min-height: 36px; padding: 6px 12px; }
/* Beta: links discretos, feedback e documentos legais */
.link-discreto { display: block; text-align: center; margin: 16px auto 0; background: none; border: 0; color: var(--texto-2); font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px; }
.item-beta .t { display: flex; align-items: center; gap: 8px; }
.notas { display: flex; justify-content: space-between; gap: 6px; }
.nota { flex: 1; min-height: 56px; font-size: 28px; border-radius: 14px; border: 2px solid var(--linha); background: var(--card); cursor: pointer; filter: grayscale(.6); }
.nota.sel { border-color: var(--ouro); background: rgba(212,169,79,.14); filter: none; transform: scale(1.05); }
.check a { color: var(--ouro); text-decoration: underline; }
.legal-texto { line-height: 1.55; font-size: 15px; color: var(--texto); }
.legal-texto h2 { font-size: 17px; margin: 22px 0 8px; color: var(--ouro); display: block; }
.legal-texto p, .legal-texto li { color: var(--texto-2); }
.legal-texto ul { padding-left: 20px; margin: 6px 0; }
.legal-texto li { margin: 5px 0; }
.legal-texto strong, .legal-texto em { color: var(--texto); }
.legal-texto a { color: var(--ouro); }
.legal-texto mark { background: rgba(255,181,71,.2); color: var(--alerta); padding: 0 4px; border-radius: 4px; }
.legal-meta { font-size: 13px; color: var(--texto-3) !important; margin-top: 0; }
.legal-destaque { background: rgba(212,169,79,.1); border: 1px solid rgba(212,169,79,.35); border-radius: 12px; padding: 12px 14px; margin: 8px 0 4px; color: var(--texto-2); }
main.legal { padding-bottom: 40px; }

/* Ajuda e suporte (WhatsApp do help-desk) */
.link-ajuda { display: flex; align-items: center; justify-content: center; gap: 6px; color: #3DDC84; text-decoration: none; font-weight: 600; }
.link-ajuda svg { flex: 0 0 auto; }
.item-ajuda { text-decoration: none; color: inherit; }
.item-ajuda .ic { color: #25D366; }

/* Instalar na tela inicial */
.card-instalar { border: 1px solid rgba(212,162,76,.45); background: linear-gradient(160deg, rgba(212,162,76,.12), transparent 60%), var(--card, #17191E); }
.card-instalar h2 { margin-bottom: 8px; }
.passos-inst { margin: 0 0 6px; padding-left: 20px; color: var(--texto-2); line-height: 1.6; }
.passos-inst b { color: var(--texto); }

/* Aviso quando a voz do aparelho não funciona (explica o motivo e como resolver) */
.aviso-voz { background: rgba(212,169,79,.10); border: 1px solid rgba(212,169,79,.40); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--texto-2); }
.aviso-voz b { color: var(--texto); }

/* Visagismo */
.card-vz { border-color: rgba(212,162,76,.45); }
.vz-resumo { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.vz-resumo dt { color: var(--texto-3); font-weight: 600; }
.vz-resumo dd { margin: 0; color: var(--texto); }
.vz-secao > summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.vz-secao > summary::-webkit-details-marker { display: none; }
.vz-secao > summary::after { content: '▾'; margin-left: auto; color: var(--texto-3); transition: transform .2s; }
.vz-secao:not([open]) > summary::after { transform: rotate(-90deg); }
.vz-cont { color: var(--ouro); font-size: 13px; font-weight: 700; }
.vz-campo { margin-top: 14px; }
.vz-rot { font-size: 13px; color: var(--texto-2); font-weight: 600; margin-bottom: 8px; }
.vz-rot span { color: var(--texto-3); font-weight: 500; }
.vz-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.vz-mini { position: relative; border: 1px solid var(--linha); background: var(--card); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; color: inherit; }
.vz-mini img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.vz-mini span { display: block; font-size: 11px; padding: 4px 6px; color: var(--texto-2); text-align: left; }
.vz-mini.novo { border-color: var(--ouro); }
.vz-mini .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.vz-cam { display: inline-flex; align-items: center; }
.vz-salvar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 8px 0 4px; background: linear-gradient(transparent, var(--bg) 30%); z-index: 2; }

/* Abertura: logo do app → logo da barbearia */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .4s ease; }
#splash img { grid-area: 1 / 1; max-width: min(72vw, 420px); max-height: 38vh; object-fit: contain; transition: opacity .45s ease, transform .45s ease; }
#splash .sp-barb { opacity: 0; transform: scale(.96); }
#splash.troca .sp-app { opacity: 0; transform: scale(1.03); }
#splash.troca .sp-barb { opacity: 1; transform: none; }
#splash.sai { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #splash, #splash img { transition: none; } }

/* Logo da barbearia no Início, na Agenda e em Dados da barbearia */
.card-ia.com-logo { padding-bottom: 22px; }
.logo-barb-ini { display: block; max-height: 56px; max-width: 45%; object-fit: contain; object-position: left center; margin: 2px 0 12px; opacity: .92; }
.logo-barb-agenda { display: flex; justify-content: center; margin: -4px 0 12px; }
.logo-barb-agenda img { max-height: 52px; max-width: 60%; object-fit: contain; opacity: .95; }
.logo-edit { display: flex; gap: 14px; align-items: center; }
.logo-prev { flex: 0 0 120px; height: 120px; border-radius: 14px; border: 1px dashed var(--linha); display: grid; place-items: center; overflow: hidden;
  background: repeating-conic-gradient(#20232b 0% 25%, #191c22 0% 50%) 50% / 16px 16px; }
.logo-prev img { max-width: 92%; max-height: 92%; object-fit: contain; }
.logo-prev span { color: var(--texto-3); font-size: 13px; }
