/* =============================================
   ARIA Voice Agent — Premium 2.0 Dark UI
   Glassmorphism, Neon Glows, and Smooth Motion
   ============================================= */

:root {
  /* --- Professional Color Palette (HSL) --- */
  --hue: 235;
  --bg-dark:        hsl(var(--hue), 40%, 4%);
  --bg-panel:       hsla(var(--hue), 30%, 8%, 0.65);
  --bg-panel-hover: hsla(var(--hue), 30%, 12%, 0.8);
  --glass-border:   hsla(var(--hue), 50%, 60%, 0.12);
  --glass-border-bright: hsla(var(--hue), 50%, 60%, 0.25);
  
  --accent-primary:   hsl(250, 85%, 65%);   /* Sophisticated Purple */
  --accent-secondary: hsl(190, 90%, 55%);   /* Vibrant Cyan */
  --accent-rose:      hsl(340, 80%, 65%);   /* Rose Accent */
  --accent-success:   hsl(145, 65%, 55%);   /* Emerald Green */
  --accent-warning:   hsl(45, 90%, 60%);    /* Amber */
  --accent-error:     hsl(0, 75%, 60%);     /* Soft Red */

  --text-main:      hsl(var(--hue), 20%, 96%);
  --text-dim:       hsl(var(--hue), 15%, 70%);
  --text-muted:     hsl(var(--hue), 10%, 45%);

  /* --- Gradients & Shadows --- */
  --grad-linear:    linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --grad-surface:   linear-gradient(180deg, hsla(0, 0%, 100%, 0.05) 0%, transparent 100%);
  --shadow-sm:      0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 16px 48px 0 rgba(0, 0, 0, 0.6);
  --shadow-glow:    0 0 24px hsla(250, 85%, 65%, 0.2);
  
  /* --- Layout & Spacing --- */
  --gap-main:       24px;
  --pad-panel:      24px;
  --radius-xl:      28px;
  --radius-lg:      20px;
  --radius-md:      12px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Global Reset --- */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Background handled by ::before and orbs */
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}


/* Base text hierarchy */
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

/* --- Ambient Effects --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.10;
  animation: float 20s infinite ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-primary); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--accent-secondary); bottom: -100px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: var(--accent-rose); top: 50%; left: 50%; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* --- Layout --- */
.app-container {
  width: 100%;
  max-width: 1440px;
  height: 100vh;
  padding: var(--gap-main);
  display: flex;
  flex-direction: column;
  gap: var(--gap-main);
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-sm);
}

.logo { display: flex; align-items: center; gap: 18px; }
.logo-icon { 
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-logo-img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 0 8px hsla(250, 85%, 65%, 0.6));
  transition: var(--transition-base);
  mix-blend-mode: screen; /* Blends black background of the logo */
}
.logo:hover .main-logo-img { 
  transform: scale(1.15) rotate(2deg); 
  filter: drop-shadow(0 0 15px hsla(190, 90%, 55%, 0.8));
}

.preloader-logo img {
  mix-blend-mode: screen;
}

