/* ══════════════════════════════════════════════════════════════════════════
   FLUX PAY · LIVE SUPPORT CHAT WIDGET (ENTERPRISE REAL-TIME V5)
   Theme: Deep Forest Green (#1b3022) & Vibrant Emerald (#22c55e)
   Screen 1: Welcome & "Start Conversation" Launchpad (Pixel-perfect Image 1)
   Screen 2: True Real-Time Live Chat Stream (SSE / Millisecond Push)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --fx-chat-brand: #22c55e;
  --fx-chat-brand-dark: #16a34a;
  --fx-chat-forest: #1b3022;
  --fx-chat-forest-light: #264631;
  --fx-chat-forest-dark: #122217;
  --fx-chat-bg: #ffffff;
  --fx-chat-soft-bg: #f8faf6;
  --fx-chat-card-bg: #ffffff;
  --fx-chat-bot-bubble: #ffffff;
  --fx-chat-bot-border: #e2e8f0;
  --fx-chat-text-main: #0f172a;
  --fx-chat-text-muted: #64748b;
  --fx-chat-text-sub: #334155;
  --fx-chat-border: #e2ebd9;
  --fx-chat-shadow: 0 20px 50px -10px rgba(27, 48, 34, 0.22), 0 6px 18px rgba(27, 48, 34, 0.08);
  --fx-chat-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fx-chat-orange: #f97316;
  --fx-chat-orange-dark: #ea580c;
  --fx-chat-orange-soft: #fff7ed;
  --fx-chat-orange-border: #fed7aa;
}

/* ── Floating Launcher Button ── */
.gp-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, var(--fx-chat-forest-light) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.35), 0 4px 14px rgba(27, 48, 34, 0.28);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gp-chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.48), 0 6px 18px rgba(27, 48, 34, 0.35);
}

.gp-chat-launcher:active {
  transform: scale(0.95);
}

/* Pulse dot on launcher */
.gp-launcher-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fx-chat-orange);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
  animation: fxPulseDot 2s infinite ease-in-out;
}

@keyframes fxPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.gp-chat-launcher .gp-launcher-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gp-chat-launcher .gp-launcher-open-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.gp-chat-launcher .gp-launcher-close-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  pointer-events: none;
}

.gp-chat-launcher.is-active .gp-launcher-open-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
  pointer-events: none;
}

.gp-chat-launcher.is-active .gp-launcher-close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

/* ── Main Chat Floating Box ── */
.gp-chat-window {
  position: fixed;
  bottom: 98px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 610px;
  max-height: calc(100vh - 120px);
  background: var(--fx-chat-bg);
  border-radius: 24px;
  box-shadow: var(--fx-chat-shadow);
  border: 1px solid var(--fx-chat-border);
  z-index: 999998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--fx-chat-font);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-chat-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 1: WELCOME & CONVERSATION START SCREEN (Matching Screenshot 1)
   ══════════════════════════════════════════════════════════════════════════ */
.gp-screen-welcome {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
  overflow-y: auto;
}

.gp-welcome-top {
  padding: 26px 22px 18px 22px;
  background: linear-gradient(180deg, #fafbf9 0%, #ffffff 100%);
  border-bottom: 1px solid #f0f4ee;
}

.gp-welcome-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gp-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.gp-welcome-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--fx-chat-forest);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.gp-welcome-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-weight: 450;
}

.gp-welcome-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Active Chat Ongoing Alert Card (If User Has Started Chat) */
.gp-active-chat-alert {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  animation: gpBubbleFadeUp 0.22s ease both;
}

