:root {
  color-scheme: dark;

  /* Backgrounds */
  --next-bg-950: #030814;
  --next-bg-900: #040914;
  --next-bg-850: #050b18;
  --next-bg-800: #061022;
  --next-surface: rgba(9, 20, 40, 0.78);
  --next-surface-strong: rgba(10, 24, 48, 0.94);
  --next-surface-soft: rgba(255, 255, 255, 0.04);

  /* Text */
  --next-text-primary: #f6f8ff;
  --next-text-secondary: rgba(230, 238, 255, 0.72);
  --next-text-muted: rgba(230, 238, 255, 0.48);

  /* Brand accents */
  --next-blue: #13baff;
  --next-cyan: #1de7ff;
  --next-purple: #8a45ff;
  --next-purple-light: #b96cff;
  --next-green: #36f59b;
  --next-yellow: #ffb21a;
  --next-gold: #ffbf24;
  --next-orange: #ff8a3d;
  --next-red: #ff4d6d;

  /* Borders */
  --next-border: rgba(91, 183, 255, 0.22);
  --next-border-strong: rgba(29, 231, 255, 0.52);
  --next-border-muted: rgba(255, 255, 255, 0.08);

  /* Shadows and glows */
  --next-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.24);
  --next-shadow-md: 0 18px 48px rgba(0, 0, 0, 0.36);
  --next-glow-blue: 0 0 28px rgba(19, 186, 255, 0.16);
  --next-glow-purple: 0 0 28px rgba(138, 69, 255, 0.16);

  /* Radius */
  --next-radius-sm: 12px;
  --next-radius-md: 16px;
  --next-radius-lg: 22px;
  --next-radius-xl: 28px;
  --next-radius-pill: 999px;

  /* Spacing */
  --next-space-1: 0.25rem;
  --next-space-2: 0.5rem;
  --next-space-3: 0.75rem;
  --next-space-4: 1rem;
  --next-space-5: 1.25rem;
  --next-space-6: 1.5rem;
  --next-space-8: 2rem;
  --next-space-10: 2.5rem;
  --next-space-12: 3rem;

  /* Typography */
  --next-font-family:
    Inter,
    "SF Pro Display",
    "SF Pro Text",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --next-font-xs: 0.75rem;
  --next-font-sm: 0.875rem;
  --next-font-md: 1rem;
  --next-font-lg: 1.125rem;
  --next-font-xl: 1.375rem;
  --next-font-2xl: clamp(1.6rem, 3vw, 2.4rem);
  --next-font-3xl: clamp(2rem, 4vw, 3.5rem);

  /* Layout */
  --next-content-width: 1320px;
  --next-dashboard-width: 1440px;
  --next-header-height: 72px;

  /* Motion */
  --next-transition-fast: 140ms ease;
  --next-transition-normal: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--next-bg-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(138, 69, 255, 0.12), transparent 34rem),
    radial-gradient(circle at top left, rgba(19, 186, 255, 0.1), transparent 30rem),
    var(--next-bg-950);
  color: var(--next-text-primary);
  font-family: var(--next-font-family);
  font-size: var(--next-font-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--next-cyan);
  outline-offset: 3px;
}

::selection {
  background: rgba(29, 231, 255, 0.24);
  color: var(--next-text-primary);
}

.next-page {
  width: min(100% - 2rem, var(--next-content-width));
  margin-inline: auto;
}

.next-dashboard {
  width: min(100% - 2rem, var(--next-dashboard-width));
  margin-inline: auto;
}

.next-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--next-border);
  border-radius: var(--next-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 44%),
    var(--next-surface);
  box-shadow:
    var(--next-shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.next-card--interactive {
  transition:
    transform var(--next-transition-normal),
    border-color var(--next-transition-normal),
    box-shadow var(--next-transition-normal);
}

.next-card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--next-border-strong);
  box-shadow:
    var(--next-shadow-md),
    var(--next-glow-blue);
}

.next-muted {
  color: var(--next-text-muted);
}

.next-secondary {
  color: var(--next-text-secondary);
}

.next-grid {
  display: grid;
  gap: var(--next-space-4);
}

.next-grid--metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 640px) {
  .next-page,
  .next-dashboard {
    width: min(100% - 3rem, var(--next-content-width));
  }

  .next-grid {
    gap: var(--next-space-5);
  }

  .next-grid--metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .next-page {
    width: min(100% - 4rem, var(--next-content-width));
  }

  .next-dashboard {
    width: min(100% - 4rem, var(--next-dashboard-width));
  }

  .next-grid {
    gap: var(--next-space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
