﻿#aanya-ai-root {
  --aanya-green: #10b981;
  --aanya-green-light: #34d399;
  --aanya-dark: #071019;
  --aanya-panel: #0d1724;
  --aanya-border: rgba(148,163,184,.16);
  font-family: Inter, Arial, sans-serif;
}
#aanya-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(52,211,153,.35);
  border-radius: 18px;
  padding: 10px 15px 10px 9px;
  color: white;
  background:
    linear-gradient(
      135deg,
      #0d1724,
      #101d2c
    );
  box-shadow:
    0 18px 50px rgba(0,0,0,.35),
    0 0 30px rgba(16,185,129,.14);
  cursor: pointer;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}
#aanya-launcher:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 55px rgba(0,0,0,.4),
    0 0 35px rgba(16,185,129,.25);
}
.aanya-launcher-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #052e24;
  background:
    linear-gradient(
      135deg,
      #6ee7b7,
      #10b981
    );
  box-shadow:
    0 0 22px rgba(16,185,129,.3);
}
.aanya-launcher-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.aanya-launcher-text strong {
  font-size: 14px;
}
.aanya-launcher-text span {
  margin-top: 2px;
  font-size: 10px;
  color: #94a3b8;
}
.aanya-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 10px #22c55e;
}
#aanya-window {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 99999;
  width: min(
    410px,
    calc(100vw - 28px)
  );
  height: min(
    650px,
    calc(100vh - 125px)
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border:
    1px solid var(--aanya-border);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      #0c1622,
      #080f18
    );
  color: white;
  box-shadow:
    0 35px 90px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transform:
    translateY(20px)
    scale(.97);
  transition:
    opacity .22s ease,
    transform .22s ease;
}
#aanya-window.active {
  opacity: 1;
  pointer-events: auto;
  transform:
    translateY(0)
    scale(1);
}
.aanya-header {
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom:
    1px solid var(--aanya-border);
  background:
    linear-gradient(
      135deg,
      rgba(16,185,129,.12),
      transparent
    );
}
.aanya-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.aanya-avatar,
.aanya-message-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #052e24;
  background:
    linear-gradient(
      135deg,
      #6ee7b7,
      #10b981
    );
}
.aanya-brand > div:last-child {
  display: flex;
  flex-direction: column;
}
.aanya-brand strong {
  font-size: 15px;
}
.aanya-brand span {
  margin-top: 4px;
  font-size: 10px;
  color: #94a3b8;
}
.aanya-brand span i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 999px;
  background: #22c55e;
}
#aanya-close {
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 10px;
  color: #94a3b8;
  background:
    rgba(255,255,255,.05);
  font-size: 24px;
  cursor: pointer;
}
.aanya-mode-switch {
  padding: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border-bottom:
    1px solid var(--aanya-border);
}
.aanya-mode {
  padding: 9px;
  border:
    1px solid transparent;
  border-radius: 11px;
  color: #94a3b8;
  background:
    rgba(255,255,255,.025);
  cursor: pointer;
}
.aanya-mode.active {
  color: #6ee7b7;
  border-color:
    rgba(16,185,129,.25);
  background:
    rgba(16,185,129,.09);
}
#aanya-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.aanya-message {
  margin-bottom: 13px;
  display: flex;
  gap: 9px;
}
.aanya-message.user {
  justify-content: flex-end;
}
.aanya-message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 12px;
}
.aanya-bubble {
  max-width: 82%;
  padding: 11px 13px;
  border-radius:
    6px 16px 16px 16px;
  border:
    1px solid rgba(148,163,184,.12);
  background:
    rgba(255,255,255,.045);
  font-size: 13px;
  line-height: 1.55;
}
.aanya-message.user .aanya-bubble {
  border-radius:
    16px 6px 16px 16px;
  color: #052e24;
  background:
    linear-gradient(
      135deg,
      #6ee7b7,
      #34d399
    );
  font-weight: 600;
}
.aanya-bubble p {
  margin: 5px 0;
}
.aanya-bubble small {
  color: #94a3b8;
}
.aanya-suggestions {
  padding: 0 13px 10px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
}
.aanya-suggestions button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border:
    1px solid rgba(16,185,129,.18);
  border-radius: 999px;
  color: #a7f3d0;
  background:
    rgba(16,185,129,.06);
  font-size: 10px;
  cursor: pointer;
}
.aanya-typing {
  display: none;
  padding:
    5px 16px 9px;
  color: #94a3b8;
  font-size: 10px;
}
.aanya-typing.active {
  display: block;
}
.aanya-typing span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 999px;
  background: #34d399;
  animation:
    aanyaPulse 1s infinite;
}
.aanya-typing span:nth-child(2) {
  animation-delay: .15s;
}
.aanya-typing span:nth-child(3) {
  animation-delay: .3s;
}
@keyframes aanyaPulse {
  0%, 100% {
    opacity: .25;
  }
  50% {
    opacity: 1;
  }
}
#aanya-form {
  padding: 11px;
  display: flex;
  gap: 8px;
  border-top:
    1px solid var(--aanya-border);
}
#aanya-input {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 110px;
  border:
    1px solid rgba(148,163,184,.14);
  border-radius: 13px;
  outline: none;
  padding: 11px 12px;
  color: white;
  background:
    rgba(255,255,255,.045);
}
#aanya-input:focus {
  border-color:
    rgba(52,211,153,.45);
}
#aanya-send {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 13px;
  color: #052e24;
  background:
    linear-gradient(
      135deg,
      #6ee7b7,
      #10b981
    );
  font-size: 18px;
  cursor: pointer;
}
.aanya-footer {
  padding: 0 12px 10px;
  text-align: center;
  color: #64748b;
  font-size: 9px;
}
.aanya-card-results {
  margin-top: 11px;
}
.aanya-card-title {
  margin-bottom: 7px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
}
.aanya-product-card {
  position: relative;
  margin-top: 7px;
  padding: 10px;
  display: flex;
  gap: 9px;
  border:
    1px solid rgba(16,185,129,.16);
  border-radius: 11px;
  background:
    rgba(16,185,129,.05);
}
.aanya-product-card > div:last-child {
  display: flex;
  flex-direction: column;
}
.aanya-product-card strong {
  font-size: 11px;
}
.aanya-product-card span,
.aanya-product-card small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 9px;
}
.aanya-product-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #052e24;
  background: #34d399;
  font-size: 10px;
  font-weight: 900;
}
@media (max-width: 600px) {
  #aanya-launcher {
    right: 14px;
    bottom: 14px;
  }
  .aanya-launcher-text {
    display: none;
  }
  #aanya-window {
    right: 7px;
    bottom: 78px;
    width:
      calc(100vw - 14px);
    height:
      calc(100vh - 90px);
    border-radius: 20px;
  }
}
