:root {
  --bg: #fbf5f2;
  --card: rgba(255, 255, 255, 0.86);
  --rose: #e9c2bd;
  --rose-dark: #b9827d;
  --gold: #c7a45c;
  --text: #2f2f2f;
  --muted: #77716f;
  --bot-bubble: #fffaf7;
  --user-bubble: #efd1cc;
  --border: rgba(183, 142, 137, 0.28);
  --shadow: 0 22px 60px rgba(93, 63, 59, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(233, 194, 189, 0.45), transparent 34%),
    linear-gradient(135deg, #fff 0%, var(--bg) 62%, #f8ebe7 100%);
}

.page-shell {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 28px;
  align-items: center;
  min-height: 100vh;
}

.brand-card,
.chat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-card {
  padding: 34px;
  text-align: center;
}

.brand-logo {
  width: min(520px, 100%);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(48, 48, 48, 0.12);
}

.brand-text h1 {
  margin: 26px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  color: #363636;
}

.brand-text p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.4px;
}

.chat-card {
  height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--rose), #f8e2df);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.chat-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.chat-header span {
  color: #5c5553;
  font-size: 14px;
}

.status-dot {
  width: 13px;
  height: 13px;
  background: #42b36d;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(66, 179, 109, 0.18);
}

.chat-window {
  flex: 1;
  padding: 20px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 20px;
  line-height: 1.55;
  white-space: pre-line;
  font-size: 15.5px;
}

.message.bot {
  align-self: flex-start;
  background: var(--bot-bubble);
  border: 1px solid rgba(199, 164, 92, 0.24);
}

.message.user {
  align-self: flex-end;
  background: var(--user-bubble);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 16px 4px;
  border-top: 1px solid rgba(183, 142, 137, 0.18);
}

.quick-actions button,
.whatsapp-link {
  border: 1px solid rgba(199, 164, 92, 0.42);
  background: #fff9f6;
  color: #3a3534;
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-actions button:hover,
.whatsapp-link:hover {
  transform: translateY(-1px);
  background: #f4d6d2;
}

.whatsapp-link {
  width: 100%;
  background: linear-gradient(135deg, #f4d1cd, #fff8f1);
  font-weight: 700;
}

.text-form {
  display: flex;
  gap: 10px;
  padding: 14px 16px 18px;
}

.text-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 15px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.text-form input:focus {
  border-color: var(--rose-dark);
}

.text-form button {
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--rose-dark);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.text-form button:hover { opacity: 0.92; }

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .brand-card {
    padding: 18px;
  }

  .brand-logo {
    width: min(360px, 100%);
  }

  .chat-card {
    height: 76vh;
  }
}
