/**
 * SPARKUS 2026 DESIGN SYSTEM - TAILWIND EDITION
 * CSS Custom Properties and utilities for Tailwind-based components
 * Mirrors the visual design of ui-showcase.css using Tailwind classes + custom properties
 */

/* ================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   These are referenced by Tailwind utility classes via arbitrary values
   ================================================================ */
:root {
  /* === SPARKUS BLUE PALETTE === */
  --sp-blue-50: #f0f5fa;
  --sp-blue-100: #e1ebf4;
  --sp-blue-200: #c3d7e9;
  --sp-blue-300: #94b8d4;
  --sp-blue-400: #5e92b8;
  --sp-blue-500: #3d6f94;
  --sp-blue-600: #2d5573;
  --sp-blue-700: #1e3a52;
  --sp-blue-800: #0f2438;
  --sp-blue-900: #041624;
  
  /* === SPARKUS RED (Brand Accent) === */
  --sp-red: #d92b31;
  --sp-red-light: #f54725;
  --sp-red-lighter: #fef2f2;
  
  /* === SEMANTIC COLORS === */
  --sp-success: #10b981;
  --sp-success-light: #d1fae5;
  --sp-warning: #f59e0b;
  --sp-warning-light: #fef3c7;
  --sp-danger: #ef4444;
  --sp-danger-light: #fee2e2;
  --sp-info: var(--sp-blue-500);
  --sp-info-light: var(--sp-blue-100);
  
  /* === MODULE-SPECIFIC COLORS === */
  --sp-module-reflection-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  --sp-module-reflection-text: #92400e;
  --sp-module-ai-bg: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  --sp-module-ai-accent: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --sp-module-ai-text: #5b21b6;
  --sp-module-goal-bg: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  --sp-module-goal-text: #1e40af;
  --sp-module-carried-bg: #f0fdf4;
  --sp-module-carried-border: #86efac;
  --sp-module-carried-text: #15803d;
  --sp-module-audio-bg: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  --sp-module-audio-text: #831843;
  --sp-module-link-bg: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --sp-module-video-bg: #0f172a;
  
  /* === SURFACES === */
  --sp-white: #ffffff;
  --sp-body-bg: var(--sp-blue-50);
  --sp-card-bg: var(--sp-white);
  --sp-card-border: rgba(30, 58, 82, 0.08);
  
  /* === TEXT === */
  /* Use design system token directly - don't reference --sp-blue-800 which may be overridden by branding */
  --sp-text-primary: #0f2438;
  --sp-text-secondary: var(--sp-blue-600);
  --sp-text-muted: var(--sp-blue-400);
  
  /* === GRADIENTS === */
  --sp-gradient-primary: linear-gradient(75deg, #d92b31, #f54725);
  --sp-gradient-secondary: linear-gradient(45deg, #0f2438, #3d6f94);
  --sp-gradient-light: linear-gradient(180deg, var(--sp-blue-50) 0%, var(--sp-white) 100%);
  
  /* === BORDERS === */
  --sp-radius-sm: 2px;
  --sp-radius-md: 4px;
  --sp-radius-lg: 6px;
  --sp-radius-xl: 8px;
  --sp-radius-full: 9999px;
  
  /* === SHADOWS === */
  --sp-shadow-xs: 0 1px 2px rgba(4, 22, 36, 0.04);
  --sp-shadow-sm: 0 1px 3px rgba(4, 22, 36, 0.06), 0 1px 2px rgba(4, 22, 36, 0.04);
  --sp-shadow-md: 0 4px 8px rgba(4, 22, 36, 0.08), 0 2px 4px rgba(4, 22, 36, 0.04);
  --sp-shadow-lg: 0 12px 24px rgba(4, 22, 36, 0.1), 0 4px 8px rgba(4, 22, 36, 0.04);
  --sp-shadow-card: 0 2px 8px rgba(4, 22, 36, 0.08), 0 1px 2px rgba(4, 22, 36, 0.06);
}

/* ================================================================
   DARK MODE VARIABLES
   Applied when .dark class is on html/body or data-theme="dark"
   ================================================================ */
.dark,
[data-theme="dark"] {
  /* === SPARKUS BLUE PALETTE (Inverted for Dark) === */
  --sp-blue-50: #0a1929;
  --sp-blue-100: #0f2438;
  --sp-blue-200: #1e3a52;
  --sp-blue-300: #2d5573;
  --sp-blue-400: #3d6f94;
  --sp-blue-500: #5e92b8;
  --sp-blue-600: #94b8d4;
  --sp-blue-700: #c3d7e9;
  --sp-blue-800: #e1ebf4;
  --sp-blue-900: #f0f5fa;
  
  /* === SPARKUS RED (Brand Accent - slightly adjusted for dark) === */
  --sp-red: #ef4444;
  --sp-red-light: #f87171;
  --sp-red-lighter: rgba(239, 68, 68, 0.15);
  
  /* === SEMANTIC COLORS (adjusted for dark) === */
  --sp-success: #34d399;
  --sp-success-light: rgba(52, 211, 153, 0.15);
  --sp-warning: #fbbf24;
  --sp-warning-light: rgba(251, 191, 36, 0.15);
  --sp-danger: #f87171;
  --sp-danger-light: rgba(248, 113, 113, 0.15);
  --sp-info: #60a5fa;
  --sp-info-light: rgba(96, 165, 250, 0.15);
  
  /* === MODULE-SPECIFIC COLORS (Dark Mode) === */
  --sp-module-reflection-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
  --sp-module-reflection-text: #fcd34d;
  --sp-module-ai-bg: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(124, 58, 237, 0.2) 100%);
  --sp-module-ai-accent: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --sp-module-ai-text: #c4b5fd;
  --sp-module-goal-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);
  --sp-module-goal-text: #93c5fd;
  --sp-module-carried-bg: rgba(52, 211, 153, 0.1);
  --sp-module-carried-border: rgba(52, 211, 153, 0.4);
  --sp-module-carried-text: #6ee7b7;
  --sp-module-audio-bg: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.2) 100%);
  --sp-module-audio-text: #f9a8d4;
  --sp-module-link-bg: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --sp-module-video-bg: #1e293b;
  
  /* === SURFACES (Dark Mode) === */
  --sp-white: #1e293b;
  --sp-body-bg: #0a1929;
  --sp-card-bg: #1e293b;
  --sp-card-border: rgba(148, 184, 212, 0.12);
  
  /* === TEXT (Dark Mode) === */
  --sp-text-primary: #e1ebf4;
  --sp-text-secondary: #94b8d4;
  --sp-text-muted: #5e92b8;
  
  /* === GRADIENTS (Dark Mode) === */
  --sp-gradient-primary: linear-gradient(75deg, #ef4444, #f87171);
  --sp-gradient-secondary: linear-gradient(45deg, #1e293b, #0f2438);
  --sp-gradient-light: linear-gradient(180deg, #0a1929 0%, #1e293b 100%);
  
  /* === SHADOWS (Dark Mode - more subtle) === */
  --sp-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --sp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  --sp-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --sp-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.2);
  --sp-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  
  color-scheme: dark;
}

/* ================================================================
   TYPOGRAPHY - Font Application
   ================================================================ */

/* Font family utilities */
.font-heading {
  font-family: 'Stag', 'Stag Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

.font-body {
  font-family: 'Stag Sans', system-ui, -apple-system, sans-serif;
  font-weight: 300;
}

/* Base body styling */
.ui-showcase-tailwind {
  font-family: 'Stag Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--sp-text-primary);
  background: var(--sp-gradient-light);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Headings use Stag (serif) */
.ui-showcase-tailwind h1,
.ui-showcase-tailwind h2,
.ui-showcase-tailwind h3,
.ui-showcase-tailwind h4,
.ui-showcase-tailwind h5,
.ui-showcase-tailwind h6 {
  font-family: 'Stag', 'Stag Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

.ui-showcase-tailwind h1 { font-size: 2.5rem; }
.ui-showcase-tailwind h2 { font-size: 1.875rem; }
.ui-showcase-tailwind h3 { font-size: 1.5rem; }
.ui-showcase-tailwind h4 { font-size: 1.25rem; }
.ui-showcase-tailwind h5 { font-size: 1.125rem; }
.ui-showcase-tailwind h6 { font-size: 1rem; }

/* ================================================================
   SHOWCASE HEADER (Hero banner)
   ================================================================ */
.showcase-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 48px 24px;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-xl);
  color: white;
}

.showcase-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: white;
}

.showcase-header p {
  font-size: 1.125rem;
  opacity: 0.85;
  margin: 0 auto;
  max-width: 600px;
}

/* Section title with red accent bar */
.section-title-accent {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
}

.section-title-accent::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--sp-gradient-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Section header layout */
.section-header-sp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-description-sp {
  color: var(--sp-blue-500);
  font-size: 0.9375rem;
}

/* Font weight utilities */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ================================================================
   TAILWIND BASE EXTENSIONS
   ================================================================ */

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sp-blue-50);
}

::-webkit-scrollbar-thumb {
  background: var(--sp-blue-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sp-blue-400);
}

/* ================================================================
   COMPONENT UTILITIES (Tailwind @apply alternatives)
   ================================================================ */

/* Gradient backgrounds */
.bg-gradient-primary {
  background: var(--sp-gradient-primary);
}

.bg-gradient-secondary {
  background: var(--sp-gradient-secondary);
}

.bg-gradient-light {
  background: var(--sp-gradient-light);
}

/* Card shadows */
.shadow-card {
  box-shadow: var(--sp-shadow-card);
}

/* Symbol (Avatar) component */
.symbol {
  display: inline-flex;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--sp-radius-md);
}

.symbol-circle {
  border-radius: var(--sp-radius-full);
}

.symbol-circle .symbol-label {
  border-radius: var(--sp-radius-full);
}

.symbol-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
  background: var(--sp-gradient-secondary);
  border-radius: inherit;
  width: 100%;
  height: 100%;
}

/* Symbol sizes - following original naming convention */
.symbol-25px { width: 25px; height: 25px; }
.symbol-25px .symbol-label { width: 25px; height: 25px; font-size: 10px; }

.symbol-30px { width: 30px; height: 30px; }
.symbol-30px .symbol-label { width: 30px; height: 30px; font-size: 11px; }

.symbol-35px { width: 35px; height: 35px; }
.symbol-35px .symbol-label { width: 35px; height: 35px; font-size: 12px; }

.symbol-40px { width: 40px; height: 40px; }
.symbol-40px .symbol-label { width: 40px; height: 40px; font-size: 14px; }

.symbol-45px { width: 45px; height: 45px; }
.symbol-45px .symbol-label { width: 45px; height: 45px; font-size: 15px; }

.symbol-50px { width: 50px; height: 50px; }
.symbol-50px .symbol-label { width: 50px; height: 50px; font-size: 16px; }

.symbol-65px { width: 65px; height: 65px; }
.symbol-65px .symbol-label { width: 65px; height: 65px; font-size: 20px; }

.symbol-100px { width: 100px; height: 100px; }
.symbol-100px .symbol-label { width: 100px; height: 100px; font-size: 32px; }

/* Short aliases for convenience */
.symbol-25 { width: 25px; height: 25px; }
.symbol-25 .symbol-label { width: 25px; height: 25px; font-size: 10px; }

.symbol-30 { width: 30px; height: 30px; }
.symbol-30 .symbol-label { width: 30px; height: 30px; font-size: 11px; }

.symbol-35 { width: 35px; height: 35px; }
.symbol-35 .symbol-label { width: 35px; height: 35px; font-size: 12px; }

.symbol-40 { width: 40px; height: 40px; }
.symbol-40 .symbol-label { width: 40px; height: 40px; font-size: 14px; }

.symbol-45 { width: 45px; height: 45px; }
.symbol-45 .symbol-label { width: 45px; height: 45px; font-size: 15px; }

