/**
 * List Page Styles - Modern Progression Timeline
 * Light theme with glass-morphism and sequential flow
 */

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

:root {
  /* Light Theme Colors */
  --wn-bg: #FAFBFC;
  --wn-bg-alt: #F1F5F9;
  --wn-surface: #FFFFFF;
  --wn-surface-hover: #F8FAFC;
  --wn-surface-active: #F1F5F9;
  --wn-border: #E2E8F0;
  --wn-border-light: #CBD5E1;

  /* Text Colors - Light */
  --wn-text: #1E293B;
  --wn-text-secondary: #475569;
  --wn-text-muted: #64748B;
  --wn-text-disabled: #94A3B8;

  /* Shadows - Lighter */
  --wn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --wn-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --wn-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --wn-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --wn-shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

  /* Timeline Colors */
  --timeline-line: #E2E8F0;
  --timeline-progress: linear-gradient(180deg, #6366F1 0%, #8B5CF6 100%);
  --timeline-completed: #10B981;
  --timeline-current: #6366F1;
  --timeline-locked: #94A3B8;
  --timeline-blocking: #EF4444;

  /* Node Sizes */
  --node-marker-size: 52px;
  --timeline-line-width: 4px;
  --timeline-gap: 20px;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Fonts */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Force light theme */
body {
  background: var(--wn-bg);
  color: var(--wn-text);
}

/* ============================================
   AUTH REQUIRED
   ============================================ */

.wn-auth-required {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--wn-space-6);
  background: var(--wn-bg);
}

.wn-auth-required__content {
  text-align: center;
  max-width: 400px;
}

.wn-auth-required__icon {
  color: var(--wn-text-muted);
  margin-bottom: var(--wn-space-6);
}

.wn-auth-required h2 {
  margin-bottom: var(--wn-space-3);
  color: var(--wn-text);
}

.wn-auth-required p {
  margin-bottom: var(--wn-space-6);
}

/* ============================================
   FIXED HEADER - Wordnus Branding
   ============================================ */

.wn-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--wn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--wn-space-6);
  z-index: 1000;
}

.wn-header__brand {
  display: flex;
  align-items: center;
  gap: var(--wn-space-3);
}

.wn-logo-link {
  display: flex;
  align-items: center;
}

.wn-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.wn-logo-img:hover {
  transform: scale(1.05);
}

.wn-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, var(--wn-primary), var(--wn-accent, #8B5CF6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wn-brand-text .wn-n,
.wn-brand-text .wn-s {
  -webkit-text-fill-color: #22c55e;
  color: #22c55e;
}

.wn-brand-text .wn-u {
  -webkit-text-fill-color: #ef4444;
  color: #ef4444;
}

.wn-header__nav {
  display: flex;
  align-items: center;
  gap: var(--wn-space-1);
}

.wn-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--wn-radius-md, 12px);
  color: var(--wn-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.wn-nav-link:hover {
  background: var(--wn-surface-hover);
  color: var(--wn-text);
}

.wn-nav-link--active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--wn-primary);
}

.wn-nav-link--logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Hide nav text on mobile */
@media (max-width: 640px) {
  .wn-nav-link span {
    display: none;
  }

  .wn-nav-link {
    padding: 10px;
  }

  .wn-header__brand .wn-brand-text {
    font-size: 1rem;
  }
}

/* Legacy nav styles (kept for compatibility) */
.wn-header {
  position: sticky;
  top: 0;
  z-index: var(--wn-z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--wn-border);
  padding: var(--wn-space-4) 0;
}

.wn-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wn-nav__back {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  color: var(--wn-text-muted);
  transition: color var(--wn-transition-fast);
  text-decoration: none;
}

.wn-nav__back:hover {
  color: var(--wn-primary);
}

.wn-nav__back-text {
  font-size: var(--wn-text-sm);
  font-weight: 500;
}

.wn-nav__user {
  display: flex;
  align-items: center;
  gap: var(--wn-space-3);
}

/* ============================================
   HERO SECTION - Floating Glass Card
   ============================================ */

.wn-hero {
  position: relative;
  overflow: hidden;
  padding: calc(70px + var(--wn-space-8)) 0 var(--wn-space-8);
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.03) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    rgba(236, 72, 153, 0.03) 100%
  );
  min-height: auto;
}

.wn-hero--glass {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.04) 0%,
    rgba(139, 92, 246, 0.06) 50%,
    rgba(236, 72, 153, 0.04) 100%
  );
}

/* Hero Particles Container */
.wn-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wn-hero__particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  animation: wn-particle-float 15s ease-in-out infinite;
}

@keyframes wn-particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-50px) translateX(20px); opacity: 0.6; }
  50% { transform: translateY(-100px) translateX(-10px); opacity: 0.4; }
  75% { transform: translateY(-50px) translateX(30px); opacity: 0.7; }
}

/* Floating Glow Orbs */
.wn-hero__glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: wn-glow-float 15s ease-in-out infinite;
  pointer-events: none;
}

.wn-hero__glow--2 {
  top: auto;
  bottom: -40%;
  right: auto;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  animation: wn-glow-float 20s ease-in-out infinite reverse;
}

@keyframes wn-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 25px) scale(1.1); }
  66% { transform: translate(25px, -15px) scale(0.95); }
}

/* Premium Floating Glass Card */
.wn-hero__card {
  position: relative;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(250, 251, 252, 0.9) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1.5px solid transparent;
  border-radius: 28px;
  padding: var(--wn-space-8) var(--wn-space-8);
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  animation: wn-card-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

/* Premium hover effect */
.wn-hero__card:hover {
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimal Hero Card (no stats) - Premium */
.wn-hero__card--minimal {
  text-align: center;
  padding: var(--wn-space-10) var(--wn-space-8);
}

.wn-hero__card--minimal .wn-hero__title {
  font-size: clamp(1.625rem, 4.5vw, 2.5rem);
  margin-bottom: var(--wn-space-3);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--wn-text) 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wn-hero__card--minimal .wn-hero__subtitle {
  font-size: 1.0625rem;
  margin-bottom: 0;
  color: var(--wn-text-secondary);
  font-weight: 450;
  letter-spacing: -0.01em;
}

@keyframes wn-card-rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Premium Gradient Border Effect */
.wn-hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.35) 0%,
    rgba(139, 92, 246, 0.2) 25%,
    rgba(236, 72, 153, 0.15) 50%,
    rgba(99, 102, 241, 0.25) 75%,
    rgba(139, 92, 246, 0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.wn-hero__card:hover::before {
  opacity: 1;
}

/* Subtle inner glow */
.wn-hero__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Premium Hero Badge */
.wn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg,
    var(--wn-primary, #6366F1) 0%,
    var(--wn-accent, #8B5CF6) 50%,
    #A78BFA 100%
  );
  border-radius: 100px;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--wn-space-5);
  animation: wn-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.25),
    0 2px 4px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Badge shimmer effect */
.wn-hero__badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: wn-badge-shimmer 3s ease-in-out infinite;
}

@keyframes wn-badge-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

@keyframes wn-badge-pop {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wn-hero__badge-icon {
  font-size: 1.125rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.wn-hero__badge-text {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Hero Title with Typewriter */
.wn-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--wn-text);
  line-height: 1.2;
  margin-bottom: var(--wn-space-2);
  animation: wn-fade-up 0.6s ease 0.4s both;
}

.wn-hero__title-word {
  display: inline;
}

@keyframes wn-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Subtitle */
.wn-hero__subtitle {
  font-size: 1rem;
  color: var(--wn-text-muted);
  margin-bottom: var(--wn-space-5);
  animation: wn-fade-up 0.6s ease 0.5s both;
}

/* Stats Grid */
.wn-hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wn-space-3);
}

@media (max-width: 480px) {
  .wn-hero__stats-grid {
    grid-template-columns: 1fr;
    gap: var(--wn-space-2);
  }
}

/* Stat Card */
.wn-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--wn-space-3);
  padding: var(--wn-space-4);
  background: white;
  border-radius: 16px;
  border: 1px solid var(--wn-border);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: wn-stat-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wn-stat-card:nth-child(1) { animation-delay: 0.5s; }
.wn-stat-card:nth-child(2) { animation-delay: 0.6s; }
.wn-stat-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes wn-stat-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wn-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.wn-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wn-stat-card__icon svg {
  width: 22px;
  height: 22px;
}

.wn-stat-card--primary .wn-stat-card__icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--wn-primary, #6366F1);
}

.wn-stat-card--accent .wn-stat-card__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  color: #8B5CF6;
}

.wn-stat-card--success .wn-stat-card__icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
  color: #10B981;
}

.wn-stat-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wn-stat-card__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wn-text);
  line-height: 1;
}

.wn-stat-card__label {
  font-size: 0.6875rem;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Mastery Ring in Stat Card */
.wn-stat-card__ring {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
}

.wn-stat-card__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wn-ring-bg {
  fill: none;
  stroke: rgba(16, 185, 129, 0.15);
  stroke-width: 3;
}

.wn-ring-progress {
  fill: none;
  stroke: #10B981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress, 0));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
  .wn-stat-card {
    padding: var(--wn-space-3);
  }

  .wn-stat-card__icon {
    width: 38px;
    height: 38px;
  }

  .wn-stat-card__value {
    font-size: 1.25rem;
  }
}

/* Aurora effects */
.wn-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  animation: wn-aurora 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.wn-hero::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -20%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  animation: wn-aurora 25s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes wn-aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.1); }
  100% { transform: translate(-20px, 10px) scale(1.05); }
}

