/* ============================================================
   SMARTER WEB AI — Chatbot Widget
   Scoped under .swai-chatbot to prevent conflicts with site styles.
   Z-index 9999 — above all demo modals (which use ~1000).
   ============================================================ */

/* --- Keyframes --- */
@keyframes swai-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

@keyframes swai-badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes swai-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes swai-slide-down {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.96); }
}

@keyframes swai-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes swai-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes swai-fab-entrance {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes swai-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FAB — Floating Action Button
   ============================================================ */
.swai-chatbot__fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.45);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: swai-fab-entrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-chatbot__fab:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px) scale(1.04);
}

.swai-chatbot__fab:active {
  transform: translateY(0) scale(0.97);
}

.swai-chatbot__fab--pulse {
  animation: swai-fab-entrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) both,
             swai-pulse 2.2s ease-in-out 1.5s 3;
}

.swai-chatbot__fab svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}

/* Notification Badge */
.swai-chatbot__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: swai-badge-pulse 1.8s ease-in-out infinite;
}

.swai-chatbot__badge--hidden {
  display: none;
}

/* ============================================================
   CHAT WINDOW
   ============================================================ */
.swai-chatbot__window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 9999;
  width: 380px;
  height: 520px;
  background: var(--color-surface, #ffffff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  border: 1px solid var(--color-divider, #d6dce6);
}