.gp-active-chat-alert-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gp-active-chat-title {
  font-size: 13px;
  font-weight: 750;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-active-chat-sub {
  font-size: 11.5px;
  color: #4b7a58;
}

.gp-btn-continue-chat {
  background: var(--fx-chat-brand-dark);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gp-btn-continue-chat:hover {
  filter: brightness(1.1);
  transform: translateX(2px);
}

/* Quick Topic Pills on Welcome */
.gp-welcome-topics-heading {
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #79917d;
  margin-top: 4px;
  margin-bottom: 2px;
}

.gp-topic-card {
  background: #ffffff;
  border: 1px solid #e7eee2;
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.gp-topic-card:hover {
  background: #fbfdfa;
  border-color: #cbd8c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.06);
}

.gp-topic-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-topic-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gp-topic-card:hover .gp-topic-icon {
  background: #dcfce7;
  border-color: #86efac;
  color: #047857;
  transform: scale(1.05);
}

.gp-topic-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-chat-forest);
  letter-spacing: -0.01em;
}

.gp-topic-sub-clean {
  font-size: 11px;
  color: #64748b;
  font-weight: 450;
  margin-top: 2px;
  display: block;
}

.gp-topic-card-arrow {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.gp-topic-card:hover .gp-topic-card-arrow {
  color: var(--fx-chat-brand-dark);
  transform: translateX(3px);
}

/* Status & "Start Conversation" Card (Image 1 replica) */
.gp-welcome-start-card {
  margin-top: auto;
  background: #fafbf9;
  border: 1px solid #e7eee2;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.gp-start-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
  letter-spacing: -0.01em;
}

.gp-start-card-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px 0;
  font-weight: 450;
}

/* Primary "Start Conversation" Action Button */
.gp-btn-start-conversation {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.15s ease;
}

.gp-btn-start-conversation:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.45);
}

.gp-btn-start-conversation svg {
  transition: transform 0.18s ease;
}

.gp-btn-start-conversation:hover svg {
  transform: translateX(3px);
}

.gp-start-card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-btn-resume-chat-link {
  background: none;
  border: none;
  color: var(--fx-chat-forest);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 2: REAL-TIME LIVE CHAT SCREEN
   ══════════════════════════════════════════════════════════════════════════ */
.gp-screen-chat {
  display: none;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
}

.gp-screen-chat.is-active {
  display: flex;
}

/* Topbar */
.gp-chat-topbar {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, var(--fx-chat-forest-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--fx-chat-orange);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.gp-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gp-back-to-welcome-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}

.gp-back-to-welcome-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gp-topbar-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.gp-topbar-avatar-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gp-topbar-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gp-topbar-title {
  font-size: 15.5px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gp-topbar-verified-check {
  display: inline-flex;
  color: var(--fx-chat-brand);
}

.gp-topbar-sub {
  font-size: 11.5px;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gp-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fx-chat-brand);
  box-shadow: 0 0 6px var(--fx-chat-brand);
}

.gp-online-dot.is-streaming {
  animation: fxStreamPulse 1.4s infinite ease-in-out;
}

@keyframes fxStreamPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-topbar-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.gp-topbar-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.gp-topbar-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.gp-topbar-btn-danger {
  color: #fca5a5 !important;
}

.gp-topbar-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ffffff !important;
}

/* ── Chat Reference ID Sub-bar ── */
.gp-chat-id-bar {
  background: #f1f6ed;
  border-bottom: 1px solid #dfe9da;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--fx-chat-forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
}

.gp-chat-id-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.gp-chat-id-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-visitor-pill svg {
  flex-shrink: 0;
}

.gp-chat-id-tag {
  background: #ffffff;
  border: 1px solid #c7d8bf;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 11px;
  color: var(--fx-chat-forest-dark);
  letter-spacing: 0.03em;
}

