/* StricklandAI Live Chat Widget — STRIX Blue Brand */
#strix-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: #3B82F6; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(59,130,246,0.35);
  transition: transform 0.2s, background 0.2s;
}
#strix-bubble:hover { transform: scale(1.1); background: #60A5FA; }
.strix-ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: #3B82F6; opacity: 0.3;
  animation: strixPing 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes strixPing { 75%,100% { transform: scale(1.6); opacity: 0; } }

#strix-panel {
  position: fixed; z-index: 10000;
  bottom: 24px; right: 24px;
  width: 380px; max-width: calc(100vw - 48px);
  height: 520px; max-height: calc(100vh - 48px);
  background: #070B12; border: 2px solid rgba(59,130,246,0.4);
  box-shadow: 0 8px 40px rgba(59,130,246,0.15);
  flex-direction: column; overflow: hidden;
  font-family: 'Space Grotesk', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}
@media (max-width: 639px) {
  #strix-panel {
    bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%;
    height: 100dvh; max-height: 100dvh; border: none;
  }
}

.sp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #0D1219; border-bottom: 1px solid rgba(59,130,246,0.25);
  flex-shrink: 0;
}
.sp-header-left { display: flex; align-items: center; gap: 12px; }
.sp-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #1A2232;
  border: 1px solid #3B82F6;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.sp-name { font-size: 14px; font-weight: 700; color: #F0F2F5; }
.sp-status { font-size: 10px; color: #22C55E; display: flex; align-items: center; gap: 4px; }
.sp-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; display: inline-block; }
.sp-close {
  background: none; border: none; color: #8B95A5; cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.sp-close:hover { color: #F0F2F5; }

.sp-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.sp-msg {
  max-width: 85%; padding: 8px 12px; font-size: 14px; line-height: 1.5;
  word-wrap: break-word;
}
.sp-user {
  align-self: flex-end;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  color: #BFDBFE;
}
.sp-agent {
  align-self: flex-start;
  background: #0D1219; border: 1px solid #1A2232; color: #CBD5E1;
  border-left: 2px solid #3B82F6;
}

.sp-dots { display: inline-flex; gap: 4px; }
.sp-dots span {
  width: 6px; height: 6px; background: #3B82F6; border-radius: 50%;
  animation: spBounce 1.4s infinite ease-in-out;
}
.sp-dots span:nth-child(2) { animation-delay: 0.15s; }
.sp-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes spBounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

.sp-input-bar {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid #1A2232;
  background: rgba(13,18,25,0.8); flex-shrink: 0;
}
.sp-input-bar input {
  flex: 1; background: #070B12; border: 1px solid #1A2232;
  padding: 8px 12px; font-size: 14px; color: #F0F2F5;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.sp-input-bar input:focus { border-color: rgba(59,130,246,0.5); }
.sp-input-bar input::placeholder { color: #5A6577; }
.sp-input-bar input:disabled { opacity: 0.5; }
.sp-input-bar button {
  padding: 8px 12px; background: #3B82F6; border: none; cursor: pointer;
  color: #fff; font-weight: 700; transition: background 0.2s;
}
.sp-input-bar button:hover { background: #60A5FA; }
.sp-input-bar button:disabled { background: #1A2232; color: #5A6577; cursor: default; }

.sp-footer {
  text-align: center; padding: 6px; font-size: 10px; color: #5A6577; flex-shrink: 0;
}
