/* ====================================================================
   AAROGYAM SAKHI AI - BUTTER-SMOOTH VOICE & DIAGNOSTIC CHATBOT
   Aarogyam India Next-Gen Agri AI Assistant
   ==================================================================== */

:root {
  --sakhi-green: #15803d;
  --sakhi-green-light: #dcfce7;
  --sakhi-gold: #f59e0b;
  --sakhi-dark: #0f172a;
  --sakhi-bg: #f8fafc;
  --sakhi-white: #ffffff;
  --sakhi-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
}

/* GLOBAL OVERFLOW PROTECTION TO PREVENT MOBILE PAGE CUTTING */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* 1. FLOATING ACTION PILL (FAB - HIGH CONTRAST BLACK & WHITE WITH BLINKING RED DOT) */
.sakhi-floating-pill {
  position: fixed;
  top: 98px;
  left: 12px;
  bottom: auto;
  right: auto;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000000;
  color: #ffffff;
  padding: 5px 14px 5px 5px;
  border-radius: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 255, 255, 0.12);
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  font-size: 0.90rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  animation: sakhiPillFloat 3s ease-in-out infinite alternate;
}

@media (max-width: 768px) {
  .sakhi-floating-pill {
    top: 94px !important;
    left: 8px !important;
    bottom: auto !important;
    padding: 4px 10px 4px 4px !important;
    font-size: 0.80rem !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* SMART 5-SECOND AUTO-COLLAPSED STATE (COMPACT CIRCULAR AVATAR COIN) */
.sakhi-floating-pill.collapsed {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  gap: 0 !important;
  background: #000000 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(239, 68, 68, 0.7) !important;
  border: 2px solid #ef4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.sakhi-floating-pill.collapsed .sakhi-pill-avatar-wrap {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 50% !important;
}

.sakhi-floating-pill.collapsed .sakhi-pill-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sakhi-floating-pill .sakhi-pill-label,
.sakhi-floating-pill .sakhi-pill-live-dot {
  transition: max-width 0.35s ease, opacity 0.25s ease, transform 0.3s ease;
  max-width: 150px;
  opacity: 1;
  display: inline-block;
  white-space: nowrap;
}

.sakhi-floating-pill.collapsed .sakhi-pill-label,
.sakhi-floating-pill.collapsed .sakhi-pill-live-dot {
  max-width: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.sakhi-floating-pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

/* On hover over collapsed pill, briefly expand */
.sakhi-floating-pill.collapsed:hover {
  border-radius: 40px !important;
  padding: 6px 16px 6px 6px !important;
  gap: 8px !important;
}

.sakhi-floating-pill.collapsed:hover .sakhi-pill-label,
.sakhi-floating-pill.collapsed:hover .sakhi-pill-live-dot {
  max-width: 150px !important;
  opacity: 1 !important;
}

.sakhi-floating-pill:active {
  transform: scale(0.96);
}

.sakhi-pill-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.sakhi-pill-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* BLINKING RED LIVE DOT */
.sakhi-pill-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.85);
  animation: sakhiLivePulseRed 1.3s infinite ease-in-out;
}

@keyframes sakhiLivePulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.9);
    transform: scale(0.92);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(0.92);
  }
}

@keyframes sakhiPillFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* 2. CHAT DRAWER / MODAL CONTAINER */
.sakhi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999999 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sakhi-modal-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.sakhi-chat-window {
  width: 100%;
  max-width: 520px;
  height: 90vh;
  max-height: 740px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--sakhi-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, sans-serif;
}

@media (min-width: 640px) {
  .sakhi-modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .sakhi-chat-window {
    border-radius: 26px;
    height: 82vh;
    max-height: 720px;
  }
}

.sakhi-modal-backdrop.active .sakhi-chat-window {
  transform: translateY(0) !important;
}

/* FULLSCREEN STANDALONE PAGE SUPPORT (NEVER BLANK SCREEN) */
.sakhi-fullscreen-wrapper {
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #0f172a;
}

#sakhiFullscreenContainer .sakhi-chat-window,
.sakhi-fullscreen-wrapper .sakhi-chat-window,
.sakhi-page-body .sakhi-chat-window {
  transform: translateY(0) !important;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
}

