/* ==========================================================================
   TERAPİYLE - INTERACTIVE MASCOT ASSISTANT WIDGET (assistant.css)
   Aesthetic, fluid, responsive AI guidance & internal linking mascot
   ========================================================================== */

/* ROOT VARIABLES & SCOPE */
:root {
  --asst-primary: #0e82fd;
  --asst-primary-dark: #0266d0;
  --asst-primary-light: #ebf4ff;
  --asst-cyan: #38bdf8;
  --asst-dark: #0f172a;
  --asst-text: #1e293b;
  --asst-muted: #64748b;
  --asst-border: rgba(14, 130, 253, 0.14);
  --asst-bg-surface: #ffffff;
  --asst-shadow-window:
    0 24px 60px -8px rgba(15, 23, 42, 0.18),
    0 10px 24px -4px rgba(14, 130, 253, 0.12);
  --asst-radius-lg: 24px;
  --asst-radius-md: 16px;
  --asst-radius-sm: 10px;
  --asst-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.mascot-assistant-root {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9995;
  font-family: var(--asst-font);
  pointer-events: none;
}

.mascot-assistant-root * {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. FLOATING GREETING CALLOUT POPUP
   -------------------------------------------------------------------------- */
.mascot-callout-bubble {
  position: absolute;
  bottom: 84px;
  right: 6px;
  width: 290px;
  background: #ffffff;
  border: 1.5px solid rgba(14, 130, 253, 0.22);
  border-radius: 18px;
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(14, 130, 253, 0.1);
  padding: 12px 14px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transform-origin: bottom right;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.mascot-callout-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mascot-callout-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.mascot-callout-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e0f2fe 0%, #eff6ff 100%);
  border-radius: 12px;
  padding: 2px;
}

.mascot-callout-avatar img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(14, 130, 253, 0.2));
  animation: mascotWiggle 3.5s ease-in-out infinite;
}

.mascot-callout-text {
  flex-grow: 1;
}

.callout-greeting {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--asst-primary);
  margin-bottom: 2px;
}

.callout-msg {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--asst-text);
}

