/* ── FLVCRTS AI concierge widget ─────────────────────────────── */
#fc-concierge {
  --fc-dark: #14110d;
  --fc-panel: #1a1611;
  --fc-cream: #f3efe6;
  --fc-dim: rgba(243,239,230,0.55);
  --fc-line: rgba(243,239,230,0.12);
  --fc-accent: #d8b46a;
  position: fixed; right: 22px; bottom: 22px; z-index: 4000;
  font-family: var(--sans, system-ui, sans-serif);
}
@media (max-width: 600px) { #fc-concierge { right: 14px; bottom: 14px; left: 14px; } }

/* Launcher */
/* Liquid-glass launcher — mirrors the site's #pill-nav "Apple Liquid Glass" */
.fc-launcher {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1.15rem; cursor: pointer;
  color: #16130f; font-weight: 500;
  border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.01em;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(40px) saturate(2.8) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(2.8) brightness(1.08);
  border: 0.5px solid rgba(255,255,255,0.42);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,0.62),
    inset 0 -1px 1px rgba(0,0,0,0.06),
    0 0 0 0.5px rgba(255,255,255,0.12),
    0 8px 32px rgba(0,0,0,0.14),
    0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.25s ease, background 0.4s, color 0.4s, border-color 0.4s;
}
.fc-launcher:hover { transform: translateY(-2px); }
/* Adapts to dark sections exactly like the pill nav */
body.theme-dark .fc-launcher {
  color: var(--fc-cream);
  background: rgba(12,10,8,0.38);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.12),
    inset 0 -1px 1px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.35);
}
.fc-launcher .fc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59,130,246,0.6); animation: fcPulse 2.2s ease-out infinite;
}
@keyframes fcPulse { 0%{box-shadow:0 0 0 0 rgba(59,130,246,0.55);} 70%{box-shadow:0 0 0 8px rgba(59,130,246,0);} 100%{box-shadow:0 0 0 0 rgba(59,130,246,0);} }

/* Panel */
.fc-panel {
  position: absolute; right: 0; bottom: 0;
  width: 360px; max-width: calc(100vw - 28px); height: 480px; max-height: calc(100vh - 44px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--fc-panel); color: var(--fc-cream);
  border: 1px solid var(--fc-line); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  transform-origin: bottom right;
  animation: fcIn 0.28s cubic-bezier(.22,.61,.36,1);
}
@media (max-width: 600px) { .fc-panel { width: 100%; height: 68vh; } }
@keyframes fcIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.fc-panel[hidden] { display: none; }

.fc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--fc-line);
}
.fc-head-title {
  font-family: var(--serif, Georgia, serif); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.92rem;
}
.fc-head-title sup { font-size: 0.55em; opacity: 0.7; }
.fc-close {
  background: none; border: none; color: var(--fc-dim); cursor: pointer;
  font-size: 1.35rem; line-height: 1; padding: 0 0.2rem; transition: color 0.2s;
}
.fc-close:hover { color: var(--fc-cream); }

.fc-log {
  flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem;
  scrollbar-width: thin; scrollbar-color: var(--fc-line) transparent;
}
.fc-log::-webkit-scrollbar { width: 6px; }
.fc-log::-webkit-scrollbar-thumb { background: var(--fc-line); border-radius: 3px; }

.fc-msg {
  max-width: 84%; padding: 0.6rem 0.8rem; border-radius: 14px;
  font-size: 0.86rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.fc-msg a { color: var(--fc-accent); text-decoration: underline; text-underline-offset: 2px; }
.fc-msg--bot { align-self: flex-start; background: rgba(243,239,230,0.07); border: 1px solid var(--fc-line); border-bottom-left-radius: 5px; }
.fc-msg--user { align-self: flex-end; background: var(--fc-cream); color: var(--fc-dark); border-bottom-right-radius: 5px; }

.fc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.7rem 0.85rem; }
.fc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--fc-dim); animation: fcBlink 1.2s infinite ease-in-out; }
.fc-typing span:nth-child(2) { animation-delay: 0.18s; }
.fc-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes fcBlink { 0%,60%,100%{opacity:0.25; transform:translateY(0);} 30%{opacity:1; transform:translateY(-3px);} }

.fc-input { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.75rem; border-top: 1px solid var(--fc-line); }
.fc-input input {
  flex: 1; background: rgba(243,239,230,0.06); border: 1px solid var(--fc-line);
  color: var(--fc-cream); border-radius: 999px; padding: 0.62rem 0.9rem; font-size: 0.85rem;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.fc-input input::placeholder { color: var(--fc-dim); }
.fc-input input:focus { border-color: rgba(216,180,106,0.55); }
.fc-input button {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--fc-cream); color: var(--fc-dark); font-size: 1.05rem; line-height: 1;
  display: grid; place-items: center; transition: transform 0.2s, opacity 0.2s;
}
.fc-input button:hover { transform: scale(1.06); }
.fc-input button:disabled { opacity: 0.4; cursor: default; transform: none; }

.fc-foot {
  padding: 0 1.1rem 0.8rem; font-family: var(--mono, monospace);
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fc-dim);
}
.fc-foot a { color: var(--fc-dim); text-decoration: underline; }
.fc-foot a:hover { color: var(--fc-cream); }

@media (prefers-reduced-motion: reduce) {
  .fc-panel, .fc-launcher .fc-dot, .fc-typing span { animation: none; }
}
