/* ==========================================================================
   RiazHub AI Chatbot - Modern High-End Assistant Stylesheet
   Strict Light Mode • Glassmorphism • Accessible • Mobile-Optimized
   Founder: MUHAMMAD RIAZ Khan Jee | RiazHub.com
   Version: 2.4.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Chatbot Launcher Button
   -------------------------------------------------------------------------- */
.rh-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main, 'Inter', sans-serif);
}

.rh-chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
}

.rh-chat-launcher:active {
  transform: translateY(0) scale(0.98);
}

/* Floating Prompt Badge / Pill beside launcher */
.rh-launcher-pill {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  animation: rhPillFloat 3s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rh-launcher-pill .pill-sparkle {
  color: #0284c7;
  font-size: 0.95rem;
}

@keyframes rhPillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Circular Button */
.rh-launcher-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.9);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rh-launcher-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(2, 132, 199, 0.4);
  animation: rhPulseGlow 2.5s infinite;
}

@keyframes rhPulseGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.rh-launcher-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.rh-launcher-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.rh-launcher-close-icon {
  display: none;
  width: 24px;
  height: 24px;
}

.rh-chat-launcher.is-active .rh-launcher-icon {
  display: none;
}

.rh-chat-launcher.is-active .rh-launcher-close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rh-chat-launcher.is-active .rh-launcher-pill {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

/* Online indicator dot on launcher */
.rh-launcher-status-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* --------------------------------------------------------------------------
   2. Chatbot Window Container
   -------------------------------------------------------------------------- */
.rh-chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99995;
  font-family: var(--font-main, 'Inter', sans-serif);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s;
}

.rh-chat-widget.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Maximized Mode */
.rh-chat-widget.is-maximized {
  width: 720px;
  height: 85vh;
  max-height: 85vh;
}

/* --------------------------------------------------------------------------
   3. Chatbot Header
   -------------------------------------------------------------------------- */
.rh-chat-header {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #7c3aed 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
  position: relative;
  z-index: 2;
}

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

.rh-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  flex-shrink: 0;
}

.rh-bot-avatar svg,
.rh-bot-avatar img {
  width: 24px;
  height: 24px;
}

.rh-bot-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.rh-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rh-header-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rh-header-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rh-header-status {
  font-size: 0.76rem;
  opacity: 0.92;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.rh-header-status .live-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: rhLiveBlink 1.8s infinite;
}

@keyframes rhLiveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.rh-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rh-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  outline: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.rh-header-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. Quick Suggestion Prompts Bar (Chips)
   -------------------------------------------------------------------------- */
.rh-quick-prompts-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.rh-quick-prompts-bar::-webkit-scrollbar {
  display: none;
}

.rh-prompt-chip {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rh-prompt-chip:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

/* --------------------------------------------------------------------------
   5. Chat Messages Body
   -------------------------------------------------------------------------- */
.rh-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.rh-chat-body::-webkit-scrollbar {
  width: 5px;
}

.rh-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.rh-chat-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Message Wrapper */
.rh-message {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: rhMsgFadeIn 0.25s ease forwards;
}

@keyframes rhMsgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rh-message.rh-bot-msg {
  align-self: flex-start;
}

.rh-message.rh-user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Message Avatar */
.rh-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.rh-message.rh-user-msg .rh-msg-avatar {
  background: #334155;
}

/* Message Content Bubble */
.rh-msg-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}

.rh-bot-msg .rh-msg-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.rh-user-msg .rh-msg-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* Text formatting inside message bubble */
.rh-msg-bubble p {
  margin: 0 0 8px 0;
}

.rh-msg-bubble p:last-child {
  margin-bottom: 0;
}

.rh-msg-bubble ul,
.rh-msg-bubble ol {
  margin: 6px 0 8px 18px;
  padding: 0;
}

.rh-msg-bubble li {
  margin-bottom: 4px;
}

.rh-msg-bubble strong {
  font-weight: 700;
}

.rh-msg-bubble a {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 600;
}

.rh-user-msg .rh-msg-bubble a {
  color: #bae6fd;
}

.rh-msg-bubble code {
  background: #f1f5f9;
  color: #0284c7;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: monospace;
}

.rh-user-msg .rh-msg-bubble code {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Message Meta & Action Bar */
.rh-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-left: 2px;
}

.rh-msg-action-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  line-height: 1;
}

.rh-msg-action-btn .rh-btn-icon {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.15s ease;
}