.swai-chatbot__window--open {
  animation: swai-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-chatbot__window--closing {
  animation: swai-slide-down 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Respect dark mode */
[data-theme="dark"] .swai-chatbot__window {
  background: var(--color-surface, #111827);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.4);
  border-color: var(--color-border, #334155);
}

/* ============================================================
   HEADER
   ============================================================ */
.swai-chatbot__header {
  background: #0f172a;
  color: #f8fafc;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

[data-theme="dark"] .swai-chatbot__header {
  background: #0b0f1a;
  border-bottom: 1px solid #1e293b;
}

.swai-chatbot__header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.swai-chatbot__header-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.swai-chatbot__header-avatar svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.swai-chatbot__header-info {
  flex: 1;
  min-width: 0;
}

.swai-chatbot__header-name {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.swai-chatbot__header-status {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 1px;
}

.swai-chatbot__header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.swai-chatbot__header-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}

.swai-chatbot__header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.swai-chatbot__header-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   MESSAGE AREA
   ============================================================ */
.swai-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  background: var(--color-bg, #f8f9fb);
}

[data-theme="dark"] .swai-chatbot__messages {
  background: var(--color-bg, #0b0f1a);
}

/* Scrollbar */
.swai-chatbot__messages::-webkit-scrollbar {
  width: 4px;
}
.swai-chatbot__messages::-webkit-scrollbar-track {
  background: transparent;
}
.swai-chatbot__messages::-webkit-scrollbar-thumb {
  background: var(--color-divider, #d6dce6);
  border-radius: 4px;
}

/* ============================================================
   MESSAGE BUBBLES
   ============================================================ */
.swai-msg {
  display: flex;
  flex-direction: column;
  animation: swai-msg-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  max-width: 88%;
}

/* Bot messages — left */
.swai-msg--bot {
  align-self: flex-start;
}

.swai-msg--bot .swai-msg__bubble {
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #0f172a);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .swai-msg--bot .swai-msg__bubble {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
  box-shadow: none;
}

/* User messages — right */
.swai-msg--user {
  align-self: flex-end;
}

.swai-msg--user .swai-msg__bubble {
  background: #2563eb;
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Timestamp */
.swai-msg__time {
  font-size: 0.625rem;
  color: var(--color-text-faint, #94a3b8);
  margin-top: 4px;
  padding: 0 4px;
}

.swai-msg--user .swai-msg__time {
  text-align: right;
}

/* ============================================================
   TYPING INDICATOR
   ============================================================ */
.swai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 16px 16px 16px 4px;
  width: fit-content;
  align-self: flex-start;
  animation: swai-msg-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .swai-typing {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
  box-shadow: none;
}

.swai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0.4;
  animation: swai-typing-bounce 1.2s ease-in-out infinite;
}
.swai-typing span:nth-child(2) { animation-delay: 0.15s; }
.swai-typing span:nth-child(3) { animation-delay: 0.30s; }

/* ============================================================
   CHOICE BUTTONS
   ============================================================ */
.swai-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-choice-btn {
  width: 100%;
  padding: 9px 14px;
  background: var(--color-surface, #ffffff);
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  color: #2563eb;
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
}

.swai-choice-btn:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.swai-choice-btn:active {
  transform: translateY(0);
}

.swai-choice-btn:disabled {
  pointer-events: none;
  opacity: 0.4;
}

[data-theme="dark"] .swai-choice-btn {
  background: var(--color-surface-2, #1e293b);
  border-color: #60a5fa;
  color: #60a5fa;
}

[data-theme="dark"] .swai-choice-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ============================================================
   QUICK-REPLY CHIPS
   ============================================================ */
.swai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: flex-start;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-chip {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 999px;
  color: var(--color-text-muted, #475569);
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}

.swai-chip:hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #2563eb;
}

[data-theme="dark"] .swai-chip {
  border-color: var(--color-border, #334155);
  color: var(--color-text-muted, #94a3b8);
}

[data-theme="dark"] .swai-chip:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.swai-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 180ms ease;
}

.swai-card:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

[data-theme="dark"] .swai-card {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
}

[data-theme="dark"] .swai-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.swai-card__icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.swai-card__body {
  flex: 1;
  min-width: 0;
}

.swai-card__title {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 3px;
  line-height: 1.3;
}

.swai-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted, #475569);
  line-height: 1.45;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.swai-pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-pricing-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.swai-pricing-card--featured {
  border-color: #2563eb;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.02) 100%);
}

[data-theme="dark"] .swai-pricing-card {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
}

[data-theme="dark"] .swai-pricing-card--featured {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
}

.swai-pricing-card__badge {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.swai-pricing-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 5px;
}

.swai-pricing-card__name {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
}

.swai-pricing-card__price {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
}

[data-theme="dark"] .swai-pricing-card__price {
  color: #60a5fa;
}

.swai-pricing-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted, #475569);
  line-height: 1.45;
}

/* ============================================================
   FEATURE LIST (GHL)
   ============================================================ */
.swai-feature-list {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  padding: 12px 14px;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .swai-feature-list {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
}

.swai-feature-list__title {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-divider, #d6dce6);
}

[data-theme="dark"] .swai-feature-list__title {
  border-bottom-color: var(--color-border, #334155);
}

.swai-feature-list__items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.swai-feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--color-text-muted, #475569);
  line-height: 1.4;
}

.swai-feature-list__item::before {
  content: '✓';
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0px;
  font-size: 0.75rem;
}

[data-theme="dark"] .swai-feature-list__item::before {
  color: #60a5fa;
}

/* ============================================================
   HELPFUL FEEDBACK
   ============================================================ */
.swai-helpful {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.swai-helpful__label {
  font-size: 0.6875rem;
  color: var(--color-text-faint, #94a3b8);
}

.swai-helpful__btn {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 6px;
  color: var(--color-text-muted, #475569);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.swai-helpful__btn:hover {
  background: var(--color-surface-2, #f1f3f7);
  border-color: var(--color-border, #c5cdd9);
}

.swai-helpful__btn--active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #2563eb;
}

[data-theme="dark"] .swai-helpful__btn--active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #60a5fa;
  color: #60a5fa;
}

/* ============================================================
   INLINE FORM
   ============================================================ */
.swai-form {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  padding: 14px;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .swai-form {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
}

.swai-form__title {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 10px;
}

.swai-form__field {
  margin-bottom: 8px;
}

.swai-form__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-muted, #475569);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.swai-form__input,
.swai-form__textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--color-bg, #f8f9fb);
  border: 1.5px solid var(--color-divider, #d6dce6);
  border-radius: 7px;
  color: var(--color-text, #0f172a);
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
}

.swai-form__input::placeholder,
.swai-form__textarea::placeholder {
  color: var(--color-text-faint, #94a3b8);
}

.swai-form__input:focus,
.swai-form__textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .swai-form__input,
[data-theme="dark"] .swai-form__textarea {
  background: var(--color-bg, #0b0f1a);
  border-color: var(--color-border, #334155);
  color: var(--color-text, #e2e8f0);
}

[data-theme="dark"] .swai-form__input:focus,
[data-theme="dark"] .swai-form__textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.swai-form__textarea {
  resize: vertical;
  min-height: 60px;
}

.swai-form__submit {
  width: 100%;
  padding: 10px 14px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.swai-form__submit:hover {
  background: #1d4ed8;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.swai-form__submit:disabled {
  opacity: 0.7;
  pointer-events: none;
}

.swai-form__submit-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: swai-spin 0.7s linear infinite;
}

/* ============================================================
   CONFIRMATION / SUCCESS
   ============================================================ */
.swai-confirm {
  background: var(--color-success-light, #dcfce7);
  border: 1px solid var(--color-success, #16a34a);
  border-radius: 12px;
  padding: 14px;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .swai-confirm {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.swai-confirm__icon {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.swai-confirm__title {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
  margin-bottom: 4px;
}

.swai-confirm__text {
  font-size: 0.75rem;
  color: var(--color-text-muted, #475569);
  line-height: 1.5;
}

/* ============================================================
   INPUT AREA
   ============================================================ */
.swai-chatbot__input-area {
  padding: 12px;
  border-top: 1px solid var(--color-divider, #d6dce6);
  background: var(--color-surface, #ffffff);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

[data-theme="dark"] .swai-chatbot__input-area {
  background: var(--color-surface, #111827);
  border-top-color: var(--color-border, #334155);
}

.swai-chatbot__input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  background: var(--color-bg, #f8f9fb);
  border: 1.5px solid var(--color-divider, #d6dce6);
  border-radius: 22px;
  color: var(--color-text, #0f172a);
  font-family: 'Satoshi', 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
}

.swai-chatbot__input::placeholder {
  color: var(--color-text-faint, #94a3b8);
}

.swai-chatbot__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .swai-chatbot__input {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
  color: var(--color-text, #e2e8f0);
}

[data-theme="dark"] .swai-chatbot__input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.swai-chatbot__send-btn {
  width: 36px;
  height: 36px;
  background: #2563eb;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.swai-chatbot__send-btn:hover {
  background: #1d4ed8;
  transform: scale(1.08);
}

.swai-chatbot__send-btn:active {
  transform: scale(0.95);
}

.swai-chatbot__send-btn:disabled {
  background: var(--color-divider, #d6dce6);
  cursor: default;
  transform: none;
}

.swai-chatbot__send-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Input locked state */
.swai-chatbot__input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   DETAIL LIST (service details)
   ============================================================ */
.swai-detail-list {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  overflow: hidden;
  align-self: flex-start;
  width: 100%;
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .swai-detail-list {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
}

.swai-detail-list__header {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .swai-detail-list__header {
  background: #0b0f1a;
}

.swai-detail-list__header-icon {
  font-size: 1.1rem;
}

.swai-detail-list__header-title {
  font-family: 'Clash Display', 'Arial Black', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
}

.swai-detail-list__items {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swai-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted, #475569);
  line-height: 1.45;
}

.swai-detail-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 4px;
}

[data-theme="dark"] .swai-detail-item__dot {
  background: #60a5fa;
}

/* ============================================================
   RESPONSIVE — MOBILE FULL-SCREEN
   ============================================================ */
@media (max-width: 480px) {
  .swai-chatbot__window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    transform-origin: center bottom;
  }

  .swai-chatbot__window--open {
    animation: swai-slide-up 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .swai-chatbot__fab {
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .swai-chatbot__fab,
  .swai-chatbot__fab--pulse,
  .swai-chatbot__window--open,
  .swai-chatbot__window--closing,
  .swai-msg,
  .swai-choices,
  .swai-chips,
  .swai-cards,
  .swai-pricing-cards,
  .swai-feature-list,
  .swai-helpful,
  .swai-form,
  .swai-confirm,
  .swai-detail-list {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .swai-chatbot__badge {
    animation: none !important;
  }

  .swai-typing span {
    animation: none !important;
    opacity: 0.4;
  }
}

/* ============================================================
   PROACTIVE MESSAGE TOOLTIP
   ============================================================ */
.swai-proactive {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9998;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-divider, #d6dce6);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  animation: swai-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  cursor: pointer;
}

[data-theme="dark"] .swai-proactive {
  background: var(--color-surface-2, #1e293b);
  border-color: var(--color-border, #334155);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.swai-proactive__text {
  font-size: 0.8125rem;
  color: var(--color-text, #0f172a);
  line-height: 1.45;
}

.swai-proactive__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-faint, #94a3b8);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 2px 4px;
}

.swai-proactive__close:hover {
  color: var(--color-text-muted, #475569);
}

@media (max-width: 480px) {
  .swai-proactive {
    bottom: 84px;
    right: 16px;
    max-width: calc(100vw - 80px);
  }
}