.logo-text h1 {
  font-size: 1.75rem;
  letter-spacing: 2px;
  background: var(--grad-linear);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text span { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: var(--transition-fast);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 12px var(--accent-success);
}
.status-pill.listening .status-dot { background: var(--accent-rose); box-shadow: 0 0 12px var(--accent-rose); animation: pulse 1.2s infinite; }
.status-pill.thinking .status-dot { background: var(--accent-primary); box-shadow: 0 0 12px var(--accent-primary); animation: pulse 1.2s infinite; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-icon {
  background: hsla(0, 0%, 100%, 0.08);
  border: 1px solid var(--glass-border-bright);
  color: var(--text-main);
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-icon:hover { 
  background: hsla(0, 0%, 100%, 0.08); 
  color: var(--text-main); 
  border-color: var(--glass-border-bright);
  transform: translateY(-2px);
}

/* --- Main Content Layout --- */
.main-content {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 30px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  animation: panelEntry 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.panel:hover {
  border-color: var(--glass-border-bright);
  box-shadow: var(--shadow-lg);
}

.memory-panel { animation-delay: 0.1s; }
.tasks-panel { animation-delay: 0.3s; }

@keyframes panelEntry {
  from { opacity: 0; transform: scale(0.98) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  background: hsla(0, 0%, 100%, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Chat Panel Specifics --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { 
  background: var(--glass-border); 
  border-radius: 10px; 
}

.message {
  display: flex;
  gap: 16px;
  max-width: 88%;
}

.message-user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 40px; height: 40px;
  background: hsla(250, 85%, 65%, 0.1);
  border: 1px solid hsla(250, 85%, 65%, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}
.message-user .message-avatar { 
  background: hsla(190, 90%, 55%, 0.1); 
  border-color: hsla(190, 90%, 55%, 0.2); 
  color: var(--accent-secondary); 
  box-shadow: 0 0 20px hsla(190, 90%, 55%, 0.15);
}

.message-content {
  background: hsla(0, 0%, 100%, 0.03);
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}
.message-content:hover { background: hsla(0, 0%, 100%, 0.05); }

.message-user .message-content {
  background: hsla(250, 85%, 65%, 0.08);
  border-color: hsla(250, 85%, 65%, 0.2);
  border-top-right-radius: 4px;
}
.message-assistant .message-content {
  border-top-left-radius: 4px;
}

/* --- Transcript & Input --- */
.transcript-bar {
  padding: 10px 24px;
  background: hsla(0, 0%, 0%, 0.2);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}
.waveform span {
  width: 4px;
  height: 100%;
  background: var(--accent-rose);
  border-radius: 4px;
  animation: quiet 1.2s infinite;
}
.transcript-bar.active .waveform span { animation: wave 0.6s infinite; }

.text-input-area {
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  background: hsla(0, 0%, 100%, 0.01);
}
#text-input {
  flex: 1;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}
#text-input:focus { 
  border-color: var(--accent-primary); 
  background: hsla(0, 0%, 100%, 0.07);
  box-shadow: 0 0 0 4px hsla(250, 85%, 65%, 0.1);
}

.btn-send {
  background: var(--grad-linear);
  border: none;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow);
}
.btn-send:hover { 
  transform: scale(1.05) translateY(-2px); 
  box-shadow: 0 8px 24px hsla(250, 85%, 65%, 0.4); 
}

/* --- Center Console --- */
.center-console {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: panelEntry 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.2s;
  min-height: 0;
  flex: 1;
}

.center-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chat-panel {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 0;
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.voice-prompt-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.7;
}

.mic-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.mic-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-secondary);
  opacity: 0;
}
.mic-wrapper:hover .mic-ring.ring-1, .mic-btn.listening ~ .mic-ring.ring-1 { animation: pulseRing 3s infinite 0s; }
.mic-wrapper:hover .mic-ring.ring-2, .mic-btn.listening ~ .mic-ring.ring-2 { animation: pulseRing 3s infinite 1s; }
.mic-wrapper:hover .mic-ring.ring-3, .mic-btn.listening ~ .mic-ring.ring-3 { animation: pulseRing 3s infinite 2s; }

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mic-btn {
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, hsla(190, 90%, 55%, 0.2) 0%, hsla(190, 90%, 15%, 0.8) 100%);
  border: 2px solid hsla(190, 90%, 55%, 0.5);
  border-radius: 50%;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-base);
  box-shadow: 0 0 30px hsla(190, 90%, 55%, 0.3), inset 0 0 20px hsla(190, 90%, 55%, 0.2);
}
.mic-btn svg {
  color: var(--accent-secondary);
  filter: drop-shadow(0 0 8px var(--accent-secondary));
}
.mic-btn:hover { 
  transform: scale(1.05); 
  box-shadow: 0 0 50px hsla(190, 90%, 55%, 0.5), inset 0 0 30px hsla(190, 90%, 55%, 0.4); 
}
.mic-btn.listening {
  background: radial-gradient(circle, hsla(340, 80%, 65%, 0.2) 0%, hsla(340, 80%, 15%, 0.8) 100%);
  border-color: hsla(340, 80%, 65%, 0.5);
  color: var(--accent-rose);
  box-shadow: 0 0 40px hsla(340, 80%, 65%, 0.4);
}
.mic-btn.listening svg {
  color: var(--accent-rose);
  filter: drop-shadow(0 0 8px var(--accent-rose));
}

.processing-panel {
  background: hsla(var(--hue), 30%, 5%, 0.4);
  border-top: 1px solid var(--glass-border);
  padding: 8px 20px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}
.processing-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  font-weight: 700;
  white-space: nowrap;
}
.transcript-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.2;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tasks-panel, .memory-panel {
  flex: 1;
  min-height: 0;
}

