/* ==========================================================================
   PBGroup AI Concierge Chat Widget - Luxury Gold Theme
   Harmonized with Pro Builder Group LLC Design Tokens & Obsidian Aesthetics
   ========================================================================== */

body #concierge-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  --pb-gold: #c8963e;
  --pb-gold-light: #e4b865;
  --pb-gold-dark: #9a7230;
  --pb-gold-glow: rgba(200, 150, 62, 0.35);
  --pb-bg-dark: #0a0a0a;
  --pb-bg-surface: #141414;
  --pb-bg-card: #1a1a1a;
  --pb-text-light: #f0ece4;
  --pb-text-muted: #b8b2a6;
  --pb-border-gold: rgba(200, 150, 62, 0.25);
}

/* Floating Launcher Button */
body #concierge-launcher {
  background: linear-gradient(135deg, #c8963e 0%, #9a7230 100%) !important;
  color: #0a0a0a !important;
  box-shadow: 0 4px 20px rgba(200, 150, 62, 0.4), 0 0 16px rgba(200, 150, 62, 0.25) !important;
  border: 1px solid rgba(228, 184, 101, 0.6) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease !important;
}

body #concierge-launcher:hover {
  transform: scale(1.08) !important;
  background: linear-gradient(135deg, #e4b865 0%, #c8963e 100%) !important;
  box-shadow: 0 6px 28px rgba(200, 150, 62, 0.65), 0 0 20px rgba(228, 184, 101, 0.5) !important;
}

body #concierge-launcher svg {
  fill: #0a0a0a !important;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2));
}

/* Launcher Online Status Badge */
body #concierge-badge {
  background: #c8963e !important;
  border: 2px solid #0a0a0a !important;
  box-shadow: 0 0 8px #c8963e !important;
}

/* Chat Window Modal */
body #concierge-window {
  background: #141414 !important;
  border: 1px solid rgba(200, 150, 62, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 28px rgba(200, 150, 62, 0.15) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

/* Header */
body #concierge-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1e1912 100%) !important;
  border-bottom: 1px solid rgba(200, 150, 62, 0.3) !important;
  color: #f0ece4 !important;
  padding: 14px 16px !important;
}

body .concierge-avatar {
  background: rgba(200, 150, 62, 0.12) !important;
  border: 1px solid rgba(200, 150, 62, 0.4) !important;
  box-shadow: 0 0 10px rgba(200, 150, 62, 0.25) !important;
}

body .concierge-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

body .concierge-subtitle {
  color: #b8b2a6 !important;
  font-size: 11px !important;
}

body .concierge-online-dot {
  background: #c8963e !important;
  box-shadow: 0 0 8px #c8963e !important;
}

body .concierge-close-btn {
  color: #b8b2a6 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

body .concierge-close-btn:hover {
  color: #e4b865 !important;
  transform: scale(1.15) !important;
}

body .concierge-lang-btn {
  background: rgba(200, 150, 62, 0.12) !important;
  border: 1px solid rgba(200, 150, 62, 0.3) !important;
  color: #f0ece4 !important;
}

body .concierge-lang-btn:hover {
  background: rgba(200, 150, 62, 0.25) !important;
  color: #ffffff !important;
}

/* Messages Body */
body #concierge-messages {
  background: #0a0a0a !important;
  scrollbar-width: thin;
  scrollbar-color: #222222 #0a0a0a;
}

body #concierge-messages::-webkit-scrollbar {
  width: 6px;
}

body #concierge-messages::-webkit-scrollbar-track {
  background: #0a0a0a;
}

body #concierge-messages::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 3px;
}

/* Assistant Message Bubble (Concierge) */
body .concierge-msg-bot {
  background: #181818 !important;
  color: #f0ece4 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #c8963e !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}

/* User Message Bubble */
body .concierge-msg-user {
  background: linear-gradient(135deg, #c8963e 0%, #9a7230 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(228, 184, 101, 0.5) !important;
  box-shadow: 0 2px 12px rgba(200, 150, 62, 0.25) !important;
}

/* Typing Indicator */
body .concierge-typing {
  background: #181818 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #c8963e !important;
}

body .concierge-typing-dot {
  background: #c8963e !important;
  box-shadow: 0 0 6px rgba(200, 150, 62, 0.4) !important;
}

/* Lead Captured Confirmation Banner */
body .concierge-banner {
  background: rgba(200, 150, 62, 0.12) !important;
  border: 1px solid rgba(200, 150, 62, 0.4) !important;
  color: #e4b865 !important;
  box-shadow: 0 2px 12px rgba(200, 150, 62, 0.15) !important;
}

/* Footer & Input */
body #concierge-form {
  background: #141414 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body #concierge-input {
  background: #0a0a0a !important;
  border: 1px solid rgba(200, 150, 62, 0.25) !important;
  color: #f0ece4 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body #concierge-input::placeholder {
  color: #6a6560 !important;
}

body #concierge-input:focus {
  border-color: #c8963e !important;
  box-shadow: 0 0 12px rgba(200, 150, 62, 0.35) !important;
}

body #concierge-send {
  background: linear-gradient(135deg, #c8963e 0%, #9a7230 100%) !important;
  border: 1px solid rgba(228, 184, 101, 0.5) !important;
  box-shadow: 0 2px 10px rgba(200, 150, 62, 0.25) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

body #concierge-send:hover:not(:disabled) {
  transform: scale(1.06) !important;
  background: linear-gradient(135deg, #e4b865 0%, #c8963e 100%) !important;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.5) !important;
}

body #concierge-send svg {
  fill: #0a0a0a !important;
}

/* Mobile Fullscreen Mode */
@media (max-width: 480px) {
  body #concierge-window {
    border-radius: 0 !important;
    border: none !important;
  }
}
