.dark.theme-cosmic {
  --background: 260 30% 8%;
  --foreground: 210 40% 98%;
  --card: 260 25% 12%;
  --card-foreground: 210 40% 98%;
  --popover: 260 25% 12%;
  --popover-foreground: 210 40% 98%;
  --primary: 280 60% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 260 20% 20%;
  --secondary-foreground: 210 40% 98%;
  --muted: 260 20% 18%;
  --muted-foreground: 260 10% 60%;
  --accent: 280 60% 55%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 70% 50%;
  --destructive-foreground: 210 40% 98%;
  --border: 260 20% 22%;
  --input: 260 20% 22%;
  --ring: 280 60% 55%;
  --radius: 0.5rem;
  --sidebar: 260 30% 8%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-primary: 280 60% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 280 60% 55%;
  --sidebar-accent-foreground: 210 40% 98%;
  --sidebar-border: 260 20% 20%;
  --sidebar-ring: 280 60% 55%;
}

.light.theme-cosmic {
  --background: 0 0% 98%;
  --foreground: 260 30% 12%;
  --card: 0 0% 100%;
  --card-foreground: 260 30% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 260 30% 12%;
  --primary: 280 50% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 260 20% 92%;
  --secondary-foreground: 260 30% 20%;
  --muted: 260 15% 92%;
  --muted-foreground: 260 10% 45%;
  --accent: 280 50% 50%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 80% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 260 15% 85%;
  --input: 260 15% 85%;
  --ring: 280 50% 50%;
  --radius: 0.5rem;
  --sidebar: 0 0% 100%;
  --sidebar-foreground: 260 30% 12%;
  --sidebar-primary: 280 50% 50%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 280 50% 50%;
  --sidebar-accent-foreground: 0 0% 100%;
  --sidebar-border: 260 15% 85%;
  --sidebar-ring: 280 50% 50%;
}

