/* ---------------------------------------------------
   NEURAL CANVAS BACKGROUND
--------------------------------------------------- */
#voralyn-neural {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Boost visuel quand VoraLyn écrit */
.neural-boost {
  filter: brightness(1.18) saturate(1.12);
}


/* ---------------------------------------------------
   CONSOLE AGENT
--------------------------------------------------- */
.agent-console {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 80px;
  color: #f7f4f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* ---------------------------------------------------
   HEADER
--------------------------------------------------- */
.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.agent-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-symbol {
  font-size: 20px;
  color: #f5d28b;
}

.agent-title {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.agent-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.9;
}

.agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}


/* ---------------------------------------------------
   CHAT BOX
--------------------------------------------------- */
.agent-chat {
  background: rgba(10, 10, 12, 0.78);
  border-radius: 18px;
  padding: 20px 16px 24px;
  border: 1px solid rgba(245, 210, 139, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}


/* ---------------------------------------------------
   MESSAGES
--------------------------------------------------- */
.agent-message {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: msgAppear 0.45s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes msgAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.agent-message-vora {
  background: linear-gradient(135deg, rgba(245, 210, 139, 0.12), rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(245, 210, 139, 0.25);
  font-size: 14px;
  line-height: 1.5;
}


/* ---------------------------------------------------
   INPUT BLOCK
--------------------------------------------------- */
.agent-input-block {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.agent-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 5, 7, 0.9);
  color: #f7f4f0;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.agent-input::placeholder {
  color: rgba(248, 244, 240, 0.45);
}

.agent-button {
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #f5d28b, #f0b45a);
  color: #1b1308;
  box-shadow: 0 8px 20px rgba(245, 210, 139, 0.45);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.agent-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245, 210, 139, 0.55);
}

.agent-button.ghost {
  background: transparent;
  color: #f7f4f0;
  border: 1px solid rgba(247, 244, 240, 0.35);
  box-shadow: none;
}


/* ---------------------------------------------------
   TYPING INDICATOR
--------------------------------------------------- */
.agent-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 16px;
  font-size: 12px;
  opacity: 0.85;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(247, 244, 240, 0.7);
  animation: typingBlink 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBlink {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}


/* ---------------------------------------------------
   BADGES (CHOICES)
--------------------------------------------------- */
.agent-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.agent-choice {
  border-radius: 999px;
  border: 1px solid rgba(245, 210, 139, 0.4);
  background: rgba(10, 10, 12, 0.9);
  color: #f7f4f0;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.agent-choice:hover {
  background: rgba(245, 210, 139, 0.12);
  box-shadow: 0 0 0 1px rgba(245, 210, 139, 0.35);
  transform: translateY(-1px);
}


/* ---------------------------------------------------
   INSCRIPTION
--------------------------------------------------- */
.agent-subscribe {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid rgba(245, 210, 139, 0.2);
}

.agent-subscribe-text {
  font-size: 13px;
  margin-bottom: 10px;
}

.agent-subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.agent-footer {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 12px auto 24px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.75;
}

.agent-footer-right {
  opacity: 0.65;
}


/* ---------------------------------------------------
   UTILS
--------------------------------------------------- */
.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .agent-console {
    padding: 20px 12px 72px;
  }
  .agent-chat {
    padding: 16px 12px 20px;
  }
  .agent-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