.symbol-50 { width: 50px; height: 50px; }
.symbol-50 .symbol-label { width: 50px; height: 50px; font-size: 16px; }

.symbol-65 { width: 65px; height: 65px; }
.symbol-65 .symbol-label { width: 65px; height: 65px; font-size: 20px; }

.symbol-100 { width: 100px; height: 100px; }
.symbol-100 .symbol-label { width: 100px; height: 100px; font-size: 32px; }

/* Symbol badge (online indicator) */
.symbol-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--sp-radius-full);
  border: 2px solid white;
}

/* ================================================================
   PAGE TITLE WITH SPARKUS SIGNATURE (Diamond Effect)
   Exact 1:1 CSS migration from ui-showcase.css
   ================================================================ */

/* Base page title styling */
.page-title {
  position: relative;
  padding: 20px 24px;
  background: linear-gradient(90deg, #d92b31 0%, #f54725 60%, #f54725 100%);
  color: white;
  border-radius: var(--sp-radius-md);
  margin-bottom: 24px;
  overflow: visible;
  min-height: 72px;
  box-shadow: 0 2px 8px rgba(4, 22, 36, 0.08);
}

.page-title__text {
  font-family: 'Stag', 'Stag Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: white;
  margin: 0 0 4px 0;
}

.page-title__subtitle {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0;
}

/* Page Title with Sparkus Signature (Diamond) 
   - Top diamond: Matches container background for clip-out illusion
   - Bottom diamond: Red, extends below the element
   Based on reference: welcome-page.png */
.page-title--sparkus-signature {
  position: relative;
  overflow: visible;
  padding-right: 10%; /* Make room for diamond on right */
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: calc(24px + 40px); /* Extra space for bottom diamond extension */
  z-index: 2;
}

/* Top diamond - MUST match container background for clip-out illusion */
.page-title--sparkus-signature::before {
  content: '';
  position: absolute;
  right: 7%;
  top: -37px;
  width: 75px;
  height: 75px;
  background: #f0f5fa; /* sp-blue-50 - the page background */
  transform: rotate(45deg);
  border-radius: 0 0 5px 0;
  z-index: 5;
  clip-path: polygon(0% 100%, -1% 100%, 100% -1%, 100% 100%, 0% 100%);
}

/* Bottom diamond - red (extends below the element) */
.page-title--sparkus-signature::after {
  content: '';
  position: absolute;
  right: 7%;
  bottom: -37px;
  width: 74px;
  height: 74px;
  background: #f54725; /* Solid red - matches gradient end */
  transform: rotate(45deg);
  border-radius: 0 0 5px 0;
  z-index: 1;
  clip-path: polygon(0% 100%, -1% 100%, 100% -1%, 100% 100%, 0% 100%);
}

/* When inside a white container, top diamond must be white */
.navbar-page-demo .page-title--sparkus-signature::before {
  background: #ffffff;
}

/* ================================================================
   NAVBAR WITH DIAMOND (aligned with page title diamonds)
   ================================================================ */
.sp-navbar--diamond {
  position: relative;
  overflow: visible;
  box-shadow: none;
  margin-bottom: calc(24px + 40px);
}

.sp-navbar--diamond::after {
  content: '';
  position: absolute;
  right: 7%;
  bottom: -37px;
  width: 74px;
  height: 74px;
  background: var(--sp-white);
  transform: rotate(45deg);
  border-radius: 0 0 5px 0;
  z-index: 10;
  clip-path: polygon(0% 100%, -1% 100%, 100% -1%, 100% 100%, 0% 100%);
}

/* Simplified navbar diamond for showcase - no margin, just visual */
.navbar-diamond {
  position: relative;
  overflow: visible;
}

.navbar-diamond::after {
  content: '';
  position: absolute;
  right: 7%;
  bottom: -37px;
  width: 74px;
  height: 74px;
  background: white;
  transform: rotate(45deg);
  border-radius: 0 0 5px 0;
  z-index: 10;
  clip-path: polygon(0% 100%, -1% 100%, 100% -1%, 100% 100%, 0% 100%);
}

/* ================================================================
   STEPPER (Progress dashes)
   ================================================================ */
.stepper-dash {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.stepper-dash-completed {
  background: white;
}

.stepper-dash-current {
  background: white;
  position: relative;
}

.stepper-dash-current::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  animation: stepper-pulse 2s ease-in-out infinite;
}

@keyframes stepper-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ================================================================
   FORM RANGE SLIDER - Bootstrap 5 Style with Sparkus Colors
   Tailwind-compatible, no Bootstrap required
   ================================================================ */

/* Base form-range styling */
.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.form-range:focus {
  outline: none;
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.25);
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.25);
}

/* Webkit (Chrome, Safari, Edge) Track */
.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
}

/* Webkit Thumb */
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--sp-white);
  border: 2px solid var(--sp-blue-600);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.15);
  margin-top: -6px;
  transition: all 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
  border-color: var(--sp-red);
  transform: scale(1.1);
}

.form-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* Firefox Track */
.form-range::-moz-range-track {
  width: 100%;
  height: 8px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
}

/* Firefox Thumb */
.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--sp-white);
  border: 2px solid var(--sp-blue-600);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.15);
  transition: all 0.15s ease;
}

.form-range::-moz-range-thumb:hover {
  border-color: var(--sp-red);
  transform: scale(1.1);
}

/* Form Range with Fill Indicator */
.form-range-wrapper {
  position: relative;
  width: 100%;
}

.form-range-wrapper .form-range {
  position: relative;
  z-index: 2;
}

.form-range-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 8px;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-sm);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Size Variants */
.form-range-sm {
  height: 6px;
}

.form-range-sm::-webkit-slider-runnable-track {
  height: 6px;
}

.form-range-sm::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
}

.form-range-sm::-moz-range-track {
  height: 6px;
}

.form-range-sm::-moz-range-thumb {
  width: 16px;
  height: 16px;
}

.form-range-lg {
  height: 12px;
}

.form-range-lg::-webkit-slider-runnable-track {
  height: 12px;
}

.form-range-lg::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -8px;
}

.form-range-lg::-moz-range-track {
  height: 12px;
}

.form-range-lg::-moz-range-thumb {
  width: 28px;
  height: 28px;
}

/* Disabled state */
.form-range:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.form-range:disabled::-webkit-slider-thumb {
  background: var(--sp-blue-200);
  border-color: var(--sp-blue-300);
}

.form-range:disabled::-moz-range-thumb {
  background: var(--sp-blue-200);
  border-color: var(--sp-blue-300);
}

/* ================================================================
   ASSESSMENT SLIDER (5-notch with labels)
   ================================================================ */
.assessment-slider {
  width: 100%;
  padding: 16px 0;
}

.assessment-slider__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.assessment-slider__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sp-blue-900);
}

.assessment-slider__value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-700);
  background: var(--sp-blue-100);
  padding: 4px 12px;
  border-radius: var(--sp-radius-sm);
  min-width: 48px;
  text-align: center;
}

.assessment-slider__track {
  position: relative;
  height: 12px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
}

.assessment-slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-sm);
  transition: width 0.15s ease;
}

.assessment-slider__ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  pointer-events: none;
}

.assessment-slider__tick {
  width: 8px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

.assessment-slider__tick--active {
  background: rgba(255, 255, 255, 0.9);
}

.assessment-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 4px;
}

.assessment-slider__label-item {
  font-size: 0.8125rem;
  color: var(--sp-blue-600);
  text-align: center;
  flex: 1;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--sp-radius-sm);
  transition: all 0.15s ease;
}

.assessment-slider__label-item:hover {
  background: var(--sp-blue-50);
  color: var(--sp-blue-800);
}

.assessment-slider__label-item--active {
  background: var(--sp-blue-100);
  color: var(--sp-blue-800);
  font-weight: 500;
}

/* Native range input for assessment slider */
.assessment-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

.assessment-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  background: transparent;
  border-radius: var(--sp-radius-sm);
}

.assessment-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--sp-white);
  border: 3px solid var(--sp-blue-700);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: var(--sp-shadow-md);
  margin-top: -6px;
  transition: all 0.15s ease;
}

.assessment-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  border-color: var(--sp-red);
}

.assessment-slider input[type="range"]::-moz-range-track {
  height: 12px;
  background: transparent;
  border-radius: var(--sp-radius-sm);
}

.assessment-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--sp-white);
  border: 3px solid var(--sp-blue-700);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: var(--sp-shadow-md);
}

/* Inline Assessment Slider */
.assessment-slider-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 10rem;
  min-width: 8rem;
  max-width: 12rem;
}

.assessment-slider-inline__track {
  --thumb-width: 16px;
  --thumb-half: 8px;
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  overflow: visible;
  margin: 0 var(--thumb-half);
}

.assessment-slider-inline__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-sm);
  transition: width 0.15s ease;
}

.assessment-slider-inline__value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-blue-700);
  background: var(--sp-blue-100);
  padding: 2px 8px;
  border-radius: var(--sp-radius-sm);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.assessment-slider-inline input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% + var(--thumb-width, 16px));
  height: 8px;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: calc(var(--thumb-half, 8px) * -1);
  margin: 0;
  z-index: 2;
}

.assessment-slider-inline input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: var(--sp-radius-sm);
}

.assessment-slider-inline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--sp-white);
  border: 2px solid var(--sp-blue-600);
  border-radius: 2px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.15);
  margin-top: -4px;
  transition: all 0.15s ease;
}

.assessment-slider-inline input[type="range"]::-webkit-slider-thumb:hover {
  border-color: var(--sp-red);
  transform: scale(1.1);
}

.assessment-slider-inline input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
}

.assessment-slider-inline input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--sp-white);
  border: 2px solid var(--sp-blue-600);
  border-radius: 2px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.15);
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-control-sp {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--sp-text-primary);
  background: var(--sp-blue-50);
  border: 1px solid transparent;
  border-radius: var(--sp-radius-md);
  transition: all 0.15s ease;
}

.form-control-sp:hover {
  background: var(--sp-blue-100);
}

.form-control-sp:focus {
  outline: none;
  background: white;
  border-color: var(--sp-blue-300);
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.15);
}

.form-control-sp::placeholder {
  color: var(--sp-text-muted);
}

/* Radio/Checkbox card style */
.form-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--sp-blue-50);
  border: 1px solid transparent;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-check-card:hover {
  background: var(--sp-blue-100);
}

.form-check-card:has(input:checked) {
  background: white;
  border-color: var(--sp-blue-300);
  box-shadow: var(--sp-shadow-sm);
}

/* Custom Radio Input */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--sp-blue-300);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  margin-top: 2px;
}

.form-check-input:checked {
  border-color: var(--sp-red);
  background: var(--sp-red);
}

.form-check-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 71, 37, 0.2);
}

/* Custom Checkbox Input */
.form-check-input--checkbox {
  border-radius: var(--sp-radius-sm);
}

.form-check-input--checkbox:checked {
  background: var(--sp-red);
  border-color: var(--sp-red);
}

.form-check-input--checkbox:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
}

/* ================================================================
   MODULE CARDS (Step Showcase specific)
   ================================================================ */
.module-card {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: visible;
}

.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: transparent;
  border-bottom: 1px solid var(--sp-blue-100);
}

.module-card-body {
  padding: 1.5rem;
  overflow: visible;
}

