html,
body {
  height: 100%;
  overflow: hidden;
}

/* ALTURA DA TELA NO IPHONE (10/09/2026)
 *
 * No navegador de dentro do WhatsApp/Instagram (iOS), 100vh e calculado uma vez e nao
 * acompanha a tela: sobrava uma faixa PRETA embaixo (era o fundo #0b141a do body) e o
 * cabecalho verde sumia. 100dvh e a altura que a pessoa realmente ve; quem nao entende
 * dvh (iOS antigo) fica na linha de cima, com 100vh. O fundo passa a ser o bege do chat:
 * se ainda sobrar alguma faixa, ela some no fundo em vez de aparecer preta.
 */
body {
  background: #efeae2;
}

.x1-chat-shell {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #efeae2;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.x1-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #075e54;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.x1-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .28);
  background: #fff;
}

.x1-contact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.x1-contact strong {
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x1-contact span {
  font-size: 13px;
  color: rgba(255, 255, 255, .86);
}

.x1-chat-area {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 92px 14px 112px;
  background-color: #efeae2;
  background-image: linear-gradient(rgba(11, 20, 26, .08), rgba(11, 20, 26, .12)), url("../chat/capawpp-720.webp?v=20261013");
  background-size: cover;
  background-position: center;
}

.x1-msg {
  width: fit-content;
  max-width: min(88vw, 520px);
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #fff;
  color: #111b21;
  font-size: 17px;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  animation: x1Fade .22s ease-out;
  overflow-wrap: anywhere;
}

.x1-msg strong {
  font-weight: 800;
}

.x1-msg.user {
  margin-left: auto;
  background: #d9fdd3;
  border-top-right-radius: 4px;
}

.x1-msg.bot {
  border-top-left-radius: 4px;
}

.x1-msg.small {
  font-size: 15px;
  color: #3b4a54;
}

.x1-typing {
  width: 74px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 13px 14px;
  margin: 0 0 18px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  animation: x1Fade .18s ease-out;
}

.x1-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8696a0;
  animation: x1Blink 1.25s infinite;
}

.x1-dot:nth-child(2) {
  animation-delay: .16s;
}

.x1-dot:nth-child(3) {
  animation-delay: .32s;
}

.x1-actions,
.x1-input-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(92vw, 520px);
  margin: 8px 0 24px;
  animation: x1Fade .22s ease-out;
}

.x1-option,
.x1-send,
.x1-checkout-button,
.x1-reset-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #169b49);
  box-shadow: 0 7px 18px rgba(37, 211, 102, .28);
  transition: transform .16s ease, filter .16s ease;
}

.x1-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}

.x1-option:hover,
.x1-send:hover,
.x1-checkout-button:hover,
.x1-reset-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.x1-option span {
  display: block;
  min-width: 0;
}

.x1-option b {
  font-size: 22px;
  line-height: 1;
}

.x1-input-card {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.x1-input,
.x1-textarea {
  width: 100%;
  border: 1px solid #d8dee2;
  border-radius: 10px;
  padding: 14px 13px;
  font: inherit;
  font-size: 16px;
  color: #111b21;
  outline: none;
  background: #f7f8fa;
}

.x1-textarea {
  min-height: 132px;
  resize: vertical;
}

.x1-input:focus,
.x1-textarea:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .16);
}

.x1-phone-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.x1-phone-prefix {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #d8dee2;
  border-radius: 10px;
  background: #eef2f3;
  color: #111b21;
  font-weight: 900;
}

.x1-phone-input {
  letter-spacing: 0;
}

.x1-send,
.x1-checkout-button,
.x1-reset-button {
  text-align: center;
  padding: 15px 18px;
}

.x1-checkout-personalized {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.2;
}

.x1-checkout-personalized span {
  display: block;
}

.x1-checkout-personalized small {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 700;
}

.x1-send:disabled,
.x1-checkout-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.x1-hint {
  font-size: 13px;
  line-height: 1.35;
  color: #667781;
}

.x1-error {
  color: #b42318;
  font-weight: 700;
}

.x1-recording-audio {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(94vw, 560px);
  margin: 8px 0 18px;
  animation: x1Fade .22s ease-out;
}

.x1-recording-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
}

.x1-recording-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  background: #fff;
  color: #3b4a54;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.x1-recording-pill strong {
  font-size: 14px;
  font-weight: 700;
}

.x1-recording-mic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f04438;
  box-shadow: 0 0 0 0 rgba(240, 68, 56, .42);
  animation: x1RecordingPulse 1.15s infinite;
}

.x1-generation {
  max-width: min(88vw, 520px);
  margin: 8px 0 22px;
  padding: 15px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
  animation: x1Fade .22s ease-out;
}

