/* ==========================================================================
   ArovaTechnology — NammaPersona Custom AI Chatbot Widget Styles
   Pure Vanilla CSS (Zero External Dependencies)
   Theme: Luxury Obsidian & Electric Cyan (#00E5FF & #2563EB)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Floating Action Button (FAB) & Teaser Bubble                               */
/* -------------------------------------------------------------------------- */

#arova-chat-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Floating Launcher Button — Luxury Dark Gem with Glowing Cyan Rim */
.arova-chat-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #19243c 0%, #0b101e 100%);
  color: #ffffff;
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 114, 255, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.arova-chat-fab:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 229, 255, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.arova-chat-fab:active {
  transform: scale(0.96);
}

/* Ambient Pulse Glow Ring */
.arova-chat-fab::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.4) 0%, rgba(0, 114, 255, 0.1) 70%, transparent 100%);
  opacity: 0.6;
  filter: blur(6px);
  z-index: -1;
  animation: arovaFabPulse 3.5s infinite ease-in-out;
}

@keyframes arovaFabPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.22);
    opacity: 0.8;
  }
}

/* FAB NammaPersona Logo Icon */
.arova-fab-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.35));
}

/* FAB Close Icon */
.arova-fab-icon-close {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  color: #ffffff;
}

.arova-chat-fab.is-open .arova-fab-logo {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.arova-chat-fab.is-open .arova-fab-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Online Status Beacon on Launcher */
.arova-fab-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0b101e;
  box-shadow: 0 0 8px #10b981;
}

/* Teaser Greeting Bubble */
.arova-chat-teaser {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: rgba(13, 19, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 114, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9998;
}

.arova-chat-teaser.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.arova-chat-teaser:hover {
  background: rgba(19, 27, 48, 0.98);
  border-color: rgba(0, 229, 255, 0.45);
}

.arova-chat-teaser-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.arova-chat-teaser-close:hover {
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* Chat Window Card (Desktop Default)                                         */
/* -------------------------------------------------------------------------- */

.my-chat-card,
.arova-chat-card {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 114, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.my-chat-card.is-open,
.arova-chat-card.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.my-chat-header,
.arova-chat-header {
  position: relative;
  background: linear-gradient(180deg, #10172a 0%, #0d1322 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

/* Subtle Glowing Beam on top edge */
.arova-chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  inset-x: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #0072ff 25%, #00e5ff 50%, #0072ff 75%, transparent 100%);
}

.arova-chat-header-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.arova-chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #090d18;
  border: 1px solid rgba(0, 229, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 114, 255, 0.2);
  flex-shrink: 0;
}

.arova-chat-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.arova-chat-avatar-beacon {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #090d18;
  box-shadow: 0 0 6px #10b981;
}

.arova-chat-titles {
  display: flex;
  flex-direction: column;
}

.my-chat-title,
.arova-chat-title {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arova-chat-subtitle {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

.arova-chat-subtitle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: arovaPulseGreen 2s infinite;
}

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

.arova-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arova-chat-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.arova-chat-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/* Chat Body & Messages                                                       */
/* -------------------------------------------------------------------------- */

.my-chat-body,
.arova-chat-body {
  flex: 1 1 auto;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #080c16;
  scroll-behavior: smooth;
}

/* Custom Sleek Scrollbar */
.arova-chat-body::-webkit-scrollbar {
  width: 5px;
}

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

.arova-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

.arova-chat-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.35);
}

/* Welcome Card */
.arova-chat-welcome {
  background: rgba(16, 23, 40, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 4px;
  text-align: left;
}

.arova-chat-welcome-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arova-chat-welcome-desc {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* Starter Prompts Container */
.arova-chat-prompts-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
}

.arova-chat-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arova-chat-prompt-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arova-chat-prompt-pill:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: rgba(0, 229, 255, 0.4);
  color: #ffffff;
  transform: translateX(2px);
}

.arova-chat-prompt-arrow {
  color: #00e5ff;
  font-size: 11px;
  opacity: 0.85;
}

/* User Message Bubble — Elegant Royal Sapphire with Spring Pop-In */
.my-user-msg,
.arova-user-msg {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff !important;
  padding: 10px 15px;
  border-radius: 18px 18px 4px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 82%;
  word-wrap: break-word;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.32);
  animation: arovaUserSpringPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

@keyframes arovaUserSpringPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.88);
  }
  70% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.my-user-msg .arova-msg-time,
