* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0118;
  color: #f0e6ff;
  font-family: 'Bricolage Grotesque', sans-serif;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#root {
  position: relative;
  z-index: 1;
}

/* Glassmorphism card */
.glass {
  background: rgba(26, 5, 51, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 225, 53, 0.12);
}

.glass-light {
  background: rgba(255, 225, 53, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 225, 53, 0.15);
}

/* Mic button idle pulse */
@keyframes mic-breathe {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 225, 53, 0.25), 0 0 60px rgba(255, 225, 53, 0.1); transform: scale(1); }
  50% { box-shadow: 0 0 50px rgba(255, 225, 53, 0.4), 0 0 100px rgba(255, 225, 53, 0.15); transform: scale(1.03); }
}

.mic-idle {
  animation: mic-breathe 3s ease-in-out infinite;
}

/* Mic button listening pulse */
@keyframes mic-listen {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 149, 0.4), 0 0 60px rgba(255, 45, 149, 0.2), inset 0 0 20px rgba(255, 45, 149, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 149, 0.7), 0 0 100px rgba(255, 45, 149, 0.35), inset 0 0 30px rgba(255, 45, 149, 0.15); }
}

.mic-listening {
  animation: mic-listen 0.8s ease-in-out infinite;
}

/* Ring pulse for listening state */
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.ring-pulse {
  animation: ring-pulse 1.2s ease-out infinite;
}

.ring-pulse-delay {
  animation: ring-pulse 1.2s ease-out 0.4s infinite;
}

/* Banana spin loader */
@keyframes banana-spin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.banana-spin {
  animation: banana-spin 1.5s ease-in-out infinite;
}

/* Typewriter cursor blink */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink::after {
  content: '▌';
  color: #ffe135;
  animation: cursor-blink 0.8s step-end infinite;
}

/* Skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(45, 10, 78, 0.5) 25%, rgba(255, 225, 53, 0.08) 50%, rgba(45, 10, 78, 0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* Fade in scale */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fade-in-scale {
  animation: fadeInScale 0.5s ease-out forwards;
}

/* Slide up */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* Waveform bars */
@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Status dot pulse */
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.dot-pulse {
  animation: dot-pulse 1s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 1, 24, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 225, 53, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 225, 53, 0.5);
}

/* Modal overlay */
.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Grain overlay */
.grain-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}