.mvm-bot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  font-family: Manrope, sans-serif;
}
.mvm-bot__fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #10b981 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(4, 120, 87, .38);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mvm-bot__fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(4, 120, 87, .45);
}
.mvm-bot__fab-glow {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(52, 211, 153, .35), transparent 70%);
  z-index: -1;
  animation: mvm-bot-glow 2.4s ease-in-out infinite;
}
.mvm-bot__fab-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
}
.mvm-bot__fab-pulse {
  position: absolute;
  left: 18px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .55);
  animation: mvm-bot-pulse 1.8s ease-out infinite;
}
.mvm-bot__fab-label {
  font-family: Outfit, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  padding-right: 4px;
}
.mvm-bot.is-open .mvm-bot__fab { display: none; }

.mvm-bot__panel {
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 180px at 10% 0%, rgba(16, 185, 129, .16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe3ee;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.mvm-bot__panel[hidden] { display: none !important; }

.mvm-bot__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #064e3b, #047857 60%, #059669);
  color: #fff;
}
.mvm-bot__avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
}
.mvm-bot__head h2 {
  margin: 0;
  font-family: Fraunces, Outfit, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.mvm-bot__head p {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #a7f3d0;
}
.mvm-bot__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mvm-bot__close:hover { background: rgba(255, 255, 255, .2); }

.mvm-bot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mvm-bot__bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
}
.mvm-bot__bubble.is-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}
.mvm-bot__bubble.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.mvm-bot__bubble a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}
.mvm-bot__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.mvm-bot__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: mvm-bot-dot 1s infinite ease-in-out;
}
.mvm-bot__typing i:nth-child(2) { animation-delay: .15s; }
.mvm-bot__typing i:nth-child(3) { animation-delay: .3s; }

.mvm-bot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}
.mvm-bot__chips button {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: Outfit, Manrope, sans-serif;
}
.mvm-bot__chips button:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.mvm-bot__composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.mvm-bot__composer input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
}
.mvm-bot__composer input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
  background: #fff;
}
.mvm-bot__composer button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #34d399, #059669);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(16, 185, 129, .28);
}
.mvm-bot__composer button:hover { filter: brightness(1.05); }

.top-bar .mvm-bot-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a7f3d0;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, .28);
  background: rgba(16, 185, 129, .12);
  transition: background .15s ease, color .15s ease;
}
.top-bar .mvm-bot-top:hover {
  color: #fff;
  background: rgba(16, 185, 129, .22);
}
.top-bar .mvm-bot-top svg { flex-shrink: 0; }

@keyframes mvm-bot-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes mvm-bot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .5); }
  70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
@keyframes mvm-bot-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 900px) {
  .mvm-bot {
    right: 14px;
    bottom: 78px;
  }
  .mvm-bot__fab-label { display: none; }
  .mvm-bot__fab { padding: 8px; }
  .mvm-bot__panel {
    width: min(360px, calc(100vw - 20px));
    height: min(520px, calc(100vh - 100px));
  }
}
