/* =========================================================================
   SAUTI LIVE VOICE ASSISTANT — JUAKILIMO
   Hands-free, natural-sounding bilingual voice assistant (English & Kiswahili)
   Styled with glassmorphism, dynamic glowing audio orb, and fluent animations.
   ALL classes prefixed with .sauti-
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. FLOATING LAUNCHER TRIGGER (Bottom-Left, distinct from Wingu)
   ------------------------------------------------------------------------- */
.sauti-launcher-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.sauti-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: linear-gradient(135deg, rgba(16, 56, 38, 0.95) 0%, rgba(6, 34, 22, 0.98) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  border-radius: 9999px;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(16, 185, 129, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: visible;
}

.sauti-launcher-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #34d399;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.45);
}

.sauti-launcher-btn:active {
  transform: translateY(0) scale(0.98);
}

.sauti-launcher-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6ee7b7 0%, #10b981 50%, #065f46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  position: relative;
}

.sauti-launcher-orb-icon {
  font-size: 14px;
  line-height: 1;
}

.sauti-launcher-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: sauti-pulse-beacon 1.8s infinite;
}

.sauti-launcher-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sauti-launcher-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0fdf4;
}

.sauti-launcher-sub {
  font-size: 10px;
  font-weight: 500;
  color: #a7f3d0;
  letter-spacing: 0.4px;
}

.sauti-launcher-waves {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-left: 2px;
}

.sauti-launcher-wave-bar {
  width: 2.5px;
  height: 6px;
  background-color: #34d399;
  border-radius: 2px;
  animation: sauti-launcher-wave 1.4s ease-in-out infinite alternate;
}

.sauti-launcher-wave-bar:nth-child(2) { animation-delay: 0.25s; }
.sauti-launcher-wave-bar:nth-child(3) { animation-delay: 0.5s; }
.sauti-launcher-wave-bar:nth-child(4) { animation-delay: 0.75s; }

@keyframes sauti-launcher-wave {
  0% { height: 4px; opacity: 0.4; }
  100% { height: 14px; opacity: 1; }
}

@keyframes sauti-pulse-beacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* -------------------------------------------------------------------------
   2. FULL VOICE MODE OVERLAY & GLASSMORPHIC MODAL
   ------------------------------------------------------------------------- */
.sauti-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 10, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.sauti-overlay.sauti-active {
  opacity: 1;
  visibility: visible;
}

.sauti-modal {
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  height: 720px;
  background: linear-gradient(165deg, rgba(13, 36, 26, 0.95) 0%, rgba(7, 22, 16, 0.98) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.3);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 36px rgba(16, 185, 129, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ecfdf5;
  user-select: none;
}

.sauti-overlay.sauti-active .sauti-modal {
  transform: translateY(0) scale(1);
}

/* Top Ambient Aurora Gradient Behind Orb */
.sauti-modal-aurora {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.25) 0%, rgba(245, 158, 11, 0.12) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}

/* -------------------------------------------------------------------------
   3. MODAL HEADER
   ------------------------------------------------------------------------- */
.sauti-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
  background: rgba(8, 26, 19, 0.65);
}

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

.sauti-header-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(209, 250, 229, 0.4);
}

.sauti-header-title-box {
  display: flex;
  flex-direction: column;
}

.sauti-header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sauti-header-title {
  font-size: 16px;
  font-weight: 800;
  color: #f0fdf4;
  letter-spacing: -0.2px;
}

.sauti-voice-pill-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
}

.sauti-header-sub {
  font-size: 11px;
  color: #a7f3d0;
  opacity: 0.85;
}

.sauti-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sauti-lang-btn,
.sauti-icon-btn {
  background: rgba(16, 45, 32, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 9999px;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.sauti-icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  font-size: 14px;
}

.sauti-lang-btn:hover,
.sauti-icon-btn:hover {
  background: rgba(22, 65, 46, 0.95);
  border-color: #34d399;
  transform: translateY(-1px);
}

.sauti-btn-close {
  color: #94a3b8;
}

.sauti-btn-close:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* -------------------------------------------------------------------------
   4. CENTRAL VISUALIZER STAGE (Animated Fluid Glowing Orb)
   ------------------------------------------------------------------------- */
.sauti-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 14px;
  flex-shrink: 0;
}

.sauti-orb-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Background Ripples */
.sauti-ripple-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(52, 211, 153, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sauti-ripple-ring.ring-2 {
  inset: -28px;
  border-color: rgba(52, 211, 153, 0.15);
}

/* State: Listening (Pulsing expanding radar ripples) */
.sauti-state-listening .sauti-ripple-ring {
  opacity: 1;
  animation: sauti-ripple-expand 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.sauti-state-listening .sauti-ripple-ring.ring-2 {
  animation-delay: 0.65s;
}

@keyframes sauti-ripple-expand {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* State: Thinking (Orbiting cosmic rings) */
.sauti-orbit-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.6);
  opacity: 0;
  pointer-events: none;
}

.sauti-state-thinking .sauti-orbit-ring {
  opacity: 1;
  animation: sauti-spin-orbit 1.6s linear infinite;
}

@keyframes sauti-spin-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Central Orb Body */
.sauti-orb-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a7f3d0 0%, #10b981 40%, #047857 75%, #064e3b 100%);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.4s ease;
}

