/* ===== ONCE-LXW DISCORD BOT WIDGET ===== */
/* Stacks directly above the META-BYTE chat-fab on the same corner. */

/* Floating trigger button */
.dcb-fab {
  position: fixed;
  bottom: 4.75rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #7c3aed, #9b5cf6);
  border: 1px solid rgba(155, 92, 246, 0.4);
  border-radius: 2rem;
  color: #e2e8f0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  animation: dcb-pulse-glow 2.4s ease-in-out infinite;
}
.dcb-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(155, 92, 246, 0.4);
}
.dcb-fab-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  line-height: 1;
  display: block;
}
.dcb-fab-label {
  white-space: nowrap;
}

@keyframes dcb-pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.2), 0 0 0 0 rgba(155, 92, 246, 0.45);
  }
  50% {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(155, 92, 246, 0.35), 0 0 14px 6px rgba(155, 92, 246, 0.35);
  }
}

/* Popup panel */
.dcb-panel {
  position: fixed;
  bottom: 7.75rem;
  right: 1.5rem;
  z-index: 9000;
  width: 300px;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(155, 92, 246, 0.3);
  border-radius: 0.75rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.15);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dcb-panel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92) translateY(8px);
}

.dcb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(155, 92, 246, 0.3));
  border-bottom: 1px solid rgba(155, 92, 246, 0.2);
  flex-shrink: 0;
}
.dcb-header-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #c9a6ff;
  font-family: 'Segoe UI', sans-serif;
}
.dcb-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b5cf6;
  box-shadow: 0 0 6px #9b5cf6;
  flex-shrink: 0;
}
.dcb-close-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  transition: color 0.15s;
  line-height: 1;
}
.dcb-close-btn:hover {
  color: #94a3b8;
}

.dcb-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dcb-copy {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
}

.dcb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dcb-btn-add {
  background: linear-gradient(135deg, #7c3aed, #9b5cf6);
  color: #fff;
  border: none;
}
.dcb-btn-add:hover { opacity: 0.9; transform: translateY(-1px); }

.dcb-btn-info {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(155, 92, 246, 0.3);
  color: #e2e8f0;
}
.dcb-btn-info:hover {
  background: rgba(45, 41, 78, 0.9);
  border-color: rgba(155, 92, 246, 0.6);
}

/* Responsive: shrink on small screens */
@media (max-width: 400px) {
  .dcb-panel { width: calc(100vw - 2rem); right: 1rem; }
  .dcb-fab   { right: 1rem; bottom: 4.5rem; }
  .dcb-panel { bottom: 7.5rem; }
}
