/* CiCC Voice AI — Floating pill button + modal */
#cicc-voice-btn {
  position: fixed; bottom: 84px; right: 24px; z-index: 999996;
  height: 44px; border-radius: 22px; border: none;
  background: #7c3aed; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 0 16px 0 12px;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
  transition: all .3s ease;
  animation: ciccVoicePulse 2s infinite;
  font-family: inherit; font-size: 13px; font-weight: 600;
}
#cicc-voice-btn:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(124,58,237,.6); }
.cicc-voice-icon { font-size: 18px; line-height: 1; }

@keyframes ciccVoicePulse { 0%,100%{box-shadow:0 4px 20px rgba(124,58,237,.4)} 50%{box-shadow:0 4px 30px rgba(124,58,237,.7)} }

.cicc-voice-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
}
.cicc-voice-modal-inner {
  text-align: center; padding: 40px; background: #1e293b;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  max-width: 320px; width: 90%;
}
.cicc-voice-avatar { font-size: 48px; margin-bottom: 16px; }

.cicc-voice-wave { display: flex; gap: 4px; justify-content: center; margin-bottom: 20px; height: 40px; align-items: center; }
.cicc-voice-wave span {
  width: 4px; height: 20px; background: #a855f7; border-radius: 2px;
  animation: ciccWave 1s ease-in-out infinite;
}
.cicc-voice-wave span:nth-child(2) { animation-delay: .1s; height: 30px; }
.cicc-voice-wave span:nth-child(3) { animation-delay: .2s; height: 40px; }
.cicc-voice-wave span:nth-child(4) { animation-delay: .3s; height: 30px; }
.cicc-voice-wave span:nth-child(5) { animation-delay: .4s; height: 20px; }

@keyframes ciccWave { 0%,100%{transform:scaleY(.6);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

.cicc-voice-text { color: #e2e8f0; font-size: 15px; margin-bottom: 20px; min-height: 20px; }
.cicc-voice-end-btn {
  padding: 10px 24px; border-radius: 12px; background: #ef4444;
  color: #fff; font-weight: 700; border: none; cursor: pointer; font-size: 14px;
  transition: .2s; font-family: inherit;
}
.cicc-voice-end-btn:hover { transform: scale(1.05); }

/* Dark mode */
[data-theme="dark"] .cicc-voice-modal-inner { background: #0f172a; }

/* Mobile */
@media (max-width: 480px) {
  #cicc-voice-btn { bottom: 74px; right: 16px; width: auto; height: 38px; padding: 0 12px 0 8px; font-size: 12px; }
  .cicc-voice-icon { font-size: 16px; }
}
