/* Krypto Designz chat bubble */
.kc-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: rgba(10, 12, 16, .92); color: #fff; border: 1px solid rgba(0, 242, 254, .35);
  font: 600 15px "Space Grotesk", system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0,242,254,.08), 0 10px 40px -10px rgba(0,242,254,.55); backdrop-filter: blur(12px);
}
.kc-launch:hover { border-color: #00f2fe; box-shadow: 0 0 22px rgba(0,242,254,.35); }
.kc-launch[hidden] { display: none; }
.kc-launch img { width: 28px; height: 28px; }
.kc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 51; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 40px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: #0b0d12; border: 1px solid rgba(0, 242, 254, .25); color: #cbd5e1;
  font: 400 15px/1.5 "Space Grotesk", system-ui, sans-serif; box-shadow: 0 30px 90px -20px rgba(0,0,0,.8), 0 0 50px -20px rgba(0,242,254,.4);
}
.kc-panel[hidden] { display: none; }
.kc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0e1016; }
.kc-title { flex: 1; display: grid; line-height: 1.25; }
.kc-title b { color: #fff; font-size: 16px; }
.kc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #94a3b8; }
.kc-dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; flex: 0 0 auto; }
.kc-dot.on { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.kc-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.kc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kc-log[hidden] { display: none; }
.kc-msg { max-width: 86%; display: grid; gap: 2px; }
.kc-msg p { margin: 0; padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.kc-who { font-size: 12px; color: #64748b; padding: 0 4px; }
.kc-bot p, .kc-human p { background: #161a24; border: 1px solid rgba(255,255,255,.06); color: #e2e8f0; border-bottom-left-radius: 4px; }
.kc-human p { border-color: rgba(0,242,254,.35); }
.kc-visitor { align-self: flex-end; }
.kc-visitor .kc-who { text-align: right; }
.kc-visitor p { background: linear-gradient(100deg, #00f2fe, #1a8cf7); color: #04121a; border-bottom-right-radius: 4px; }
.kc-system { align-self: center; max-width: 92%; }
.kc-system p { background: none; border: 1px dashed rgba(0,242,254,.3); color: #cfe9f3; font-size: 14px; text-align: center; }
.kc-typing { display: flex; align-items: center; gap: 4px; padding: 0 18px 10px; flex-wrap: wrap; }
.kc-typing[hidden] { display: none; }
.kc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #00f2fe; opacity: .4; animation: kc-blink 1.2s infinite; }
.kc-typing span:nth-child(2) { animation-delay: .2s; } .kc-typing span:nth-child(3) { animation-delay: .4s; }
.kc-typing em { flex-basis: 100%; font-size: 13px; color: #94a3b8; font-style: normal; margin-top: 4px; }
.kc-typing em:empty { display: none; }
@keyframes kc-blink { 50% { opacity: 1; } }
.kc-foot { padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; }
.kc-compose { display: flex; gap: 8px; align-items: flex-end; }
.kc-compose[hidden] { display: none; }
.kc-input { flex: 1; resize: none; min-height: 42px; max-height: 110px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #07080b; color: #fff; font: inherit; }
.kc-input:focus, .kc-lead input:focus, .kc-lead textarea:focus { outline: none; border-color: #00f2fe; box-shadow: 0 0 0 3px rgba(0,242,254,.15); }
.kc-send { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #00f2fe, #1a8cf7); color: #03121a; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; }
.kc-send:disabled { opacity: .5; cursor: wait; }
.kc-meta { display: flex; justify-content: space-between; gap: 10px; }
.kc-link { background: none; border: 0; padding: 0; color: #00f2fe; font-weight: 500; font-size: 14px; font-family: inherit; cursor: pointer; text-decoration: none; }
.kc-link[hidden] { display: none; }
.kc-link:hover { text-decoration: underline; }
.kc-pulse { animation: kc-pulse 1.6s ease-in-out 3; }
@keyframes kc-pulse { 50% { text-shadow: 0 0 12px #00f2fe; } }
.kc-note { margin: 0; font-size: 12px; color: #64748b; }
.kc-err { margin: 0; color: #fca5a5; font-size: 14px; }
.kc-err:empty { display: none; }
.kc-lead { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.kc-lead[hidden] { display: none; }
.kc-lead-title { margin: 0; color: #fff; font-weight: 600; }
.kc-lead label { display: grid; gap: 4px; font-size: 13px; color: #94a3b8; }
.kc-lead input:not([type=checkbox]), .kc-lead textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #07080b; color: #fff; font: inherit; }
.kc-lead .kc-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.kc-consent input { margin-top: 3px; accent-color: #00f2fe; width: 16px; height: 16px; flex: 0 0 auto; }
.kc-lead-actions { display: flex; gap: 14px; align-items: center; }
:is(.kc-launch, .kc-close, .kc-send, .kc-link):focus-visible { outline: 2px solid #00f2fe; outline-offset: 2px; }
@media (max-width: 520px) {
  .kc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .kc-launch { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .kc-typing span, .kc-pulse { animation: none; opacity: .8; } }
