/* OPTIMI⚡≡R™ concierge + in-panel AI advisor (shared with index / funnel) */

#optimir-concierge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483647;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  pointer-events: auto;
}

/* Ensure panel controls always receive clicks (avoid parent pointer-events quirks). */
.concierge-panel,
.concierge-panel .panel-header,
.concierge-panel .advisor-body,
.concierge-panel .advisor-footer,
.concierge-panel button,
.concierge-panel a.advisor-handoff-link {
  pointer-events: auto;
}

.concierge-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9ecbff, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: concierge-orb-pulse 2.5s ease-in-out infinite;
}

@keyframes concierge-orb-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(111, 177, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(111, 177, 255, 0);
  }
}

.concierge-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  background: linear-gradient(180deg, #0b1020, #070b16);
  color: #e6ecff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.concierge-panel.open {
  display: flex;
}

.panel-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
}

.panel-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.panel-close {
  background: none;
  border: none;
  color: #9fb8ff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.panel-close:hover {
  color: #e6ecff;
  background: rgba(255, 255, 255, 0.06);
}

.advisor-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
}

.panel-footer.advisor-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.advisor-lead {
  margin: 0 0 10px;
  color: #e6ecff;
  font-weight: 500;
}

.advisor-copy {
  margin: 0 0 8px;
  color: rgba(214, 222, 255, 0.82);
}

.advisor-context {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(159, 184, 255, 0.75);
}

.advisor-question {
  margin: 0 0 12px;
  font-weight: 600;
  color: #f0f4ff;
}

.advisor-choice-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advisor-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(111, 177, 255, 0.35);
  background: rgba(15, 22, 40, 0.85);
  color: #e6ecff;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.advisor-choice:hover {
  border-color: rgba(111, 177, 255, 0.65);
  background: rgba(25, 36, 64, 0.95);
}

.advisor-rec-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f4ff;
  line-height: 1.25;
}

.advisor-rec-body {
  margin: 0 0 12px;
  color: rgba(214, 222, 255, 0.9);
}

.advisor-next-label {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(159, 184, 255, 0.8);
}

.advisor-next {
  margin: 0;
  color: #cfe0ff;
  font-weight: 500;
}

.advisor-muted {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(180, 196, 230, 0.72);
}

.advisor-copy--muted {
  font-size: 12px;
  color: rgba(180, 196, 230, 0.68);
}

.advisor-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.advisor-section:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}

.advisor-section-title {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(159, 184, 255, 0.88);
}

.advisor-section-body {
  margin: 0;
  color: rgba(220, 228, 255, 0.9);
  line-height: 1.45;
}

.advisor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
  font-family: inherit;
}

.advisor-btn--primary {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(111, 177, 255, 0.55);
  color: #b8d4ff;
}

.advisor-btn--primary:hover {
  background: rgba(59, 130, 246, 0.32);
  border-color: rgba(147, 197, 253, 0.75);
  color: #e8f0ff;
}

.advisor-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(111, 177, 255, 0.35);
  color: rgba(200, 218, 255, 0.92);
}

.advisor-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(147, 197, 253, 0.55);
  color: #f0f4ff;
}

.advisor-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(200, 210, 240, 0.85);
}

.advisor-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f0f4ff;
}

a.advisor-handoff-link {
  text-align: center;
}
