/* ==========================================================================
   خوارزم AI — المساعد الذكي لقسم علوم الحاسوب
   Masterpiece AI Agent Styling (ai-agent.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. زر إطلاق المساعد العائم (Floating Launcher Button)
   -------------------------------------------------------------------------- */
.ai-agent-launcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(244, 237, 224, 0.75), rgba(244, 237, 224, 0.50));
  border: 1.5px solid var(--accent-badge-border);
  border-radius: var(--radius-full);
  color:black;
  font-family: var(--font-arabic);
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 91, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ai-agent-launcher:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent-violet);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 107, 91, 0.45);
}

.ai-launcher-icon-box {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-violet), #e5574a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 91, 0.6);
  flex-shrink: 0;
}

.ai-launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-violet);
  animation: ai-pulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
  pointer-events: none;
}

@keyframes ai-pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.ai-launcher-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.ai-launcher-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-launcher-title .ai-sparkle-icon {
  color: var(--accent-violet-light);
  animation: ai-spin-slow 8s linear infinite;
}

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

.ai-launcher-status {
  font-size: 0.725rem;
  color: #34d399; /* Green active status */
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.ai-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: ai-dot-blink 1.8s ease-in-out infinite;
}

@keyframes ai-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   2. نافذة الدردشة الرئيسية (AI Chat Window Modal / Drawer)
   -------------------------------------------------------------------------- */
.ai-agent-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 440px;
  max-width: calc(100vw - 2rem);
  height: 660px;
  max-height: calc(100vh - 4rem);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(255, 107, 91, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-agent-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* وضع ملء الشاشة المتوسع (Expanded Mode) */
.ai-agent-window.is-expanded {
  width: 820px;
  height: 85vh;
  max-height: 85vh;
}

/* --------------------------------------------------------------------------
   3. رأس نافذة الشات (Chat Header)
   -------------------------------------------------------------------------- */
.ai-chat-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(27, 45, 82, 0.9), rgba(20, 33, 61, 0.85));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ai-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-header-avatar {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-violet), #c026d3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 91, 0.4);
}

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

.ai-header-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-model-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: var(--accent-badge-bg);
  border: 1px solid var(--accent-badge-border);
  border-radius: var(--radius-full);
  color: var(--accent-violet-light);
}

.ai-header-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-header-btn {
  background: rgba(244, 237, 224, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-header-btn:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. منطقة الرسائل (Chat Messages Container)
   -------------------------------------------------------------------------- */
.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.ai-chat-body::-webkit-scrollbar {
  width: 6px;
}
.ai-chat-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(244, 237, 224, 0.2);
  border-radius: var(--radius-full);
}
.ai-chat-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-violet);
}

/* --------------------------------------------------------------------------
   5. فقاعات المحادثة (Message Bubbles)
   -------------------------------------------------------------------------- */
.ai-message {
  display: flex;
  gap: 0.75rem;
  max-width: 90%;
  animation: ai-msg-appear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ai-msg-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-message-user {
  align-self: flex-start; /* In RTL, start is right side */
  flex-direction: row;
}

.ai-message-assistant {
  align-self: flex-end; /* In RTL, end is left side */
  flex-direction: row-reverse;
  max-width: 94%;
}

.ai-avatar-tiny {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.ai-avatar-user {
  background: rgba(244, 237, 224, 0.12);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.ai-avatar-bot {
  background: linear-gradient(135deg, var(--accent-violet), #c026d3);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 107, 91, 0.4);
}

.ai-bubble {
  padding: 0.875rem 1.15rem;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
  position: relative;
  word-break: break-word;
}

.ai-bubble-user {
  background: linear-gradient(135deg, rgba(255, 107, 91, 0.2), rgba(255, 107, 91, 0.08));
  border: 1px solid var(--accent-badge-border);
  border-bottom-right-radius: 4px;
  color: #ffffff;
}

.ai-bubble-assistant {
  background: rgba(27, 45, 82, 0.7);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* تنسيق الماركداون داخل إجابات الذكاء الاصطناعي */
.ai-bubble-assistant p {
  margin-bottom: 0.65rem;
}
.ai-bubble-assistant p:last-child {
  margin-bottom: 0;
}

.ai-bubble-assistant strong {
  color: var(--accent-violet-light);
  font-weight: 700;
}

.ai-bubble-assistant ul, 
.ai-bubble-assistant ol {
  margin: 0.5rem 1.25rem 0.75rem 0;
  padding: 0;
}

.ai-bubble-assistant li {
  margin-bottom: 0.35rem;
}

/* كتل الأكواد البرمجية الفاخرة داخل الشات */
.ai-code-block-wrapper {
  margin: 0.75rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b1226;
  border: 1px solid rgba(244, 237, 224, 0.15);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.ai-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.75rem;
  background: rgba(20, 33, 61, 0.9);
  border-bottom: 1px solid rgba(244, 237, 224, 0.08);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-subtle);
  direction: ltr;
}

.ai-code-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.725rem;
  font-family: var(--font-arabic);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.ai-code-copy-btn:hover {
  background: rgba(255, 107, 91, 0.2);
  color: var(--accent-violet-light);
}

.ai-code-content {
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  line-height: 1.5;
  white-space: pre;
}

.ai-code-content code {
  font-family: inherit;
}

.ai-inline-code {
  font-family: var(--font-mono);
  font-size: 0.825em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 107, 91, 0.25);
  color: var(--accent-violet-light);
  direction: ltr;
  display: inline-block;
}

/* شريط التفاعل أسفل رسالة المساعد */
.ai-msg-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(244, 237, 224, 0.08);
}

.ai-msg-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.ai-msg-btn:hover {
  color: var(--accent-violet-light);
  background: rgba(244, 237, 224, 0.06);
}

/* --------------------------------------------------------------------------
   6. مؤشر الكتابة التفاعلي الحي (Typing / Streaming Indicator)
   -------------------------------------------------------------------------- */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-violet);
  animation: ai-wave 1.4s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* مؤشر تدفق السترينغ المستمر */
.ai-cursor-blink {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent-violet);
  margin-right: 3px;
  vertical-align: middle;
  animation: ai-cursor 0.8s infinite;
}

