* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: #2a1013;
  color: #f3e6d3;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

#app { min-height: 100vh; }

.tela { min-height: 100vh; }

.tela-central {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201, 160, 99, 0.25);
  border-top-color: #c9a063;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

.cartao-login {
  max-width: 380px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
}

.cartao-login h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  margin: 0 0 12px;
}

.cartao-login p {
  color: #c9a89f;
  font-size: 14px;
  margin: 0 0 20px;
}

.aviso-compra {
  font-size: 12.5px;
  color: #a3877e;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  margin: -8px 0 20px;
}

#form-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="email"], input[type="text"] {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
}

input[type="email"]:focus, input[type="text"]:focus {
  outline: 2px solid #c9a063;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

#botao-entrar, #botao-obrigado-ok {
  padding: 14px 16px;
  border-radius: 14px;
  background: #c9a063;
  color: #2a1013;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
}

#botao-entrar:disabled {
  opacity: 0.6;
}

.mensagem-erro {
  margin-top: 14px;
  color: #f0a58e;
  font-size: 13px;
  line-height: 1.5;
}

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 8px;
}

.topo-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icone-fone {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icone-fone .brilho {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 160, 99, 0.35), transparent 70%);
}

.fone-svg {
  position: relative;
  width: 42px;
  height: 42px;
  z-index: 1;
}

.onda {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  z-index: 2;
}

.onda span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c9a063, #e6cd9c);
  transform-origin: bottom;
  transform: scaleY(0.35);
}

.onda.tocando span {
  animation: pulsar-onda 1s ease-in-out infinite;
}

.onda span:nth-child(1) { height: 6px; animation-delay: 0s; }
.onda span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.onda span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.onda span:nth-child(4) { height: 14px; animation-delay: 0.1s; }
.onda span:nth-child(5) { height: 5px; animation-delay: 0.25s; }

@keyframes pulsar-onda {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .onda.tocando span { animation: none; transform: scaleY(0.7); }
}

.topo-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a89f;
}

.topo h1 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 4px 0 0;
  font-size: 21px;
}

.botao-icone {
  background: rgba(255, 255, 255, 0.08);
  color: #f3e6d3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.banner-instalar {
  margin: 16px 20px 0;
  position: relative;
  z-index: 10;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a2b34, #4a1418);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.banner-instalar button:not(.botao-fechar) {
  flex-shrink: 0;
  background: #fff;
  color: #2a1013;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
}

.botao-fechar {
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}

.secao-lista {
  padding: 4px 20px 140px;
}

.secao-lista-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.secao-lista-topo h2 {
  font-size: 16px;
  margin: 0;
}

.contagem {
  font-size: 13px;
  color: #c9a89f;
}

.lista-audios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(58, 23, 26, 0.75);
  color: inherit;
}

.item-audio.ativo {
  border-color: rgba(201, 160, 99, 0.8);
  background: rgba(255, 255, 255, 0.12);
}

.item-audio.emergencia {
  box-shadow: inset 0 0 24px rgba(245, 158, 11, 0.08);
}

.item-icone {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a063, #8a6a3f);
  font-size: 16px;
}

.mini-onda {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.mini-onda span {
  width: 3px;
  border-radius: 2px;
  background: #f3e6d3;
  transform-origin: bottom;
  animation: pulsar-onda 0.9s ease-in-out infinite;
}

.mini-onda span:nth-child(1) { height: 8px; animation-delay: 0s; }
.mini-onda span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.mini-onda span:nth-child(3) { height: 11px; animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .mini-onda span { animation: none; transform: scaleY(0.7); }
}

.item-texto {
  flex: 1;
  min-width: 0;
}

.item-texto h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.item-texto p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #c9a89f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-duracao {
  flex-shrink: 0;
  font-size: 12px;
  color: #c9a89f;
}

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: rgba(42, 16, 19, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-barra {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 12px 0;
  margin: -12px 0;
  background-clip: content-box;
  box-sizing: content-box;
  touch-action: none;
}

.player-progresso {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a063, #e6cd9c);
}

.player-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f3e6d3;
  border: 2px solid #c9a063;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.player-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-titulo {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.player-botoes {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.botao-reiniciar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3e6d3;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.icone-reiniciar {
  font-size: 15px;
}

.botao-play {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #c9a063;
  color: #2a1013;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