/* ================================================================
   BADGES (Metronic Style)
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--sp-radius-sm);
}

/* Solid Badges */
.badge-primary { background: var(--sp-red); color: white; }
.badge-secondary { background: var(--sp-blue-700); color: white; }
.badge-success { background: #10b981; color: white; }
.badge-warning { background: #f59e0b; color: white; }
.badge-danger { background: #ef4444; color: white; }

/* Light Badges (Recommended for Status) */
.badge-light-primary { background: #fef2f2; color: var(--sp-red); }
.badge-light-secondary { background: var(--sp-blue-100); color: var(--sp-blue-700); }
.badge-light-success { background: #d1fae5; color: #059669; }
.badge-light-warning { background: #fef3c7; color: #d97706; }
.badge-light-danger { background: #fee2e2; color: #dc2626; }
.badge-light-info { background: var(--sp-blue-100); color: var(--sp-blue-600); }

/* Module type badges */
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--sp-radius-sm);
}

.module-badge-ai {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.module-badge-input {
  background: var(--sp-blue-100);
  color: var(--sp-blue-700);
}

.module-badge-visual {
  background: #d1fae5;
  color: #059669;
}

.module-badge-media {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #831843;
}

/* ================================================================
   ALERTS (Metronic Style)
   ================================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--sp-radius-md);
}

.alert__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.alert__text {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-info {
  background: var(--sp-blue-100);
  color: var(--sp-blue-800);
}

/* ================================================================
   LIST HEADING (Multi-level Content Listing)
   Dark gradient header with white text - matching original
   ================================================================ */
.list-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--sp-gradient-secondary);
  color: white;
  border-radius: var(--sp-radius-md);
  margin-bottom: 12px;
}

.list-heading__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--sp-radius-sm);
  flex-shrink: 0;
}

.list-heading__icon svg {
  width: 18px;
  height: 18px;
}

.list-heading__content {
  flex: 1;
  min-width: 0;
}

.list-heading__title {
  font-family: 'Stag', 'Stag Sans', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: white;
  margin: 0;
}

.list-heading__subtitle {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0 0;
}

.list-heading__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--sp-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.list-heading__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-heading__action {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--sp-radius-sm);
  color: white;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.list-heading__action:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* List Heading Items */
.list-heading-group {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.list-heading-items {
  border-top: 1px solid var(--sp-blue-100);
}

.list-heading-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sp-blue-100);
  transition: background-color 0.15s ease;
}

.list-heading-item:last-child {
  border-bottom: none;
}

.list-heading-item:hover {
  background: var(--sp-blue-50);
}

.list-heading-item__number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-blue-700);
  flex-shrink: 0;
}

.list-heading-item__content {
  flex: 1;
  min-width: 0;
}

.list-heading-item__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-800);
  margin: 0;
}

.list-heading-item__meta {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
  margin: 2px 0 0 0;
}

.list-heading-item__status {
  flex-shrink: 0;
}

/* Compact List Heading Variant */
.list-heading--compact {
  padding: 12px 16px;
}

.list-heading--compact .list-heading__title {
  font-size: 0.9375rem;
}

/* Light variant for secondary headings */
.list-heading--light {
  background: white;
  color: var(--sp-blue-800);
  border: 1px solid var(--sp-blue-100);
}

.list-heading--light .list-heading__title {
  color: var(--sp-blue-800);
}

.list-heading--light .list-heading__subtitle {
  color: var(--sp-blue-600);
}

.list-heading--light .list-heading__icon {
  background: var(--sp-blue-200);
}

.list-heading--light .list-heading__badge {
  background: var(--sp-blue-200);
  color: var(--sp-blue-800);
}

/* ================================================================
   REFLECTION MODULE - Uses Sparkus brand colors (bluish bg)
   ================================================================ */
.reflection-card {
  background: linear-gradient(135deg, var(--sp-blue-50) 0%, #f0f6fc 100%);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--sp-shadow-card);
  border: none;
}

.reflection-card .form-control,
.reflection-card textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sp-blue-200);
  border-radius: 0;
  padding: 8px 0;
  resize: none;
}

.reflection-card .form-control:focus,
.reflection-card textarea:focus {
  outline: none;
  border-bottom-color: var(--sp-red);
  box-shadow: none;
}

.reflection-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-md);
  color: var(--sp-blue-600);
}

/* ================================================================
   AI MODULE - Uses Sparkus brand colors (white/light bg)
   ================================================================ */
.ai-card {
  background: var(--sp-white);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--sp-shadow-card);
  border: 1px solid var(--sp-blue-100);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(61, 111, 148, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ai-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-md);
  color: white;
}

/* ================================================================
   COACH/MENTOR CARD - Light gradient header
   ================================================================ */
.coach-card {
  background: var(--sp-card-bg);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
  transition: all 0.15s ease;
}

.coach-card:hover {
  box-shadow: var(--sp-shadow-md);
  transform: translateY(-2px);
}

.coach-card__header {
  padding: 20px;
  text-align: center;
  background: var(--sp-gradient-light);
}

.coach-card__avatar {
  margin-bottom: 16px;
}

.coach-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 4px;
}

.coach-card__specialty {
  font-size: 0.875rem;
  color: var(--sp-blue-500);
  margin: 0;
}

.coach-card__body {
  padding: 20px;
}

.coach-card__bio {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  line-height: 1.6;
  margin: 0 0 16px;
}

.coach-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-blue-100);
}

.coach-card__stat {
  text-align: center;
  flex: 1;
}

.coach-card__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-blue-900);
}

.coach-card__stat-label {
  font-size: 0.75rem;
  color: var(--sp-blue-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coach-card__footer {
  padding: 16px 20px;
  background: var(--sp-blue-50);
  display: flex;
  gap: 12px;
}

/* ================================================================
   QUOTE BLOCK
   ================================================================ */
.quote-block {
  position: relative;
  padding: 1.5rem;
  padding-left: 4rem;
  background: var(--sp-blue-50);
  border-radius: var(--sp-radius-lg);
  border-left: 4px solid var(--sp-blue-500);
}

.quote-block-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  color: var(--sp-blue-600);
}

/* ================================================================
   CARRIED CONTENT (Red left border, light background)
   ================================================================ */
.carried-content {
  border-left: 4px solid var(--sp-red);
  padding-left: 1.25rem;
}

.carried-content-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-700);
  margin-bottom: 0.5rem;
}

.carried-content-header svg {
  color: var(--sp-red);
  stroke: var(--sp-red);
}

.carried-content-text {
  color: var(--sp-blue-600);
  font-style: italic;
  margin: 0;
}

/* ================================================================
   EXTERNAL LINK CARD
   ================================================================ */
.external-link-card {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  box-shadow: var(--sp-shadow-card);
  text-decoration: none;
  transition: all 0.15s ease;
}

.external-link-card:hover {
  box-shadow: var(--sp-shadow-md);
  transform: translateY(-2px);
}

.external-link-card-image {
  width: 100px;
  background: var(--sp-module-link-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.external-link-card-content {
  flex: 1;
  padding: 1rem;
}

/* ================================================================
   AUDIO PLAYER
   ================================================================ */
.audio-player {
  background: var(--sp-module-audio-bg);
  border-radius: var(--sp-radius-lg);
  padding: 1rem 1.25rem;
}

.audio-player-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--sp-radius-full);
  color: var(--sp-module-audio-text);
  box-shadow: var(--sp-shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.audio-player-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--sp-shadow-md);
}

/* ================================================================
   VIDEO PLAYER
   ================================================================ */
.video-player {
  background: var(--sp-module-video-bg);
  border-radius: var(--sp-radius-lg);
  overflow: hidden;
  position: relative;
}

.video-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.video-player-btn {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--sp-radius-full);
  color: var(--sp-blue-800);
  box-shadow: var(--sp-shadow-lg);
  cursor: pointer;
  transition: all 0.15s ease;
}

.video-player-btn:hover {
  transform: scale(1.1);
}

/* ================================================================
   CHECKBOX AGREEMENT
   ================================================================ */
.checkbox-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--sp-blue-50);
  border: 2px solid var(--sp-blue-200);
  border-radius: var(--sp-radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkbox-agreement:hover {
  border-color: var(--sp-blue-300);
}

.checkbox-agreement.checked {
  background: white;
  border-color: var(--sp-success);
}

.checkbox-agreement-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--sp-blue-300);
  border-radius: var(--sp-radius-sm);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.checkbox-agreement.checked .checkbox-agreement-box {
  background: var(--sp-success);
  border-color: var(--sp-success);
  color: white;
}

/* ================================================================
   TREE MAP
   ================================================================ */
.tree-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--sp-blue-50);
  border-radius: var(--sp-radius-md);
  margin-bottom: 0.5rem;
}

.tree-node-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-200);
  border-radius: var(--sp-radius-sm);
  color: var(--sp-blue-700);
  flex-shrink: 0;
}

.tree-node-root {
  background: var(--sp-gradient-secondary);
  color: white;
}

.tree-node-root .tree-node-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tree-children {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sp-blue-200);
}

/* ================================================================
   GOAL WIZARD
   ================================================================ */
.goal-wizard {
  background: var(--sp-module-goal-bg);
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem;
}

.goal-wizard-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.goal-wizard-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--sp-radius-md);
  color: var(--sp-module-goal-text);
}

/* ================================================================
   CELEBRATION ANIMATIONS
   ================================================================ */
@keyframes celebration-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes celebration-confetti {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-100px) rotate(720deg); }
}

.celebration-trigger:hover {
  animation: celebration-bounce 0.3s ease;
}

/* ================================================================
   PROGRESS COMPONENTS
   ================================================================ */
.progress-bar-sp {
  height: 8px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  overflow: hidden;
}

.progress-bar-sp-fill {
  height: 100%;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-full);
  transition: width 0.3s ease;
}

/* ================================================================
   VISION BOARD
   ================================================================ */
.vision-board-slot {
  aspect-ratio: 1;
  background: var(--sp-blue-50);
  border: 2px dashed var(--sp-blue-200);
  border-radius: var(--sp-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vision-board-slot:hover {
  background: var(--sp-blue-100);
  border-color: var(--sp-blue-300);
}

.vision-board-slot-filled {
  border-style: solid;
  border-color: var(--sp-blue-300);
}

/* ================================================================
   BUTTONS (Metronic Tailwind Style)
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 22, 36, 0.15);
  filter: brightness(1.05);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.25);
}

/* Primary Button */
.btn-primary {
  background: var(--sp-gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--sp-shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* Secondary Button */
.btn-secondary {
  background: var(--sp-gradient-secondary);
  color: white;
  border: none;
}

.btn-secondary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: var(--sp-shadow-md);
}

/* Light Button */
.btn-light {
  background: var(--sp-blue-50);
  color: var(--sp-blue-700);
  border: 1px solid var(--sp-blue-100);
}

.btn-light:hover {
  background: var(--sp-blue-100);
  border-color: var(--sp-blue-200);
}

/* Light Primary */
.btn-light-primary {
  background: #fef2f2;
  color: var(--sp-red);
  border: 1px solid transparent;
}

.btn-light-primary:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Success Button */
.btn-success {
  background: #10b981;
  color: white;
  border: none;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Danger Button */
.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Warning Button */
.btn-warning {
  background: #f59e0b;
  color: white;
  border: none;
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Ghost/Link Button */
.btn-link {
  background: transparent;
  color: var(--sp-blue-600);
  border: none;
  padding: 8px 12px;
}

.btn-link:hover {
  color: var(--sp-red);
  background: var(--sp-blue-50);
}

/* Icon Only Button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 48px;
  height: 48px;
}

/* Button Sizes - Cascading padding */
.btn-xs {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 1.125rem;
}

/* ================================================================
   CARDS (Metronic Tailwind Style)
   ================================================================ */
.card {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: transparent;
  border-bottom: 1px solid var(--sp-blue-100);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-blue-900);
  margin: 0;
}

.card-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  background: var(--sp-blue-50);
  border-top: 1px solid var(--sp-blue-100);
}

/* Card Flush (no header border) */
.card-flush .card-header {
  border-bottom: none;
}

/* Card with stretch */
.card-stretch {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-stretch .card-body {
  flex: 1;
}

/* ================================================================
   TABLES (Metronic Tailwind Style)
   ================================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--sp-blue-500);
  background: var(--sp-blue-50);
  text-align: left;
  border-bottom: 1px solid var(--sp-blue-100);
}

.table td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--sp-blue-100);
}

.table tbody tr:hover {
  background: var(--sp-blue-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Striped */
.table-striped tbody tr:nth-child(odd) {
  background: var(--sp-blue-50);
}

/* Table Bordered */
.table-bordered {
  border: 1px solid var(--sp-blue-100);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--sp-blue-100);
}

/* ================================================================
   TABS (Metronic Tailwind Style)
   ================================================================ */
.nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--sp-blue-100);
  gap: 4px;
}

.nav-tab {
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.nav-tab:hover {
  color: var(--sp-blue-800);
  background: var(--sp-blue-50);
}

.nav-tab.active {
  color: var(--sp-red);
  border-bottom-color: var(--sp-red);
}

/* Pill Tabs */
.nav-tabs-pills {
  display: flex;
  gap: 8px;
  border-bottom: none;
}

.nav-tab-pill {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  background: var(--sp-blue-50);
  border: none;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-tab-pill:hover {
  background: var(--sp-blue-100);
  color: var(--sp-blue-800);
}

.nav-tab-pill.active {
  background: var(--sp-gradient-secondary);
  color: white;
}

/* ================================================================
   DROPDOWN / MENU (Metronic Tailwind Style)
   ================================================================ */
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  min-width: 200px;
  padding: 0;
  background: var(--sp-white);
  border: 1px solid var(--sp-blue-100);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-lg);
  overflow: hidden;
}

/* User Menu Popup with header */
#user-menu-dropdown {
  padding: 0;
  overflow: hidden;
}

