body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

[x-cloak] {
  display: none !important;
}

.dashboard-shell {
  animation: dashboard-enter 420ms ease-out both;
}

.dashboard-hero {
  position: relative;
  isolation: isolate;
}

.pro-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  outline: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 180ms ease, box-shadow 180ms ease, outline-color 180ms ease;
}

.pro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  outline-color: rgba(148, 163, 184, 0.48);
}

.metric-tile {
  border-radius: 20px;
  padding: 16px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.metric-tile:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.16);
}

.interactive-row {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.interactive-row:hover {
  transform: translateX(3px);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.chart-bar {
  min-height: 4px;
  transform-origin: bottom;
  animation: chart-rise 720ms cubic-bezier(.2, .8, .2, 1) both;
}

.donut {
  width: 172px;
  height: 172px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 49%, transparent 50%),
    conic-gradient(
      #f59e0b 0 var(--unpaid),
      #8b5cf6 var(--unpaid) calc(var(--unpaid) + var(--credit)),
      #10b981 calc(var(--unpaid) + var(--credit)) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85), 0 16px 35px rgba(15, 23, 42, 0.08);
  animation: donut-pop 560ms ease-out both;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.72);
  animation: pulse-dot 1.8s infinite;
}

.not-found-scene {
  animation: dashboard-enter 420ms ease-out both;
}

.nf-number {
  position: absolute;
  inset: 52px 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0f172a;
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
}

.nf-zero {
  display: inline-flex;
  height: 88px;
  width: 88px;
  align-items: center;
  justify-content: center;
  border: 10px solid #0891b2;
  border-radius: 999px;
  color: transparent;
  box-shadow: 0 18px 45px rgba(8, 145, 178, 0.18);
  animation: nf-float 3.8s ease-in-out infinite;
}

.nf-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.nf-orbit-one {
  height: 214px;
  width: 214px;
  animation: nf-spin 18s linear infinite;
}

.nf-orbit-two {
  height: 154px;
  width: 280px;
  animation: nf-spin 14s linear infinite reverse;
}

.nf-card {
  position: absolute;
  height: 42px;
  width: 66px;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.nf-card-one {
  left: 18%;
  top: 40px;
  animation: nf-drift 5s ease-in-out infinite;
}

.nf-card-two {
  bottom: 44px;
  right: 17%;
  animation: nf-drift 5.8s ease-in-out infinite reverse;
}

.nf-line {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
  opacity: 0.9;
  animation: nf-scan 2.6s ease-in-out infinite;
}

.nf-line-one {
  bottom: 82px;
  left: 24%;
  width: 44%;
}

.nf-line-two {
  bottom: 58px;
  left: 30%;
  width: 30%;
  animation-delay: 160ms;
}

.nf-line-three {
  bottom: 34px;
  left: 37%;
  width: 22%;
  animation-delay: 320ms;
}

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

@keyframes chart-rise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes donut-pop {
  from {
    opacity: 0;
    transform: scale(.92) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes pulse-dot {
  70% {
    box-shadow: 0 0 0 12px rgba(103, 232, 249, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(103, 232, 249, 0);
  }
}

@keyframes nf-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

@keyframes nf-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes nf-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(12px) rotate(5deg);
  }
}

@keyframes nf-scan {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }
  50% {
    transform: translateX(18px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-shell,
  .chart-bar,
  .donut,
  .pulse-dot,
  .not-found-scene,
  .nf-zero,
  .nf-orbit-one,
  .nf-orbit-two,
  .nf-card,
  .nf-line {
    animation: none;
  }

  .pro-card,
  .metric-tile,
  .interactive-row {
    transition: none;
  }
}