.wn-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.wn-hero__greeting {
  font-size: var(--wn-text-sm);
  color: var(--wn-primary);
  font-weight: 600;
  margin-bottom: var(--wn-space-2);
  animation: wn-fade-in 0.5s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wn-hero__title {
  font-family: var(--font-display);
  font-size: var(--wn-text-3xl);
  font-weight: 800;
  margin-bottom: var(--wn-space-2);
  line-height: 1.2;
  animation: wn-slide-up 0.5s ease;
  color: var(--wn-text);
}

@media (min-width: 640px) {
  .wn-hero__title {
    font-size: var(--wn-text-4xl);
  }
}

.wn-hero__subtitle {
  color: var(--wn-text-secondary);
  margin-bottom: var(--wn-space-5);
  animation: wn-slide-up 0.5s ease 0.1s both;
}

.wn-hero__stats {
  display: flex;
  gap: var(--wn-space-3);
  animation: wn-slide-up 0.5s ease 0.2s both;
}

.wn-stat {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: var(--wn-space-3) var(--wn-space-4);
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wn-stat__value {
  font-family: var(--font-display);
  font-size: var(--wn-text-2xl);
  font-weight: 800;
  color: var(--wn-text);
}

.wn-stat__label {
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wn-text-green {
  color: var(--wn-green) !important;
}

/* ============================================
   PROGRESS SECTION - Compact Bar Chart
   ============================================ */

/* ============================================
   WORLD-CLASS PROGRESS SECTION
   ============================================ */

.wn-progress-section {
  padding: var(--wn-space-8) 0;
  position: relative;
}

.wn-progress-section--animated {
  overflow: hidden;
}

.wn-section-title {
  font-family: var(--font-display);
  font-size: var(--wn-text-lg);
  font-weight: 700;
  margin-bottom: var(--wn-space-4);
  color: var(--wn-text);
}

/* Section Header with Animated Line */
.wn-progress-header {
  display: flex;
  align-items: center;
  gap: var(--wn-space-4);
  margin-bottom: var(--wn-space-6);
}

.wn-progress-header .wn-section-title {
  margin-bottom: 0;
  white-space: nowrap;
}

.wn-progress-header__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    var(--wn-border) 0%,
    transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.wn-progress-header__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(99, 102, 241, 0.6),
    transparent
  );
  animation: progress-line-shimmer 3s ease-in-out infinite;
}

@keyframes progress-line-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Main Progress Card */
.wn-progress-card {
  position: relative;
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: 24px;
  padding: var(--wn-space-6);
  box-shadow: var(--wn-shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--wn-space-8);
  align-items: center;
}

@media (max-width: 768px) {
  .wn-progress-card {
    grid-template-columns: 1fr;
    gap: var(--wn-space-6);
    text-align: center;
  }
}

/* Animated Background Gradient */
.wn-progress-card__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: progress-bg-pulse 8s ease-in-out infinite alternate;
}

@keyframes progress-bg-pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Progress Ring Container */
.wn-progress-ring-container {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .wn-progress-ring-container {
    width: 140px;
    height: 140px;
  }
}

.wn-progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wn-progress-ring__bg {
  fill: none;
  stroke: var(--wn-bg-alt);
  stroke-width: 8;
}

.wn-progress-ring__progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.56;
  stroke-dashoffset: 326.56;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.wn-progress-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wn-progress-ring__percent {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wn-text);
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.wn-progress-ring__percent::after {
  content: '%';
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 2px;
  color: var(--wn-text-muted);
}

.wn-progress-ring__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wn-text-muted);
  margin-top: 4px;
}

/* ============================================
   PREMIUM PROGRESS STATS (v14)
   Glass morphism cards with mini progress rings
   ============================================ */

/* Stats Grid */
.wn-progress-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wn-space-4);
}

@media (max-width: 480px) {
  .wn-progress-stats {
    grid-template-columns: 1fr;
    gap: var(--wn-space-3);
  }
}

/* Premium Progress Stat Card */
.wn-progress-stat {
  position: relative;
  padding: var(--wn-space-5);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.88) 100%
  );
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: progress-stat-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}

.wn-progress-stat:nth-child(1) { animation-delay: 0.1s; }
.wn-progress-stat:nth-child(2) { animation-delay: 0.2s; }
.wn-progress-stat:nth-child(3) { animation-delay: 0.3s; }
.wn-progress-stat:nth-child(4) { animation-delay: 0.4s; }

@keyframes progress-stat-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gradient Glow Background (shows on hover) */
.wn-progress-stat__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.wn-progress-stat:hover .wn-progress-stat__glow {
  opacity: 1;
}

/* Premium Hover Effect */
.wn-progress-stat:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Header with Icon & Meta */
.wn-progress-stat__header {
  display: flex;
  align-items: center;
  gap: var(--wn-space-3);
  margin-bottom: var(--wn-space-4);
  position: relative;
  z-index: 1;
}

.wn-progress-stat__icon-wrap {
  position: relative;
}

/* Enhanced Icon with Gradient Background */
.wn-progress-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wn-progress-stat__icon svg {
  width: 22px;
  height: 22px;
}

.wn-progress-stat:hover .wn-progress-stat__icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Meta Container */
.wn-progress-stat__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wn-progress-stat__label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--wn-text);
  letter-spacing: -0.01em;
}

.wn-progress-stat__sublabel {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Body with Value & Mini Ring */
.wn-progress-stat__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wn-space-4);
  position: relative;
  z-index: 1;
}

.wn-progress-stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wn-progress-stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wn-text);
}

.wn-progress-stat__unit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wn-text-muted);
}

/* Mini Progress Ring */
.wn-progress-stat__ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.wn-progress-stat__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wn-progress-stat__ring .wn-ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 3;
}

.wn-progress-stat__ring .wn-ring-progress {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 97.4; /* 2 * π * 15.5 */
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wn-ring-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wn-text-muted);
}

/* Enhanced Progress Bar */
.wn-progress-stat__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wn-progress-stat__fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COLOR VARIATIONS
   ============================================ */

/* GREEN - Know It */
.wn-progress-stat--green .wn-progress-stat__glow {
  background: radial-gradient(
    ellipse at center,
    rgba(16, 185, 129, 0.1) 0%,
    transparent 70%
  );
}

.wn-progress-stat--green .wn-progress-stat__icon {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  color: white;
}