.sauti-orb-wrapper:hover .sauti-orb-core {
  transform: scale(1.05);
  box-shadow: 0 0 44px rgba(16, 185, 129, 0.7), inset 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Orb States */
.sauti-state-listening .sauti-orb-core {
  background: radial-gradient(circle at 35% 30%, #bbf7d0 0%, #22c55e 40%, #15803d 75%, #052e16 100%);
  animation: sauti-orb-breathe 2.4s ease-in-out infinite alternate;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.65);
}

.sauti-state-thinking .sauti-orb-core {
  background: radial-gradient(circle at 35% 30%, #fed7aa 0%, #f59e0b 45%, #b45309 80%, #451a03 100%);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
  animation: sauti-orb-think 1s ease-in-out infinite alternate;
}

.sauti-state-speaking .sauti-orb-core {
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #eab308 30%, #10b981 70%, #064e3b 100%);
  box-shadow: 0 0 48px rgba(234, 179, 8, 0.6), 0 0 24px rgba(16, 185, 129, 0.5);
  animation: sauti-orb-speak 0.8s ease-in-out infinite alternate;
}

@keyframes sauti-orb-breathe {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.06); }
}

@keyframes sauti-orb-think {
  0% { transform: scale(0.94) rotate(0deg); }
  100% { transform: scale(1.03) rotate(15deg); }
}

@keyframes sauti-orb-speak {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.08); }
}

/* Central Icon in Orb */
.sauti-orb-center-icon {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s;
}

/* Fluid Equalizer Frequency Spectrum underneath Orb */
.sauti-stage-spectrum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-top: 14px;
}

.sauti-spectrum-bar {
  width: 4px;
  height: 6px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  border-radius: 9999px;
  transition: height 0.15s ease, background 0.3s;
}

.sauti-state-speaking .sauti-spectrum-bar {
  background: linear-gradient(180deg, #fbbf24 0%, #10b981 100%);
  animation: sauti-eq-dance 0.55s ease-in-out infinite alternate;
}

.sauti-spectrum-bar:nth-child(1) { animation-delay: 0.1s; }
.sauti-spectrum-bar:nth-child(2) { animation-delay: 0.3s; }
.sauti-spectrum-bar:nth-child(3) { animation-delay: 0.05s; }
.sauti-spectrum-bar:nth-child(4) { animation-delay: 0.45s; }
.sauti-spectrum-bar:nth-child(5) { animation-delay: 0.2s; }
.sauti-spectrum-bar:nth-child(6) { animation-delay: 0.35s; }
.sauti-spectrum-bar:nth-child(7) { animation-delay: 0.15s; }
.sauti-spectrum-bar:nth-child(8) { animation-delay: 0.4s; }

@keyframes sauti-eq-dance {
  0% { height: 4px; }
  100% { height: 26px; }
}

/* Stage Status Pill */
.sauti-stage-status {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.2px;
}

.sauti-tap-interrupt-hint {
  font-size: 10.5px;
  color: #6ee7b7;
  opacity: 0.7;
  margin-top: 2px;
  cursor: pointer;
}

.sauti-tap-interrupt-hint:hover {
  opacity: 1;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   5. LIVE TRANSCRIPT & CONVERSATION FEED
   ------------------------------------------------------------------------- */
.sauti-feed-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, 0.3) transparent;
}

.sauti-feed-wrap::-webkit-scrollbar {
  width: 5px;
}
.sauti-feed-wrap::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.3);
  border-radius: 4px;
}

/* Message Bubble */
.sauti-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 90%;
  animation: sauti-bubble-fade 0.25s ease-out;
  word-break: break-word;
}

.sauti-bubble.sauti-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.9) 0%, rgba(13, 58, 32, 0.95) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #f0fdf4;
  border-bottom-right-radius: 4px;
}