.gp-chat-id-copy-btn {
  background: var(--fx-chat-orange-soft);
  border: 1px solid var(--fx-chat-orange-border);
  color: var(--fx-chat-orange-dark);
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.gp-chat-id-copy-btn:hover {
  background: #ffedd5;
  color: #c2410c;
  transform: translateY(-0.5px);
}

.gp-resume-link-btn {
  background: none;
  border: none;
  color: var(--fx-chat-forest);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── Resume Conversation Modal Panel ── */
.gp-resume-panel {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 50;
  padding: 24px 20px;
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  animation: gpBubbleFadeUp 0.22s ease both;
}

.gp-resume-panel.is-active {
  display: flex;
}

.gp-resume-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gp-resume-panel-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--fx-chat-forest);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-resume-panel-desc {
  font-size: 13px;
  color: var(--fx-chat-text-muted);
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.gp-resume-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-resume-input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: monospace;
  color: var(--fx-chat-text-main);
  background: #ffffff;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gp-resume-input:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16) !important;
  outline: none !important;
}

.gp-resume-submit-btn {
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, var(--fx-chat-forest-light) 100%);
  color: #ffffff;
  border: 1px solid var(--fx-chat-brand);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gp-resume-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.gp-resume-cancel-btn {
  background: none;
  border: none;
  color: var(--fx-chat-text-muted);
  font-size: 12.5px;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
  text-decoration: underline;
}

/* ── Conversation Scroll Area ── */
.gp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  background: #fbfdf9;
  scroll-behavior: smooth;
}

.gp-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.gp-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.gp-chat-messages::-webkit-scrollbar-thumb {
  background: #d4e0ce;
  border-radius: 4px;
}

/* Date divider */
.gp-date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 6px 0;
  color: #8da290;
  font-size: 11px;
  font-weight: 550;
  text-align: center;
}

.gp-date-divider::before,
.gp-date-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4ecd9;
}

/* ── Interactive Bot Suggestion Chips ── */
.gp-bot-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.gp-bot-chip {
  background: #ffffff;
  border: 1px solid #d4e2d0;
  color: var(--fx-chat-forest);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(27, 48, 34, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gp-bot-chip svg {
  color: #16a34a;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.gp-bot-chip:hover {
  background: var(--fx-chat-orange-soft);
  border-color: var(--fx-chat-orange-border);
  color: var(--fx-chat-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.15);
}

.gp-bot-chip:hover svg {
  color: var(--fx-chat-orange-dark);
  transform: scale(1.1);
}

/* Bot Message Sequence */
.gp-bot-group {
  align-self: flex-start;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: gpBubbleFadeUp 0.22s ease both;
}

.gp-bot-bubble {
  background: var(--fx-chat-bot-bubble);
  color: var(--fx-chat-text-main);
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--fx-chat-bot-border);
  word-break: break-word;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.gp-bot-bubble a {
  color: var(--fx-chat-brand-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* Bot signature row */
.gp-bot-signature {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  margin-left: 2px;
}

.gp-bot-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fx-chat-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid var(--fx-chat-brand);
}

.gp-bot-avatar img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.gp-bot-label {
  font-size: 11px;
  color: var(--fx-chat-text-muted);
  font-weight: 600;
}

/* ── Name & Email Capture Drawer & Visitor Pill (Positioned outside messages flow) ── */
.gp-contact-drawer,
.gp-contact-capture-bar {
  background: #ffffff;
  border-bottom: 1.5px solid #d4e5ce;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(27, 48, 34, 0.06);
  animation: gpBubbleFadeUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  flex-shrink: 0;
  z-index: 10;
}

.gp-capture-head,
.gp-capture-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  gap: 6px;
}

.gp-capture-title,
.gp-capture-bar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fx-chat-forest);
  flex: 1;
}

.gp-capture-title svg,
.gp-capture-bar-title svg {
  color: var(--fx-chat-brand-dark);
}