.wn-progress-stat--green .wn-ring-progress {
  stroke: url(#greenRingGradient);
}

.wn-progress-stat--green .wn-progress-stat__fill,
.wn-progress-stat--green .wn-bar__fill {
  background: linear-gradient(90deg, #10B981, #34D399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.wn-progress-stat--green:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

/* ORANGE - Familiar */
.wn-progress-stat--orange .wn-progress-stat__glow {
  background: radial-gradient(
    ellipse at center,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
}

.wn-progress-stat--orange .wn-progress-stat__icon {
  background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  color: white;
}

.wn-progress-stat--orange .wn-ring-progress {
  stroke: url(#orangeRingGradient);
}

.wn-progress-stat--orange .wn-progress-stat__fill,
.wn-progress-stat--orange .wn-bar__fill {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.wn-progress-stat--orange:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* RED - Learning */
.wn-progress-stat--red .wn-progress-stat__glow {
  background: radial-gradient(
    ellipse at center,
    rgba(239, 68, 68, 0.1) 0%,
    transparent 70%
  );
}

.wn-progress-stat--red .wn-progress-stat__icon {
  background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
  color: white;
}

.wn-progress-stat--red .wn-ring-progress {
  stroke: url(#redRingGradient);
}

.wn-progress-stat--red .wn-progress-stat__fill,
.wn-progress-stat--red .wn-bar__fill {
  background: linear-gradient(90deg, #EF4444, #F87171);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.wn-progress-stat--red:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

/* GRAY - Not Started */
.wn-progress-stat--new .wn-progress-stat__glow {
  background: radial-gradient(
    ellipse at center,
    rgba(148, 163, 184, 0.08) 0%,
    transparent 70%
  );
}

.wn-progress-stat--new .wn-progress-stat__icon {
  background: linear-gradient(135deg, #94A3B8 0%, #CBD5E1 100%);
  color: white;
}

.wn-progress-stat--new .wn-ring-progress {
  stroke: url(#grayRingGradient);
}

.wn-progress-stat--new .wn-progress-stat__fill,
.wn-progress-stat--new .wn-bar__fill {
  background: linear-gradient(90deg, #94A3B8, #CBD5E1);
}

.wn-progress-stat--new:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

/* Animated Number Counter */
.wn-bar__count {
  transition: all 0.1s ease-out;
}

/* Legacy support - hide old elements */
.wn-progress-chart {
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: 20px;
  padding: var(--wn-space-5);
  box-shadow: var(--wn-shadow);
}

.wn-bar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--wn-space-3);
  margin-bottom: var(--wn-space-5);
}

.wn-bar {
  position: relative;
  height: 40px;
  background: var(--wn-bg-alt);
  border-radius: var(--wn-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.wn-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  transition: width 0.8s var(--ease-spring);
  border-radius: var(--wn-radius-lg);
}

/* Bar fills with glow effects */
.wn-bar--green .wn-bar__fill {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.wn-bar--orange .wn-bar__fill {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.wn-bar--red .wn-bar__fill {
  background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.wn-bar--new .wn-bar__fill {
  background: linear-gradient(90deg, #94A3B8 0%, #CBD5E1 100%);
}

/* Legend (legacy) */
.wn-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wn-space-4);
  justify-content: center;
}

.wn-legend-item {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  font-size: var(--wn-text-sm);
  color: var(--wn-text-muted);
}

.wn-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--wn-radius-full);
}

.wn-legend-dot--green { background: var(--wn-green); }
.wn-legend-dot--orange { background: var(--wn-orange); }
.wn-legend-dot--red { background: var(--wn-red); }
.wn-legend-dot--new { background: var(--wn-new); }

/* ============================================
   ALERT SECTION
   ============================================ */

.wn-alert-section {
  padding: 0 0 var(--wn-space-4);
}

.wn-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--wn-space-4);
  padding: var(--wn-space-4);
  border-radius: 16px;
  border: 1px solid transparent;
}

.wn-alert--warning {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.wn-alert__icon {
  color: var(--wn-red);
  flex-shrink: 0;
}

.wn-alert__title {
  font-size: var(--wn-text-base);
  font-weight: 600;
  margin-bottom: var(--wn-space-1);
  color: var(--wn-red-dark);
}

.wn-alert__text {
  font-size: var(--wn-text-sm);
  color: var(--wn-text-secondary);
  margin: 0;
}

/* ============================================
   PROGRESSION SECTION - Timeline Container
   ============================================ */

.wn-progression-section {
  position: relative;
  padding: var(--wn-space-6) 0 var(--wn-space-12);
  overflow: hidden;
}

/* Aurora background effects */
.wn-progression-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  animation: wn-aurora 30s ease-in-out infinite;
  pointer-events: none;
}

.wn-progression-section::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  animation: wn-aurora 25s ease-in-out infinite reverse;
  pointer-events: none;
}

.wn-progression-header {
  display: flex;
  flex-direction: column;
  gap: var(--wn-space-4);
  margin-bottom: var(--wn-space-6);
}

@media (min-width: 640px) {
  .wn-progression-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* View Toggle */
.wn-view-toggle {
  display: flex;
  gap: var(--wn-space-2);
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius-full);
  padding: 4px;
}

.wn-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  padding: var(--wn-space-2) var(--wn-space-4);
  font-size: var(--wn-text-sm);
  font-weight: 500;
  color: var(--wn-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--wn-radius-full);
  cursor: pointer;
  transition: all var(--wn-transition-fast);
}

.wn-toggle-btn:hover {
  color: var(--wn-text);
}

.wn-toggle-btn--active {
  color: white;
  background: var(--wn-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.wn-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   TIMELINE - Vertical Path
   ============================================ */

.wn-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--timeline-gap);
  padding-left: calc(var(--node-marker-size) / 2 + 24px);
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical line (background) */
.wn-timeline__line {
  position: absolute;
  left: calc(var(--node-marker-size) / 2 - var(--timeline-line-width) / 2);
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--timeline-line);
  border-radius: 2px;
}

/* Progress fill on line */
.wn-timeline__progress {
  position: absolute;
  left: calc(var(--node-marker-size) / 2 - var(--timeline-line-width) / 2);
  top: 0;
  width: var(--timeline-line-width);
  height: var(--progress, 0%);
  background: var(--timeline-progress);
  border-radius: 2px;
  transition: height 1s var(--ease-out-expo);
}

/* ============================================
   TIMELINE NODE
   ============================================ */

.wn-timeline-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--wn-space-4);
  animation: wn-node-enter 0.5s var(--ease-out-expo) both;
  animation-delay: calc(var(--node-index, 0) * 0.08s);
}

@keyframes wn-node-enter {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   NODE MARKER (Circle on line)
   ============================================ */

.wn-timeline-node__marker {
  position: absolute;
  left: calc(-1 * (var(--node-marker-size) / 2 + 24px));
  top: 16px;
  width: var(--node-marker-size);
  height: var(--node-marker-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wn-surface);
  border: 4px solid var(--timeline-line);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wn-timeline-node__number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wn-text-muted);
}

.wn-timeline-node__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wn-timeline-node__icon svg {
  width: 24px;
  height: 24px;
}

/* Completed marker */
.wn-timeline-node--completed .wn-timeline-node__marker {
  border-color: var(--timeline-completed);
  background: var(--timeline-completed);
  color: white;
}

.wn-timeline-node--completed .wn-timeline-node__number {
  color: white;
}

/* Current/Active marker */
.wn-timeline-node--current .wn-timeline-node__marker {
  border-color: var(--timeline-current);
  background: white;
  box-shadow:
    0 0 0 8px rgba(99, 102, 241, 0.12),
    0 4px 16px rgba(99, 102, 241, 0.2);
  animation: wn-pulse-glow 2s ease-in-out infinite;
}

.wn-timeline-node--current .wn-timeline-node__number {
  color: var(--timeline-current);
}

@keyframes wn-pulse-glow {
  0%, 100% {
    box-shadow:
      0 0 0 8px rgba(99, 102, 241, 0.12),
      0 4px 16px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(99, 102, 241, 0.08),
      0 4px 20px rgba(99, 102, 241, 0.25);
  }
}

/* In-progress marker */
.wn-timeline-node--in-progress .wn-timeline-node__marker {
  border-color: var(--wn-primary);
  background: white;
}

.wn-timeline-node--in-progress .wn-timeline-node__number {
  color: var(--wn-primary);
}

/* Blocking (RED) marker */
.wn-timeline-node--blocking .wn-timeline-node__marker {
  border-color: var(--timeline-blocking);
  background: var(--timeline-blocking);
  color: white;
  box-shadow:
    0 0 0 8px rgba(239, 68, 68, 0.12),
    0 4px 16px rgba(239, 68, 68, 0.2);
  animation: wn-pulse-red 2s ease-in-out infinite;
}

@keyframes wn-pulse-red {
  0%, 100% {
    box-shadow:
      0 0 0 8px rgba(239, 68, 68, 0.12),
      0 4px 16px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(239, 68, 68, 0.08),
      0 4px 20px rgba(239, 68, 68, 0.25);
  }
}

/* Locked marker */
.wn-timeline-node--locked .wn-timeline-node__marker {
  border-color: var(--timeline-locked);
  background: #F1F5F9;
  color: var(--timeline-locked);
  opacity: 0.7;
}

/* Optional node marker (dashed) */
.wn-timeline-node--optional .wn-timeline-node__marker {
  width: 40px;
  height: 40px;
  border-width: 3px;
  border-style: dashed;
  border-color: var(--wn-border);
  background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   NODE CARD (Content box)
   ============================================ */

.wn-node-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: var(--wn-space-5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Gradient border effect for glass cards */
.wn-node-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.08),
    rgba(236, 72, 153, 0.15)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Shine sweep effect on hover */
.wn-node-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 55%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.wn-node-card:hover::before {
  opacity: 1;
}

.wn-node-card:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.wn-node-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 16px 48px rgba(99, 102, 241, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Current focus card - animated border styles are at end of file */
/* Completed card - animated border styles are at end of file */
/* Blocking card - animated border styles are at end of file */

/* Blocking card (red) - legacy class */
.wn-node-card--review-red {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.03) 0%,
    rgba(255, 255, 255, 0.98) 50%
  );
}

/* Orange review card */
.wn-node-card--review-orange {
  border-color: rgba(249, 115, 22, 0.3);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.03) 0%,
    rgba(255, 255, 255, 0.98) 50%
  );
}

/* Green review card */
.wn-node-card--review-green {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.03) 0%,
    rgba(255, 255, 255, 0.98) 50%
  );
}

/* Quiz card */
.wn-node-card--quiz {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.03) 0%,
    rgba(255, 255, 255, 0.98) 50%
  );
}

/* Locked card */
.wn-node-card--locked {
  opacity: 0.7;
  background: #F8FAFC;
  cursor: not-allowed;
}

.wn-node-card--locked:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Optional card (dashed) */
.wn-node-card--optional {
  background: rgba(255, 255, 255, 0.8);
  border-style: dashed;
}

/* Card Header */
.wn-node-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--wn-space-3);
  gap: var(--wn-space-2);
}

