/* ==========================================================================
   SANDRA COSMIC CONCIERGE & FLOATING ASSISTANT STYLES
   ========================================================================== */

#sandra-concierge-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9990;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
}

/* Floating Trigger Button */
.concierge-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(22, 17, 43, 0.95), rgba(13, 10, 26, 0.98));
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 50px;
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 175, 55, 0.35);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  user-select: none;
}

.concierge-trigger-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #fde047;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.55);
}

.concierge-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.concierge-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.concierge-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  animation: conciergePulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes conciergePulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

.concierge-label-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.concierge-label-title {
  font-family: var(--font-heading, 'Cinzel', Georgia, serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

.concierge-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* Context Bubble */
.concierge-context-bubble {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: rgba(15, 12, 32, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 0.78rem;
  width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  display: none;
  animation: bubblePop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  line-height: 1.4;
}

@keyframes bubblePop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.concierge-context-bubble strong {
  color: #fef08a;
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* Expanding Dialog Window */
.concierge-panel {
  position: fixed;
  bottom: 86px;
  left: 24px;
  width: 460px;
  max-width: calc(100vw - 40px);
  height: 620px;
  max-height: calc(100vh - 110px);
  background: radial-gradient(ellipse at 50% 0%, #1e173a 0%, #0d0a1d 85%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9995;
}

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

/* Header */
.concierge-panel-header {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.concierge-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.concierge-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4af37;
}

.concierge-header-meta h4 {
  margin: 0;
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 0.92rem;
  color: #fef08a;
  letter-spacing: 0.04em;
}

.concierge-header-meta span {
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.concierge-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.concierge-tg-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: all 0.2s;
}

.concierge-tg-pill:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.concierge-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.concierge-close-btn:hover {
  color: #f87171;
}

/* Nav Tabs - 4 equal columns, perfectly fitted, zero overflow */
.concierge-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  gap: 4px;
  overflow: hidden;
}

.concierge-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 7px 2px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: all 0.2s;
}

.concierge-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.concierge-tab-btn.active {
  color: #fef08a;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Body / Panes */
.concierge-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.concierge-pane {
  display: none;
}

.concierge-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Guide & FAQ Cards */
.concierge-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.concierge-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.concierge-card-title {
  color: #fef08a;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.concierge-card-text {
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.concierge-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.concierge-card-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #d4af37;
  color: #fef08a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.concierge-card-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}

/* Accordion FAQ */
.faq-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-header {
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-body {
  padding: 0 14px 14px 14px;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: none;
}

.faq-item.open .faq-body {
  display: block;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-arrow {
  transition: transform 0.2s;
  font-size: 0.7rem;
}

/* Chat Messages */
.concierge-chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.chat-bubble.sandra {
  align-self: flex-start;
  background: rgba(30, 24, 56, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f1f5f9;
  border-bottom-left-radius: 3px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(168, 85, 247, 0.35));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chat-quick-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fef08a;
  font-size: 0.72rem;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-quick-pill:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #fde047;
}

/* Chat Input Bar */
.concierge-input-bar {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

.concierge-input-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.concierge-input-field:focus {
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.concierge-send-btn {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border: none;
  border-radius: 10px;
  color: #0d0a1d;
  font-weight: 700;
  padding: 0 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.concierge-send-btn:hover {
  filter: brightness(1.15);
}

@media (max-width: 640px) {
  #sandra-concierge-widget {
    bottom: 16px;
    left: 16px;
  }
  .concierge-panel {
    bottom: 74px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 75vh;
  }
}