.gp-drawer-dismiss-btn,
.gp-capture-dismiss-btn {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--fx-chat-text-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.gp-drawer-dismiss-btn:hover,
.gp-capture-dismiss-btn:hover {
  color: var(--fx-chat-text-main);
}

.gp-capture-sub,
.gp-capture-bar-sub {
  font-size: 11px;
  color: var(--fx-chat-text-muted);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.gp-capture-row,
.gp-capture-inputs-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.gp-capture-row .gp-capture-input,
.gp-capture-inputs-row .gp-capture-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d0e0cd;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--fx-chat-text-main);
  background: #fbfdf9;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gp-capture-row .gp-capture-input:focus,
.gp-capture-inputs-row .gp-capture-input:focus {
  border-color: var(--fx-chat-brand);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.gp-compact-visitor-pill,
.gp-visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-capture-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, var(--fx-chat-forest-light) 100%);
  color: #ffffff;
  border: 1px solid var(--fx-chat-brand);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.gp-capture-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ── Delete Confirmation Dialog Modal ── */
.gp-confirm-dialog {
  position: absolute;
  inset: 0;
  background: rgba(18, 34, 23, 0.6);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  animation: gpBubbleFadeUp 0.18s ease both;
}

.gp-confirm-dialog.is-active {
  display: flex;
}

.gp-confirm-dialog-content {
  background: #ffffff;
  border: 1px solid #dfe9da;
  border-radius: 18px;
  padding: 22px 20px;
  width: 100%;
  max-width: 310px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.gp-confirm-dialog-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.gp-confirm-dialog-content h4 {
  font-size: 15.5px;
  font-weight: 750;
  color: #142418;
  margin: 0 0 6px 0;
}

.gp-confirm-dialog-content p {
  font-size: 12px;
  color: #5e7261;
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.gp-confirm-dialog-actions {
  display: flex;
  gap: 8px;
}

.gp-btn-dialog-cancel {
  flex: 1;
  background: #f1f5ec;
  border: 1px solid #d4e2cf;
  color: #3d5241;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.gp-btn-dialog-confirm {
  flex: 1.2;
  background: #dc2626;
  border: 1px solid #b91c1c;
  color: #ffffff;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gp-btn-dialog-confirm:hover {
  background: #b91c1c;
}

/* ── User Message Bubble (With Real-Time Seen Receipts) ── */
.gp-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, #294c34 100%);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 82%;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(27, 48, 34, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: gpBubbleFadeUp 0.22s ease both;
}

.gp-msg-user-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  user-select: none;
}

/* Double Checkmark / Seen Status Icons */
.gp-receipt-icon {
  display: inline-flex;
  align-items: center;
}

.gp-receipt-icon.is-seen {
  color: #4ade80 !important;
  font-weight: bold;
}

.gp-receipt-icon.is-delivered {
  color: rgba(255, 255, 255, 0.85);
}

.gp-receipt-icon.is-sent {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Admin Support Reply Bubble ── */
.gp-msg-admin {
  align-self: flex-start;
  max-width: 84%;
  width: fit-content;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: gpBubbleFadeUp 0.22s ease both;
}

.gp-msg-admin-bubble {
  background: #ffffff;
  color: var(--fx-chat-text-main, #1e293b);
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  font-size: 13.5px;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.gp-msg-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #15803d;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Typing Indicator */
.gp-typing-indicator {
  display: none;
  align-self: flex-start;
  background: var(--fx-chat-bot-bubble);
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--fx-chat-bot-border);
}

.gp-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--fx-chat-brand-dark);
  border-radius: 50%;
  animation: gpTypingBounce 1.2s infinite ease-in-out both;
}
.gp-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.gp-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes gpTypingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── 3-Message Limit Enforcer Banner & Pill ── */
.gp-limit-status-pill {
  font-size: 11px;
  font-weight: 600;
  color: #557257;
  padding: 5px 16px 3px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

#gpAgentStatusBadge {
  background: var(--fx-chat-orange-soft);
  color: var(--fx-chat-orange-dark);
  border: 1px solid var(--fx-chat-orange-border);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gp-limit-warning-card {
  display: none;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 16px 6px 16px;
  font-size: 12px;
  line-height: 1.4;
  align-items: center;
  gap: 8px;
}

.gp-limit-warning-card.is-active {
  display: flex;
}

/* ── Bottom Composer Bar ── */
.gp-chat-composer-wrap {
  padding: 8px 14px 6px 14px;
  background: #ffffff;
  border-top: 1px solid #edf2e8;
  box-sizing: border-box;
  flex-shrink: 0;
}

.gp-chat-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 5px 8px 5px 14px;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gp-chat-composer:focus-within {
  border-color: #ea580c !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16) !important;
  outline: none !important;
}

.gp-chat-composer.is-disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.75;
  cursor: not-allowed;
}

.gp-composer-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--fx-chat-text-main);
  font-family: inherit;
  background: transparent;
  min-width: 0;
  padding: 4px 0;
}