#user-menu-dropdown .dropdown-item {
  margin: 0;
}

/* Legacy dropdown with padding (non-header style) */
.dropdown-menu--padded {
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--sp-blue-700);
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--sp-blue-50);
  color: var(--sp-blue-900);
}

.dropdown-item.active {
  background: var(--sp-blue-100);
  color: var(--sp-blue-900);
}

.dropdown-divider {
  height: 1px;
  margin: 8px 0;
  background: var(--sp-blue-100);
}

.dropdown-header {
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Menu show/hide states */
.menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Popover show/hide states */
.popover {
  opacity: 0;
  transform: translateY(-10px) translateX(-50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.popover.show {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
  pointer-events: auto;
}

.popover.hidden {
  display: none !important;
  letter-spacing: 0.05em;
  color: var(--sp-blue-500);
}

/* ================================================================
   TOOLTIP (Metronic Tailwind Style)
   ================================================================ */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  z-index: 1050;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: white;
  background: var(--sp-blue-800);
  border-radius: var(--sp-radius-md);
  white-space: nowrap;
  box-shadow: var(--sp-shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  border-width: 5px;
  border-style: solid;
}

/* Tooltip Top */
.tooltip-top .tooltip-content {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.tooltip-top .tooltip-content::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--sp-blue-800) transparent transparent transparent;
}

/* ================================================================
   INPUT GROUPS (Metronic Tailwind Style)
   ================================================================ */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control-sp {
  border-radius: 0;
}

.input-group .form-control-sp:first-child {
  border-radius: var(--sp-radius-md) 0 0 var(--sp-radius-md);
}

.input-group .form-control-sp:last-child {
  border-radius: 0 var(--sp-radius-md) var(--sp-radius-md) 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  background: var(--sp-blue-100);
  border: 1px solid var(--sp-blue-200);
}

.input-group-text:first-child {
  border-radius: var(--sp-radius-md) 0 0 var(--sp-radius-md);
  border-right: none;
}

.input-group-text:last-child {
  border-radius: 0 var(--sp-radius-md) var(--sp-radius-md) 0;
  border-left: none;
}

/* ================================================================
   AVATAR GROUP / STACKED
   ================================================================ */
.avatar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 12px;
}

.avatar-group .symbol {
  margin-left: -12px;
  border: 2px solid white;
  transition: all 0.15s ease;
}

.avatar-group .symbol:hover {
  z-index: 10;
  transform: translateY(-2px);
}

/* ================================================================
   TIMELINE (Metronic Tailwind Style)
   ================================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sp-blue-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -32px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--sp-blue-200);
  border-radius: var(--sp-radius-full);
  z-index: 1;
}

.timeline-icon.success {
  background: #d1fae5;
  border-color: #10b981;
  color: #059669;
}

.timeline-icon.warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #d97706;
}

.timeline-icon.danger {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

.timeline-content {
  padding: 12px 16px;
  background: white;
  border-radius: var(--sp-radius-md);
  box-shadow: var(--sp-shadow-xs);
  border: 1px solid var(--sp-blue-100);
}

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 4px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  margin: 0;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--sp-blue-400);
  margin-top: 8px;
}

/* ================================================================
   NOTIFICATION / TOAST (Metronic Tailwind Style)
   ================================================================ */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 360px;
  max-width: 480px;
  padding: 20px;
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: 0 10px 40px rgba(4, 22, 36, 0.15), 0 2px 8px rgba(4, 22, 36, 0.08);
  border-left: 4px solid var(--sp-blue-500);
  animation: toast-slide-in 0.3s ease-out;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success { border-left-color: #10b981; }
.toast-warning { border-left-color: #f59e0b; }
.toast-danger { border-left-color: #ef4444; }
.toast-info { border-left-color: var(--sp-blue-500); }

.toast-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--sp-radius-full);
  background: var(--sp-blue-100);
  color: var(--sp-blue-600);
}

.toast-success .toast-icon {
  background: #d1fae5;
  color: #059669;
}

.toast-warning .toast-icon {
  background: #fef3c7;
  color: #d97706;
}

.toast-danger .toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.toast-info .toast-icon {
  background: var(--sp-blue-100);
  color: var(--sp-blue-600);
}

.toast-content {
  flex: 1;
  padding-top: 2px;
}

.toast-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 4px;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  margin: 0;
  line-height: 1.5;
}

.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.toast-action {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toast-action-primary {
  background: var(--sp-gradient-secondary);
  color: white;
  border: none;
}

.toast-action-primary:hover {
  filter: brightness(1.1);
}

.toast-action-secondary {
  background: transparent;
  color: var(--sp-blue-600);
  border: 1px solid var(--sp-blue-200);
}

.toast-action-secondary:hover {
  background: var(--sp-blue-50);
}

.toast-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-blue-400);
  background: transparent;
  border: none;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  margin: -4px -4px 0 0;
}

.toast-close:hover {
  background: var(--sp-blue-100);
  color: var(--sp-blue-700);
}

/* Toast with Progress */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sp-blue-100);
  border-radius: 0 0 var(--sp-radius-lg) var(--sp-radius-lg);
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  background: var(--sp-gradient-secondary);
  animation: toast-progress 5s linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ================================================================
   TOGGLE / SWITCH (Metronic Tailwind Style)
   ================================================================ */
.form-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.form-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--sp-blue-200);
  border-radius: var(--sp-radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-switch-label::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: var(--sp-radius-full);
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.2);
  transition: all 0.2s ease;
}

.form-switch-input:checked + .form-switch-label {
  background: var(--sp-gradient-secondary);
}

.form-switch-input:checked + .form-switch-label::after {
  transform: translateX(20px);
}

.form-switch-input:focus + .form-switch-label {
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.25);
}

.form-switch-input:disabled + .form-switch-label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Switch with Text */
.form-switch-text {
  margin-left: 12px;
  font-size: 0.9375rem;
  color: var(--sp-blue-700);
}

/* Switch Sizes */
.form-switch-sm .form-switch-label {
  width: 36px;
  height: 20px;
}

.form-switch-sm .form-switch-label::after {
  width: 16px;
  height: 16px;
}

.form-switch-sm .form-switch-input:checked + .form-switch-label::after {
  transform: translateX(16px);
}

.form-switch-lg .form-switch-label {
  width: 56px;
  height: 30px;
}

.form-switch-lg .form-switch-label::after {
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
}

.form-switch-lg .form-switch-input:checked + .form-switch-label::after {
  transform: translateX(26px);
}

/* Switch Color Variants */
.form-switch-primary .form-switch-input:checked + .form-switch-label {
  background: var(--sp-gradient-primary);
}

.form-switch-success .form-switch-input:checked + .form-switch-label {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.form-switch-warning .form-switch-input:checked + .form-switch-label {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.form-switch-danger .form-switch-input:checked + .form-switch-label {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Switch with Icons */
.form-switch-icon .form-switch-label::before {
  content: '✕';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.2s ease;
}

.form-switch-icon .form-switch-input:checked + .form-switch-label::before {
  content: '✓';
  right: auto;
  left: 6px;
  color: white;
}

/* Toggle Button Group */
.toggle-group {
  display: inline-flex;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-md);
  padding: 4px;
  gap: 4px;
}

.toggle-group-item {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  background: transparent;
  border: none;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-group-item:hover {
  color: var(--sp-blue-800);
}

.toggle-group-item.active {
  background: white;
  color: var(--sp-blue-900);
  box-shadow: var(--sp-shadow-sm);
}

/* Checkbox Toggle Card */
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--sp-blue-100);
  border-radius: var(--sp-radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
}

.toggle-card:hover {
  border-color: var(--sp-blue-200);
  background: var(--sp-blue-50);
}

.toggle-card.active {
  border-color: var(--sp-blue-400);
  background: white;
}

.toggle-card-content {
  flex: 1;
}

.toggle-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 4px;
}

.toggle-card-desc {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
  margin: 0;
}

/* ================================================================
   PAGINATION (Metronic Tailwind Style)
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-item {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  background: transparent;
  border: 1px solid var(--sp-blue-200);
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-item:hover {
  background: var(--sp-blue-50);
  border-color: var(--sp-blue-300);
  color: var(--sp-blue-800);
}

.pagination-item.active {
  background: var(--sp-gradient-secondary);
  border-color: transparent;
  color: white;
}

.pagination-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================================================================
   MODAL (Metronic Tailwind Style)
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 22, 36, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: var(--sp-radius-xl);
  box-shadow: 0 25px 50px rgba(4, 22, 36, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sp-blue-100);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-blue-500);
  background: var(--sp-blue-50);
  border: none;
  border-radius: var(--sp-radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--sp-blue-100);
  color: var(--sp-blue-700);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: var(--sp-blue-50);
  border-top: 1px solid var(--sp-blue-100);
}

/* ================================================================
   UTILITY CLASSES (Metronic Style)
   ================================================================ */
/* Text utilities */
.text-primary { color: var(--sp-red); }
.text-secondary { color: var(--sp-blue-700); }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-muted { color: var(--sp-blue-400); }
.text-gray-600 { color: var(--sp-blue-600); }
.text-gray-700 { color: var(--sp-blue-700); }
.text-gray-800 { color: var(--sp-blue-800); }
.text-gray-900 { color: var(--sp-blue-900); }

/* Background utilities */
.bg-primary { background: var(--sp-red); }
.bg-secondary { background: var(--sp-blue-700); }
.bg-success { background: #10b981; }
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }
.bg-light { background: var(--sp-blue-50); }
.bg-white { background: white; }

/* Hover effects */
.hover-lift {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-lg);
}

.hover-scale {
  transition: transform 0.15s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* Separator */
.separator {
  height: 1px;
  background: var(--sp-blue-100);
}

.separator-dashed {
  border-top: 1px dashed var(--sp-blue-200);
  height: 0;
}

/* ================================================================
   SCROLL INDICATOR
   ================================================================ */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sp-blue-100);
  z-index: 1100;
}

.scroll-indicator-fill {
  height: 100%;
  background: var(--sp-gradient-primary);
  width: 0;
  transition: width 0.1s ease;
}

