/* Floating Support Button */
.support-fab { 
  position: fixed; 
  bottom: 24px; 
  right: 24px; 
  width: 56px; 
  height: 56px; 
  border-radius: 50%; 
  background: var(--primary); 
  color: white; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 4px 12px rgba(37,99,235,.4); 
  cursor: pointer; 
  z-index: 99999;
  transition: transform 0.2s;
  touch-action: none; /* STOPS THE BACKGROUND FROM SCROLLING WHEN DRAGGING */
  user-select: none;
}
.support-fab:hover { transform: scale(1.05); }
.support-fab svg { width: 28px; height: 28px; pointer-events: none; }

.support-chat { 
  position: fixed; 
  bottom: 90px; 
  right: 24px; 
  width: min(380px, calc(100vw - 48px)); 
  height: 500px; 
  background: var(--surface); 
  border-radius: var(--radius-lg); 
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); 
  display: flex; 
  flex-direction: column; 
  z-index: 100000; 
  border: 1px solid var(--border); 
  overflow: hidden; 
  transform: translateY(10px); 
  opacity: 0; 
  pointer-events: none; 
  transition: all 0.2s ease; 
}
.support-chat.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.chat-header { background: var(--primary); color: white; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h3 { margin: 0; font-size: 16px; color: white; }
.chat-close { background: none; border: none; color: white; cursor: pointer; font-size: 24px; padding: 0; line-height: 1; }
.chat-tabs { display: flex; border-bottom: 1px solid var(--border); }
.chat-tab { flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; }
.chat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); overscroll-behavior: contain; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; cursor: pointer; }
.faq-item h4 { margin: 0 0 4px; font-size: 14px; color: var(--text); }
.faq-item p { margin: 0; font-size: 13px; color: var(--text-muted); display: none; }
.faq-item.open p { display: block; margin-top: 8px; }
.msg-bubble { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; }
.msg-user { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.msg-admin { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg-meta { font-size: 10px; margin-top: 4px; opacity: 0.7; text-align: right; }
.chat-input-area { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--surface); }
.chat-input-area input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; outline: none; font-family: inherit; }
.chat-input-area button { border-radius: 50%; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.metric-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.metric-label { font-size: 13px; color: var(--text-muted); }

/* Pricing Carousel */
.pricing-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-left: 16px; padding-right: 16px; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
.pricing-carousel::-webkit-scrollbar { display: none; }
.pricing-card { flex: 0 0 85%; max-width: 320px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; }
.pricing-card.recommended { border: 2px solid var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.pricing-benefits { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex: 1; }
.pricing-benefit-item { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.pricing-benefit-item svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Professional Recovery Button */
.recovery-btn {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white !important;
  border: none;
  box-shadow: 0 4px 10px rgba(37,99,235,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: pulse-glow 2.5s infinite;
}
.recovery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37,99,235,0.5);
}
.recovery-btn:active {
  transform: scale(0.95);
}
.recovery-btn svg {
  stroke: white !important;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(37,99,235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235, 0); }
}