.arova-user-msg .arova-msg-time {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px;
  margin-top: 4px;
  text-align: right;
  user-select: none;
}

/* Bot Message Bubble — High-Contrast Dark Slate Surface */
.my-bot-msg,
.arova-bot-msg {
  align-self: flex-start;
  background: #111728;
  color: #f1f5f9;
  padding: 13px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 88%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-wrap: break-word;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: arovaBotSpringPop 0.28s ease-out;
  transform-origin: bottom left;
}

@keyframes arovaBotSpringPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.arova-bot-msg .arova-msg-time {
  color: #64748b;
  font-size: 10px;
  margin-top: 6px;
  text-align: left;
  user-select: none;
}

/* Markdown Rendering Inside Bot Messages */
.arova-bot-msg p {
  color: #f1f5f9;
  margin: 0 0 8px 0;
  line-height: 1.6;
}
.arova-bot-msg p:last-child {
  margin-bottom: 0;
}

.arova-bot-msg strong {
  color: #ffffff;
  font-weight: 600;
}

.arova-bot-msg em {
  font-style: italic;
  color: #cbd5e1;
}

/* Restoring Crisp, Glowing Cyan Bullet Points (Overriding Tailwind reset) */
.arova-bot-msg ul {
  list-style-type: disc !important;
  margin: 8px 0 10px 22px !important;
  padding-left: 0 !important;
}

.arova-bot-msg ol {
  list-style-type: decimal !important;
  margin: 8px 0 10px 22px !important;
  padding-left: 0 !important;
}

.arova-bot-msg li {
  display: list-item !important;
  list-style: inherit !important;
  margin-bottom: 6px !important;
  line-height: 1.55 !important;
  color: #e2e8f0 !important;
}

.arova-bot-msg li:last-child {
  margin-bottom: 0 !important;
}

.arova-bot-msg li::marker {
  color: #00e5ff !important;
  font-size: 1.1em !important;
}

.arova-bot-msg code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 2px 6px;
  border-radius: 4px;
  color: #00e5ff;
}

.arova-bot-msg pre {
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  overflow-x: auto;
  margin: 8px 0;
}

.arova-bot-msg pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
}

.arova-bot-msg a {
  color: #00e5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.arova-bot-msg a:hover {
  color: #67e8f9;
}

/* -------------------------------------------------------------------------- */
/* Typing Indicator & Streaming Cursor                                        */
/* -------------------------------------------------------------------------- */

.arova-thinking-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}

.arova-thinking-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #090d18;
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: arovaThinkingPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.arova-thinking-avatar img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

@keyframes arovaThinkingPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 10px 2px rgba(0, 229, 255, 0.45);
  }
}

.arova-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
}

.arova-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  animation: arovaDotBounce 1.3s infinite ease-in-out;
}

.arova-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
  background: #38bdf8;
}

.arova-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
  background: #2563eb;
}

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

/* Real-time Streaming Cursor */
.arova-streaming-cursor {
  display: inline-block;
  width: 2.5px;
  height: 15px;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 1px;
  animation: arovaCursorBlink 0.65s infinite ease-in-out;
}

@keyframes arovaCursorBlink {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.15;
    transform: scaleY(0.75);
  }
}

/* Error Message */
.arova-error-msg {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}

.arova-retry-btn {
  margin-top: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
}

.arova-retry-btn:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Input Bar & Footer                                                         */
/* -------------------------------------------------------------------------- */

.my-chat-input-bar,
.arova-chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 16px 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d1222;
  align-items: center;
  flex-shrink: 0;
}

.my-chat-input-bar input,
.arova-chat-input-bar input {
  flex: 1;
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.arova-chat-input-bar input::placeholder {
  color: #64748b;
}

.arova-chat-input-bar input:focus {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  background: #080d1a;
}

.my-chat-input-bar button,
.arova-chat-send-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
  outline: none;
  overflow: visible;
}

.arova-chat-send-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

.arova-chat-send-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.arova-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arova-chat-send-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.arova-chat-send-btn:hover:not(:disabled):not(.is-launching) svg {
  transform: translateX(1.5px) translateY(-1px);
}