.callout-arrow-icon {
  color: var(--asst-primary);
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.mascot-callout-inner:hover .callout-arrow-icon {
  transform: translateX(4px);
}

.mascot-callout-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.mascot-callout-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

.mascot-callout-pointer {
  position: absolute;
  bottom: -9px;
  right: 28px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 1.5px solid rgba(14, 130, 253, 0.22);
  border-bottom: 1.5px solid rgba(14, 130, 253, 0.22);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   2. FLOATING MASCOT LAUNCHER BUTTON
   -------------------------------------------------------------------------- */
.mascot-launcher-btn {
  pointer-events: auto;
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid rgba(14, 130, 253, 0.35);
  box-shadow:
    0 10px 28px rgba(14, 130, 253, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}

.mascot-launcher-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow:
    0 16px 36px rgba(14, 130, 253, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--asst-primary);
}

.mascot-launcher-btn:active {
  transform: scale(0.96) translateY(0);
}

/* Halo Pulse Glow */
.mascot-halo-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(14, 130, 253, 0.5);
  animation: mascotHaloWave 3s ease-out infinite;
  pointer-events: none;
}

@keyframes mascotHaloWave {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  65% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Mascot Figure Inside Button */
.mascot-figure-wrapper {
  position: relative;
  width: 52px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.mascot-figure-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(14, 130, 253, 0.25));
  animation: mascotFloat 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.mascot-launcher-btn:hover .mascot-figure-img {
  animation: mascotJoy 0.8s ease-in-out infinite alternate;
}

/* Online Indicator Dot */
.mascot-online-dot {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 13px;
  height: 13px;
  background: #10b981;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Unread Badge */
.mascot-badge {
  position: absolute;
  top: -4px;
  left: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: bounceBadge 2s ease infinite;
}

/* Close icon (swaps when open) */
.mascot-close-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--asst-primary);
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When launcher is active (window is open) */
.mascot-launcher-btn.is-open .mascot-figure-wrapper,
.mascot-launcher-btn.is-open .mascot-badge,
.mascot-launcher-btn.is-open .mascot-halo-pulse {
  opacity: 0;
  pointer-events: none;
}

.mascot-launcher-btn.is-open .mascot-close-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* --------------------------------------------------------------------------
   3. CHAT WINDOW PANEL
   -------------------------------------------------------------------------- */
.mascot-window {
  pointer-events: auto;
  position: absolute;
  bottom: 82px;
  right: 0;
  width: 570px;
  max-width: calc(100vw - 36px);
  height: 610px;
  max-height: calc(100vh - 120px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 130, 253, 0.2);
  border-radius: var(--asst-radius-lg);
  box-shadow: var(--asst-shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   4. WINDOW HEADER
   -------------------------------------------------------------------------- */
.asst-header {
  background: linear-gradient(135deg, #0e82fd 0%, #0369a1 100%);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(14, 130, 253, 0.15);
  position: relative;
  z-index: 2;
}

.asst-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asst-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  padding: 3px;
  flex-shrink: 0;
}

.asst-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asst-status-ring {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.asst-header-titles {
  display: flex;
  flex-direction: column;
}

.asst-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.asst-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.asst-verified-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.asst-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

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

.asst-btn-action {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.asst-btn-action:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.asst-btn-action:active {
  transform: scale(0.95);
}

.asst-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
}

/* --------------------------------------------------------------------------
   5. WINDOW BODY (CONVERSATION STREAM)
   -------------------------------------------------------------------------- */
.asst-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

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

.asst-body::-webkit-scrollbar-thumb {
  background: rgba(14, 130, 253, 0.25);
  border-radius: 4px;
}

.asst-messages-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Message Rows */
.asst-msg-row {
  display: flex;
  gap: 10px;
  max-width: 92%;
  animation: asstMsgFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

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

/* Mini Avatars */
.asst-mini-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(14, 130, 253, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(14, 130, 253, 0.1);
}

.asst-mini-avatar img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Message Bubbles */
.asst-msg-bubble {
  padding: 12px 15px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
}

.asst-msg-row.bot .asst-msg-bubble {
  background: #ffffff;
  color: var(--asst-text);
  border-radius: 18px 18px 18px 4px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.asst-msg-row.user .asst-msg-bubble {
  background: linear-gradient(135deg, #0e82fd 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 3px 10px rgba(14, 130, 253, 0.25);
}

.asst-msg-bubble p {
  margin: 0 0 8px 0;
}

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

/* Typing Indicator Bubble */
.asst-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
}

.asst-typing-bubble {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--asst-primary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE CHIPS & INTERNAL LINK CARDS
   -------------------------------------------------------------------------- */
/* Suggestion Chips Container */
.asst-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.asst-chip {
  background: #eff6ff;
  border: 1px solid rgba(14, 130, 253, 0.25);
  color: var(--asst-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-family: inherit;
}

.asst-chip:hover {
  background: var(--asst-primary);
  color: #ffffff;
  border-color: var(--asst-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(14, 130, 253, 0.2);
}

.asst-chip:active {
  transform: translateY(0);
}

.asst-chip i {
  font-size: 11px;
}

/* Card Containers inside Chat */
.asst-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.asst-card {
  background: #ffffff;
  border: 1.2px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 10px 12px;
  transition: all 0.22s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.asst-card:hover {
  border-color: var(--asst-primary);
  box-shadow: 0 6px 16px rgba(14, 130, 253, 0.12);
  transform: translateY(-2px);
}

/* EXPERT CARD */
.asst-card.expert {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asst-exp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--asst-primary-light);
}

.asst-exp-content {
  flex-grow: 1;
  min-width: 0;
}

.asst-exp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--asst-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asst-exp-role {
  font-size: 11.5px;
  color: var(--asst-muted);
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asst-exp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.asst-exp-rating {
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 2px;
}

.asst-exp-tags {
  color: var(--asst-primary);
  background: var(--asst-primary-light);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asst-card-action-btn {
  background: var(--asst-primary);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.asst-card-action-btn:hover {
  background: var(--asst-primary-dark);
}

/* TEST CARD */
.asst-card.test {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asst-test-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--asst-primary);
  font-size: 18px;
}

.asst-test-icon-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.asst-test-content {
  flex-grow: 1;
  min-width: 0;
}

.asst-test-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--asst-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asst-test-meta {
  font-size: 11px;
  color: var(--asst-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.asst-test-badge {
  color: #0284c7;
  font-weight: 600;
}

/* BLOG CARD */
.asst-card.blog {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asst-blog-thumb {
  width: 52px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.asst-blog-content {
  flex-grow: 1;
  min-width: 0;
}

.asst-blog-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--asst-dark);
  margin: 0 0 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.asst-blog-meta {
  font-size: 10.5px;
  color: var(--asst-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* MATCH BANNER CARD */
.asst-match-banner {
  background: linear-gradient(135deg, #0e82fd 0%, #38bdf8 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(14, 130, 253, 0.22);
}

.asst-match-banner-text h4 {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 2px 0;
}

.asst-match-banner-text p {
  font-size: 11px;
  margin: 0;
  opacity: 0.95;
}

.asst-match-banner-btn {
  background: #ffffff;
  color: var(--asst-primary) !important;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.asst-match-banner-btn:hover {
  background: #f8fafc;
}

/* SEARCH RESULTS TABS */
.asst-search-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  overflow-x: auto;
}

.asst-search-tab-btn {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--asst-muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.asst-search-tab-btn.active {
  background: var(--asst-primary-light);
  color: var(--asst-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. WINDOW FOOTER (INPUT & SEARCH)
   -------------------------------------------------------------------------- */
.asst-footer {
  padding: 10px 14px 14px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asst-quick-chips-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.asst-quick-chips-bar::-webkit-scrollbar {
  display: none;
}

.asst-quick-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--asst-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.asst-quick-tag:hover {
  background: #e2e8f0;
  color: var(--asst-dark);
}

.asst-input-container {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 6px 4px 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.asst-input-container:focus-within {
  border-color: var(--asst-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 130, 253, 0.15);
}

.asst-input-search-icon {
  color: #94a3b8;
  font-size: 13px;
  margin-right: 6px;
  flex-shrink: 0;
}

.asst-text-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--asst-dark);
  font-family: inherit;
  padding: 5px 0;
  min-width: 0;
}

.asst-text-input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

.asst-input-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asst-input-clear-btn:hover {
  color: #64748b;
}

.asst-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--asst-primary);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.asst-send-btn:hover {
  background: var(--asst-primary-dark);
  transform: scale(1.05);
}

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

/* --------------------------------------------------------------------------
   8. MASCOT ANIMATIONS KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

@keyframes mascotJoy {
  0% {
    transform: translateY(0px) rotate(-3deg) scale(1);
  }
  100% {
    transform: translateY(-5px) rotate(3deg) scale(1.04);
  }
}

@keyframes mascotWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-6deg);
  }
  40% {
    transform: rotate(6deg);
  }
  60% {
    transform: rotate(-3deg);
  }
  80% {
    transform: rotate(3deg);
  }
}

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

/* --------------------------------------------------------------------------
   9. MOBILE RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .mascot-assistant-root {
    bottom: 16px;
    right: 16px;
  }

  .mascot-launcher-btn {
    width: 60px;
    height: 60px;
  }

  .mascot-figure-wrapper {
    width: 46px;
    height: 52px;
  }

  .mascot-callout-bubble {
    bottom: 74px;
    right: 0;
    width: 270px;
  }

  .mascot-window {
    position: fixed;
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
    border-radius: 20px;
  }

  .asst-header {
    padding: 12px 14px;
  }

  .asst-body {
    padding: 12px;
  }
}

.mascot-assistant-root { isolation: isolate; }
@media (max-width: 480px) {
    .mascot-window { height: calc(100dvh - 84px); max-height: calc(100dvh - 84px); }
}
.asst-verified-pill { white-space: nowrap; flex-shrink: 0; }
.asst-header-info, .asst-header-titles { min-width: 0; }
.asst-header-actions { flex-shrink: 0; }
@media (max-width: 480px) {
    .asst-header-info { gap: 8px; }
    .asst-title-row { flex-wrap: wrap; gap: 3px 5px; }
    .asst-title { font-size: 14px; }
    .asst-verified-pill { font-size: 9px; padding: 2px 5px; }
    .asst-header-actions { gap: 4px; }
    .asst-btn-action { width: 28px; height: 28px; }
}
