/* Widget NexusPixel - styles compacts */
#nxp-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: "Raleway", Arial, sans-serif;
}

#nxp-chat .nxp-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0b6fff, #7a1ce0);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#nxp-chat .nxp-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

#nxp-chat .nxp-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 360px;
  max-height: 540px;
  background: #0c1222;
  color: #eef2ff;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

#nxp-chat.nxp-open .nxp-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#nxp-chat .nxp-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(11, 111, 255, 0.95), rgba(122, 28, 224, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nxp-chat .nxp-title {
  font-weight: 700;
  font-size: 16px;
}

#nxp-chat .nxp-subtitle {
  font-size: 12px;
  opacity: 0.85;
}

#nxp-chat .nxp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 4px;
}

#nxp-chat .nxp-quick button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#nxp-chat .nxp-quick button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

#nxp-chat .nxp-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.05), transparent 38%),
              radial-gradient(circle at 78% 6%, rgba(255, 255, 255, 0.04), transparent 55%),
              #0c1222;
}

#nxp-chat .nxp-msg {
  margin: 8px 0;
}

#nxp-chat .nxp-msg.nxp-user {
  text-align: right;
}

#nxp-chat .nxp-bubble {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 14px;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.4;
}

#nxp-chat .nxp-user .nxp-bubble {
  background: rgba(11, 111, 255, 0.15);
  color: #c9dcff;
  border: 1px solid rgba(11, 111, 255, 0.35);
}

#nxp-chat .nxp-assistant .nxp-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#nxp-chat .nxp-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#nxp-chat .nxp-dot {
  width: 6px;
  height: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  animation: nxp-blink 1s infinite ease-in-out;
}

#nxp-chat .nxp-dot:nth-child(2) { animation-delay: 0.18s; }
#nxp-chat .nxp-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes nxp-blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

#nxp-chat .nxp-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 34, 0.9);
}

#nxp-chat .nxp-input input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  padding: 10px 12px;
  font-size: 14px;
}

#nxp-chat .nxp-input input:focus {
  outline: none;
  border-color: rgba(11, 111, 255, 0.4);
}

#nxp-chat .nxp-input button {
  min-width: 70px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b6fff, #7a1ce0);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

#nxp-chat .nxp-input button:hover {
  opacity: 0.9;
}

@media (max-width: 520px) {
  #nxp-chat {
    right: 12px;
    bottom: 12px;
  }
  #nxp-chat .nxp-panel {
    width: 90vw;
    max-height: 75vh;
  }
}