/* Badges */
.wn-node-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wn-space-1);
  padding: var(--wn-space-1) var(--wn-space-3);
  font-size: var(--wn-text-xs);
  font-weight: 600;
  border-radius: var(--wn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Icon with hover animation */
.wn-node-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wn-primary, #6366F1), var(--wn-accent, #8B5CF6));
  color: white;
  font-size: 1.375rem;
  margin-bottom: var(--wn-space-3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.wn-node-card__icon svg {
  width: 24px;
  height: 24px;
}

.wn-node-card:hover .wn-node-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.wn-node-card__badge--set {
  background: rgba(99, 102, 241, 0.1);
  color: var(--wn-primary);
}

.wn-node-card__badge--quiz {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

.wn-node-card__badge--red {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.wn-node-card__badge--orange {
  background: rgba(249, 115, 22, 0.1);
  color: #EA580C;
}

.wn-node-card__badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.wn-node-card__badge--completed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.wn-node-card__badge--locked {
  background: rgba(148, 163, 184, 0.1);
  color: #64748B;
}

.wn-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.wn-badge-dot--red { background: #EF4444; }
.wn-badge-dot--orange { background: #F97316; }
.wn-badge-dot--green { background: #22C55E; }

/* Status indicators */
.wn-node-card__status {
  display: flex;
  align-items: center;
  gap: var(--wn-space-1);
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
}

.wn-node-card__status--completed {
  color: var(--timeline-completed);
}

.wn-node-card__status--passed {
  color: var(--timeline-completed);
}

.wn-node-card__status svg {
  width: 14px;
  height: 14px;
}

/* Lock reason */
.wn-node-card__lock-reason {
  display: flex;
  align-items: center;
  gap: var(--wn-space-1);
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
}

.wn-node-card__lock-reason svg {
  width: 14px;
  height: 14px;
}

/* Skip hint for optional */
.wn-node-card__skip-hint {
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
  font-style: italic;
}

/* Card Title */
.wn-node-card__title {
  font-family: var(--font-display);
  font-size: var(--wn-text-lg);
  font-weight: 600;
  margin-bottom: var(--wn-space-2);
  line-height: 1.3;
  color: var(--wn-text);
}

/* Card Meta */
.wn-node-card__meta {
  font-size: var(--wn-text-sm);
  color: var(--wn-text-muted);
  margin-bottom: var(--wn-space-3);
}

/* ============================================
   PROGRESS RING (Small, inline)
   ============================================ */

.wn-node-card__progress-ring {
  position: absolute;
  top: var(--wn-space-4);
  right: var(--wn-space-4);
  width: 52px;
  height: 52px;
}

.wn-node-card__progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wn-progress-ring-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 4;
}

.wn-progress-ring-fill {
  fill: none;
  stroke: var(--wn-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.wn-progress-ring-fill--completed {
  stroke: var(--timeline-completed);
}

.wn-progress-percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wn-text);
}

/* ============================================
   PROGRESS BAR (Inline)
   ============================================ */

.wn-node-card__progress {
  margin: var(--wn-space-3) 0;
}

.wn-progress-bar {
  height: 6px;
  background: var(--wn-bg-alt);
  border-radius: var(--wn-radius-full);
  overflow: hidden;
  margin-bottom: var(--wn-space-2);
}

.wn-progress-bar__fill {
  height: 100%;
  border-radius: var(--wn-radius-full);
  background: var(--wn-primary);
  transition: width 0.5s var(--ease-out-expo);
}

.wn-progress-bar--red .wn-progress-bar__fill {
  background: linear-gradient(90deg, #EF4444, #F87171);
}

.wn-progress-bar--orange .wn-progress-bar__fill {
  background: linear-gradient(90deg, #F97316, #FBBF24);
}

.wn-progress-bar--green .wn-progress-bar__fill {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.wn-progress-text {
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
}

/* ============================================
   BLOCKING ALERT (Inline in card)
   ============================================ */

.wn-node-card__alert {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  padding: var(--wn-space-3);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin: var(--wn-space-3) 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #DC2626;
}

.wn-node-card__alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   LOCK OVERLAY
   ============================================ */

.wn-node-card__lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.wn-lock-info {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  padding: var(--wn-space-3) var(--wn-space-4);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--wn-border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wn-text-muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wn-lock-info svg {
  width: 18px;
  height: 18px;
  color: var(--timeline-locked);
}

/* ============================================
   NODE BUTTONS
   ============================================ */

.wn-node-card__actions {
  display: flex;
  gap: var(--wn-space-2);
  margin-top: var(--wn-space-3);
  flex-wrap: wrap;
}

.wn-node-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wn-space-2);
  padding: var(--wn-space-2) var(--wn-space-4);
  font-size: var(--wn-text-sm);
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--wn-transition-fast);
}

.wn-node-btn svg {
  width: 16px;
  height: 16px;
}

.wn-node-btn--primary {
  background: var(--wn-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.wn-node-btn--primary:hover {
  background: var(--wn-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.wn-node-btn--secondary {
  background: var(--wn-bg-alt);
  color: var(--wn-text-secondary);
}

.wn-node-btn--secondary:hover {
  background: var(--wn-surface-hover);
  color: var(--wn-text);
}

.wn-node-btn--outline {
  background: transparent;
  border: 1px solid var(--wn-border);
  color: var(--wn-text-secondary);
}

.wn-node-btn--outline:hover {
  background: var(--wn-surface);
  border-color: var(--wn-primary);
  color: var(--wn-primary);
}

.wn-node-btn--red {
  background: #EF4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.wn-node-btn--red:hover {
  background: #DC2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.wn-node-btn--orange {
  color: #EA580C;
  border-color: rgba(249, 115, 22, 0.3);
}

.wn-node-btn--orange:hover {
  background: rgba(249, 115, 22, 0.08);
  border-color: #F97316;
}

/* ============================================
   LEGACY SETS SECTION (hidden by default)
   ============================================ */

.wn-sets-section {
  padding: var(--wn-space-6) 0;
  display: none;
}

.wn-sets-section.wn-visible {
  display: block;
}

.wn-sets-header {
  display: flex;
  flex-direction: column;
  gap: var(--wn-space-4);
  margin-bottom: var(--wn-space-5);
}

@media (min-width: 640px) {
  .wn-sets-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Filter Pills */
.wn-filter-pills {
  display: flex;
  gap: var(--wn-space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--wn-space-1);
}

.wn-filter-pills::-webkit-scrollbar {
  display: none;
}

.wn-pill {
  padding: var(--wn-space-2) var(--wn-space-4);
  font-size: var(--wn-text-sm);
  font-weight: 500;
  color: var(--wn-text-muted);
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius-full);
  cursor: pointer;
  transition: all var(--wn-transition-fast);
  white-space: nowrap;
}

.wn-pill:hover {
  color: var(--wn-text);
  border-color: var(--wn-primary);
}

.wn-pill--active {
  color: white;
  background: var(--wn-primary);
  border-color: var(--wn-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Card Grid */
.wn-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wn-space-4);
}

@media (min-width: 640px) {
  .wn-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wn-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wn-card-skeleton {
  border-radius: var(--wn-radius-lg);
  overflow: hidden;
}

/* ============================================
   SET CARD - Light Theme
   ============================================ */

.wn-set-card {
  --card-accent: var(--wn-primary);
  position: relative;
  background: var(--wn-surface);
  border: 1px solid var(--wn-border);
  border-radius: 20px;
  padding: var(--wn-space-5);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  overflow: hidden;
  box-shadow: var(--wn-shadow);
}

.wn-set-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent);
  transition: height 0.2s ease;
}

.wn-set-card:hover:not(.wn-set-card--locked) {
  transform: translateY(-4px);
  border-color: var(--card-accent);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(99, 102, 241, 0.08);
}

.wn-set-card:hover:not(.wn-set-card--locked)::before {
  height: 6px;
}

.wn-set-card--locked {
  --card-accent: #94A3B8;
  opacity: 0.6;
  cursor: not-allowed;
}

.wn-set-card--completed {
  --card-accent: var(--timeline-completed);
  border-color: rgba(16, 185, 129, 0.3);
}

.wn-set-card--quiz {
  --card-accent: #8B5CF6;
}

.wn-set-card--review {
  --card-accent: #EF4444;
}

.wn-set-card--review-red { --card-accent: #EF4444; }
.wn-set-card--review-orange { --card-accent: #F97316; }
.wn-set-card--review-green { --card-accent: #22C55E; }

.wn-set-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--wn-space-3);
}

.wn-set-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wn-space-1);
  padding: var(--wn-space-1) var(--wn-space-2);
  font-size: var(--wn-text-xs);
  font-weight: 600;
  border-radius: var(--wn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wn-set-card__badge--set {
  background: rgba(99, 102, 241, 0.1);
  color: var(--wn-primary);
}

.wn-set-card__badge--quiz {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

.wn-set-card__badge--completed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.wn-set-card__badge--review-red {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

.wn-set-card__badge--review-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #EA580C;
}

.wn-set-card__badge--review-green {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
}

.wn-set-card__lock {
  color: var(--wn-text-muted);
}

.wn-set-card__title {
  font-family: var(--font-display);
  font-size: var(--wn-text-lg);
  font-weight: 600;
  margin-bottom: var(--wn-space-2);
  line-height: 1.3;
  color: var(--wn-text);
}

.wn-set-card__count {
  font-size: var(--wn-text-sm);
  color: var(--wn-text-muted);
  margin-bottom: var(--wn-space-4);
}

.wn-set-card__progress {
  height: 6px;
  background: var(--wn-bg-alt);
  border-radius: var(--wn-radius-full);
  overflow: hidden;
  margin-bottom: var(--wn-space-3);
}

.wn-set-card__progress-fill {
  height: 100%;
  background: var(--wn-primary);
  border-radius: var(--wn-radius-full);
  transition: width 0.5s var(--ease-out-expo);
}

.wn-set-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wn-set-card__status {
  font-size: var(--wn-text-xs);
  color: var(--wn-text-muted);
}

.wn-set-card__actions {
  display: flex;
  gap: var(--wn-space-2);
}

.wn-set-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--wn-radius);
  color: var(--wn-text-muted);
  transition: all var(--wn-transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
}

.wn-set-card__action:hover {
  background: var(--wn-bg-alt);
  color: var(--wn-primary);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.wn-empty-state {
  text-align: center;
  padding: var(--wn-space-12) var(--wn-space-6);
  color: var(--wn-text-muted);
}

.wn-empty-state svg {
  margin-bottom: var(--wn-space-4);
  opacity: 0.5;
}

.wn-empty-state h3 {
  margin-bottom: var(--wn-space-2);
  color: var(--wn-text);
}

/* ============================================
   PAGINATION
   ============================================ */

.wn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wn-space-4);
  margin-top: var(--wn-space-8);
  padding-top: var(--wn-space-6);
  border-top: 1px solid var(--wn-border);
}

.wn-pagination__btn {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
}

.wn-pagination__btn-text {
  display: none;
}

@media (min-width: 640px) {
  .wn-pagination__btn-text {
    display: inline;
  }
}

.wn-pagination__info {
  font-size: var(--wn-text-sm);
  color: var(--wn-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.wn-footer {
  margin-top: auto;
  padding: var(--wn-space-6) 0;
  border-top: 1px solid var(--wn-border);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes wn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wn-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wn-set-card {
  animation: wn-card-enter 0.5s var(--ease-out-expo) backwards;
  animation-delay: calc(var(--card-index, 0) * 0.05s);
}

@keyframes wn-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wn-card--exiting {
  animation: wn-card-exit 0.25s ease-in forwards !important;
}

@keyframes wn-card-exit {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.wn-skeleton {
  background: linear-gradient(
    90deg,
    var(--wn-bg-alt) 25%,
    var(--wn-surface) 50%,
    var(--wn-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: wn-shimmer 1.5s infinite;
  border-radius: var(--wn-radius);
}

@keyframes wn-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wn-skeleton--title {
  height: 32px;
  width: 60%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .wn-timeline {
    padding-left: calc(44px / 2 + 16px);
  }

  .wn-timeline-node__marker {
    width: 44px;
    height: 44px;
    left: calc(-1 * (44px / 2 + 16px));
  }

  .wn-node-card {
    padding: var(--wn-space-4);
  }

  .wn-node-card__progress-ring {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 639px) {
  .wn-hero {
    padding: var(--wn-space-6) 0 var(--wn-space-4);
  }

  .wn-hero__stats {
    gap: var(--wn-space-2);
  }

  .wn-stat {
    min-width: 70px;
    padding: var(--wn-space-2) var(--wn-space-3);
  }

  .wn-stat__value {
    font-size: var(--wn-text-xl);
  }

  .wn-progress-chart {
    padding: var(--wn-space-4);
  }

  .wn-bar {
    height: 36px;
  }

  .wn-chart-legend {
    gap: var(--wn-space-3);
  }

  .wn-legend-item {
    font-size: var(--wn-text-xs);
  }

  .wn-view-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.wn-hidden {
  display: none !important;
}

.wn-visible {
  display: block !important;
}

.wn-text-center {
  text-align: center;
}

.wn-text-sm {
  font-size: var(--wn-text-sm);
}

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

/* ============================================
   ACHIEVEMENT BADGES & GAMING UI
   ============================================ */

/* Achievement Badges */
.wn-achievement-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  animation: wn-badge-pop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.wn-achievement-badge--gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: 2px solid #FFED4A;
  color: #7C2D12;
}

.wn-achievement-badge--silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
  border: 2px solid #D4D4D4;
  color: #374151;
}

.wn-achievement-badge--bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
  border: 2px solid #DEB887;
  color: #FEF3C7;
}

@keyframes wn-badge-pop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* XP Progress Bar */
.wn-xp-bar {
  background: linear-gradient(90deg, #1e1e2e 0%, #2d2d44 100%);
  border-radius: 12px;
  padding: 4px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.wn-xp-bar__fill {
  height: 24px;
  background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.wn-xp-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: wn-xp-shine 2s ease-in-out infinite;
}

.wn-xp-bar__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 12px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes wn-xp-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Confetti Container */
.wn-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.wn-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: wn-confetti-fall 3s ease-out forwards;
}

@keyframes wn-confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Enhanced Timeline Nodes */
.wn-timeline-node--completed {
  --node-glow: rgba(16, 185, 129, 0.4);
}

.wn-timeline-node--completed .wn-node-marker {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow:
    0 0 0 4px rgba(16, 185, 129, 0.2),
    0 0 20px var(--node-glow),
    0 4px 12px rgba(16, 185, 129, 0.3);
  animation: wn-glow-pulse 2s ease-in-out infinite;
}

@keyframes wn-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3), 0 0 40px rgba(16, 185, 129, 0.6); }
}

/* Completed Adaptive Set Card (History) */
.wn-node-card--history {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.wn-node-card--history::before {
  content: 'COMPLETED';
  position: absolute;
  top: 8px;
  right: -28px;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.wn-node-card--history .wn-node-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(99, 102, 241, 0.2);
  margin-top: 12px;
}

.wn-node-card__stat {
  text-align: center;
  flex: 1;
}

.wn-node-card__stat-value {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wn-node-card__stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wn-text-muted);
}

/* History badge */
.wn-node-card__badge--history {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

/* Disabled card (no action available) */
.wn-node-card--disabled {
  pointer-events: none;
  opacity: 0.85;
}

.wn-node-card--disabled .wn-node-card__btn {
  display: none;
}

/* Streak indicator */
.wn-streak-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.wn-streak-indicator svg {
  width: 14px;
  height: 14px;
}

/* Level Up Animation */
@keyframes wn-level-up {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.wn-level-up {
  animation: wn-level-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulse animation for active elements */
@keyframes wn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wn-pulse {
  animation: wn-pulse 2s ease-in-out infinite;
}

/* Success checkmark animation */
@keyframes wn-check-draw {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.wn-checkmark-animated {
  stroke-dasharray: 24;
  animation: wn-check-draw 0.4s ease-out forwards;
}

/* ============================================
   TROPHY ROOM - ACHIEVEMENT SHOWCASE
   ============================================ */

.wn-trophy-room {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    rgba(236, 72, 153, 0.05) 100%
  );
  border-radius: var(--wn-radius-2xl);
  padding: var(--wn-space-6);
  margin: 0 var(--wn-space-4) var(--wn-space-6);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Animated background particles */
.wn-trophy-room::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  animation: wn-trophy-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes wn-trophy-glow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Level Display */
.wn-level-display {
  display: flex;
  align-items: center;
  gap: var(--wn-space-5);
  margin-bottom: var(--wn-space-5);
  position: relative;
  z-index: 1;
}

.wn-level-badge {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.25),
    0 0 25px rgba(99, 102, 241, 0.35),
    0 6px 24px rgba(0, 0, 0, 0.15);
  animation: wn-level-pulse 3s ease-in-out infinite;
}

@keyframes wn-level-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(99, 102, 241, 0.25),
      0 0 25px rgba(99, 102, 241, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(99, 102, 241, 0.15),
      0 0 40px rgba(99, 102, 241, 0.5);
  }
}

.wn-level-badge__number {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.wn-level-badge__label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wn-level-info {
  flex: 1;
  min-width: 0;
}

.wn-level-title {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  margin-bottom: var(--wn-space-2);
  flex-wrap: wrap;
}

.wn-rank-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wn-next-rank {
  font-size: 11px;
  color: var(--wn-text-muted);
  opacity: 0.7;
}

/* XP Bar */
.wn-xp-bar {
  position: relative;
}

.wn-xp-bar__track {
  height: 14px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--wn-radius-full);
  overflow: hidden;
  position: relative;
}

.wn-xp-bar__fill {
  height: 100%;
  width: var(--xp-percent, 0%);
  background: linear-gradient(90deg, #6366F1, #8B5CF6, #EC4899);
  border-radius: var(--wn-radius-full);
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.wn-xp-bar__shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: wn-shine-sweep 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wn-shine-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.wn-xp-bar__text {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Streak Panel */
.wn-streak-panel {
  display: flex;
  gap: var(--wn-space-5);
  margin-bottom: var(--wn-space-5);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.wn-streak-display {
  display: flex;
  align-items: center;
  gap: var(--wn-space-2);
  background: rgba(245, 158, 11, 0.1);
  padding: var(--wn-space-3) var(--wn-space-4);
  border-radius: var(--wn-radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.wn-streak-flame {
  font-size: 24px;
  animation: wn-flame-dance 1s ease-in-out infinite;
}

.wn-streak-flame--inactive {
  filter: grayscale(1) opacity(0.4);
  animation: none;
}

@keyframes wn-flame-dance {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(3deg); }
}

.wn-streak-count {
  font-size: 28px;
  font-weight: 800;
  color: #F59E0B;
  line-height: 1;
}

.wn-streak-label {
  font-size: 11px;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Daily Goal Ring */
.wn-daily-goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wn-space-1);
}

.wn-daily-goal__ring {
  position: relative;
  width: 56px;
  height: 56px;
}

.wn-daily-goal__ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.wn-daily-goal__track {
  fill: none;
  stroke: rgba(99, 102, 241, 0.15);
  stroke-width: 6;
}

.wn-daily-goal__progress {
  fill: none;
  stroke: url(#goal-gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--progress, 0) / 100));
  transition: stroke-dashoffset 1s ease-out;
}

.wn-daily-goal__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--wn-text);
}

.wn-daily-goal__label {
  font-size: 10px;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trophy Showcase */
.wn-trophy-showcase {
  position: relative;
  z-index: 1;
}

.wn-trophy-showcase__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--wn-space-3);
}

.wn-badge-gallery {
  display: flex;
  gap: var(--wn-space-2);
  flex-wrap: wrap;
}

.wn-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--wn-space-2) var(--wn-space-3);
  border-radius: var(--wn-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  min-width: 70px;
}

.wn-badge:hover {
  transform: translateY(-3px) scale(1.05);
}

.wn-badge--gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 3px 16px rgba(255, 215, 0, 0.2);
}

.wn-badge--silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(168, 168, 168, 0.08));
  border-color: rgba(192, 192, 192, 0.35);
}

.wn-badge--bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(139, 69, 19, 0.08));
  border-color: rgba(205, 127, 50, 0.35);
}

.wn-badge--empty {
  border-style: dashed;
  opacity: 0.6;
}

.wn-badge--new {
  animation: wn-badge-new-glow 2s ease-in-out infinite;
}

@keyframes wn-badge-new-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.25); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

.wn-badge__icon {
  font-size: 20px;
}

.wn-badge__name {
  font-size: 9px;
  font-weight: 600;
  color: var(--wn-text);
  text-align: center;
  max-width: 60px;
  line-height: 1.2;
}

.wn-badge--more {
  background: rgba(99, 102, 241, 0.08);
  border: 2px dashed rgba(99, 102, 241, 0.25);
  color: var(--wn-primary);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================
   MILESTONE CELEBRATION MODAL
   ============================================ */

.wn-milestone-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wn-milestone-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.wn-milestone-modal__content {
  background: linear-gradient(135deg,
    var(--wn-surface-elevated) 0%,
    rgba(99, 102, 241, 0.08) 100%
  );
  border-radius: var(--wn-radius-2xl);
  padding: var(--wn-space-8);
  text-align: center;
  max-width: 340px;
  margin: var(--wn-space-4);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(99, 102, 241, 0.15);
}

.wn-milestone-modal--visible .wn-milestone-modal__content {
  transform: scale(1) translateY(0);
}

.wn-milestone-modal__icon {
  font-size: 56px;
  animation: wn-milestone-icon-bounce 1s ease-out;
  margin-bottom: var(--wn-space-3);
}

@keyframes wn-milestone-icon-bounce {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.3) rotate(10deg); }
  70% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.wn-milestone-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--wn-text);
  margin-bottom: var(--wn-space-2);
}

.wn-milestone-modal__badge {
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--wn-space-5);
}

.wn-milestone-modal__xp {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--wn-space-5);
}

.wn-milestone-modal__xp-plus {
  font-size: 22px;
  color: #10B981;
  font-weight: 700;
}

.wn-milestone-modal__xp-value {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wn-xp-count 1s ease-out;
}

@keyframes wn-xp-count {
  0% { transform: scale(1.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.wn-milestone-modal__xp-label {
  font-size: 16px;
  color: var(--wn-text-muted);
  font-weight: 600;
}

.wn-milestone-modal__close {
  width: 100%;
  padding: var(--wn-space-4);
  font-size: 15px;
}

/* ============================================
   TIMELINE CARD XP DISPLAY
   ============================================ */

.wn-node-card__xp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  padding: 4px 10px;
  border-radius: var(--wn-radius-full);
  font-size: 11px;
  font-weight: 700;
}

.wn-node-card__xp-icon {
  font-size: 12px;
}

.wn-node-card__xp-value {
  background: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wn-node-card__xp--earned {
  background: linear-gradient(90deg,
    rgba(16, 185, 129, 0.1),
    rgba(5, 150, 105, 0.1)
  );
}

.wn-node-card__xp--earned .wn-node-card__xp-value {
  background: linear-gradient(90deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CONFETTI CONTAINER
   ============================================ */

.wn-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.wn-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: wn-confetti-fall 3s ease-out forwards;
}

@keyframes wn-confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   MOBILE RESPONSIVE - TROPHY ROOM
   ============================================ */

@media (max-width: 480px) {
  .wn-trophy-room {
    padding: var(--wn-space-4);
    margin: 0 var(--wn-space-3) var(--wn-space-4);
  }

  .wn-level-display {
    gap: var(--wn-space-3);
  }

  .wn-level-badge {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .wn-level-badge__number {
    font-size: 20px;
  }

  .wn-rank-title {
    font-size: 15px;
  }

  .wn-xp-bar__track {
    height: 12px;
  }

  .wn-xp-bar__text {
    font-size: 9px;
  }

  .wn-streak-panel {
    gap: var(--wn-space-3);
  }

  .wn-streak-display {
    padding: var(--wn-space-2) var(--wn-space-3);
  }

  .wn-streak-flame {
    font-size: 20px;
  }

  .wn-streak-count {
    font-size: 22px;
  }

  .wn-daily-goal__ring {
    width: 48px;
    height: 48px;
  }

  .wn-badge {
    padding: var(--wn-space-2);
    min-width: 60px;
  }

  .wn-badge__icon {
    font-size: 18px;
  }

  .wn-badge__name {
    font-size: 8px;
  }
}

/* ============================================
   ANIMATED BORDER FOR CURRENT TIMELINE CARD
   ============================================ */

@property --card-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Animated gradient border for current node card */
.wn-timeline-node--current .wn-node-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) padding-box,
    conic-gradient(from var(--card-border-angle),
      #6366f1, #8b5cf6, #a855f7, #ec4899, #f59e0b, #10b981, #6366f1) border-box;
  border: 3px solid transparent;
  animation: rotateCardBorder 4s linear infinite;
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.08),
    0 8px 32px rgba(99, 102, 241, 0.15),
    0 0 60px rgba(99, 102, 241, 0.1);
}

@keyframes rotateCardBorder {
  to { --card-border-angle: 360deg; }
}

/* Pulsing glow effect for current card */
.wn-timeline-node--current .wn-node-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  padding: 0;
  background: conic-gradient(from var(--card-border-angle),
    #6366f1, #8b5cf6, #a855f7, #ec4899, #f59e0b, #10b981, #6366f1);
  /* Override the mask from base .wn-node-card::before */
  -webkit-mask: none;
  mask: none;
  filter: blur(15px);
  opacity: 0.4;
  z-index: -1;
  animation: rotateCardBorder 4s linear infinite, pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; filter: blur(15px); }
  50% { opacity: 0.5; filter: blur(20px); }
}

/* ============================================
   COMPLETED NODE CARD - Success Theme
   ============================================ */

@property --completed-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.wn-timeline-node--completed .wn-node-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(240, 253, 244, 0.95)) padding-box,
    linear-gradient(135deg, #10b981, #059669, #34d399, #10b981) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 4px 20px rgba(16, 185, 129, 0.15),
    0 0 40px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
}

.wn-timeline-node--completed .wn-node-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.08) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmerComplete 3s ease-in-out infinite;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
}

@keyframes shimmerComplete {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   IN-PROGRESS NODE CARD - Active Theme
   ============================================ */

.wn-timeline-node--in-progress .wn-node-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.95)) padding-box,
    linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7, #6366f1) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.15),
    0 0 40px rgba(99, 102, 241, 0.1);
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15), 0 0 40px rgba(99, 102, 241, 0.1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.25), 0 0 60px rgba(99, 102, 241, 0.2);
  }
}

.wn-timeline-node--in-progress .wn-node-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
  background-size: 200% 100%;
  animation: progressBar 2s linear infinite;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  border-radius: 0 0 18px 18px;
}