.gp-composer-input:focus,
.gp-composer-input:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.gp-composer-input:disabled {
  cursor: not-allowed;
}

.gp-composer-input::placeholder {
  color: #94a3b8;
}

.gp-composer-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.gp-composer-action-btn:hover {
  color: var(--fx-chat-orange);
  transform: scale(1.1);
}

.gp-composer-send-btn {
  background: linear-gradient(135deg, #ff7a18 0%, var(--fx-chat-orange-dark) 100%);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
  opacity: 0.75;
}

.gp-composer-send-btn:hover,
.gp-composer-send-btn.is-active {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

/* ── Footer Branding ── */
.gp-chat-footer {
  padding: 5px 16px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #79917d;
  text-decoration: none;
  user-select: none;
  background: #ffffff;
  flex-shrink: 0;
}

.gp-chat-footer img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* ── Animations ── */
@keyframes gpBubbleFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN NATIVE APP EXPERIENCE (max-width: 640px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .gp-chat-launcher {
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
  }

  .gp-chat-window {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 1000000 !important;
  }

  .gp-chat-topbar, .gp-welcome-top {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
  }

  .gp-chat-messages, .gp-welcome-body {
    padding: 12px 14px;
  }

  .gp-chat-composer-wrap {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: 14px;
    padding-right: 14px;
  }

  .gp-msg-user { max-width: 88%; }
  .gp-msg-admin { max-width: 92%; }
}

/* ── Contact Drawer & Topbar Badges (Outside Messages Flow) ── */
.gp-contact-drawer {
  background: #f0fdf4;
  border-bottom: 1.5px solid #bbf7d0;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.05);
  animation: gpBubbleFadeUp 0.22s ease both;
  flex-shrink: 0;
  z-index: 10;
}
.gp-contact-drawer .gp-capture-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.gp-contact-drawer .gp-capture-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fx-chat-forest);
}
.gp-contact-drawer .gp-capture-sub {
  font-size: 11px;
  color: var(--fx-chat-text-muted);
  margin-bottom: 8px;
}
.gp-drawer-dismiss-btn {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--fx-chat-text-muted);
  cursor: pointer;
  margin-left: auto;
  padding: 0 4px;
}
.gp-drawer-dismiss-btn:hover {
  color: var(--fx-chat-text-main);
}
.gp-capture-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.gp-capture-row .gp-capture-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d0e0cd;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--fx-chat-text-main);
  background: #ffffff;
  outline: none;
}
.gp-capture-row .gp-capture-input:focus {
  border-color: var(--fx-chat-brand);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.gp-contact-drawer .gp-capture-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--fx-chat-forest) 0%, var(--fx-chat-forest-light) 100%);
  color: #ffffff;
  border: 1px solid var(--fx-chat-brand);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.gp-contact-drawer .gp-capture-submit-btn:hover {
  filter: brightness(1.1);
}
.gp-compact-visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gp-delete-chat-btn {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.18s ease, transform 0.18s ease;
}
.gp-delete-chat-btn:hover {
  color: #f87171 !important;
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN MESSAGE DESIGN — Clean, sleek, modern typography (no clutter)
   ══════════════════════════════════════════════════════════════════════════ */

.gp-msg-admin-bubble.gp-admin-rich {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 4px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
}

.gp-admin-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 2px 14px;
  background: transparent;
  border-bottom: none;
}

