.dashboard-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--ios-bg, var(--bg));
}

.dashboard-bg::before,
.dashboard-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.dashboard-bg::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ios-accent, var(--accent)) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: bg-drift-1 20s ease-in-out infinite;
}

.dashboard-bg::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ios-accent-2, var(--accent)) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation: bg-drift-2 25s ease-in-out infinite;
}

@keyframes bg-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 100px) scale(0.95); }
}

@keyframes bg-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -80px) scale(1.05); }
  66% { transform: translate(50px, -40px) scale(1.1); }
}

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--ios-accent-soft, rgba(15, 139, 220, 0.12));
  background: transparent;
  opacity: 0.5;
}

.bg-shape--1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 5%;
  animation: shape-float 18s ease-in-out infinite;
}

.bg-shape--2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 8%;
  animation: shape-float 22s ease-in-out infinite 3s;
}

.bg-shape--3 {
  width: 90px;
  height: 90px;
  bottom: 15%;
  left: 30%;
  animation: shape-float 15s ease-in-out infinite 6s;
  border-color: var(--ios-accent-2, var(--accent));
  opacity: 0.3;
}

@keyframes shape-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(10px) rotate(-3deg); }
  75% { transform: translateY(-15px) rotate(2deg); }
}

.bg-mouse-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ios-accent-soft, rgba(15, 139, 220, 0.12)) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg-mouse-glow--active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-bg::before,
  .dashboard-bg::after,
  .bg-shape {
    animation: none;
  }

  .bg-mouse-glow {
    display: none;
  }
}