/* Fullscreen expanded state */
#sakhiFullscreenContainer.is-fullscreen .sakhi-chat-window,
.sakhi-fullscreen-wrapper.is-fullscreen .sakhi-chat-window,
.sakhi-fullscreen-wrapper.fullscreen-expanded .sakhi-chat-window,
body.is-fullscreen .sakhi-chat-window {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
}

/* 3. CHAT HEADER */
.sakhi-header {
  background: linear-gradient(135deg, #052e16 0%, #14532d 60%, #166534 100%);
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #22c55e;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
  z-index: 1000 !important;
  gap: 8px;
}

.sakhi-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

/* ANIMATED SAKHI AVATAR */
.sakhi-avatar-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fef08a;
  border: 2.5px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sakhi-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.sakhi-avatar-frame.speaking {
  animation: sakhiSpeakingAura 1.2s infinite alternate;
  border-color: #facc15;
}

@keyframes sakhiSpeakingAura {
  0% { box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.4); transform: scale(1); }
  100% { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.8); transform: scale(1.05); }
}

.sakhi-header-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.sakhi-header-info h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sakhi-header-info p {
  margin: 2px 0 0 0;
  font-size: 0.74rem;
  color: #bbf7d0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sakhi-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sakhi-fullscreen-btn,
.sakhi-sound-toggle-btn,
.sakhi-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.sakhi-fullscreen-btn:hover,
.sakhi-sound-toggle-btn:hover,
.sakhi-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sakhi-chat-window.fullscreen-expanded {
  max-width: 100vw !important;
  width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
}

/* CHATGPT STYLE PLUS BUTTON & POPUP MENU */
.sakhi-plus-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sakhi-plus-btn:hover {
  background: #e2e8f0;
  color: #16a34a;
  transform: rotate(90deg);
}

/* Backdrop for Plus Menu to ensure smooth tap-to-dismiss on mobile devices */
.sakhi-plus-menu-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9999;
  display: none !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.sakhi-plus-menu-backdrop.active {
  display: block !important;
  opacity: 1 !important;
}

.sakhi-plus-menu {
  display: none !important;
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  padding: 14px 12px;
  z-index: 10001;
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  will-change: transform, opacity;
  touch-action: manipulation;
}

.sakhi-plus-menu.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.sakhi-plus-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 800;
  font-size: 0.90rem;
  color: #334155;
  letter-spacing: 0.3px;
}
.sakhi-plus-menu-close {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.15s;
}

.sakhi-plus-menu-close:hover,
.sakhi-plus-menu-close:active {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(0.92);
}

.sakhi-plus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .sakhi-plus-grid {
    grid-template-columns: 1fr;
  }
}

.sakhi-menu-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}
.sakhi-menu-item:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  transform: translateX(2px);
}

/* 4. QUOTA TRACKER BANNER */
.sakhi-quota-bar {
  background: #f1f5f9;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 800;
  border-bottom: 1px solid #e2e8f0;
}

