/* ==============================================================================
   AURICPASS SOVEREIGN AI CONCIERGE WIDGET (CSS/CONCIERGE-CHAT.CSS)
   Responsive, high-contrast, zero-custody chat UI.
   ============================================================================== */

#concierge-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  height: 540px;
  max-height: calc(100vh - 110px);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.concierge-header {
  background: #07090e;
  padding: 14px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.concierge-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.concierge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(5, 114, 236, 0.15);
  border: 1px solid rgba(5, 114, 236, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.concierge-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.concierge-sub {
  font-size: 0.68rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
}

.concierge-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

/* Mode Selection Pills */
.concierge-modes {
  display: flex;
  background: #090d16;
  padding: 8px 12px;
  gap: 6px;
  border-bottom: 1px solid #1e293b;
}

.concierge-mode-btn {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.concierge-mode-btn.active {
  background: #0572ec;
  border-color: #0572ec;
  color: #ffffff;
}

/* Messages Area */
.concierge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.concierge-msg {
  max-width: 85%;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 12px;
  word-break: break-word;
}

.concierge-msg.user {
  align-self: flex-end;
  background: #0572ec;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.concierge-msg.bot {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.concierge-msg.bot a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
}

/* Redaction Banner */
.concierge-scrub-notice {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fef08a;
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: none;
}

/* Chips */
.concierge-chips {
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: #090d16;
  border-top: 1px solid #1e293b;
}

.concierge-chip {
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.concierge-chip:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Input Form */
.concierge-input-form {
  padding: 12px;
  background: #07090e;
  border-top: 1px solid #1e293b;
  display: flex;
  gap: 8px;
}

.concierge-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 0.82rem;
  outline: none;
}

.concierge-input:focus {
  border-color: #0572ec;
}

.concierge-send-btn {
  background: #0572ec;
  border: none;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Floating Launcher Button */
.concierge-launcher-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 8px 18px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 175, 55, 0.15);
  z-index: 9999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.concierge-launcher-btn:hover {
  transform: translateY(-2px);
  border-color: #0572ec;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(5, 114, 236, 0.3);
}

.concierge-launcher-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-beacon 2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 640px) {
  #concierge-panel {
    width: 100vw;
    height: calc(100vh - 60px);
    max-height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
  }
}

/* In-Chat Syntax Code Blocks & Copy Snippet */
.concierge-code-block {
  background: #090a0f;
  border: 1px solid #1e293b;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.concierge-code-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 4px 10px;
  border-bottom: 1px solid #1e293b;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.concierge-copy-code-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.concierge-copy-code-btn:hover {
  background: #0572ec;
  border-color: #0572ec;
  color: #ffffff;
}

.concierge-code-block pre {
  margin: 0;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.45;
}

.concierge-inline-code {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
}