.gp-admin-agent-avatar {
  display: none;
}

.gp-admin-header-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.gp-admin-header-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gp-admin-header-name strong {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fx-chat-orange-dark);
}

.gp-admin-verified-tag {
  display: none !important;
}

.gp-admin-verified-tag svg {
  color: #16a34a;
}

.gp-admin-header-role {
  display: none;
}

.gp-admin-card-body {
  padding: 2px 14px 6px 14px;
}

.gp-admin-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px 6px 14px;
  background: transparent;
  border-top: none;
}

.gp-admin-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  user-select: none;
}

.gp-admin-secure-badge {
  display: none !important;
}

.gp-admin-rich .gp-msg-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
}

.gp-admin-rich .gp-msg-text strong {
  color: #0f172a;
  font-weight: 650;
}

.gp-admin-rich .gp-msg-text em {
  color: #475569;
  font-style: italic;
}

.gp-admin-rich .gp-msg-text a {
  color: #059669;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s ease;
}

.gp-admin-rich .gp-msg-text a:hover {
  color: #047857;
}

/* Styled list items in admin messages */
.gp-admin-list-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 0;
  font-size: 13px;
}

.gp-admin-bullet {
  color: #10b981;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  flex-shrink: 0;
}

.gp-admin-num {
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  padding: 1.5px 5px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Admin message with emoji accent */
.gp-admin-rich .gp-msg-text br + br {
  display: block;
  content: "";
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RATE CARD LAYOUT — Tailwind CSS Inspired High-Quality Fintech Rates Presentation
   ══════════════════════════════════════════════════════════════════════════ */
.gp-rate-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gp-rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  gap: 8px;
}

.gp-rate-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gp-rate-pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.gp-rate-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid #22c55e;
  animation: fxStreamPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.gp-rate-head-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.gp-rate-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  padding: 2.5px 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.gp-rate-card-intro {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
  line-height: 1.5;
  margin-top: -2px;
}

.gp-rate-card-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 2px 0;
}

.gp-rate-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-rate-card-row:hover {
  background: #f8fafc;
  border-color: #86efac;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
  transform: translateY(-1px);
}

/* Method Logo Box with soft background & border */
.gp-method-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px;
  overflow: hidden;
  box-sizing: border-box;
}

.gp-method-logo-box.gp-logo-jazzcash {
  background: #fff7ed;
  border-color: #ffedd5;
}

