/* ============================================================
   Voice Idea Hub - Futuristic Theme
   Dark, glassmorphic, neon-cyan + violet, animated background.
   ============================================================ */

:root {
  --bg-0: #f4f6fb;
  --bg-1: #ffffff;
  --bg-2: #edf2fa;
  --fg:   #0f172a;
  --fg-dim: #334155;
  --muted: #475569;

  --cyan:    #0ea5e9;
  --violet:  #6366f1;
  --magenta: #d946ef;
  --green:   #10b981;
  --red:     #ef4444;

  --glass:        rgba(255, 255, 255, 0.70);
  --glass-strong: rgba(255, 255, 255, 0.90);
  --border:       rgba(0, 0, 0, 0.08);
  --border-soft:  rgba(0, 0, 0, 0.04);

  --radius: 20px;
  --radius-sm: 12px;
  --grad-1: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #d946ef 100%);
  --grad-2: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
  --shadow-glow: 0 16px 40px rgba(99, 102, 241, 0.06),
                 0 4px 12px rgba(14, 165, 233, 0.03);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -10%, #e2e8f0 0%, var(--bg-0) 50%);
  color: var(--fg);
  font-family: 'Space Grotesk', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- ATMOSPHERIC LAYERS ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.22;
  border-radius: 50%;
}
.aurora-a {
  width: 520px; height: 520px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.aurora-b {
  width: 600px; height: 600px;
  bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35), transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0,0)        scale(1); }
  100% { transform: translate(60px, 80px) scale(1.1); }
}
@keyframes drift-b {
  0%   { transform: translate(0,0)         scale(1); }
  100% { transform: translate(-80px,-40px) scale(1.08); }
}

/* ---------- SHELL ---------- */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 22px 56px;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- HEADER ---------- */
.app-header { text-align: center; margin-bottom: 44px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--glass);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.brand-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: brand-blink 2s ease-in-out infinite;
}
@keyframes brand-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.app-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.grad-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-2 {
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-subtitle {
  color: var(--fg-dim);
  margin: 0;
  font-size: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- STATES ---------- */
.state {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
}
.state.state-active {
  display: flex;
  animation: fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.state-result { gap: 20px; align-items: stretch; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ---------- IDLE - HOLOGRAPHIC ORB ---------- */
.orb-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
}

.orb-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45) 0%, transparent 65%);
  filter: blur(20px);
  animation: orb-breathe 3.5s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(76, 240, 255, 0.35);
  animation: orb-spin 14s linear infinite;
}
.orb-ring::before, .orb-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.10);
}
.orb-ring::before { inset: 14px; }
.orb-ring::after  { inset: 28px; border-style: dotted; }

.orb-ring-2 {
  inset: 0;
  border: 1px solid rgba(124, 92, 255, 0.30);
  animation: orb-spin 22s linear infinite reverse;
}

@keyframes orb-spin {
  to { transform: rotate(360deg); }
}
@keyframes orb-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.orb {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.40);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #d946ef 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.orb:hover  { transform: scale(1.04); }
.orb:active { transform: scale(0.97); }
.orb:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
.orb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.9;
}

/* ---------- IDLE - HINT ROW ---------- */
.hint-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.kbd {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--glass);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}
.dot-sep {
  width: 3px; height: 3px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.6;
}