/* --- Quick Add Area --- */
.quick-add-area {
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  background: hsla(0, 0%, 100%, 0.02);
  border-bottom: 1px solid var(--glass-border);
}
.quick-add-area input {
  flex: 1;
  background: hsla(0, 0%, 100%, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}
.quick-add-area input:focus {
  border-color: var(--accent-primary);
  background: hsla(0, 0%, 100%, 0.07);
}
.btn-quick-add {
  background: var(--accent-primary);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px hsla(250, 85%, 65%, 0.3);
}
.btn-quick-add:hover {
  transform: scale(1.05) translateY(-1px);
  filter: brightness(1.1);
}
.btn-quick-mem {
  background: var(--accent-secondary);
  box-shadow: 0 4px 12px hsla(190, 90%, 55%, 0.3);
}

/* --- Lists & Items --- */
.tasks-list, .memory-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tasks-list::-webkit-scrollbar, .memory-list::-webkit-scrollbar { width: 6px; }
.tasks-list::-webkit-scrollbar-thumb, .memory-list::-webkit-scrollbar-thumb { background: hsla(250, 85%, 65%, 0.2); border-radius: 6px; }

.task-item, .memory-item {
  background: hsla(0, 0%, 100%, 0.03);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-base);
  animation: itemIn 0.4s ease-out;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.task-item:hover, .memory-item:hover { 
  border-color: var(--glass-border-bright); 
  background: hsla(0, 0%, 100%, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.task-check {
  width: 24px; height: 24px;
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.task-item.completed .task-check { 
  background: var(--accent-success); 
  border-color: var(--accent-success); 
  box-shadow: 0 0 12px var(--accent-success);
}
.task-item.completed .task-title { text-decoration: line-through; opacity: 0.5; }

.task-info, .mem-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.task-title { font-size: 1rem; font-weight: 500; }
.mem-content { font-size: 1rem; font-weight: 500; color: var(--text-main); line-height: 1.5; }

.task-meta, .mem-meta { 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  font-weight: 500;
}

.task-badge, .mem-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-added { background: hsla(250, 85%, 65%, 0.1); color: var(--accent-primary); }
.badge-updated { background: hsla(45, 90%, 60%, 0.1); color: var(--accent-warning); }
.badge-completed { background: hsla(145, 65%, 55%, 0.1); color: var(--accent-success); }
.badge-deleted { background: hsla(0, 75%, 60%, 0.1); color: var(--accent-error); }

.days-left {
  background: hsla(340, 80%, 65%, 0.1);
  color: var(--accent-rose);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.btn-delete {
  background: hsla(0, 0%, 100%, 0.05);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  opacity: 0;
  transition: var(--transition-fast);
}
.task-item:hover .btn-delete, .memory-item:hover .btn-delete { opacity: 1; }
.btn-delete:hover { color: var(--accent-error); background: hsla(0, 75%, 60%, 0.1); }

/* --- Footer --- */
.footer {
  padding: 16px 32px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
}
.toggle-label input { display: none; }
.toggle-slider {
  width: 44px; height: 24px;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 12px;
  position: relative;
  transition: var(--transition-base);
  border: 1px solid var(--glass-border);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-base);
}
.toggle-label input:checked + .toggle-slider { background: var(--accent-primary); border-color: var(--accent-primary); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(20px); }

/* --- Utilities --- */
.toast-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}
.toast {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast-success { border-color: var(--accent-success); color: var(--accent-success); }
.toast-error { border-color: var(--accent-error); color: var(--accent-error); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  gap: 16px;
  padding: 40px;
}
.empty-icon-wrap { 
  opacity: 0.2; 
  background: hsla(0, 0%, 100%, 0.05);
  padding: 20px;
  border-radius: 20px;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background: #000; /* Pure black to match the logo background perfectly */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.loader-spinner {
  width: 56px; height: 56px;
  border: 3px solid hsla(250, 85%, 65%, 0.1);
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  filter: drop-shadow(0 0 10px hsla(250, 85%, 65%, 0.3));
}
@keyframes spin { to { transform: rotate(360deg); } }

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

/* --- Responsive --- */
@media (max-width: 1300px) {
  .main-content { grid-template-columns: 280px 1fr 280px; gap: 20px; }
}

@media (max-width: 1100px) {
  .main-content { grid-template-columns: 250px 1fr 250px; }
}
@media (max-width: 1000px) {
  .main-content { grid-template-columns: 1fr; overflow-y: auto; }
  .right-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .mic-section { grid-column: span 2; }
}
@media (max-width: 650px) {
  .app-container { padding: 12px; height: auto; min-height: 100vh; overflow-y: auto; }
  .main-content { grid-template-columns: 1fr; }
  .right-panel { grid-template-columns: 1fr; }
  .mic-section { grid-column: span 1; }
  .header { padding: 12px 20px; }
  .logo-text h1 { font-size: 1.25rem; }
}
