/* WhatsApp Chatbot Theme & Layout */
:root {
  --wa-bg-light: #efeae2;
  --wa-bg-dark: #0c1317;
  --wa-header-light: #008069;
  --wa-header-dark: #202c33;
  --wa-bot-bubble-light: #ffffff;
  --wa-bot-bubble-dark: #202c33;
  --wa-bot-text-light: #111b21;
  --wa-bot-text-dark: #e9edef;
  --wa-user-bubble: #1a2b49; /* Dark Navy matching user print */
  --wa-user-bubble-green: #005c4b; /* WhatsApp Green option */
  --wa-user-text: #ffffff;
  --wa-accent: #00a884;
  --wa-btn-primary: #1a2b49;
  --wa-btn-hover: #121e33;
  --wa-input-bg: #ffffff;
  --wa-border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*, body, input, button, select, textarea {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--wa-bg-light);
  color: var(--wa-bot-text-light);
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* WhatsApp Doodle SVG Pattern */
.theme-whatsapp-light {
  background-color: #e5ddd5;
  background-image: radial-gradient(#d6cdc4 1px, transparent 1px), radial-gradient(#d6cdc4 1px, #efeae2 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.theme-whatsapp-dark {
  background-color: #0c1317;
  color: var(--wa-bot-text-dark);
  --wa-bot-bubble-light: #202c33;
  --wa-bot-text-light: #e9edef;
  --wa-input-bg: #202c33;
}

/* Chat Main Container - Expanded Window without Full-Screen Distortion */
.chat-wrapper {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #efeae2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-image: 
    linear-gradient(rgba(239, 234, 226, 0.92), rgba(239, 234, 226, 0.92)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 15c-15 0-25 8-25 20 0 7 4 13 10 16l-3 9 10-5c2 1 5 1 8 1 15 0 25-8 25-20s-10-21-25-21zm-35 60c0-10 8-18 18-18s18 8 18 18-8 18-18 18-18-8-18-18zm55 5c-8 0-14 6-14 14s6 14 14 14 14-6 14-14-6-14-14-14zm-40-50h10v10H40V30zm60 20h8v8h-8v-8z' fill='%23606770' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@media (min-width: 768px) {
  .chat-wrapper {
    width: 95%;
    max-width: 1180px;
    height: 94vh;
    height: 94dvh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  }
}

/* Header */
.chat-header {
  background: #008069;
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  z-index: 20;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.online-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background-color: #25d366;
  border: 2px solid #008069;
  border-radius: 50%;
}

.header-info h1 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.status-text {
  font-size: 0.8rem;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 4px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #25d366, #128c7e);
  transition: width 0.4s ease;
}

/* Messages Area */
.chat-messages {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-date-divider {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px 0;
}

.chat-date-divider span {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #54656f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

/* Bot Message Row (Avatar on Left like the print) */
.message-row-bot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(520px, 85%);
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bot-mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border: 2px solid #ffffff;
}

/* Fallback patterned avatar if no image (like the blue circle pattern in screenshot) */
.bot-mini-avatar-pattern {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 5px rgba(29, 78, 216, 0.25);
  border: 2px solid #ffffff;
}

.bot-bubble {
  background: #ffffff;
  color: #111b21;
  padding: 12px 18px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  font-size: 0.96rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
  word-break: break-word;
  width: fit-content;
  max-width: 480px;
}

/* User Message Row (Right aligned like print) */
.message-row-user {
  display: flex;
  justify-content: flex-end;
  animation: slideFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.user-bubble {
  background: var(--wa-user-bubble);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 14px;
  border-top-right-radius: 4px;
  max-width: min(480px, 80%);
  font-size: 0.96rem;
  line-height: 1.45;
  box-shadow: 0 2px 4px rgba(26, 43, 73, 0.2);
  word-break: break-word;
  display: flex;
  flex-direction: column;
  width: fit-content;
}

.user-bubble .msg-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.checkmarks {
  color: #53bdeb; /* WhatsApp blue ticks */
  font-size: 0.75rem;
}

/* Typing Indicator */
.typing-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.typing-bubble {
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.typing-dot {
  width: 7px;
  height: 7px;
  background-color: #8696a0;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Options Container (Multiple Choice Chips - Fallback/Legacy) */
.options-container {
  padding: 10px 16px 4px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  z-index: 10;
}

.option-btn {
  background: #ffffff;
  color: #111b21;
  border: 1px solid #d1d7db;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.option-btn:hover, .option-btn:active {
  background: var(--wa-user-bubble);
  color: #ffffff;
  border-color: var(--wa-user-bubble);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(26, 43, 73, 0.2);
}

/* ========================================================
   MULTIPLE CHOICE / POLL CARD (WhatsApp Interactive Poll on Left)
   ======================================================== */

.poll-message-row {
  margin-top: -2px;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: min(520px, 92%);
}

.bot-mini-avatar-spacer {
  width: 38px;
  height: 1px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .bot-mini-avatar-spacer {
    display: none;
  }
}

.poll-card {
  background: #ffffff;
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 16px 18px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}

.poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.poll-header-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #008069;
  letter-spacing: -0.2px;
}

.poll-header-icon {
  stroke: #008069;
}

.poll-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}

/* Options List */
.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single Option Row (Left Text + Right Selector Square) */
.poll-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
}

.poll-option-item:hover:not(.is-answered):not(.is-selected) {
  border-color: #00a884;
  background-color: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.poll-option-item:focus-visible {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.2);
}

/* Selected state (takes precedence on hover, focus, active) */
.poll-option-item.is-selected,
.poll-option-item.is-selected:hover {
  border-color: #00a884 !important;
  background-color: rgba(0, 168, 132, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.18) !important;
  transform: translateY(-1px);
}

/* Left part of option: Letter badge + Label */
.poll-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.poll-option-letter {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.poll-option-item:hover:not(.is-answered):not(.is-selected) .poll-option-letter {
  background-color: #e2e8f0;
  color: #334155;
}

.poll-option-item.is-selected .poll-option-letter,
.poll-option-item.is-selected:hover .poll-option-letter {
  background-color: #00a884 !important;
  color: #ffffff !important;
}

.poll-option-label {
  font-size: 0.94rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.42;
  text-align: left;
  word-break: break-word;
  transition: color 0.15s ease;
}

.poll-option-item.is-selected .poll-option-label,
.poll-option-item.is-selected:hover .poll-option-label {
  font-weight: 600;
  color: #0f172a;
}

/* Selector Square (tipo um quadrado para selecionar) */
.poll-selector-square {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.poll-check-icon {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover on UNSELECTED item changes square border */
.poll-option-item:hover:not(.is-answered):not(.is-selected) .poll-selector-square {
  border-color: #00a884;
  background-color: #f0fdf9;
}

/* Selected square fills with WhatsApp green and shows checkmark (even when hovered) */
.poll-option-item.is-selected .poll-selector-square,
.poll-option-item.is-selected:hover .poll-selector-square {
  border-color: #00a884 !important;
  background-color: #00a884 !important;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.22) !important;
}

.poll-option-item.is-selected .poll-check-icon,
.poll-option-item.is-selected:hover .poll-check-icon {
  opacity: 1 !important;
  stroke-dashoffset: 0 !important;
  stroke: #ffffff !important;
  transform: scale(1) !important;
}

/* Footer / Confirmation Button (botão bonito pra clicar e confirmar) */
.poll-footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.poll-confirm-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.poll-confirm-btn .poll-btn-icon {
  transition: transform 0.2s ease;
}

.poll-confirm-btn.is-ready {
  background: linear-gradient(135deg, #00a884, #008069);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
  animation: pulseGlow 2s infinite ease-in-out;
}

.poll-confirm-btn.is-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 168, 132, 0.45);
  background: linear-gradient(135deg, #02b68f, #008f75);
}

.poll-confirm-btn.is-ready:hover .poll-btn-icon {
  transform: translateX(3px);
}

.poll-confirm-btn.is-ready:active {
  transform: scale(0.98);
}

.poll-confirm-btn.is-confirmed {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  cursor: default;
  box-shadow: none;
  animation: none;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 168, 132, 0.55);
  }
}

/* Locked / Answered Poll */
.poll-card.is-answered {
  opacity: 0.95;
}

.poll-card.is-answered .poll-option-item {
  cursor: default;
  pointer-events: none;
}

.poll-card.is-answered .poll-option-item:not(.is-selected) {
  opacity: 0.45;
  background-color: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: none;
}

.poll-card.is-answered .poll-option-item.is-selected {
  border-color: #00a884;
  background-color: rgba(0, 168, 132, 0.08);
}

/* ========================================================
   DARK THEME POLL ADAPTATIONS
   ======================================================== */

.theme-whatsapp-dark .poll-card {
  background-color: #202c33;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-whatsapp-dark .poll-header {
  border-bottom-color: #2a3942;
}

.theme-whatsapp-dark .poll-header-info {
  color: #00a884;
}

.theme-whatsapp-dark .poll-header-icon {
  stroke: #00a884;
}

.theme-whatsapp-dark .poll-badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: #8696a0;
}

.theme-whatsapp-dark .poll-option-item {
  background-color: #111b21;
  border-color: #2a3942;
}

.theme-whatsapp-dark .poll-option-item:hover:not(.is-answered):not(.is-selected) {
  background-color: #182229;
  border-color: #00a884;
}

.theme-whatsapp-dark .poll-option-item.is-selected,
.theme-whatsapp-dark .poll-option-item.is-selected:hover {
  background-color: rgba(0, 168, 132, 0.18) !important;
  border-color: #00a884 !important;
}

.theme-whatsapp-dark .poll-option-label {
  color: #e9edef;
}

.theme-whatsapp-dark .poll-option-item.is-selected .poll-option-label,
.theme-whatsapp-dark .poll-option-item.is-selected:hover .poll-option-label {
  color: #ffffff !important;
}

.theme-whatsapp-dark .poll-option-letter {
  background-color: #202c33;
  color: #8696a0;
}

.theme-whatsapp-dark .poll-option-item.is-selected .poll-option-letter,
.theme-whatsapp-dark .poll-option-item.is-selected:hover .poll-option-letter {
  background-color: #00a884 !important;
  color: #ffffff !important;
}

.theme-whatsapp-dark .poll-selector-square {
  background-color: #111b21;
  border-color: #3b4a54;
}

.theme-whatsapp-dark .poll-option-item.is-selected .poll-selector-square,
.theme-whatsapp-dark .poll-option-item.is-selected:hover .poll-selector-square {
  background-color: #00a884 !important;
  border-color: #00a884 !important;
}

.theme-whatsapp-dark .poll-footer {
  border-top-color: #2a3942;
}

.theme-whatsapp-dark .poll-confirm-btn {
  background-color: #111b21;
  color: #8696a0;
}

.theme-whatsapp-dark .poll-confirm-btn.is-ready {
  background: linear-gradient(135deg, #00a884, #008069);
  color: #ffffff;
}

.theme-whatsapp-dark .poll-confirm-btn.is-confirmed {
  background-color: rgba(0, 168, 132, 0.15);
  color: #25d366;
  border-color: rgba(0, 168, 132, 0.3);
}

.theme-whatsapp-dark .poll-card.is-answered .poll-option-item:not(.is-selected) {
  background-color: #111b21;
  border-color: #202c33;
  opacity: 0.35;
}

/* Input Footer */
.chat-input-area {
  background: #f0f2f5;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  z-index: 20;
}

.chat-input-area form {
  width: 100%;
}

.input-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-inner input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 0.98rem;
  color: #111b21;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-inner input:focus {
  border-color: #008069;
  box-shadow: 0 0 0 3px rgba(0, 128, 105, 0.15);
}

.btn-send {
  background: var(--wa-user-bubble);
  color: #ffffff;
  border: none;
  padding: 11px 20px;
  border-radius: 22px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-send:hover {
  background: #121e33;
}

.btn-send:active {
  transform: scale(0.97);
}

/* Final Completion Card */
.completion-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin: 10px 0;
  animation: slideFadeIn 0.4s ease;
}

.completion-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcf8c6;
  color: #008069;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

.completion-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111b21;
  margin-bottom: 8px;
}

.completion-card p {
  font-size: 0.95rem;
  color: #54656f;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.btn-whatsapp-cta:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.hidden {
  display: none !important;
}

/* Keyframes */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Custom Chat Alert Modal */
.chat-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}
.chat-alert-backdrop.hidden {
  display: none !important;
}
.chat-alert-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: slideFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', sans-serif;
}
.theme-whatsapp-dark .chat-alert-box {
  background: #1f2c34;
  color: #e9edef;
  border-color: #2a3942;
}
.chat-alert-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.chat-alert-msg {
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 20px;
  font-weight: 600;
}
.theme-whatsapp-dark .chat-alert-msg {
  color: #d1d7db;
}
.chat-alert-btn {
  width: 100%;
  padding: 11px 16px;
  background: #00a884;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.chat-alert-btn:hover {
  background: #008f6f;
  transform: translateY(-1px);
}
.chat-alert-btn:active {
  transform: scale(0.98);
}
