.nc3-bot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.nc3-bot-toggle {
  border: 1px solid rgba(47, 107, 255, 0.35);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(21, 46, 119, 0.95));
  color: #fff;
  border-radius: 9999px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 16px 30px rgba(18, 32, 74, 0.35);
  animation: nc3BotShake 2.7s ease-in-out infinite;
}

.nc3-bot-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: #58d3ff;
  box-shadow: 0 0 0 4px rgba(88, 211, 255, 0.22);
}

.nc3-bot-logo {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.nc3-bot-panel {
  width: min(24rem, calc(100vw - 1.2rem));
  border-radius: 1.15rem;
  border: 1px solid rgba(101, 145, 255, 0.28);
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.nc3-bot-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem;
  border-bottom: 1px solid rgba(101, 145, 255, 0.2);
}

.nc3-bot-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(112, 161, 255, 0.92);
}

.nc3-bot-header h3 {
  margin-top: 0.25rem;
  font-size: 0.98rem;
  color: #fff;
}

.nc3-bot-meta {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: rgba(193, 203, 231, 0.85);
}

.nc3-bot-close {
  border: 1px solid rgba(101, 145, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: #dce6ff;
  border-radius: 0.5rem;
  width: 2rem;
  height: 2rem;
  line-height: 1;
  font-size: 1.2rem;
}

.nc3-bot-messages {
  max-height: min(54vh, 21rem);
  overflow-y: auto;
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
}

.nc3-row.bot {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  align-items: flex-end;
  gap: 0.45rem;
}

.nc3-bot-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid rgba(112, 161, 255, 0.5);
  background: rgba(8, 12, 22, 0.8);
  box-shadow: 0 0 0 3px rgba(112, 161, 255, 0.15);
}

.nc3-msg {
  border-radius: 0.8rem;
  padding: 0.72rem 0.78rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.nc3-msg.bot {
  background: rgba(39, 54, 96, 0.58);
  border: 1px solid rgba(112, 161, 255, 0.3);
  color: #e7eeff;
}

.nc3-msg.user {
  background: rgba(23, 142, 86, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.32);
  color: #eafcf2;
}

.nc3-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.nc3-typing span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 9999px;
  background: rgba(224, 233, 255, 0.9);
  animation: nc3Typing 1s infinite ease-in-out;
}

.nc3-typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.nc3-typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes nc3Typing {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.nc3-msg-action a {
  display: inline-block;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  padding: 0.56rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nc3-bot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0.9rem 0.75rem;
}

.nc3-quick-btn {
  border: 1px solid rgba(112, 161, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: #e0e9ff;
  border-radius: 9999px;
  padding: 0.36rem 0.65rem;
  font-size: 0.72rem;
}

.nc3-bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  border-top: 1px solid rgba(101, 145, 255, 0.2);
  padding: 0.75rem 0.85rem 0.85rem;
}

.nc3-bot-form input {
  border: 1px solid rgba(101, 145, 255, 0.24);
  background: rgba(8, 12, 21, 0.82);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.62rem 0.74rem;
  font-size: 0.82rem;
}

.nc3-bot-form button {
  border-radius: 0.75rem;
  border: 1px solid rgba(47, 107, 255, 0.35);
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.95), rgba(21, 46, 119, 0.95));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.62rem 0.8rem;
}

@media (max-width: 640px) {
  .nc3-bot {
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .nc3-bot-panel {
    width: calc(100vw - 1.2rem);
  }

  .nc3-bot-toggle {
    padding: 0.68rem 0.9rem;
  }
}

@keyframes nc3BotShake {
  0%,
  76%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  80% {
    transform: translate3d(-1px, 0, 0) rotate(-10deg);
  }
  84% {
    transform: translate3d(1px, 0, 0) rotate(10deg);
  }
  88% {
    transform: translate3d(-1px, 0, 0) rotate(-8deg);
  }
  92% {
    transform: translate3d(1px, 0, 0) rotate(8deg);
  }
  96% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}