#particles-js,
#three-canvas {
  position: fixed;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

#particles-js {
  z-index: 0;
}

#three-canvas {
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  background: var(--panel-dark);
  backdrop-filter: blur(40px);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 4vw, 46px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7),
              0 0 150px rgba(92, 45, 145, 0.4),
              0 0 50px rgba(166, 206, 57, 0.3),
              inset 0 0 80px rgba(255, 255, 255, 0.03),
              inset 0 2px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(92, 45, 145, 0.5);
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
  perspective: 1800px;
}

.container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--ld-purple), var(--ld-purple-light), var(--ld-green), var(--ld-green-dark), var(--ld-purple), var(--ld-purple-light), var(--ld-green));
  background-size: 600% 600%;
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  animation: gradientBorder 20s ease infinite;
  opacity: 0.7;
}

.container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(68, 102, 170, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -2;
  animation: pulseGlow 8s ease-in-out infinite;
}

.input-section,
.preview-section {
  position: relative;
}

.input-section {
  margin-bottom: 35px;
}

.preview-section {
  margin-top: 35px;
}

.input-section::before,
.preview-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(92, 45, 145, 0.5), transparent);
}

.input-section::before {
  top: 0;
}

.preview-section::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(166, 206, 57, 0.5), transparent);
}