/* ---------- RECORDING ---------- */
.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 92, 124, 0.12);
  border: 1px solid rgba(255, 92, 124, 0.30);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  box-shadow: 0 0 24px rgba(255, 92, 124, 0.20);
}
.rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: rec-blink 1s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.visualizer {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 110px;
  padding: 8px 0;
}
.visualizer span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--violet) 60%, var(--magenta) 100%);
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.5);
  animation: viz 1.1s ease-in-out infinite;
  opacity: 0.85;
}
.visualizer span:nth-child(1)  { animation-delay: -1.00s; height: 20px; }
.visualizer span:nth-child(2)  { animation-delay: -0.95s; height: 36px; }
.visualizer span:nth-child(3)  { animation-delay: -0.90s; height: 60px; }
.visualizer span:nth-child(4)  { animation-delay: -0.85s; height: 28px; }
.visualizer span:nth-child(5)  { animation-delay: -0.80s; height: 70px; }
.visualizer span:nth-child(6)  { animation-delay: -0.75s; height: 44px; }
.visualizer span:nth-child(7)  { animation-delay: -0.70s; height: 84px; }
.visualizer span:nth-child(8)  { animation-delay: -0.65s; height: 32px; }
.visualizer span:nth-child(9)  { animation-delay: -0.60s; height: 52px; }
.visualizer span:nth-child(10) { animation-delay: -0.55s; height: 76px; }
.visualizer span:nth-child(11) { animation-delay: -0.50s; height: 40px; }
.visualizer span:nth-child(12) { animation-delay: -0.45s; height: 68px; }
.visualizer span:nth-child(13) { animation-delay: -0.40s; height: 90px; }
.visualizer span:nth-child(14) { animation-delay: -0.35s; height: 56px; }
.visualizer span:nth-child(15) { animation-delay: -0.30s; height: 72px; }
.visualizer span:nth-child(16) { animation-delay: -0.25s; height: 38px; }
.visualizer span:nth-child(17) { animation-delay: -0.20s; height: 64px; }
.visualizer span:nth-child(18) { animation-delay: -0.15s; height: 28px; }
.visualizer span:nth-child(19) { animation-delay: -0.10s; height: 80px; }
.visualizer span:nth-child(20) { animation-delay: -0.05s; height: 46px; }
.visualizer span:nth-child(21) { animation-delay: -0.42s; height: 60px; }
.visualizer span:nth-child(22) { animation-delay: -0.18s; height: 30px; }
.visualizer span:nth-child(23) { animation-delay: -0.62s; height: 74px; }
.visualizer span:nth-child(24) { animation-delay: -0.28s; height: 50px; }
.visualizer span:nth-child(25) { animation-delay: -0.78s; height: 88px; }

@keyframes viz {
  0%, 100% { transform: scaleY(0.3); opacity: 0.6; }
  50%      { transform: scaleY(1.1); opacity: 1.0; }
}

.timer {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timer-warning {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
}

.stop-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 92, 124, 0.4);
  background: radial-gradient(circle at 30% 30%, rgba(255, 92, 124, 0.85), rgba(180, 30, 60, 1));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 0 36px rgba(255, 92, 124, 0.45);
  animation: stop-pulse 1.4s ease-in-out infinite;
  margin-top: 6px;
}
.stop-orb:hover { transform: scale(1.05); }
.stop-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
}
@keyframes stop-pulse {
  0%, 100% { box-shadow: 0 0 0 0    rgba(255, 92, 124, 0.45), 0 0 28px rgba(255, 92, 124, 0.45); }
  50%      { box-shadow: 0 0 0 18px rgba(255, 92, 124, 0),    0 0 36px rgba(255, 92, 124, 0.55); }
}

/* ---------- PROCESSING ---------- */
.proc-orb {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 6px;
}
.proc-orb-core {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: var(--grad-1);
  filter: blur(2px);
  animation: orb-breathe 1.6s ease-in-out infinite;
}
.proc-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation: orb-spin 1.4s linear infinite;
}

.proc-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 280px;
}
.proc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.proc-step .proc-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.proc-step .proc-check { opacity: 0; transition: opacity 0.2s; }
.proc-step.proc-step-active {
  color: var(--fg);
}
.proc-step.proc-step-active .proc-bullet {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(76, 240, 255, 0.15),
              0 0 12px rgba(76, 240, 255, 0.7);
  animation: bullet-pulse 1.4s ease-in-out infinite;
}
.proc-step.proc-step-done { color: var(--green); }
.proc-step.proc-step-done .proc-bullet {
  background: var(--green);
  box-shadow: 0 0 10px rgba(92, 255, 175, 0.5);
}
.proc-step.proc-step-done .proc-check {
  opacity: 1;
  color: var(--green);
}
@keyframes bullet-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(76, 240, 255, 0.15), 0 0 12px rgba(76, 240, 255, 0.7); }
  50%      { box-shadow: 0 0 0 9px rgba(76, 240, 255, 0.05), 0 0 18px rgba(76, 240, 255, 0.9); }
}

.proc-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0;
}

/* ---------- RESULT - GLASS CARDS ---------- */
.glass-card {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(31, 41, 55, 0.04), 0 4px 12px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.50) 0%, transparent 50%);
}
.audio-card { padding: 18px 22px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(92, 255, 175, 0.10);
  border: 1px solid rgba(92, 255, 175, 0.30);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--green);
}

