/* ============================================================
   CHAT SENSITIVA — WhatsApp escuro (tamanhos nativos + polido)
   ============================================================ */

.wa-backdrop {
  position: fixed; inset: 0; z-index: 8990;
  background: #0b141a;  /* cor de fundo sólida, uniforme */
}

/* ---- container ---- */
.wa {
  position: fixed; inset: 0; z-index: 9000;
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0b141a;
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (min-width: 640px) { .wa { max-width: 480px; box-shadow: 0 0 80px rgba(0,0,0,.55); } }

/* ---- header ---- */
.wa-head {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: #1f2c33; color: #e9edef; flex: none;
  border-bottom: 1px solid #0b1418;
}
.wa-back { font-size: 27px; line-height: 1; margin-right: -4px; color: #aebac1; }
.wa-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wa-id { flex: 1; min-width: 0; }
.wa-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.wa-status { font-size: 13.5px; color: #06cf9c; min-height: 16px; }
.wa-status:empty::after { content: "en línea"; }
.wa-icons { font-size: 18px; letter-spacing: 6px; color: #aebac1; }

/* ---- body / wallpaper ---- */
.wa-body {
  flex: 1; overflow-y: auto; padding: 16px 14px 26px;
  background-color: #0b141a;
  background-image: linear-gradient(rgba(9,16,21,.35), rgba(9,16,21,.35)), url("../assets/img/wa-bg.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 280px auto;
  background-attachment: scroll;
  display: flex; flex-direction: column; gap: 10px;
}
.wa-daystamp {
  align-self: center; background: #1d282f; color: #8696a0;
  font-size: 13px; padding: 6px 14px; border-radius: 9px; margin-bottom: 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,.2); text-transform: uppercase; letter-spacing: .4px;
}

/* ---- rows / bubbles ---- */
.wa-row { display: flex; align-items: flex-end; }
.wa-in  { justify-content: flex-start; }
.wa-out { justify-content: flex-end; }

/* espaço do avatar reservado em toda msg dela (balões alinhados) */
.wa-in::before {
  content: ""; flex: none; align-self: flex-end;
  width: 30px; height: 30px; border-radius: 50%;
  margin: 0 7px 1px 0; background: transparent;
}
/* SÓ a última mensagem dela mostra o avatar — o círculo "desce" */
.wa-avatar::before { background: url("../assets/img/avatar-lucia.webp") center/cover #1f2c33; }

.wa-bubble {
  position: relative; max-width: 82%;
  padding: 8px 11px 9px; border-radius: 10px;
  font-size: 15.6px; line-height: 1.42; color: #e9edef; word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.25); animation: waPop .22s ease-out;
}
@keyframes waPop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-in  .wa-bubble { background: #202c33; border-top-left-radius: 3px; }
.wa-out .wa-bubble { background: #005c4b; border-top-right-radius: 3px; }
/* rabinho (tail) do WhatsApp */
.wa-in  .wa-bubble::after {
  content: ""; position: absolute; top: 0; left: -7px;
  border-width: 0 9px 11px 0; border-style: solid;
  border-color: transparent #202c33 transparent transparent;
}
.wa-out .wa-bubble::after {
  content: ""; position: absolute; top: 0; right: -7px;
  border-width: 0 0 11px 9px; border-style: solid;
  border-color: transparent transparent transparent #005c4b;
}
.wa-time { float: right; font-size: 12px; color: #8696a0; margin: 6px 0 -3px 12px; white-space: nowrap; }
.wa-out .wa-time { color: #aad9c9; }
.wa-time b { color: #53bdeb; font-weight: 400; font-size: 15px; letter-spacing: -3px; margin-left: 3px; }

/* ---- typing ---- */
.wa-typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: #202c33; }
.wa-typing span { width: 8px; height: 8px; border-radius: 50%; background: #8696a0; animation: waBlink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waBlink { 0%,60%,100% { opacity: .35; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }

/* ---- voice note ---- */
.wa-audio { display: flex; align-items: center; gap: 11px; min-width: 244px; padding: 9px 14px 9px 10px; }
.wa-au-av { display: none; }
.wa-play {
  width: 42px; height: 42px; flex: none; border: none; cursor: pointer;
  border-radius: 50%; background: #00a884; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.wa-play::before {
  content: ""; width: 0; height: 0;
  border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.wa-play.playing::before {
  width: 14px; height: 17px; border: none; margin: 0;
  background: linear-gradient(90deg, #fff 0 5px, transparent 5px 9px, #fff 9px 14px);
}
.wa-wave { position: relative; flex: 1; height: 28px; }
.wv { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wv i { display: block; flex: 1; border-radius: 3px; }
.wv-bg i { background: #667781; }
.wv-fg { clip-path: inset(0 100% 0 0); transition: clip-path .12s linear; }
.wv-fg i { background: #06cf9c; }
.wa-dur { font-size: 13px; color: #8696a0; min-width: 30px; }

/* ---- image ---- */
.wa-img { padding: 4px; max-width: 272px; }
.wa-img img { display: block; width: 100%; border-radius: 7px; }
.wa-cap { font-size: 14.5px; color: #cfd6da; padding: 7px 5px 2px; }

/* ---- quick-reply chips ---- */
.wa-opts { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin: 4px 0; }
.wa-opt {
  background: #202c33; color: #06cf9c; border: none;
  padding: 12px 18px; border-radius: 9px; font-size: 15.5px; font-weight: 600;
  cursor: pointer; max-width: 84%; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.wa-opt:hover { background: #2a3942; }

/* ---- offer card ---- */
.wa-offer { background: #1f2c33; max-width: 92%; border-left: 4px solid #c9a84c; padding: 13px 14px; }
.wa-offer-t { font-size: 17.5px; font-weight: 700; color: #f0d488; margin-bottom: 9px; }
.wa-offer ul { list-style: none; margin: 0 0 11px; padding: 0; }
.wa-offer li { font-size: 15px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #e9edef; }
.wa-offer-price { font-size: 16px; margin: 7px 0 2px; color: #e9edef; }
.wa-offer-price s { color: #8696a0; }
.wa-offer-price b { color: #06cf9c; font-size: 30px; margin-left: 5px; }
.wa-offer-inst { font-size: 13.5px; color: #8696a0; }
.wa-offer-guar { font-size: 13.5px; color: #f0d488; margin-top: 10px; line-height: 1.4; }

/* ---- CTA ---- */
.wa-cta-wrap { display: flex; justify-content: center; padding: 14px 2px 8px; }
.wa-cta {
  width: 100%; padding: 17px; border: none; cursor: pointer; border-radius: 28px;
  background: linear-gradient(180deg, #00a884, #008069); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 6px 20px rgba(0,168,132,.4); animation: waCta 1.6s infinite;
}
@keyframes waCta { 0%,100% { transform: scale(1);} 50% { transform: scale(1.025);} }

/* ---- footer / name input ---- */
.wa-foot { display: none; padding: 9px 11px; background: #1f2c33; gap: 9px; align-items: center; flex: none; }
.wa-foot.show { display: flex; }
.wa-foot input {
  flex: 1; border: none; border-radius: 24px; padding: 12px 18px;
  background: #2a3942; color: #e9edef; font-size: 16px; outline: none;
}
.wa-foot button { width: 48px; height: 48px; flex: none; border: none; cursor: pointer; border-radius: 50%; background: #00a884; color: #fff; font-size: 19px; }

/* ---- revelação do preço (cartas abrindo) ---- */
.wa-reveal { background: #202c33; max-width: 94%; padding: 16px 12px 14px; }
.rv-cards { display: flex; justify-content: center; gap: 18px; }
.rv-card { width: 102px; height: 160px; perspective: 850px; }
.rv-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.4,0,.2,1); }
.rv-card.flipped .rv-inner { transform: rotateY(180deg); }
.rv-back, .rv-front { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,.5); }
.rv-back img, .rv-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-front { transform: rotateY(180deg); }
.rv-card.flipped { animation: rvGlow 1.4s ease; }
@keyframes rvGlow { 0%,100% { filter: none; } 45% { filter: drop-shadow(0 0 16px rgba(201,168,76,.9)); } }
.rv-eq { text-align: center; font-size: 17px; font-weight: 700; color: #f0d488; margin-top: 16px; min-height: 22px; opacity: 0; transition: opacity .5s; }
.rv-eq.show { opacity: 1; }
.rv-rueda { text-align: center; margin-top: 12px; opacity: 0; transform: scale(.8); transition: opacity .6s, transform .6s; }
.rv-rueda.show { opacity: 1; transform: scale(1); }
.rv-rueda img { width: 132px; border-radius: 9px; box-shadow: 0 0 28px rgba(201,168,76,.55); }
.rv-stamp { text-align: center; margin-top: 13px; opacity: 0; transform: scale(.6); transition: opacity .5s cubic-bezier(.2,1.4,.4,1), transform .5s cubic-bezier(.2,1.4,.4,1); }
.rv-stamp.show { opacity: 1; transform: scale(1); }
.rv-stamp b { display: inline-block; background: linear-gradient(180deg,#00a884,#008069); color: #fff; font-size: 27px; font-weight: 800; padding: 9px 24px; border-radius: 12px; box-shadow: 0 5px 16px rgba(0,128,105,.4); }
.rv-stamp span { display: block; font-size: 13.5px; color: #8696a0; margin-top: 8px; }
.rv-listen { display: block; margin: 15px auto 2px; background: #005c4b; color: #e9edef; border: none; cursor: pointer; padding: 11px 20px; border-radius: 20px; font-size: 14.5px; font-weight: 600; }
.rv-listen.playing { background: #007a63; }
.rv-listen:hover { background: #01705c; }
.rv-listen.pulse { animation: waPlayPulse 1.1s infinite; }
@keyframes waPlayPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,168,132,.55); }
  60% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(0,168,132,0); }
}
.wa-play.pulse { animation: waPlayPulse 1.1s infinite; }

/* ---- start overlay (não usado no fluxo atual, mantido) ---- */
.wa-start { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; background: #0b141a; transition: opacity .45s; }
.wa-start.hide { opacity: 0; pointer-events: none; }