/* Send Button Paper Plane Takeoff Animation */
.arova-chat-send-btn.is-launching svg {
  animation: arovaPlaneTakeoff 0.52s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes arovaPlaneTakeoff {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translate(-3px, 3px) scale(0.92) rotate(-12deg);
    opacity: 1;
  }
  60% {
    transform: translate(26px, -26px) scale(0.3) rotate(25deg);
    opacity: 0;
  }
  61% {
    transform: translate(-18px, 18px) scale(0.3) rotate(0deg);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Send Button Radiant Ripple on launch */
.arova-chat-send-btn.is-launching::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #00e5ff;
  pointer-events: none;
  animation: arovaSendRipple 0.52s ease-out forwards;
}

@keyframes arovaSendRipple {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Chatbot Bottom Watermark */
.arova-chat-watermark {
  padding: 4px 14px 8px 14px;
  background: #0d1222;
  text-align: center;
  font-size: 10px;
  color: #64748b;
  user-select: none;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.arova-chat-watermark a {
  color: #00e5ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.arova-chat-watermark a:hover {
  color: #67e8f9;
}

/* -------------------------------------------------------------------------- */
/* Responsive Mobile Adjustments (PERFECT Native Mobile App Experience)       */
/* -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  /* On mobile, when the chatbot is open, HIDE the floating launcher and teaser completely */
  #arova-chat-widget-root.is-open,
  body.arova-chat-locked #arova-chat-widget-root {
    display: none !important;
  }

  /* Lock viewport scroll so background page cannot scroll under the chatbot */
  html.arova-chat-locked,
  body.arova-chat-locked {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }

  /* Launcher position when closed on mobile */
  #arova-chat-widget-root {
    bottom: 20px;
    right: 20px;
  }

  .arova-chat-fab {
    width: 56px;
    height: 56px;
  }

  .arova-fab-logo {
    width: 34px;
    height: 34px;
  }

  .arova-chat-teaser {
    bottom: 68px;
    right: 0;
    max-width: 260px;
    font-size: 12px;
  }

  /* Chat Window on Mobile: Pinned to Top & Visual Viewport (Prevents Header from Pushing Off-Screen) */
  .my-chat-card,
  .arova-chat-card {
    position: fixed !important;
    top: var(--arova-chat-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: var(--arova-chat-h, 100dvh) !important;
    max-height: var(--arova-chat-h, 100dvh) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    z-index: 100000 !important;
    transform: translateY(100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .my-chat-card.is-open,
  .arova-chat-card.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Mobile Header with Safe Area Notch Support */
  .my-chat-header,
  .arova-chat-header {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
    flex-shrink: 0 !important;
  }

  .arova-chat-avatar {
    width: 36px;
    height: 36px;
  }

  .arova-chat-avatar img {
    width: 24px;
    height: 24px;
  }

  .arova-chat-title {
    font-size: 15px;
  }

  /* Larger touch targets on mobile */
  .arova-chat-action-btn {
    width: 36px;
    height: 36px;
  }

  /* Messages body scrolls smoothly on touch devices with min-height: 0 so flexbox shrinks on keyboard open */
  .my-chat-body,
  .arova-chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 16px 14px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto !important;
    gap: 14px;
  }

  .arova-bot-msg {
    max-width: 90%;
    font-size: 13.5px;
  }

  .arova-user-msg {
    max-width: 88%;
    font-size: 13.5px;
  }

  /* Mobile Input Bar with Safe Area Bottom */
  .my-chat-input-bar,
  .arova-chat-input-bar {
    padding-top: 10px;
    padding-bottom: 8px;
    padding-left: 14px;
    padding-right: 14px;
    flex-shrink: 0 !important;
  }

  /* Font size 16px prevents iOS Safari from automatically zooming into the input */
  .my-chat-input-bar input,
  .arova-chat-input-bar input {
    font-size: 16px !important;
    padding: 11px 16px;
  }

  .my-chat-input-bar button,
  .arova-chat-send-btn {
    width: 42px;
    height: 42px;
  }

  /* Safe area padding for iPhone Home Indicator bar */
  .arova-chat-watermark {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    flex-shrink: 0 !important;
  }
}