/* ================================================================
   SKELETON LOADING (Enhanced Metronic Style)
   ================================================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--sp-blue-100) 0%,
    var(--sp-blue-50) 20%,
    var(--sp-blue-100) 40%,
    var(--sp-blue-100) 100%
  );
  background-size: 400% 100%;
  animation: skeleton-wave 1.8s ease-in-out infinite;
  border-radius: var(--sp-radius-sm);
}

@keyframes skeleton-wave {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Skeleton Variants */
.skeleton-text {
  height: 14px;
  margin-bottom: 10px;
  border-radius: var(--sp-radius-sm);
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 80%;
}

.skeleton-heading {
  height: 28px;
  width: 50%;
  margin-bottom: 16px;
  border-radius: var(--sp-radius-sm);
}

.skeleton-heading-lg {
  height: 36px;
  width: 40%;
  margin-bottom: 20px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--sp-radius-full);
  flex-shrink: 0;
}

.skeleton-avatar-sm {
  width: 32px;
  height: 32px;
}

.skeleton-avatar-lg {
  width: 64px;
  height: 64px;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--sp-radius-md);
}

.skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: var(--sp-radius-md);
}

.skeleton-card {
  background: white;
  border-radius: var(--sp-radius-lg);
  padding: 20px;
  box-shadow: var(--sp-shadow-card);
}

.skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.skeleton-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Skeleton Pulse Variant */
.skeleton-pulse {
  animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: var(--sp-blue-100);
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ================================================================
   SEARCH INPUT (Metronic Style)
   ================================================================ */
.search-input {
  position: relative;
  width: 100%;
}

.search-input-field {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 0.9375rem;
  color: var(--sp-text-primary);
  background: var(--sp-blue-50);
  border: 1px solid transparent;
  border-radius: var(--sp-radius-md);
  transition: all 0.15s ease;
}

.search-input-field:hover {
  background: var(--sp-blue-100);
}

.search-input-field:focus {
  outline: none;
  background: white;
  border-color: var(--sp-blue-300);
  box-shadow: 0 0 0 3px rgba(61, 111, 148, 0.15);
}

.search-input-field::placeholder {
  color: var(--sp-blue-400);
}

.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--sp-blue-400);
  pointer-events: none;
  z-index: 1;
}

.search-input-field:focus + .search-input-icon,
.search-input:focus-within .search-input-icon {
  color: var(--sp-blue-600);
}

.search-input-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-blue-400);
  background: transparent;
  border: none;
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}

.search-input-field:not(:placeholder-shown) ~ .search-input-clear {
  opacity: 1;
}

.search-input-clear:hover {
  background: var(--sp-blue-100);
  color: var(--sp-blue-700);
}

/* Search with Dropdown */
.search-input-lg .search-input-field {
  padding: 16px 20px 16px 52px;
  font-size: 1rem;
}

.search-input-lg .search-input-icon {
  left: 18px;
  width: 22px;
  height: 22px;
}

/* ================================================================
   OUTLINE BUTTONS (Fixed Hover States)
   ================================================================ */
.btn-outline-primary {
  background: transparent;
  color: var(--sp-red);
  border: 2px solid var(--sp-red);
}

.btn-outline-primary:hover {
  background: var(--sp-red);
  color: white;
  border-color: var(--sp-red);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--sp-blue-600);
  border: 2px solid var(--sp-blue-600);
}

.btn-outline-secondary:hover {
  background: var(--sp-blue-600);
  color: white;
  border-color: var(--sp-blue-600);
}

.btn-outline-success {
  background: transparent;
  color: #059669;
  border: 2px solid #10b981;
}

.btn-outline-success:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.btn-outline-warning {
  background: transparent;
  color: #d97706;
  border: 2px solid #f59e0b;
}

.btn-outline-warning:hover {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
}

.btn-outline-danger {
  background: transparent;
  color: #dc2626;
  border: 2px solid #ef4444;
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Light outline variant - doesn't turn white on hover */
.btn-outline-light-primary {
  background: transparent;
  color: var(--sp-red);
  border: 2px solid var(--sp-red);
}

.btn-outline-light-primary:hover {
  background: rgba(217, 43, 49, 0.1);
  color: var(--sp-red);
}

.btn-outline-light-secondary {
  background: transparent;
  color: var(--sp-blue-600);
  border: 2px solid var(--sp-blue-300);
}

.btn-outline-light-secondary:hover {
  background: var(--sp-blue-50);
  border-color: var(--sp-blue-400);
  color: var(--sp-blue-700);
}

/* ================================================================
   RIBBONS (Enhanced Metronic Style)
   ================================================================ */
.ribbon {
  position: absolute;
  padding: 6px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  text-align: center;
  z-index: 10;
}

/* Parent container must clip ribbons */
.ribbon-container,
[class*="module-card"].relative {
  overflow: hidden !important;
}

/* Corner Ribbon - Right */
.ribbon-corner {
  width: 120px;
  top: 18px;
  right: -40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Corner Ribbon - Left */
.ribbon-corner-left {
  width: 150px;
  top: 24px;
  left: -40px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Edge Ribbon */
.ribbon-edge {
  padding: 6px 16px;
  top: 16px;
  right: 0;
  border-radius: var(--sp-radius-sm) 0 0 var(--sp-radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ribbon-edge::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 0;
  border-color: transparent;
}

/* Vertical Ribbon */
.ribbon-vertical {
  width: 32px;
  padding: 12px 0 8px;
  top: 0;
  right: 20px;
  border-radius: 0 0 var(--sp-radius-sm) var(--sp-radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Ribbon Colors */
.ribbon-primary {
  background: var(--sp-gradient-primary);
}

.ribbon-secondary {
  background: var(--sp-gradient-secondary);
}

.ribbon-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ribbon-success.ribbon-edge::after {
  border-right-color: #047857;
}

.ribbon-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ribbon-warning.ribbon-edge::after {
  border-right-color: #b45309;
}

.ribbon-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ribbon-danger.ribbon-edge::after {
  border-right-color: #b91c1c;
}

.ribbon-info {
  background: linear-gradient(135deg, var(--sp-blue-500) 0%, var(--sp-blue-600) 100%);
}

.ribbon-info.ribbon-edge::after {
  border-right-color: var(--sp-blue-700);
}

/* Ribbon with Icon */
.ribbon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ================================================================
   POPOVERS (Metronic Style - Requires JS for functionality)
   ================================================================ */
.popover {
  position: absolute;
  z-index: 1060;
  max-width: 320px;
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: 0 10px 40px rgba(4, 22, 36, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.popover.show {
  opacity: 1;
  visibility: visible;
}

.popover-header {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  background: var(--sp-blue-50);
  border-bottom: 1px solid var(--sp-blue-100);
  border-radius: var(--sp-radius-lg) var(--sp-radius-lg) 0 0;
}

.popover-body {
  padding: 16px;
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  line-height: 1.6;
}

.popover-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(4, 22, 36, 0.05);
}

/* Popover Positions */
.popover-top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
}

.popover-top .popover-arrow {
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 4px rgba(4, 22, 36, 0.05);
}

.popover-bottom {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
}

.popover-bottom .popover-arrow {
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

/* Popover Trigger Button */
.popover-trigger {
  position: relative;
  cursor: pointer;
}

/* Popover with Actions */
.popover-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--sp-blue-100);
}

/* ================================================================
   SPARKUS DASHBOARD CARDS (Enhanced)
   ================================================================ */
.dashboard-card {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: var(--sp-shadow-md);
  transform: translateY(-2px);
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.dashboard-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-lg);
  color: var(--sp-blue-600);
}

.dashboard-card-icon svg {
  width: 28px;
  height: 28px;
}

.dashboard-card-icon.primary {
  background: linear-gradient(135deg, rgba(217, 43, 49, 0.1) 0%, rgba(245, 71, 37, 0.1) 100%);
  color: var(--sp-red);
}

.dashboard-card-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.dashboard-card-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.dashboard-card-badge {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--sp-radius-sm);
}

.dashboard-card-body {
  padding: 20px 24px 24px;
}

.dashboard-card-value {
  font-family: 'Stag', 'Stag Sans', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sp-blue-900);
  line-height: 1.1;
  margin-bottom: 8px;
}

.dashboard-card-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  margin-bottom: 16px;
}

.dashboard-card-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.dashboard-card-trend.up {
  color: #059669;
}

.dashboard-card-trend.down {
  color: #dc2626;
}

.dashboard-card-trend-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius-sm);
}

.dashboard-card-trend.up .dashboard-card-trend-icon {
  background: rgba(16, 185, 129, 0.1);
}

.dashboard-card-trend.down .dashboard-card-trend-icon {
  background: rgba(239, 68, 68, 0.1);
}

.dashboard-card-footer {
  padding: 16px 24px;
  background: var(--sp-blue-50);
  border-top: 1px solid var(--sp-blue-100);
}

.dashboard-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dashboard-card-link:hover {
  color: var(--sp-red);
}

/* Dashboard Card Variants */
.dashboard-card-compact .dashboard-card-header {
  padding: 20px 20px 0;
}

.dashboard-card-compact .dashboard-card-body {
  padding: 16px 20px 20px;
}

.dashboard-card-compact .dashboard-card-value {
  font-size: 2rem;
}

/* Dashboard Card with Chart */
.dashboard-card-chart {
  height: 80px;
  margin-top: 16px;
}

/* Dashboard Progress Card */
.dashboard-progress {
  margin-top: 20px;
}

.dashboard-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-progress-label {
  font-size: 0.8125rem;
  color: var(--sp-blue-600);
}

.dashboard-progress-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-blue-800);
}

.dashboard-progress-bar {
  height: 6px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  overflow: hidden;
}

.dashboard-progress-fill {
  height: 100%;
  background: var(--sp-gradient-secondary);
  border-radius: var(--sp-radius-full);
  transition: width 0.3s ease;
}

/* ================================================================
   SYMBOL (Avatar System) - Original Metronic Pattern
   ================================================================ */
.symbol {
  display: inline-flex;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--sp-radius-md);
}

.symbol-circle {
  border-radius: var(--sp-radius-full);
}

.symbol-circle .symbol-label,
.symbol-circle > img {
  border-radius: var(--sp-radius-full);
}

.symbol-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
  background: var(--sp-gradient-secondary);
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  width: 100%;
  height: 100%;
}

/* Symbol Sizes */
.symbol-25px { width: 25px; height: 25px; }
.symbol-25px .symbol-label { font-size: 10px; }

.symbol-30px { width: 30px; height: 30px; }
.symbol-30px .symbol-label { font-size: 11px; }

.symbol-35px { width: 35px; height: 35px; }
.symbol-35px .symbol-label { font-size: 12px; }

.symbol-40px { width: 40px; height: 40px; }
.symbol-40px .symbol-label { font-size: 14px; }

.symbol-45px { width: 45px; height: 45px; }
.symbol-45px .symbol-label { font-size: 15px; }

.symbol-50px { width: 50px; height: 50px; }
.symbol-50px .symbol-label { font-size: 16px; }

.symbol-65px { width: 65px; height: 65px; }
.symbol-65px .symbol-label { font-size: 20px; }

.symbol-100px { width: 100px; height: 100px; }
.symbol-100px .symbol-label { font-size: 32px; }

/* Symbol Group (Stacked Avatars) */
.symbol-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 12px;
}

.symbol-group .symbol {
  position: relative;
  z-index: 0;
  margin-left: -12px;
  transition: all 0.15s ease;
  border: 2px solid white;
}

.symbol-group .symbol:hover {
  z-index: 1;
  transform: translateY(-2px);
}

/* Symbol with Online Indicator (Badge) */
.symbol .symbol-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--sp-radius-full);
  border: 2px solid white;
}

