/* Voice widget styles */
#voice-widget { position: fixed; right: 22px; bottom: 22px; z-index: 100; }

.vw-fab {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--lime-500);
  color: #050705;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(198,255,61,0.4), 0 0 0 1px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.vw-fab:hover { transform: scale(1.05); }
.vw-fab.active { background: var(--ink-200); color: var(--lime-500); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

.vw-fab-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--lime-500);
  opacity: 0.55;
  animation: vwPing 2.2s ease-out infinite;
  pointer-events: none;
}
.vw-fab-ring-2 { animation-delay: 1.1s; }
@keyframes vwPing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.vw-panel {
  position: absolute;
  bottom: 82px; right: 0;
  width: 380px;
  max-height: 560px;
  background: var(--ink-100);
  border: 1px solid var(--ink-400);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vwIn 0.22s ease-out;
}
@keyframes vwIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.vw-panel[hidden] { display: none; }

.vw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink-400);
  background: linear-gradient(180deg, rgba(139,92,246,0.08), transparent);
}
.vw-head-left { display: flex; align-items: center; gap: 12px; }
.vw-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0a0d0a;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--don-purple), 0 0 12px rgba(139,92,246,0.4);
}
.vw-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.vw-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-top: 3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.vw-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 8px var(--lime-500);
  animation: pulse 1.6s ease-in-out infinite;
}
.vw-close {
  background: none; border: none; color: var(--ink-600);
  cursor: pointer; font-size: 16px;
  width: 28px; height: 28px; border-radius: 4px;
}
.vw-close:hover { background: var(--ink-300); color: var(--ink-900); }

.vw-wave {
  height: 60px;
  background: #050705;
  border-bottom: 1px solid var(--ink-400);
  position: relative;
}
.vw-wave canvas { width: 100%; height: 100%; display: block; }

.vw-log {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 260px;
}
.vw-msg { display: flex; }
.vw-msg-user { justify-content: flex-end; }
.vw-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.vw-msg-bot .vw-bubble {
  background: var(--ink-200);
  border: 1px solid var(--ink-400);
  border-bottom-left-radius: 4px;
}
.vw-msg-user .vw-bubble {
  background: var(--lime-500);
  color: #050705;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.vw-bubble p { margin: 0; }
.vw-bubble p + p { margin-top: 6px; }
.vw-bubble a { color: var(--lime-500); text-decoration: underline; }

.vw-dots { display: inline-flex; gap: 4px; }
.vw-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-600);
  animation: vwDot 1.2s infinite ease-in-out;
}
.vw-dots span:nth-child(2) { animation-delay: 0.15s; }
.vw-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vwDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.vw-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--ink-400);
}
.vw-input {
  flex: 1;
  background: var(--ink-050);
  border: 1px solid var(--ink-400);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--ink-900);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.vw-input:focus { border-color: var(--lime-500); box-shadow: 0 0 0 3px rgba(198,255,61,0.15); }
.vw-send {
  width: 40px; height: 40px;
  border: none; border-radius: 10px;
  background: var(--lime-500);
  color: #050705;
  cursor: pointer;
  display: grid; place-items: center;
}
.vw-send:hover { background: var(--lime-400); }

.vw-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 14px 14px;
}
.vw-quick button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--ink-200);
  color: var(--ink-700);
  border: 1px solid var(--ink-400);
  border-radius: 100px;
  cursor: pointer;
}
.vw-quick button:hover { color: var(--lime-500); border-color: var(--lime-500); }

@media (max-width: 480px) {
  .vw-panel { width: calc(100vw - 20px); right: -10px; }
}