.gp-method-logo-box.gp-logo-easypaisa {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.gp-method-logo-box.gp-logo-raast {
  background: #f0fdfa;
  border-color: #ccfbf1;
}

.gp-method-logo-box.gp-logo-portal {
  background: #f0f9ff;
  border-color: #e0f2fe;
}

.gp-method-logo-box.gp-logo-api {
  background: #f5f3ff;
  border-color: #ede9fe;
}

.gp-method-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gp-method-svg {
  display: block;
  flex-shrink: 0;
}

.gp-rate-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.gp-rate-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gp-rate-detail strong {
  font-size: 13px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.gp-method-tag {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gp-method-tag.is-instant {
  background: #ecfdf5;
  color: #059669;
}

.gp-method-tag.is-bank {
  background: #f0f9ff;
  color: #0284c7;
}

.gp-method-tag.is-api {
  background: #f5f3ff;
  color: #6366f1;
}

.gp-rate-detail small {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* Rate / Fee Pills */
.gp-rate-pill {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border: 1px solid #86efac;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, monospace;
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.08);
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.gp-rate-pill.is-alt {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #0369a1;
  border-color: #bae6fd;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
}

/* Trust note callout card */
.gp-rate-card-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 2px;
}

.gp-note-shield {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 1.5px;
}

.gp-note-text {
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
}

.gp-note-text strong {
  color: #0f172a;
  font-weight: 700;
}

.gp-rate-card-footer-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #f7fdf5 100%);
  border: 1px dashed #86efac;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 11px;
  color: #166534;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.gp-topic-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.gp-topic-rates-sub {
  font-size: 11px;
  color: #5e7261;
  font-weight: 500;
  margin-top: 2px;
}

/* Premium Support Signature Row */
.gp-support-signature {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  margin-left: 2px;
}

.gp-support-avatar {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1b3022;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  border: 1.5px solid #22c55e;
}

.gp-support-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #ffffff;
}

.gp-support-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gp-support-meta .gp-bot-label {
  font-size: 11.5px;
  color: #1e3a24;
  font-weight: 750;
}

.gp-verified-mini-badge {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   IN-CHAT CONTACT DIALOG — Interactive user detail request card
   ══════════════════════════════════════════════════════════════════════════ */

/* Contact dialog bubble */
.gp-contact-dialog-bubble {
  background: #ffffff !important;
  border: 1px solid #d1fae5 !important;
  border-radius: 16px 16px 16px 4px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(16, 185, 129, 0.06) !important;
}

.gp-contact-dialog-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.gp-contact-dialog-emoji {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--fx-chat-orange-soft);
  border: 1px solid var(--fx-chat-orange-border);
  color: var(--fx-chat-orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.gp-contact-dialog-header strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1px;
}

.gp-contact-dialog-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 450;
}

.gp-contact-dialog-sub code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 4px;
  font-family: monospace;
  font-size: 10.5px;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.gp-contact-dialog-body {
  padding: 12px 14px;
}

.gp-contact-dialog-body p {
  font-size: 12.5px;
  color: #475569;
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.gp-contact-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gp-contact-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gp-contact-dialog-field label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gp-contact-dialog-field label svg {
  color: var(--fx-chat-orange-dark);
}

.gp-contact-dialog-input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #0f172a;
  background: #f8fafc;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gp-contact-dialog-input:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16) !important;
  background: #ffffff !important;
  outline: none !important;
}

.gp-contact-dialog-input::placeholder {
  color: #94a3b8;
}

.gp-contact-dialog-submit {
  background: linear-gradient(135deg, var(--fx-chat-orange) 0%, var(--fx-chat-orange-dark) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 3px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3) !important;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.gp-contact-dialog-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.42) !important;
}

.gp-contact-dialog-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gp-contact-dialog-submit svg {
  transition: transform 0.15s ease;
}

.gp-contact-dialog-submit:hover svg {
  transform: translateX(3px);
}

.gp-contact-dialog-footer {
  padding: 6px 14px 8px 14px;
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

/* ── Contact Success Confirmation Bubble ── */
.gp-contact-success-bubble {
  background: #ffffff !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 16px 16px 16px 4px !important;
  padding: 14px 16px !important;
  text-align: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.gp-contact-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.gp-contact-success-bubble strong {
  font-size: 13.5px;
  color: #065f46;
}

.gp-contact-success-sub {
  font-size: 11.5px;
  color: #475569;
  margin-top: 3px;
  line-height: 1.4;
}

.gp-contact-success-sub strong {
  font-size: 11.5px;
  font-family: monospace;
}

/* ── Admin message meta timestamp styling ── */
.gp-admin-rich .gp-msg-admin-meta {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(34, 197, 94, 0.12);
  font-size: 10.5px;
  color: #6b8f72;
}

/* Mobile responsive adjustments for in-chat dialog */
@media (max-width: 640px) {
  .gp-contact-dialog-bubble {
    border-radius: 14px 14px 14px 4px !important;
  }
  .gp-contact-dialog-header {
    padding: 12px 14px 8px 14px;
  }
  .gp-contact-dialog-body {
    padding: 12px 14px;
  }
  .gp-contact-dialog-footer {
    padding: 6px 14px 10px 14px;
  }
  .gp-contact-dialog-emoji {
    font-size: 24px;
  }
}

/* Input field focus glow reset — prevents browser user-agent double glow bug */
.gp-chat-window input,
.gp-chat-window input:focus,
.gp-chat-window input:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}