.audio-el {
  width: 100%;
  height: 40px;
  margin: 4px 0 12px;
  filter: invert(0.9) hue-rotate(180deg);
}

.seg {
  display: inline-flex;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.seg-btn:hover { color: var(--fg); }
.seg-btn.seg-active {
  background: var(--grad-2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.22);
}

.output-area {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 540px;
  overflow-y: auto;
}
.output-area h3 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 20px 0 6px;
}
.output-area h3:first-child { margin-top: 0; }
.output-area p  { margin: 0 0 12px; color: var(--fg); }
.output-area ul { margin: 0 0 12px; padding-left: 22px; }
.output-area li { margin: 5px 0; color: var(--fg); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pill:hover { border-color: var(--cyan); color: var(--cyan); }
.pill-primary {
  background: var(--grad-2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.35);
}
.pill-primary:hover { color: #fff; filter: brightness(1.1); }
.pill-ghost { background: transparent; }
.pill-link {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.pill-link:hover { color: var(--cyan); border-color: transparent; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 35, 0.95);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-width: 90vw;
  animation: toast-in 0.25s ease;
}
.toast.error { border-color: rgba(255, 92, 124, 0.5); color: var(--red); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- FOOTER ---------- */
.app-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 22px 16px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- UTILS ---------- */
.hidden { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 560px) {
  .app-shell { padding: 40px 16px 32px; }
  .app-title { font-size: 30px; }
  .orb-wrap  { width: 230px; height: 230px; }
  .orb       { width: 138px; height: 138px; }
  .timer     { font-size: 36px; }
  .visualizer { height: 86px; }
  .glass-card { padding: 18px; border-radius: 16px; }
}

/* ---------- FILE UPLOAD ZONE ---------- */
.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  padding: 20px 24px;
  margin: 10px 0 20px;
  background: var(--glass);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.upload-dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0%, rgba(99, 102, 241, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--cyan);
  background: var(--glass-strong);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}
.upload-dropzone:hover::before, .upload-dropzone.dragover::before {
  opacity: 1;
}
.upload-dropzone.dragover {
  border-style: solid;
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.02) translateY(-2px);
}
.upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.upload-dropzone:hover .upload-icon, .upload-dropzone.dragover .upload-icon {
  color: #fff;
  background: var(--grad-2);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.4);
  transform: scale(1.1);
}
.upload-text {
  font-size: 13px;
  color: var(--fg-dim);
  font-family: 'Space Grotesk', sans-serif;
}
.upload-browse {
  color: var(--cyan);
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.upload-browse:hover {
  color: var(--magenta);
}

/* ---------- ERROR CARD ---------- */
.error-card {
  border-color: rgba(255, 92, 124, 0.35) !important;
  background: rgba(255, 92, 124, 0.03) !important;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(255, 92, 124, 0.1) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px !important;
}
.error-icon-wrapper {
  background: rgba(255, 92, 124, 0.12) !important;
  color: var(--red) !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 92, 124, 0.25) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--red) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Space Grotesk', sans-serif;
}
.error-desc {
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.error-audio-wrap {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.error-audio-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px 0 !important;
}
.error-action-row {
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Animations for Real Visualizer Spans */
.visualizer span {
  transition: transform 0.05s ease;
}

/* ---------- APP LAYOUT ---------- */
.app-container {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  align-items: flex-start;
  transition: all 0.4s ease;
}

.guide-card {
  flex: 0 0 380px;
  max-width: 380px;
  background: var(--glass) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
}

.guide-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.4));
}

.guide-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--fg);
  margin: 0;
}

.guide-intro {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  width: 100%;
  text-align: left;
}

/* Thin premium scrollbar for guide list */
.guide-list::-webkit-scrollbar {
  width: 4px;
}
.guide-list::-webkit-scrollbar-track {
  background: transparent;
}
.guide-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.guide-list::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

.guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.guide-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(76, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(76, 240, 255, 0.05);
}

.guide-num {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  background: rgba(76, 240, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.guide-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-text strong {
  font-size: 16px;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.guide-bn {
  font-size: 13px;
  color: var(--fg-dim);
  font-family: 'Hind Siliguri', sans-serif;
}

.app-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* responsive grid layout */
@media (max-width: 992px) {
  .app-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .guide-card {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
}


