* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #0a0a0a,
    #000000 70%
  );
  color: #ffffff;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; /* 👈 CHAVE */
  padding: 32px 16px;
  background: radial-gradient(circle at top, #0a0a0a, #000 70%);
}
.banner-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.banner-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}


.chat-area {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;            /* 👈 CENTRALIZA */
  width: 100%;
  overflow-y: auto;
  padding: 24px 0;
  scroll-behavior: smooth;
}


#messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* BOT MESSAGE */
.bot-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.bot {
  background: linear-gradient(
    135deg,
    rgba(246,255,0,0.95),
    rgba(246,255,0,0.85)
  );
  color: #0b0b0b; /* texto escuro para contraste */
  padding: 14px 18px;
  border-radius: 18px;
  max-width: 720px;
  line-height: 1.5;

  box-shadow:
    0 10px 30px rgba(246,255,0,0.25),
    inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* USER MESSAGE */
.user {
  background: #ffffff;
  color: #0a0a0a;
  padding: 14px 18px;
  border-radius: 18px;
  max-width: 360px;
  margin-left: auto;

  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* TYPING */
.typing {
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}

/* INPUTS */
.input-wrapper {
  display: flex;
  align-items: center;
  margin-top: 16px;
  transition: opacity .25s ease, transform .25s ease;
}

.input-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  display: none;
}

.input-visible {
  opacity: 1;
  transform: translateY(0);
}

.input-wrapper input {
  width: 360px;
  padding: 14px 52px 14px 18px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,0.08);
  color: white;
}

.input-wrapper button {
  margin-left: -44px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #F6FF00, #555800);
  color: white;
  font-size: 18px;
}

/* PHONE */
.phone {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 6px 10px;
}

.country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.cta-container {
  margin-top: 16px;
  display: flex;
  justify-content: center; /* 👈 CENTRALIZA */
}

.cta-button {
  background: linear-gradient(135deg, #2f6fed, #4f9cff);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(79,156,255,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 220px;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(79,156,255,0.7);
}

/* ============================= */
/* BOTÕES DE OPÇÕES (PREMIUM) */
/* ============================= */

.options {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  max-width: 520px;
}

.options button {
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: black;

  background: linear-gradient(
    135deg,
    rgba(36, 36, 36, 0.85),
    rgba(36, 36, 36, 0.85),
  );

  box-shadow: 0 8px 20px rgba(47,111,237,0.35);
  transition: all .25s ease;
}

/* Hover desktop */
.options button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.55);
}

/* Clique (mobile feedback) */
.options button:active {
  transform: scale(0.96);
}

/* ============================= */
/* MOBILE AJUSTE */
/* ============================= */

@media (max-width: 480px) {
  .options {
    grid-template-columns: repeat(2, 1fr);
  }

  .options button {
    font-size: 13px;
    padding: 14px 12px;
  }
}

.chat-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.chat-area {
  width: 100%;
  max-width: 720px; /* 👈 largura do chat */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#messages {
  width: 100%;
}