.symbol .symbol-badge.bg-success { background: var(--sp-success); }
.symbol .symbol-badge.bg-danger { background: var(--sp-danger); }
.symbol .symbol-badge.bg-warning { background: var(--sp-warning); }

/* ================================================================
   USER CHIP (Enhanced with Symbol Pattern)
   ================================================================ */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  border-left: 3px solid transparent;
}

.user-chip--mentor { border-left-color: var(--sp-blue-700); }
.user-chip--coach { border-left-color: var(--sp-red); }
.user-chip--support-giver { border-left-color: var(--sp-success); }
.user-chip--support-receiver { border-left-color: var(--sp-info); }

.user-chip__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-chip__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip__role {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
}

.user-chip--compact {
  padding: 8px 12px;
  gap: 8px;
}

.user-chip--compact .user-chip__name {
  font-size: 0.875rem;
}

/* ================================================================
   STAT CARDS (Dashboard Widgets) - Original Structure
   ================================================================ */
.stat-card {
  padding: 24px;
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
}

.stat-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-50);
  border-radius: var(--sp-radius-md);
  color: var(--sp-blue-600);
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--sp-radius-sm);
}

.stat-card__trend--up {
  color: var(--sp-success);
  background: var(--sp-success-light);
}

.stat-card__trend--down {
  color: var(--sp-danger);
  background: var(--sp-danger-light);
}

.stat-card__value {
  font-family: 'Stag', 'Stag Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-blue-900);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--sp-blue-500);
}

/* ================================================================
   STEP INDICATOR (Wizard) - Original Structure
   ================================================================ */
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 16px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--sp-blue-100);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-100);
  color: var(--sp-blue-500);
  font-weight: 600;
  border-radius: var(--sp-radius-full);
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.step.is-active .step__number {
  background: var(--sp-gradient-secondary);
  color: white;
}

.step.is-completed .step__number {
  background: var(--sp-success);
  color: white;
}

.step__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-500);
}

.step.is-active .step__label {
  color: var(--sp-blue-800);
}

/* ================================================================
   TIMELINE - Original Structure
   ================================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sp-blue-100);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__marker {
  position: absolute;
  left: -28px;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--sp-gradient-secondary);
  border: 3px solid white;
  border-radius: var(--sp-radius-full);
  box-shadow: var(--sp-shadow-sm);
}

.timeline-item__content {
  background: var(--sp-blue-50);
  padding: 16px;
  border-radius: var(--sp-radius-md);
}

.timeline-item__time {
  font-size: 0.75rem;
  color: var(--sp-blue-500);
  margin-bottom: 8px;
}

.timeline-item__title {
  font-weight: 500;
  color: var(--sp-blue-800);
  margin-bottom: 4px;
}

.timeline-item__text {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
}

/* ================================================================
   ASSESSMENT SLIDER (5-notch with square ticks) - Original
   ================================================================ */
.assessment-slider {
  width: 100%;
  padding: 16px 0;
}

.assessment-slider__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.assessment-slider__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sp-blue-900);
}

.assessment-slider__value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-700);
  background: var(--sp-blue-100);
  padding: 4px 12px;
  border-radius: var(--sp-radius-sm);
  min-width: 48px;
  text-align: center;
}

.assessment-slider__track {
  position: relative;
  height: 12px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
}

.assessment-slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--sp-gradient-primary);
  border-radius: var(--sp-radius-sm);
  transition: width 0.15s ease;
  pointer-events: none;
}

/* Ensure slider track background is visible behind fill */
.assessment-slider__track {
  background: var(--sp-blue-100);
}

.assessment-slider__ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  pointer-events: none;
}

.assessment-slider__tick {
  width: 8px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

.assessment-slider__tick--active {
  background: white;
}

.assessment-slider__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 4px;
}

.assessment-slider__label-item {
  font-size: 0.8125rem;
  color: var(--sp-blue-600);
  text-align: center;
  flex: 1;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--sp-radius-sm);
  transition: all 0.15s ease;
}

.assessment-slider__label-item:hover {
  background: var(--sp-blue-50);
  color: var(--sp-blue-900);
}

.assessment-slider__label-item--active {
  background: var(--sp-blue-100);
  color: var(--sp-blue-800);
  font-weight: 500;
}

/* Native range input for assessment slider */
.assessment-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
}

.assessment-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid var(--sp-blue-700);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: var(--sp-shadow-md);
  margin-top: -6px;
}

.assessment-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  border-color: var(--sp-red);
}

.assessment-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid var(--sp-blue-700);
  border-radius: var(--sp-radius-sm);
  cursor: grab;
  box-shadow: var(--sp-shadow-md);
}

/* Inline Assessment Slider (Compact) */
.assessment-slider-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 10rem;
  min-width: 8rem;
  max-width: 12rem;
}

.assessment-slider-inline__track {
  --thumb-width: 16px;
  --thumb-half: 8px;
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-sm);
  cursor: pointer;
  overflow: visible;
  margin: 0 var(--thumb-half);
}

.assessment-slider-inline__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--sp-gradient-primary);
  border-radius: var(--sp-radius-sm);
  transition: width 0.15s ease;
  pointer-events: none;
}

.assessment-slider-inline__value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sp-blue-700);
  background: var(--sp-blue-100);
  padding: 2px 8px;
  border-radius: var(--sp-radius-sm);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.assessment-slider-inline input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% + 16px);
  height: 8px;
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: -8px;
  margin: 0;
  z-index: 2;
}

.assessment-slider-inline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border: 2px solid var(--sp-blue-600);
  border-radius: 2px;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(4, 22, 36, 0.15);
  margin-top: -4px;
}

.assessment-slider-inline input[type="range"]::-webkit-slider-thumb:hover {
  border-color: var(--sp-red);
  transform: scale(1.1);
}

/* ================================================================
   EMPTY STATE - Original Structure
   ================================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 300px;
}

.empty-state__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-blue-50);
  border-radius: var(--sp-radius-full);
  margin-bottom: 24px;
  color: var(--sp-blue-400);
}

.empty-state__icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 8px;
}

.empty-state__text {
  font-size: 0.9375rem;
  color: var(--sp-blue-500);
  max-width: 380px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.empty-state--no-results .empty-state__icon {
  background: var(--sp-warning-light);
  color: var(--sp-warning);
}

.empty-state--error .empty-state__icon {
  background: var(--sp-danger-light);
  color: var(--sp-danger);
}

.empty-state--no-access .empty-state__icon {
  background: var(--sp-blue-100);
  color: var(--sp-blue-600);
}

/* ================================================================
   GETTING STARTED CHECKLIST - Original Structure
   ================================================================ */
.sp-getting-started {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}

.sp-getting-started__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sp-getting-started__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-getting-started__progress {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sp-success);
}

.sp-getting-started__progress-bar {
  height: 6px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.sp-getting-started__progress-fill {
  height: 100%;
  background: var(--sp-success);
  border-radius: var(--sp-radius-full);
  transition: width 0.25s ease;
}

.sp-getting-started__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-getting-started__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-blue-100);
}

.sp-getting-started__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sp-getting-started__checkbox {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius-full);
  flex-shrink: 0;
  font-size: 12px;
}

.sp-getting-started__checkbox--complete {
  background: var(--sp-success);
  color: white;
}

.sp-getting-started__checkbox--pending {
  background: var(--sp-blue-100);
  color: var(--sp-blue-400);
}

.sp-getting-started__item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-700);
  margin: 0;
}

.sp-getting-started__item-title--complete {
  color: var(--sp-blue-400);
  text-decoration: line-through;
}

.sp-getting-started__item-description {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
  margin: 4px 0 0;
}

/* ================================================================
   WHAT'S NEXT TIMELINE - Original Structure
   ================================================================ */
.sp-whats-next {
  margin-bottom: 24px;
}

.sp-whats-next__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sp-whats-next__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-whats-next__title-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-warning-light);
  color: var(--sp-warning);
  border-radius: var(--sp-radius-md);
}

.sp-whats-next__count {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
}

/* SP Timeline */
.sp-timeline {
  position: relative;
}

.sp-timeline__item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  position: relative;
}

.sp-timeline__item:last-child {
  padding-bottom: 0;
}

.sp-timeline__item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--sp-blue-100);
}

.sp-timeline__item:last-child::before {
  display: none;
}

.sp-timeline__dot {
  width: 24px;
  height: 24px;
  background: var(--sp-blue-100);
  border-radius: var(--sp-radius-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sp-timeline__dot--active {
  background: var(--sp-gradient-primary);
}

.sp-timeline__dot--active::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: var(--sp-radius-full);
}

.sp-timeline__dot--warning {
  background: var(--sp-warning);
}

.sp-timeline__dot--success {
  background: var(--sp-success);
}

.sp-timeline__link {
  flex: 1;
  text-decoration: none;
  display: block;
}

.sp-timeline__content {
  background: white;
  border-radius: var(--sp-radius-lg);
  padding: 16px;
  box-shadow: var(--sp-shadow-card);
  transition: all 0.15s ease;
}

.sp-timeline__link:hover .sp-timeline__content {
  box-shadow: var(--sp-shadow-md);
  transform: translateX(4px);
}

.sp-timeline__content--highlight {
  border-left: 3px solid var(--sp-red);
}

.sp-timeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sp-timeline__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
}

.sp-timeline__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--sp-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sp-timeline__badge--priority {
  background: var(--sp-danger-light);
  color: var(--sp-danger);
}

.sp-timeline__badge--new {
  background: var(--sp-warning-light);
  color: #b45309;
}

.sp-timeline__description {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  line-height: 1.5;
  margin: 0 0 12px;
}

.sp-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-timeline__meta-item {
  font-size: 0.8125rem;
  color: var(--sp-blue-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ================================================================
   SESSION CARD - Original Structure
   ================================================================ */
.session-card {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  padding: 20px;
  border-left: 4px solid var(--sp-blue-500);
}

.session-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.session-card__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-blue-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.session-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
}

.session-card__status {
  flex-shrink: 0;
}

.session-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.session-card__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--sp-blue-600);
}

.session-card__coach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-blue-100);
}

.session-card__coach-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sp-blue-700);
}

.session-card__coach-role {
  font-size: 0.75rem;
  color: var(--sp-blue-500);
}

/* Session Card Variants */
.session-card--upcoming {
  border-left-color: var(--sp-warning);
}

.session-card--completed {
  border-left-color: var(--sp-success);
}

.session-card--scheduled {
  border-left-color: var(--sp-blue-500);
}

/* ================================================================
   COACH/MENTOR CARD - Original Structure
   ================================================================ */
.coach-card {
  background: white;
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
  transition: all 0.15s ease;
}

.coach-card:hover {
  box-shadow: var(--sp-shadow-md);
  transform: translateY(-2px);
}

.coach-card__header {
  padding: 20px;
  text-align: center;
  background: var(--sp-gradient-light);
}

.coach-card__avatar {
  margin-bottom: 16px;
}

.coach-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0 0 4px;
}

.coach-card__specialty {
  font-size: 0.875rem;
  color: var(--sp-blue-500);
  margin: 0;
}

.coach-card__body {
  padding: 20px;
}

.coach-card__bio {
  font-size: 0.875rem;
  color: var(--sp-blue-600);
  line-height: 1.6;
  margin: 0 0 16px;
}

.coach-card__stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-blue-100);
}

.coach-card__stat {
  text-align: center;
  flex: 1;
}

.coach-card__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sp-blue-900);
}

