/*
 * Toque MIX: página do visitante e tela de teste.
 * Mesma identidade do Painel do Cliente (painel-cliente-web/public_html/assets/css/painel.css):
 * fundo escuro, azul #00AFF5, amarelo #FFD600, Inter e Poppins. Os nomes de classe seguem o painel.
 */

:root {
  --fundo: #070C17;
  --superficie: #111927;
  --superficie-2: #162235;
  --azul: #00AFF5;
  --amarelo: #FFD600;
  --verde: #71E6A1;
  --laranja: #FFBE73;
  --texto: #F7FAFF;
  --texto-2: #C8D5E5;
  --mutado: #9BAFC5;
  --linha: rgba(255, 255, 255, 0.10);
  --linha-azul: rgba(0, 175, 245, 0.28);
  --raio: 20px;
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-titulo: 'Poppins', 'Inter', system-ui, sans-serif;
  --sombra: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--fonte-titulo); margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--amarelo); outline-offset: 3px; border-radius: 8px; }

.icone { width: 22px; height: 22px; fill: currentColor; flex: none; }
.sobretitulo { color: var(--azul); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

/* Botões */
.botao {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s;
}
.botao:active { transform: scale(0.98); }
.botao:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.botao .icone { width: 20px; height: 20px; }
.botao-primario { background: var(--amarelo); color: #101010; }
.botao-primario:hover:not(:disabled) { background: #ffe14d; }
.botao-secundario { border-color: var(--linha); background: rgba(255, 255, 255, 0.03); color: var(--texto); }
.botao-secundario:hover:not(:disabled) { border-color: var(--linha-azul); background: rgba(0, 175, 245, 0.06); }
.botao-atender { background: var(--verde); color: #08210f; }
.botao-atender:hover:not(:disabled) { background: #8cf0b5; }
.botao-perigo { background: var(--laranja); color: #101010; }
.botao-perigo:hover:not(:disabled) { background: #ffcd94; }
.botao-largo { width: 100%; }

.icone-bloco {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(0, 175, 245, 0.10);
  color: var(--azul);
  display: inline-grid;
  place-items: center;
  flex: none;
}

.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px; }
.nota {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 175, 245, 0.07);
  color: var(--mutado);
  font-size: 13px;
  text-align: left;
}
.nota .icone { color: var(--azul); width: 20px; height: 20px; }
.aviso { margin: 16px 0 0; padding: 12px 14px; border-radius: 13px; font-size: 13px; line-height: 1.5; text-align: left; }
.aviso-alerta { background: rgba(255, 190, 115, 0.10); color: #FFD3A1; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.selo-azul { color: var(--azul); background: rgba(0, 175, 245, 0.10); }
.selo-laranja { color: var(--laranja); background: rgba(255, 190, 115, 0.10); }
.selo-verde { color: var(--verde); background: rgba(113, 230, 161, 0.10); }
.selo-amarelo { color: var(--amarelo); background: rgba(255, 214, 0, 0.10); }

.girador { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 214, 0, 0.18); border-top-color: var(--amarelo); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.carregando { min-height: 100vh; display: grid; place-items: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--superficie-2);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  font-size: 14px;
}
.toast .icone { color: var(--verde); }

/* Página do visitante */
.visitante {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  background: radial-gradient(circle at 50% -10%, rgba(0, 175, 245, 0.18), transparent 55%), var(--fundo);
}
.visitante-topo { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: center; padding: 22px 4px 16px; }

/* Marca do produto: logo MIX | TOQUE MIX / CAMPAINHA INTELIGENTE (também na placa e na tela de teste) */
.marca-toque { display: inline-flex; align-items: center; gap: 14px; }
.marca-toque img { width: 96px; height: auto; }
.marca-toque-nome { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.28); line-height: 1.1; }
.marca-toque-nome strong { font-family: var(--fonte-titulo); font-size: 17px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.marca-toque-nome span { color: var(--texto-2); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.visitante-cartao {
  width: 100%;
  max-width: 460px;
  padding: 26px 24px 22px;
  border-radius: 26px;
  border: 1px solid var(--linha-azul);
  background: rgba(12, 22, 35, 0.94);
  box-shadow: var(--sombra);
  text-align: center;
}
.local { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 175, 245, 0.10); color: var(--azul); font-size: 13px; font-weight: 700; }
.local .icone { width: 18px; height: 18px; }
.campainha-icone {
  width: 96px;
  height: 96px;
  margin: 30px auto 22px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  color: var(--azul);
  background: rgba(0, 175, 245, 0.10);
  box-shadow: 0 0 40px rgba(0, 175, 245, 0.25);
}
.campainha-icone .icone { width: 48px; height: 48px; }
.campainha-icone.tocando { color: var(--amarelo); background: rgba(255, 214, 0, 0.10); animation: tocar 1.6s ease-in-out infinite; }
@keyframes tocar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(255, 214, 0, 0); }
}
.visitante-cartao h1 { font-size: 28px; margin-top: 8px; }
.visitante-texto { color: var(--texto-2); font-size: 15.5px; margin: 12px 0 24px; }
.botao-tocar { min-height: 58px; font-size: 16px; }
.visitante-cartao .nota { margin-top: 18px; }
.visitante-seguro { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--linha); color: var(--mutado); font-size: 12.5px; }
.visitante-seguro .icone { width: 18px; height: 18px; color: var(--azul); }
.visitante-rodape { margin-top: auto; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #5F7389; font-size: 12px; text-align: center; }
.conheca { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--linha); background: rgba(255, 255, 255, 0.03); color: var(--texto-2); font-size: 12.5px; font-weight: 600; }
.conheca .icone { width: 18px; height: 18px; color: #55E987; }
.conheca:hover { border-color: var(--linha-azul); color: var(--texto); }
a.botao { text-decoration: none; }

.camera { position: relative; margin: 22px 0 20px; border-radius: 20px; overflow: hidden; background: #02050b; border: 1px solid var(--linha); }
.camera video { width: 100%; height: 280px; object-fit: cover; display: block; transform: scaleX(-1); }
.camera-selo { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(7, 12, 23, 0.7); backdrop-filter: blur(6px); color: var(--texto); font-size: 12px; font-weight: 600; }
.camera-selo .icone { width: 16px; height: 16px; color: var(--azul); }
.chamada-estado h2 { font-size: 21px; margin-bottom: 8px; }
.chamada-estado p { color: var(--texto-2); }
.resposta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 0, 0.25);
  background: rgba(255, 214, 0, 0.08);
  text-align: left;
}
.resposta .icone { color: var(--amarelo); margin-top: 2px; }
.resposta strong { display: block; color: var(--amarelo); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.resposta p { color: var(--texto); font-size: 17px; font-weight: 600; line-height: 1.4; }
.acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Chamada vista pelo cliente (tela de teste e referência para o painel) */
.video-ao-vivo { position: relative; min-height: 300px; border-radius: 20px; overflow: hidden; background: #02050b; border: 1px solid var(--linha); }
.video-ao-vivo video { width: 100%; height: 340px; object-fit: cover; display: block; }
.video-espera { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--mutado); font-size: 13px; }
.ao-vivo { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(7, 12, 23, 0.72); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; }
.ao-vivo > span { width: 8px; height: 8px; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.2); }
.chamada-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.respostas-rapidas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--linha);
  background: rgba(255, 255, 255, 0.03);
  color: var(--texto-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.chip .icone { width: 18px; height: 18px; color: var(--azul); }
.chip:hover:not(:disabled) { border-color: var(--linha-azul); color: var(--texto); }
.respostas-titulo { margin-top: 18px; }

@media (max-width: 420px) {
  .visitante-cartao { padding: 22px 18px 20px; }
  .visitante-cartao h1 { font-size: 25px; }
  .acoes .botao { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