@keyframes ai-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. رقاقات الاقتراحات السريعة (Quick Suggestion Chips)
   -------------------------------------------------------------------------- */
.ai-chips-wrapper {
  padding: 0.5rem 1.25rem 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.ai-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  background: rgba(27, 45, 82, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-arabic);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ai-chip:hover {
  background: var(--accent-badge-bg);
  border-color: var(--accent-violet);
  color: var(--accent-violet-light);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. شريط الإدخال والإرسال (Input Box & Controls)
   -------------------------------------------------------------------------- */
.ai-input-area {
  padding: 1rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(11, 18, 38, 0.95));
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.ai-input-box-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0.75rem;
  transition: var(--transition-smooth);
}

.ai-input-box-wrapper:focus-within {
  border-color: var(--accent-violet);
  box-shadow: 0 0 16px rgba(255, 107, 91, 0.3);
}

.ai-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.925rem;
  line-height: 1.5;
  resize: none;
  max-height: 120px;
  min-height: 24px;
  padding: 0.25rem 0.25rem;
  direction: rtl;
}

.ai-textarea::placeholder {
  color: var(--text-subtle);
}

.ai-send-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-violet), #e5574a);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 91, 0.35);
  transition: var(--transition-fast);
}

.ai-send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 107, 91, 0.55);
}

.ai-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ai-stop-btn {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.ai-stop-btn:hover {
  background: #dc2626;
}

.ai-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.ai-footer-link {
  color: var(--accent-violet-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}
.ai-footer-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   9. نافذة الإعدادات الفاخرة للذكاء الاصطناعي (Settings Modal)
   -------------------------------------------------------------------------- */
.ai-settings-modal {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 38, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.ai-settings-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ai-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.ai-settings-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-settings-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-right: 0.25rem;
}

.ai-setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ai-setting-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-setting-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ai-setting-input,
.ai-setting-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.ai-setting-input:focus,
.ai-setting-select:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 10px rgba(255, 107, 91, 0.25);
}

.ai-key-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ai-key-toggle-btn {
  position: absolute;
  left: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem;
}

.ai-settings-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}

.ai-btn-save {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-violet), #e5574a);
  border: none;
  color: #ffffff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 91, 0.4);
}

.ai-btn-cancel {
  background: rgba(244, 237, 224, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. أزرار النافبار الخاصة بالذكاء الاصطناعي
   -------------------------------------------------------------------------- */
.nav-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(255, 107, 91, 0.15), rgba(168, 85, 247, 0.15));
  border: 1.5px solid var(--accent-badge-border);
  color: var(--accent-violet-light);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-ai-btn:hover {
  background: var(--accent-violet);
  color: #ffffff;
  border-color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 91, 0.35);
}

/* --------------------------------------------------------------------------
   11. التجاوب مع شاشات الجوال والهواتف (Mobile Responsiveness)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .ai-agent-launcher {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem;
    border-radius: var(--radius-full);
  }

  .ai-launcher-text {
    display: none; /* إظهار الأيقونة العائمة فقط في الهواتف لتوفير المساحة */
  }

  .ai-agent-window {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 92vh;
    max-width: 100vw;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: none;
  }

  .ai-agent-window.is-expanded {
    width: 100vw;
    height: 92vh;
  }
}


/* ==========================================================================
   هوية المساعد البصرية (ai-launcher.svg / ai-avatar.svg)
   ========================================================================== */
.ai-agent-launcher { padding: 0.45rem 1.25rem 0.45rem 0.6rem; }

.ai-agent-launcher .ai-launcher-img {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(11, 18, 38, 0.45)) drop-shadow(0 0 10px rgba(77, 210, 200, 0.45));
  animation: ai-mascot-float 3.6s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-agent-launcher:hover .ai-launcher-img { transform: scale(1.08) rotate(-4deg); }

@keyframes ai-mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.ai-header-avatar {
  width: 3.2rem;
  height: 3.2rem;
  background: none;
  box-shadow: none;
  flex-shrink: 0;
}

.ai-header-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 10px rgba(77, 210, 200, 0.45));
}

.ai-avatar-tiny.ai-avatar-bot {
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  box-shadow: none;
}

.ai-avatar-bot img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 6px rgba(77, 210, 200, 0.35));
}

@media (prefers-reduced-motion: reduce) {
  .ai-agent-launcher .ai-launcher-img { animation: none; }
}

@media (max-width: 640px) {
  .ai-agent-launcher { padding: 0.35rem; }
  .ai-agent-launcher .ai-launcher-img { width: 3.6rem; height: 3.6rem; }
}