.coach-card__stat-label {
  font-size: 0.75rem;
  color: var(--sp-blue-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coach-card__footer {
  padding: 16px 20px;
  background: var(--sp-blue-50);
  display: flex;
  gap: 12px;
}

/* ================================================================
   TABS - Original Structure
   ================================================================ */
.nav-tabs {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: 1px solid var(--sp-blue-100);
}

.nav-tabs .nav-item {
  margin-bottom: -1px;
}

.nav-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-blue-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-tabs .nav-link:hover {
  color: var(--sp-blue-800);
}

.nav-tabs .nav-link.active {
  color: var(--sp-red);
  border-bottom-color: var(--sp-red);
}

/* ================================================================
   RIBBON (Fixed overflow) - Original Structure
   ================================================================ */
.ribbon {
  position: absolute;
  z-index: 1;
}

.ribbon-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--sp-radius-sm);
}

.ribbon-label.bg-primary {
  background: var(--sp-gradient-primary);
  color: white;
}

.ribbon-label.bg-success {
  background: var(--sp-success);
  color: white;
}

.ribbon-label.bg-warning {
  background: var(--sp-warning);
  color: white;
}

.ribbon-label.bg-danger {
  background: var(--sp-danger);
  color: white;
}

.ribbon-label.bg-info {
  background: var(--sp-info);
  color: white;
}

.ribbon-top-right {
  top: 16px;
  right: 16px;
}

.ribbon-top-left {
  top: 16px;
  left: 16px;
}

/* Triangle Ribbon (fixed clipping) */
.ribbon-triangle {
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.ribbon-triangle.ribbon-top-right {
  top: 0;
  right: 0;
}

.ribbon-triangle .ribbon-inner {
  position: absolute;
  width: 120px;
  padding: 8px 0;
  background: var(--sp-gradient-primary);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(45deg);
  top: 18px;
  right: -32px;
}

/* Card with ribbon - proper overflow handling */
.card-ribbon {
  position: relative;
  overflow: hidden;
}

/* Corner Ribbon - properly clipped */
.ribbon-corner {
  width: 150px;
  top: 24px;
  right: -40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  text-align: center;
  z-index: 10;
}

.ribbon-corner-left {
  width: 150px;
  top: 24px;
  left: -40px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  text-align: center;
  z-index: 10;
}

/* Edge Ribbon */
.ribbon-edge {
  padding: 6px 16px;
  top: 16px;
  right: 0;
  border-radius: var(--sp-radius-sm) 0 0 var(--sp-radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  z-index: 10;
}

/* ================================================================
   MODAL DIALOG - Original Structure
   ================================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 22, 36, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1060;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: white;
  border-radius: var(--sp-radius-xl);
  box-shadow: var(--sp-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal--sm { max-width: 380px; }
.modal--lg { max-width: 700px; }
.modal--xl { max-width: 900px; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sp-blue-100);
}

.modal__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-blue-900);
  margin: 0;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--sp-radius-md);
  color: var(--sp-blue-400);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal__close:hover {
  background: var(--sp-blue-50);
  color: var(--sp-blue-900);
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--sp-blue-100);
  background: var(--sp-blue-50);
  border-radius: 0 0 var(--sp-radius-xl) var(--sp-radius-xl);
}

/* Confirmation Modal */
.modal--confirm .modal__body {
  text-align: center;
  padding: 32px 24px;
}

.modal--confirm .modal__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: var(--sp-radius-full);
}

.modal--confirm .modal__icon--warning {
  background: var(--sp-warning-light);
  color: var(--sp-warning);
}

.modal--confirm .modal__icon--danger {
  background: var(--sp-danger-light);
  color: var(--sp-danger);
}

.modal--confirm .modal__icon--success {
  background: var(--sp-success-light);
  color: var(--sp-success);
}

.modal--confirm .modal__text {
  font-size: 0.9375rem;
  color: var(--sp-blue-600);
  line-height: 1.6;
}

.modal--confirm .modal__footer {
  justify-content: center;
}

/* ================================================================
   DARK MODE
   ================================================================ */
.dark {
  --sp-body-bg: #0d1117;
  --sp-card-bg: #161b22;
  --sp-card-border: rgba(240, 246, 252, 0.1);
  --sp-white: #161b22;
  --sp-text-primary: #f0f6fc;
  --sp-text-secondary: #c9d1d9;
  --sp-text-muted: #6e7681;
  --sp-blue-50: #21262d;
  --sp-blue-100: #30363d;
  --sp-blue-200: #484f58;
}

/* ================================================================
   NAVIGATION DRAWER & MOBILE MENU
   ================================================================ */

/* Menu Drawer (Right Side) - Hidden by default */
#menu-drawer {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#menu-drawer.open {
  transform: translateX(0);
}

#menu-drawer-overlay {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#menu-drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Notification Drawer (Left Side) - Hidden by default */
#notification-drawer {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#notification-drawer.open {
  transform: translateX(0);
}

#notification-drawer-overlay {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#notification-drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* Notification Item */
.notification-item {
  transition: background-color 0.15s ease;
}

.notification-item:hover {
  background-color: var(--sp-blue-50);
}

/* Dark Mode Toggle Adjustments */
body.dark #sun-icon {
  display: none;
}

body.dark #moon-icon {
  display: block;
}

body:not(.dark) #sun-icon {
  display: block;
}

body:not(.dark) #moon-icon {
  display: none;
}

/* Dropdown Menu Active State */
.dropdown-item.active {
  background: var(--sp-blue-50);
  color: var(--sp-red);
}

.dropdown-item.active svg {
  stroke: var(--sp-red);
}

/* ================================================================
   MOBILE RESPONSIVE STYLES
   ================================================================ */

/* Mobile: < 640px */
@media (max-width: 639px) {
  /* Section headers stack on mobile */
  .section-header-sp {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-description-sp {
    font-size: 0.8125rem;
  }
  
  /* Section title smaller on mobile */
  .section-title-accent {
    font-size: 1.25rem;
  }
  
  /* Navigation horizontal scroll */
  .sp-navbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .sp-navbar ul {
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  /* Cards stack on mobile */
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Module cards full width */
  .module-card {
    margin-bottom: 16px;
  }
  
  /* Stat cards 2-column on mobile */
  .row.g-5 {
    gap: 12px !important;
  }
  
  .col-6.col-md-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }
  
  /* Buttons wrap better */
  .btn {
    padding: 10px 16px;
  }
  
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.9375rem;
  }
  
  /* Tables horizontal scroll */
  .table-responsive,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  /* Form elements full width */
  .form-control,
  .form-select,
  textarea {
    width: 100%;
    min-width: 0;
  }
  
  /* Cards header smaller padding */
  .card-header,
  .module-card-header {
    padding: 12px 16px;
  }
  
  .card-body,
  .module-card-body {
    padding: 16px;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  /* Coach cards stack */
  .coach-card {
    margin-bottom: 16px;
  }
  
  .coach-card__header {
    padding: 16px;
  }
  
  .coach-card__body {
    padding: 16px;
  }
  
  /* Session cards */
  .session-card {
    padding: 12px;
  }
  
  /* Timeline compact */
  .timeline-item {
    padding-left: 24px;
  }
  
  .timeline-item__marker {
    width: 28px;
    height: 28px;
  }
  
  /* Page title smaller */
  .page-title__text {
    font-size: 1.5rem;
  }
  
  .page-title__subtitle {
    font-size: 0.875rem;
  }
  
  /* Diamond smaller on mobile */
  .page-title--sparkus-signature::before,
  .page-title--sparkus-signature::after {
    width: 50px;
    height: 50px;
    right: 5%;
  }
  
  .page-title--sparkus-signature::before {
    top: -25px;
  }
  
  .page-title--sparkus-signature::after {
    bottom: -25px;
  }
  
  /* Assessment slider labels smaller */
  .assessment-slider__labels {
    font-size: 0.6875rem;
  }
  
  /* Ribbons smaller */
  .ribbon-corner {
    width: 90px;
    top: 12px;
  }
  
  .ribbon {
    font-size: 0.5625rem;
  }
  
  /* Toast smaller */
  .toast {
    width: calc(100% - 24px);
    margin: 12px;
  }
  
  /* Modal full width on mobile */
  .modal {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px;
  }
  
  /* Empty states smaller */
  .empty-state__icon {
    width: 56px;
    height: 56px;
  }
  
  .empty-state__title {
    font-size: 1rem;
  }
  
  /* Steps horizontal scroll */
  .steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .step {
    min-width: 80px;
    flex-shrink: 0;
  }
  
  /* Tabs horizontal scroll */
  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  
  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 10px 16px;
  }
  
  /* Getting started compact */
  .sp-getting-started__item {
    padding: 12px 0;
  }
  
  /* Dropdown menus full width */
  .dropdown-menu {
    width: 100%;
    min-width: auto;
  }
}

/* Tablet: 640px - 1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  /* 2 columns on tablet */
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Stat cards 2 per row */
  .col-6.col-md-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }
  
  /* Diamond adjust */
  .page-title--sparkus-signature::before,
  .page-title--sparkus-signature::after {
    width: 60px;
    height: 60px;
  }
}

/* ================================================================
   DARK MODE COMPONENT OVERRIDES
   Specific component styles when dark mode is active
   ================================================================ */

/* Navigation */
.dark .navbar-diamond,
[data-theme="dark"] .navbar-diamond {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark .navbar-diamond::after,
[data-theme="dark"] .navbar-diamond::after {
  background: var(--sp-card-bg);
}

/* Cards & Modules */
.dark .card,
.dark .module-card,
[data-theme="dark"] .card,
[data-theme="dark"] .module-card {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark .card-header,
.dark .module-card-header,
[data-theme="dark"] .card-header,
[data-theme="dark"] .module-card-header {
  border-color: var(--sp-card-border);
}

/* Stat Cards */
.dark .stat-card,
[data-theme="dark"] .stat-card {
  background: var(--sp-card-bg);
}

/* Buttons - light variants */
.dark .btn-light-primary,
[data-theme="dark"] .btn-light-primary {
  background: rgba(239, 68, 68, 0.15);
  color: var(--sp-red);
}

.dark .btn-light-primary:hover,
[data-theme="dark"] .btn-light-primary:hover {
  background: rgba(239, 68, 68, 0.25);
}

.dark .btn-light-secondary,
[data-theme="dark"] .btn-light-secondary {
  background: rgba(148, 184, 212, 0.15);
  color: var(--sp-blue-600);
}

.dark .btn-light-success,
[data-theme="dark"] .btn-light-success {
  background: var(--sp-success-light);
  color: var(--sp-success);
}

.dark .btn-light-warning,
[data-theme="dark"] .btn-light-warning {
  background: var(--sp-warning-light);
  color: var(--sp-warning);
}

.dark .btn-light-danger,
[data-theme="dark"] .btn-light-danger {
  background: var(--sp-danger-light);
  color: var(--sp-danger);
}

/* Outline buttons */
.dark .btn-outline-primary,
[data-theme="dark"] .btn-outline-primary {
  border-color: var(--sp-red);
  color: var(--sp-red);
}

.dark .btn-outline-primary:hover,
[data-theme="dark"] .btn-outline-primary:hover {
  background: rgba(239, 68, 68, 0.15);
}

.dark .btn-outline-secondary,
[data-theme="dark"] .btn-outline-secondary {
  border-color: var(--sp-blue-500);
  color: var(--sp-blue-500);
}

.dark .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:hover {
  background: rgba(148, 184, 212, 0.15);
}

/* Dropdowns */
.dark .dropdown-menu,
[data-theme="dark"] .dropdown-menu {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark .dropdown-item,
[data-theme="dark"] .dropdown-item {
  color: var(--sp-text-primary);
}

.dark .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:hover {
  background: var(--sp-blue-100);
}

.dark .dropdown-divider,
[data-theme="dark"] .dropdown-divider {
  border-color: var(--sp-card-border);
}

/* Tables */
.dark .table,
[data-theme="dark"] .table {
  color: var(--sp-text-primary);
}

.dark .table thead th,
[data-theme="dark"] .table thead th {
  background: var(--sp-blue-100);
  border-color: var(--sp-card-border);
  color: var(--sp-text-secondary);
}

.dark .table td,
[data-theme="dark"] .table td {
  border-color: var(--sp-card-border);
}

.dark .table tbody tr:hover,
[data-theme="dark"] .table tbody tr:hover {
  background: var(--sp-blue-100);
}

/* Forms */
.dark .form-control,
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="search"],
.dark select,
.dark textarea,
[data-theme="dark"] .form-control,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--sp-blue-100);
  border-color: var(--sp-card-border);
  color: var(--sp-text-primary);
}