.sakhi-quota-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 20px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sakhi-quota-pill.unlimited {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.sakhi-quota-pill.low {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* 5. CHAT MESSAGES BODY */
.sakhi-messages-wrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.sakhi-msg-row {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: sakhiMsgFadeIn 0.25s ease-out;
}

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

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

.sakhi-msg-row.bot {
  align-self: flex-start;
}

.sakhi-msg-bubble {
  padding: 16px 18px;
  border-radius: 20px;
  font-size: 1.15rem;
  line-height: 1.72;
  color: #0f172a;
  position: relative;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.sakhi-msg-row.user .sakhi-msg-bubble {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  border-radius: 20px 20px 4px 20px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
  font-size: 1.15rem;
}

.sakhi-msg-row.bot .sakhi-msg-bubble {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* IN-MESSAGE AUDIO LISTEN / MUTE PILL & ACTION TOOLBAR */
.sakhi-msg-actions-toolbar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #e2e8f0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.sakhi-action-pill {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 3px 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}

.sakhi-action-pill:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.sakhi-action-pill.liked {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

.sakhi-action-pill.speaking {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

.sakhi-msg-audio-btn,
.sakhi-msg-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sakhi-msg-audio-btn:hover,
.sakhi-msg-copy-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: scale(1.03);
}

.sakhi-msg-copy-btn.copied {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.sakhi-msg-audio-btn.speaking {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
  animation: sakhiAudioBtnPulse 1.2s infinite alternate;
}

@keyframes sakhiAudioBtnPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

/* SPEECH WAVEFORM / AUDIO PLAYING INDICATOR */
.sakhi-tts-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.sakhi-tts-bar {
  width: 3px;
  height: 12px;
  background: #15803d;
  border-radius: 2px;
  animation: sakhiSoundWave 0.8s ease-in-out infinite alternate;
}
.sakhi-tts-bar:nth-child(2) { animation-delay: 0.2s; height: 16px; }
.sakhi-tts-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }

@keyframes sakhiSoundWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

/* FIRST AID & CURIOSITY HIGHLIGHT BOXES */
.sakhi-solution-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 1.10rem;
  line-height: 1.65;
}

.sakhi-solution-header {
  font-size: 1.15rem;
  font-weight: 900;
  color: #15803d;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sakhi-curiosity-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 1.10rem;
  color: #78350f;
  line-height: 1.65;
}

.sakhi-curiosity-header {
  font-size: 1.15rem;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* IN-CHAT HIGH CONVERTING BOOK CTA CARD */
.sakhi-book-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border: 2px solid #facc15;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.sakhi-book-cta-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: #facc15;
}

.sakhi-book-cta-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.sakhi-book-buy-btn {
  background: #facc15;
  color: #000000;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  transition: transform 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sakhi-book-buy-btn:hover {
  transform: scale(1.05);
}

/* INTERACTIVE CHOICE PILLS (TAPPABLE CHIPS) */
.sakhi-choice-pills-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sakhi-choice-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sakhi-choice-btn:hover {
  background: #f0fdf4;
  border-color: #15803d;
  color: #15803d;
  transform: translateX(4px);
}

/* 6. CHAT INPUT BAR */
.sakhi-input-footer {
  background: #ffffff;
  padding: 12px 14px;
  border-top: 1.5px solid #e2e8f0;
  display: flex !important;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  position: relative !important;
  z-index: 50 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sakhi-mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
}

.sakhi-mic-btn.recording {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  animation: sakhiMicPulse 1.2s infinite;
}

@keyframes sakhiMicPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.sakhi-text-input {
  flex: 1 1 auto;
  min-width: 0; /* CRITICAL: ensures send button is never pushed off screen */
  height: 52px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 26px;
  padding: 0 18px;
  font-size: 1.18rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.sakhi-text-input::-webkit-search-decoration,
.sakhi-text-input::-webkit-search-cancel-button,
.sakhi-text-input::-webkit-search-results-button,
.sakhi-text-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none !important;
}

.sakhi-text-input:focus {
  border-color: #15803d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.sakhi-text-input::placeholder {
  font-size: 1.08rem;
  color: #64748b;
  font-weight: 500;
}

.sakhi-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #15803d;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sakhi-send-btn:hover {
  background: #166534;
  transform: scale(1.05);
}

.sakhi-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 7. LIMIT EXHAUSTED CARD (IN CHAT) */
.sakhi-limit-exhausted-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: #991b1b;
  margin-top: 10px;
}

.sakhi-limit-exhausted-box h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #b91c1c;
}

.sakhi-limit-exhausted-box p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

/* 8. LEGAL DISCLAIMER FOOTNOTE */
.sakhi-legal-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  padding: 4px 10px;
  background: #ffffff;
}

/* 9. PROACTIVE FOLLOW-UP SUGGESTIONS */
.sakhi-followup-container {
  margin-top: 12px;
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  border-radius: 14px;
  padding: 12px 14px;
}

.sakhi-followup-title {
  font-size: 0.84rem;
  font-weight: 900;
  color: #15803d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sakhi-followup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sakhi-followup-chip {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  color: #166534;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.sakhi-followup-chip:hover {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateX(4px);
}