.dark.theme-cosmic body {
  background: transparent
    radial-gradient(ellipse 120% 70% at 20% 30%, rgba(100, 60, 200, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 70%, rgba(0, 200, 100, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 20%, rgba(200, 50, 180, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 40% 80%, rgba(50, 100, 220, 0.15) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: cosmic-drift 90s linear infinite;
}

.dark.theme-cosmic body > div {
  background: transparent !important;
}

.light.theme-cosmic body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 15% 25%, rgba(0, 200, 80, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(100, 60, 200, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 60% 20%, rgba(0, 200, 80, 0.05) 0%, transparent 50%);
}

@keyframes cosmic-drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.dark.theme-cosmic .text-glow {
  text-shadow: 0 0 10px hsl(120, 100%, 45%), 0 0 30px hsl(120, 100%, 45%), 0 0 60px rgba(0, 220, 100, 0.4);
}

.light.theme-cosmic .text-glow {
  text-shadow: 0 0 8px hsl(280, 50%, 50%), 0 0 20px hsl(280, 50%, 50%), 0 0 40px rgba(200, 50, 200, 0.3);
}

.dark.theme-cosmic h1, .dark.theme-cosmic h2, .dark.theme-cosmic h3 {
  background: linear-gradient(135deg, hsl(120, 100%, 45%), hsl(170, 80%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light.theme-cosmic h1, .light.theme-cosmic h2, .light.theme-cosmic h3 {
  background: linear-gradient(135deg, hsl(280, 50%, 45%), hsl(280, 60%, 55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark.theme-cosmic a {
  color: hsl(120, 90%, 50%);
  text-decoration: none;
  transition: color 0.2s;
}

.light.theme-cosmic a {
  color: hsl(280, 50%, 45%);
  text-decoration: none;
  transition: color 0.2s;
}

.dark.theme-cosmic a:hover {
  color: hsl(170, 80%, 50%);
  text-shadow: 0 0 8px rgba(0, 220, 100, 0.4);
}

.light.theme-cosmic a:hover {
  color: hsl(280, 60%, 55%);
}

.dark.theme-cosmic blockquote {
  border-left: 3px solid hsl(280, 60%, 55%);
  color: hsl(260, 15%, 70%);
  font-style: italic;
}

.light.theme-cosmic blockquote {
  border-left: 3px solid hsl(280, 50%, 50%);
  color: hsl(260, 10%, 45%);
  font-style: italic;
}

.dark.theme-cosmic code {
  color: hsl(120, 90%, 50%);
  background: rgba(100, 60, 200, 0.15);
  border: 1px solid rgba(100, 60, 200, 0.2);
}

.light.theme-cosmic code {
  color: hsl(280, 50%, 45%);
  background: rgba(100, 60, 200, 0.06);
  border: 1px solid rgba(100, 60, 200, 0.15);
}

.dark.theme-cosmic pre {
  background: rgba(13, 8, 32, 0.8);
  border: 1px solid rgba(100, 60, 200, 0.15);
}

.light.theme-cosmic pre {
  background: rgba(0, 200, 80, 0.03);
  border: 1px solid rgba(0, 200, 80, 0.1);
}

.dark.theme-cosmic hr {
  border-color: rgba(100, 60, 200, 0.2);
}

.light.theme-cosmic hr {
  border-color: rgba(0, 200, 80, 0.15);
}

.dark.theme-cosmic table th {
  color: hsl(120, 90%, 50%);
}

.light.theme-cosmic table th {
  color: hsl(280, 50%, 45%);
}

.dark.theme-cosmic table td {
  border-color: rgba(100, 60, 200, 0.15);
}

.light.theme-cosmic table td {
  border-color: rgba(0, 200, 80, 0.1);
}

.dark.theme-cosmic ::selection {
  background: rgba(200, 50, 200, 0.25);
  color: hsl(0, 0%, 100%);
}

.light.theme-cosmic ::selection {
  background: rgba(200, 50, 200, 0.15);
  color: hsl(0, 0%, 0%);
}

.dark.theme-cosmic input::placeholder,
.dark.theme-cosmic textarea::placeholder {
  color: hsl(260, 10%, 40%);
}

.light.theme-cosmic input::placeholder,
.light.theme-cosmic textarea::placeholder {
  color: hsl(260, 10%, 65%);
}

.dark.theme-cosmic .page-header-title {
  color: hsl(120, 90%, 50%);
}

.light.theme-cosmic .page-header-title {
  color: hsl(280, 50%, 45%);
}

.dark.theme-cosmic .stat-card-value {
  color: hsl(120, 90%, 50%);
}

.light.theme-cosmic .stat-card-value {
  color: hsl(280, 50%, 45%);
}

.dark.theme-cosmic .badge {
  color: hsl(120, 90%, 50%);
}

.light.theme-cosmic .badge {
  color: hsl(280, 50%, 45%);
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(odd) .group .h-1.w-full {
  background: linear-gradient(to right, hsl(280, 60%, 55%), hsl(280, 70%, 65%), hsl(280, 60%, 55%)) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(even) .group .h-1.w-full {
  background: linear-gradient(to right, hsl(120, 100%, 45%), hsl(120, 100%, 55%), hsl(120, 100%, 45%)) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(odd) .group .rounded-xl.shrink-0 {
  background: hsla(280, 60%, 55%, 0.1) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(even) .group .rounded-xl.shrink-0 {
  background: hsla(120, 100%, 45%, 0.1) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(odd) .group .rounded-xl.shrink-0 svg {
  color: hsl(280, 60%, 55%) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(even) .group .rounded-xl.shrink-0 svg {
  color: hsl(120, 100%, 45%) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(odd) .group .absolute.bottom-0.h-1 {
  background: linear-gradient(to right, transparent, hsla(280, 60%, 55%, 0.25), transparent) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(even) .group .absolute.bottom-0.h-1 {
  background: linear-gradient(to right, transparent, hsla(120, 100%, 45%, 0.25), transparent) !important;
}

.dark.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 .rounded-full.bg-gradient-to-r {
  background: linear-gradient(to right, hsl(280, 60%, 55%), hsl(120, 100%, 45%)) !important;
}

.light.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(odd) .group .h-1.w-full {
  background: linear-gradient(to right, hsl(280, 50%, 50%), hsl(280, 60%, 60%), hsl(280, 50%, 50%)) !important;
}

.light.theme-cosmic .sm\:grid-cols-2.lg\:grid-cols-3.gap-4.mt-4 > .relative:nth-child(even) .group .h-1.w-full {
  background: linear-gradient(to right, hsl(120, 80%, 40%), hsl(120, 80%, 50%), hsl(120, 80%, 40%)) !important;
}

.dark.theme-cosmic .growth-word,
.light.theme-cosmic .growth-word {
  -webkit-text-fill-color: #1BB0CE !important;
  color: #1BB0CE !important;
  background: none !important;
}