@keyframes progressBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================
   BLOCKING NODE CARD - Urgency Theme
   ============================================ */

@property --blocking-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.wn-timeline-node--blocking .wn-node-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(254, 242, 242, 0.95)) padding-box,
    conic-gradient(from var(--blocking-border-angle), #ef4444, #f97316, #ef4444) border-box;
  border: 2px solid transparent;
  animation: rotateBlockingBorder 3s linear infinite, blockingPulse 1.5s ease-in-out infinite;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.1),
    0 4px 20px rgba(239, 68, 68, 0.2);
}

@keyframes rotateBlockingBorder {
  to { --blocking-border-angle: 360deg; }
}

@keyframes blockingPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 4px 20px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15), 0 4px 30px rgba(239, 68, 68, 0.3);
  }
}

.wn-timeline-node--blocking .wn-node-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: conic-gradient(from var(--blocking-border-angle), #ef4444, #f97316, #ef4444);
  filter: blur(12px);
  opacity: 0.3;
  z-index: -1;
  animation: rotateBlockingBorder 3s linear infinite;
  -webkit-mask: none;
  mask: none;
}

/* ============================================
   LOCKED NODE CARD - Disabled Theme
   ============================================ */

.wn-timeline-node--locked .wn-node-card {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
  border: 2px dashed rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0.7;
  filter: grayscale(30%);
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.wn-timeline-node--locked .wn-node-card:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  opacity: 0.8;
}

