/* ===========================================================================
   Beacon launcher — persistent concierge entry point (bottom-right)
   Dark glass · soft orange/purple glow · restrained motion
   ======================================================================== */
.bcl { position: fixed; right: 26px; bottom: 26px; z-index: 1200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* dock row — teaser sits to the LEFT of the orb */
.bcl-dock { display: flex; align-items: center; gap: 12px; }

/* ── orb button ── */
.bcl-orb { position: relative; flex-shrink: 0; width: 62px; height: 62px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer; background: #0a0a0e; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 22px rgba(242,100,34, calc(0.34 * var(--glow-mult, 1))), 0 0 34px rgba(140,107,240, calc(0.20 * var(--glow-mult, 1)));
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
.bcl-orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bcl-orb::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; pointer-events: none;
  background: linear-gradient(140deg, #F8A24E 0%, #E8551B 40%, #8C6BF0 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0.9; }
.bcl-orb:hover { transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 34px rgba(0,0,0,0.55), 0 0 30px rgba(242,100,34, calc(0.52 * var(--glow-mult, 1))), 0 0 44px rgba(140,107,240, calc(0.3 * var(--glow-mult, 1))); }
.bcl-orb:active { transform: scale(0.98); }
.bcl-orb:focus-visible { outline: 2px solid rgba(242,100,34,0.6); outline-offset: 3px; }

/* notification badge */
.bcl-badge { position: absolute; top: -2px; right: -2px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #FF4D4D; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #0c0b10, 0 2px 8px rgba(255,77,77,0.5); animation: bcl-pop .3s var(--ease, ease) both; }

/* ── teaser bubble ── */
.bcl-teaser { display: flex; align-items: center; gap: 10px; padding: 11px 11px 11px 16px; border-radius: 14px; cursor: pointer;
  white-space: nowrap; background: linear-gradient(135deg, rgba(40,40,46,0.82), rgba(20,18,26,0.86));
  border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: bcl-rise .45s var(--ease, ease) both; }
.bcl-teaser-txt { font-family: var(--font-body); font-weight: 300; font-size: 14px; color: var(--fg1); }
.bcl-teaser-x { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--fg3); font-size: 16px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s, color .15s; }
.bcl-teaser-x:hover { background: rgba(255,255,255,0.13); color: var(--fg1); }

/* ── compact chat preview panel (above the orb) ── */
.bcl-panel { width: 348px; max-width: calc(100vw - 44px); border-radius: 20px; overflow: hidden;
  transform-origin: bottom right; animation: bcl-panel-in .32s var(--ease, ease) both;
  background: linear-gradient(135deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.015) 100%), linear-gradient(180deg, rgba(16,14,20,0.93) 0%, rgba(11,10,15,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.13); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.18); }

.bcl-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px 15px;
  border-bottom: 1px solid var(--border-subtle); }
.bcl-av { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #08080c;
  box-shadow: 0 0 14px rgba(242,100,34, calc(0.3 * var(--glow-mult, 1))), inset 0 0 0 1px rgba(255,255,255,0.07); }
.bcl-av img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.bcl-htext { min-width: 0; flex: 1 1 auto; }
.bcl-htext h5 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--fg1); margin: 0; }
.bcl-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 400; font-size: 12px; color: var(--fg3); margin: 3px 0 0; }
.bcl-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success, #2FD37A); box-shadow: 0 0 8px rgba(47,211,122,0.8); }
.bcl-hbtn { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.05); color: var(--fg3); font-size: 16px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s, color .15s; }
.bcl-hbtn:hover { background: rgba(255,255,255,0.11); color: var(--fg1); }

.bcl-thread { max-height: 340px; overflow-y: auto; padding: 17px 18px 4px; display: flex; flex-direction: column; gap: 16px; }
.bcl-thread .chat-bubble p, .bcl-thread .chat-you-bubble { font-size: 14px; }
.bcl-thread .chat-sender { font-size: 11px; margin-bottom: 6px; }
.bcl-thread .chat-estimate-card { padding: 14px 16px; }

.bcl-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 4px; }
.bcl-pill { font-family: var(--font-ui); font-weight: 500; font-size: 13px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-default); color: var(--fg1); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.bcl-pill:hover { border-color: rgba(140,107,240,0.5); background: rgba(140,107,240,0.12); color: #fff; }

.bcl-input { display: flex; align-items: center; gap: 8px; margin: 16px 16px 16px; padding: 7px 7px 7px 15px;
  border-radius: 999px; border: 1px solid var(--border-default); background: rgba(255,255,255,0.03); transition: border-color .15s, box-shadow .15s; }
.bcl-input:focus-within { border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(140,107,240,0.18); }
.bcl-input input { flex: 1 1 auto; min-width: 0; background: transparent; border: none; outline: none; color: var(--fg1);
  font-family: var(--font-body); font-size: 14px; }
.bcl-input input::placeholder { color: var(--fg3); }
.bcl-send { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #2a1404;
  background: radial-gradient(circle at 34% 28%, #FFE0B0, #F8A24E 40%, #E8551B 84%);
  box-shadow: 0 5px 14px -5px rgba(242,100,34, calc(0.5 * var(--glow-mult, 1))); transition: transform .15s; }
.bcl-send:hover { transform: scale(1.06); }
.bcl-send:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ── motion ── */
@keyframes bcl-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes bcl-panel-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bcl-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bcl-teaser, .bcl-panel, .bcl-badge { animation: none; }
}

/* ── mobile ── */
@media (max-width: 560px) {
  .bcl { right: 16px; bottom: 16px; gap: 12px; }
  .bcl-orb { width: 56px; height: 56px; }
  .bcl-teaser { max-width: 60vw; white-space: normal; }
  .bcl-teaser-txt { font-size: 13px; }
  .bcl-panel { width: calc(100vw - 32px); }
}

/* ===========================================================================
   Beacon full-screen overlay — same session, expanded
   ======================================================================== */
.bcf-overlay { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 26px; }
.bcf-backdrop { position: absolute; inset: 0; background: rgba(6,5,9,0.74);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: bcf-fade .25s ease both; }
.bcf-panel { position: relative; z-index: 1; width: min(880px, 100%); height: min(88vh, 940px);
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; transform-origin: bottom right;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.012) 100%), linear-gradient(180deg, rgba(16,14,20,0.96) 0%, rgba(11,10,15,0.97) 100%);
  border: 1px solid rgba(255,255,255,0.13); box-shadow: 0 40px 100px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.16);
  animation: bcf-rise .3s var(--ease, ease) both; }

.bcf-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.015); }
.bcf-head-text { flex: 1 1 auto; min-width: 0; }
.bcf-head .chat-title { margin: 0; font-size: 22px; }
.bcf-head .chat-subtitle { margin: 2px 0 0; }

.bcf-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 30px 0; }
.bcf-thread-inner { max-width: 720px; margin: 0 auto; padding: 0 28px; display: flex; flex-direction: column; gap: 22px; }
.bcf-foot { border-top: 1px solid var(--border-subtle); padding: 6px 0 2px; }
.bcf-foot .chat-input { max-width: 720px; margin: 14px auto; }

@keyframes bcf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bcf-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bcf-backdrop, .bcf-panel { animation: none; } }

@media (max-width: 640px) {
  .bcf-overlay { padding: 0; }
  .bcf-panel { width: 100%; height: 100%; border-radius: 0; }
  .bcf-head .chat-title { font-size: 19px; }
  .bcf-thread-inner { padding: 0 18px; }
  .bcf-foot .chat-input { margin: 12px 16px; }
}