/* 10. GUEST ONBOARDING CARD IN CHAT */
.sakhi-onboard-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
  border-radius: 18px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}

.sakhi-onboard-card h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 900;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sakhi-onboard-card p {
  margin: 0 0 12px 0;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
}

.sakhi-onboard-inputs-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.sakhi-onboard-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.sakhi-onboard-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.sakhi-onboard-submit-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: all 0.2s;
  width: 100%;
}

.sakhi-onboard-submit-btn:hover {
  background: #14532d;
  transform: translateY(-2px);
}

/* 11. HEADER SHARE BUTTON & FULLSCREEN MODE */
.sakhi-share-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sakhi-share-btn:hover {
  background: #ffffff;
  color: #15803d;
}

/* FULLSCREEN STANDALONE PAGE */
body.sakhi-page-body {
  margin: 0;
  padding: 0;
  background: #0f172a;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Outfit', 'Noto Sans Devanagari', -apple-system, sans-serif;
}

.sakhi-fullscreen-wrapper {
  width: 100%;
  height: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.sakhi-fullscreen-wrapper .sakhi-chat-window {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  transform: none !important;
  box-shadow: none;
}

.sakhi-back-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sakhi-back-btn:hover {
  background: #ffffff;
  color: #15803d;
}

/* 12. TYPING INDICATOR (CHATTING REAL ANIMATION) */
.sakhi-typing-bubble {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  padding: 10px 16px !important;
  border-radius: 18px 18px 18px 4px !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.sakhi-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sakhi-typing-dots span {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  display: inline-block;
  animation: sakhiDotBounce 1.4s infinite ease-in-out both;
}

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

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

.sakhi-typing-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #15803d;
}

/* STREAMING TEXT BLINKING CARET */
.sakhi-streaming-caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #16a34a;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: sakhiCaretBlink 0.7s infinite;
}

@keyframes sakhiCaretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 13. AAROGYAM TUBE INTEGRATION CARD */
.sakhi-tube-card {
  margin-top: 10px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
  text-decoration: none;
  transition: all 0.25s ease;
}

.sakhi-tube-card:hover {
  border-color: #ef4444;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.18);
}

.sakhi-tube-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
}

.sakhi-tube-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}

.sakhi-tube-text {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.sakhi-tube-btn-chip {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 14. SAKHI'S SECRET REMEDY BOX (सखी के दादी-नानी के नुस्खे) */
.sakhi-nuskha-box {
  margin-top: 10px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12);
  color: #78350f;
  animation: sakhiSlideIn 0.3s ease-out;
}

.sakhi-nuskha-header {
  font-size: 0.88rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sakhi-nuskha-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #78350f;
}

.sakhi-nuskha-trigger-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.sakhi-nuskha-trigger-btn:hover {
  background: #b45309;
  transform: translateY(-2px);
}

/* 15. EMERGENCY MEDICAL ALERT */
.sakhi-emergency-alert {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  color: #991b1b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* 16. MOBILE SCREEN ADAPTATIONS (<= 520px) */
@media (max-width: 520px) {
  .sakhi-modal-backdrop {
    padding: 0 !important;
  }
  
  .sakhi-chat-window {
    width: 100% !important;
    max-width: 100vw !important;
    height: var(--app-real-height, 100%) !important;
    max-height: var(--app-real-height, 100%) !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sakhi-header {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 10px !important;
    gap: 6px !important;
  }

  #sakhiFullscreenContainer.is-fullscreen .sakhi-chat-window,
  .sakhi-fullscreen-wrapper.is-fullscreen .sakhi-chat-window,
  .sakhi-chat-window.is-fullscreen,
  body.sakhi-page-body .sakhi-chat-window {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100% !important;
    height: var(--app-real-height, 100%) !important;
    max-height: var(--app-real-height, 100%) !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .sakhi-avatar-frame {
    width: 40px !important;
    height: 40px !important;
  }

  .sakhi-header-info h3 {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
  }

  .sakhi-header-actions {
    gap: 5px !important;
  }

  .sakhi-share-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
  }

  .sakhi-share-btn span {
    display: none !important;
  }

  .sakhi-fullscreen-btn,
  .sakhi-sound-toggle-btn,
  .sakhi-close-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
  }

  .sakhi-messages-wrap {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding: 14px 12px !important;
  }

  .sakhi-msg-bubble {
    font-size: 1.10rem !important;
    line-height: 1.68 !important;
    padding: 14px 16px !important;
  }

  .sakhi-input-footer {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 100 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 8px)) 10px !important;
    gap: 8px !important;
    background: #ffffff !important;
    border-top: 1.5px solid #e2e8f0 !important;
  }

  .sakhi-plus-btn,
  .sakhi-mic-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.20rem !important;
  }

  .sakhi-text-input {
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    min-width: 0 !important;
  }

  .sakhi-text-input::placeholder {
    font-size: 1.05rem !important;
  }

  .sakhi-send-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.15rem !important;
  }

  .sakhi-followup-chip {
    font-size: 1.02rem !important;
    padding: 10px 14px !important;
    line-height: 1.45 !important;
  }

  .sakhi-menu-item {
    font-size: 1.05rem !important;
    padding: 12px 14px !important;
  }
}