.wn-timeline-node--locked .wn-node-card::before {
  content: '🔒';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  opacity: 0.5;
  -webkit-mask: none;
  mask: none;
  background: none;
  padding: 0;
  inset: auto;
  border-radius: 0;
}

/* ============================================
   OPTIONAL NODE CARD - Subtle Theme
   ============================================ */

.wn-timeline-node--optional .wn-node-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
  border: 2px dashed rgba(156, 163, 175, 0.3);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.wn-timeline-node--optional .wn-node-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.wn-timeline-node--optional .wn-node-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: none;
  mask: none;
}

.wn-timeline-node--optional .wn-node-card:hover::before {
  opacity: 1;
}

/* ============================================
   ALL CARDS - Enhanced Hover States
   ============================================ */

.wn-node-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wn-timeline-node:not(.wn-timeline-node--locked) .wn-node-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.wn-timeline-node:not(.wn-timeline-node--locked) .wn-node-card:active {
  transform: translateY(-4px) scale(1.01);
}

/* Disable animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wn-timeline-node--current .wn-node-card,
  .wn-timeline-node--current .wn-node-card::before,
  .wn-timeline-node--completed .wn-node-card::before,
  .wn-timeline-node--in-progress .wn-node-card,
  .wn-timeline-node--in-progress .wn-node-card::before,
  .wn-timeline-node--blocking .wn-node-card,
  .wn-timeline-node--blocking .wn-node-card::before {
    animation: none;
  }
}

/* ============================================
   NODE CARD ACTION BUTTONS
   Generated by list.v2.js - these classes were
   missing CSS definitions causing invisible buttons
   ============================================ */

