/* Brand Labs chat widget. Matches the site's dark neon lab look. */
#blc-root, #blc-root * { box-sizing: border-box; }
#blc-root { position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; font-family: 'Inter', system-ui, sans-serif; color: #ece9f7; }

#blc-launch {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: #07040f; color: #00f0ff; border: 1px solid #00f0ff; border-radius: 999px;
  padding: 13px 20px 13px 16px; font: 500 12px/1 'JetBrains Mono', monospace; letter-spacing: .1em;
  box-shadow: 0 0 18px rgba(0,240,255,.35), 0 0 40px rgba(255,46,196,.18), inset 0 0 12px rgba(0,240,255,.08);
  transition: transform .15s ease, box-shadow .2s ease;
}
#blc-launch:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(0,240,255,.55), 0 0 50px rgba(255,46,196,.28), inset 0 0 12px rgba(0,240,255,.12); }
#blc-launch:focus-visible, #blc-close:focus-visible, #blc-send:focus-visible, .blc-chip:focus-visible, #blc-input:focus-visible { outline: 2px solid #ff2ec4; outline-offset: 2px; }
#blc-launch .blc-dot { width: 9px; height: 9px; border-radius: 50%; background: #00f0ff; box-shadow: 0 0 10px #00f0ff; animation: blc-pulse 2s infinite; }
@keyframes blc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

#blc-panel {
  display: none; flex-direction: column; width: 380px; max-width: calc(100vw - 24px);
  height: 560px; max-height: calc(100vh - 40px); overflow: hidden;
  background: linear-gradient(180deg, #0d0820 0%, #07040f 100%);
  border: 1px solid rgba(0,240,255,.45); border-radius: 14px;
  box-shadow: 0 0 30px rgba(0,240,255,.22), 0 0 70px rgba(255,46,196,.14), 0 20px 50px rgba(0,0,0,.6);
}
#blc-root.is-open #blc-panel { display: flex; animation: blc-in .18s ease-out; }
#blc-root.is-open #blc-launch { display: none; }
@keyframes blc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.blc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(0,240,255,.2); background: rgba(0,240,255,.04); }
.blc-title { font: 700 15px/1.2 'Space Grotesk', sans-serif; color: #f5f3ff; letter-spacing: .02em; }
.blc-sub { font: 400 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: #00f0ff; margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.blc-sub i { width: 6px; height: 6px; border-radius: 50%; background: #00f0ff; box-shadow: 0 0 8px #00f0ff; display: inline-block; }
#blc-close { background: none; border: 0; color: #a79ecb; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
#blc-close:hover { color: #fff; }

#blc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
#blc-log::-webkit-scrollbar { width: 6px; } #blc-log::-webkit-scrollbar-thumb { background: rgba(0,240,255,.25); border-radius: 3px; }

.blc-msg { max-width: 86%; padding: 10px 13px; font-size: 14px; line-height: 1.5; border-radius: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.blc-msg.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(236,233,247,.12); border-top-left-radius: 3px; color: #e6e2f5; }
.blc-msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(0,240,255,.2), rgba(255,46,196,.18)); border: 1px solid rgba(0,240,255,.4); border-top-right-radius: 3px; color: #fff; }
.blc-msg a { color: #00f0ff; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.blc-msg a:hover { color: #ff2ec4; }

.blc-book { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 4px; background: #00f0ff; color: #07040f !important; text-decoration: none !important; font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .08em; word-break: normal !important; box-shadow: 0 0 14px rgba(0,240,255,.4); }
.blc-book:hover { background: #ff2ec4; color: #fff !important; }

.blc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(236,233,247,.12); border-radius: 12px; border-top-left-radius: 3px; }
.blc-typing span { width: 6px; height: 6px; border-radius: 50%; background: #00f0ff; opacity: .4; animation: blc-bounce 1.2s infinite; }
.blc-typing span:nth-child(2) { animation-delay: .15s; } .blc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blc-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

#blc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 14px 10px; }
.blc-chip { cursor: pointer; background: transparent; color: #cfc9e8; border: 1px solid rgba(0,240,255,.35); border-radius: 999px; padding: 7px 12px; font: 400 11.5px/1 'JetBrains Mono', monospace; }
.blc-chip:hover { border-color: #ff2ec4; color: #fff; background: rgba(255,46,196,.08); }

.blc-form { display: flex; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid rgba(0,240,255,.2); }
#blc-input { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(236,233,247,.18); border-radius: 8px; color: #fff; padding: 11px 12px; font: 400 16px/1.3 'Inter', sans-serif; }
#blc-input::placeholder { color: #8f86b3; }
#blc-send { cursor: pointer; background: #00f0ff; color: #07040f; border: 0; border-radius: 8px; padding: 0 16px; font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .08em; }
#blc-send:disabled { opacity: .45; cursor: not-allowed; }
.blc-foot { padding: 0 14px 10px; font: 400 10px/1.4 'JetBrains Mono', monospace; color: #8f86b3; letter-spacing: .04em; text-align: center; }
.blc-foot a { color: #a79ecb; }

@media (max-width: 520px) {
  #blc-root { right: 10px; bottom: 10px; left: 10px; display: flex; justify-content: flex-end; }
  #blc-root.is-open { top: 10px; }
  #blc-panel { width: 100%; max-width: none; height: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  #blc-launch .blc-dot, .blc-typing span { animation: none; }
  #blc-root.is-open #blc-panel { animation: none; }
  #blc-log { scroll-behavior: auto; }
}