/* ====================================================================
   SIMPLE & ELEGANT LOGIN / REGISTRATION POPUP MODAL
   ==================================================================== */
.sakhi-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000005;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sakhi-auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sakhi-auth-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid #22c55e;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.sakhi-auth-modal-backdrop.active .sakhi-auth-modal-card {
  transform: translateY(0) scale(1);
}

.sakhi-auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sakhi-auth-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.sakhi-user-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.sakhi-user-badge.logged-in {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.sakhi-user-badge.logged-in:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.sakhi-user-badge.guest {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  animation: sakhiGuestBlink 2s infinite ease-in-out;
}

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

/* ====================================================================
   LIVE SPEAKING AUDIO EQUALIZER (ChatGPT Voice / Siri Style)
   ==================================================================== */
.sakhi-audio-wave {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 2.5px !important;
  height: 15px !important;
  vertical-align: middle !important;
  padding: 0 3px !important;
}
.sakhi-audio-wave .wave-bar {
  display: inline-block !important;
  width: 3px !important;
  background: linear-gradient(180deg, #15803d 0%, #ca8a04 100%) !important;
  border-radius: 2px !important;
  transform-origin: bottom center !important;
  animation: sakhiWavePulse 0.75s ease-in-out infinite alternate !important;
}
.sakhi-audio-wave .bar-1 { height: 6px !important; animation-delay: 0.1s !important; }
.sakhi-audio-wave .bar-2 { height: 14px !important; animation-delay: 0.35s !important; }
.sakhi-audio-wave .bar-3 { height: 10px !important; animation-delay: 0.55s !important; }
.sakhi-audio-wave .bar-4 { height: 7px !important; animation-delay: 0.2s !important; }

@keyframes sakhiWavePulse {
  0% { height: 3px !important; opacity: 0.55; }
  100% { height: 14px !important; opacity: 1; }
}

.sakhi-action-pill.speaking {
  background: #fef08a !important;
  color: #713f12 !important;
  border: 1.5px solid #ca8a04 !important;
  box-shadow: 0 0 12px rgba(202, 138, 4, 0.5) !important;
  font-weight: 800 !important;
}

/* ====================================================================
   SMART 1-TAP CONTEXTUAL PILLS BAR (Horizontal Scrolling Quick Chips)
   ==================================================================== */
.sakhi-smart-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 8px 12px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
  border-radius: 16px 16px 0 0;
  transition: all 0.3s ease;
}

.sakhi-smart-pills-container::-webkit-scrollbar {
  display: none;
}

.sakhi-smart-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.sakhi-smart-pill:hover,
.sakhi-smart-pill:active {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.25);
}