.wn-node-card__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow:
    0 4px 15px rgba(99, 102, 241, 0.35),
    0 2px 6px rgba(99, 102, 241, 0.2);
}

.wn-node-card__action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.wn-node-card__action-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(99, 102, 241, 0.45),
    0 4px 10px rgba(99, 102, 241, 0.3);
}

.wn-node-card__action-btn:hover::before {
  left: 100%;
}

.wn-node-card__action-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.35);
}

.wn-node-card__action-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.wn-node-card__action-btn:hover svg {
  transform: translateX(3px);
}

/* Quiz Button Variant */
.wn-node-card__action-btn--quiz {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  box-shadow:
    0 4px 15px rgba(139, 92, 246, 0.35),
    0 2px 6px rgba(139, 92, 246, 0.2);
}

.wn-node-card__action-btn--quiz:hover {
  box-shadow:
    0 8px 25px rgba(139, 92, 246, 0.45),
    0 4px 10px rgba(139, 92, 246, 0.3);
}

/* Secondary Button Variant */
.wn-node-card__action-btn--secondary {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  box-shadow: none;
}

.wn-node-card__action-btn--secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.wn-node-card__action-btn--secondary::before {
  display: none;
}

/* Red Button Variant (Review - Red) */
.wn-node-card__action-btn--red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow:
    0 4px 15px rgba(239, 68, 68, 0.35),
    0 2px 6px rgba(239, 68, 68, 0.2);
}

.wn-node-card__action-btn--red:hover {
  box-shadow:
    0 8px 25px rgba(239, 68, 68, 0.45),
    0 4px 10px rgba(239, 68, 68, 0.3);
}

/* Orange Button Variant (Review - Orange) */
.wn-node-card__action-btn--orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow:
    0 4px 15px rgba(245, 158, 11, 0.35),
    0 2px 6px rgba(245, 158, 11, 0.2);
}

.wn-node-card__action-btn--orange:hover {
  box-shadow:
    0 8px 25px rgba(245, 158, 11, 0.45),
    0 4px 10px rgba(245, 158, 11, 0.3);
}

/* Green Button Variant (Review - Green) */
.wn-node-card__action-btn--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow:
    0 4px 15px rgba(16, 185, 129, 0.35),
    0 2px 6px rgba(16, 185, 129, 0.2);
}

.wn-node-card__action-btn--green:hover {
  box-shadow:
    0 8px 25px rgba(16, 185, 129, 0.45),
    0 4px 10px rgba(16, 185, 129, 0.3);
}

/* ============================================
   COMPLETED ACTIONS CONTAINER
   ============================================ */

.wn-node-card__completed-actions {
  display: flex;
  gap: 10px;
  margin-top: var(--wn-space-3);
  flex-wrap: wrap;
}

/* Mini Buttons (Flashcards, Matching, Review) */
.wn-node-card__mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  color: var(--wn-text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex: 1;
  min-width: 80px;
}

.wn-node-card__mini-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.wn-node-card__mini-btn:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.wn-node-card__mini-btn:hover svg {
  transform: scale(1.1);
}

.wn-node-card__mini-btn:active {
  transform: translateY(0);
}

/* Stylish Flashcard Button */
.wn-node-card__flashcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.wn-node-card__flashcard-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.wn-node-card__flashcard-btn:hover::before {
  left: 100%;
}

.wn-node-card__flashcard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.wn-node-card__flashcard-btn:active {
  transform: translateY(0);
}

.wn-node-card__flashcard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wn-node-card__flashcard-icon svg {
  width: 14px;
  height: 14px;
}

/* Mobile responsive flashcard button */
@media (max-width: 768px) {
  .wn-node-card__flashcard-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* ============================================
   NODE CARD PROGRESS BARS
   (Different from .wn-progress-bar - these are
   used specifically in node cards)
   ============================================ */

.wn-node-card__progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--wn-space-2);
}

.wn-node-card__progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Animated shine effect on progress bar */
.wn-node-card__progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: progressShine 2.5s ease-in-out infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.wn-node-card__progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--wn-text-muted);
}

/* Progress Bar Color Variants */
.wn-node-card__progress-bar--red .wn-node-card__progress-fill {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.wn-node-card__progress-bar--orange .wn-node-card__progress-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.wn-node-card__progress-bar--green .wn-node-card__progress-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* ============================================
   MOBILE RESPONSIVE - ACTION BUTTONS
   ============================================ */

@media (max-width: 640px) {
  .wn-node-card__action-btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .wn-node-card__completed-actions {
    flex-direction: column;
  }

  .wn-node-card__mini-btn {
    flex: none;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
}

/* ============================================
   TROPHY ROOM SECTION
   ============================================ */

.wn-trophy-room {
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.wn-trophy-grid {
  display: grid;
  gap: 1.5rem;
}

/* Stats Row */
.wn-trophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .wn-trophy-stats {
    grid-template-columns: 1fr;
  }
}

.wn-trophy-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--wn-surface);
  border-radius: 16px;
  border: 1px solid var(--wn-border);
  box-shadow: var(--wn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wn-trophy-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--wn-shadow-md);
}

.wn-trophy-stat__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--wn-primary);
}

.wn-trophy-stat--xp .wn-trophy-stat__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 179, 8, 0.1) 100%);
  color: #F59E0B;
}

.wn-trophy-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wn-text);
  line-height: 1;
}

.wn-trophy-stat__label {
  font-size: 0.85rem;
  color: var(--wn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badges Section */
.wn-badges-section {
  background: var(--wn-surface);
  border-radius: 16px;
  border: 1px solid var(--wn-border);
  padding: 1.5rem;
  box-shadow: var(--wn-shadow);
}

.wn-badges-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wn-text);
  margin: 0 0 1rem 0;
}

.wn-badge-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.wn-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 12px;
  min-width: 100px;
  text-align: center;
  transition: transform 0.2s ease;
}

.wn-badge:hover {
  transform: scale(1.05);
}

.wn-badge--bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(180, 110, 45, 0.1) 100%);
}

.wn-badge--silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(169, 169, 169, 0.15) 100%);
}

.wn-badge--gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(234, 179, 8, 0.1) 100%);
}

.wn-badge--platinum {
  background: linear-gradient(135deg, rgba(229, 228, 226, 0.2) 0%, rgba(192, 192, 192, 0.15) 100%);
}

.wn-badge__icon {
  font-size: 2rem;
  line-height: 1;
}

.wn-badge__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.wn-badge__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wn-text);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn-badge--new {
  position: relative;
}

.wn-badge--new::after {
  content: 'NEW';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  background: #EF4444;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.wn-badge--empty {
  opacity: 0.5;
  border: 2px dashed var(--wn-border);
  background: transparent;
}

.wn-badge--loading {
  opacity: 0.5;
}

.wn-badge__skeleton {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wn-badge--more {
  cursor: pointer;
  background: var(--wn-primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
  min-width: 80px;
}

.wn-badge--more:hover {
  background: var(--wn-primary-hover);
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Section reveal animation - starts hidden */
.wn-section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed state */
.wn-section-animate.wn-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Progress stats use their own keyframe animations (progress-stat-enter)
   so we don't apply scroll animation to them - just reveal with parent */

/* Staggered children for trophy stats */
.wn-section-animate .wn-trophy-stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wn-section-animate.wn-animate-in .wn-trophy-stat:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 0.1s;
}
.wn-section-animate.wn-animate-in .wn-trophy-stat:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}
.wn-section-animate.wn-animate-in .wn-trophy-stat:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 0.3s;
}

/* ============================================
   ENHANCED HOVER MICRO-INTERACTIONS
   ============================================ */

