/* ── ASK SCOUT — Chat Widget ── */
.scout-widget * { box-sizing: border-box; }
.scout-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
}

/* Launcher bubble */
.scout-launcher {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #c8ff00;
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(200, 255, 0, 0.45), 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s ease;
  position: relative;
}
.scout-launcher:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 36px rgba(200, 255, 0, 0.6), 0 6px 16px rgba(0,0,0,0.18);
}
.scout-launcher svg { width: 28px; height: 28px; stroke: currentColor; }
.scout-launcher .scout-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #c8ff00;
  opacity: 0;
  animation: scoutPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes scoutPulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  80%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.scout-launcher .scout-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #c8ff00;
}

/* Panel */
.scout-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
  border: 1px solid rgba(0,0,0,0.06);
}
.scout-widget.open .scout-panel {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.scout-widget.open .scout-launcher {
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* Header */
.scout-header {
  padding: 18px 20px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scout-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #c8ff00;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  font-family: 'DM Serif Display', serif;
}
.scout-title { font-size: 15px; font-weight: 600; line-height: 1.2; }
.scout-status {
  font-size: 11px;
  color: #c8ff00;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.scout-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c8ff00;
  box-shadow: 0 0 8px #c8ff00;
}
.scout-close {
  margin-left: auto;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}
.scout-close:hover { opacity: 1; background: rgba(255,255,255,0.1); }

/* Messages */
.scout-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f6f1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scout-body::-webkit-scrollbar { width: 6px; }
.scout-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.scout-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: scoutFadeUp 0.28s ease;
}
@keyframes scoutFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scout-msg.bot {
  background: #fff;
  color: #111;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.scout-msg.user {
  background: #111;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.scout-msg a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}
.scout-msg.bot a { color: #111; }

/* Typing indicator */
.scout-typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.scout-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #999;
  animation: scoutTyping 1.2s infinite;
}
.scout-typing span:nth-child(2) { animation-delay: 0.15s; }
.scout-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scoutTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Quick replies */
.scout-quickreplies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  animation: scoutFadeUp 0.28s ease;
}
.scout-chip {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  color: #111;
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s;
}
.scout-chip:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Input */
.scout-input-row {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.scout-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: border 0.2s;
  background: #f8f6f1;
  color: #111;
}
.scout-input:focus { border-color: #111; background: #fff; }
.scout-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.scout-send:hover { background: #c8ff00; color: #111; }
.scout-send:active { transform: scale(0.95); }
.scout-send svg { width: 18px; height: 18px; }

.scout-footer {
  padding: 6px 14px 10px;
  background: #fff;
  text-align: center;
  font-size: 10px;
  color: #888;
  letter-spacing: 0.02em;
}
.scout-footer strong { color: #111; font-weight: 600; }

@media (max-width: 480px) {
  .scout-widget { bottom: 16px; right: 16px; }
  .scout-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 72px;
  }
}
