.riya-assistant {
  position: fixed;
  right: 10px;
  bottom: 15px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

/* â”€â”€ Greeting bubble floating above character â”€â”€ */
.riya-greeting-bubble {
  pointer-events: none;
  position: absolute;
  right: 80px;
  bottom: 110px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 10px;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.10);
  max-width: 180px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5001;
}

.riya-greeting-bubble span {
  font-family: 'Newsreader', serif;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.riya-greeting-tail {
  position: absolute;
  bottom: -8px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

/* Hide greeting bubble when chat panel is open */
.is-open .riya-greeting-bubble {
  opacity: 0 !important;
  pointer-events: none;
}

/* Flex layout for bubble header */
.riya-bubble-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* â”€â”€ Bubble header name + mic indicator â”€â”€ */
.riya-bubble-name {
  font-family: 'Newsreader', serif;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.riya-mic-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  font-family: 'Newsreader', serif;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  animation: mic-pulse 1.6s ease-in-out infinite;
}

.is-listening .riya-mic-indicator {
  display: flex;
}

@keyframes mic-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* â”€â”€ User live transcript card (distinct from AI response) â”€â”€ */
.riya-response-card.riya-user-transcript {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 14px 14px 4px 14px;
  color: #0c4a6e;
  font-style: italic;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 4px;
}

.riya-response-card.riya-user-transcript::before {
  content: "You: ";
  font-weight: 700;
  font-style: normal;
  color: #0ea5e9;
}

.riya-launcher,
.riya-thought-bubble {
  pointer-events: auto;
}


.riya-launcher {
  position: relative;
  width: 110px;
  height: 110px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.riya-launcher-hint {
  position: absolute;
  right: -4px;
  bottom: 115px;
  background-color: #fff;
  color: #000000;
  font-family: 'Newsreader', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.18);
  pointer-events: none;
  user-select: none;
}

.riya-launcher:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Robot image launcher styles */
.riya-launcher-model-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: transparent;
  animation: aria-float 3s ease-in-out infinite;
  overflow: visible;
  transition: filter 200ms ease;
  filter:
    drop-shadow(0 0 10px rgba(0, 200, 255, 0.6))
    drop-shadow(0 0 20px rgba(0, 180, 255, 0.25));
}

.riya-launcher:hover .riya-launcher-model-shell {
  filter:
    drop-shadow(0 0 16px rgba(0, 220, 255, 0.9))
    drop-shadow(0 0 30px rgba(0, 180, 255, 0.5));
}

.riya-launcher-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

@keyframes aria-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.riya-thought-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(260px, calc(100vw - 24px));
  padding: 12px 16px 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  color: #0f172a;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  transform-origin: bottom right;
  transition: all 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.riya-bubble-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.riya-close-button {
  position: absolute;
  top: -4px;
  right: -4px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 10;
}
.riya-close-button:hover {
  color: #0f172a;
}

.riya-assistant.is-open .riya-thought-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