/* Progress stat card hover enhancement */
.wn-progress-stat {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wn-progress-stat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wn-progress-stat:hover .wn-progress-stat__icon {
  transform: scale(1.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Trophy stat hover */
.wn-trophy-stat {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wn-trophy-stat:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.wn-trophy-stat:hover .wn-trophy-stat__icon {
  transform: scale(1.1) rotate(-5deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Timeline card hover */
.wn-timeline-card:hover,
.wn-node-card:hover:not(.wn-node-card--locked) {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

/* ============================================
   IMPROVED LOADING STATES
   ============================================ */

/* Skeleton wave animation */
.wn-skeleton {
  background: linear-gradient(
    90deg,
    var(--wn-bg-alt) 0%,
    var(--wn-surface) 50%,
    var(--wn-bg-alt) 100%
  );
  background-size: 200% 100%;
  animation: wn-skeleton-wave 1.5s ease-in-out infinite;
}

@keyframes wn-skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Loading overlay smooth transition */
.wn-loading-overlay {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.wn-loading-overlay.wn-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Hero entrance animation - uses keyframes to not conflict with hover transform */
@keyframes wn-hero-card-entrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wn-hero__card {
  animation: wn-hero-card-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Leaderboard section animation */
.wn-leaderboard-section .leaderboard {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.wn-section-animate.wn-animate-in .leaderboard {
  opacity: 1;
  transform: translateY(0);
}

/* Badge gallery reveal */
.wn-section-animate .wn-badge-gallery {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.wn-section-animate.wn-animate-in .wn-badge-gallery {
  opacity: 1;
  transform: translateY(0);
}

/* Progress ring pulse on hover */
.wn-progress-ring-container:hover .wn-progress-ring__progress {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .wn-section-animate,
  .wn-section-animate .wn-progress-stat,
  .wn-section-animate .wn-trophy-stat,
  .wn-hero__card,
  .wn-progress-stat,
  .wn-trophy-stat,
  .wn-timeline-card,
  .wn-node-card {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .wn-skeleton {
    animation: none;
  }
}

/* ============================================
   DECORATIVE SECTION FRAMES (v15)
   Colored corner accents for each section
   ============================================ */

/* Base section frame container */
.wn-section-frame {
  position: relative;
  margin: var(--wn-space-6) 0;
  padding: var(--wn-space-6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

/* Corner frame accents - shared styles */
.wn-section-frame::before,
.wn-section-frame::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   PROGRESS SECTION - Yellow & Black Frame
   ============================================ */

.wn-progress-section {
  position: relative;
}

.wn-progress-section > .wn-container {
  position: relative;
  padding: var(--wn-space-6);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(250, 250, 250, 0.9) 100%
  );
  border-radius: 24px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Yellow & Black corner frames */
.wn-progress-section > .wn-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 50%, #1F2937 50%, #111827 100%);
  border-radius: 24px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.wn-progress-section > .wn-container::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(315deg, #1F2937 0%, #111827 50%, #FCD34D 50%, #FBBF24 100%);
  border-radius: 0 0 24px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ============================================
   TROPHY ROOM - Purple & Gold Frame
   ============================================ */

.wn-trophy-room {
  position: relative;
}

.wn-trophy-room > .wn-container {
  position: relative;
  padding: var(--wn-space-6);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(252, 251, 255, 0.92) 100%
  );
  border-radius: 24px;
}

/* Purple & Gold corner frames */
.wn-trophy-room > .wn-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #F59E0B 50%, #D97706 100%);
  border-radius: 24px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.wn-trophy-room > .wn-container::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(315deg, #F59E0B 0%, #D97706 50%, #8B5CF6 50%, #7C3AED 100%);
  border-radius: 0 0 24px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ============================================
   LEADERBOARD - Blue & Cyan Frame
   ============================================ */

.wn-leaderboard-section {
  position: relative;
}

.wn-leaderboard-section > .wn-container {
  position: relative;
  padding: var(--wn-space-6);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 252, 255, 0.92) 100%
  );
  border-radius: 24px;
}

/* Blue & Cyan corner frames */
.wn-leaderboard-section > .wn-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #06B6D4 50%, #0891B2 100%);
  border-radius: 24px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.wn-leaderboard-section > .wn-container::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(315deg, #06B6D4 0%, #0891B2 50%, #3B82F6 50%, #2563EB 100%);
  border-radius: 0 0 24px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ============================================
   LEARNING JOURNEY - Green & Emerald Frame
   ============================================ */

.wn-progression-section {
  position: relative;
}

.wn-progression-section > .wn-container {
  position: relative;
  padding: var(--wn-space-6);
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 255, 250, 0.92) 100%
  );
  border-radius: 24px;
}

/* Green & Emerald corner frames */
.wn-progression-section > .wn-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #34D399 50%, #6EE7B7 100%);
  border-radius: 24px 0 0 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.wn-progression-section > .wn-container::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 80px;
  height: 80px;
  background: linear-gradient(315deg, #34D399 0%, #6EE7B7 50%, #10B981 50%, #059669 100%);
  border-radius: 0 0 24px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* ============================================
   HERO SECTION - Indigo & Pink Frame
   ============================================ */

.wn-hero__card {
  position: relative;
}

/* Already has gradient border, add corner accents */
.wn-hero__card::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 70px;
  height: 70px;
  background: linear-gradient(315deg, #EC4899 0%, #DB2777 50%, #6366F1 50%, #4F46E5 100%);
  border-radius: 0 0 28px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* Mobile adjustments for corner frames */
@media (max-width: 640px) {
  .wn-progress-section > .wn-container::before,
  .wn-progress-section > .wn-container::after,
  .wn-trophy-room > .wn-container::before,
  .wn-trophy-room > .wn-container::after,
  .wn-leaderboard-section > .wn-container::before,
  .wn-leaderboard-section > .wn-container::after,
  .wn-progression-section > .wn-container::before,
  .wn-progression-section > .wn-container::after {
    width: 50px;
    height: 50px;
  }

  .wn-hero__card::after {
    width: 45px;
    height: 45px;
  }
}

/* ============================================
   PREMIUM VOCABULARY SET CARDS
   ============================================ */

/* Premium Card Container */
.wn-premium-card {
  position: relative;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.wn-premium-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, var(--card-gradient-start, #6366F1), var(--card-gradient-end, #EC4899));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Color Variants - Premium Gradient Borders */
.wn-premium-card--variant-1 {
  --card-gradient-start: #6366F1;
  --card-gradient-end: #8B5CF6;
}

.wn-premium-card--variant-2 {
  --card-gradient-start: #EC4899;
  --card-gradient-end: #F43F5E;
}

.wn-premium-card--variant-3 {
  --card-gradient-start: #10B981;
  --card-gradient-end: #14B8A6;
}

.wn-premium-card--variant-4 {
  --card-gradient-start: #F59E0B;
  --card-gradient-end: #EF4444;
}

/* Hover Effects */
.wn-premium-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 20px 40px rgba(99, 102, 241, 0.15),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Premium Status Badge - Top Right Corner */
.wn-premium-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

.wn-premium-status--completed {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.wn-premium-status--progress {
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.wn-premium-status--locked {
  background: linear-gradient(135deg, #94A3B8, #64748B);
  color: white;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.4);
}

.wn-premium-status svg {
  flex-shrink: 0;
}

/* Premium Card Header */
.wn-premium-card__header {
  margin-bottom: 12px;
  padding-right: 100px; /* Space for status badge */
}

.wn-premium-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.wn-premium-card__wordcount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* Premium Progress Bar */
.wn-premium-card__progress {
  margin-bottom: 16px;
}

.wn-premium-card__progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.wn-premium-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--card-gradient-start), var(--card-gradient-end));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wn-premium-card__progress-text {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

/* Premium Card Actions */
.wn-premium-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wn-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wn-premium-btn svg {
  flex-shrink: 0;
}

/* Primary Button - Full Width CTA */
.wn-premium-btn--primary {
  background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  width: 100%;
}

.wn-premium-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.wn-premium-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary Buttons - Extras Row */
.wn-premium-card__extras {
  display: flex;
  gap: 8px;
}

.wn-premium-btn--secondary {
  flex: 1;
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  font-size: 0.75rem;
}

.wn-premium-btn--secondary:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: #6366F1;
}

/* Locked Button State */
.wn-premium-btn--locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.wn-premium-btn--locked:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #374151 !important;
}

.wn-lock-icon {
  margin-left: 4px;
  opacity: 0.7;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .wn-premium-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.95));
}

[data-theme="dark"] .wn-premium-card__title {
  color: #f1f5f9;
}

[data-theme="dark"] .wn-premium-card__wordcount,
[data-theme="dark"] .wn-premium-card__progress-text {
  color: #94a3b8;
}

[data-theme="dark"] .wn-premium-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wn-premium-btn--secondary:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

[data-theme="dark"] .wn-premium-card__progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .wn-premium-card {
    padding: 16px;
  }

  .wn-premium-card__header {
    padding-right: 80px;
  }

  .wn-premium-card__title {
    font-size: 1.1rem;
  }

  .wn-premium-status {
    padding: 5px 10px;
    font-size: 0.65rem;
  }

  .wn-premium-btn--primary {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .wn-premium-btn--secondary {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .wn-premium-card__extras {
    flex-wrap: wrap;
  }
}

/* ============================================
   NODE CARD OVERRIDE FOR PREMIUM CARDS
   When node-card contains premium-card, make the
   wrapper transparent to avoid double-card effect
   ============================================ */

.wn-node-card:has(.wn-premium-card) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.wn-node-card:has(.wn-premium-card)::before,
.wn-node-card:has(.wn-premium-card)::after {
  display: none;
}

.wn-node-card:has(.wn-premium-card):hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
