:root {
  --artemis-primary: #6366f1;
  --artemis-primary-hover: #4f46e5;
  --artemis-secondary: #8b5cf6;
  --artemis-tertiary: #06b6d4;
  --artemis-success: #10b981;
  --artemis-warning: #f59e0b;
  --artemis-danger: #ef4444;
  --artemis-info: #3b82f6;
  --severity-critical: #dc2626;
  --severity-high: #ea580c;
  --severity-medium: #d97706;
  --severity-low: #65a30d;
  --severity-info: #0891b2;
  --bg-base: #09090b;
  --bg-primary: #0f0f10;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --bg-elevated: #3f3f46;
  --bg-highlight: #52525b;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-disabled: #52525b;
  --border-subtle: #27272a;
  --border-default: #3f3f46;
  --border-strong: #52525b;
  --border-focus: #6366f1;
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-hunt: linear-gradient(135deg, #ef4444, #f59e0b);
  --gradient-learn: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-dark: linear-gradient(180deg, #18181b, #09090b);
  --glass-bg: rgba(24, 24, 27, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(12px);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6);
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-6);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-icon { font-size: 1.5rem; }

.nav-links {
  display: flex;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

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

.nav-icon { width: 20px; height: 20px; }

.nav-actions {
  display: flex;
  gap: var(--space-2);
}

.nav-action-btn {
  padding: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-action-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--artemis-danger);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-mobile-toggle {
  display: none;
  padding: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.stat-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card:hover::before { opacity: 0.5; }

.stat-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.stat-content { flex: 1; }

.stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.stat-trend {
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.stat-trend--up { color: var(--artemis-success); }
.stat-trend--down { color: var(--artemis-danger); }
.stat-trend--neutral { color: var(--text-muted); }

.skill-matrix {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.skill-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.skill-matrix-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.skill-matrix-link {
  font-size: var(--text-sm);
  color: var(--artemis-primary);
  text-decoration: none;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.skill-percent {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--artemis-primary);
}

.skill-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: calc(var(--percent) * 1%);
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  position: relative;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.skill-item:hover .skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer { 100% { left: 100%; } }

.skill-details {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.skill-bar-fill[data-category="web"] { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.skill-bar-fill[data-category="api"] { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.skill-bar-fill[data-category="cloud"] { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.skill-bar-fill[data-category="mobile"] { background: linear-gradient(90deg, #10b981, #06b6d4); }
.skill-bar-fill[data-category="infra"] { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

.module-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--artemis-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.module-progress-bar {
  height: 4px;
  background: var(--bg-elevated);
}

.module-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5) 0;
}

.module-badge {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.module-badge--journal { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.module-badge--skill-gap { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.module-badge--cert-path { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.module-badge--kb { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.module-time { font-size: var(--text-sm); color: var(--text-muted); }

.module-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-5);
  margin: 0;
}

.module-reason {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 0 var(--space-5);
  margin: 0;
}

.module-reason-label { color: var(--text-muted); }

.module-meta {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
}

.module-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.module-content-list {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.module-content-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.module-content-item.completed { color: var(--artemis-success); }
.module-content-item.current { color: var(--artemis-primary); font-weight: var(--font-medium); }
.module-content-item.pending { color: var(--text-muted); }

.module-actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.flashcard-container { max-width: 600px; margin: 0 auto; }

.flashcard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.flashcard-category { font-size: var(--text-sm); color: var(--text-secondary); }

.flashcard-progress {
  font-size: var(--text-sm);
  color: var(--artemis-primary);
  font-weight: var(--font-medium);
}

.flashcard {
  perspective: 1000px;
  height: 350px;
  cursor: pointer;
  position: relative;
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-front { transform: rotateY(0deg); }
.flashcard-back { transform: rotateY(180deg); }
.flashcard.is-flipped .flashcard-front { transform: rotateY(-180deg); }
.flashcard.is-flipped .flashcard-back { transform: rotateY(0deg); }

.flashcard-question {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

.flashcard-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-4);
  font-style: italic;
}

.flashcard-action {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

.flashcard-answer {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-4);
  margin: 0;
}

.flashcard-answer li { margin-bottom: var(--space-3); }

.flashcard-answer code {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  background: var(--bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  color: var(--artemis-tertiary);
}

.flashcard-ratings {
  margin-top: var(--space-6);
  text-align: center;
}

.rating-prompt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.rating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rating-btn:hover { transform: translateY(-2px); }

.rating-label { font-weight: var(--font-semibold); font-size: var(--text-sm); }

.rating-interval {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.rating-again { border-color: var(--artemis-danger); }
.rating-again:hover { background: rgba(239, 68, 68, 0.1); }
.rating-again .rating-label { color: var(--artemis-danger); }

.rating-hard { border-color: var(--artemis-warning); }
.rating-hard:hover { background: rgba(245, 158, 11, 0.1); }
.rating-hard .rating-label { color: var(--artemis-warning); }

.rating-good { border-color: var(--artemis-success); }
.rating-good:hover { background: rgba(16, 185, 129, 0.1); }
.rating-good .rating-label { color: var(--artemis-success); }

.rating-easy { border-color: var(--artemis-primary); }
.rating-easy:hover { background: rgba(99, 102, 241, 0.1); }
.rating-easy .rating-label { color: var(--artemis-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px solid var(--artemis-primary);
  outline-offset: 2px;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--artemis-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--artemis-primary);
}

.btn-danger { background: var(--artemis-danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }

.btn-success { background: var(--artemis-success); color: white; }

.btn-icon {
  padding: var(--space-2);
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-icon:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
.btn-block { width: 100%; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.bento-grid > .span-4 { grid-column: span 4; }
.bento-grid > .span-6 { grid-column: span 6; }
.bento-grid > .span-8 { grid-column: span 8; }
.bento-grid > .span-12 { grid-column: span 12; }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin: 0;
}

.page-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin: 0 0 var(--space-6);
}

.flash-messages {
  position: fixed;
  top: 80px;
  right: var(--space-6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.flash {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  animation: slideIn 0.3s ease;
}

.flash-success { background: rgba(16, 185, 129, 0.2); color: var(--artemis-success); border: 1px solid var(--artemis-success); }
.flash-error { background: rgba(239, 68, 68, 0.2); color: var(--artemis-danger); border: 1px solid var(--artemis-danger); }
.flash-warning { background: rgba(245, 158, 11, 0.2); color: var(--artemis-warning); border: 1px solid var(--artemis-warning); }
.flash-info { background: rgba(59, 130, 246, 0.2); color: var(--artemis-info); border: 1px solid var(--artemis-info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.session-progress { margin-top: var(--space-4); }

.session-progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.session-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
}

.session-progress-text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  display: block;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .bento-grid > .span-4, .bento-grid > .span-6, .bento-grid > .span-8 { grid-column: span 6; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

@media (max-width: 640px) {
  .stat-bar { grid-template-columns: 1fr; }
  .bento-grid > .span-4, .bento-grid > .span-6, .bento-grid > .span-8, .bento-grid > .span-12 { grid-column: span 12; }
  .rating-buttons { grid-template-columns: repeat(2, 1fr); }
  .container { padding: var(--space-4); }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px var(--artemis-primary); }
  50% { box-shadow: 0 0 20px var(--artemis-primary), 0 0 30px var(--artemis-secondary); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-slide-in { animation: slideInRight 0.3s ease forwards; }

.stat-card { animation: fadeIn 0.4s ease forwards; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  transition: transform var(--transition-spring);
}

.module-card { animation: fadeIn 0.4s ease forwards; opacity: 0; }
.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.2s; }
.module-card:nth-child(5) { animation-delay: 0.25s; }
.module-card:nth-child(6) { animation-delay: 0.3s; }

.program-card:hover {
  transform: translateY(-4px);
  border-color: var(--artemis-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
.btn-primary:hover::after { width: 200%; height: 200%; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-text { height: 1em; margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 1em; }
.skeleton-card { height: 200px; }

.accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item { border-bottom: 1px solid var(--border-subtle); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.accordion-header:hover { background: var(--bg-tertiary); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-base);
}

.accordion-content.open { max-height: 1000px; }

.accordion-icon { transition: transform var(--transition-fast); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.progress-ring { transform: rotate(-90deg); }

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  stroke-linecap: round;
}

.lab-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.lab-checkbox:checked {
  background: var(--artemis-success);
  border-color: var(--artemis-success);
}

.lab-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.tooltip:hover::after { opacity: 1; }

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2);
  z-index: 50;
}

@media (max-width: 640px) {
  .bottom-nav { display: flex; justify-content: space-around; }
  body { padding-bottom: 70px; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}

.bottom-nav-item.active { color: var(--artemis-primary); }
.bottom-nav-item:hover { color: var(--text-primary); }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 100;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.mobile-menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.mobile-menu-item i { width: 20px; height: 20px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 200;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.modal-search { max-width: 600px; }
.modal-settings { max-width: 480px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-5);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 28px);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--artemis-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-input::placeholder { color: var(--text-muted); }

.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.search-section-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.search-result-item i { width: 18px; height: 18px; }

.search-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.search-hint kbd {
  background: var(--bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: var(--space-6);
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  overflow: hidden;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: var(--font-semibold);
}

.dropdown-body {
  padding: var(--space-4);
  max-height: 300px;
  overflow-y: auto;
}

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

.notification-empty p {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
}

.settings-section {
  margin-bottom: var(--space-6);
}

.settings-section:last-child { margin-bottom: 0; }

.settings-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-item:last-child { border-bottom: none; }

.settings-item-info { flex: 1; }

.settings-item-label {
  display: block;
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.settings-item-desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.settings-select {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  cursor: pointer;
}

.settings-select:focus {
  outline: none;
  border-color: var(--artemis-primary);
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
  background: var(--artemis-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.fade-enter { animation: fadeIn 0.2s ease; }
.fade-leave { animation: fadeIn 0.2s ease reverse; }

@media (max-width: 1024px) {
  .nav-actions { display: none; }
  .mobile-menu { display: flex; }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}