.sakhi-smart-pill.pill-accent {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sakhi-smart-pill.pill-accent:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.sakhi-smart-pill.pill-gold {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
}

.sakhi-smart-pill.pill-gold:hover {
  background: #ca8a04;
  color: #ffffff;
  border-color: #ca8a04;
}

.sakhi-followup-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
.sakhi-followup-chip:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ====================================================================
   CLEAN SPACIOUS MOBILE HEADER & AM USER INITIALS BADGE
   ==================================================================== */
.sakhi-user-badge .sakhi-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

@media (max-width: 640px) {
  .sakhi-header {
    padding: 8px 10px !important;
  }
  .sakhi-header-left {
    gap: 8px !important;
    flex: 0 0 auto !important;
  }
  /* On mobile: Hide text "आरोग्यम सखी AI" so only avatar shows, removing all crowding! */
  .sakhi-header-info {
    display: none !important;
  }
  .sakhi-header-actions {
    gap: 5px !important;
    margin-left: auto !important;
  }
  /* User badge: Show short initials (e.g. 'AM') instead of full name */
  .sakhi-user-badge .sakhi-badge-full {
    display: none !important;
  }
  .sakhi-user-badge .sakhi-badge-short {
    display: inline-block !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
  }
  .sakhi-user-badge {
    padding: 4px 8px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
  }
  .sakhi-new-chat-btn .sakhi-btn-text {
    display: none !important;
  }
  .sakhi-new-chat-btn {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sakhi-fullscreen-btn,
  .sakhi-share-btn,
  .sakhi-sound-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.88rem !important;
  }
}

@media (min-width: 641px) {
  .sakhi-user-badge .sakhi-badge-short {
    display: none !important;
  }
  .sakhi-user-badge .sakhi-badge-full {
    display: inline-block !important;
  }
}

/* ====================================================================
   LARGE, ULTRA-CLEAR, DEEP DARK FONT FOR MAXIMUM READABILITY
   ==================================================================== */
.sakhi-msg-bubble {
  font-size: 1.18rem !important;
  line-height: 1.82 !important;
  color: #090d16 !important;
  font-weight: 500 !important;
}

.sakhi-msg-bubble div,
.sakhi-msg-bubble p,
.sakhi-msg-bubble li,
.sakhi-msg-bubble span {
  color: inherit;
}

/* Force override any small 0.8rem - 0.95rem inline font sizes in bot responses */
.sakhi-msg-bubble div[style*="font-size:0."],
.sakhi-msg-bubble div[style*="font-size: 0."],
.sakhi-msg-bubble p[style*="font-size:0."],
.sakhi-msg-bubble span[style*="font-size:0."] {
  font-size: 1.16rem !important;
  line-height: 1.82 !important;
  color: #090d16 !important;
}

/* Response Section Headers / Titles - Natural, warm, bold black */
.sakhi-msg-bubble div[style*="font-weight:900"],
.sakhi-msg-bubble div[style*="font-weight: 900"],
.sakhi-msg-bubble h3,
.sakhi-msg-bubble h4 {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}

/* Sub-headings / Section Highlights */
.sakhi-msg-bubble div[style*="font-weight:800"],
.sakhi-msg-bubble strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* User Bubble text size */
.sakhi-msg-row.user .sakhi-msg-bubble {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: #ffffff !important;
}

/* Smart Pills Bar at bottom */
.sakhi-smart-pill {
  font-size: 0.95rem !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* ====================================================================
   IN-MESSAGE ACTIONS TOOLBAR: ICON-ONLY ROUND PILLS
   ==================================================================== */
.sakhi-msg-actions-toolbar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cbd5e1 !important;
  width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.sakhi-msg-actions-toolbar::-webkit-scrollbar {
  display: none !important;
}

.sakhi-action-pill {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sakhi-action-pill:hover,
.sakhi-action-pill:active {
  transform: scale(1.08) !important;
  border-color: #15803d !important;
}

/* Hide any text label inside sakhi-action-pill */
.sakhi-action-pill span:not(.sakhi-audio-wave):not(.wave-bar) {
  display: none !important;
}

.sakhi-action-pill i {
  font-size: 1rem !important;
  margin: 0 !important;
}

.sakhi-action-pill.speaking {
  width: auto !important;
  min-width: 44px !important;
  border-radius: 20px !important;
  padding: 0 10px !important;
  background: #fef08a !important;
  border-color: #ca8a04 !important;
  box-shadow: 0 0 12px rgba(202, 138, 4, 0.5) !important;
}