.sauti-bubble.sauti-assistant {
  align-self: flex-start;
  background: rgba(12, 38, 28, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #ecfdf5;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sauti-bubble.sauti-interim {
  align-self: flex-end;
  background: rgba(20, 83, 45, 0.45);
  border: 1px dashed rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-style: italic;
}

.sauti-bubble-author {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

@keyframes sauti-bubble-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   6. NAVIGATION SUGGESTION BANNER
   ------------------------------------------------------------------------- */
.sauti-nav-action-banner {
  margin: 0 20px 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: sauti-banner-pop 0.3s ease;
}

.sauti-nav-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fef08a;
}

.sauti-nav-btn {
  background: #f59e0b;
  border: none;
  border-radius: 8px;
  color: #451a03;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.18s;
}

.sauti-nav-btn:hover {
  background: #fbbf24;
  transform: scale(1.04);
}

@keyframes sauti-banner-pop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------------------
   7. QUICK SAMPLE PROMPTS TRAY
   ------------------------------------------------------------------------- */
.sauti-samples-tray {
  padding: 6px 20px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sauti-samples-tray::-webkit-scrollbar {
  display: none;
}

.sauti-sample-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(16, 45, 32, 0.65);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #d1fae5;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.sauti-sample-chip:hover {
  background: rgba(22, 65, 46, 0.9);
  border-color: #34d399;
  color: #ffffff;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   8. BOTTOM ACTION CONTROLS BAR
   ------------------------------------------------------------------------- */
.sauti-footer {
  position: relative;
  z-index: 2;
  padding: 14px 24px 20px;
  background: rgba(8, 26, 19, 0.85);
  border-top: 1px solid rgba(52, 211, 153, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sauti-btn-secondary {
  background: rgba(16, 45, 32, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 9999px;
  color: #a7f3d0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}

.sauti-btn-secondary:hover {
  background: rgba(22, 65, 46, 0.9);
  color: #ffffff;
  border-color: #34d399;
}

/* Primary Mic / Interrupt Action */
.sauti-btn-primary-action {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.sauti-btn-primary-action:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

.sauti-btn-primary-action:active {
  transform: translateY(0) scale(0.98);
}

/* Interrupt Variant */
.sauti-btn-primary-action.sauti-is-interrupt {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.sauti-btn-end {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.sauti-btn-end:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

/* -------------------------------------------------------------------------
   9. SETTINGS MODAL / DRAWER
   ------------------------------------------------------------------------- */
.sauti-settings-drawer {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 15, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.sauti-settings-drawer.sauti-open {
  transform: translateX(0);
}

.sauti-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

.sauti-settings-title {
  font-size: 16px;
  font-weight: 800;
  color: #f0fdf4;
}

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

.sauti-setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sauti-setting-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sauti-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(16, 45, 32, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 10px;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.sauti-select:focus {
  border-color: #34d399;
}

.sauti-voice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(16, 45, 32, 0.5);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 10px;
  margin-bottom: 6px;
}

.sauti-voice-item.sauti-selected {
  border-color: #34d399;
  background: rgba(16, 45, 32, 0.9);
}

.sauti-voice-item-info {
  display: flex;
  flex-direction: column;
}

.sauti-voice-name {
  font-size: 13px;
  font-weight: 600;
  color: #f0fdf4;
}

.sauti-voice-meta {
  font-size: 11px;
  color: #a7f3d0;
  opacity: 0.8;
}

.sauti-voice-test-btn {
  background: rgba(52, 211, 153, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 6px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.18s;
}

.sauti-voice-test-btn:hover {
  background: #10b981;
  color: #ffffff;
}

.sauti-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sauti-range-slider {
  flex: 1;
  accent-color: #10b981;
}

/* -------------------------------------------------------------------------
   10. LIGHT MODE ADAPTATION (When [data-theme="light"])
   ------------------------------------------------------------------------- */
body[data-theme="light"] .sauti-launcher-btn {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.96) 0%, rgba(220, 252, 231, 0.98) 100%);
  border-color: rgba(5, 150, 105, 0.4);
  color: #064e3b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 16px rgba(16, 185, 129, 0.2);
}

body[data-theme="light"] .sauti-launcher-title {
  color: #064e3b;
}

body[data-theme="light"] .sauti-launcher-sub {
  color: #047857;
}

body[data-theme="light"] .sauti-overlay {
  background: rgba(15, 23, 42, 0.55);
}

body[data-theme="light"] .sauti-modal {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 244, 0.98) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #0f172a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] .sauti-header {
  background: rgba(248, 250, 252, 0.85);
  border-bottom-color: rgba(16, 185, 129, 0.15);
}

body[data-theme="light"] .sauti-header-title {
  color: #064e3b;
}

body[data-theme="light"] .sauti-header-sub {
  color: #047857;
}

body[data-theme="light"] .sauti-lang-btn,
body[data-theme="light"] .sauti-icon-btn {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(16, 185, 129, 0.25);
  color: #064e3b;
}

body[data-theme="light"] .sauti-bubble.sauti-assistant {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.25);
  color: #0f172a;
}

body[data-theme="light"] .sauti-stage-status {
  color: #064e3b;
}

body[data-theme="light"] .sauti-footer {
  background: rgba(248, 250, 252, 0.9);
  border-top-color: rgba(16, 185, 129, 0.15);
}

/* -------------------------------------------------------------------------
   11. MOBILE RESPONSIVENESS (< 640px)
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .sauti-launcher-wrap {
    bottom: 86px; /* Above bottom navigation bar */
    left: 16px;
  }

  .sauti-launcher-btn {
    padding: 8px 12px;
  }

  .sauti-launcher-text {
    display: none; /* Icon-only floating orb on small screens */
  }

  .sauti-overlay {
    padding: 0;
  }

  .sauti-modal {
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .sauti-orb-wrapper {
    width: 140px;
    height: 140px;
  }

  .sauti-orb-core {
    width: 100px;
    height: 100px;
  }

  .sauti-orb-center-icon {
    font-size: 30px;
  }
}
