body {
  background: linear-gradient(135deg, #312e81 0%, #6d28d9 45%, #1e293b 100%);
}
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.glass-soft {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.accent-glow {
  text-shadow: 0 0 24px rgba(167, 139, 250, 0.6);
}
textarea {
  resize: vertical;
}
details summary::-webkit-details-marker {
  display: none;
}
details[open] .chev {
  transform: rotate(180deg);
}
.chev {
  transition: transform 0.25s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.45s ease both;
}
@keyframes pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.pop {
  animation: pop 0.35s ease both;
}

/* ---- Matrix terminal ---- */
.terminal {
  background: rgba(2, 8, 20, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15), inset 0 0 40px rgba(16, 185, 129, 0.05);
}
.terminal-head {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.06));
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
}
.term-text {
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
}
.term-log {
  min-height: 240px;
}
.term-line {
  opacity: 0;
  transform: translateY(4px);
  animation: termIn 0.25s ease forwards;
}
@keyframes termIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cursor-blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(16, 185, 129, 0.05) 2px 4px);
}
@keyframes matrixDrop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.matrix-col {
  animation: matrixDrop 1.2s linear infinite;
}