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

body {
  background: #0b141a;
}

.x1-chat-shell {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #0b141a;
  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;
  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.webp?v=20260707g");
  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;
  gap: 9px;
  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-download-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

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

.x1-phone-submit span,
.x1-phone-submit small {
  display: block;
}

.x1-phone-submit small {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}

.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;
  }
}