.dark .form-control:focus,
.dark input:focus,
.dark select:focus,
.dark textarea:focus,
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: var(--sp-red);
  background: var(--sp-blue-100);
}

.dark .form-control::placeholder,
[data-theme="dark"] .form-control::placeholder {
  color: var(--sp-text-muted);
}

/* Badges - light variants */
.dark .badge-light-primary,
[data-theme="dark"] .badge-light-primary {
  background: var(--sp-red-lighter);
  color: var(--sp-red);
}

.dark .badge-light-success,
[data-theme="dark"] .badge-light-success {
  background: var(--sp-success-light);
  color: var(--sp-success);
}

.dark .badge-light-warning,
[data-theme="dark"] .badge-light-warning {
  background: var(--sp-warning-light);
  color: var(--sp-warning);
}

.dark .badge-light-danger,
[data-theme="dark"] .badge-light-danger {
  background: var(--sp-danger-light);
  color: var(--sp-danger);
}

.dark .badge-light-info,
[data-theme="dark"] .badge-light-info {
  background: var(--sp-info-light);
  color: var(--sp-info);
}

/* Alerts */
.dark .alert,
[data-theme="dark"] .alert {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark .alert-success,
[data-theme="dark"] .alert-success {
  background: var(--sp-success-light);
  border-color: rgba(52, 211, 153, 0.3);
}

.dark .alert-warning,
[data-theme="dark"] .alert-warning {
  background: var(--sp-warning-light);
  border-color: rgba(251, 191, 36, 0.3);
}

.dark .alert-danger,
[data-theme="dark"] .alert-danger {
  background: var(--sp-danger-light);
  border-color: rgba(248, 113, 113, 0.3);
}

.dark .alert-info,
[data-theme="dark"] .alert-info {
  background: var(--sp-info-light);
  border-color: rgba(96, 165, 250, 0.3);
}

/* Tabs */
.dark .nav-tabs,
[data-theme="dark"] .nav-tabs {
  border-color: var(--sp-card-border);
}

.dark .nav-tabs .nav-link,
[data-theme="dark"] .nav-tabs .nav-link {
  color: var(--sp-text-secondary);
}

.dark .nav-tabs .nav-link:hover,
[data-theme="dark"] .nav-tabs .nav-link:hover {
  color: var(--sp-text-primary);
}

.dark .nav-tabs .nav-link.active,
[data-theme="dark"] .nav-tabs .nav-link.active {
  color: var(--sp-red);
  border-color: var(--sp-red);
}

/* Timeline */
.dark .timeline-item,
[data-theme="dark"] .timeline-item {
  border-color: var(--sp-card-border);
}

.dark .timeline-item__marker,
[data-theme="dark"] .timeline-item__marker {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

/* Modal */
.dark .modal,
[data-theme="dark"] .modal {
  background: var(--sp-card-bg);
}

.dark .modal-header,
[data-theme="dark"] .modal-header {
  border-color: var(--sp-card-border);
}

.dark .modal-footer,
[data-theme="dark"] .modal-footer {
  border-color: var(--sp-card-border);
}

/* Toast */
.dark .toast,
[data-theme="dark"] .toast {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

/* Popover */
.dark .popover,
[data-theme="dark"] .popover {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark .popover-header,
[data-theme="dark"] .popover-header {
  background: var(--sp-blue-100);
  border-color: var(--sp-card-border);
}

/* Tooltips */
.dark .tooltip,
[data-theme="dark"] .tooltip {
  background: var(--sp-blue-800);
  color: var(--sp-blue-100);
}

/* Skeleton Loading */
.dark .skeleton,
[data-theme="dark"] .skeleton {
  background: var(--sp-blue-200);
}

.dark .skeleton::after,
[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* Progress bars */
.dark .progress,
[data-theme="dark"] .progress {
  background: var(--sp-blue-200);
}

/* Symbols (Avatars) */
.dark .symbol-label,
[data-theme="dark"] .symbol-label {
  background: var(--sp-blue-200);
  color: var(--sp-text-primary);
}

/* User Chips */
.dark .user-chip,
[data-theme="dark"] .user-chip {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

/* Session Cards */
.dark .session-card,
[data-theme="dark"] .session-card {
  background: var(--sp-card-bg);
}

.dark .session-card__header,
[data-theme="dark"] .session-card__header {
  border-color: var(--sp-card-border);
}

/* Coach Cards */
.dark .coach-card,
[data-theme="dark"] .coach-card {
  background: var(--sp-card-bg);
}

/* Getting Started */
.dark .sp-getting-started,
[data-theme="dark"] .sp-getting-started {
  background: var(--sp-card-bg);
}

.dark .sp-getting-started__item,
[data-theme="dark"] .sp-getting-started__item {
  border-color: var(--sp-card-border);
}

/* What's Next Timeline */
.dark .sp-whats-next,
[data-theme="dark"] .sp-whats-next {
  background: var(--sp-card-bg);
}

/* Empty States */
.dark .empty-state,
[data-theme="dark"] .empty-state {
  background: var(--sp-card-bg);
}

.dark .empty-state__icon,
[data-theme="dark"] .empty-state__icon {
  background: var(--sp-blue-100);
}

/* Steps / Stepper */
.dark .steps,
[data-theme="dark"] .steps {
  background: var(--sp-card-bg);
}

.dark .step,
[data-theme="dark"] .step {
  color: var(--sp-text-secondary);
}

.dark .step--active,
[data-theme="dark"] .step--active {
  color: var(--sp-red);
}

.dark .step--completed,
[data-theme="dark"] .step--completed {
  color: var(--sp-success);
}

/* Stepper */
.dark .stepper,
[data-theme="dark"] .stepper {
  background: var(--sp-card-bg);
}

.dark .stepper__step-number,
[data-theme="dark"] .stepper__step-number {
  background: var(--sp-blue-200);
  color: var(--sp-text-secondary);
}

.dark .stepper__step--active .stepper__step-number,
[data-theme="dark"] .stepper__step--active .stepper__step-number {
  background: var(--sp-red);
  color: white;
}

.dark .stepper__step--completed .stepper__step-number,
[data-theme="dark"] .stepper__step--completed .stepper__step-number {
  background: var(--sp-success);
  color: white;
}

/* Range Sliders */
.dark input[type="range"],
[data-theme="dark"] input[type="range"] {
  background: var(--sp-blue-200);
}

.dark input[type="range"]::-webkit-slider-thumb,
[data-theme="dark"] input[type="range"]::-webkit-slider-thumb {
  background: var(--sp-red);
}

/* Assessment Slider */
.dark .assessment-slider,
[data-theme="dark"] .assessment-slider {
  background: var(--sp-card-bg);
}

.dark .assessment-slider__track,
[data-theme="dark"] .assessment-slider__track {
  background: var(--sp-blue-200);
}

/* Breadcrumbs */
.dark .breadcrumb,
[data-theme="dark"] .breadcrumb {
  background: var(--sp-card-bg);
}

.dark .breadcrumb a,
[data-theme="dark"] .breadcrumb a {
  color: var(--sp-text-secondary);
}

.dark .breadcrumb a:hover,
[data-theme="dark"] .breadcrumb a:hover {
  color: var(--sp-red);
}

/* Pagination */
.dark .pagination,
[data-theme="dark"] .pagination {
  background: var(--sp-card-bg);
}

.dark .pagination .page-link,
[data-theme="dark"] .pagination .page-link {
  background: var(--sp-blue-100);
  border-color: var(--sp-card-border);
  color: var(--sp-text-primary);
}

.dark .pagination .page-link:hover,
[data-theme="dark"] .pagination .page-link:hover {
  background: var(--sp-blue-200);
}

.dark .pagination .page-item.active .page-link,
[data-theme="dark"] .pagination .page-item.active .page-link {
  background: var(--sp-red);
  border-color: var(--sp-red);
  color: white;
}

/* Reflection Card */
.dark .reflection-card,
[data-theme="dark"] .reflection-card {
  background: var(--sp-module-reflection-bg);
}

.dark .reflection-card input,
.dark .reflection-card textarea,
[data-theme="dark"] .reflection-card input,
[data-theme="dark"] .reflection-card textarea {
  background: rgba(0, 0, 0, 0.15);
  color: var(--sp-module-reflection-text);
}

/* AI Card */
.dark .ai-card,
[data-theme="dark"] .ai-card {
  background: var(--sp-module-ai-bg);
}

/* Carried Content */
.dark .carried-content,
[data-theme="dark"] .carried-content {
  background: var(--sp-module-carried-bg);
  border-color: var(--sp-module-carried-border);
}

/* Toggle Switches */
.dark .toggle-switch input:not(:checked) + .toggle-slider,
[data-theme="dark"] .toggle-switch input:not(:checked) + .toggle-slider {
  background: var(--sp-blue-300);
}

/* Section Title */
.dark .section-title-accent::before,
[data-theme="dark"] .section-title-accent::before {
  background: var(--sp-red);
}

/* Menu Drawer */
.dark #menu-drawer,
[data-theme="dark"] #menu-drawer {
  background: var(--sp-card-bg);
}

.dark #menu-drawer .menu-drawer-footer,
[data-theme="dark"] #menu-drawer .menu-drawer-footer {
  background: var(--sp-card-bg);
  border-color: var(--sp-card-border);
}

.dark #menu-drawer a:hover,
.dark #menu-drawer label:hover,
[data-theme="dark"] #menu-drawer a:hover,
[data-theme="dark"] #menu-drawer label:hover {
  background: var(--sp-blue-100);
}

.dark #notification-drawer,
[data-theme="dark"] #notification-drawer {
  background: var(--sp-card-bg);
}

.dark #notification-drawer .notification-item:hover,
[data-theme="dark"] #notification-drawer .notification-item:hover {
  background: var(--sp-blue-100);
}

/* Search Input */
.dark .search-input,
[data-theme="dark"] .search-input {
  background: var(--sp-blue-100);
  border-color: var(--sp-card-border);
}

/* Dashboard Cards */
.dark .sp-dashboard-card,
[data-theme="dark"] .sp-dashboard-card {
  background: var(--sp-card-bg);
}

/* Widgets */
.dark .sp-widget,
[data-theme="dark"] .sp-widget {
  background: var(--sp-card-bg);
}

/* Page Title Background adjustment for dark mode */
.dark .page-title--sparkus-signature::before,
[data-theme="dark"] .page-title--sparkus-signature::before {
  background: var(--sp-body-bg);
}

/* Ribbons */
.dark .ribbon,
[data-theme="dark"] .ribbon {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover states for cards */
.dark .card:hover,
.dark .module-card:hover,
[data-theme="dark"] .card:hover,
[data-theme="dark"] .module-card:hover {
  border-color: var(--sp-blue-400);
}

/* Selection Controls */
.dark .form-check-input,
[data-theme="dark"] .form-check-input {
  background: var(--sp-blue-200);
  border-color: var(--sp-blue-400);
}

.dark .form-check-input:checked,
[data-theme="dark"] .form-check-input:checked {
  background: var(--sp-red);
  border-color: var(--sp-red);
}

/* Smooth transition for theme changes */
.dark *,
.dark *::before,
.dark *::after,
[data-theme="dark"] *,
[data-theme="dark"] *::before,
[data-theme="dark"] *::after {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