.x1-generation strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.x1-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf2f0;
}

.x1-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25d366, #128c7e);
  transition: width .4s ease;
}

.x1-generation p {
  margin: 10px 0 0;
  color: #3b4a54;
  font-size: 14px;
  line-height: 1.45;
}

.x1-audio-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(94vw, 560px);
  margin: 8px 0 24px;
  animation: x1Fade .24s ease-out;
}

.x1-audio-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
}

.x1-audio {
  width: min(78vw, 390px);
  padding: 10px 11px 7px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.x1-audio-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.x1-play {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.x1-wave {
  flex: 1;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.x1-wave span {
  width: 3px;
  flex: 0 0 3px;
  border-radius: 99px;
  background: #9db5ae;
}

.x1-wave span.is-active {
  background: #25d366;
}

.x1-audio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #667781;
  font-size: 12px;
}

.x1-music-preview {
  max-width: min(92vw, 520px);
  margin: 10px 0 26px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
  border: 1px solid rgba(18, 140, 126, .18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 14px 34px rgba(0, 0, 0, .12);
  animation: x1Fade .24s ease-out;
}

.x1-music-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.x1-music-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #128c7e;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.x1-music-title {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.x1-music-title strong {
  color: #111b21;
  font-size: 17px;
  line-height: 1.22;
}

.x1-music-title span {
  color: #667781;
  font-size: 13px;
  line-height: 1.35;
}

.x1-music-preview-head em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #d9fdd3;
  color: #0b6b43;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.x1-music-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(18, 140, 126, .12);
}

.x1-download-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #128c7e, #075e54);
  box-shadow: 0 7px 18px rgba(18, 140, 126, .24);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.x1-review-request {
  max-width: min(92vw, 520px);
  margin: 10px 0 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  background: #fff;
  color: #111b21;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 8px 30px rgba(0, 0, 0, .1);
  animation: x1Fade .24s ease-out;
}

.x1-review-request-highlight {
  border: 2px solid #25d366;
  background: linear-gradient(180deg, #ffffff, #effff7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .14), 0 14px 34px rgba(37, 211, 102, .18);
}

.x1-review-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #d9fdd3;
  color: #0b6b43;
  font-size: 24px;
  font-weight: 900;
}

.x1-review-content {
  min-width: 0;
}

.x1-review-content strong {
  display: block;
  color: #111b21;
  font-size: 18px;
  line-height: 1.22;
}

.x1-review-content p {
  margin: 8px 0 0;
  color: #3b4a54;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.x1-review-content small {
  display: block;
  margin-top: 8px;
  color: #667781;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.x1-review-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 7px 18px rgba(37, 211, 102, .24);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.x1-offer-card {
  max-width: min(92vw, 520px);
  margin: 10px 0 26px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 8px 30px rgba(0, 0, 0, .12);
  animation: x1Fade .24s ease-out;
}

.x1-offer-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.22;
  color: #111b21;
  letter-spacing: 0;
}

.x1-offer-card p {
  margin: 0 0 12px;
  color: #3b4a54;
  font-size: 15px;
  line-height: 1.45;
}

.x1-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #eef1f3;
  border-bottom: 1px solid #eef1f3;
  margin-bottom: 12px;
}

.x1-price span {
  color: #667781;
  font-size: 13px;
  font-weight: 700;
}

.x1-price strong {
  font-size: 26px;
  color: #111b21;
}

.x1-suggested-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #eef1f3;
  border-bottom: 1px solid #eef1f3;
  margin: 2px 0 12px;
}

.x1-suggested-value span {
  color: #667781;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.x1-suggested-value strong {
  color: #111b21;
  font-size: 28px;
  line-height: 1.05;
}

.x1-contribution-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.x1-contribution-button {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  text-align: left;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.x1-contribution-button span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.x1-contribution-button strong {
  font-size: 15px;
  line-height: 1.2;
}

.x1-contribution-button small {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
}

.x1-contribution-button b {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.x1-contribution-button em {
  position: absolute;
  top: -7px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff7c2;
  color: #7a5400;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.x1-reset-button {
  margin-top: 10px;
  background: linear-gradient(135deg, #54656f, #3b4a54);
  box-shadow: 0 7px 18px rgba(59, 74, 84, .22);
}

.x1-bottom-safe {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 20, 26, .24), transparent);
}

.hidden {
  display: none !important;
}

@keyframes x1Fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes x1Blink {
  0%,
  80%,
  100% {
    opacity: .28;
  }
  40% {
    opacity: 1;
  }
}

@keyframes x1RecordingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 68, 56, .42);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(240, 68, 56, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 68, 56, 0);
  }
}