.rh-msg-action-btn:hover {
  background: #ffffff;
  color: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.rh-msg-action-btn:hover .rh-btn-icon {
  transform: scale(1.1);
}

.rh-msg-action-btn:active {
  transform: translateY(0);
}

.rh-msg-action-btn.is-copied {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

.rh-msg-action-btn.is-speaking {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  animation: rh-pulse-speak 1.5s ease-in-out infinite;
}

@keyframes rh-pulse-speak {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  }
}

.rh-msg-time {
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  margin-left: auto;
  user-select: none;
}

/* --------------------------------------------------------------------------
   6. Interactive Tool Cards inside Bot Answers
   -------------------------------------------------------------------------- */
.rh-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.rh-tool-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.rh-tool-card:hover {
  border-color: #38bdf8;
  border-left-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.rh-tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rh-tool-category-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #bae6fd;
}

.rh-tool-pricing-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.rh-tool-pricing-badge.badge-free {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.rh-tool-pricing-badge.badge-paid {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.rh-tool-pricing-badge.badge-freemium {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
}

.rh-tool-pricing-badge.badge-article {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.rh-tool-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rh-tool-card-desc {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.rh-tool-card-action {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rh-tool-open-btn {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.25);
}

.rh-tool-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
}

.rh-tool-card-privacy {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Follow-up question chips under answers */
.rh-followup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.rh-followup-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rh-followup-btn:hover {
  background: #e2e8f0;
  color: #0284c7;
  border-color: #94a3b8;
}

/* --------------------------------------------------------------------------
   7. Typing Indicator Bubble
   -------------------------------------------------------------------------- */
.rh-typing-indicator {
  display: none;
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.rh-typing-indicator.is-active {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rh-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  animation: rhTypingBounce 1.4s infinite ease-in-out both;
}

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

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

/* --------------------------------------------------------------------------
   8. Chat Input Area
   -------------------------------------------------------------------------- */
.rh-chat-footer {
  padding: 12px 14px 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.rh-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 6px 4px 12px;
  transition: all 0.2s ease;
}

.rh-input-wrapper:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.rh-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  padding: 6px 0;
  resize: none;
  max-height: 80px;
}

.rh-chat-input::placeholder {
  color: #94a3b8;
}

.rh-voice-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.rh-voice-btn:hover {
  background: #e2e8f0;
  color: #0284c7;
}

.rh-voice-btn.is-recording {
  color: #ef4444;
  background: #fee2e2;
  animation: rhVoicePulse 1.2s infinite;
}

@keyframes rhVoicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.rh-send-btn {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.rh-send-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

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

.rh-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rh-footer-subtext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 0 4px;
}

.rh-footer-subtext a {
  color: #0284c7;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. Settings Drawer / Modal
   -------------------------------------------------------------------------- */
.rh-settings-panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 18px;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rh-settings-panel.is-open {
  transform: translateX(0);
}

.rh-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.rh-settings-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rh-settings-close {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1rem;
}

.rh-settings-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rh-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rh-settings-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.rh-settings-input,
.rh-settings-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
}

.rh-settings-input:focus,
.rh-settings-select:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.rh-settings-help {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

.rh-settings-save-btn {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.rh-settings-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* --------------------------------------------------------------------------
   10. Mobile Responsiveness & Bottom Sheet Mode
   -------------------------------------------------------------------------- */
/* Header Action Pill for AI Assistant */
.header-ai-chat-btn {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: #0284c7;
  border: 1.5px solid rgba(2, 132, 199, 0.3);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
}

.header-ai-chat-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.header-ai-chat-btn .ai-sparkle-icon {
  font-size: 0.95rem;
  animation: rhLiveBlink 2s infinite;
}

@media (max-width: 768px) {
  .header-ai-chat-btn .ai-btn-text {
    display: none;
  }
  .header-ai-chat-btn {
    padding: 0.42rem 0.6rem;
  }
}

@media (max-width: 640px) {
  .rh-chat-launcher {
    bottom: 16px;
    right: 16px;
  }

  .rh-launcher-btn {
    width: 52px;
    height: 52px;
  }

  .rh-launcher-pill {
    display: none;
  }

  .rh-chat-widget {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .rh-chat-widget.is-open {
    transform: translateY(0);
  }

  .rh-chat-header {
    padding: 12px 14px;
  }

  .rh-header-title {
    font-size: 0.96rem;
  }
}