@media (max-width: 520px) {
  .x1-topbar {
    height: 72px;
    padding: 10px 12px;
  }

  .x1-avatar {
    width: 48px;
    height: 48px;
  }

  .x1-contact strong {
    font-size: 17px;
  }

  .x1-chat-area {
    padding: 88px 10px 108px;
  }

  .x1-msg {
    max-width: 91vw;
    font-size: 16px;
  }
}

/* ---- Player trancado: mesmo visual do player que entregava a musica ---- */
.x1-music-preview.x1-locked{cursor:pointer}
/* Capa do player trancado: coracao + primeiro nome dela. Ocupa o lugar do x1-music-icon. */
.x1-album-art{width:64px;height:64px;flex:0 0 64px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;border-radius:12px;
  background:linear-gradient(160deg,#fde7ef,#f9d3e1);border:1px solid rgba(212,83,126,.22);
  overflow:hidden;padding:4px}
.x1-album-heart{font-size:22px;line-height:1;color:#d4537e}
.x1-album-art small{max-width:100%;font-size:10px;font-weight:800;color:#7a2444;
  line-height:1.1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.x1-music-preview.x1-locked .x1-play{opacity:.45;cursor:pointer}
.x1-music-preview.x1-locked .x1-wave{opacity:.45}

/* ---- Pop-up do player ---- */
.x1-lp-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;
  justify-content:center;z-index:9999;padding:20px;animation:x1LpIn .2s ease-out}
.x1-lp-overlay.x1-lp-saindo{opacity:0;transition:opacity .25s ease}
@keyframes x1LpIn{from{opacity:0}to{opacity:1}}
.x1-lp-modal{background:#fff;border-radius:14px;max-width:340px;width:100%;position:relative;
  text-align:center;overflow:hidden;animation:x1LpUp .25s ease-out}
@keyframes x1LpUp{from{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}
.x1-lp-modal h3{margin:0;padding:20px 20px 12px;font-size:17px;color:#111b21}
.x1-lp-close{position:absolute;top:6px;right:8px;background:none;border:0;font-size:26px;line-height:1;
  color:#8696a0;cursor:pointer;padding:4px 8px;z-index:2}

/* Trecho da letra: altura de ~2 linhas e degrade sumindo no fim */
.x1-lp-teaser-box{position:relative;max-height:3.4em;overflow:hidden;margin:0 20px 16px;text-align:center}
.x1-lp-teaser-box::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2em;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 92%);pointer-events:none}
.x1-lp-teaser{font-style:italic;color:#3b4a54;line-height:1.7;margin:0;font-size:14px;white-space:pre-wrap}

/* Bloco verde da chamada — branco em negrito sobre verde escuro (contraste alto) */
.x1-lp-cta{background:#0b7a3f;color:#fff;font-weight:700;font-size:13.5px;line-height:1.6;
  padding:16px 20px;text-align:center;letter-spacing:.1px}

/* ---- Letra parcial no chat ---- */
.x1-msg.x1-lyrics{white-space:pre-wrap;line-height:1.7;font-style:italic;
  border-left:3px solid #25d366;padding-left:12px}
/* O fim da letra some num degrade branco, do tom do balao, e vem o aviso embaixo. */
.x1-lyrics .x1-lyrics-body{position:relative}
.x1-lyrics .x1-lyrics-body::after{content:"";position:absolute;left:0;right:0;bottom:0;
  height:3.4em;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 90%);
  pointer-events:none}
.x1-lyrics .x1-lyrics-note{margin:2px 0 0;white-space:normal;font-style:normal;font-size:13.5px;
  font-weight:700;color:#b3374f;text-align:center;line-height:1.4}

/* Botao de pular: discreto de proposito, nao pode competir com o Enviar. */
.x1-skip{display:block;width:100%;margin:8px 0 0;padding:11px 12px;border:1px solid #d6dde1;
  border-radius:10px;background:#f4f6f7;color:#5b6b73;font-size:14px;font-weight:600;
  cursor:pointer;line-height:1.3}
.x1-skip:hover{background:#eceff1;color:#3b4a54}

/* Placeholder de exemplos: uma frase por linha, sem virar bloco de texto no celular. */
.x1-textarea::placeholder{font-size:14px;line-height:1.85;color:#8696a0}
.x1-textarea{min-height:150px}


/* Botao tocado antes do JS carregar: da o retorno visual na hora, senao a pessoa acha
   que o toque nao pegou e toca de novo. */
.x1-option.is-escolhido{background:#0e8a5f;opacity:.85}
